query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
sequencelengths
3
101
negative_scores
sequencelengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Method to retrieve the command handler name
public String getCommandHandlerName() { return COMMAND_HANDLER_NAME; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getCommandName() {\n try {\n if (command != null) {\n if (command.has(GnsProtocol.COMMANDNAME)) {\n return command.getString(GnsProtocol.COMMANDNAME);\n }\n }\n } catch (JSONException e) {\n // Just ignore it\n }\n return \"unknown\";\n }", "public CommandHandler getHandler() {\n\t\treturn handler;\n\t}", "java.lang.String getCommandName();", "java.lang.String getCommand();", "@Override\n public String getCommandName() {\n return s_name;\n }", "@Override\n public String getCommandName() {\n return s_name;\n }", "@Override\n public String getCommandName() {\n return s_name;\n }", "@Override\n public String getCommandName() {\n return s_name;\n }", "@Override\n public String getCommandName() {\n return s_name;\n }", "@Override\n public String getCommandName() {\n return s_name;\n }", "@Override\n public String getCommandName() {\n return s_name;\n }", "@Localized\n public String getCommandName() {\n return NucLang.get(_commandName).toString();\n }", "String getCommand();", "String getCommandName();", "public String getCommand(){\n return getCommand(null);\n }", "public String getName ( ) {\n\t\treturn extract ( handle -> handle.getName ( ) );\n\t}", "public String getHandler() {\n return handler;\n }", "public abstract String getCommandName();", "public abstract String getCommandName();", "public static String getNetServerHandlerName() {\n \t\treturn getNetServerHandlerClass().getSimpleName();\n \t}", "public final String getHandlerId() {\n return prefix;\n }", "public static String getNetLoginHandlerName() {\n \t\treturn getNetLoginHandlerClass().getSimpleName();\n \t}", "public String getUserCommand();", "String getCommandId();", "public abstract String getCommand();", "public String Command() {\n\treturn command;\n }", "@Override\n public final Command getCommand() {\n return commandIdentifier;\n }", "String getConfigurationHandlerId();", "public String getCommand()\r\n\t{\r\n\t\treturn command;\r\n\t}", "public static String getMethodHandleName(final int index) {\n return METHODHANDLE_NAMES[index];\n }", "Handler getHandler(final String handlerName);", "@Override\n\t/**\n\t * @return commandName\n\t */\n\tpublic String getOperationName() {\n\t\treturn commandName;\n\t}", "public String getCommand() {\r\n return command;\r\n }", "public int getHandler() {\n\t\treturn 1;\n\t}", "public String getCommand() {\n return command;\n }", "public String getCommand() {\n return command;\n }", "@Override\n\tpublic String getCommand() {\n\t\treturn model.getCommand();\n\t}", "public String getCommand() {\n\n return command;\n }", "public String getCommand() { return command; }", "public String getCommand() {\n return this.command;\n }", "int getCommand();", "@Override\n\tpublic String toString() {\n\t\treturn CMD_NAME;\n\t}", "public String getOriginalCommand() {\n return command;\n }", "public String getCommandName() {\n\treturn verb;\n }", "public String getHandlerName(String resource) {\n String handlerName = null;\n \n // No synchonization necessary here since we only write the ArrayList\n // once\n for (int index = 0; index < handlers.size(); index++) {\n HandlerConfig handler = (HandlerConfig) handlers.get(index);\n Matcher matcher = handler.getResourcePattern().matcher(resource);\n if (matcher.matches() == true) {\n handlerName = handler.getHandler();\n break;\n }\n }\n return handlerName;\n }", "public String getCommand(){\n return command;\n }", "com.google.protobuf.ByteString\n getCommandNameBytes();", "public static final String getCommandName(int cmd) {\n \n //\tGet the command name\n \n String cmdName = \"\";\n \n if ( cmd >= 0 && cmd < _cmdNames1.length) {\n\n //\tGet the command name from the main name table\n \n cmdName = _cmdNames1[cmd];\n }\n else {\n \n //\tMask the command to determine the command table to index\n \n switch ( cmd & 0x00F0) {\n \tcase 0x70:\n \t cmdName = _cmdNames2[cmd - 0x70];\n \t break;\n \tcase 0x80:\n \t\tcmdName = _cmdNames3[cmd - 0x80];\n \t\tbreak;\n \tcase 0xA0:\n \t cmdName = _cmdNames4[cmd - 0xA0];\n \t\tbreak;\n \tcase 0xC0:\n \t cmdName = _cmdNames5[cmd - 0xC0];\n \t break;\n \tcase 0xD0:\n \t cmdName = _cmdNames6[cmd - 0xD0];\n \t break;\n \tdefault:\n \t cmdName = \"0x\" + Integer.toHexString(cmd);\n \t\tbreak;\n }\n }\n \n //\tReturn the command name string\n \n return cmdName;\n }", "public String getCommandClass() {\n\treturn className;\n }", "@Override\r\n\tpublic String getCOMMAND() {\n\t\treturn COMMAND;\r\n\t}", "public int getCommand() {\n return command_;\n }", "public void handleCommand(String command);", "public String getCommand() {\n if (words.length == 0) {\n return NO_INPUT;\n }\n return words[0].toLowerCase();\n }", "public String getName() {\n\t return ZoieUpdateHandler.class.getName();\n\t }", "public Handler getHandler();", "public int getCommand() {\n return command_;\n }", "final public String getActionCommand() {\n return command;\n }", "public int getCommand()\n\t{\n\t\treturn this.command;\n\t}", "public String getCommandKey()\n\t{\n\t\treturn commandKey;\n\t}", "@Override\n public String getHandlerName() {\n return \"UpdateHandler\";\n }", "public String createCommandAlias()\n\t{\n\t\t// Split at uppercase letters\n\t\tfinal List<String> words = Txt.camelsplit(this.getClass().getSimpleName());\n\t\tString alias = words.get(words.size() - 1);\n\t\talias = alias.toLowerCase();\n\t\treturn alias;\n\t}", "public Command getCurrentCommand();", "public String getName() {\n/* 872 */ return CraftChatMessage.fromComponent(getHandle().getDisplayName());\n/* */ }", "public String getName() {\n\t\treturn JWLC.nativeHandler().wlc_output_get_name(this.to());\n\t}", "protected String getCommand() {\n\treturn \"USER_LOGIN\";\n }", "public String getCommand() {\n\t\tString[] lines = commandLine.getText().split(\"\\n\");\n\t\treturn lines[commandLine.getLineCount() - 2];\n\t}", "static String getHandler(HttpServletRequest request) {\n String requestURI = request.getRequestURI();\n return requestURI.substring(getDividingIndex(requestURI) + 1);\n }", "public String getCustomName ( ) {\n\t\treturn extract ( handle -> handle.getCustomName ( ) );\n\t}", "public String getSelectedMethodName () {\n if (SwingUtilities.isEventDispatchThread()) {\n return getSelectedMethodName_();\n } else {\n final String[] mn = new String[1];\n try {\n SwingUtilities.invokeAndWait(new Runnable() {\n public void run() {\n mn[0] = getSelectedMethodName_();\n }\n });\n } catch (InvocationTargetException ex) {\n ErrorManager.getDefault().notify(ex.getTargetException());\n } catch (InterruptedException ex) {\n // interrupted, ignored.\n }\n return mn[0];\n }\n }", "@NotNull\n String getCommandTemplate();", "java.lang.String getCommand(int index);", "String getMenuName();", "public String getName() {\n\t\treturn MenuString;\n\t}", "public String getName() {\n int index = getSplitIndex();\n return path.substring(index + 1);\n }", "@Override public String getCommandLongName(long[] dummy ) \n { return F_NAME; }", "public String getCommandReturned() {\n return commandReturned;\n }", "public String getImplementationName()\n {\n return _DialogEventHandler.class.getName();\n }", "public abstract String getLaunchCommand();", "public int getCommand() {\r\n\t\tif(this.command == null){\r\n\t\t\treturn -1;\r\n\t\t}\r\n\t\treturn this.command.ordinal();\r\n\t}", "public String getCommand() {\n String command = \"\";\n switch (turnCount) {\n case 0:\n command = \"NAME Bot0\";\n break;\n case 1:\n command = \"PASS\";\n break;\n case 2:\n command = \"HELP\";\n break;\n case 3:\n command = \"SCORE\";\n break;\n case 4:\n command = \"POOL\";\n break;\n default:\n command = \"H8 A AN\";\n break;\n }\n turnCount++;\n return command;\n }", "public CommandManager getCommand() {\n\treturn command;\n }", "private String getMethodNameInStrucutreHandle(String structureHandle) {\n\t\tString methodName = \"\";\n\n\t\tif (structureHandle.contains(\"~\")) {\n\t\t\tint index = structureHandle.indexOf(\"~\");\n\t\t\tString substring = structureHandle.substring(index + 1);\n\t\t\tif (substring.contains(\"~\")) {\n\t\t\t\tmethodName = substring.substring(0, substring.indexOf(\"~\"));\n\t\t\t} else {\n\t\t\t\tmethodName = substring;\n\t\t\t}\n\t\t}\n\n\t\tmethodName = methodName.replace(\"[\", \"\");\n\n\t\treturn methodName;\n\t}", "private String getName() {\n return method.getName();\n }", "public String getHandleIdentifier() {\n \t\tif (contexts.values().size() == 1) {\n \t\t\treturn contexts.keySet().iterator().next();\n \t\t} else {\n \t\t\treturn null;\n \t\t}\n \t}", "public String getUserCommand() {\n out.print(\"Enter command: \");\n String fullInputLine = in.nextLine();\n\n return fullInputLine;\n }", "public String getHandle() {\n return this.handle;\n }", "@JsonProperty(value = \"Handler\")\n public String getHandler() {\n return this.Handler;\n }", "@JsonIgnore\n\tdefault short getCmd() {\n\t\tMessageMeta annotation = getClass().getAnnotation(MessageMeta.class);\n\t\tif (annotation != null) {\n\t\t\treturn annotation.cmd();\n\t\t}\n\t\treturn 0;\n\t}", "public interface\n\t\tCommandHandler\n\t{\n\t\t/**\n\t\t Interprets a command string\n\n\t\t @param command the command string\n\t\t*/\n\t\tpublic void\n\t\t\thandleCommand(/*@ non_null */ String command);\n\t}", "public ServerInfo commandInterface()\n {\n return command_stub;\n }", "public java.lang.String getCommand() {\n java.lang.Object ref = command_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n command_ = s;\n }\n return s;\n }\n }", "String getManagerName();", "String command(String key) {\n return ResourceBundle.getBundle(OvsDbCli.class.getName())\n .getString(name() + \".\" + key);\n }", "public String getItemHandlerID() {\n return itemHandlerID;\n }", "public String getTypeName()\n {\n return getArgumentTypeName(type);\n }", "String getVarName();", "String getVarName();", "String getVarName();", "public Commands getCommand(String cmdName) {\n return cmdMap.get(cmdName);\n }" ]
[ "0.69953406", "0.6796195", "0.6712157", "0.6597453", "0.6586755", "0.6586755", "0.6586755", "0.6586755", "0.6586755", "0.6586755", "0.6586755", "0.65835893", "0.6489484", "0.6448981", "0.6350876", "0.6329861", "0.63127774", "0.6304433", "0.6304433", "0.6282611", "0.62209016", "0.6170725", "0.6156176", "0.6114029", "0.6076142", "0.60671467", "0.6059617", "0.6046948", "0.60456336", "0.603436", "0.6024993", "0.5965371", "0.59542066", "0.59442836", "0.593609", "0.593609", "0.5920662", "0.59109324", "0.59012187", "0.5898075", "0.5897328", "0.5885649", "0.5872132", "0.5869051", "0.58666074", "0.58289695", "0.581024", "0.5808384", "0.5802506", "0.5766233", "0.57491446", "0.57382053", "0.57350665", "0.5729263", "0.5673372", "0.5666202", "0.56658584", "0.5664959", "0.5659989", "0.5655383", "0.5651031", "0.56337047", "0.5622019", "0.5618263", "0.55982035", "0.55937207", "0.5591368", "0.5569564", "0.55667394", "0.55561954", "0.5526738", "0.5523717", "0.55183154", "0.5516875", "0.550858", "0.5488133", "0.5477754", "0.547505", "0.54743636", "0.54736286", "0.54679954", "0.5459967", "0.544732", "0.5446939", "0.54282224", "0.5416368", "0.54148716", "0.53859353", "0.53729016", "0.53674144", "0.53638667", "0.53388256", "0.53364766", "0.53328437", "0.533027", "0.53215194", "0.53215194", "0.53215194", "0.5311155" ]
0.7988126
1
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { return inflater.inflate(R.layout.add_chat, container, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.wallpager_layout, null);\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_invit_friends, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_zhuye, container, false);\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_posts, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.ilustration_fragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_sow_drug_cost_per_week, container, false);\n\n db = new DataBaseAdapter(getActivity());\n hc = new HelperClass();\n pop = new FeedSowsFragment();\n\n infltr = (LayoutInflater) getActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n parent = (LinearLayout) v.findViewById(R.id.layout_for_add);\n tvTotalCost = (TextView) v.findViewById(R.id.totalCost);\n\n getData();\n setData();\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_stream_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_event, container, false);\n\n\n\n\n\n\n\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_feed, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.screen_select_list_student, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_overall, container, false);\n mNamesLayout = (LinearLayout) rootView.findViewById(R.id.fragment_overall_names_layout);\n mOverallView = (OverallView) rootView.findViewById(R.id.fragment_overall_view);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState)\n {\n\n\n view = inflater.inflate(R.layout.fragment_earning_fragmant, container, false);\n ini(view);\n return view;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n super.onCreateView(inflater, container, savedInstanceState);\n final View rootview = inflater.inflate(R.layout.activity_email_frag, container, false);\n ConfigInnerElements(rootview);\n return rootview;\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\trootView = inflater.inflate(R.layout.fragment_attack_armor, container, false);\r\n\r\n\t\tfindInterfaceElements();\r\n\t\taddRangeSelector();\r\n\t\tupdateHeadings();\r\n\t\tsetListeners();\r\n\r\n\t\tsetFromData();\r\n\r\n\t\treturn rootView;\r\n\t}", "@SuppressLint(\"InflateParams\")\r\n\t@Override\r\n\tpublic View initLayout(LayoutInflater inflater) {\n\t\tView view = inflater.inflate(R.layout.frag_customer_all, null);\r\n\t\treturn view;\r\n\t}", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_fore_cast, container, false);\r\n initView();\r\n mainLayout.setVisibility(View.GONE);\r\n apiInterface = RestClinet.getClient().create(ApiInterface.class);\r\n loadData();\r\n return view;\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_friend, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_detail, container, false);\n image = rootView.findViewById(R.id.fr_image);\n name = rootView.findViewById(R.id.fr_name);\n phoneNumber = rootView.findViewById(R.id.fr_phone_number);\n email = rootView.findViewById(R.id.fr_email);\n street = rootView.findViewById(R.id.fr_street);\n city = rootView.findViewById(R.id.fr_city);\n state = rootView.findViewById(R.id.fr_state);\n zipcode = rootView.findViewById(R.id.fr_zipcode);\n dBrith = rootView.findViewById(R.id.date_brith);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_pm25, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_kkbox_playlist, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_feed_pager, container, false);\n\n// loadData();\n\n findViews(rootView);\n\n setViews();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n layout = (FrameLayout) inflater.inflate(R.layout.fragment_actualites, container, false);\n\n relLayout = (RelativeLayout) layout.findViewById(R.id.relLayoutActus);\n\n initListView();\n getXMLData();\n\n return layout;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.frag_post_prayer_video, container, false);\n setCustomDesign();\n setCustomClickListeners();\n return rootView;\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.lf_em4305_fragment, container, false);\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_recordings, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.fragment_category, container, false);\n initView(view);\n bindRefreshListener();\n loadParams();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_cm_box_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_layout12, container, false);\n\n iniv();\n\n init();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_details, container, false);\n //return inflater.inflate(R.layout.fragment_details, container, false);\n getIntentValues();\n initViews();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_mem_body_blood, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_qiugouxiaoxi, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_coll_blank, container, false);\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_attendance_divide, container, false);\n\n initView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.show_program_fragment, parent, false);\n }", "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container,\n @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.visualization_fragment, container, false);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_category_details_page, container, false);\n initializeAll();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View v = inflater.inflate(R.layout.fragemnt_reserve, container, false);\n\n\n\n\n return v;\n }", "protected int getLayoutResId() {\n return R.layout.activity_fragment;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_quizs, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n role = getArguments().getInt(\"role\");\n rootview = inflater.inflate(R.layout.fragment_application, container, false);\n layout = rootview.findViewById(R.id.patentDetails);\n progressBar = rootview.findViewById(R.id.progressBar);\n try {\n run();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return rootview;\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tview = inflater.inflate(R.layout.fragment_zhu, null);\n\t\tinitView();\n\t\tinitData();\n\t\treturn view;\n\t}", "@Override\n\t\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)\n\t\t{\n\t\t\tView rootView = inflater.inflate(R.layout.maimfragment, container, false);\n\t\t\treturn rootView;\n\t\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n // Inflate the layout for this fragment\n return inflater.inflate(R.layout.fragment__record__week, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_porishongkhan, container, false);\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_dashboard, container, false);\n resultsRv = view.findViewById(R.id.db_results_rv);\n resultText = view.findViewById(R.id.db_search_empty);\n progressBar = view.findViewById(R.id.db_progressbar);\n lastVisitText = view.findViewById(R.id.db_last_visit);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(getLayoutId(), container, false);\n init(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_feedback, container, false);\n self = getActivity();\n initUI(view);\n initControlUI();\n initData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_service_summery, container, false);\n tvVoiceMS = v.findViewById(R.id.tvVoiceValue);\n tvDataMS = v.findViewById(R.id.tvdataValue);\n tvSMSMS = v.findViewById(R.id.tvSMSValue);\n tvVoiceFL = v.findViewById(R.id.tvVoiceFLValue);\n tvDataBS = v.findViewById(R.id.tvDataBRValue);\n tvTotal = v.findViewById(R.id.tvTotalAccountvalue);\n return v;\n }", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_clan_rank_details, container, false);\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_star_wars_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_lei, container, false);\n\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_quotation, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_wode_ragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n\n\n\n\n\n return inflater.inflate(R.layout.fragment_appoint_list, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n if (rootView == null) {\n rootView = inflater.inflate(R.layout.fragment_ip_info, container, false);\n initView();\n }\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_offer, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_rooms, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\n View view = inflater.inflate(R.layout.fragment_img_eva, container, false);\n\n getSendData();\n\n initView(view);\n\n initData();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_project_collection, container, false);\n ButterKnife.bind(this, view);\n fragment = this;\n initView();\n getCollectionType();\n // getCategoryList();\n initBroadcastReceiver();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_yzm, container, false);\n initView(view);\n return view;\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\tmainLayout = inflater.inflate(R.layout.fragment_play, container, false);\r\n\t\treturn mainLayout;\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_invite_request, container, false);\n initialiseVariables();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n getLocationPermission();\n return inflater.inflate(R.layout.centrum_fragment, container, false);\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_habit_type_details, container, false);\n\n habitTitle = rootView.findViewById(R.id.textViewTitle);\n habitReason = rootView.findViewById(R.id.textViewReason);\n habitStartDate = rootView.findViewById(R.id.textViewStartDate);\n habitWeeklyPlan = rootView.findViewById(R.id.textViewWeeklyPlan);\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_information_friends4, container, false);\n\n if (getArguments() != null) {\n FriendsID = getArguments().getString(\"keyFriends\");\n }\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_post_details, container, false);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hotel, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_bus_inquiry, container, false);\n initView();\n initData();\n initDialog();\n getDataFromNet();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_weather, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_srgl, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_ground_detail_frgment, container, false);\n init();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_book_appointment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_wheretogo, container, false);\n ids();\n setup();\n click();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n binding = DataBindingUtil\n .inflate(inflater, R.layout.fragment_learning_leaders, container, false);\n init();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_end_game_tab, container, false);\n\n setupWidgets();\n setupTextFields(view);\n setupSpinners(view);\n\n // Inflate the layout for this fragment\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.memoir_fragment, container, false);\n\n getUserIdFromSharedPref();\n configureUI(view);\n configureSortSpinner();\n configureFilterSpinner();\n\n networkConnection = new NetworkConnection();\n new GetAllMemoirTask().execute();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_jadwal, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_delivery_detail, container, false);\n initialise();\n\n\n\n return view;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_4, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_product, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_group_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment06_7, container, false);\n initView(view);\n setLegend();\n setXAxis();\n setYAxis();\n setData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_downloadables, container, false);\n }", "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.movie_list_fragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_like, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hall, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_unit_main, container, false);\n TextView mTxvBusinessAassistant = (TextView) view.findViewById(R.id.txv_business_assistant);\n TextView mTxvCardINformation = (TextView) view.findViewById(R.id.txv_card_information);\n RelativeLayout mRelOfficialWebsite = (RelativeLayout) view.findViewById(R.id.rel_official_website);\n RelativeLayout mRelPictureAblum = (RelativeLayout) view.findViewById(R.id.rel_picture_album);\n TextView mTxvQrCodeCard = (TextView) view.findViewById(R.id.txv_qr_code_card);\n TextView mTxvShareCard = (TextView) view.findViewById(R.id.txv_share_card);\n mTxvBusinessAassistant.setOnClickListener(this.mOnClickListener);\n mTxvCardINformation.setOnClickListener(this.mOnClickListener);\n mRelOfficialWebsite.setOnClickListener(this.mOnClickListener);\n mRelPictureAblum.setOnClickListener(this.mOnClickListener);\n mTxvQrCodeCard.setOnClickListener(this.mOnClickListener);\n mTxvShareCard.setOnClickListener(this.mOnClickListener);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_moviespage, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_s, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_overview, container, false);\n\n initOverviewComponents(view);\n registerListeners();\n initTagListener();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_bahan_ajar, container, false);\n initView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n root = (ViewGroup) inflater.inflate(R.layout.money_main, container, false);\n context = getActivity();\n initHeaderView(root);\n initView(root);\n\n getDate();\n initEvetn();\n return root;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_historical_event, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_event_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_video, container, false);\n unbinder = ButterKnife.bind(this, view);\n initView();\n initData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n v= inflater.inflate(R.layout.fragment_post_contacts, container, false);\n this.mapping(v);\n return v;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_measures, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_feed, container, false);\n findViews(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_surah_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_data_binded, container, false);\n }" ]
[ "0.6739604", "0.67235583", "0.6721706", "0.6698254", "0.6691869", "0.6687986", "0.66869223", "0.6684548", "0.66766286", "0.6674615", "0.66654444", "0.66654384", "0.6664403", "0.66596216", "0.6653321", "0.6647136", "0.66423255", "0.66388357", "0.6637491", "0.6634193", "0.6625158", "0.66195583", "0.66164845", "0.6608733", "0.6596594", "0.65928894", "0.6585293", "0.65842897", "0.65730995", "0.6571248", "0.6569152", "0.65689117", "0.656853", "0.6566686", "0.65652984", "0.6553419", "0.65525705", "0.65432084", "0.6542382", "0.65411425", "0.6538022", "0.65366334", "0.65355957", "0.6535043", "0.65329415", "0.65311074", "0.65310687", "0.6528645", "0.65277404", "0.6525902", "0.6524516", "0.6524048", "0.65232015", "0.65224624", "0.65185034", "0.65130377", "0.6512968", "0.65122765", "0.65116245", "0.65106046", "0.65103024", "0.6509013", "0.65088093", "0.6508651", "0.6508225", "0.6504662", "0.650149", "0.65011525", "0.6500686", "0.64974767", "0.64935696", "0.6492234", "0.6490034", "0.6487609", "0.6487216", "0.64872116", "0.6486594", "0.64861935", "0.6486018", "0.6484269", "0.648366", "0.6481476", "0.6481086", "0.6480985", "0.6480396", "0.64797544", "0.647696", "0.64758915", "0.6475649", "0.6474114", "0.6474004", "0.6470706", "0.6470275", "0.64702207", "0.6470039", "0.6467449", "0.646602", "0.6462256", "0.64617974", "0.6461681", "0.6461214" ]
0.0
-1
Get Values from the Dialog
@Override public void onClick(DialogInterface dialog, int id) { String chat = chat_field.getText().toString(); LandingActivity current_activity = (LandingActivity)getActivity(); if(current_activity != null){ new Chat(chat, current_user.getUsername(), getActivity()); } //Construct the new Object }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void getValues(){\n username = etUsername.getText().toString();\n password = etPassword.getText().toString();\n }", "public void receberValores() {\n Bundle b = getIntent().getExtras();\n if (b != null) {\n cpf3 = b.getString(\"valor2\");\n renda = b.getDouble(\"valor3\");\n data = b.getString(\"valor4\");\n data2 = b.getString(\"valor5\");\n }\n }", "public ChooseValue getChooseValueDialog() {\n\t\treturn chooseValueDialog;\n\t}", "public JDialog getParametersWidget(JFrame master);", "public void MostrarValores() {\r\n Nodo recorrido = UltimoValorIngresado;\r\n\r\n while (recorrido != null) {\r\n Lista += recorrido.informacion + \"\\n\";\r\n recorrido = recorrido.siguiente;\r\n }\r\n\r\n JOptionPane.showMessageDialog(null, Lista);\r\n Lista = \"\";\r\n }", "public List<String> getSelectedValues()\n {\n List<String> selectedValues = new ArrayList<String>();\n CharSequence[] allValues = getEntryValues();\n for( int i = 0; i < allValues.length; i++ )\n {\n if( mCheckedStates[i] )\n selectedValues.add( allValues[i].toString() );\n }\n return selectedValues;\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n if (which >= 0) {\n data.putString(DialogConts.KEY_VALUE, values[which]);\n } else {\n data.putBoolean(DialogConts.KEY_BUTTON_POSITIVE, which == DialogInterface.BUTTON_POSITIVE);\n listener.onDialogResult(data);\n }\n }", "public String[] showInputDialog()\n {\n class GetData extends JDialog implements ActionListener\n {\n JTextField textLogin = new JTextField();\n JPasswordField texPasswd = new JPasswordField(16);\n JButton btnOK = new JButton(\" OK \");\n JButton btnCancel = new JButton(\"Cancel\");\n String returnlogin = null;\n String returnPasswd = null;\n /**\n * Zpracovani dat\n */\n public GetData()\n {\n setModal(true);\n getContentPane().setLayout(new BorderLayout());\n setDefaultCloseOperation(DISPOSE_ON_CLOSE);\n setLocation(400,300);\n JPanel myLogin = new JPanel();\n myLogin.setLayout(new BorderLayout());\n JPanel myPasswd = new JPanel();\n myPasswd.setLayout(new BorderLayout());\n myLogin.add(new JLabel(\"Username\"),BorderLayout.NORTH);\n myLogin.add(textLogin,BorderLayout.CENTER);\n getContentPane().add(myLogin,BorderLayout.NORTH);\n myPasswd.add(new JLabel(\"Password\"),BorderLayout.NORTH);\n myPasswd.add(texPasswd,BorderLayout.CENTER);\n getContentPane().add(myPasswd,BorderLayout.CENTER);\n JPanel jp = new JPanel();\n btnOK.addActionListener(this);\n btnCancel.addActionListener(this);\n jp.add(btnOK);\n jp.add(btnCancel);\n getContentPane().add(jp,BorderLayout.SOUTH);\n pack();\n setVisible(true);\n }\n /**\n * Kliknuti na tlacitko a nasledne poslani jmena a hesla.\n */\n public void actionPerformed(ActionEvent ae)\n {\n if(ae.getSource() == btnOK){\n login = textLogin.getText();\n passwd = texPasswd.getText();\n }\n dispose();\n\n }\n }\n new GetData();\n return new String[] {login, passwd};\n }", "public void getGUIVALS() {\n MinX = (double) MinXSpin.getValue();\n MaxX = (double) MaxXSpin.getValue();\n MinY = (double) MinYSpin.getValue();\n MaxY = (double) MaxYSpin.getValue();\n Step = (double) StepSpin.getValue();\n ForceRange = ForceRangeBox.isSelected();\n LineColor = LineCC.getColor();\n BackColor = BackGCC.getColor();\n Increments = (int) IncSpin.getValue();\n DrawArea = DrawAreaBox.isSelected();\n DrawScale = DrawScaleBox.isSelected();\n CurveThickness = (float) (double) CurveThicknessSpin.getValue();\n }", "protected Object doGetValue() {\n \t\tString aText = getText().getText();\n \n \t\t// handle value from collection editor dialog\n \t\tif (value instanceof ElementValue) {\n \t\t\t((ElementValue) value).setValue(aText);\n \t\t\treturn value;\n \t\t}\n \n \t\treturn aText;\n \t}", "public void gatherData(View v) {\n\tfinal Dialog dialog = new Dialog(this);\n\tdialog.setContentView(R.layout.dialog_data);\n\tdialog.setTitle(\"Patient Data Input\");\n\n\tfinal DatePicker datePicker = (DatePicker) dialog\n\t\t.findViewById(R.id.datePicker1);\n\tdatePicker.init(Calendar.getInstance().get(Calendar.YEAR), Calendar\n\t\t.getInstance().get(Calendar.MONTH),\n\t\tCalendar.getInstance().get(Calendar.DAY_OF_MONTH), null);\n\n\tButton dialogButton = (Button) dialog.findViewById(R.id.done_button);\n\tdialogButton.setOnClickListener(new OnClickListener() {\n\t @Override\n\t public void onClick(View v) {\n\t\tif (((EditText) dialog.findViewById(R.id.patient_name_field))\n\t\t\t.getText().toString() == null\n\t\t\t& ((EditText) dialog.findViewById(R.id.heathcard_field))\n\t\t\t\t.getText().toString() == null) {\n\t\t ((EditText) dialog.findViewById(R.id.patient_name_field))\n\t\t\t .setHint(\"Name missing\");\n\t\t ((EditText) dialog.findViewById(R.id.heathcard_field))\n\t\t\t .setHint(\"Health card number missing\");\n\t\t personalData = null;\n\t\t} else {\n\t\t Date date;\n\t\t try {\n\t\t\tdate = new SimpleDateFormat(\"yyyy-MM-dd\",\n\t\t\t\tLocale.ENGLISH).parse(datePicker.getYear()\n\t\t\t\t+ \"-\" + datePicker.getMonth() + \"-\"\n\t\t\t\t+ datePicker.getDayOfMonth());\n\t\t\tpersonalData = new Data(((EditText) dialog\n\t\t\t\t.findViewById(R.id.patient_name_field))\n\t\t\t\t.getText().toString(), date, ((EditText) dialog\n\t\t\t\t.findViewById(R.id.heathcard_field)).getText()\n\t\t\t\t.toString());\n\t\t } catch (ParseException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t }\n\n\t\t}\n\t\tdialog.dismiss();\n\t }\n\t});\n\tdialog.show();\n\n }", "public Object[] getData() {\n String[] itsData = new String[1];\n itsData[0] = new String(getSelectedItem());\n return itsData;\n }", "String getValueText();", "private String[] getFields(){\n String[] fields = new String[entry.get(0).size()];\n\n for (int i = 0; i < entry.get(0).size(); i++){\n fields[i] = spinners[i].getSelectedItem().toString();\n }\n\n return fields;\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n\n View view = getActivity().getLayoutInflater().inflate(R.layout.rollback_detail_dialog, new LinearLayout(getActivity()), false);\n\n initUI(view);\n // clickEvents();\n\n /*\n assert getArguments() != null;\n voucherTypes = (ArrayList<VoucherType>) getArguments().getSerializable(\"warehouses\");\n voucherType=\"\";\n*/\n\n Dialog builder = new Dialog(getActivity());\n builder.requestWindowFeature(Window.FEATURE_NO_TITLE);\n builder.setContentView(view);\n return builder;\n\n\n }", "public PromptValue getValue()\n {\n return value;\n }", "private void mostrarValorDeIndicadorSeleccionado() {\n\t\r\n\t\tMessageBox messageBox;\r\n\t\t\r\n\t\ttry {\r\n\t\t\tdatosDelIndicador();\r\n\t\t\tthis.getModelObject().observerIndicador();\r\n\t\t}\r\n\t\tcatch (RuntimeException ex){\r\n\t\t\tmessageBox = new MessageBox(this, Type.Error);\r\n\t\t\tmessageBox.setMessage(ex.getMessage());\r\n\t\t\tmessageBox.open();\r\n\t\t}\r\n\t}", "public interface DialogUtilResponse {\n void selectedValueSingleChoice(int position);\n void selectedValueSingleChoice(int position, String arrayType);\n}", "@Override\r\n\t\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\t\tisubject=bl.get(arg2)[0];\r\n\t\t\t\t\t\t\t\t\tiamount=bl.get(arg2)[1];\r\n\t\t\t\t\t\t\t\t\timode=bl.get(arg2)[2];\r\n\t\t\t\t\t\t\t\t\tidate=bl.get(arg2)[3];\r\n\t\t\t\t\t\t\t\t\tshowDialog(DETAIL_DIALOG);\r\n\t\t\t\t\t\t\t\t}", "private void GetAllInfo() {\n\t\tjetztStunde = Integer.parseInt(jetztStdTxt.getText().toString());\n\t\tjetztMinute = Integer.parseInt(jetztMinTxt.getText().toString());\n\n\t\tschlafStunde = Integer.parseInt(schlafStdTxt.getText().toString());\n\t\tschlafMinute = Integer.parseInt(schlafMinTxt.getText().toString());\n\n\t}", "public void onClick(DialogInterface dialog,int id) {\n ref_number = userInput.getText().toString();\n from_date = fromDateBox.getText().toString();\n to_date = toDateBox.getText().toString();\n new PostGetSavingsReportsClass(context).execute();\n }", "private void getDataFromView() throws EmptyTextFieldException, EmptyChoiceBoxException, NumberSmallerOneException {\n\n date = _view.getDate().getValue();\n title = _view.getTitle().getText();\n function = _view.getFunction().getText();\n protagonist = _view.getProtagonist().getText();\n source = _view.getSource().getText();\n references = _view.getReferences().getText();\n description = _view.getDescription().getText();\n checkForEmptyFields();\n\n priority = _view.getPriorityMap().get(_view.getPriority().getValue());\n classification = _view.getClassificationMap().get(_view.getClassification().getValue());\n checkForEmptyChoiceBox();\n\n id = Integer.parseInt(_view.getId().getText());\n ftr = Integer.parseInt(_view.getFtr().getText());\n det = Integer.parseInt(_view.getDet().getText());\n checkForNumbersSmallerOne();\n }", "private void loadValues()\n {\n OperationSetBasicAutoAnswer opset = providerService\n .getOperationSet(OperationSetBasicAutoAnswer.class);\n OperationSetAdvancedAutoAnswer opSetAdvanced = providerService\n .getOperationSet(OperationSetAdvancedAutoAnswer.class);\n\n if(opset == null)\n return;\n\n noneRadio.setSelected(true);\n alwaysAnswerRadio.setSelected(\n opset.isAutoAnswerUnconditionalSet());\n\n if(opSetAdvanced != null)\n {\n if(opSetAdvanced.isAutoAnswerConditionSet())\n {\n String fName = opSetAdvanced.getAutoAnswerHeaderName();\n String fValue = opSetAdvanced.getAutoAnswerHeaderValue();\n if(AUTO_ALERT_INFO_NAME.equals(fName)\n && AUTO_ALERT_INFO_VALUE.equals(fValue))\n {\n alertInfoValue.setSelected(true);\n }\n else\n {\n customValueRadio.setSelected(true);\n headerNameField.setText(fName);\n\n if(StringUtils.isNotEmpty(fValue))\n headerValueField.setText(fValue);\n }\n\n }\n\n if(StringUtils.isNotEmpty(opSetAdvanced.getCallForward()))\n {\n callFwd.setSelected(true);\n callFwdNumberField.setText(opSetAdvanced.getCallForward());\n }\n }\n\n answerWithVideoCheckBox.setSelected(\n opset.isAutoAnswerWithVideoSet());\n }", "public List< T > getSelectedValuesChoices() {\r\n return selectedValuesChoices;\r\n }", "void generar_dialog_preguntas();", "public String[] getData()\n {\n System.out.println(data.getText().split(\", \"));\n return data.getText().split(\", \");\n }", "private String[] getData() {\n String[] results = new String[variables.length];\n\n for (int i = 0; i < textFields.length; ++i)\n {\n results[i] = textFields[i].getText();\n }\n return results;\n\n }", "public void onClick(DialogInterface dialog,int id) {\n ref_number = userInput.getText().toString();\n from_date = fromDateBox.getText().toString();\n to_date = toDateBox.getText().toString();\n new PostGetDepositsReportsClass(context).execute();\n }", "List getValues();", "@Override \r\n \tprotected IDialogSettings getDialogSettings() {\n \t\tIDialogSettings temp = super.getDialogSettings();\t\r\n \t\treturn temp;\r\n \t}", "private void RetrieveEditTextData() {\n\n strFirstName = etFirstName.getText().toString();\n strMiddleName = etMiddleName.getText().toString();\n strLastName = etLastName.getText().toString();\n strEmployId = etEmployId.getText().toString();\n strDesignation = etDesignation.getText().toString();\n strCompName = etCompName.getText().toString();\n strCategory = etCategory.getText().toString();\n strDOB = etDOB.getText().toString();\n\n }", "public void onCreateDialogSingleChoice(List<String> list, final String title, int pos) {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n//Source of the data in the DIalog\n String[] array = list.toArray(new String[list.size()]);\n for (int i = 0; i < list.size(); i++) {\n array[i] = list.get(i);\n }\n// Set the dialog title\n builder.setTitle(title)\n\n// Specify the list array, the items to be selected by default (null for none),\n// and the listener through which to receive callbacks when items are selected\n .setSingleChoiceItems(array, pos, (dialog, which) -> {\n// TODO Auto-generated method stub\n\n\n })\n\n// Set the action buttons\n .setPositiveButton(\"Ok\", (dialog, id) -> {\n// User clicked OK, so save the result somewhere\n// or return them to the component that opened the dialog\n\n ListView lw = ((AlertDialog) dialog).getListView();\n Object checkedItem = lw.getAdapter().getItem(lw.getCheckedItemPosition());\n\n if (title.equalsIgnoreCase(\"Title\")) {\n vEdtTxtTitle.setText(checkedItem.toString());\n mSelectPosi = lw.getCheckedItemPosition();\n } else if (title.equalsIgnoreCase(\"Security Question\")) {\n vEdtTxtSecurityQsn.setText(checkedItem.toString());\n mSelectPosiSecurity = lw.getCheckedItemPosition();\n }\n\n Log.d(getLocalClassName(), \" Selected Item \" + checkedItem.toString());\n// ad.dismiss();\n dialog.dismiss();\n\n })\n .setNegativeButton(\"Cancel\", (dialog, id) -> {\n// ad.dismiss();\n dialog.dismiss();\n });\n builder.show();\n }", "void dailod_dab() {\n AlertDialog.Builder alertdialogbuilder = new AlertDialog.Builder(MainActivity.this);\n\n\n alertdialogbuilder.setTitle(\"Select A slot \");\n\n\n alertdialogbuilder.setItems(value1, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n String slt = Arrays.asList(value1).get(which);\n //slot=lis.get(which);\n\n db.opendb();\n String mnoo = db.get_Mobileno();\n String passs = db.get_PASS();\n if (mnoo != null && mnoo.length() > 0 && passs != null && passs.length() > 0) {\n sendSMS(mnoo, \"DB\" + slt + \" \" + passs);\n Toast.makeText(getApplicationContext(), slt, Toast.LENGTH_LONG).show();\n }\n // textview.setText(selectedText);\n\n }\n });\n\n AlertDialog dialog = alertdialogbuilder.create();\n\n dialog.show();\n }", "public Dialog onCreateDialogSingleChoice() {\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(this);\n\t\t// Source of the data in the DIalog\n\t\tfinal String[] arr = new String[] { \"Completed\", \"Pending\",\n\t\t\t\t\"In progress\", \"Cancelled\" };\n\n\t\tfinal List<String> str1 = new ArrayList<String>();\n\n\t\t// Set the dialog title\n\t\tbuilder.setTitle(\"UpdateStatus\")\n\t\t\t\t// Specify the list array, the items to be selected by default\n\t\t\t\t// (null for none),\n\t\t\t\t// and the listener through which to receive callbacks when\n\t\t\t\t// items are selected\n\t\t\t\t.setSingleChoiceItems(arr, 0,\n\t\t\t\t\t\tnew DialogInterface.OnClickListener() {\n\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\n\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\tLog.d(Config.TAG,\n\t\t\t\t\t\t\t\t\t\t\"insdie onclick dialog interface which pos\"\n\t\t\t\t\t\t\t\t\t\t\t\t+ which);\n\t\t\t\t\t\t\t\tfor (String str : arr) {\n\t\t\t\t\t\t\t\t\tif(which>=0){\n\t\t\t\t\t\t\t\t\tstr = arr[which];\n\t\t\t\t\t\t\t\t\tstr1.add(str);\n\t\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t\tstr = arr[2];\n\t\t\t\t\t\t\t\t\t\tstr1.add(str);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t})\n\n\t\t\t\t// Set the action buttons\n\t\t\t\t.setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int id) {\n\t\t\t\t\t\tLog.d(Config.TAG,\n\t\t\t\t\t\t\t\t\"insdie onclick dialog interface which pos okay button\"\n\t\t\t\t\t\t\t\t\t\t+ id+\"STR! = \"+str1);\n\t\t\t\t\t\tif(id==-1){\n\t\t\t\t\t\t\tif(str1.size()>0){\n\t\t\t\t\t\tString str = str1.get(0);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\tLog.d(Config.TAG, \"@@@@@@@@@@@@@@\"+str);\n\t\t\t\t\t\tnew UpdateStatus(str).execute();\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tString str = \"Completed\";\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tLog.d(Config.TAG, \"@@@@@@@@@@@@@@\"+str);\n\t\t\t\t\t\t\t\tnew UpdateStatus(str).execute();\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\t.setNegativeButton(\"Cancel\",\n\t\t\t\t\t\tnew DialogInterface.OnClickListener() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int id) {\n\t\t\t\t\t\t\t\tLog.d(Config.TAG,\n\t\t\t\t\t\t\t\t\t\t\"insdie onclick dialog interface which pos cancel button\"\n\t\t\t\t\t\t\t\t\t\t\t\t+ id);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\n\t\treturn builder.create();\n\t}", "public void createControl() {\n Button button1 = new Button(getShell(), SWT.PUSH);\n button1.setText(\"PolicyValueSelectionDialog with valid\\n\" +\n \"selection element at construction\");\n\n final PolicyValueSelectionDialog dialog1 =\n new PolicyValueSelectionDialog(button1.getShell(),\n \"myPolicy1\", selectionElement1);\n button1.addSelectionListener(new SelectionAdapter() {\n public void widgetSelected(SelectionEvent e) {\n dialog1.open();\n String[] results = (String[]) dialog1.getResult();\n if (results != null) {\n System.out.println(\"You chose:\");\n for (int i = 0; i < results.length; i++) {\n System.out.println(results[i]);\n }\n } else {\n System.out.println(\"You chose nothing\");\n }\n }\n });\n dialog1.setInitialSelections(new String[]{\"choice7\", \"choice3\"});\n\n Button button2 = new Button(getShell(), SWT.PUSH);\n button2.setText(\"PolicyValueSelectionDialog with invalid\\n\" +\n \"selection element at construction\");\n\n final PolicyValueSelectionDialog dialog2 =\n new PolicyValueSelectionDialog(button1.getShell(),\n \"myPolicy2\", selectionElement2);\n button2.addSelectionListener(new SelectionAdapter() {\n public void widgetSelected(SelectionEvent e) {\n dialog2.open();\n String[] results = (String[]) dialog2.getResult();\n if (results != null) {\n System.out.println(\"You chose:\");\n for (int i = 0; i < results.length; i++) {\n System.out.println(results[i]);\n }\n } else {\n System.out.println(\"You chose nothing\");\n }\n }\n });\n\n\n }", "public List< T > getSelectedValuesChoicesObject() {\r\n return this.selectedValuesChoices;\r\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n input_prac_type.setText(renewal[which]);\n Currentitem = mParam1.get(which);\n Log.e(\"equipment select\",Currentitem.name);\n input_prac_price.setText(\"RM\"+String.valueOf(mParam1.get(which).price));\n\n\n }", "public String getValue_click_CloseModal_Button(){\r\n\t\treturn click_CloseModal_Button.getAttribute(\"value\");\r\n\t}", "public ValuesDialog(java.awt.Frame parent, boolean modal)\r\n {\r\n super(parent, modal);\r\n initComponents();\r\n initAll();\r\n }", "public void getDataForActionDialog() {\n mListForActionDialog.clear();\n if (mAction.equals(ConstantsManager.CONVERTER_ACTION_PURCHASE)) {\n mListForActionDialog.add(new RecyclerViewDataDialogList(true,\n mPurchaseTitle, mPurchaseTitle, mPurchaseTitle));\n mListForActionDialog.add(new RecyclerViewDataDialogList(false,\n mSaleTitle, mSaleTitle, mSaleTitle));\n } else {\n mListForActionDialog.add(new RecyclerViewDataDialogList(false,\n mPurchaseTitle, mPurchaseTitle, mPurchaseTitle));\n mListForActionDialog.add(new RecyclerViewDataDialogList(true,\n mSaleTitle, mSaleTitle, mSaleTitle));\n }\n }", "public Dialog onCreateDialogSingleChoice() {\n AlertDialog.Builder builder = new AlertDialog.Builder(context);\n \t//Source of the data in the DIalog\n \t\n\n \t// Set the dialog title\n \tbuilder.setTitle(R.string.dtitle)\n \t// Specify the list array, the items to be selected by default (null for none),\n \t// and the listener through which to receive callbacks when items are selected\n \t.setSingleChoiceItems(items, choice, new DialogInterface.OnClickListener() {\n\n \t@Override\n \tpublic void onClick(DialogInterface dialog, int which) {\n \t// TODO Auto-generated method stub\n myPref.setSummary(items[which]);\n switch(which)\n {\n case 0:\n editor.putInt(\"Theme\",R.style.AppThemeRed);\n editor.putInt(\"Choice\",which);\n editor.commit();\n break;\n case 1:\n editor.putInt(\"Theme\",R.style.AppThemeBlue);\n editor.putInt(\"Choice\",which);\n editor.commit();\n break;\n case 2:\n editor.putInt(\"Theme\",R.style.AppThemePurple);\n editor.putInt(\"Choice\",which);\n editor.commit();\n break;\n case 3:\n editor.putInt(\"Theme\",R.style.AppThemeGreen);\n editor.putInt(\"Choice\",which);\n editor.commit();\n break;\n case 4:\n editor.putInt(\"Theme\",R.style.AppThemeOrange);\n editor.putInt(\"Choice\",which);\n editor.commit();\n break;\n case 5:\n editor.putInt(\"Theme\",R.style.AppThemeGrey);\n editor.putInt(\"Choice\",which);\n editor.commit();\n break;\n }\n\n \t}\n \t})\n\n \t// Set the action buttons\n \t.setPositiveButton(R.string.dok, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int id) {\n // User clicked OK, so save the result somewhere\n // or return them to the component that opened the dialog\n //Preferences.restart();\n //theme = sharedPreferences.getInt(\"Theme\", R.style.AppThemeRed);\n startActivity(new Intent(context, Preferences.class));\n }\n })\n \t.setNegativeButton(R.string.dcancel, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int id) {\n\n }\n });\n\n \treturn builder.create();\n \t}", "public static void getDataWithDialogs(ChampionSelectGUI t) {\n\t\tJDialog sND = createSummonerNameDialog(t);\n\t\tsND.setVisible(true);\n\t\tJDialog rD = createRegionDialog(t);\n\t\trD.setVisible(true);\n\t\tJDialog roleD = createRoleDialog(t);\n\t\troleD.setVisible(true);\n\t\tJDialog teamD = createTeamDialog(t);\n\t\tteamD.setVisible(true);\n\t}", "@Override\n\tpublic Dialog onCreateDialog(Bundle savedInstanceState) {\n\t\t\n\t\t// get data from arguments\n\t\tBundle bundle = getArguments();\n\t\tString[] ids = bundle.getStringArray(\"ids\");\n\t\tString[] names = bundle.getStringArray(\"names\");\n\t\tboolean dismiss = bundle.getBoolean(\"dismiss\");\n\t\t\n\t\tif(ids.length!=names.length) return null;\n\t\t\n\t\tPopUpRow[] rows = new PopUpRow[ids.length];\n\t\tfor(int i=0; i<ids.length; i++) {\n\t\t\trows[i] = new PopUpRow(ids[i], names[i]);\n\t\t}\n\t\t\n\t\tPopUpAdapter adapter = new PopUpAdapter(this.getActivity(), R.layout.fragment_dialog, rows);\n\t\t\n\t\t// format and build and return the dialog\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder( getActivity(), AlertDialog.THEME_DEVICE_DEFAULT_DARK);\n\t\tbuilder.setTitle(\"PROXIMITY UPDATE\");\n\t\tbuilder.setNeutralButton(\"DISMISS\",\n\t\t\t\t(new DialogInterface.OnClickListener() {\n\t\t\t\t\t\n\t\t\t\t\tprivate boolean closeActivity;\n\t\t\t\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int id) {\n\t\t\t\t\t\tbuttonSelected(closeActivity);\n\t\t\t\t\t}\n\n\t\t\t\t\tpublic boolean getCloseActivity() {\n\t\t\t\t\t\treturn closeActivity;\n\t\t\t\t\t}\n\n\t\t\t\t\tpublic DialogInterface.OnClickListener setCloseActivity(boolean closeActivity) {\n\t\t\t\t\t\tthis.closeActivity = closeActivity;\n\t\t\t\t\t\treturn this;\n\t\t\t\t\t}\n\t\t\t\t}).setCloseActivity(dismiss));\n\t\t\n\t\tbuilder.setAdapter(adapter, new DialogInterface.OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tLog.d(TAG, dialog.toString()+\" ::: \"+which); // TODO make useful\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tdialog = builder.create();\n\t\treturn dialog;\n\t}", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n LayoutInflater inflater = getActivity().getLayoutInflater();\n view = inflater.inflate(R.layout.fragment_intervall_picker, null);\n\n //Initialisierung SharedPreferences plus Editor\n SharedPreferences mSharedPreferences = PreferenceManager.getDefaultSharedPreferences(getActivity());\n int standartAnzahl = mSharedPreferences.getInt(getString(R.string.sharedAnzahl), 1);\n long standartIntervall = mSharedPreferences.getLong(getString(R.string.sharedIntervall), 0);\n //set up number picker\n np = view.findViewById(R.id.np);\n np.setMinValue(1);\n np.setMaxValue(5);\n np.setWrapSelectorWheel(false);\n np.setValue(standartAnzahl);\n\n //set up number picker2\n np2 = view.findViewById(R.id.np2);\n np2.setMinValue(0);\n np2.setMaxValue(10);\n np2.setValue((int) (standartIntervall / 60000));\n\n return new AlertDialog.Builder(getActivity()).setView(view)//Nicht zwei mal inflaten!!!!!!!!!\n .setTitle(R.string.Alarmintervall_Auswählen)\n .setPositiveButton(R.string.ok, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int whichButton) {\n //Intervall daten an Host schicken\n\n //Wenn nur einmal: intervall 0, aber anzahl 3 genommen\n if(np.getValue() == 1 || np2.getValue() == 0){\n mOnIntervallChoosen.sendIntervall(1, 0);\n }else{\n mOnIntervallChoosen.sendIntervall(np.getValue(), np2.getValue() * 60000);\n }\n }\n }\n )\n .setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int whichButton) { }\n }\n )\n .create();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n input_prac_type.setText(renewal[which]);\n Currentitem = mParam1.get(which);\n input_prac_price.setText(\"RM\"+String.valueOf(mParam1.get(which).price));\n Log.e(\"equipment select\",Currentitem.name);\n }", "@Override\n public Dialog onCreateDialog(int id) {\n switch (id) {\n\n case QUALIFICATION_ALERTDIALOG:\n\n AlertDialog.Builder builder1 = new AlertDialog.Builder(UpdateProfileActivity.this)\n .setTitle(\"Job Type\")\n .setSingleChoiceItems(qualificationList, -1, new DialogInterface.OnClickListener() {\n\n @Override\n public void onClick(DialogInterface dialog, int which) {\n // TODO Auto-generated method stub\n // Toast.makeText(getApplicationContext(),\"The selected\" + experienceList[which], Toast.LENGTH_LONG).show();\n etQualification.setText(qualificationList[which]);\n //dismissing the dialog when the user makes a selection.\n dialog.dismiss();\n }\n });\n AlertDialog alertdialog1 = builder1.create();\n return alertdialog1;\n\n\n }\n return null;\n\n }", "private Bundle sendHabitInfoToDialog() {\n Bundle bundle = new Bundle();\n ArrayList<String> list = new ArrayList<>();\n list.add(habit_type.getTitle());\n bundle.putString(\"Title\", habit_type.getTitle());\n bundle.putSerializable(\"Habit Type\", list);\n\n return bundle;\n }", "public void mostrarDetallesCompra(View view) {\n AlertDialog alertDialog = new AlertDialog.Builder(context).create();\n LayoutInflater inflater = this.getLayoutInflater();\n View dialogView = inflater.inflate(R.layout.dialog_detalles_compra, null);\n alertDialog.setView(dialogView);\n TextView textViewTotal = (TextView) dialogView.findViewById(R.id.total);\n textViewTotal.append(compraEncontrada.getTotal());\n\n TextView textViewSubtotal = (TextView) dialogView.findViewById(R.id.subtotal);\n textViewSubtotal.append(compraEncontrada.getSubtotal());\n\n\n alertDialog.setButton(AlertDialog.BUTTON_NEUTRAL, \"OK\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n });\n alertDialog.show();\n\n }", "public void getDataFromCommands(ActionEvent event) throws Exception {\n\n\n SubmitFromCommand.setOnAction(e -> {\n first_name = FirstNameInput.getText();\n last_name = LastNameInput.getText();\n Amount = AmountInput.getText();\n Date = DateInput.getText();\n });\n\n }", "public String getDialogTitle(){\n return getField().getDialogTitle();\n }", "public Stack<Dialogo> getDialoghi()\n {\n return dtGraber.getDialoghi(infoDialog);\n }", "public java.lang.Object[] getSelectPresentationValueList();", "Values values();", "public void onClick(DialogInterface dialog,int id) {\n ref_number = userInput.getText().toString();\n from_date = fromDateBox.getText().toString();\n to_date = toDateBox.getText().toString();\n new PostGetLoanReportsClass(context).execute();\n }", "PreferenceEntryValuesAttribute getEntryValues();", "private void setValues() {\n textViewPrice = findViewById(R.id.textViewPrice);\n textViewStoreName = findViewById(R.id.textViewStoreName);\n textViewLocation = findViewById(R.id.textViewLocation);\n buttonAcceptOrder = findViewById(R.id.buttonAcceptOrder);\n\n order = Parcels.unwrap(getIntent().getParcelableExtra(Order.class.getSimpleName()));\n\n textViewPrice.setText(\"$\" + decimalFormat.format(order.getPrice()));\n textViewStoreName.setText(\"Store: \"+ order.getStore().getName());\n textViewLocation.setText(\"Address: \" + order.getStore().getAddress());\n }", "private void populateFields() {\n\n if (mReportCursor == null) {\n return;\n }\n\n Cursor c = mReportCursor;\n mValueText.setText(c.getString(c.getColumnIndexOrThrow(ReportPeer.KEY_VALUE)));\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n getCariSemua();\n//\n }", "String dialogQuery(String msg, String defaultValue, String optionValues[],\n int nOptions)\n { /* dialogQuery */\n this.sleepFlag= true;\t/* flag for waiting */\n this.data= defaultValue;\t/* save default */\n \n /* save the new list */\n this.optionValues= optionValues;\n this.nOptions= nOptions;\n \n updatePopupDialog(msg, defaultValue, optionValues,nOptions); /* do it */\n \n return(data);\t\t/* return string */\n }", "public void getValue(View view) {\r\n Intent intent = new Intent(MainActivity.this, Output.class);\r\n titleM = findViewById(R.id.title_main);\r\n productNameM = findViewById(R.id.product_name_main);\r\n productNumberM = findViewById(R.id.product_number_main);\r\n\r\n //getting the texts\r\n\r\n if (titleM == null || productNameM == null) {\r\n Toast.makeText(getApplicationContext(), \"Please enter a value to continue\", Toast.LENGTH_SHORT).show();\r\n } else if(productNumberM.getText().length()==0){\r\n Toast.makeText(getApplicationContext(), \"Please enter a value to continue\", Toast.LENGTH_SHORT).show();\r\n }else if(dynamicEditTexts.isEmpty()) {\r\n Toast.makeText(getApplicationContext(), \"Please enter a value to continue\", Toast.LENGTH_SHORT).show();\r\n }else{\r\n String Title = titleM.getText().toString();\r\n String PName = productNameM.getText().toString();\r\n double PNumber = Double.parseDouble(productNumberM.getText().toString());\r\n\r\n // ******** FOR THE DYNAMIC EDITEXT FIELDS ************\r\n String[] inputItems = new String[dynamicEditTexts.size()];\r\n for (int j = 0; j < dynamicEditTexts.size(); j++) {\r\n inputItems[j] = dynamicEditTexts.get(j).getText().toString();\r\n }\r\n intent.putExtra(\"dynamicData\", inputItems);\r\n\r\n\r\n //Sending the Static fields to the output\r\n intent.putExtra(\"title\", Title);\r\n intent.putExtra(\"pname\", PName);\r\n intent.putExtra(\"pnumber\", PNumber);\r\n startActivity(intent);\r\n finish();\r\n }\r\n }", "private void getIntentValues() {\n\n// itemname= getIntent().getExtras().getString(IntentsConstants.item_name);\n// itemPrice = getIntent().getExtras().getDouble(IntentsConstants.item_price);\n Bundle bundle = getArguments();\n menusItem= (MenusItem) bundle.getSerializable(\"Item\");\n itemname=menusItem.getName();\n itemPrice=menusItem.getPrice();\n\n}", "private void getDataView() {\n demanda = Double.parseDouble(jSpinner1.getValue().toString());\n costoPedido = Double.parseDouble(jSpinner2.getValue().toString());\n costoUnitario = Double.parseDouble(jSpinner3.getValue().toString());\n costoMantenimiento = Double.parseDouble(jSpinner4.getValue().toString());\n }", "String getTextValue();", "public ArrayList<String> getValue() {\n\n\t\tArrayList<String> value = new ArrayList<String>();\n\t\tfor (int row = 0; row < field.getRowCount(); row++) {\n\t\t\tString id = field.getText(row, 1);\n\t\t\tCheckBox cb = (CheckBox) field.getWidget(row, 2);\n\t\t\tif (cb.getValue()) {value.add(id);}\n\t\t}\n\t\treturn value;\n\t}", "private void dialog() {\n\t\tGenericDialog gd = new GenericDialog(\"Bildart\");\n\t\t\n\t\tgd.addChoice(\"Bildtyp\", choices, choices[0]);\n\t\t\n\t\t\n\t\tgd.showDialog();\t// generiere Eingabefenster\n\t\t\n\t\tchoice = gd.getNextChoice(); // Auswahl uebernehmen\n\t\t\n\t\tif (gd.wasCanceled())\n\t\t\tSystem.exit(0);\n\t}", "public void onClick(DialogInterface dialog, int item) {\n ed_select_bloddgroup.setText(select_dropdownvalue[item]);\n String selectedvalue = select_dropdownvalue[item];\n Log.e(\"Religion\", selectedvalue);\n blood_group_id = getID(selectedvalue);\n AppController.blood_groupId = blood_group_id;\n Log.e(\"blood_group_id\", blood_group_id);\n\n\n dialog.dismiss();\n\n }", "protected void dialog() {\n TextInputDialog textInput = new TextInputDialog(\"\");\n textInput.setTitle(\"Text Input Dialog\");\n textInput.getDialogPane().setContentText(\"Nyt bord nr: \");\n textInput.showAndWait()\n .ifPresent(response -> {\n if (!response.isEmpty()) {\n newOrderbutton(response.toUpperCase());\n }\n });\n }", "public void getData() {\n if (action.getName() != null) {\n wName.setText(action.getName());\n }\n wServerName.setText(Const.NVL(action.getServerName(), \"\"));\n wUserName.setText(Const.NVL(action.getUserName(), \"\"));\n wPassword.setText(Const.NVL(action.getPassword(), \"\"));\n wCommand.setText(Const.NVL(action.getCommand(), \"\"));\n wProxyHost.setText(Const.NVL(action.getProxyHost(), \"\"));\n wProxyPort.setText(Const.NVL(action.getProxyPort(), \"\"));\n\n wName.selectAll();\n wName.setFocus();\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n\n /* I'm using SharedPreferences as a simple way to store key value sets\n */\n SharedPreferences sharedPref = getActivity().getSharedPreferences(\"mesprefs\", Context.MODE_PRIVATE);\n final SharedPreferences.Editor editor = sharedPref.edit();\n\n\n // Set the dialog title\n builder.setTitle(\"My Preferences\")\n // Specify the list array, the items to be selected by default (null for none),\n // and the listener through which to receive callbacks when items are selected\n .setMultiChoiceItems(R.array.prefs_array, null,\n new DialogInterface.OnMultiChoiceClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which,\n boolean isChecked) {\n if (isChecked) {\n // If the user checked the item, add it to the selected items\n mSelectedItems.add(which);\n } else if (mSelectedItems.contains(which)) {\n // Else, if the item is already in the array, remove it\n mSelectedItems.remove(Integer.valueOf(which));\n }\n }\n })\n // Set the action buttons\n .setPositiveButton(\"Save\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int id) {\n // User clicked OK, so save the mSelectedItems results somewhere\n // or return them to the component that opened the dialo\n Iterator ite = mSelectedItems.listIterator();\n while(ite.hasNext()) {\n\n int pref_int = ((Integer )(ite.next())).intValue();\n switch (pref_int){\n case 0 :\n editor.putString(getString(R.string.pref_1), getString(R.string.pref_1));\n Log.i(\"info\", \"Preference 1\");\n break;\n case 1 :\n editor.putString(getString(R.string.pref_2), getString(R.string.pref_2));\n Log.i(\"info\", \"Preference 2\");\n break;\n case 2 :\n editor.putString(getString(R.string.pref_3), getString(R.string.pref_3));\n Log.i(\"info\", \"Preference 3\");\n break;\n\n }\n }\n editor.commit();\n }\n })\n .setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int id) {\n\n }\n });\n\n\n\n\n return builder.create();\n\n }", "@Override\n\tpublic Object[] obtenerDatos() {\n\t\tObject[] datos = new Object[2];\n\t\t\n\t\tdatos[0] = this.jComboBoxPeliculas.getSelectedItem();\n\t\tdatos[1] = this.jComboBoxValoraciones.getSelectedItem();\n\t\t\n\t\treturn datos;\n\t}", "private void launchTextConfirmationDialog(final int storeId, Intent data) {\n final Bundle capturedArgs = data.getBundleExtra(\"data\");\n\n //get the keys and values and build a message\n StringBuilder message = new StringBuilder();\n if (capturedArgs != null) {\n for (String key: capturedArgs.keySet()) {\n String value = capturedArgs.get(key).toString();\n message.append(key.toUpperCase() + \": \" + value + \"\\n\");\n\n }\n }\n\n\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"Are these values correct?\")\n .setMessage(message)\n .setPositiveButton(\"yes\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n Log.d(\"Dialog\", \"Captured values are correct\");\n dialog.dismiss();\n //Add store id to identify whose these fields are from\n capturedArgs.putInt(Store.KEY_FIELD_STORE_ID, storeId);\n submitSurvey(capturedArgs);\n\n }\n })\n .setNegativeButton(\"no\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n Log.d(\"Dialog\", \"Captured values are NOT correct\");\n dialog.dismiss();\n startOcrCaptureActivity(storeId);\n\n\n }\n })\n .show();\n\n }", "public void onClick(DialogInterface dialogBox, int id) {\n map.put(\"status\", \"Đang di chuyển\");\n map.put(\"message\", userInputDialogEditText.getText().toString());\n map.put(\"time\", DateFormat.getDateTimeInstance().format(new Date()));\n reference1.push().setValue(map);\n }", "private void collectValuesForSettings() {\n portColumnsValue = (portColumns.getProgress());\n portRowsValue = (portRows.getProgress());\n landColumnsValue = (landColumns.getProgress());\n landRowsValue = (landRows.getProgress());\n }", "TemplateModel[] getValues();", "private String getResult(TextInputDialog dialog, String original){\n\t\tOptional<String> output = dialog.showAndWait();\n\t\tif(output.isPresent()){\n\t\t\ttry{\n\t\t\t\tDouble.parseDouble(output.get());\n\t\t\t}\n\t\t\tcatch(NumberFormatException nfe){\n\t\t\t\tdialog.setHeaderText(\"Invalid value!\");\n\t\t\t\treturn getResult(dialog, original);\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\treturn original;\n\t\t}\n\t\treturn output.get();\n\t}", "public void handleResultShow(){\n\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"Make a selection\");\n\n //create the String[] to display the search result to user\n final CharSequence[] sArray = new CharSequence[searchResult.size()];\n for (int i = 0; i < searchResult.size(); i++){\n sArray[i] = searchResult.get(i).getSymbolwithName();\n }\n builder.setItems(sArray, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n //add the selection stock to main page\n validateAdd(searchResult.get(which));\n updatePrice();\n }\n });\n\n builder.setNegativeButton(\"Nevermind\", null);\n AlertDialog dialog = builder.create();\n dialog.show();\n\n }", "public String[] getValues()\n {\n return values;\n }", "DialogResult show();", "@Test\n public void value() {\n assertEquals(\"4\", onPage.get(\"select\").withName(\"plain_select\").value());\n // Get the first selected value for a multiple select\n assertEquals(\"2\", onPage.get(\"select\").withName(\"multiple_select\").value());\n // Get the value of the option\n assertEquals(\"1\", onPage.get(\"select\").withName(\"plain_select\").get(\"option\").value());\n assertEquals(\" The textarea content. \", onPage.get(\"textarea\").value());\n assertEquals(\"Enter keywords here\", onPage.get(\"#keywords\").value());\n // Checkboxes and radiobuttons simply return the value of the first element,\n // not the first checked element\n assertEquals(\"google\", onPage.get(\"input\").withName(\"site\").value());\n }", "public Map<String, Object> getComponentValue() {\n return FxSharedUtils.getMappedFunction(new FxSharedUtils.ParameterMapper<String, Object>() {\n @Override\n public Object get(Object key) {\n final UIInput component = (UIInput) getCurrentInstance().getViewRoot().findComponent((String) key);\n return component.getSubmittedValue() != null ? component.getSubmittedValue() : component.getValue();\n }\n });\n }", "private void onValider() {\n recuperation​(Reponse.getText());\r\n\r\n }", "public String pedirDato() \r\n\t{\r\n\t\treturn (JOptionPane.showInputDialog(null,\"Ingrese un dato\",\"Titulo del InputDialog\",JOptionPane.INFORMATION_MESSAGE));\r\n\t}", "public void displayCitylist(){\n final CharSequence[] items = {\" Banglore \", \" Hyderabad \", \" Chennai \", \" Delhi \", \" Mumbai \", \" Kolkata \", \"Ahmedabad\"};\n\n // Creating and Building the Dialog\n AlertDialog.Builder builder = new AlertDialog.Builder(context);\n builder.setTitle(\"Select Your City\");\n //final AlertDialog finalLevelDialog = levelDialog;\n //final AlertDialog finalLevelDialog = levelDialog;\n builder.setSingleChoiceItems(items, -1, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int item) {\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(getActivity());\n SharedPreferences.Editor editor1 = preferences.edit();\n\n switch (item) {\n case 0: {\n editor1.putInt(\"Current_city\", preferences.getInt(\"BLR\", 25));\n editor1.putFloat(\"nightfare\", 0.5f);\n editor1.putInt(\"min_distance\", 2000);\n editor1.putInt(\"perkm\", 11);\n editor1.apply();\n Log.d(\"Banglore\", \"\" + preferences.getInt(\"BLR\", 25));\n Log.d(\"Cur\", \"\" + preferences.getInt(\"Current_city\", 25));\n citySelected.setText(\"City: Bangalore\");\n break;\n }\n case 1: {\n editor1.putInt(\"Current_city\", preferences.getInt(\"HYD\", 20));\n editor1.putFloat(\"nightfare\", 0.5f);\n editor1.putInt(\"min_distance\", 1600);\n editor1.putInt(\"perkm\", 11);\n editor1.apply();\n Log.d(\"HYD\", \"\" + preferences.getInt(\"HYD\", 20));\n Log.d(\"Cur\", \"\" + preferences.getInt(\"Current_city\", 20));\n citySelected.setText(\"City: Hyderabad\");\n break;\n }\n case 2: {\n editor1.putInt(\"Current_city\", preferences.getInt(\"CHE\", 25));\n editor1.putFloat(\"nightfare\", 0.5f);\n editor1.putInt(\"min_distance\", 1800);\n editor1.putInt(\"perkm\", 12);\n editor1.apply();\n Log.d(\"CHE\", \"\" + preferences.getInt(\"CHE\", 25));\n Log.d(\"Cur\", \"\" + preferences.getInt(\"Current_city\", 25));\n citySelected.setText(\"City: Chennai\");\n break;\n }\n case 3: {\n editor1.putInt(\"Current_city\", preferences.getInt(\"DEL\", 25));\n editor1.putFloat(\"nightfare\", 0.25f);\n editor1.putInt(\"min_distance\", 2000);\n editor1.putInt(\"perkm\", 8);\n editor1.apply();\n citySelected.setText(\"City: Delhi\");\n break;\n }\n case 4: {\n editor1.putInt(\"Current_city\", preferences.getInt(\"MUM\", 18));\n editor1.putFloat(\"nightfare\", 0.25f);\n editor1.putInt(\"min_distance\", 1500);\n editor1.putInt(\"perkm\", 11);\n editor1.apply();\n Log.d(\"MUM\", \"\" + preferences.getInt(\"MUM\", 25));\n Log.d(\"Cur\", \"\" + preferences.getInt(\"Current_city\", 25));\n citySelected.setText(\"City: Mumbai\");\n break;\n }\n case 5: {\n editor1.putInt(\"Current_city\", preferences.getInt(\"KOL\", 25));\n editor1.putFloat(\"nightfare\", 0.0f);\n editor1.putInt(\"min_distance\", 2000);\n editor1.putInt(\"perkm\", 12);\n editor1.apply();\n Log.d(\"KOL\", \"\" + preferences.getInt(\"KOL\", 25));\n Log.d(\"Cur\", \"\" + preferences.getInt(\"Current_city\", 25));\n citySelected.setText(\"City: Kolkata\");\n break;\n }\n case 6: {\n editor1.putInt(\"Current_city\", preferences.getInt(\"AMD\", 11));\n editor1.putFloat(\"nightfare\", 0.25f);\n editor1.putInt(\"min_distance\", 1400);\n editor1.putInt(\"perkm\", 8);\n editor1.apply();\n Log.d(\"AMD\", \"\" + preferences.getInt(\"AMD\", 11));\n Log.d(\"Cur\", \"\" + preferences.getInt(\"Current_city\", 11));\n citySelected.setText(\"City: Ahmedabad\");\n break;\n }\n default:\n editor1.putInt(\"Current_city\", preferences.getInt(\"BLR\", 25));\n editor1.putInt(\"min_distance\", 2000);\n editor1.putFloat(\"nightfare\", 0.5f);\n editor1.putInt(\"perkm\", 11);\n editor1.apply();\n citySelected.setText(\"City: Bangalore\");\n }\n levelDialog.dismiss();\n }\n });\n levelDialog = builder.create();\n levelDialog.show();\n }", "private ArrayList<String> getNames() {\n\t\tNameDialog n = new NameDialog();\n\t\tnameList = new ArrayList<String>();\n\t\ttry {\n\t\t\tnameList = n.getNames(inputs[1]);\n\t\t}catch(GameException ex) {\n\t\t\tview.close();\n\t\t\tmenuStage.show();\n\t\t}\n\t\treturn nameList;\n\t}", "public void onClick(DialogInterface dialogBox, int id) {\n map.put(\"status\", \"Đợi thiết bị\");\n map.put(\"message\", userInputDialogEditText.getText().toString());\n map.put(\"time\", DateFormat.getDateTimeInstance().format(new Date()));\n reference1.push().setValue(map);\n }", "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n devicename.add(edit.getText().toString());\n\t\t\t\tdevice = edit.getText().toString();\n\t\t\t\tshowdialog_sum();\n\t\t\t}", "private void handleInsurancePop() {\n\t\tShell shell = new Shell(parent.getShell(), SWT.PRIMARY_MODAL | SWT.TOP);\n\t\tComposite composite = null;\n\t\ttry {\n\t\t\tif (null != composite && !composite.isDisposed()) {\n\t\t\t\tcomposite.dispose();\n\t\t\t}\n\n\t\t\tValueRangeComposite valueRangePop = (new ValueRangeComposite(shell, SWT.BORDER, \"quotation\", 70, insuranceDTO));\n\t\t\tcomposite = valueRangePop.loadComposite();\n\t\t\tinsuranceDTO = valueRangePop.insuranceDTO;\n\t\t} catch (Exception exception) {\n\t\t\texception.printStackTrace();\n\t\t}\n\t}", "public void doUpdate() {\n Map<String, List<String>> dataToSend = new HashMap<>();\r\n List<String> values = new ArrayList<>();\r\n values.add(String.valueOf(selectedOhsaIncident.getId()));\r\n dataToSend.put(\"param\", values);\r\n showDialog(dataToSend);\r\n }", "private void mostrarDialogoCargar(){\n materialDialog = new MaterialDialog.Builder(this)\n .title(\"Validando datos\")\n .content(\"Por favor espere\")\n .progress(true, 0)\n .contentGravity(GravityEnum.CENTER)\n .widgetColorRes(R.color.colorPrimary)\n .show();\n\n materialDialog.setCancelable(false);\n materialDialog.setCanceledOnTouchOutside(false);\n }", "public void onClick(DialogInterface dialogBox, int id) {\n map.put(\"status\", \"Đang sửa chữa\");\n map.put(\"message\", userInputDialogEditText.getText().toString());\n map.put(\"time\", DateFormat.getDateTimeInstance().format(new Date()));\n reference1.push().setValue(map);\n }", "public String getValueFieldText() {\n return valueField.getText();\n }", "@Override\n public void onClick(View view) {\n ShowDialog(\"El Resultado es:\",BuildNumber(SpnC1.getSelectedItemPosition(),SpnC2.getSelectedItemPosition(),\n SpnC3.getSelectedItemPosition())+\" \"+GetTolerance(SpnC4.getSelectedItemPosition()));\n }", "public String getValue_txt_Pick_Up_Text(){\r\n\t\treturn txt_Pick_Up_Text.getAttribute(\"value\");\r\n\t}", "Object[] getValues();", "Object[] getValues();", "public void getCredentials(){\n System.out.println(\"Enter Your Credit Card Number\");\n setCreditCardNumber(Integer.parseInt(Menu.getScanner().nextLine()));\n System.out.println(\"Enter your billing address\");\n setBillingAddress(Menu.getScanner().nextLine());\n System.out.println(\"Enter your CVC\");\n setCvc(Integer.parseInt(Menu.getScanner().nextLine()));\n }", "private void createDialog() {\r\n final AlertDialog dialog = new AlertDialog.Builder(getActivity()).setView(R.layout.dialog_recorder_details)\r\n .setTitle(\"Recorder Info\").setPositiveButton(\"Start\", (dialog1, which) -> {\r\n EditText width = (EditText) ((AlertDialog) dialog1).findViewById(R.id.dialog_recorder_resolution_width);\r\n EditText height = (EditText) ((AlertDialog) dialog1).findViewById(R.id.dialog_recorder_resolution_height);\r\n CheckBox audio = (CheckBox) ((AlertDialog) dialog1).findViewById(R.id.dialog_recorder_audio_checkbox);\r\n EditText fileName = (EditText) ((AlertDialog) dialog1).findViewById(R.id.dialog_recorder_filename_name);\r\n mServiceHandle.start(new RecordingInfo(Integer.parseInt(width.getText().toString()), Integer.parseInt(height.getText().toString()),\r\n audio.isChecked(), fileName.getText().toString()));\r\n dialog1.dismiss();\r\n }).setNegativeButton(\"Cancel\", (dialog1, which) -> {\r\n dialog1.dismiss();\r\n }).show();\r\n Point size = new Point();\r\n getActivity().getWindowManager().getDefaultDisplay().getRealSize(size);\r\n ((EditText) dialog.findViewById(R.id.dialog_recorder_resolution_width)).setText(Integer.toString(size.x));\r\n ((EditText) dialog.findViewById(R.id.dialog_recorder_resolution_height)).setText(Integer.toString(size.y));\r\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n filename = getArguments().getString(\"filename\");\n username = getArguments().getString(\"username\");\n workingDIR = getArguments().getString(\"workingDIR\");\n builder.setTitle(R.string.copy_move_file_select_options_title)\n .setItems(R.array.file__move_copy_dialog_options, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n onSelect(which);\n }\n });\n return builder.create();\n }", "private void getValues() {\n session = new UserSession(getApplicationContext());\n\n //validating session\n session.isLoggedIn();\n\n //get User details if logged in\n HashMap<String, String> user = session.getUserDetails();\n\n shopname = user.get(UserSession.KEY_NAME);\n shopemail = user.get(UserSession.KEY_EMAIL);\n shopmobile = user.get(UserSession.KEY_MOBiLE);\n System.out.println(\"nameemailmobile \" + shopname + shopemail + shopmobile);\n }", "@Override\n public void onClick(DialogInterface dialog, int position) {\n tv.setText(String.valueOf(items[position]));\n\n String tag = tv.getTag().toString();\n\n switch (tag) {\n\n case \"district\":\n districtStr = String.valueOf(items[position]);\n break;\n\n case \"village\":\n villageStr = String.valueOf(items[position]);\n break;\n\n case \"ward\":\n wardStr = String.valueOf(items[position]);\n break;\n\n case \"category\":\n categoryStr = String.valueOf(items[position]);\n break;\n\n }\n\n }", "protected void buttonPressed(int buttonId) {\r\n if (buttonId == IDialogConstants.OK_ID) {\r\n value = text.getText();\r\n } else {\r\n value = null;\r\n }\r\n super.buttonPressed(buttonId);\r\n }" ]
[ "0.6403375", "0.63864243", "0.59708077", "0.5966252", "0.58965063", "0.5864706", "0.5822212", "0.5816672", "0.5794982", "0.576876", "0.57300425", "0.57290137", "0.56900716", "0.56634223", "0.56571037", "0.56476307", "0.561191", "0.5607164", "0.56056035", "0.5585204", "0.5561621", "0.5560463", "0.5557975", "0.55544686", "0.5527131", "0.5523918", "0.55202913", "0.5516768", "0.5495514", "0.5490347", "0.5485836", "0.54617065", "0.54579854", "0.54418975", "0.5441867", "0.5435941", "0.54208934", "0.54187214", "0.5417772", "0.5409783", "0.54087687", "0.5403069", "0.53964305", "0.5395824", "0.5389807", "0.5387326", "0.53839904", "0.53804266", "0.5367445", "0.53596735", "0.53538305", "0.53444743", "0.53426373", "0.5334565", "0.53092396", "0.5303463", "0.53009576", "0.5299685", "0.5298085", "0.5296877", "0.5294614", "0.5289368", "0.5287094", "0.52848494", "0.5282331", "0.52733016", "0.52652085", "0.52595216", "0.52590424", "0.5252973", "0.5248741", "0.52419174", "0.52348024", "0.52311707", "0.5227006", "0.5220932", "0.52199674", "0.52153236", "0.5205925", "0.52011687", "0.51950526", "0.51931036", "0.518459", "0.5172232", "0.5169973", "0.51639277", "0.5159089", "0.5156205", "0.51534104", "0.5146187", "0.51455534", "0.5143291", "0.5139595", "0.5138993", "0.5138993", "0.5136846", "0.5129609", "0.5126596", "0.5119729", "0.51161504", "0.5110963" ]
0.0
-1
Test of map method, of class Training.
@Test public void testMap() { System.out.println("map"); String line = "failed"; int expResult = 1; int result = Training.map(line); assertEquals(expResult, result); // TODO review the generated test code and remove the default call to fail. }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testMapGet() {\r\n }", "@Test\n\tpublic void testMaps() throws Exception {\n\t\ttestWith(TestClassMap.getInstance());\n\t}", "@Test\n @Override\n public void testMapGet() {\n }", "@Test\n\tpublic void testMapper() {\n\n\t\t/*\n\t\t * For this test, the mapper's input will be \"1 cat cat dog\" \n\t\t */\n\t\tmapDriver.withInput(new LongWritable(1), new Text(swedenHealth));\n\n\t\t/*\n\t\t * The expected output is \"cat 1\", \"cat 1\", and \"dog 1\".\n\t\t */\n\t\tmapDriver.withOutput(new Text(\"Sweden\"), new Text(\"1745.09564282 5218.86073424\"));\n\t\t/*\n\t\t * Run the test.\n\t\t */\n\t\tmapDriver.runTest();\n\t}", "@Test\n public void testSetMap() throws Exception {\n // Setup\n final int ID = 0;\n\n // Run the test\n modelUnderTest.setMap(ID);\n\n // Verify the results\n }", "@Test\n public void testMapCodeExamples() throws Exception {\n logger.info(\"Beginning testMapCodeExamples()...\");\n\n // Create an empty map\n Map<URL, Double> stocks = new Map<>();\n logger.info(\"Start with an empty map of stock prices: {}\", stocks);\n\n // Add some closing stock prices to it\n URL apple = new URL(\"http://apple.com\");\n stocks.setValue(apple, 112.40);\n URL google = new URL(\"http://google.com\");\n stocks.setValue(google, 526.98);\n URL amazon = new URL(\"http://amazon.com\");\n stocks.setValue(amazon, 306.64);\n logger.info(\"Add some closing stock prices: {}\", stocks);\n\n // Retrieve the closing price for Google\n double price = stocks.getValue(google);\n logger.info(\"Google's closing stock price is {}\", price);\n\n // Sort the stock prices by company URL\n stocks.sortElements();\n logger.info(\"The stock prices sorted by company web site: {}\", stocks);\n\n logger.info(\"Completed testMapCodeExamples().\\n\");\n }", "@Test\n public void testIsValidonValidMap() {\n boolean expResult = true;\n boolean result = mapModel.isValid();\n assertEquals(expResult, result);\n }", "public MapTest(String name) {\n\t\tsuper(name);\n\t}", "public ProofMapIndexProxy<String, String> testMap() {\n String fullName = namespace + \".test-map\";\n return access.getProofMap(IndexAddress.valueOf(fullName), string(), string());\n }", "@Test\n public void testQuickMapList() {\n//TODO: Test goes here... \n }", "@Test\r\n\tpublic void testMapValidation() {\r\n\t\tAssert.assertEquals(true,mapdata.contains(worldmap.getContinents()));\r\n\t\t\n\t\tAssert.assertEquals(true,mapdata.contains(worldmap.getTerritories()));\r\n\t}", "@Test\n public void initializeTest()\n {\n assertEquals(0, map.size());\n }", "public void map(){\n this.isMap = true;\n System.out.println(\"Switch to map mode\");\n }", "public static void main(String[] args) {\n\t\tMapTest mTest = new MapTest();\r\n\t\tmTest.testPut();\r\n\t\tmTest.testKeySet();\r\n\t\tmTest.testEntrySet();\r\n\t}", "@Test\n\tpublic void testMapReduce() {\n\n\t\t/*\n\t\t * For this test, the mapper's input will be \"1 cat cat dog\" \n\t\t */\n\t\tmapReduceDriver.withInput(new LongWritable(1), new Text(swedenHealth));\n\n\t\t/*\n\t\t * The expected output (from the reducer) is \"cat 2\", \"dog 1\". \n\t\t */\n\t\tmapReduceDriver.addOutput(new Text(\"(Sweden)\"), new Text(\"| in 2011$ values PPP, 1995 health cost: 1745.1| 2014 health cost: 5218.86| cost increase (%): 199.06%\\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\"));\n\n\t\t/*\n\t\t * Run the test.\n\t\t */\n\t\tmapReduceDriver.runTest();\n\t}", "public List<Map> pageTest(Map map) {\n\t\treturn iSBookMapper.pageTest(map);\n\t}", "@Test\n public void testAdviceMapList() {\n//TODO: Test goes here... \n }", "@Test(timeout = 100)\n public void testAccessFromMapper() {\n System.out.println(\"Starting Mapper access test\");\n }", "@Test\n public void testQuickMap() {\n Demo demo = DemoData.random();\n Demo demo2 = BeanUtil.quickMap(demo, Demo.class);\n }", "public SsOhMapTest()\n {\n }", "public void mapping() {\n\t\t\n\t}", "public int askMap();", "@Test\n\tpublic void populate_map() {\n\t\t//Arrange\n\t\t//testSteve.populateProductMap();\n\t\t\n\t\t//Act\n\t\ttestSteve.populateProductMap();\n\t\t\n\t\t//Assert\n\t\tAssert.assertEquals(testSteve.getProductGenerator().size(), (16));\n\t}", "@Test\n public void testMapErreur() {\n System.out.println(\"mapErreur\");\n Map<String, Object> map = new HashMap<String, Object>();\n boolean condition = false;\n String nomErreur = \"error\";\n String messageErreur = \"Erreur\";\n AbstractObjetAffaire.mapErreur(map, condition, nomErreur, messageErreur);\n assertTrue(map.isEmpty());\n map = new HashMap<String, Object>();\n condition = true;\n nomErreur = \"error\";\n messageErreur = \"Erreur\";\n AbstractObjetAffaire.mapErreur(map, condition, nomErreur, messageErreur);\n assertFalse(map.isEmpty());\n }", "@Test\n public void test1(){\n Map map = us.selectAll(1, 1);\n System.out.println(map);\n }", "@Test\n public void testAdviceMap() {\n Demo demo = DemoData.random();\n Demo demo2 = BeanUtil.adviceMap(demo, Demo.class);\n }", "public void testGetTerrain()\n {\n assertNotNull( map.getTerrain() );\n }", "public void testMapper1() throws Exception {\n\t\tModel model = BioPaxUtil.read(new FileInputStream(getClass().getResource(\"/biopax_sample1.owl\").getFile()));\n\t\tMapBioPaxToCytoscape mapper = new MapBioPaxToCytoscape();\n\t\tmapper.doMapping(model);\n\t\t\n\t\tCyNetwork cyNetwork = createNetwork(\"network1\", mapper);\n\t\t\n\t\tverifyNodeList(cyNetwork);\n\t\tverifyControlConversion(cyNetwork);\n\t\t//verifyCoFactors(cyNetwork);\n\t\t\n\t\tCytoscape.destroyNetwork(cyNetwork);\n\t}", "@Test\n public void testTrain() {\n System.out.println(\"train\");\n TokenizedLine tokenizedLine = null;\n ArrayList<Words> expResult = null;\n ArrayList<Words> result = Training.train(tokenizedLine);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n \n }", "private void test() {\r\n \ttry {\r\n\t\t\ttestWriter.write(\"Testing started...\");\r\n\t\t\r\n\t\t\tpredictions = new HashMap<>();\r\n \trightAnswers = new HashMap<>();\r\n\r\n\r\n \t// Get results and check them\r\n \tEvaluation eval = new Evaluation(numLabels);\r\n \tfinalTestIterator.reset();\r\n\r\n \tint metaDataCounter = 0;\r\n \tint addrCounter = 0;\r\n\r\n \twhile(finalTestIterator.hasNext()) {\r\n \t// If iterator has next dataset\r\n \tfinalTestData = finalTestIterator.next();\r\n \t// Get meta-data from this dataset\r\n\r\n \t@SuppressWarnings(\"rawtypes\")\r\n \tList<?> exampleMetaData = finalTestData.getExampleMetaData();\r\n \tIterator<?> exampleMetaDataIterator = exampleMetaData.iterator();\r\n \ttestWriter.write(\"\\n Metadata from dataset #\" + metaDataCounter + \":\\n\");\r\n \tSystem.out.println(\"\\n Metadata from dataset #\" + metaDataCounter + \":\\n\");\r\n\r\n \t// Normalize data\r\n \tnormalizer.fit(finalTestData);\r\n\r\n \t// Count processed images\r\n \tnumProcessed = (metaDataCounter + 1) * batchSizeTesting;\r\n \tloaded.setText(\"Loaded and processed: \" + numProcessed + \" pictures\");\r\n\r\n \tINDArray features = finalTestData.getFeatures();\r\n \tINDArray labels = finalTestData.getLabels();\r\n \tSystem.out.println(\"\\n Right labels #\" + metaDataCounter + \":\\n\");\r\n \ttestWriter.write(\"\\n Right labels #\" + metaDataCounter + \":\\n\");\r\n \t// Get right answers of NN for every input object\r\n \tint[][] rightLabels = labels.toIntMatrix();\r\n \tfor (int i = 0; i < rightLabels.length; i++) {\r\n \tRecordMetaDataURI metaDataUri = (RecordMetaDataURI) exampleMetaDataIterator.next();\r\n \t// Print address of image\r\n \tSystem.out.println(metaDataUri.getLocation());\r\n \tfor (int j = 0; j < rightLabels[i].length; j++) {\r\n \tif(rightLabels[i][j] == 1) {\r\n \t//public V put(K key, V value) -> key=address, value=right class label\r\n \trightAnswers.put(metaDataUri.getLocation(), j);\r\n \tthis.addresses.add(metaDataUri.getLocation());\r\n \t}\r\n \t}\r\n \t}\r\n \tSystem.out.println(\"\\nRight answers:\");\r\n \ttestWriter.write(\"\\nRight answers:\");\r\n \t// Print right answers\r\n \tfor(Map.Entry<String, Integer> answer : predictions.entrySet()){\r\n \t\ttestWriter.write(String.format(\"Address: %s Right answer: %s \\n\", answer.getKey(), answer.getValue().toString()));\r\n \tSystem.out.printf(String.format(\"Address: %s Right answer: %s \\n\", answer.getKey(), answer.getValue().toString()));\r\n \t}\r\n\r\n \t// Evaluate on the test data\r\n \tINDArray predicted = vgg16Transfer.outputSingle(features);\r\n \tint predFoundCounter = 0;\r\n \tSystem.out.println(\"\\n Labels predicted #\" + metaDataCounter + \":\\n\");\r\n \ttestWriter.write(\"\\n Labels predicted #\" + metaDataCounter + \":\\n\");\r\n \t// Get predictions of NN for every input object\r\n \tint[][] labelsPredicted = predicted.toIntMatrix();\r\n \tfor (int i = 0; i < labelsPredicted.length; i++) {\r\n \tfor (int j = 0; j < labelsPredicted[i].length; j++) {\r\n \tpredFoundCounter++;\r\n \tif(labelsPredicted[i][j] == 1) {\r\n \t//public V put(K key, V value) -> key=address, value=predicted class label\r\n \tpredFoundCounter = 0;\r\n \tthis.predictions.put(this.addresses.get(addrCounter), j);\r\n \t}\r\n \telse {\r\n \tif (predFoundCounter == 3) {\r\n \t// To fix bug when searching positive predictions\r\n \tthis.predictions.put(this.addresses.get(addrCounter), 2);\r\n \t}\r\n \t}\r\n \t}\r\n \taddrCounter++;\r\n \t}\r\n \tSystem.out.println(\"\\nPredicted:\");\r\n \ttestWriter.write(\"\\nPredicted:\");\r\n \t// Print predictions\r\n \tfor(Map.Entry<String, Integer> pred : rightAnswers.entrySet()){\r\n \tSystem.out.printf(\"Address: %s Predicted answer: %s \\n\", pred.getKey(), pred.getValue().toString());\r\n \ttestWriter.write(String.format(\"Address: %s Predicted answer: %s \\n\", pred.getKey(), pred.getValue().toString()));\r\n \t}\r\n \tmetaDataCounter++;\r\n\r\n \teval.eval(labels, predicted);\r\n \t}\r\n\r\n \tSystem.out.println(\"\\n\\n Cheack loaded model on test data...\");\r\n \tSystem.out.println(String.format(\"Evaluation on test data - [Accuracy: %.3f, P: %.3f, R: %.3f, F1: %.3f] \",\r\n \t\t\teval.accuracy(), eval.precision(), eval.recall(), eval.f1()));\r\n \tSystem.out.println(eval.stats());\r\n \tSystem.out.println(eval.confusionToString());\r\n \ttestWriter.write(\"\\n\\n Cheack loaded model on test data...\");\r\n \ttestWriter.write(String.format(\"Evaluation on test data - [Accuracy: %.3f, P: %.3f, R: %.3f, F1: %.3f] \",\r\n \t\t\teval.accuracy(), eval.precision(), eval.recall(), eval.f1()));\r\n \ttestWriter.write(eval.stats());\r\n \ttestWriter.write(eval.confusionToString());\r\n\r\n \t// Save test rates\r\n \tthis.f1_score = eval.f1();\r\n \tthis.recall_score = eval.recall();\r\n \tthis.accuracy_score = eval.accuracy();\r\n \tthis.precision_score = eval.precision();\r\n \tthis.falseNegativeRate_score = eval.falseNegativeRate();\r\n \tthis.falsePositiveRate_score = eval.falsePositiveRate();\r\n\r\n \tthis.f1.setText(\"F1 = \" + String.format(\"%.4f\", f1_score));\r\n \tthis.recall.setText(\"Recall = \" + String.format(\"%.4f\", recall_score));\r\n \tthis.accuracy.setText(\"Accuracy = \" + String.format(\"%.4f\", accuracy_score));\r\n \tthis.precision.setText(\"Precision = \" + String.format(\"%.4f\", precision_score));\r\n \tthis.falseNegativeRate.setText(\"False Negative Rate = \" + String.format(\"%.4f\", falseNegativeRate_score));\r\n \tthis.falsePositiveRate.setText(\"False Positive Rate = \" + String.format(\"%.4f\", falsePositiveRate_score));\r\n \r\n \ttestWriter.write(\"F1 = \" + String.format(\"%.4f\", f1_score));\r\n \ttestWriter.write(\"Recall = \" + String.format(\"%.4f\", recall_score));\r\n \ttestWriter.write(\"Accuracy = \" + String.format(\"%.4f\", accuracy_score));\r\n \ttestWriter.write(\"Precision = \" + String.format(\"%.4f\", precision_score));\r\n \ttestWriter.write(\"False Negative Rate = \" + String.format(\"%.4f\", falseNegativeRate_score));\r\n \ttestWriter.write(\"False Positive Rate = \" + String.format(\"%.4f\", falsePositiveRate_score));\r\n\r\n \tshowBarChart();\r\n \t} catch (IOException e) {\r\n \t\tSystem.err.println(\"Error while writing to log file\");\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n }", "private MapTransformer(Map map) {\n super();\n iMap = map;\n }", "public static boolean MapTest(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"MapTest\")) return false;\n if (!nextTokenIs(b, K_MAP)) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = AnyMapTest(b, l + 1);\n if (!r) r = TypedMapTest(b, l + 1);\n exit_section_(b, m, MAP_TEST, r);\n return r;\n }", "@Before\n public void setUp() throws Exception {\n labRat = (LinkedMap) makeEmptyMap();\n }", "@Before\n public void initialize()\n {\n map = new MapAdapter();\n }", "@Override\r\n\tpublic void test() {\n\t\t\r\n\t\tMap<String, Object> map = new HashMap<>();\r\n\t\t\r\n\t\tcarModelMapper.queryCarModel(map);\r\n\t\tInteger count = (Integer) map.get(\"result\");\r\n\t\tSystem.out.println(count);\r\n\t}", "@Test\n\tpublic void test() {\n\t\tassertEquals(testGraph, mapGraph.getMapGraph());\n\t}", "public void generateRandomMap() {\n\n\t}", "public SleepycatIndexedMapTest(String name) {\r\n super(name);\r\n }", "public void setUp()\n {\n map = new Map(5, 5, null);\n }", "private void mapSetUp() {\n\t\tfor (int i = 0; i < allChar.length; i++) {\n\t\t\tmap.put(allChar[i], shuffledChar[i]);\n\t\t}\n\t}", "@Test\n public void flatMap() {\n\n }", "public void testGetObjects()\n {\n assertNotNull( map.getObjects() );\n }", "public interface TestMapper {\n public List<Map<String, Object>> findTestInfo();\n}", "@Test\n public void idMappingTest() {\n // TODO: test idMapping\n }", "@Test\n\tpublic void testPersonToPersonDtoMap() {\n\t\t\n\t\t// prepare \n\t\tPerson person = this.getFakePersonToMap();\n\t\tAddress address = person.getAddress();\n\t\tContactDetail contactDetail = person.getContactDetail();\n\t\t\n\t\t// sut (system / class under test)\n\t\tMapper testee = new Mapper();\n\t\t\n\t\t// act\t\t\n\t\tPersonDto personDto = testee.map(person, PersonDto.class);\n\t\t\n\t\t// tests\n\t\t// address\n\t\tassertEquals(personDto.getAddressCity(), address.getCity());\n\t\tassertEquals(personDto.getAddressCountry(), address.getCountry());\n\t\t\n\t\t// contact details\n\t\tassertEquals(personDto.getPhoneNumber1(), contactDetail.getPhoneNumber1());\n\t\tassertEquals(personDto.getPhoneNumber2(), contactDetail.getPhoneNumber2());\n\t\tassertEquals(personDto.getPhoneNumber3(), contactDetail.getPhoneNumber3());\n\t\tassertEquals(personDto.getFax(), contactDetail.getFax());\n\t\t\n\t}", "public Simulator useMap(Map map) {\n this.map = map;\n return this;\n }", "public MapResult() {\n }", "public void testEntrySetIteratorHasProperMappings() {\n return;\r\n }", "@Test\n\tpublic void testTiles() throws Exception {\n\n\t\tRelatedTilesUtils.testTiles(geoPackage);\n\n\t}", "@Test\n public void mapNew() {\n check(MAPNEW);\n query(EXISTS.args(MAPNEW.args(\"()\")), true);\n query(MAPSIZE.args(MAPNEW.args(\"()\")), 0);\n query(COUNT.args(MAPNEW.args(\"()\")), 1);\n query(MAPSIZE.args(MAPNEW.args(MAPNEW.args(\"()\"))), 0);\n }", "@Test\n public void findAllEngineerPositions() {\n Map<String, String> employees = getEmployees();\n// Your code here\n }", "public MapCalculator(ZanMinimap minimap) {\n \t\tmap = minimap.map;\n \t}", "@Test\n\t\tpublic void testSuccessResultMapping() throws Exception {\n\n\t\t\tString responseBody = TestUtils.getValidResponse();\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\tResponseEntity<ResponseWrapper> responseEntity= prepareReponseEntity(responseBody);\n\t\t\t\t\n\t\t\t\tLocationForecast locationForecast=mapWithObjectMapper(responseEntity.getBody());\n\t\t\t\t\n\t\t\t\t/*Checking for fields visible to viewers*/\n\t\t\t\tassertEquals(locationForecast.getCity().getCity(),\"Newark\");\n\t\t\t\tassertEquals(locationForecast.getCity().getState(),\"NJ\");\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tassertEquals(locationForecast.getForecast().getTemp_f(),\"82.6\");\n\t\t\t\tassertEquals(locationForecast.getForecast().getTemp_c(),\"28.1\");\n\t\t\t\tassertEquals(locationForecast.getForecast().getFeelslike_c(),\"29\");\n\t\t\t\tassertEquals(locationForecast.getForecast().getFeelslike_f(),\"85\");\n\t\t\t\tassertEquals(locationForecast.getForecast().getWeather(),\"Partly Cloudy\");\n\t\t\t\t\n\t\t\t\tthis.mockServer.verify();\n\t\t\t} catch (Exception e) {\n\t\t\t\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}", "@Test\n public void TEST_FR_SELECT_DIFFICULTY_MAP() {\n Map easyMap = new Map(\"Map1/Map1.tmx\", 1000, \"easy\");\n easyMap.createLanes();\n Map mediumMap = new Map(\"Map1/Map1.tmx\", 1000, \"medium\");\n mediumMap.createLanes();\n Map hardMap = new Map(\"Map1/Map1.tmx\", 1000, \"hard\");\n hardMap.createLanes();\n\n assertTrue((countObstacles(hardMap) >= countObstacles(mediumMap)) && (countObstacles(mediumMap) >= countObstacles(easyMap)));\n assertTrue((countPowerups(hardMap) <= countPowerups(mediumMap)) && (countPowerups(mediumMap) <= countPowerups(easyMap)));\n }", "ProcessOperation<Map<String, Object>> map();", "@Test\n public void TEST_UR_MAP_OBJECT_COUNT() {\n Map[] maps = new Map[3];\n maps[0] = new Map(\"Map1/Map1.tmx\", 1000, \"easy\");\n maps[1] = new Map(\"Map1/Map1.tmx\", 1000, \"medium\");\n maps[2] = new Map(\"Map1/Map1.tmx\", 1000, \"hard\");\n for (int i = 0; i <= 2; i++) {\n Map map = maps[i];\n map.createLanes();\n int obstacleCount = map.lanes[0].obstacles.length;\n int powerupCount = map.lanes[0].powerUps.length;\n for (int j = 1; j <= 3; j++) {\n assertEquals(map.lanes[j].obstacles.length, obstacleCount);\n assertEquals(map.lanes[j].powerUps.length, powerupCount);\n }\n }\n }", "public abstract void createMap();", "@Test\n\tpublic abstract void testTransform4();", "@Test\n public void addAndGetMap() throws Exception {\n String mapName = mockMvc.perform(post(\"/map/add\")\n .param(\"map_name\", \"mapTest\")\n .param(\"map_bin\",\"map_bin_test\")).andExpect(status().isOk())\n .andDo(print())\n .andReturn().getResponse().getContentAsString();\n assertEquals(\"add map\",mapName,\"mapTest\");\n\n /* get the added map */\n String mapUrl = mockMvc.perform(get(\"/map/get\")\n .param(\"name\", \"mapTest\"))\n .andExpect(status().isOk())\n .andDo(print())\n .andReturn().getResponse().getContentAsString();\n assertEquals(\"get map url\",mapUrl,\"map_bin_test\");\n\n /* clear db */\n mockMvc.perform(get(\"/map/delete\")\n .param(\"map_name\", \"mapTest\"))\n .andExpect(status().isOk())\n .andDo(print());\n }", "@Test\n void shouldAddWorkers(){\n\n Player p = new Player(1, \"FirstPlayer\");\n Worker w1 = new Worker(0, p, new Vector2(0,0));\n Worker w2 = new Worker(1, p, new Vector2(4,4));\n p.addWorker(w1);\n p.addWorker(w2);\n\n Player p2 = new Player(2,\"padoru\");\n Worker w3 = new Worker(0, p2, new Vector2(3,3));\n p2.addWorker(w3);\n\n map.setWorkers(p);\n map.setWorkers(p2);\n\n var mw = map.getWorkers();\n assertEquals(3, mw.size());\n assertTrue(mw.contains(w1));\n assertTrue(mw.contains(w2));\n assertTrue(mw.contains(w3));\n }", "public abstract int predict(double[] testingData);", "@Test\n \tpublic void mapTable() {\n \t\t\n \t\tString[][] data = { { \"11\", \"12\" }, { \"21\", \"22\" } };\n \n \t\tTable table = tableWith(data,\"c1\",\"c2\");\n \n \t\tTableMapDirectives directives = new TableMapDirectives(table.columns().get(0));\n \t\t\n \t\tdirectives.add(column(\"TAXOCODE\"))\n \t\t .add(column(\"ISSCAAP\"))\n \t\t .add(column(\"Scientific_name\"))\n \t\t .add(column(\"English_name\").language(\"en\"))\n \t\t .add(column(\"French_name\").language(\"fr\"))\n \t\t .add(column(\"Spanish_name\").language(\"es\"))\n \t\t .add(column(\"Author\"))\n \t\t .add(column(\"Family\"))\n \t\t .add(column(\"Order\"));\n \n \t\tOutcome outcome = service.map(table, directives);\n \t\t\n \t\tassertNotNull(outcome.result());\n \t}", "public void train ()\t{\t}", "public interface MapTask extends Task {\n\t\n\tpublic void map(MapRunner mapRunner, String toDo);\n}", "@Test\n public void whenHaveListOfUsersThenMakeMapOfUsers() {\n HashMap<Integer, User> expect = new HashMap<>();\n User firstUser = new User(1, \"Vasya\", \"Murmansk\");\n User secondUser = new User(5, \"Vova\", \"Vologda\");\n expect.put(1, firstUser);\n expect.put(5, secondUser);\n List<User> list = new ArrayList<>();\n list.add(firstUser);\n list.add(secondUser);\n UserConvert userConvert = new UserConvert();\n assertThat(userConvert.process(list), is(expect));\n }", "public void testMapping() {\n\t\ttry { Thread.sleep(1000); } catch (Exception e) { }\n\t\tPuzzleView view = app.getPuzzleView();\n\t\t\n\t\tapp.setVisible(true);\n\t\t\n\t}", "private void populateMaps() {\n\t\t//populate the conversion map.\n\t\tconvertMap.put(SPACE,(byte)0);\n\t\tconvertMap.put(VERTICAL,(byte)1);\n\t\tconvertMap.put(HORIZONTAL,(byte)2);\n\n\t\t//build the hashed numbers based on the training input. 1-9\n\t\tString trainingBulk[] = new String[]{train1,train2,train3,\"\"};\n\t\tbyte[][] trainer = Transform(trainingBulk);\n\t\tfor(int i=0; i < 9 ;++i) {\n\t\t\tint val = hashDigit(trainer, i);\n\t\t\tnumbers.put(val,i+1);\n\t\t}\n\t\t//train Zero\n\t\ttrainingBulk = new String[]{trainz1,trainz2,trainz3,\"\"};\n\t\tint zeroVal = hashDigit(Transform(trainingBulk), 0);\n\t\tnumbers.put(zeroVal,0);\n\n\n\t}", "private ArrayList<Record> test() {\n\t\t\t\tfor (int i = 0; i < numberOfIterations; i++) {\n\t\t\t\t\t// for each training record\n\t\t\t\t\tfor (int j = 0; j < numberOfRecords; j++) {\n\t\t\t\t\t\t// calculate inputs and outputs\n\t\t\t\t\t\tforwardCalculation(records.get(j).input);\n\t\t\t\t\t}\n\t\t\t\t}\n//\t\t\t\tpostprocessOutputs();\n\t\t// forward pass\n\t\t// back pass\n\t\treturn records;\n\t}", "@Test\n public void testGetUserMappingPatientEntered() {\n User user = new User();\n user.setUsername(\"username1\");\n UserMapping userMapping = userMappingDao.getUserMappingPatientEntered(user, tenancy);\n\n assertEquals(\"incorrect mapping unitcode found\", UnitUtils.PATIENT_ENTERS_UNITCODE, userMapping.getUnitcode());\n assertEquals(\"incorrect mapping nhsno found\", \"nhsno1\", userMapping.getNhsno());\n assertEquals(\"incorrect mapping username found\", \"username1\", userMapping.getUsername());\n }", "public MapGenerator(GameMap map) {\n\n gameMap = map;\n setGuiHashMap();\n firstCountryFlag=true;\n validator = new MapValidator(gameMap);\n }", "@Test\r\n public void testGetMarks() {\r\n System.out.println(\"getMarks\");\r\n Student instance = new Student();\r\n HashMap<String, Integer> expResult = null;\r\n HashMap<String, Integer> result = instance.getMarks();\r\n assertEquals(expResult, result);\r\n \r\n }", "@Test\n\tpublic void predFuncTest() \n\t{\n\t\tPath filePath = Paths.get(\"src/test/testfile/test.txt\");\n\t\tScanner scanner;\n\t\ttry {\n\t\t\tscanner = new Scanner(filePath);\n\t\t\tTranslator translator = new Translator();\n\t\t\tList<String> startCodons = new ArrayList<String>();\n\t\t\tstartCodons.add(\"ATG\");\n\t\t\tList<List<String>> result = translator.translation(scanner.next(), startCodons );\n\t\t\tfor(List<String> r : result){\n\t\t\t\tfor(String s : r){\n\t\t\t\t\tif(scanner.hasNext()){\n\t\t\t\t\t\tassertEquals(s, scanner.next());\n\t\t\t\t\t\t\n\t\t\t\t\t}else{\n\t\t\t\t\t\tfail();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t \n\n\t\t} catch (IOException e) {\n\t\t\tfail(e.getLocalizedMessage());\n\t\t}\n\t}", "@Test\r\n\tpublic void classifyTest(){\r\n\t\tClassification[] expectedClass = {Classification.First,Classification.UpperSecond,Classification.LowerSecond,Classification.Third,Classification.Fail};\r\n\t\tint[] pointGrades = {3,6,10,13,18};\r\n\t\tfor(int i=0;i<pointGrades.length;i++)\r\n\t\t{\r\n\t\t\tassertEquals(expectedClass[i],new PointGrade(pointGrades[i]).classify());\r\n\t\t}\r\n\t}", "@Test\n public void testMap() {\n solo.clickOnView(solo.getView(R.id.button_accepted));\n solo.assertCurrentActivity(\"Wrong Activity\", ListAccepted.class);\n solo.clickInRecyclerView(0);\n solo.sleep(3000);\n }", "public static void main(String[] args) {\n ListWithMap.stInfo(student);\n ListWithMap.randomInfo();\n\n }", "@Test\n\tpublic void testIllegalMapNoLimitsTest1() {\n\t\ttry {\n\t\t\tmapFactory.initializeGameState(\"./src/Mapfiles/NightlyTests/IllegalMapNoLimits1\", 1, rng, gs);\n\t\t} catch (IOException e) {\n\t\t\tfail(\"Expected IllegalArgumentException\");\n\t\t} catch (IllegalArgumentException e) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tfail(\"Expected IllegalArgumentException\");\n\t}", "public abstract T _withMapperFeatures(int i);", "@Test\n\tpublic void testNormalPuzzleGeneration() {\n\t}", "public void verifyMap() {\r\n // TODO: implement test to ensure that map is the same as confirmed if\r\n // its values were converted into collections.\r\n }", "public void initializeMaps() {\n\t\t//can use any map\n\n\t\t//left map\n\t int x = 0, y = 0;\n\t int Lvalue;\n\t \n\t try {\n\t \t//***change to your local path for the map you want to test\n\t \tBufferedReader input = new BufferedReader(new FileReader(\"/Users/NeeCee/Classes/4444/MirrorUniverse/maps/g6maps/lessEasyLeft.txt\"));\n\t \tString line;\n\t \twhile((line = input.readLine()) != null) {\n\t \t\tString[] vals = line.split(\" \");\n\t \t\tfor(String str : vals) {\n\t \t\t\tLvalue = Integer.parseInt(str);\n\t \t\t\tleftMap[x][y] = Lvalue;\n\t \t\t\t++y;\n\t \t\t}\n\t \t\t\n\t \t\t++x;\n\t \t\ty = 0;\n\t \t}\n\t \t\n\t \tinput.close();\n\t } catch (IOException ioex) {\n\t \tSystem.out.println(\"error reading in map for testing\");\n\t }\n\t \n\t //right map\n\t x = 0;\n\t y = 0;\n\t int Rvalue;\n\t \n\t try {\n\t \t//***change to your local path for the map you want to test\n\t \t//change to map you want to test\n\t \tBufferedReader input = new BufferedReader(new FileReader(\"/Users/NeeCee/Classes/4444/MirrorUniverse/maps/g6maps/lessEasyRight.txt\"));\n\t \tString line;\n\t \twhile((line = input.readLine()) != null) {\n\t \t\tString[] vals = line.split(\" \");\n\t \t\tfor(String str : vals) {\n\t \t\t\tRvalue = Integer.parseInt(str);\n\t \t\t\trightMap[x][y] = Rvalue;\n\t \t\t\t++y;\n\t \t\t}\n\t \t\t++x;\n\t \t\ty = 0;\n\t \t}\n\t \t\n\t \tinput.close();\n\t } catch (IOException ioex) {\n\t \tSystem.out.println(\"error reading in map for testing\");\n\t }\n\t \n\t //print each map for testing\n\t for(int i = 0; i < leftMap.length; i++ )\n\t \tfor(int j = 0; j < leftMap[i].length; j++ )\n\t \t\tSystem.out.println(leftMap[i][j]);\n\t System.out.println(\"*-----------------*\");\n\t for(int i = 0; i < rightMap.length; i++ )\n\t \tfor(int j = 0; j < rightMap[i].length; j++ )\n\t \t\tSystem.out.println(rightMap[i][j]);\n\t}", "@Override\n\tpublic boolean doVerify(ProdIterator iterator, Map<String, String> map) {\n\t\treturn false;\n\t}", "public List<RMap> testGetPagedMapListByMap() throws Exception{\r\n\t\tString sql = \"select * from rexdb_test_student where student_id > #{studentId} and readonly = #{readonly}\";\r\n\t\tMap<String, Object> student = new HashMap<String, Object>();\r\n\t\tstudent.put(\"studentId\", 10);\r\n\t\tstudent.put(\"readonly\", 1);\r\n\t\t\r\n\t\tList<RMap> list = DB.getMapList(sql, student, 5, 10);\r\n\t\tif(list.size() != 10)\r\n\t\t\tthrow new Exception(\"getMapList seems didn't work well.\");\r\n\t\t\r\n\t\treturn list;\r\n\t}", "@Test\r\n public void testNormalisedMap() {\n Player p1 = new Player(205, Color.BLACK);\r\n Unit inf1 = UnitFactory.getUnit(TestData.INF);\r\n MapUtil.addUnitToMap(map, map.getTile(0, 0), inf1, p1);\r\n\r\n Player p2 = new Player(280, Color.BLUE);\r\n Unit inf2 = UnitFactory.getUnit(TestData.INF);\r\n MapUtil.addUnitToMap(map, map.getTile(1, 0), inf2, p2);\r\n\r\n Player p3 = new Player(999, Color.GREEN);\r\n Unit inf3 = UnitFactory.getUnit(TestData.INF);\r\n MapUtil.addUnitToMap(map, map.getTile(2, 0), inf3, p3);\r\n Assert.assertEquals(3, map.getNumPlayers());\r\n\r\n map.normalise();\r\n Assert.assertEquals(3, map.getNumPlayers());\r\n\r\n Player pBlack = map.getPlayer(Color.BLACK);\r\n Player pBlue = map.getPlayer(Color.BLUE);\r\n Player pGreen = map.getPlayer(Color.GREEN);\r\n\r\n // The player ID's have been changed to 0,1,2\r\n // The order in which this is done is unknown thought\r\n Assert.assertTrue(pBlack.getId() < 3);\r\n Assert.assertEquals(1, pBlack.getArmyCount());\r\n\r\n Assert.assertTrue(pBlue.getId() < 3);\r\n Assert.assertEquals(1, pBlue.getArmyCount());\r\n\r\n Assert.assertTrue(pGreen.getId() < 3);\r\n Assert.assertEquals(1, pGreen.getArmyCount());\r\n }", "public void train() throws Exception;", "private void ini_MapPaks()\r\n\t{\r\n\r\n\t}", "public void setMap(MapAssembly demoMap) {\n this.map = demoMap;\n }", "public EvaluateMapFunction(MultiLayerNetwork network, List<String> labels) {\n this.network = network;\n this.labels = labels;\n }", "public static void main(String[] args) {\n System.out.println(\"Mapping names to their lengths:\");\n String[] names = {\"David\", \"Li\", \"Doug\"};\n int[] lengthMapping = Mapper.mapToInt(names, (String name) -> name.length());\n printMapping(names, lengthMapping);\n\n System.out.println(\"\\nMapping integers to their squares:\");\n Integer[] numbers = {7, 3, 67};\n int[] countMapping = Mapper.mapToInt(numbers, (Integer n) -> n * n);\n printMapping(numbers, countMapping);\n }", "public void test_findMapBySqlMap() {\r\n\t\t// step 1:\r\n\t\tMap personMap = this.persistenceService.findMapBySqlMap(FIND_PERSON_BY_SQLMAP, NAME_PARAM[0], RETURN_MAP_KEY);\r\n\t\tassertForFindMapGoogle(personMap);\r\n\t\t\r\n\t\t// init again\r\n\t\tpersonMap = null;\r\n\t\t// step 2:\r\n\t\tpersonMap = this.persistenceService.findMapBySqlMap(FIND_PERSON_BY_SQLMAP, NAME_PARAM[0], RETURN_MAP_KEY, RETURN_MAP_VALUE);\r\n\t\tassertForFindMapGoogle(personMap);\r\n\t}", "@Override\n\tpublic void setInputMap(HashMap<String, Controller> map)\n\t{\n\t\tthis.map = map;\n\t}", "public Map() {\n\n\t\t}", "public Context runMap() throws InstantiationException, IllegalAccessException, IOException {\n\t\tContext tempoContext = new Context();\n\t\tthis.setup(tempoContext);\n\t\t//Read the input file\n\t\tString[] inputLines = this.inputSplit.getLines();\n\t\t//Map process\n\t\tfor (int i=0; i<inputLines.length; i++) {\n\t\t\tthis.map(Integer.toString(i), inputLines[i], tempoContext);\n\t\t}\n\t\treturn tempoContext;\n\t}", "@Test\n public void verifyThatEmployeesAreReal() {\n Map<String, String> employees = getEmployees();\n// Your code here\n }", "@Test\n public void testAct() {\n world.add(new Location(FOUR , FOUR), jumper);\n jumper.act();\n jumper.act();\n assertEquals(new Location(ZERO, FOUR), jumper.getLocation());\n }", "@Test(timeout = 4000)\n public void test046() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n NaiveBayesMultinomialUpdateable naiveBayesMultinomialUpdateable0 = new NaiveBayesMultinomialUpdateable();\n try { \n evaluation0.evaluateModel((Classifier) naiveBayesMultinomialUpdateable0, instances0, (Object[]) testInstances0.DEFAULT_WORDS);\n fail(\"Expecting exception: ClassCastException\");\n \n } catch(ClassCastException e) {\n //\n // java.lang.String cannot be cast to weka.classifiers.evaluation.output.prediction.AbstractOutput\n //\n verifyException(\"weka.classifiers.Evaluation\", e);\n }\n }", "@org.junit.Test\n public void mapGet003() {\n final XQuery query = new XQuery(\n \"map:get(map{}, 23)\",\n ctx);\n\n final QT3Result res = result(query);\n result = res;\n test(\n assertEmpty()\n );\n }", "@Test\n public void TEST_UR_MAP_LENGTH() {\n Object[] objects = loadSave(\"emptyRiver\");\n Map map = (Map) objects[0];\n Player player = (Player) objects[1];\n AI[] opponents = (AI[]) objects[2];\n boolean[] NO_KEYS_PRESSED = {false, false, false, false};\n\n for (int i = 0; i < 60*30; i++) {\n map.stepWorld(player, opponents);\n player.updatePlayer(NO_KEYS_PRESSED, Gdx.graphics.getDeltaTime());\n }\n assertFalse(player.hasFinished());\n\n for (int i = 0; i < 60*30; i++) {\n map.stepWorld(player, opponents);\n player.updatePlayer(NO_KEYS_PRESSED, Gdx.graphics.getDeltaTime());\n }\n assertTrue(player.hasFinished());\n }", "@Test\n public void testWeatherPool() throws FileNotFoundException, IOException {\n List<Tuple> input = getTuplesFromFile(\"mapreduceExamples/weather.txt\");\n \n MapReduceController mr = new MapReduceController();\n \n mr.addJob(input, new Instructions() {\n \n @Override\n public List<Tuple> map(Tuple input) {\n return weatherMap(input);\n }\n \n @Override\n public Tuple reduce(List<Tuple> input) {\n return weatherReduce(input);\n }\n \n }).executeThreadPool(2);\n \n \n List<Tuple> output = mr.gatherResult();\n \n assertEquals(3, output.size());\n for(Tuple tup : output) {\n assertTuple(tup, \"PA\", \"86 54\");\n assertTuple(tup, \"TX\", \"97 75\");\n assertTuple(tup, \"CA\", \"106 61\");\n }\n }", "@org.junit.Test\n public void mapGet100() {\n final XQuery query = new XQuery(\n \"fn:map(\\n\" +\n \" map{\\\"su\\\":=\\\"Sunday\\\",\\\"mo\\\":=\\\"Monday\\\",\\\"tu\\\":=\\\"Tuesday\\\",\\\"we\\\":=\\\"Wednesday\\\",\\\"th\\\":=\\\"Thursday\\\",\\\"fr\\\":=\\\"Friday\\\",\\\"sa\\\":=\\\"Saturday\\\"},\\n\" +\n \" (\\\"we\\\", \\\"th\\\"))\",\n ctx);\n\n final QT3Result res = result(query);\n result = res;\n test(\n (\n assertCount(2)\n &&\n assertQuery(\"$result[1] eq \\\"Wednesday\\\"\")\n &&\n assertQuery(\"$result[2] eq \\\"Thursday\\\"\")\n )\n );\n }", "@Test\n public void test3() throws Exception {\n GeoCoder g = new GeoCoder();\n String zip = \"12028\";\n String state = \"New York\";\n String city = \"Buskirk\";\n String address = \"\";\n g = g.geoCoding(address, city, state, zip);\n }" ]
[ "0.72959536", "0.71313596", "0.7002861", "0.67424846", "0.6679277", "0.63683206", "0.6347895", "0.6319151", "0.63010126", "0.6274747", "0.61434174", "0.60280204", "0.602485", "0.6019895", "0.6014563", "0.60127145", "0.59977436", "0.59931064", "0.59857106", "0.5962547", "0.5928328", "0.5909994", "0.5899583", "0.5878011", "0.58610487", "0.5857656", "0.5826245", "0.5811163", "0.58013105", "0.57885814", "0.57636815", "0.5763666", "0.5737902", "0.57250875", "0.5691687", "0.568635", "0.5658136", "0.56479776", "0.56329745", "0.5628948", "0.56143063", "0.5598858", "0.55961376", "0.5592667", "0.558219", "0.5581017", "0.55801326", "0.5559196", "0.5537427", "0.5517135", "0.55128163", "0.5497403", "0.5489461", "0.5465237", "0.5463879", "0.54560107", "0.5452515", "0.54401785", "0.5436698", "0.54201925", "0.541874", "0.5410616", "0.54081047", "0.5407839", "0.5397599", "0.5396185", "0.5394903", "0.538038", "0.53764546", "0.53636277", "0.5359651", "0.5350911", "0.5347211", "0.5346121", "0.5344509", "0.53412306", "0.5337561", "0.53236693", "0.53228104", "0.5316046", "0.5313111", "0.53127", "0.5309664", "0.53092206", "0.5303145", "0.53024286", "0.53017044", "0.529926", "0.52905416", "0.52816164", "0.52779996", "0.52723724", "0.5269911", "0.5269713", "0.5267499", "0.5252591", "0.52440834", "0.52414227", "0.5240165", "0.5227919" ]
0.803988
0
Test of train method, of class Training.
@Test public void testTrain() { System.out.println("train"); TokenizedLine tokenizedLine = null; ArrayList<Words> expResult = null; ArrayList<Words> result = Training.train(tokenizedLine); assertEquals(expResult, result); // TODO review the generated test code and remove the default call to fail. }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "TrainingTest createTrainingTest();", "public void train() throws Exception;", "public void train(){\n recoApp.training(idsToTest);\n }", "public void train ()\t{\t}", "public void trainTest() throws Exception\n\t{\n\t\tSystem.out.println(\"Preprocessing Testset ..\");\n\t\t//String[] dir = new String[]{ Test+\"negative\" , Test+\"positive\"};\n\t\t//FileIterator iterator = new FileIterator(dir,FileIterator.LAST_DIRECTORY);\n\t\tInstanceList instances = new InstanceList(getTextPipe());\n\t\t//instances.addThruPipe(iterator);\n\n\t\tCSVParser parser = new CSVParser(new FileReader(\n\t\t\t\t\"resources/datasets/sentimentanalysis/mallet_test/Sentiment140/sentiment140.csv\"),\n\t\t\t\tCSVFormat.EXCEL.withFirstRecordAsHeader());\n\n\t\tTextPreprocessor preprocessor = new TextPreprocessor(\"resources/datasets/sentimentanalysis/\");\n\t\tint count = 0;\n\t\tfor (CSVRecord record: parser.getRecords())\n\t\t{\n\t\t\tString target;\n\t\t\tif (record.get(\"target\").equals(\"0\"))\n\t\t\t\ttarget = \"negative\";\n\t\t\telse\n\t\t\t\ttarget = \"positive\";\n\t\t\tinstances.addThruPipe(new Instance(preprocessor.getProcessed(record.get(\"tweet\")),target,\n\t\t\t\t\t\"Instance\"+count++,null));\n\n\t\t\tSystem.out.println(count);\n\t\t}\n\n\t\tSystem.out.println(instances.targetLabelDistribution());\n\t\tSystem.out.println(\"Start Training Testset ..\");\n\t\tClassifier nb = new NaiveBayesTrainer().train(instances);\n\t\tSystem.out.println(\"Saving Test Model ..\");\n\t\tsaveModel(nb,Test+\"Model.bin\");\n\t\tsaveinstances(instances,Test+\"Model-Instances.bin\");\n\t\tinstances.getDataAlphabet().dump(new PrintWriter(new File(Test+\"Model-alphabet.dat\")));\n\t}", "public void train()\n\t{\n\t\tdbiterator = DBInstanceIterator.getInstance();\n System.out.println(\"Start Training ..\");\n\n\t\ttry {\n\t\t\tSystem.out.println(\"Training Text %..\");\n\t\t\ttrainText();\n\n\t\t\tSystem.out.println(\"Training Complex %..\");\n\t\t\ttrainCombined();\n\n\t\t\tSystem.out.println(\"Training Feature %..\");\n\t\t\ttrainFeatures();\n\n\t\t\tSystem.out.println(\"Training Lexicon %..\");\n\t\t\t//trainLexicon();\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public void train(SieveDocuments trainingInfo) {\r\n\t\t// no training\r\n\t}", "public void TrainDataset(){\n\t\ttry{\n\t\t\t//Testing delegate method\n\t\t\tMessageController.logToConsole(\"Hey, I'm from train button\");\n\t\t\t\n\t\t\t//Pass in the real training dataset\n\t\t\tfindSuitableK(new String[]{\"Hello\", \"World\"});\n\t\t\t\n\t\t\t//Pass in the 'k' and 'query string'\n\t\t\tfindKNN(2, \"anything\");\n\t\t}\n\t\tcatch(Exception ex){\n\t\t\tthrow ex;\n\t\t}\n\t\tfinally{\n\t\t\t\n\t\t}\n\t}", "public void evaluate(String trainFile, double percentTrain, String testFile, String featureDefFile) {\n/* 799 */ List<RankList> train = new ArrayList<>();\n/* 800 */ List<RankList> validation = new ArrayList<>();\n/* 801 */ int[] features = prepareSplit(trainFile, featureDefFile, percentTrain, normalize, train, validation);\n/* 802 */ List<RankList> test = null;\n/* */ \n/* */ \n/* 805 */ if (!testFile.isEmpty()) {\n/* */ \n/* 807 */ test = readInput(testFile);\n/* 808 */ if (normalize) {\n/* 809 */ normalize(test, features);\n/* */ }\n/* */ } \n/* 812 */ RankerTrainer trainer = new RankerTrainer();\n/* 813 */ Ranker ranker = trainer.train(this.type, train, validation, features, this.trainScorer);\n/* */ \n/* 815 */ if (test != null) {\n/* */ \n/* 817 */ double rankScore = evaluate(ranker, test);\n/* 818 */ System.out.println(this.testScorer.name() + \" on test data: \" + SimpleMath.round(rankScore, 4));\n/* */ } \n/* 820 */ if (modelFile.compareTo(\"\") != 0) {\n/* */ \n/* 822 */ System.out.println(\"\");\n/* 823 */ ranker.save(modelFile);\n/* 824 */ System.out.println(\"Model saved to: \" + modelFile);\n/* */ } \n/* */ }", "public void startTrainingMode() {\n\t\t\r\n\t}", "public Train(){\n}", "@Test(timeout = 4000)\n public void test098() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n FilteredClassifier filteredClassifier0 = new FilteredClassifier();\n try { \n Evaluation.evaluateModel((Classifier) filteredClassifier0, testInstances0.DEFAULT_WORDS);\n fail(\"Expecting exception: Exception\");\n \n } catch(Exception e) {\n //\n // \n // Weka exception: No training file and no object input file given.\n // \n // General options:\n // \n // -h or -help\n // \\tOutput help information.\n // -synopsis or -info\n // \\tOutput synopsis for classifier (use in conjunction with -h)\n // -t <name of training file>\n // \\tSets training file.\n // -T <name of test file>\n // \\tSets test file. If missing, a cross-validation will be performed\n // \\ton the training data.\n // -c <class index>\n // \\tSets index of class attribute (default: last).\n // -x <number of folds>\n // \\tSets number of folds for cross-validation (default: 10).\n // -no-cv\n // \\tDo not perform any cross validation.\n // -split-percentage <percentage>\n // \\tSets the percentage for the train/test set split, e.g., 66.\n // -preserve-order\n // \\tPreserves the order in the percentage split.\n // -s <random number seed>\n // \\tSets random number seed for cross-validation or percentage split\n // \\t(default: 1).\n // -m <name of file with cost matrix>\n // \\tSets file with cost matrix.\n // -l <name of input file>\n // \\tSets model input file. In case the filename ends with '.xml',\n // \\ta PMML file is loaded or, if that fails, options are loaded\n // \\tfrom the XML file.\n // -d <name of output file>\n // \\tSets model output file. In case the filename ends with '.xml',\n // \\tonly the options are saved to the XML file, not the model.\n // -v\n // \\tOutputs no statistics for training data.\n // -o\n // \\tOutputs statistics only, not the classifier.\n // -i\n // \\tOutputs detailed information-retrieval statistics for each class.\n // -k\n // \\tOutputs information-theoretic statistics.\n // -classifications \\\"weka.classifiers.evaluation.output.prediction.AbstractOutput + options\\\"\n // \\tUses the specified class for generating the classification output.\n // \\tE.g.: weka.classifiers.evaluation.output.prediction.PlainText\n // -p range\n // \\tOutputs predictions for test instances (or the train instances if\n // \\tno test instances provided and -no-cv is used), along with the \n // \\tattributes in the specified range (and nothing else). \n // \\tUse '-p 0' if no attributes are desired.\n // \\tDeprecated: use \\\"-classifications ...\\\" instead.\n // -distribution\n // \\tOutputs the distribution instead of only the prediction\n // \\tin conjunction with the '-p' option (only nominal classes).\n // \\tDeprecated: use \\\"-classifications ...\\\" instead.\n // -r\n // \\tOnly outputs cumulative margin distribution.\n // -g\n // \\tOnly outputs the graph representation of the classifier.\n // -xml filename | xml-string\n // \\tRetrieves the options from the XML-data instead of the command line.\n // -threshold-file <file>\n // \\tThe file to save the threshold data to.\n // \\tThe format is determined by the extensions, e.g., '.arff' for ARFF \n // \\tformat or '.csv' for CSV.\n // -threshold-label <label>\n // \\tThe class label to determine the threshold data for\n // \\t(default is the first label)\n // \n // Options specific to weka.classifiers.meta.FilteredClassifier:\n // \n // -F <filter specification>\n // \\tFull class name of filter to use, followed\n // \\tby filter options.\n // \\teg: \\\"weka.filters.unsupervised.attribute.Remove -V -R 1,2\\\"\n // -D\n // \\tIf set, classifier is run in debug mode and\n // \\tmay output additional info to the console\n // -W\n // \\tFull name of base classifier.\n // \\t(default: weka.classifiers.trees.J48)\n // \n // Options specific to classifier weka.classifiers.trees.J48:\n // \n // -U\n // \\tUse unpruned tree.\n // -O\n // \\tDo not collapse tree.\n // -C <pruning confidence>\n // \\tSet confidence threshold for pruning.\n // \\t(default 0.25)\n // -M <minimum number of instances>\n // \\tSet minimum number of instances per leaf.\n // \\t(default 2)\n // -R\n // \\tUse reduced error pruning.\n // -N <number of folds>\n // \\tSet number of folds for reduced error\n // \\tpruning. One fold is used as pruning set.\n // \\t(default 3)\n // -B\n // \\tUse binary splits only.\n // -S\n // \\tDon't perform subtree raising.\n // -L\n // \\tDo not clean up after the tree has been built.\n // -A\n // \\tLaplace smoothing for predicted probabilities.\n // -J\n // \\tDo not use MDL correction for info gain on numeric attributes.\n // -Q <seed>\n // \\tSeed for random data shuffling (default 1).\n //\n verifyException(\"weka.classifiers.Evaluation\", e);\n }\n }", "public void kirimNotifikasiPengajuan(Training training){\n\t\t\n\t}", "public void evaluate(String trainFile, String validationFile, String testFile, String featureDefFile) {\n/* 710 */ List<RankList> train = readInput(trainFile);\n/* */ \n/* 712 */ List<RankList> validation = null;\n/* */ \n/* 714 */ if (!validationFile.isEmpty()) {\n/* 715 */ validation = readInput(validationFile);\n/* */ }\n/* 717 */ List<RankList> test = null;\n/* */ \n/* 719 */ if (!testFile.isEmpty()) {\n/* 720 */ test = readInput(testFile);\n/* */ }\n/* 722 */ int[] features = readFeature(featureDefFile);\n/* 723 */ if (features == null) {\n/* 724 */ features = FeatureManager.getFeatureFromSampleVector(train);\n/* */ }\n/* 726 */ if (normalize) {\n/* */ \n/* 728 */ normalize(train, features);\n/* 729 */ if (validation != null)\n/* 730 */ normalize(validation, features); \n/* 731 */ if (test != null) {\n/* 732 */ normalize(test, features);\n/* */ }\n/* */ } \n/* 735 */ RankerTrainer trainer = new RankerTrainer();\n/* 736 */ Ranker ranker = trainer.train(this.type, train, validation, features, this.trainScorer);\n/* */ \n/* 738 */ if (test != null) {\n/* */ \n/* 740 */ double rankScore = evaluate(ranker, test);\n/* 741 */ System.out.println(this.testScorer.name() + \" on test data: \" + SimpleMath.round(rankScore, 4));\n/* */ } \n/* 743 */ if (modelFile.compareTo(\"\") != 0) {\n/* */ \n/* 745 */ System.out.println(\"\");\n/* 746 */ ranker.save(modelFile);\n/* 747 */ System.out.println(\"Model saved to: \" + modelFile);\n/* */ } \n/* */ }", "public abstract void Train() throws Exception;", "public Training() {\n }", "public Training() {\n\n }", "@Test(timeout = 4000)\n public void test068() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass(360, (-336.251));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void trainWithMasterSplinterTest() {\n\n }", "void storeTraining(Training training);", "public void actionTrain(Train t) {\n\t\t\t t.setVitesseScalaire(vitesse);\n\t\t}", "void setTrainData(DataModel trainData);", "public void evaluate(String sampleFile, String validationFile, String featureDefFile, double percentTrain) {\n/* 761 */ List<RankList> trainingData = new ArrayList<>();\n/* 762 */ List<RankList> testData = new ArrayList<>();\n/* 763 */ int[] features = prepareSplit(sampleFile, featureDefFile, percentTrain, normalize, trainingData, testData);\n/* 764 */ List<RankList> validation = null;\n/* */ \n/* */ \n/* 767 */ if (!validationFile.isEmpty()) {\n/* */ \n/* 769 */ validation = readInput(validationFile);\n/* 770 */ if (normalize) {\n/* 771 */ normalize(validation, features);\n/* */ }\n/* */ } \n/* 774 */ RankerTrainer trainer = new RankerTrainer();\n/* 775 */ Ranker ranker = trainer.train(this.type, trainingData, validation, features, this.trainScorer);\n/* */ \n/* 777 */ double rankScore = evaluate(ranker, testData);\n/* */ \n/* 779 */ System.out.println(this.testScorer.name() + \" on test data: \" + SimpleMath.round(rankScore, 4));\n/* 780 */ if (modelFile.compareTo(\"\") != 0) {\n/* */ \n/* 782 */ System.out.println(\"\");\n/* 783 */ ranker.save(modelFile);\n/* 784 */ System.out.println(\"Model saved to: \" + modelFile);\n/* */ } \n/* */ }", "public abstract double test(ClassifierData<U> testData);", "@Test\n public void test01() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass((-1459.149165489484), ',');\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "public void train(){\r\n\t\tdouble output = 0.0;\r\n\t\tList<Integer> teacher = null;\r\n\t\tdouble adjustedWeight = 0.0;\r\n\t\tdouble error = 0.0;\r\n\t\tdouble deltaK = 0.0;\r\n\r\n\t\tfor(int counter = 0; counter < maxEpoch; counter++){\r\n\t\t\tfor(Instance inst : trainingSet){\r\n\t\t\t\tcalculateOutputForInstance(inst);\r\n\t\t\t\tteacher = inst.classValues;\r\n\t\t\t\t//jk weight\r\n\t\t\t\tfor(int i = 0; i < outputNodes.size(); i++){\r\n\t\t\t\t\tNode kNode = outputNodes.get(i);\r\n\t\t\t\t\toutput = kNode.getOutput();\r\n\t\t\t\t\terror = teacher.get(i) - output;\r\n\t\t\t\t\tdeltaK = error*getReLU(kNode.getSum());\r\n\t\t\t\t\tfor(int j = 0; j < kNode.parents.size(); j++){\r\n\t\t\t\t\t\tNodeWeightPair jkWeight = kNode.parents.get(j);\r\n\t\t\t\t\t\tNode jNode = jkWeight.node;\r\n\t\t\t\t\t\tadjustedWeight = getJK(jNode, deltaK);\r\n\t\t\t\t\t\tjkWeight.weight += adjustedWeight;\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t//ij weight\r\n\t\t\t\tfor(int i = 0; i < hiddenNodes.size(); i++){\r\n\t\t\t\t\tNode jNode = hiddenNodes.get(i);\r\n\t\t\t\t\tif(jNode.parents == null) continue;\r\n\t\t\t\t\tfor(int j = 0; j < jNode.parents.size(); j++){\r\n\t\t\t\t\t\tNodeWeightPair ijWeight = jNode.parents.get(j);\r\n\t\t\t\t\t\tNode iNode = ijWeight.node;\r\n\t\t\t\t\t\tadjustedWeight = getIJ(iNode, jNode, teacher, i);\r\n\t\t\t\t\t\tijWeight.weight += adjustedWeight;\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}", "public void train() {\n\t\tfor (int i = 0; i < numberOfIterations; i++) {\n\t\t\t// for each training record\n\t\t\tfor (int j = 0; j < numberOfRecords; j++) {\n\t\t\t\t// calculate inputs and outputs\n\t\t\t\tforwardCalculation(records.get(j).input);\n\t\t\t\t// compute errors, update weights and thetas\n\t\t\t\tbackwardCalculation(records.get(j).output);\n\t\t\t}\n//\t\t\tpostprocessOutputs();\n\t\t}\n\t}", "public void kirimNotifikasiPersetujuan(Training training){\n\t\t\n\t}", "@Test(timeout = 4000)\n public void test077() throws Throwable {\n String[] stringArray0 = new String[2];\n stringArray0[1] = \"\";\n Evaluation.main(stringArray0);\n NaiveBayesMultinomial naiveBayesMultinomial0 = new NaiveBayesMultinomial();\n try { \n Evaluation.evaluateModel((Classifier) naiveBayesMultinomial0, stringArray0);\n fail(\"Expecting exception: Exception\");\n \n } catch(Exception e) {\n //\n // \n // Weka exception: No training file and no object input file given.\n // \n // General options:\n // \n // -h or -help\n // \\tOutput help information.\n // -synopsis or -info\n // \\tOutput synopsis for classifier (use in conjunction with -h)\n // -t <name of training file>\n // \\tSets training file.\n // -T <name of test file>\n // \\tSets test file. If missing, a cross-validation will be performed\n // \\ton the training data.\n // -c <class index>\n // \\tSets index of class attribute (default: last).\n // -x <number of folds>\n // \\tSets number of folds for cross-validation (default: 10).\n // -no-cv\n // \\tDo not perform any cross validation.\n // -split-percentage <percentage>\n // \\tSets the percentage for the train/test set split, e.g., 66.\n // -preserve-order\n // \\tPreserves the order in the percentage split.\n // -s <random number seed>\n // \\tSets random number seed for cross-validation or percentage split\n // \\t(default: 1).\n // -m <name of file with cost matrix>\n // \\tSets file with cost matrix.\n // -l <name of input file>\n // \\tSets model input file. In case the filename ends with '.xml',\n // \\ta PMML file is loaded or, if that fails, options are loaded\n // \\tfrom the XML file.\n // -d <name of output file>\n // \\tSets model output file. In case the filename ends with '.xml',\n // \\tonly the options are saved to the XML file, not the model.\n // -v\n // \\tOutputs no statistics for training data.\n // -o\n // \\tOutputs statistics only, not the classifier.\n // -i\n // \\tOutputs detailed information-retrieval statistics for each class.\n // -k\n // \\tOutputs information-theoretic statistics.\n // -classifications \\\"weka.classifiers.evaluation.output.prediction.AbstractOutput + options\\\"\n // \\tUses the specified class for generating the classification output.\n // \\tE.g.: weka.classifiers.evaluation.output.prediction.PlainText\n // -p range\n // \\tOutputs predictions for test instances (or the train instances if\n // \\tno test instances provided and -no-cv is used), along with the \n // \\tattributes in the specified range (and nothing else). \n // \\tUse '-p 0' if no attributes are desired.\n // \\tDeprecated: use \\\"-classifications ...\\\" instead.\n // -distribution\n // \\tOutputs the distribution instead of only the prediction\n // \\tin conjunction with the '-p' option (only nominal classes).\n // \\tDeprecated: use \\\"-classifications ...\\\" instead.\n // -r\n // \\tOnly outputs cumulative margin distribution.\n // -xml filename | xml-string\n // \\tRetrieves the options from the XML-data instead of the command line.\n // -threshold-file <file>\n // \\tThe file to save the threshold data to.\n // \\tThe format is determined by the extensions, e.g., '.arff' for ARFF \n // \\tformat or '.csv' for CSV.\n // -threshold-label <label>\n // \\tThe class label to determine the threshold data for\n // \\t(default is the first label)\n // \n // Options specific to weka.classifiers.bayes.NaiveBayesMultinomial:\n // \n // -D\n // \\tIf set, classifier is run in debug mode and\n // \\tmay output additional info to the console\n //\n verifyException(\"weka.classifiers.Evaluation\", e);\n }\n }", "List<Training> obtainAllTrainings();", "public void checkTraining() {\r\n loadGenome();\r\n MLDataSet trainingSet;\r\n float sum = 0;\r\n try (Stream<Path> walk = Files.walk(Paths.get(\"check_train_data\"))) {\r\n\r\n List<String> result = walk.filter(Files::isRegularFile)\r\n .map(x -> x.toString()).collect(Collectors.toList());\r\n\r\n for (int i = 0; i < result.size(); i++) {\r\n trainingSet = new CSVNeuralDataSet(result.get(i), input, output, true);\r\n sum += network.calculateError(trainingSet);\r\n }\r\n System.out.println(\"Validation, Average error: \" + sum / result.size());\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n }", "private void train() throws IOException {\r\n\r\n // Set Listeners, to see results of evaluation during training process and testing\r\n vgg16Transfer.setListeners(new ScoreIterationListener(100));\r\n trainWriter.write(\"\\n Train model....\");\r\n System.out.println(\"\\n Train model....\");\r\n int iterationsCounter = 0;\r\n // Go through all data \"epochs\" - number of times\r\n for(int n = 0; n < epochs; n++) {\r\n System.out.println(String.format(\"Epoch %d started training\", n + 1));\r\n trainWriter.write(String.format(\"Epoch %d started training\", n + 1));\r\n\r\n //Reset training iterator to the new epoch\r\n trainIterator.reset();\r\n // Go through all data once, till it's end\r\n while (trainIterator.hasNext()) {\r\n iterationsCounter++;\r\n trainingData = trainIterator.next();\r\n normalizer.fit(trainingData);\r\n vgg16Transfer.fit(trainingData);\r\n System.out.println(\"*** Completed iteration number # \" + iterationsCounter + \" ***\");\r\n trainWriter.write(\"*** Completed iteration number # \" + iterationsCounter + \" ***\");\r\n\r\n }\r\n System.out.println(String.format(\"Epoch %d finished training\", n + 1));\r\n trainWriter.write(\"*** Completed iteration number # \" + iterationsCounter + \" ***\");\r\n // Get results and check them\r\n Evaluation eval = new Evaluation(numLabels);\r\n testIterator.reset();\r\n while(testIterator.hasNext()) {\r\n testData = testIterator.next();\r\n normalizer.fit(testData);\r\n INDArray features = testData.getFeatures();\r\n INDArray labels = testData.getLabels();\r\n INDArray predicted = vgg16Transfer.outputSingle(features);\r\n eval.eval(labels, predicted);\r\n }\r\n System.out.println(String.format(\"Evaluation on test data - [Epoch %d] [Accuracy: %.3f, P: %.3f, R: %.3f, F1: %.3f] \",\r\n n + 1, eval.accuracy(), eval.precision(), eval.recall(), eval.f1()));\r\n System.out.println(eval.stats());\r\n System.out.println(eval.confusionToString());\r\n trainWriter.write(String.format(\"Evaluation on test data - [Epoch %d] [Accuracy: %.3f, P: %.3f, R: %.3f, F1: %.3f] \",\r\n n + 1, eval.accuracy(), eval.precision(), eval.recall(), eval.f1()));\r\n trainWriter.write(eval.stats());\r\n trainWriter.write(eval.confusionToString());\r\n }\r\n System.out.println(\"\\n *** Training finished! *** \");\r\n trainWriter.write(\"\\n *** Training finished! *** \");\r\n }", "public void evaluate(String sampleFile, String featureDefFile, int nFold, float tvs, String modelDir, String modelFile) {\n/* 854 */ List<List<RankList>> trainingData = new ArrayList<>();\n/* 855 */ List<List<RankList>> validationData = new ArrayList<>();\n/* 856 */ List<List<RankList>> testData = new ArrayList<>();\n/* */ \n/* */ \n/* */ \n/* 860 */ List<RankList> samples = readInput(sampleFile);\n/* */ \n/* */ \n/* 863 */ int[] features = readFeature(featureDefFile);\n/* 864 */ if (features == null) {\n/* 865 */ features = FeatureManager.getFeatureFromSampleVector(samples);\n/* */ }\n/* 867 */ FeatureManager.prepareCV(samples, nFold, tvs, trainingData, validationData, testData);\n/* */ \n/* */ \n/* 870 */ if (normalize)\n/* */ {\n/* 872 */ for (int j = 0; j < nFold; j++) {\n/* */ \n/* 874 */ normalizeAll(trainingData, features);\n/* 875 */ normalizeAll(validationData, features);\n/* 876 */ normalizeAll(testData, features);\n/* */ } \n/* */ }\n/* */ \n/* 880 */ Ranker ranker = null;\n/* 881 */ double scoreOnTrain = 0.0D;\n/* 882 */ double scoreOnTest = 0.0D;\n/* 883 */ double totalScoreOnTest = 0.0D;\n/* 884 */ int totalTestSampleSize = 0;\n/* */ \n/* 886 */ double[][] scores = new double[nFold][]; int i;\n/* 887 */ for (i = 0; i < nFold; i++) {\n/* 888 */ (new double[2])[0] = 0.0D; (new double[2])[1] = 0.0D; scores[i] = new double[2];\n/* 889 */ } for (i = 0; i < nFold; i++) {\n/* */ \n/* 891 */ List<RankList> train = trainingData.get(i);\n/* 892 */ List<RankList> vali = null;\n/* 893 */ if (tvs > 0.0F)\n/* 894 */ vali = validationData.get(i); \n/* 895 */ List<RankList> test = testData.get(i);\n/* */ \n/* 897 */ RankerTrainer trainer = new RankerTrainer();\n/* 898 */ ranker = trainer.train(this.type, train, vali, features, this.trainScorer);\n/* */ \n/* 900 */ double s2 = evaluate(ranker, test);\n/* 901 */ scoreOnTrain += ranker.getScoreOnTrainingData();\n/* 902 */ scoreOnTest += s2;\n/* 903 */ totalScoreOnTest += s2 * test.size();\n/* 904 */ totalTestSampleSize += test.size();\n/* */ \n/* */ \n/* 907 */ scores[i][0] = ranker.getScoreOnTrainingData();\n/* 908 */ scores[i][1] = s2;\n/* */ \n/* */ \n/* 911 */ if (!modelDir.isEmpty()) {\n/* */ \n/* 913 */ ranker.save(FileUtils.makePathStandard(modelDir) + \"f\" + (i + 1) + \".\" + modelFile);\n/* 914 */ System.out.println(\"Fold-\" + (i + 1) + \" model saved to: \" + modelFile);\n/* */ } \n/* */ } \n/* 917 */ System.out.println(\"Summary:\");\n/* 918 */ System.out.println(this.testScorer.name() + \"\\t| Train\\t| Test\");\n/* 919 */ System.out.println(\"----------------------------------\");\n/* 920 */ for (i = 0; i < nFold; i++)\n/* 921 */ System.out.println(\"Fold \" + (i + 1) + \"\\t| \" + SimpleMath.round(scores[i][0], 4) + \"\\t| \" + SimpleMath.round(scores[i][1], 4) + \"\\t\"); \n/* 922 */ System.out.println(\"----------------------------------\");\n/* 923 */ System.out.println(\"Avg.\\t| \" + SimpleMath.round(scoreOnTrain / nFold, 4) + \"\\t| \" + SimpleMath.round(scoreOnTest / nFold, 4) + \"\\t\");\n/* 924 */ System.out.println(\"----------------------------------\");\n/* 925 */ System.out.println(\"Total\\t| \\t\\t| \" + SimpleMath.round(totalScoreOnTest / totalTestSampleSize, 4) + \"\\t\");\n/* */ }", "public abstract void fit(BinaryData trainingData);", "@Test(timeout = 4000)\n public void test101() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n NaiveBayesMultinomial naiveBayesMultinomial0 = new NaiveBayesMultinomial();\n MockRandom mockRandom0 = new MockRandom((-1));\n try { \n evaluation0.crossValidateModel((Classifier) naiveBayesMultinomial0, instances0, (-1), (Random) mockRandom0, (Object[]) testInstances0.DEFAULT_WORDS);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // Number of folds must be greater than 1\n //\n verifyException(\"weka.core.Instances\", e);\n }\n }", "public void fit(ArrayList trainData) {\n this.trainingData = trainData;\n }", "public void train() {\n\n int w;\n double sum = 0, avg;\n double forecast;\n double[][] trainMatrix = new double[trainPoints][2];\n double[][] valMatrix = new double[validationPoints][2];\n actual = observations.toArray();\n\n for (int i = 0; i < step * slices; i++)\n sum += actual[i];\n\n avg = sum / slices;\n\n for (int pos = 0; pos < trainPoints; pos++) {\n sum = 0;\n w = 0;\n\n if (pos >= step * slices) {\n for (int k = pos - step * slices; k < pos; k += step)\n sum += actual[k] * weights[w++];\n forecast = sum / slices;\n } else forecast = avg;\n\n trainMatrix[pos][0] = actual[pos];\n trainMatrix[pos][1] = forecast;\n }\n\n for (int pos = actual.length - validationPoints, j = 0; pos < actual.length; pos++) {\n sum = 0;\n w = 0;\n for (int k = pos - step * slices; k < pos; k += step)\n sum += actual[k] * weights[w++];\n forecast = sum / slices;\n valMatrix[j][0] = actual[pos];\n valMatrix[j][1] = forecast;\n j++;\n }\n double biasness = BiasnessHandler.handleOffset(valMatrix);\n accuracyIndicators.setBias(biasness);\n ModelUtil.computeAccuracyIndicators(accuracyIndicators, trainMatrix, valMatrix, dof);\n errorBound = ErrorBoundsHandler.computeErrorBoundInterval(trainMatrix);\n }", "@Test\n public void test00() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass('u', 4.9E-324);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "public IObserver train(IContext context) throws ThinklabException;", "public void train() {\n\t\tfor (Instance ins : arrTrainInstances) {\n\t\t\tif (ins.scorePmi_E1E2 > largestPMI)\n\t\t\t\tlargestPMI = ins.scorePmi_E1E2;\n\t\t}\n\t\tSystem.out.println(\"Largest PMI: \" + largestPMI);\n\n\t\tfor (Instance ins : arrTrainInstances) {\n\t\t\tins.scorePmi_E1E2 = ins.scorePmi_E1E2 / largestPMI;\n\t\t}\n\n\t\tfor (Instance ins : arrTestInstances) {\n\t\t\tins.scorePmi_E1E2 = ins.scorePmi_E1E2 / largestPMI;\n\t\t}\n\n\t\tint sizeD0 = arrD0.size();\n\t\tint sizeD1 = arrD1.size();\n\t\tint sizeD2 = arrD2.size();\n\t\tint sizeD3 = arrD3.size();\n\n\t\tint sizeMin = Math.min(sizeD0, Math.min(sizeD1, Math\n\t\t\t\t.min(sizeD2, sizeD3)));\n\t\tSystem.out.println(\"sizeMin=\" + sizeMin);\n\n\t\tint n = instanceNums.length;\n\n\t\tboolean flag = false;\n\n\t\tint count = 0;\n\n\t\tfor (int i = 0; i < n; i++) {\n\n\t\t\tint k = instanceNums[i];\n\n\t\t\tif (k > sizeMin) {\n\t\t\t\tk = sizeMin;\n\t\t\t\tinstanceNums[i] = k;\n\t\t\t\tflag = true;\n\t\t\t}\n\n\t\t\tSystem.out.println(\"\\nk=\" + k);\n\n\t\t\tArrayList<Instance> arrSub0 = getInstances(arrD0, k);\n\t\t\tArrayList<Instance> arrSub1 = getInstances(arrD1, k);\n\t\t\tArrayList<Instance> arrSub2 = getInstances(arrD2, k);\n\t\t\tArrayList<Instance> arrSub3 = getInstances(arrD3, k);\n\n\t\t\tArrayList<Instance> arrTrains = new ArrayList<Instance>();\n\t\t\tarrTrains.addAll(arrSub0);\n\t\t\tarrTrains.addAll(arrSub1);\n\t\t\tarrTrains.addAll(arrSub2);\n\t\t\tarrTrains.addAll(arrSub3);\n\t\t\tCollections.shuffle(arrTrains);\n\n\t\t\tSystem.out.println(\"Training size: \" + arrTrains.size());\n\n\t\t\ttrain(arrTrains);\n\n\t\t\tdouble acc = test();\n\t\t\tacc = test();\n\n\t\t\taccuracies[i] = acc;\n\n\t\t\tcount++;\n\n\t\t\tif (flag == true)\n\t\t\t\tbreak;\n\n\t\t}\n\n\t\tfor (int i = 0; i < count; i++) {\n\t\t\tSystem.out.print(\" | \" + \"K=\" + instanceNums[i]);\n\t\t}\n\t\tSystem.out.println();\n\n\t\tfor (int i = 0; i < count; i++) {\n\n\t\t\tDecimalFormat df = new DecimalFormat(\"#.####\");\n\t\t\tString res = df.format(accuracies[i]);\n\t\t\tSystem.out.print(\" | \" + res);\n\t\t}\n\t\tSystem.out.println();\n\t}", "public boolean train(Mat trainData, Mat responses)\r\n {\r\n\r\n boolean retVal = train_1(nativeObj, trainData.nativeObj, responses.nativeObj);\r\n\r\n return retVal;\r\n }", "public void test(List<String> modelFiles, String testFile, String prpFile) {\n/* 1014 */ List<List<RankList>> trainingData = new ArrayList<>();\n/* 1015 */ List<List<RankList>> testData = new ArrayList<>();\n/* */ \n/* */ \n/* 1018 */ int nFold = modelFiles.size();\n/* */ \n/* 1020 */ List<RankList> samples = readInput(testFile);\n/* */ \n/* 1022 */ System.out.print(\"Preparing \" + nFold + \"-fold test data... \");\n/* 1023 */ FeatureManager.prepareCV(samples, nFold, trainingData, testData);\n/* 1024 */ System.out.println(\"[Done.]\");\n/* 1025 */ double rankScore = 0.0D;\n/* 1026 */ List<String> ids = new ArrayList<>();\n/* 1027 */ List<Double> scores = new ArrayList<>();\n/* 1028 */ for (int f = 0; f < nFold; f++) {\n/* */ \n/* 1030 */ List<RankList> test = testData.get(f);\n/* 1031 */ Ranker ranker = this.rFact.loadRankerFromFile(modelFiles.get(f));\n/* 1032 */ int[] features = ranker.getFeatures();\n/* 1033 */ if (normalize) {\n/* 1034 */ normalize(test, features);\n/* */ }\n/* 1036 */ for (RankList aTest : test) {\n/* 1037 */ RankList l = ranker.rank(aTest);\n/* 1038 */ double score = this.testScorer.score(l);\n/* 1039 */ ids.add(l.getID());\n/* 1040 */ scores.add(Double.valueOf(score));\n/* 1041 */ rankScore += score;\n/* */ } \n/* */ } \n/* 1044 */ rankScore /= ids.size();\n/* 1045 */ ids.add(\"all\");\n/* 1046 */ scores.add(Double.valueOf(rankScore));\n/* 1047 */ System.out.println(this.testScorer.name() + \" on test data: \" + SimpleMath.round(rankScore, 4));\n/* */ \n/* 1049 */ if (!prpFile.isEmpty()) {\n/* */ \n/* 1051 */ savePerRankListPerformanceFile(ids, scores, prpFile);\n/* 1052 */ System.out.println(\"Per-ranked list performance saved to: \" + prpFile);\n/* */ } \n/* */ }", "@Test\n public void test22() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n FastVector fastVector0 = evaluation0.predictions();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test047() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n try { \n Evaluation.evaluateModel(\"\", testInstances0.DEFAULT_WORDS);\n fail(\"Expecting exception: Exception\");\n \n } catch(Exception e) {\n //\n // Can't find class with name .\n //\n verifyException(\"weka.classifiers.Evaluation\", e);\n }\n }", "public void run() throws Exception {\r\n\r\n\r\n LibSVM svm = new LibSVM();\r\n String svmOptions = \"-S 0 -K 2 -C 8 -G 0\"; //Final result: [1, -7 for saveTrainingDataToFileHybridSampling2 ]\r\n svm.setOptions(weka.core.Utils.splitOptions(svmOptions));\r\n System.out.println(\"SVM Type and Keranl Type= \" + svm.getSVMType() + svm.getKernelType());//1,3 best result 81%\r\n // svm.setNormalize(true);\r\n\r\n\r\n// load training data from .arff file\r\n ConverterUtils.DataSource source = new ConverterUtils.DataSource(\"C:\\\\Users\\\\hp\\\\Desktop\\\\SVM implementation\\\\arffData\\\\balancedTrainingDataUSSMOTE464Random.arff\");\r\n System.out.println(\"\\n\\nLoaded data:\\n\\n\" + source.getDataSet());\r\n Instances dataFiltered = source.getDataSet();\r\n dataFiltered.setClassIndex(0);\r\n\r\n // gridSearch(svm, dataFiltered);\r\n Evaluation evaluation = new Evaluation(dataFiltered);\r\n evaluation.crossValidateModel(svm, dataFiltered, 10, new Random(1));\r\n System.out.println(evaluation.toSummaryString());\r\n System.out.println(evaluation.weightedAreaUnderROC());\r\n double[][] confusionMatrix = evaluation.confusionMatrix();\r\n for (int i = 0; i < 2; i++) {\r\n for (int j = 0; j < 2; j++) {\r\n System.out.print(confusionMatrix[i][j] + \" \");\r\n\r\n }\r\n System.out.println();\r\n }\r\n System.out.println(\"accuracy for crime class= \" + (confusionMatrix[0][0] / (confusionMatrix[0][1] + confusionMatrix[0][0])) * 100 + \"%\");\r\n System.out.println(\"accuracy for other class= \" + (confusionMatrix[1][1] / (confusionMatrix[1][1] + confusionMatrix[1][0])) * 100 + \"%\");\r\n System.out.println(\"accuracy for crime class= \" + evaluation.truePositiveRate(0) + \"%\");\r\n System.out.println(\"accuracy for other class= \" + evaluation.truePositiveRate(1) + \"%\");\r\n\r\n\r\n }", "private static native boolean train_0(long nativeObj, long trainData_nativeObj, long responses_nativeObj, long varIdx_nativeObj, long sampleIdx_nativeObj, long params_nativeObj);", "public abstract void setTrainParams(ClassificationMethod method,URL model,Map<String,Object> args) throws ClassificationException;", "abstract void train(Matrix features, Matrix labels);", "public void trainBernoulli() {\t\t\n\t\tMap<String, Cluster> trainingDataSet = readFile(trainLabelPath, trainDataPath, \"training\");\n\t\tMap<String, Cluster> testingDataSet = readFile(testLabelPath, testDataPath, \"testing\");\n\n\t\t// do testing, if the predicted class and the gold class is not equal, increment one\n\t\tdouble error = 0;\n\n\t\tdouble documentSize = 0;\n\n\t\tSystem.out.println(\"evaluate the performance\");\n\t\tfor (int testKey = 1; testKey <= 20; testKey++) {\n\t\t\tCluster testingCluster = testingDataSet.get(Integer.toString(testKey));\n\t\t\tSystem.out.println(\"Cluster: \"+testingCluster.toString());\n\n\t\t\tfor (Document document : testingCluster.getDocuments()) {\n\t\t\t\tdocumentSize += 1; \n\t\t\t\tList<Double> classprobability = new ArrayList<Double>();\n\t\t\t\tMap<String, Integer> testDocumentWordCounts = document.getWordCount();\n\n\t\t\t\tfor (int classindex = 1; classindex <= 20; classindex++) {\n\t\t\t\t\t// used for calculating the probability\n\t\t\t\t\tCluster trainCluster = trainingDataSet.get(Integer.toString(classindex));\n\t\t\t\t\t// System.out.println(classindex + \" \" + trainCluster.mClassId);\n\t\t\t\t\tMap<String, Double> bernoulliProbability = trainCluster.bernoulliProbabilities;\n\t\t\t\t\tdouble probability = Math.log(trainCluster.getDocumentSize()/trainDocSize);\n\t\t\t\t\tfor(int index = 1; index <= voc.size(); index++ ){\n\n\t\t\t\t\t\t// judge whether this word is stop word \n\t\t\t\t\t\tboolean isStopwords = englishStopPosition.contains(index);\n\t\t\t\t\t\tif (isStopwords) continue;\n\n\t\t\t\t\t\tboolean contain = testDocumentWordCounts.containsKey(Integer.toString(index));\t\t\t\t\t\t\n\t\t\t\t\t\tif (contain) {\n\t\t\t\t\t\t\tprobability += Math.log(bernoulliProbability.get(Integer.toString(index)));\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tprobability += Math.log(1 - bernoulliProbability.get(Integer.toString(index)));\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t\t\t// put the probability into the map for the specific class\n\t\t\t\t\tclassprobability.add(probability);\n\t\t\t\t}\n\t\t\t\tObject obj = Collections.max(classprobability);\n\t\t\t\t// System.out.println(classprobability);\n\t\t\t\tString predicte_class1 = obj.toString();\n\t\t\t\t// System.out.println(predicte_class1);\n\t\t\t\t// System.out.println(Double.parseDouble(predicte_class1));\n\t\t\t\tint index = classprobability.indexOf(Double.parseDouble(predicte_class1));\n\t\t\t\t// System.out.println(index);\n\t\t\t\tString predicte_class = Integer.toString(index + 1);\n\n\n\t\t\t\tconfusion_matrix[testKey - 1][index] += 1;\n\n\t\t\t\t// System.out.println(document.docId + \": G, \" + testKey + \"; P: \" + predicte_class);\n\t\t\t\tif (!predicte_class.equals(Integer.toString(testKey))) {\n\t\t\t\t\terror += 1;\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tSystem.out.println(\"the error is \" + error + \"; the document size : \" + documentSize);\n\t\t}\n\n\t\tSystem.out.println(\"the error is \" + error + \"; the document size : \" + documentSize + \" precision rate : \" + (1 - error/documentSize));\n\n\t\t// print confusion matrix\n\t\tprintConfusionMatrix(confusion_matrix);\n\t}", "public boolean train(Mat trainData, Mat responses, Mat varIdx, Mat sampleIdx, CvSVMParams params)\r\n {\r\n\r\n boolean retVal = train_0(nativeObj, trainData.nativeObj, responses.nativeObj, varIdx.nativeObj, sampleIdx.nativeObj, params.nativeObj);\r\n\r\n return retVal;\r\n }", "public void trainData() throws IOException {\n\t\tfor (int i = 0; i < 10; i++) {\n\t\t\ttestingFold = i;\n\n\t\t\tif (testingFold == writingFold) {\n\t\t\t\tlogger.append(\"Training Tree-Augmented Naive Bayes for writing Fold\");\n\t\t\t}\n\n\t\t\tif (testingFold == writingFold) {\n\t\t\t\tlogger.append(\"Calculating Class Priors across Data set.\\n\");\n\t\t\t}\n\t\t\tbuildPriors();\n\n\t\t\tif (testingFold == writingFold) {\n\t\t\t\tlogger.append(\"Priors built.\\n Discretizing data into Naive Bin Estimator...\\n\" +\n\t\t\t\t\t\t\"Generating Completed Graph...\\nWeighting Edges...\\n\");\n\t\t\t}\n\t\t\tdiscretizeData();\n\t\t\ttest();\n\t\t}\n\n\t}", "@Test(timeout = 4000)\n public void test093() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n Object[] objectArray0 = new Object[2];\n evaluation0.evaluateModel((Classifier) null, instances0, objectArray0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "public void train(DoubleDataTable trainTable, Progress prog) throws InterruptedException\n\t{\n \tif (m_ClassifierTypes.size()==0)\n \t{\n \t\tprog.set(\"Training classifiers\", 1);\n \t\tprog.step();\n \t\treturn;\n \t}\n \tint[] progressVolumes = new int[m_ClassifierTypes.size()];\n \tprogressVolumes[0] = 100/progressVolumes.length;\n \tfor (int i = 1; i < progressVolumes.length; i++)\n \t\tprogressVolumes[i] = 100*(i+1)/progressVolumes.length-progressVolumes[i-1];\n \tprog = new MultiProgress(\"Training classifiers\", prog, progressVolumes);\n\t\tfor (Map.Entry<String,Class> cl : m_ClassifierTypes.entrySet())\n\t\t{\n\t\t\tm_Classifiers.remove(cl.getKey());\n\t\t\ttry\n\t\t\t{\n\t\t\t\tClass classifierClass = cl.getValue();\n\t\t\t\tProperties prop = m_ClassifierProperties.get(cl.getKey());\n\t\t\t\tClassifier classifier = ClassifierFactory.createClassifier(classifierClass, prop, trainTable, prog);\n\t\t\t\tm_Classifiers.put(cl.getKey(), classifier);\n\t\t\t}\n\t\t\tcatch (InvocationTargetException e)\n\t\t\t{\n\t\t\t\tif (e.getTargetException() instanceof BadHeaderException)\n\t\t\t\t\tReport.displaynl(cl.getKey()+\" not trained: \"+e.getTargetException().getMessage());\n\t\t\t\telse Report.exception((Exception)e.getTargetException());\n\t\t\t}\n\t\t\tcatch (Exception e)\n\t\t\t{\n\t\t\t\tReport.exception(e);\n\t\t\t}\n\t\t}\n\t}", "public void runExperiment() {\n\t\tevaluator = new Evaluator(trainingSet);\n\t\tevaluator.evaluateClassifiers(classifiers);\n\t}", "public static void main(String[] args) {\n String pathToTrain = \"train.csv\";\n String pathToTest = \"test.csv\";\n try {\n ArrayList<String> trainSentences = readCSV(pathToTrain);\n trainSentences.remove(0);\n ArrayList<String> testSentences = readCSV(pathToTest);\n testSentences.remove(0);\n\n ArrayList<String[]> trainWords = preprocess(trainSentences);\n NaiveBayesClassifier model = new NaiveBayesClassifier();\n model.fit(trainWords);\n\n ArrayList<String[]> testWords = preprocess(testSentences);\n double accuracy = evaluate(testWords, model);\n model.writeParams(\"params.json\");\n System.out.printf(\"Accuracy of the model is: %.4f%n\", accuracy);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n }", "void applyForTraining(int studentId, int trainingId) throws ServiceException;", "private void trainFeatures() throws Exception\n\t{\n\t\tdbiterator.setDataSource(DBInstanceIterator.DBSource.FEATURE);\n\t\tSystem.out.println(\"Starting reading Feature Trainingset ..\");\n\t\tPipe serialpipe = getFeaturePipe();\n\t\tInstanceList feature_instances = new InstanceList(serialpipe);\n\t\tSystem.out.println(\"Preprocessing on Feature Trainingset ..\");\n\t\tfeature_instances.addThruPipe(dbiterator);\n\t\tSystem.out.println(\"Feature Training set : \" + feature_instances.size());\n\t\tSystem.out.println(\"Saving preprocessed data ..\");\n\t\tsaveinstances(feature_instances, Train + \"F.bin\");\n\t\tSystem.out.println(\"Saving Features data ..\");\n\t\tfeature_instances.getDataAlphabet().dump(new PrintWriter(new File(Attributes + \"feature.dat\")));\n\t\tClassifierTrainer trainer = new NaiveBayesTrainer();\n\t\tSystem.out.println(\"NaiveBayes Starts Training on Feature training set ..\");\n\t\tClassifier classifier = trainer.train(feature_instances);\n\t\tSystem.out.println(\"Targets labels : \\t\"+classifier.getLabelAlphabet());\n\t\tSystem.out.println(\"Saving Naive Bayes Classifier ..\");\n\t\tsaveModel(classifier, Feature_Train);\n\t\tSystem.out.println(\"Feature classifier saved to : \" + Feature_Train);\n\t}", "private ArrayList<Record> test() {\n\t\t\t\tfor (int i = 0; i < numberOfIterations; i++) {\n\t\t\t\t\t// for each training record\n\t\t\t\t\tfor (int j = 0; j < numberOfRecords; j++) {\n\t\t\t\t\t\t// calculate inputs and outputs\n\t\t\t\t\t\tforwardCalculation(records.get(j).input);\n\t\t\t\t\t}\n\t\t\t\t}\n//\t\t\t\tpostprocessOutputs();\n\t\t// forward pass\n\t\t// back pass\n\t\treturn records;\n\t}", "public void train() throws RankingException {\n\t\tif (this.listener != null) this.classifier.setLearningListener(this);\n\t\t\n\t\ttry {\n\t\t\tthis.classifier.train(set);\n\t\t\tthis.accuracy = this.classifier.accuracy(set);\n\t\t}\n\t\tcatch (ClassifierException e) {\n\t\t\tthrow new RankingException(\"Error training using Boosting algorithm: \"+e.getMessage(), e);\n\t\t}\n\t}", "@Test\n public void test23() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n SerializedClassifier serializedClassifier0 = new SerializedClassifier();\n Object[] objectArray0 = new Object[25];\n double[] doubleArray0 = evaluation0.evaluateModel((Classifier) serializedClassifier0, instances0, objectArray0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "public String trainmodelandclassify(Attribute at) throws Exception {\n\t\tif(at.getAge()>=15 && at.getAge()<=25)\n\t\t\tat.setAgegroup(\"15-25\");\n\t\tif(at.getAge()>=26 && at.getAge()<=45)\n\t\t\tat.setAgegroup(\"25-45\");\n\t\tif(at.getAge()>=46 && at.getAge()<=65)\n\t\t\tat.setAgegroup(\"45-65\");\n\t\t\n\t\t\n\t\t\n\t\t//loading the training dataset\n\t\n\tDataSource source=new DataSource(\"enter the location of your .arff file for training data\");\n\tSystem.out.println(source);\n\tInstances traindataset=source.getDataSet();\n\t//setting the class index (which would be one less than the number of attributes)\n\ttraindataset.setClassIndex(traindataset.numAttributes()-1);\n\tint numclasses=traindataset.numClasses();\n for (int i = 0; i < numclasses; i++) {\n \tString classvalue=traindataset.classAttribute().value(i);\n \tSystem.out.println(classvalue);\n\t\t\n\t}\n //building the classifier\n NaiveBayes nb= new NaiveBayes();\n nb.buildClassifier(traindataset);\n System.out.println(\"model trained successfully\");\n \n //test the model\n\tDataSource testsource=new DataSource(\"enter the location of your .arff file for test data\");\n\tInstances testdataset=testsource.getDataSet();\n\t\n\tFileWriter fwriter = new FileWriter(\"enter the location of your .arff file for test data\",true); //true will append the new instance\n\tfwriter.write(System.lineSeparator());\n\tfwriter.write(at.getAgegroup()+\",\"+at.getGender()+\",\"+at.getProfession()+\",\"+\"?\");//appends the string to the file\n\tfwriter.close();\n\ttestdataset.setClassIndex(testdataset.numAttributes()-1);\n\t//looping through the test dataset and making predictions\n\tfor (int i = 0; i < testdataset.numInstances(); i++) {\n\t\tdouble classvalue=testdataset.instance(i).classValue();\n\t\tString actualclass=testdataset.classAttribute().value((int)classvalue);\n\t\tInstance instance=testdataset.instance(i);\n\t\tdouble pclassvalue=nb.classifyInstance(instance);\n\t\tString pclass=testdataset.classAttribute().value((int)pclassvalue);\n\t\tSystem.out.println(actualclass+\" \"+ pclass);\n\t\n}\n\tdouble classval=testdataset.instance(testdataset.numInstances()-1).classValue();\n\tInstance ins=testdataset.lastInstance();\n\tdouble pclassval=nb.classifyInstance(ins);\n\tString pclass=testdataset.classAttribute().value((int)pclassval);\n\tSystem.out.println(pclass);\n\t\n\treturn pclass;\n}", "private String train(float[][][] features, float[] label, int epochs){\n org.tensorflow.Tensor x_train = Tensor.create(features);\n Tensor y_train = Tensor.create(label);\n int ctr = 0;\n while (ctr < epochs) {\n sess.runner().feed(\"input\", x_train).feed(\"target\", y_train).addTarget(\"train_op\").run();\n ctr++;\n }\n return \"Model Trained\";\n }", "public Instances getTraining()\n {\n return new Instances(mTraining);\n }", "public abstract Instances _getTrainingFromParams(String params);", "public void test(Corpus testData) {\n\t\t// cross validation\n\t\ttestBigramWithNB(testData);\n\t\ttestUnigramWithNB(testData);\n\t}", "@Override\n\tpublic void trainLocal() throws Exception {\n\t\tdouble [][] input = parameters.getInput();\n\t\tdouble [][] result = ann.getResults(parameters);\n\t\tif (state == preTraining) {//in this case, it is running in the pre-training mode.\n\t\t\tinput = newInput;\n\t\t\tresult = newInput;\n\t\t}\n\t\terr = 0; \n\t\tfor (int i = 0; i < mb; i++) {\t\n\t\t\tif (pos > input.length - 1) {\n\t\t\t\tpos = 0;\n\t\t\t}\n\t\t\terr = err + ann.runEpoch(input[pos], pos, result[pos], parameters);\n\t\t\tpos++;\n\t\t}\n\t}", "private void test() {\r\n \ttry {\r\n\t\t\ttestWriter.write(\"Testing started...\");\r\n\t\t\r\n\t\t\tpredictions = new HashMap<>();\r\n \trightAnswers = new HashMap<>();\r\n\r\n\r\n \t// Get results and check them\r\n \tEvaluation eval = new Evaluation(numLabels);\r\n \tfinalTestIterator.reset();\r\n\r\n \tint metaDataCounter = 0;\r\n \tint addrCounter = 0;\r\n\r\n \twhile(finalTestIterator.hasNext()) {\r\n \t// If iterator has next dataset\r\n \tfinalTestData = finalTestIterator.next();\r\n \t// Get meta-data from this dataset\r\n\r\n \t@SuppressWarnings(\"rawtypes\")\r\n \tList<?> exampleMetaData = finalTestData.getExampleMetaData();\r\n \tIterator<?> exampleMetaDataIterator = exampleMetaData.iterator();\r\n \ttestWriter.write(\"\\n Metadata from dataset #\" + metaDataCounter + \":\\n\");\r\n \tSystem.out.println(\"\\n Metadata from dataset #\" + metaDataCounter + \":\\n\");\r\n\r\n \t// Normalize data\r\n \tnormalizer.fit(finalTestData);\r\n\r\n \t// Count processed images\r\n \tnumProcessed = (metaDataCounter + 1) * batchSizeTesting;\r\n \tloaded.setText(\"Loaded and processed: \" + numProcessed + \" pictures\");\r\n\r\n \tINDArray features = finalTestData.getFeatures();\r\n \tINDArray labels = finalTestData.getLabels();\r\n \tSystem.out.println(\"\\n Right labels #\" + metaDataCounter + \":\\n\");\r\n \ttestWriter.write(\"\\n Right labels #\" + metaDataCounter + \":\\n\");\r\n \t// Get right answers of NN for every input object\r\n \tint[][] rightLabels = labels.toIntMatrix();\r\n \tfor (int i = 0; i < rightLabels.length; i++) {\r\n \tRecordMetaDataURI metaDataUri = (RecordMetaDataURI) exampleMetaDataIterator.next();\r\n \t// Print address of image\r\n \tSystem.out.println(metaDataUri.getLocation());\r\n \tfor (int j = 0; j < rightLabels[i].length; j++) {\r\n \tif(rightLabels[i][j] == 1) {\r\n \t//public V put(K key, V value) -> key=address, value=right class label\r\n \trightAnswers.put(metaDataUri.getLocation(), j);\r\n \tthis.addresses.add(metaDataUri.getLocation());\r\n \t}\r\n \t}\r\n \t}\r\n \tSystem.out.println(\"\\nRight answers:\");\r\n \ttestWriter.write(\"\\nRight answers:\");\r\n \t// Print right answers\r\n \tfor(Map.Entry<String, Integer> answer : predictions.entrySet()){\r\n \t\ttestWriter.write(String.format(\"Address: %s Right answer: %s \\n\", answer.getKey(), answer.getValue().toString()));\r\n \tSystem.out.printf(String.format(\"Address: %s Right answer: %s \\n\", answer.getKey(), answer.getValue().toString()));\r\n \t}\r\n\r\n \t// Evaluate on the test data\r\n \tINDArray predicted = vgg16Transfer.outputSingle(features);\r\n \tint predFoundCounter = 0;\r\n \tSystem.out.println(\"\\n Labels predicted #\" + metaDataCounter + \":\\n\");\r\n \ttestWriter.write(\"\\n Labels predicted #\" + metaDataCounter + \":\\n\");\r\n \t// Get predictions of NN for every input object\r\n \tint[][] labelsPredicted = predicted.toIntMatrix();\r\n \tfor (int i = 0; i < labelsPredicted.length; i++) {\r\n \tfor (int j = 0; j < labelsPredicted[i].length; j++) {\r\n \tpredFoundCounter++;\r\n \tif(labelsPredicted[i][j] == 1) {\r\n \t//public V put(K key, V value) -> key=address, value=predicted class label\r\n \tpredFoundCounter = 0;\r\n \tthis.predictions.put(this.addresses.get(addrCounter), j);\r\n \t}\r\n \telse {\r\n \tif (predFoundCounter == 3) {\r\n \t// To fix bug when searching positive predictions\r\n \tthis.predictions.put(this.addresses.get(addrCounter), 2);\r\n \t}\r\n \t}\r\n \t}\r\n \taddrCounter++;\r\n \t}\r\n \tSystem.out.println(\"\\nPredicted:\");\r\n \ttestWriter.write(\"\\nPredicted:\");\r\n \t// Print predictions\r\n \tfor(Map.Entry<String, Integer> pred : rightAnswers.entrySet()){\r\n \tSystem.out.printf(\"Address: %s Predicted answer: %s \\n\", pred.getKey(), pred.getValue().toString());\r\n \ttestWriter.write(String.format(\"Address: %s Predicted answer: %s \\n\", pred.getKey(), pred.getValue().toString()));\r\n \t}\r\n \tmetaDataCounter++;\r\n\r\n \teval.eval(labels, predicted);\r\n \t}\r\n\r\n \tSystem.out.println(\"\\n\\n Cheack loaded model on test data...\");\r\n \tSystem.out.println(String.format(\"Evaluation on test data - [Accuracy: %.3f, P: %.3f, R: %.3f, F1: %.3f] \",\r\n \t\t\teval.accuracy(), eval.precision(), eval.recall(), eval.f1()));\r\n \tSystem.out.println(eval.stats());\r\n \tSystem.out.println(eval.confusionToString());\r\n \ttestWriter.write(\"\\n\\n Cheack loaded model on test data...\");\r\n \ttestWriter.write(String.format(\"Evaluation on test data - [Accuracy: %.3f, P: %.3f, R: %.3f, F1: %.3f] \",\r\n \t\t\teval.accuracy(), eval.precision(), eval.recall(), eval.f1()));\r\n \ttestWriter.write(eval.stats());\r\n \ttestWriter.write(eval.confusionToString());\r\n\r\n \t// Save test rates\r\n \tthis.f1_score = eval.f1();\r\n \tthis.recall_score = eval.recall();\r\n \tthis.accuracy_score = eval.accuracy();\r\n \tthis.precision_score = eval.precision();\r\n \tthis.falseNegativeRate_score = eval.falseNegativeRate();\r\n \tthis.falsePositiveRate_score = eval.falsePositiveRate();\r\n\r\n \tthis.f1.setText(\"F1 = \" + String.format(\"%.4f\", f1_score));\r\n \tthis.recall.setText(\"Recall = \" + String.format(\"%.4f\", recall_score));\r\n \tthis.accuracy.setText(\"Accuracy = \" + String.format(\"%.4f\", accuracy_score));\r\n \tthis.precision.setText(\"Precision = \" + String.format(\"%.4f\", precision_score));\r\n \tthis.falseNegativeRate.setText(\"False Negative Rate = \" + String.format(\"%.4f\", falseNegativeRate_score));\r\n \tthis.falsePositiveRate.setText(\"False Positive Rate = \" + String.format(\"%.4f\", falsePositiveRate_score));\r\n \r\n \ttestWriter.write(\"F1 = \" + String.format(\"%.4f\", f1_score));\r\n \ttestWriter.write(\"Recall = \" + String.format(\"%.4f\", recall_score));\r\n \ttestWriter.write(\"Accuracy = \" + String.format(\"%.4f\", accuracy_score));\r\n \ttestWriter.write(\"Precision = \" + String.format(\"%.4f\", precision_score));\r\n \ttestWriter.write(\"False Negative Rate = \" + String.format(\"%.4f\", falseNegativeRate_score));\r\n \ttestWriter.write(\"False Positive Rate = \" + String.format(\"%.4f\", falsePositiveRate_score));\r\n\r\n \tshowBarChart();\r\n \t} catch (IOException e) {\r\n \t\tSystem.err.println(\"Error while writing to log file\");\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n }", "public Test TestStart(boolean run){\n Test theTest = new Test(\n \"Test Start\",//Test Title\n CLASSNAME,//Class Name\n \"start()\",//Method Being Tested\n \"A test to seethe slide can start\", //Description\n \"N/A\", //Input Data\n \"True\" //Expected output\n ); \n \n \n \n \n \n if(run){\n theTest.hasRun();\n try{\n sl.start();\n theTest.setPassed(true);\n }catch(Exception e){\n theTest.setPassed(false);\n }\n \n }\n return theTest;\n }", "@Override\n public void doEvaluation(Individual sample, boolean isTrain) {\n mainEvaluator.doEvaluation(sample, isTrain);\n }", "public void wekaCalculate()\n\t{\n\t\tfor (int categoryStep = 0; categoryStep < 6; categoryStep++)\n\t\t{\n\t\t\tString trainString = \"Train\";\n\t\t\tString testString = \"Test\";\n\t\t\tString categoryString;\n\t\t\tString resultString = \"Results\";\n\t\t\tString textString;\n\t\t\tString eventString;\n\n\t\t\tswitch (categoryStep)\n\t\t\t{\n\t\t\tcase 0: categoryString = \"Cont.arff\"; break;\n\t\t\tcase 1: categoryString = \"Dona.arff\"; break;\n\t\t\tcase 2: categoryString = \"Offi.arff\"; break;\n\t\t\tcase 3: categoryString = \"Advi.arff\"; break;\n\t\t\tcase 4: categoryString = \"Mult.arff\"; break;\n\t\t\tdefault: categoryString = \"Good.arff\";\n\t\t\t}\n\t\t\t\n\t\t\tswitch (categoryStep)\n\t\t\t{\n\t\t\tcase 0: textString = \"Cont.txt\"; break;\n\t\t\tcase 1: textString = \"Dona.txt\"; break;\n\t\t\tcase 2: textString = \"Offi.txt\"; break;\n\t\t\tcase 3: textString = \"Advi.txt\"; break;\n\t\t\tcase 4: textString = \"Mult.txt\"; break;\n\t\t\tdefault: textString = \"Good.txt\";\n\t\t\t}\n\t\t\t\n\t\t\tfor (int eventStep = 0; eventStep < 15; eventStep++)\n\t\t\t{\n\t\t\t\tString trainingData;\n\t\t\t\tString testData;\n\t\t\t\tString resultText;\n\n\t\t\t\tswitch (eventStep)\n\t\t\t\t{\n\t\t\t\tcase 0: eventString = \"2011Joplin\"; break;\n\t\t\t\tcase 1: eventString = \"2012Guatemala\"; break; \n\t\t\t\tcase 2: eventString = \"2012Italy\"; break;\n\t\t\t\tcase 3: eventString = \"2012Philipinne\"; break;\n\t\t\t\tcase 4: eventString = \"2013Alberta\";\tbreak;\n\t\t\t\tcase 5: eventString = \"2013Australia\"; break;\n\t\t\t\tcase 6: eventString = \"2013Boston\"; break;\t\t\t\t\n\t\t\t\tcase 7: eventString = \"2013Manila\"; break;\n\t\t\t\tcase 8: eventString = \"2013Queens\"; break;\n\t\t\t\tcase 9: eventString = \"2013Yolanda\"; break;\n\t\t\t\tcase 10: eventString = \"2014Chile\"; break;\n\t\t\t\tcase 11: eventString = \"2014Hagupit\"; break;\n\t\t\t\tcase 12: eventString = \"2015Nepal\"; break;\n\t\t\t\tcase 13: eventString = \"2015Paris\"; break;\n\t\t\t\tdefault: eventString = \"2018Florida\"; \t\t\t\t\n\t\t\t\t}\n\n\t\t\t\ttrainingData = eventString;\n\t\t\t\ttrainingData += trainString;\n\t\t\t\ttrainingData += categoryString;\n\n\t\t\t\ttestData = eventString;\n\t\t\t\ttestData += testString;\n\t\t\t\ttestData += categoryString;\n\t\t\t\t\n\t\t\t\t\n\n\t\t\t\tresultText = eventString;\n\t\t\t\tresultText += resultString;\n\t\t\t\tresultText += textString;\n\t\t\t\t\n\n\t\t\t\ttry {\n\t\t\t\t\tConverterUtils.DataSource loader1 = new ConverterUtils.DataSource(trainingData);\n\t\t\t\t\tConverterUtils.DataSource loader2 = new ConverterUtils.DataSource(testData);\n\n\n\t\t\t\t\tBufferedWriter bw = new BufferedWriter(new FileWriter(resultText));\n\t\t\t\t\tInstances trainData = loader1.getDataSet();\n\t\t\t\t\ttrainData.setClassIndex(trainData.numAttributes() - 1);\n\n\t\t\t\t\tInstances testingData = loader2.getDataSet();\n\t\t\t\t\ttestingData.setClassIndex(testingData.numAttributes() - 1);\n\n\t\t\t\t\tClassifier cls1 = new NaiveBayes();\t\t\t\t\t\n\t\t\t\t\tcls1.buildClassifier(trainData);\t\t\t\n\t\t\t\t\tEvaluation eval1 = new Evaluation(trainData);\n\t\t\t\t\teval1.evaluateModel(cls1, testingData);\t\n\t\t\t\t\tbw.write(\"=== Summary of Naive Bayes ===\");\n\t\t\t\t\tbw.write(eval1.toSummaryString());\n\t\t\t\t\tbw.write(eval1.toClassDetailsString());\n\t\t\t\t\tbw.write(eval1.toMatrixString());\n\t\t\t\t\tbw.write(\"\\n\");\n\n\t\t\t\t\tthis.evalNaiveBayesList.add(eval1);\n\n\t\t\t\t\tClassifier cls2 = new SMO();\n\t\t\t\t\tcls2.buildClassifier(trainData);\n\t\t\t\t\tEvaluation eval2 = new Evaluation(trainData);\n\t\t\t\t\teval2.evaluateModel(cls2, testingData);\n\t\t\t\t\tbw.write(\"=== Summary of SMO ===\");\n\t\t\t\t\tbw.write(eval2.toSummaryString());\n\t\t\t\t\tbw.write(eval2.toClassDetailsString());\n\t\t\t\t\tbw.write(eval2.toMatrixString());\n\n\t\t\t\t\tthis.evalSMOList.add(eval2);\n\n\t\t\t\t\tbw.close();\n\t\t\t\t} catch (Exception e) {\t\t\t\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Test\n public void it_should_add_a_train() {\n // GIVEN\n TrainScheduler scheduler = new TrainScheduler();\n\n // WHEN\n List< Station > stations = new ArrayList<>();\n stations.add(new Station(null, LocalTime.parse(\"11:30\"), \"Lyon\", StationType.ORIGIN));\n stations.add(new Station(LocalTime.parse(\"14:00\"), LocalTime.parse(\"14:05\"), \"Paris\", StationType.INTERMEDIATE));\n stations.add(new Station(LocalTime.parse(\"15:00\"), null, \"London\", StationType.DESTINATION ));\n\n List<DayOfWeek> days = new ArrayList<>();\n days.add(DayOfWeek.MONDAY);\n days.add(DayOfWeek.TUESDAY);\n days.add(DayOfWeek.WEDNESDAY);\n days.add(DayOfWeek.THURSDAY);\n days.add(DayOfWeek.FRIDAY);\n TrainSchedule schedule = new TrainSchedule(days);\n\n scheduler.addTrain(\"Eurostar\", stations, schedule);\n\n // THEN\n List<TrainResponse> responses = scheduler.consultTrains(LocalDate.now(), LocalTime.parse(\"11:00\"), \"Paris\", \"London\");\n Assert.assertEquals(responses.size(), 1);\n TrainResponse response = responses.get(0);\n Assert.assertEquals(response.getFrom(), \"Paris\");\n Assert.assertEquals(response.getTo(), \"London\");\n }", "public DecisionLearningTree(String training, String test) {\n\t\ttrainingFile = training;\n\t\ttestFile = test;\n\t\treadTrainingFile();\n\t\troot = readDataFile();\n\t}", "@Test\n public void testCrawlSuccess() {\n new Crawl();\n\n }", "public void run() {\n\n // Initialize control center.\n\n control = new Dispatch(parameters);\n control.run();\n linked = control.gettasks();\n\n // Initialize trains.\n\n trains = new TrainSim[parameters.numTrains];\n\n for (int i = 0; i < parameters.numTrains; i++) {\n\n trains[i] = new TrainSim(parameters, i);\n trains[i].genbasis();\n\n }\n\n // Add linked tasks to trains.\n\n for (Task each : linked) {\n\n int trainid = each.getTrain();\n each = new Task(each.getType(), each.getBeginTime(), parameters, false);\n each.setID(trainid);\n if (each.getArrTime() < parameters.numHours*60) {\n trains[trainid].linktask(each);\n }\n }\n\n // Run each train\n\n for (TrainSim each : trains) {\n\n each.run();\n\n }\n\n }", "public void train(Collection<TrainingEntry<Login>> trainingDataSet) throws TrainingException {\n if (trainingDataSet.isEmpty()) return;\n try {\n final DataSet dataSet = toDataSet(trainingDataSet);\n normalizer = new NormalizerStandardize();\n normalizer.fit(dataSet);\n normalizer.transform(dataSet);\n final DataSetIterator dataSetIterator = new ExistingDataSetIterator(dataSet);\n final MultiLayerConfiguration configuration = new NeuralNetConfiguration.Builder()\n .seed(6)\n .iterations(1)\n .activation(\"tanh\")\n .weightInit(WeightInit.XAVIER)\n .learningRate(0.1)\n .regularization(true).l2(1e-4)\n .list()\n .layer(0, new DenseLayer.Builder()\n .nIn(getNumberOfInputFeatures(trainingDataSet))\n .nOut(9)\n .build())\n .layer(1, new DenseLayer.Builder()\n .nIn(9)\n .nOut(9)\n .build())\n .layer(2, new OutputLayer.Builder(LossFunctions.LossFunction.NEGATIVELOGLIKELIHOOD)\n .activation(\"softmax\")\n .nIn(9)\n .nOut(NUM_CATEGORIES).build())\n .backprop(true).pretrain(false)\n .build();\n network = new MultiLayerNetwork(configuration);\n final EarlyStoppingConfiguration esConf = new EarlyStoppingConfiguration.Builder()\n .epochTerminationConditions(new MaxEpochsTerminationCondition(20))\n .iterationTerminationConditions(new MaxTimeIterationTerminationCondition(20, TimeUnit.MINUTES))\n .scoreCalculator(new DataSetLossCalculator(dataSetIterator, true))\n .evaluateEveryNEpochs(1)\n .modelSaver(new InMemoryModelSaver())\n .build();\n final EarlyStoppingTrainer trainer = new EarlyStoppingTrainer(esConf, network, dataSetIterator);\n final EarlyStoppingResult<MultiLayerNetwork> result = trainer.fit();\n network = result.getBestModel();\n } catch (final Exception e) {\n throw new TrainingException(e);\n }\n }", "@Test\n public void test33() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.correct();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(0.0, double0, 0.01D);\n }", "private void trainNetwork(long iterations) {\n\t\ttrainer.startTraining(network, iterations);\r\n\r\n\t}", "private void train(NeuralDataSet input) {\n\n\tfinal NeuralDataSet theInput = input;\n\tfinal VirtualLibraryButler that = this;\n\n\ttraining = new Thread() {\n\t public void run() {\n\n\t\torg.encog.util.logging.Logging.setConsoleLevel(Level.OFF);\n\n\t\tfinal Train train = new CompetitiveTraining(brain, 0.7,\n\t\t\ttheInput, new NeighborhoodGaussian(\n\t\t\t\tnew GaussianFunction(0.0, 5.0, 1.5)));\n\t\tStrategy smartLearn = new SmartLearningRate();\n\n\t\tsmartLearn.init(train);\n\t\ttrain.addStrategy(smartLearn);\n\n\t\tint epoch = 0;\n\t\tint errorSize = 250;\n\n\t\tdouble[] lastErrors = new double[errorSize];\n\n\t\t// training loop\n\t\tdo {\n\t\t train.iteration();\n\t\t // System.out.println(\"Epoch #\" + epoch + \" Error:\" +\n\t\t // train.getError()); // + \" MovingAvg:\" + movingAvg);\n\t\t lastErrors[epoch % errorSize] = train.getError();\n\n\t\t double avg = 0;\n\t\t for (int i = 0; (i < epoch) && (i < errorSize); ++i)\n\t\t\tavg = (avg * i + lastErrors[i]) / (i + 1);\n\n\t\t if (Math.abs(avg - train.getError()) < 0.01)\n\t\t\ttrain.setError(0.001);\n\n\t\t epoch++;\n\t\t} while (train.getError() > 0.01);\n\n\t\t// System.out.println(\"training complete.\");\n\n\t\tthat.initialized = true;\n\t }\n\t};\n\n\ttraining.start();\n }", "public void trainTest(String template, int maxSize, Reader trainReader, Reader testReader, String directory, Algorithm mode) throws IOException {\n List<Clause> clauses = new ArrayList<Clause>();\n List<String> classifications = new ArrayList<String>();\n readExamples(trainReader, clauses, classifications);\n int[] trainSetIndices = new int[clauses.size()];\n for (int i = 0; i < trainSetIndices.length; i++){\n trainSetIndices[i] = i;\n }\n readExamples(testReader, clauses, classifications);\n int[] testSetIndices = new int[clauses.size()-trainSetIndices.length];\n for (int i = 0; i < testSetIndices.length; i++){\n testSetIndices[i] = i + trainSetIndices.length;\n }\n Triple<List<Set<PredicateDefinition>>,List<PredicateDefinition>,Dataset> preprocessed = preprocessDataset(clauses, classifications, PredicateDefinition.parseDefinition(template), true);\n trainTest_impl(template, preprocessed.t, preprocessed.r, preprocessed.s, maxSize, trainSetIndices, testSetIndices, new File(directory+\"/train.arff\"), new File(directory+\"/test.arff\"), mode);\n }", "public void trainTest(String template, int maxSize, int[] trainSet, int[] testSet, Reader examples, String directory, Algorithm mode) throws IOException {\n trainTest_impl(template, maxSize, trainSet, testSet, examples, new File(directory+\"/train.arff\"), new File(directory+\"/train.arff\"), mode);\n }", "public void doValidation(int currentRound)\n {\n getData(currentRound);\n// System.out.println(\"training unterminated ones\");\n kMeans.setItems(trainingData.get(0));\n kMeans.k=k1;\n kMeans.init();\n List<Cluster> unterminatedClusters=kMeans.doCluster();\n for (int i=0;i<unterminatedClusters.size();i++)\n {\n unterminatedClusters.get(i).label=0;\n }\n \n// System.out.println(\"training terminated ones\");\n kMeans.setItems(trainingData.get(1));\n kMeans.k=k2;\n kMeans.init();\n List<Cluster> terminatedClusters=kMeans.doCluster();\n for (int i=0;i<terminatedClusters.size();i++)\n {\n terminatedClusters.get(i).label=1;\n }\n \n List<Cluster> clusters=new ArrayList<Cluster>();\n clusters.addAll(unterminatedClusters);\n clusters.addAll(terminatedClusters);\n kMeans.setClusters(clusters);\n int[] corrects=new int[2];\n int[] counts=new int[2];\n for (int i=0;i<2;i++)\n {\n corrects[i]=0;\n counts[i]=0;\n }\n for (Item item:testData)\n {\n int label=kMeans.getNearestCluster(item).label;\n counts[label]++;\n if (label==item.type)\n {\n corrects[item.type]++;\n }\n }\n correctness+=corrects[1]*1.0/counts[1];\n correctCount+=corrects[1];\n// for (int i=0;i<2;i++)\n// System.out.println(\"for type \"+i+\": \" +corrects[i]+\" correct out of \"+counts[i]+\" in total (\"+corrects[i]*1.0/counts[i]+\")\");\n }", "@Test(timeout = 4000)\n public void test105() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setDiscardPredictions(true);\n assertTrue(evaluation0.getDiscardPredictions());\n }", "@Test\n public void testTakeBet(){\n }", "public void train() {\r\n // For each epoch, call setInputValue on input nodes\r\n for (int i = 0; i < maxEpoch; i++) {\r\n Collections.shuffle(trainingSet, random);\r\n\r\n // get each training instance\r\n for (int k = 0; k < trainingSet.size(); k++) {\r\n\r\n Instance instance = trainingSet.get(k);\r\n\r\n // set the input value in the input nodes from the training instance\r\n for (int j = 0; j < instance.attributes.size(); j++) {\r\n inputNodes.get(j).setInput(instance.attributes.get(j));\r\n }\r\n\r\n //set the target value in output nodes\r\n for (int j = 0; j < instance.classValues.size(); j++) {\r\n outputNodes.get(j).setTargetValue((double) instance.classValues.get(j));\r\n }\r\n\r\n // calculate values for hidden nodes\r\n for (int j = 0; j < hiddenNodes.size(); j++) {\r\n // for each hidden node\r\n Node hiddenNode = hiddenNodes.get(j);\r\n hiddenNode.calculateOutput();\r\n }\r\n\r\n //calculate values for output nodes\r\n double sumOfExponents = 0.0;\r\n for (int j = 0; j < outputNodes.size(); j++) {\r\n // for each output node\r\n Node outputNode = outputNodes.get(j);\r\n outputNode.calculateOutput();\r\n sumOfExponents += outputNode.getOutput();\r\n }\r\n\r\n //update output values of output nodes\r\n for (int j = 0; j < outputNodes.size(); j++) {\r\n Node outputNode = outputNodes.get(j);\r\n outputNode.updateOutputValue(sumOfExponents);\r\n }\r\n\r\n // calculate delta values for output nodes\r\n for (int j = 0; j < outputNodes.size(); j++) {\r\n Node outputNode = outputNodes.get(j);\r\n outputNode.calculateDelta();\r\n }\r\n\r\n // calculate delta values for hidden nodes\r\n for (int j = 0; j < hiddenNodes.size(); j++) {\r\n Node hiddenNode = hiddenNodes.get(j);\r\n hiddenNode.calculateDelta();\r\n hiddenNode.resetSumOfPartialDelta();\r\n }\r\n\r\n // update weights going from input layer to hidden layer\r\n for (int j = 0; j < hiddenNodes.size(); j++) {\r\n Node hiddenNode = hiddenNodes.get(j);\r\n hiddenNode.updateWeight(learningRate);\r\n }\r\n\r\n // update weights going from hidden layer to output layer\r\n for (int j = 0; j < outputNodes.size(); j++) {\r\n Node outputNode = outputNodes.get(j);\r\n outputNode.updateWeight(learningRate);\r\n }\r\n\r\n /*if (k == 0 && i==0) {\r\n for (int j = 0; j < outputNodes.size(); j++) {\r\n Node outputNode = outputNodes.get(j);\r\n for (NodeWeightPair pair : outputNode.parents) {\r\n System.out.println(pair.weight);\r\n }\r\n }\r\n }\r\n\r\n if (k == 0 && i == 0) {\r\n for (int j = 0; j < hiddenNodes.size(); j++) {\r\n Node hiddenNode = hiddenNodes.get(j);\r\n if (hiddenNode.parents != null) {\r\n for (NodeWeightPair pair : hiddenNode.parents) {\r\n System.out.println(pair.weight);\r\n }\r\n }\r\n }\r\n }*/\r\n }\r\n\r\n /* if (i==29) {\r\n for (int j = 0; j < outputNodes.size(); j++) {\r\n Node outputNode = outputNodes.get(j);\r\n for (NodeWeightPair pair : outputNode.parents) {\r\n System.out.println(pair.weight);\r\n }\r\n }\r\n }*/\r\n\r\n double totalLoss = 0.0;\r\n // Calculate loss and sum for each training instance, and then take average\r\n for (int k = 0; k < trainingSet.size(); k++) {\r\n Instance instance = trainingSet.get(k);\r\n totalLoss += loss(instance);\r\n }\r\n totalLoss /= trainingSet.size();\r\n System.out.println(\"Epoch: \" + i + \", \" + \"Loss: \" + String.format(\"%.3e\", totalLoss));\r\n }\r\n }", "@Test(timeout = 4000)\n public void test051() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass(0.0, Double.NaN);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "public void waitUntilTrainPasses(Train train) {\n\t\tthis.wait = train;\n\t}", "@Test(timeout = 4000)\n public void test067() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass((-398.0145), 360.0);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n }", "public void nextBatch(boolean training) {\n if (training) {\n trainSet = train.next();\n } else {\n testSet = test.next();\n }\n }", "private void train(int[] trainingData, int[] trainingLabel) {\n\t\t// forward Propagation\n\t\tdouble[] activationsOfHiddenLayer = new double[SIZE_HIDDEN_LAYER];\n\t\tdouble[] outputActivations = new double[SIZE_OUTPUT_LAYER];\n\t\tforwardPropagation(trainingData, activationsOfHiddenLayer, outputActivations);\n\t\t// backward Propagation\n\t\tbackwardPropagation(trainingData, trainingLabel, outputActivations, activationsOfHiddenLayer);\n\t}", "public InstanceGenerator(Instances training, Instances testing)\n {\n mTraining = training;\n mTesting = testing;\n }", "@Override\n public void train() {\n actual = observations.toArray();\n min_val_error = Double.MAX_VALUE;\n if (findDecayConstant)\n for (float alpha = 0f; alpha <= 1f; alpha += 0.01f)\n initializeAndTrainModel(alpha);\n else\n initializeAndTrainModel(optAlpha);\n }", "@Test(timeout = 4000)\n public void test100() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n CostSensitiveClassifier costSensitiveClassifier0 = new CostSensitiveClassifier();\n MockRandom mockRandom0 = new MockRandom(1);\n try { \n evaluation0.crossValidateModel((Classifier) costSensitiveClassifier0, instances0, 2, (Random) mockRandom0, (Object[]) costSensitiveClassifier0.TAGS_MATRIX_SOURCE);\n fail(\"Expecting exception: ClassCastException\");\n \n } catch(ClassCastException e) {\n //\n // weka.core.Tag cannot be cast to weka.classifiers.evaluation.output.prediction.AbstractOutput\n //\n verifyException(\"weka.classifiers.Evaluation\", e);\n }\n }", "void trainingBatch(GenerateRandom rnd);", "public Evaluator(RANKER_TYPE rType, METRIC trainMetric, int trainK, METRIC testMetric, int testK) {\n/* 612 */ this.type = rType;\n/* 613 */ this.trainScorer = this.mFact.createScorer(trainMetric, trainK);\n/* 614 */ this.testScorer = this.mFact.createScorer(testMetric, testK);\n/* 615 */ if (qrelFile.compareTo(\"\") != 0) {\n/* */ \n/* 617 */ this.trainScorer.loadExternalRelevanceJudgment(qrelFile);\n/* 618 */ this.testScorer.loadExternalRelevanceJudgment(qrelFile);\n/* */ } \n/* */ }", "@Test\n\tpublic void testCorporateTrainingOfPositiveCostValues() \n\t{\n\t\tTraining GetOrderValue = new CorporateTraining(15, \"Oracle\", 10000, 100); \t//upcasting\n\t\tassertEquals(1000000,GetOrderValue.getOrderValues(),0);\n\t}", "public void testGetSubLearner()\n {\n this.testSetSubLearner();\n }", "public void testLearn()\n {\n RandomSubVectorThresholdLearner<String> instance = new RandomSubVectorThresholdLearner<String>(\n new VectorThresholdInformationGainLearner<String>(),\n 0.1, random);\n\n VectorFactory<?> vectorFactory = VectorFactory.getDefault();\n ArrayList<InputOutputPair<Vector, String>> data =\n new ArrayList<InputOutputPair<Vector, String>>();\n for (int i = 0; i < 10; i++)\n {\n data.add(new DefaultInputOutputPair<Vector, String>(vectorFactory.createUniformRandom(\n 100, 1.0, 10.0, random), \"a\"));\n }\n\n for (int i = 0; i < 10; i++)\n {\n data.add(new DefaultInputOutputPair<Vector, String>(vectorFactory.createUniformRandom(\n 100, 1.0, 10.0, random), \"b\"));\n }\n\n VectorElementThresholdCategorizer result = instance.learn(data);\n assertNotNull(result);\n assertTrue(result.getIndex() >= 0);\n assertTrue(result.getIndex() < 100);\n \n // Change the dimensions to consider.\n instance.setDimensionsToConsider(new int[] {10, 20, 30, 40, 50});\n instance.setPercentToSample(0.5);\n result = instance.learn(data);\n assertNotNull(result);\n assertTrue(result.getIndex() >= 10);\n assertTrue(result.getIndex() <= 50);\n assertTrue(result.getIndex() % 10 == 0);\n }", "@Override\n\tpublic void train(List<Instance> trainData, int v) {\n\t\t// TODO : Implement\n\t\t// Hint: First, calculate the documents and words counts per label and store\n\t\t// them.\n\t\t// Then, for all the words in the documents of each label, count the number of\n\t\t// occurrences of each word.\n\t\t// Save these information as you will need them to calculate the log\n\t\t// probabilities later.\n\t\t//\n\t\t// e.g.\n\t\t// Assume m_map is the map that stores the occurrences per word for positive\n\t\t// documents\n\t\t// m_map.get(\"catch\") should return the number of \"catch\" es, in the documents\n\t\t// labeled positive\n\t\t// m_map.get(\"asdasd\") would return null, when the word has not appeared before.\n\t\t// Use m_map.put(word,1) to put the first count in.\n\t\t// Use m_map.replace(word, count+1) to update the value\n\t\twordCount = new HashMap<Label, Integer>();\n\t\tdocCount = new HashMap<Label, Integer>();\n\t\t\n\t\tposWords = new HashMap<String, Integer>();\n\t\tnegWords = new HashMap<String, Integer>();\n\t\t\n\t\tgetWordsCountPerLabel(trainData);\n\t\tgetDocumentsCountPerLabel(trainData);\n\t\tthis.v = v;\n\t\t\n\t\tfor(Instance data: trainData) {\n\t\t\tif(data.label.equals(Label.POSITIVE)) {\n\t\t\t\tfor(String word: data.words) {\n\t\t\t\t\tif(posWords.containsKey(word)) {\n\t\t\t\t\t\tint num = posWords.get(word) + 1;\n\t\t\t\t\t\tposWords.put(word, num);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\tposWords.put(word, 1);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tfor(String word: data.words)\n\t\t\t\t\tif(negWords.containsKey(word)) {\n\t\t\t\t\t\tint num = negWords.get(word) + 1;\n\t\t\t\t\t\tnegWords.put(word, num);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\tnegWords.put(word, 1);\n\t\t\t}\n\t\t}\n\t}", "@Test\n public void testLesson() throws Exception {\n\n }", "@Test\r\n\tpublic void classifyTest(){\r\n\t\tClassification[] expectedClass = {Classification.First,Classification.UpperSecond,Classification.LowerSecond,Classification.Third,Classification.Fail};\r\n\t\tint[] pointGrades = {3,6,10,13,18};\r\n\t\tfor(int i=0;i<pointGrades.length;i++)\r\n\t\t{\r\n\t\t\tassertEquals(expectedClass[i],new PointGrade(pointGrades[i]).classify());\r\n\t\t}\r\n\t}" ]
[ "0.7804658", "0.74551713", "0.7273227", "0.7257969", "0.7058689", "0.69318414", "0.6851551", "0.6814725", "0.67657644", "0.66554374", "0.6562036", "0.654557", "0.65382123", "0.6516589", "0.6506412", "0.64931947", "0.6485282", "0.6484381", "0.64671373", "0.6442907", "0.64344907", "0.6383079", "0.63701665", "0.6311819", "0.6298331", "0.62934417", "0.6287383", "0.62736094", "0.6270333", "0.6238876", "0.6236448", "0.621282", "0.6211799", "0.6207545", "0.61198545", "0.6117282", "0.611727", "0.6112529", "0.6097226", "0.6078447", "0.6064425", "0.60391486", "0.60356694", "0.59952086", "0.59939516", "0.5978416", "0.5976407", "0.5973894", "0.59573334", "0.59496015", "0.59454155", "0.59338003", "0.59099144", "0.590875", "0.5902667", "0.5901405", "0.5899998", "0.5896069", "0.5884435", "0.5878554", "0.58754957", "0.5871544", "0.5869999", "0.5859772", "0.5857739", "0.58540076", "0.58484316", "0.5847258", "0.5830044", "0.58295393", "0.58131826", "0.57999605", "0.5799785", "0.57975596", "0.5792531", "0.5790128", "0.5788834", "0.57836664", "0.5776318", "0.5761178", "0.57607347", "0.57425606", "0.574125", "0.5738594", "0.5731135", "0.57262987", "0.57166976", "0.5706378", "0.5698658", "0.5698542", "0.56950533", "0.5691626", "0.5689115", "0.5687747", "0.56877357", "0.56775725", "0.5669132", "0.5663072", "0.56603646", "0.56597275" ]
0.79084545
0
show a dialog that takes a solution. On ok, send to server
@Override public void invoke(@NotNull Project project, Editor editor, @NotNull PsiFile file) throws IncorrectOperationException { final Eddy.Output output = EddyFileListener.getOutputFor(editor); final CorrectionDialog d = new CorrectionDialog(project,output); if (d.showAndGet()) Eddy.Output.logSuggestion(project, output, d.getSuggestion()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "DialogResult show();", "private void successDialog() {\n AlertDialog dialog = _dialogFactory.createDialog(this, R.string.completed, R.string.success);\n\n dialog.setButton(DialogInterface.BUTTON_NEUTRAL, getString(R.string.ok), new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n gotoGameEnd(IGameConstants.GAME_SUCCESS);\n }\n });\n\n dialog.setCancelable(false);\n _dialogActive = true;\n dialog.show();\n }", "@FXML public void handleOk() {\n\t\tSystem.out.println(\"OK clicked!\");\n\t\t\n\t\tif (checkParameters().equals(ErrorCode.BatchSize)) {\n\t\t\tAlertBox.display(\"Error\", \"Please make sure to set valid values for the parameters [Batch Size]\", \"OK\");\n\t\t} else if (checkParameters().equals(ErrorCode.ConfidenceFactor)) {\n\t\t\tAlertBox.display(\"Error\", \"Please make sure to set valid values for the parameters [Confidence Factor]\", \"OK\");\n\t\t} else if (checkParameters().equals(ErrorCode.MinNumObj)) {\n\t\t\tAlertBox.display(\"Error\", \"Please make sure to set valid values for the parameters [Min Num Obj]\", \"OK\");\n\t\t} else if (checkParameters().equals(ErrorCode.NumDecimalPlaces)) {\n\t\t\tAlertBox.display(\"Error\", \"Please make sure to set valid values for the parameters [Num Decimal Places]\", \"OK\");\n\t\t} else if (checkParameters().equals(ErrorCode.NumFolds)) {\n\t\t\tAlertBox.display(\"Error\", \"Please make sure to set valid values for the parameters [Num Folds]\", \"OK\");\n\t\t} else if (checkParameters().equals(ErrorCode.Seed)) {\n\t\t\tAlertBox.display(\"Error\", \"Please make sure to set valid values for the parameters [Seed]\", \"OK\");\n\t\t} else if (checkParameters().equals(ErrorCode.Fine)) {\n\t\t\tsaveParameters();\n\t\t\tClassifiersWindowsManager.stage.close();\n\t\t}\n\t}", "public void submitText() {\r\n \t\tthis.dialog.clickOK();\r\n \t}", "private void buildSuccessDialog(){\n\t\tmainDialog = new JDialog(mainWindow,\"Success!\");\n\t\t//mainDialog.getContentPane().removeAll();\n\t\tJPanel p1 = new JPanel (new BorderLayout());\n\t\tp1.setBackground(Color.white);\n\t\t//success text\n\t\tJLabel lab = new JLabel(\"Login Successful!\");\n\t\tlab.setFont( new Font(\"URW Gothic L\",Font.BOLD, 15));\n\t\tlab.setAlignmentX(Component.LEFT_ALIGNMENT);\n\t\tp1.add(lab, BorderLayout.NORTH);\n\t\t\n\t\t//success image\n\t\tImageIcon img = new ImageIcon (\"./client_images/success.png\");\n\t\timg = new ImageIcon ( img.getImage().getScaledInstance(100,100,Image.SCALE_DEFAULT));\n\t\tJLabel imgLabel = new JLabel(img);\n\t\tp1.add(imgLabel,BorderLayout.CENTER);\n\n\t\tJButton ok = new JButton (\"Ok\");\n\t\t//pressing ok closes the application\n\t\t//register action listener (anonymous inner class is sufficient)\n\t\tok.addActionListener (new ActionListener(){\n\n\t\t\t\t\t\tpublic void actionPerformed(ActionEvent e){\n\t\t\t\t\t\t\t//call GUI's close up method to gracefully release all\n\t\t\t\t\t\t\t//resources\n\t\t\t\t\t\t\tClientGui.this.closeUp();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t);\n\n\t\tp1.add(ok,BorderLayout.SOUTH);\n\n\t\t//settings of the dialog box\n\t\tmainDialog.getContentPane().add(p1);\n\t\tmainDialog.setLocationRelativeTo(mainWindow);\n\t\tmainDialog.setDefaultCloseOperation(JDialog.DO_NOTHING_ON_CLOSE);\n\t\tmainDialog.setModal(true);\n\t\tmainDialog.setMinimumSize(new Dimension(300,200));\n\t\tmainDialog.setMaximumSize(new Dimension(300,200));\n\t\tmainDialog.setResizable(false);\n\t\tmainDialog.setVisible(true);\n\t\n\t}", "private void correctDialog() {\n // Update score.\n updateScore(scoreIncrease);\n\n // Show Dialog.\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(\"Correct! This Tweet is \" + (realTweet ? \"real\" : \"fake\"));\n //builder.setPositiveButton(\"OK\", (dialog, which) -> chooseRandomTweet());\n builder.setOnDismissListener(unused -> chooseRandomTweet());\n AlertDialog dialog = builder.create();\n dialog.show();\n }", "void CloseOkDialog();", "public void working() {\n\t\t Dialog d = new Dialog(this);\r\n\t\t d.setTitle(\"hech yea!\");\r\n\t\t TextView tv = new TextView(this);\r\n\t\t tv.setText(\"Success\");\r\n\t\t d.setContentView(tv);\r\n\t\t d.show();\t\r\n\t}", "private void showInputDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"App info\");\n builder.setMessage(message);\n builder.setPositiveButton(\" Done \", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n dialog.dismiss();\n }\n });\n builder.show();\n }", "private void okAction()\r\n\t{\r\n\t\tString navn = txfInput[0].getText().trim();\r\n\r\n\t\tint telefonNr = -1;\r\n\t\ttry\r\n\t\t{\r\n\t\t\ttelefonNr = Integer.parseInt(txfInput[1].getText().trim());\r\n\t\t} catch (NumberFormatException ex)\r\n\t\t{\r\n\t\t\t// do nothing\r\n\t\t}\r\n\r\n\t\tString vej = txfInput[2].getText().trim();\r\n\r\n\t\tint nr = -1;\r\n\t\ttry\r\n\t\t{\r\n\t\t\tnr = Integer.parseInt(txfInput[3].getText().trim());\r\n\t\t} catch (NumberFormatException ex)\r\n\t\t{\r\n\t\t\t// do nothing\r\n\t\t}\r\n\r\n\t\tString etage = txfInput[4].getText().trim();\r\n\r\n\t\tint postNr = -1;\r\n\t\ttry\r\n\t\t{\r\n\t\t\tpostNr = Integer.parseInt(txfInput[5].getText().trim());\r\n\t\t} catch (NumberFormatException ex)\r\n\t\t{\r\n\t\t\t// do nothing\r\n\t\t}\r\n\r\n\t\tString by = txfInput[6].getText().trim();\r\n\t\tString land = txfInput[7].getText().trim();\r\n\r\n\t\tif (navn.length() == 0)\r\n\t\t{\r\n\t\t\tlblError.setText(\"Navn er tom\");\r\n\t\t\treturn;\r\n\t\t} else if (telefonNr <= 0)\r\n\t\t{\r\n\t\t\tlblError.setText(\"Telefon nr er ugyldigt\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\telse if (vej.length() == 0)\r\n\t\t{\r\n\t\t\tlblError.setText(\"Vej er tom\");\r\n\t\t\treturn;\r\n\t\t} else if (nr <= 0)\r\n\t\t{\r\n\t\t\tlblError.setText(\"Nr er ugyldigt\");\r\n\t\t\treturn;\r\n\t\t} else if (postNr <= 0)\r\n\t\t{\r\n\t\t\tlblError.setText(\"Post Nr er ugyldigt\");\r\n\t\t\treturn;\r\n\t\t} else if (by.length() == 0)\r\n\t\t{\r\n\t\t\tlblError.setText(\"By er ugyldigt\");\r\n\t\t\treturn;\r\n\t\t} else if (land.length() == 0)\r\n\t\t{\r\n\t\t\tlblError.setText(\"Land er tom\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tFirma firma = null;\r\n\t\ttry\r\n\t\t{\r\n\t\t\tfirma = lvwFirmaer.getSelectionModel().getSelectedItem();\r\n\t\t} catch (NullPointerException ex)\r\n\t\t{\r\n\t\t\t// do nothing\r\n\t\t}\r\n\r\n\r\n\t\tLedsager ledsager = null;\r\n\t\ttry\r\n\t\t{\r\n\t\t\tledsager = lvwLedsagere.getSelectionModel().getSelectedItem();\r\n\t\t} catch (NullPointerException ex)\r\n\t\t{\r\n\t\t\t// do nothing\r\n\t\t}\r\n\t\t\r\n\r\n\t\tif (deltager != null)\r\n\t\t{\r\n\t\t\tService.updateDeltager(deltager, firma, ledsager, navn, telefonNr, null, vej, nr, etage, postNr, by, land);\r\n\t\t} else\r\n\t\t{\r\n\t\t\tService.createDeltager(navn, telefonNr, null, vej, nr, etage, postNr, by, land);\r\n\t\t}\r\n\r\n\t\tthis.hide();\r\n\t}", "@FXML\n\tprivate void handleOk() {\n\t\tif (isValidInput()) {\n\t\t\tsaveCurrentAcknowledgment();\n\t\t\t\n\t\t\tif (isNew) {\n\t\t\t\tmain.getDbHelper().insertAcknowledgment(acknowledgment);\n\t\t\t\tmain.getAcknowledgmentData().clear();\n\t\t\t\tmain.getAcknowledgmentData().addAll(main.getDbHelper().retrieveAcknowledgmentList());\n\t\t\t} else {\n\t\t\t\tmain.getDbHelper().updateAcknowledgment(acknowledgment);\n\t\t\t\tmain.getAcknowledgmentData().clear();\n\t\t\t\tmain.getAcknowledgmentData().addAll(main.getDbHelper().retrieveAcknowledgmentList());\t\n\t\t\t}\n\t\t\t\n\t\t\tokClicked = true;\n\t\t\tdialogStage.close();\n\t\t}\n\t}", "@FXML\r\n private void handleOk() {\r\n if (isInputValid()) {\r\n actualizarEntidad(this.entidad);\r\n\r\n okClicked = true;\r\n dialogStage.close();\r\n }\r\n }", "@FXML\r\n private void handleOk() {\r\n if (isInputValid()) {\r\n environment.setName(nameField.getText());\r\n environment.setIP(hostField.getText());\r\n environment.setPort(Integer.parseInt(portField.getText()));\r\n environment.setLogin(loginField.getText());\r\n environment.setPassword(passwordField.getText());\r\n environment.setPathMOM(MOMPathField.getText());\r\n environment.setServer(serverField.getValue());\r\n environment.setService(serviceField.getValue());\r\n okClicked = true;\r\n dialogStage.close();\r\n }\r\n }", "void okButtonClicked();", "public synchronized void sendOk() {\r\n\t\tbeginMessage();\r\n\t\tsend(ServerConst.ANS + ServerConst.ANS_YES);\r\n\t\tendMessage();\r\n\t}", "@Override\n public void handle(ActionEvent event) {\n alert = new Alert(AlertType.CONFIRMATION);\n //Optional title. If not used the standard title \"Confiramation\" will be displayed\n //To remove the title use alert.setTitle(null);\n alert.setTitle(\"Confirmation Dialog\");\n //Optional header.If not used the standard header \"Confiramation\" will be displayed\n //To remove the title use alert.setHeaderText(null); \n alert.setHeaderText(\"Please answer the question!\");\n alert.setContentText(initText);\n //Display the dialog and get the result from the user action\n Optional<ButtonType> result = alert.showAndWait();\n if (result.get() == ButtonType.OK){\n // the user clicked OK\n alert = new Alert(AlertType.INFORMATION);\n alert.setTitle(\"Information Dialog\");\n alert.setHeaderText(\"Important message for you!\");\n alert.setContentText(\"Happiness is ephemeral!\");\n alert.showAndWait(); \n //the user clocked Cancel\n } else {\n // ... user chose CANCEL or closed the dialog\n //Warning Dialog\n alert = new Alert(AlertType.WARNING);\n alert.setTitle(\"Warning Dialog\");\n alert.setHeaderText(\"Read the Warning!\");\n alert.setContentText(\"You must like Java - Shall make you Happy!\");\n alert.showAndWait(); \n }\n }", "private void showReturnDialog(){\n final Dialog verificationDialog = new Dialog(this, R.style.DialogTheme);\n verificationDialog.setContentView(R.layout.dialog_verification);\n TextView verificationText = (TextView) verificationDialog.findViewById(R.id.verification_text);\n Button cancelButton = (Button) verificationDialog.findViewById(R.id.cancel_button);\n Button acceptButton = (Button) verificationDialog.findViewById(R.id.accept_button);\n verificationDialog.show();\n\n verificationText.setText(R.string.verification_return);\n\n // Setting up a listener for the Cancel Button:\n cancelButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n // Play a proper sound:\n if(mSoundStatus.equals(Constants.ON)) mPutPieceSound.start();\n\n // Dismiss dialog:\n verificationDialog.dismiss();\n\n }\n });\n\n // Setting up a listener for the Done Button:\n acceptButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n // Play a proper sound:\n if(mSoundStatus.equals(Constants.ON)) mPutPieceSound.start();\n\n // Dismiss dialog:\n verificationDialog.dismiss();\n\n // Go back to main menu:\n\n // Creating an intent:\n Intent mainIntent = new Intent(OfflineGameActivity.this , MainActivity.class);\n // Starting the Main Activity:\n startActivity(mainIntent);\n\n }\n });\n\n }", "private void answerResultAlert(String feedback){\n AlertDialog.Builder showResult = new AlertDialog.Builder(this);\n\n showResult.setTitle(feedback);\n showResult.setMessage(currentQuestion.getExplanation());\n showResult.setCancelable(false); //if this is not set, the user may click outside the alert, cancelling it. no cheating this way\n showResult.setNeutralButton(\"ok\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n //only when the ok is clicked will continue to run the program\n setUpQuestions();\n }\n });\n showResult.create();\n showResult.show();\n }", "public void onClick(DialogInterface dialogBox, int id) {\n completebatch();\n //showMessage(\"\",response.toString());\n\n }", "private void show_Alert(String msg) {\n ((TextView) dialog.findViewById(R.id.tv_text)).setText(msg);\n dialog.findViewById(R.id.tv_ok).setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n dialog.dismiss();\n }\n });\n dialog.show();\n }", "@FXML\n\tprivate void handleOk() {\n\t\ttry {\n\t\t\ttypeDAO.supprimerType(new Type(listIdType.get(comboboxtype.getSelectionModel().getSelectedIndex()),\"\",\"\"));\n\t\t\tnew Popup(\"Type \"+comboboxtype.getValue()+\" supprimer !\");\n\t\t} catch (ConnexionBDException e) {\n\t\t\tnew Popup(e.getMessage());\n\t\t}\n\t\tokClicked = true;\n\t\tdialogStage.close();\n\t}", "@FXML\n private void handleOk() {\n if (isInputValid()) {\n gem.setGemName(gemNameField.getText());\n gem.setGemValue(Integer.parseInt(gemValueField.getText()));\n gem.setDescription(gemDescripField.getText());\n\n okClicked = true;\n dialogStage.close();\n }\n }", "public void finish(){\n \t\tString congrats=\"Congratulations, you won in \" + model.getNumberOfSteps()+\" steps! \";\n \t\tJFrame frame = new JFrame();\n\t\tString[] options = new String[2];\n\t\toptions[0] = new String(\"Play again\");\n\t\toptions[1] = new String(\"Quit\");\n\t\tint result= JOptionPane.showOptionDialog(frame.getContentPane(),congrats,\"Won! \", 0,JOptionPane.INFORMATION_MESSAGE,null,options,null);\n\t\tif (result == JOptionPane.NO_OPTION) {\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t\tif (result == JOptionPane.YES_OPTION) {\n\t\t\t\t\tcontroller.reset(); }\n \t}", "void ShowOkDialog(String title, String message, OnClickListener listener);", "@Override\n\t\t\tpublic void handle(MouseEvent e){\n\t\t\t\tAlert confirmation = new Alert(AlertType.CONFIRMATION);\n\t\t\t\tconfirmation.setTitle(\"Start game?\");\n\t\t\t\tconfirmation.setHeaderText(\"Do you wish to start the game on \" + difficultyChoices.getValue() + \" difficulty?\");\n\n\t\t\t\t//The Alert window has two buttons, an OK button and a cancel button. This variable is\n\t\t\t\t//created to store which button was clicked on by the player.\n\t\t\t\tOptional<ButtonType> result = confirmation.showAndWait();\n\t\t\t\t\n\t\t\t\t//If the player clicked on the OK button, this if statement is used.\n\t\t\t\tif(result.get() == ButtonType.OK) {\n\n\t\t\t\t\t//A switch statement checks the choice selected from the drop down menu\n\t\t\t\t\tswitch(difficultyChoices.getValue()) {\n\t\t\t\t\t//Depending on which difficulty was chosen, the difficultyGuesses int variable is\n\t\t\t\t\t//set to the maximum amount of guesses that the player is allowed, and debug messages\n\t\t\t\t\t//are displayed on the console. If the player was somehow able to reach this point\n\t\t\t\t\t//without selecting one of the options, the program closes, to prevent any issues later.\n\t\t\t\t\tcase \"Easy\" : difficultyGuesses = 7;\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"Picked Easy mode\");\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"Medium\" : difficultyGuesses = 5;\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"Picked Medium mode\");\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"Hard\" : difficultyGuesses = 3;\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"Picked Hard mode\");\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault \t : System.out.println(\"For some reason, we didn't get a difficulty setting.\");\n\t\t\t\t\t\t\t\t\tSystem.exit(1);\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//Using the PrintWriter, a message is sent to the server. StartUpGame acts like a \n\t\t\t\t\t//keyword so that the server can access the right area of the code to use the \n\t\t\t\t\t//second parameter correctly.\n\t\t\t\t\tout.println(\"StartUpGame \" + difficultyGuesses);\n\t\t\t\t\t\n\t\t\t\t\t//A boolean is created and set to false. It is used as a crude way of waiting for a\n\t\t\t\t\t//response from the server. The while loop afterwards continues for as long as the\n\t\t\t\t\t//boolean remains false. When the correct message is received from the server, it\n\t\t\t\t\t//will set the boolean to true, which will end the while loop and continue with the\n\t\t\t\t\t//code afterwards. \n\t\t\t\t\tboolean connectionCheck = false;\n\t\t\t\t\twhile(!connectionCheck) {\t\t\t\t\t\t\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tconnectionCheck = Boolean.parseBoolean(in.readLine());\n\t\t\t\t\t\t}catch(IOException ioe) {\n\t\t\t\t\t\t\t//If nothing is received, do nothing. The loop will continue as the boolean\n\t\t\t\t\t\t\t//remains false. May need to be refined in some way to determine whether no\n\t\t\t\t\t\t\t//message was received because the server's message hasn't arrived yet, or\n\t\t\t\t\t\t\t//because the connection has been completely lost and act accordingly.\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//The Alert window can now be closed\n\t\t\t\t\tconfirmation.close();\n\t\t\t\t\t\n\t\t\t\t\t//Call the game method, passing over the stage so that it can be redesigned\n\t\t\t\t\tgame(stage);\n\t\t\t\t}\n\t\t\t}", "private void openSendDialogue() {\n AlertDialog.Builder builder = new AlertDialog.Builder(getLayoutInflater().getContext());\n builder.setTitle(\"Transfer selected coins\");\n\n // Provide options for user\n CharSequence[] options = {\"To bank account\", \"To a friend\"};\n\n // Clear previously selected transfer\n mSelectedTransfer = \"\";\n\n // Set selected transfer\n builder.setSingleChoiceItems(options, -1, (dialog, which) -> {\n switch(which) {\n case 0:\n mSelectedTransfer = \"bank\";\n break;\n case 1:\n mSelectedTransfer = \"friend\";\n break;\n default:\n Log.d(TAG, \"[openSendDialogue] option not recognised: \" + which);\n }});\n\n // Execute transfer if one is not already in progress\n builder.setPositiveButton(\"OK\", (dialog, which) -> {\n switch(mSelectedTransfer) {\n case \"bank\":\n if(!mBankTransferInProgress) {\n transferToBankAccount();\n } else {\n displayToast(getString(R.string.msg_wait_on_transfer_completion));\n }\n break;\n case \"friend\":\n if (!mFriendTransferInProgress) {\n friendTransfer();\n } else {\n displayToast(getString(R.string.msg_wait_on_transfer_completion));\n }\n break;\n case \"\":\n displayToast(getString(R.string.msg_select_transfer_option));\n default:\n Log.d(TAG, \"[openSendDialogue] transfer not recognised: \" + mSelectedTransfer);\n }});\n\n builder.setNegativeButton(\"Cancel\", (dialog, which) -> dialog.cancel());\n builder.show();\n }", "private void buttonOkJDialogActionPerformed(ActionEvent e) {\n IdFail.dispose();\n }", "@FXML\n private void handleOk() {\n System.out.println(\"handleOk AdresEditController\");\n if (isInputValid()) {\n //aby udalo sie select\n adres.setPrev_adres_id(adres.getAdres_id());\n\n adres.setAdres_id(Integer.parseInt(adres_id_textField.getText()));\n adres.setWojewodztwo(wojewodztwo_textField.getText());\n adres.setMiejscowosc(miejscowosc_textField.getText());\n adres.setUlica(ulica_textField.getText());\n adres.setKraj(kraj_textField.getText());\n adres.setKod_pocztowy(kod_pocztowy_textField.getText());\n\n adres.update();\n\n okClicked = true;\n dialogStage.close();\n }\n }", "public void createSubmitDialog(final Runnable complete) {\n\t\tcreateDialog(\"\", \"Do you submit your score to Jewelry's Community??\",\n\t\t\t\tnew ButtonDescription(\"Ok\", new Command() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void execute(Object data) {\n\t\t\t\t\t\tif (gGame.iFunctions.isInternet()) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tgGame.iFunctions.showWaitingDialog();\n\t\t\t\t\t\t\tSubmitScoreAdapter submit = new SubmitScoreAdapter(new SubmitScoreEventListener() {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\tpublic void onSubmitScoreSucess(final String resultString) {\n\t\t\t\t\t\t\t\t\tgGame.iFunctions.hideWaitingDialog();\n\t\t\t\t\t\t\t\t\tif (gGame.getScreen() == me()) {\n\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"show\");\n\t\t\t\t\t\t\t\t\t\tGdx.app.postRunnable(new Runnable() {\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\t\t\t\tnew WorldList(gGame, new Runnable() {\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\t@Override\n\t\t\t\t\t\t\t\t\t\t\t\t\tpublic void run() {\n\t\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\t\tif (complete != null)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcomplete.run();\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}).updateDatas(PlayerInfo.parseModeData(getGameID(), resultString)).show(stage.getRoot());\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\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}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\tpublic void onSubmitScoreFailure(String resultString) {\n\t\t\t\t\t\t\t\t\tgGame.iFunctions.hideWaitingDialog();\n\t\t\t\t\t\t\t\t\tGdx.app.postRunnable(new Runnable() {\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\t\t\tme().createToast(\"Network Error\", 2f, new Runnable() {\n\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@Override\n\t\t\t\t\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (complete != null)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tcomplete.run();\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\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\t\t\t\t});\n\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}\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tsubmit.submitScore(gGame.iFunctions.getDeviceId(), \"1\", \"\"+(getGameID() + 1), \"\"+levelScore, PlayerInfo.offlineName);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tGdx.app.postRunnable(new Runnable() {\n\n\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\tme().createToast(\"Please open your internet\", 2f, new Runnable() {\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\t\t\tif (complete != null)\n\t\t\t\t\t\t\t\t\t\t\t\tcomplete.run();\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}\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\t\n\t\t\t\t\t}\n\t\t\t\t}), new ButtonDescription(\"Cancel\", new Command() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void execute(Object data) {\n\t\t\t\t\t\tGdx.app.postRunnable(new Runnable() {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\tif (complete != null)\n\t\t\t\t\t\t\t\t\tcomplete.run();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}), null, null);\n\t}", "private void submitForm() {\n final Dialog dialog = new Dialog(context);\n\t\t dialog.setContentView(R.layout.dialogbox);\n\t\t dialog.setTitle(\"Sucess!\");\n\t\t dialog.setCancelable(false);\n\t dialog.setCanceledOnTouchOutside(false);\n\t\t TextView txt = (TextView) dialog.findViewById(R.id.errorlog);\n\t\t txt.setText(\"Registration Successfull.\");\n\t\t Button dialogButton = (Button) dialog.findViewById(R.id.release);\n\t\t dialogButton.setOnClickListener(new OnClickListener() {\n\t\t\t public void onClick(View vd) {\n\t\t\t\t change.setEnabled(true);\n\t\t\t\t dialog.dismiss();\n\t\t\n\t\t}\n\t\t});\n\t\t dialog.show();\n}", "protected void okPressed()\n\t{\n\t\t((NewProjectComposite) this.getDialogArea()).updateProject(project);\n\t\tsuper.okPressed();\n\t}", "public void doUpdate() {\n Map<String, List<String>> dataToSend = new HashMap<>();\r\n List<String> values = new ArrayList<>();\r\n values.add(String.valueOf(selectedOhsaIncident.getId()));\r\n dataToSend.put(\"param\", values);\r\n showDialog(dataToSend);\r\n }", "@FXML\r\n\tprivate void handleOk() {\r\n\tif (isDateInputValid()) {\r\n\t\t\tLocalDate date = startdate.getValue();\r\n\t\t\tLocalDate findate = enddate.getValue();\r\n\t\t\tleavedata.setStartdate(date);\r\n\t\t\tleavedata.setEnddate(findate);\r\n\r\n\t\t\tEmployee employee = namefield.getSelectionModel().getSelectedItem();\r\n\t\t\tleavedata.setEmployee(employee);\r\n\t\t\t\r\n\t\t\tokClicked = true;\r\n\t\t\trosterService.addLeaveData(leavedata);\r\n\t\t\tAlert alert = new Alert(AlertType.INFORMATION);\r\n\t\t\talert.setTitle(\"Information Dialog\");\r\n\t\t\talert.setHeaderText(null);\r\n\t\t\talert.setContentText(\"Update Succesfull\");\r\n\t\t\talert.showAndWait();\r\n\t\t\tdialogStage.close();\r\n\t\t}\r\n\t}", "private void showCorrectAnswerDialogueBox() {\n\n\t\tupdateImageView(currentQuestionNumber);\n\n\t\t// check if all other questions are answered\n\t\tif (StoreAnalysisStateApplication.stageCleared) {\n\t\t\t// this call is specifically for updating fragment in description\n\t\t\t// tab\n\n\t\t\tString _title = getString(R.string.levelcleared);\n\t\t\tString _message = getString(R.string.analysislevelclearedmessage);\n\t\t\tUtilityMethods.createAlertDialog(_title, _message,\n\t\t\t\t\tAnalysisActivity.this);\n\n\t\t} else {\n\n\t\t\tString _title = getString(R.string.correctansweralertdialoguetitle);\n\t\t\tString _message = getString(R.string.correctansweralertdialoguemessage);\n\t\t\tUtilityMethods.createAlertDialog(_title, _message,\n\t\t\t\t\tAnalysisActivity.this);\n\t\t}\n\n\t\tdisableRadioOptions();\n\t}", "public void showCorrectDialog() {\n\t\t //get correct dialog box image\n\t\t URL greenIconURL = getClass().getResource(\"green.png\");\n\t\t Image greenImage = getToolkit().getImage(greenIconURL);\n\t\t ImageIcon greenIcon = new ImageIcon(greenImage);\n\t\t \n\t\t //show dialog box\n\t\t JOptionPane.showMessageDialog(this,\n\t\t\t\t \"Good job!\", //answer message\n\t\t\t\t \"Correct\", //title bar\n\t\t\t\t JOptionPane.INFORMATION_MESSAGE, \n\t\t\t\t greenIcon);\n\t\t \n\t\t //enable next button\n\t\t next.setEnabled(true);\n\t }", "public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n\n \t\t\tAlertDialog.Builder builder2 = new AlertDialog.Builder(getActivity());\n //builder2.setMessage(\"Are you sure?\");\n builder2.setCancelable(true);\n builder2.setPositiveButton(\"OK\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n }\n });\n builder2.setView(LayoutInflater.from(getActivity()).inflate(R.layout.complete_quest,null));\n \n AlertDialog alert2 = builder2.create();\n alert2.show();\n\n completeQuest();\n \t\t\t\n }", "private void onOK() {\n if (TextUtil.isEmpty(nick.getText())) {\n showMessage(\"插件名称\");\n return;\n }\n if (TextUtil.isEmpty(name.getText())) {\n showMessage(\"插件代号\");\n return;\n }\n if (TextUtil.isEmpty(version.getText())) {\n showMessage(\"插件版本\");\n return;\n }\n if (TextUtil.isEmpty(path.getText())) {\n showMessage(\"插件路径\");\n return;\n }\n String nickV = nick.getText();\n String nameV = name.getText();\n String versionV = version.getText();\n UploadPluginDto dto = RequestManagement.uploadPlugin(selectFile, nameV, versionV, nickV);\n if (dto != null && dto.getResult() != null) {\n if (pluginPanel != null) {\n pluginPanel.addItem(dto.getResult());\n }\n }\n dispose();\n }", "public void serverSideOk();", "@Override\n\tpublic boolean performOk() {\n\t\t// Get the preference store\n\t\tfinal IPreferenceStore preferenceStore = getPreferenceStore();\n\n\t\t// Set the values from the fields\n\t\tpreferenceStore.setValue(DEFAULT_PASSWORD_LENGTH, spiLength.getSelection());\n\t\tpreferenceStore.setValue(USE_LOWERCASE_LETTERS, btnUseLowercase.getSelection());\n\t\tpreferenceStore.setValue(USE_UPPERCASE_LETTERS, btnUserUppercase.getSelection());\n\t\tpreferenceStore.setValue(USE_DIGITS, btnUseDigits.getSelection());\n\t\tpreferenceStore.setValue(USE_SYMBOLS, btnUseSymbols.getSelection());\n\t\tpreferenceStore.setValue(USE_EASY_TO_READ, btnUseEaseToRead.getSelection());\n\t\tpreferenceStore.setValue(USE_HEX_ONLY, btnUseHexOnly.getSelection());\n\n\t\t// Return true to allow dialog to close\n\t\treturn true;\n\t}", "private void onOkButtonPressed() {\n\t\tconfirm = true;\n\t\tif (template.getAskDimension()) {\n\t\t\ttry {\n\t\t\t\twidth = Integer.parseInt(widthInputField.getFieldString());\n\t\t\t\twidthInputField.setFieldColor(GameFrame.getStandardFieldColor());\n\t\t\t} catch (Exception except) {\n\t\t\t\twidthInputField.setFieldColor(GameFrame.getWrongFieldColor());\n\t\t\t\tconfirm = false;\n\t\t\t}\n\t\t\ttry {\n\t\t\t\theight = Integer.parseInt(heightInputField.getFieldString());\n\t\t\t\theightInputField.setFieldColor(GameFrame.getStandardFieldColor());\n\t\t\t} catch (Exception except) {\n\t\t\t\theightInputField.setFieldColor(GameFrame.getWrongFieldColor());\n\t\t\t\tconfirm = false;\n\t\t\t}\n\t\t\tif(!confirm)\n\t\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (template.getAskLoading()) {\n\t\t\tint result = savefileChooser.showOpenDialog(this);\n\t\t\tif (result != JFileChooser.APPROVE_OPTION) {\n\t\t\t\tconfirm = false;\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t\n\t\tdispatchEvent(new WindowEvent(this, WindowEvent.WINDOW_CLOSING));\n\t}", "private void showFinishMsg() {}", "public void correctAnswer(){\n AlertDialog.Builder dialogBoxAns = new AlertDialog.Builder(this);\n //set title to dialog box\n dialogBoxAns.setTitle(\"Results\");\n //set correct message to dialog box\n dialogBoxAns.setMessage((Html.fromHtml(\"<font color='#39FF14'> CORRECT! </font> \")));\n //set button to dialog box\n dialogBoxAns.setPositiveButton(\"OK\", null);\n //create new dialog box\n AlertDialog dialog = dialogBoxAns.create();\n dialog.show();\n }", "private void showDialog(String msg) {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(msg)\n .setCancelable(false)\n .setPositiveButton(R.string.yes, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n }\n });\n AlertDialog alert = builder.create();\n alert.show();\n }", "public void onClick(DialogInterface dialog, int which) {\n Toast.makeText(getApplicationContext(), \"Pressed OK\",\n Toast.LENGTH_SHORT).show();\n }", "@Override\r\n\tpublic void showErrReq() {\n\t\tdialog.cancel();\r\n\t\tshowNetView(true);\r\n\t}", "public void actionPerformed(ActionEvent oEvent) {\n if (oEvent.getActionCommand().equals(\"OK\")) {\n try {\n addFinishedData();\n } catch (ModelException e) {\n ErrorGUI oHandler = new ErrorGUI(this);\n oHandler.writeErrorMessage(e);\n return;\n }\n\n //Close this window\n this.setVisible(false);\n this.dispose();\n }\n else if (oEvent.getActionCommand().equals(\"Cancel\")) {\n //Close this window\n this.setVisible(false);\n this.dispose();\n } \n }", "private void showAlert(String message) {\n\n if (message.equals(\"Uploaded Successfully...\")) {\n // this.dismiss();\n commmunicator.onDialogMessage(new MessageDetails());\n this.dismiss();\n\n } else {\n\n AlertDialog.Builder builder = new AlertDialog.Builder(form.getContext());\n builder.setMessage(message).setTitle(\"Response from Servers\")\n .setCancelable(false)\n .setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // do nothing\n }\n });\n AlertDialog alert = builder.create();\n alert.show();\n }\n }", "public void makeConfirmationDialog(View view) {\n new AlertDialog.Builder(this)\n .setTitle(\"Are you sure?\")\n .setCancelable(false)\n .setPositiveButton(\"yes\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n startExperiment();\n }\n })\n .setNegativeButton(\"no\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n return;\n }\n }).show();\n }", "public void showDialog() {\n mDialogInfoWithTwoButtons = new DialogInfoWithTwoButtons(mContext,\n new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n saveTemplate(mToastEdited);\n mDialogInfoWithTwoButtons.getDialog().dismiss();\n }\n }, new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n mTemplateId = mDatabaseManager.getTemplateNewId();\n mPreferenceManager.setTemplateId(mTemplateId);\n saveTemplate(mToastCreated);\n mDialogInfoWithTwoButtons.getDialog().dismiss();\n }\n }, mTitle, mMessage, mTitleButtonOne, mTitleButtonTwo);\n mDialogInfoWithTwoButtons.getDialog().show();\n }", "private void okPressed() {\n String destPath = pathField.getText();\n \n // Resolves destination folder\n // TODO: move those I/O bound calls to job as they can lock the main thread\n Object ret[] = FileToolkit.resolvePath(destPath, mainFrame.getActiveTable().getCurrentFolder());\n // The path entered doesn't correspond to any existing folder\n if (ret==null || (files.size()>1 && ret[1]!=null)) {\n showErrorDialog(Translator.get(\"this_folder_does_not_exist\", destPath));\n return;\n }\n \n AbstractFile destFolder = (AbstractFile)ret[0];\n String newName = (String)ret[1];\n \t\t\n // Retrieve default action when a file exists in destination, default choice\n // (if not specified by the user) is 'Ask'\n int defaultFileExistsAction = fileExistsActionComboBox.getSelectedIndex();\n if(defaultFileExistsAction==0)\n defaultFileExistsAction = FileCollisionDialog.ASK_ACTION;\n else\n defaultFileExistsAction = DEFAULT_ACTIONS[defaultFileExistsAction-1];\n // We don't remember default action on purpose: we want the user to specify it each time,\n // it would be too dangerous otherwise.\n \t\t\n startJob(destFolder, newName, defaultFileExistsAction);\n }", "private void SuccessfulBox(View v){\n \t//create an alert box with specified properties\n \tnew AlertDialog.Builder(this)\n \t.setTitle(\"Submit Successfully!\")\n \t.setMessage(\"New prescription information has been added to\" + \" \" +item)\n \t.setNeutralButton(\"ok\", null)\n \t.show();\n }", "public void alertAlreadySolved() {\n\t\tthis.alert(\"ERROR\",\"Game already solved\",AlertType.WARNING);\n\t}", "public void winDialog() {\n\n\t\tif (JOptionPane.showOptionDialog(null,\n\t\t\t\t\"Player \" + playerTurn\n\t\t\t\t\t\t+ \" created a SAP and wins the game! Congratulations!\\nWould you like to play again?\",\n\t\t\t\t\"Game Over\", 0, JOptionPane.PLAIN_MESSAGE, null, options, options[0]) == JOptionPane.YES_OPTION) {\n\t\t\trestartGame();\n\t\t} else {\n\t\t\tSystem.exit(0);\n\t\t}\n\n\t}", "private void dialog() {\n\t\tGenericDialog gd = new GenericDialog(\"Bildart\");\n\t\t\n\t\tgd.addChoice(\"Bildtyp\", choices, choices[0]);\n\t\t\n\t\t\n\t\tgd.showDialog();\t// generiere Eingabefenster\n\t\t\n\t\tchoice = gd.getNextChoice(); // Auswahl uebernehmen\n\t\t\n\t\tif (gd.wasCanceled())\n\t\t\tSystem.exit(0);\n\t}", "@FXML\n\tprivate void handleOk() {\n\t\tif (isInputValid()) {\n\t\t\titem.setDate(DateUtil.parse(dateField.getText()));\n\t\t\titem.setCategory(categoryField.getSelectionModel().getSelectedItem());\n\t\t\titem.setUse(useField.getText());\n\t\t\t\n\t\t\tString textBefore = amountField.getText();\n\t\t\tString textAfter = null;\n\t\t\tif(textBefore.contains(\",\")) {\n\t\t\t\ttextAfter = textBefore.replace(\",\", \".\");\n\t\t\t} else {\n\t\t\t\ttextAfter = textBefore;\n\t\t\t}\n\t\t\titem.setAmount(Double.parseDouble(textAfter));\n\t\t\titem.setDistributionKind(distributionKindField.getText());\n\n\t\t\tokClicked = true;\n\t\t\tdialogStage.close();\n\t\t}\n\t}", "@SuppressWarnings(\"UnusedParameters\")\n private void openWrongAnswer(@SuppressWarnings(\"UnusedParameters\") View view) {\n AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(MainActivity.this);\n alertDialogBuilder.setTitle(\"INCORRECT ANSWER\");\n alertDialogBuilder.setMessage(\"The correct answer is: \\n\" + currentQ.getANSWER() + \"\\n Ref: \" + currentQ.getREFERENCE());\n // set negative button: No message\n alertDialogBuilder.setNegativeButton(\"Continue\" ,new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog,int id) {\n checkFinish();\n // cancel the alert box and put a Toast to the user\n dialog.cancel();\n }\n });\n alertDialogBuilder.setPositiveButton(\"Challenge Answer\" ,new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog,int id) {\n submitBug();\n // Add information to Review List for display after completion of test\n\n\n // cancel the alert box and put a Toast to the user\n dialog.cancel();\n }\n });\n\n AlertDialog alertDialog = alertDialogBuilder.create();\n // show alert\n alertDialog.show();\n alertDialog.getWindow().getAttributes();\n TextView msgTxt = (TextView) alertDialog.findViewById(android.R.id.message);\n msgTxt.setTextSize(20);\n msgTxt.setGravity(Gravity.CENTER_HORIZONTAL);\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n FindChallenge();\n\n }", "private void okButtonActionPerformed() {\n\n saveConsoleText(consoleTextArea);\n\n setVisible(false);\n\n if (mainFrame == null && !isBasicUI) {\n System.exit(0);\n }\n }", "public void showUnsolvableMessage() {\n\t\tJOptionPane.showMessageDialog(frame, \"Det angivna sudokut är olösbart\");\n\t}", "@FXML\n\tprivate void handleOk() {\n\n\t\tokClicked = true;\n\t\tdialogStage.close();\n\n\t}", "protected void dialog() {\n TextInputDialog textInput = new TextInputDialog(\"\");\n textInput.setTitle(\"Text Input Dialog\");\n textInput.getDialogPane().setContentText(\"Nyt bord nr: \");\n textInput.showAndWait()\n .ifPresent(response -> {\n if (!response.isEmpty()) {\n newOrderbutton(response.toUpperCase());\n }\n });\n }", "protected void okPressed() {\n\t\tconfig.setExportThreadCount(txtThreadCount.getSelection());\n\t\tconfig.setImportThreadCount(txtMaxImportThreadCountPerTable.getSelection());\n\t\tconfig.setCommitCount(txtCommitCount.getSelection());\n\t\tif (txtPageCount != null) {\n\t\t\tconfig.setPageFetchCount(txtPageCount.getSelection());\n\t\t}\n\t\tif (txtFileMaxSize != null) {\n\t\t\tconfig.setMaxCountPerFile(txtFileMaxSize.getSelection());\n\t\t}\n\t\tconfig.setImplicitEstimate(btnImplicitEstimate.getSelection());\n\t\tsuper.okPressed();\n\t}", "private void showAlertDialog() {\n new AlertDialog.Builder(getActivity())\n .setMessage(R.string.feedback_sharing_data_alert)\n .setCancelable(false)\n .setPositiveButton(R.string.ok, (dialog, which) -> {\n sendFeedback();\n })\n .show();\n }", "@Override\n\t\tpublic void onClick(DialogInterface arg0, int arg1) {\n\t\t\tAlertDialog fuck = builder.create();\n\t\t\tfuck.show();\n\t\t}", "public void emitirSaludoConGui()\n {\n JOptionPane.showMessageDialog(null, \n\t\t\t\t\t\"<html><p style ='color: red'>Saludo en modo gráfico </p></html>\" + \n\t\t\t\t\t\"\\n\\nBienvenido/a al curso de programación orientada a objetos\\n en Java utilizando BlueJ\",\n\t\t\t\t\t\"Ejemplo de prueba\", JOptionPane.INFORMATION_MESSAGE);\n }", "public void cmdOk() {\n\n\t\tif (!m_actionscombo.isValueInModel()) {\n\t\t\tString msg = I18N.getLocalizedMessage(\"Invalid Action Name\");\n\t\t\tString title = I18N.getLocalizedMessage(\"Error\");\n\t\t\tJOptionPane.showMessageDialog(null, msg, title, JOptionPane.ERROR_MESSAGE);\n\t\t} else\n\t\t\tsuper.cmdOk();\n\t}", "private void okEvent() {\n\t\tYAETMMainView.PRIVILEGE = (String)loginBox.getSelectedItem();\n\t\tshowMain();\n\t\tcloseDialog();\n\t}", "void ShowWaitDialog(String title, String message);", "@FXML\r\n private void handleOk() {\r\n if (isInputValid()) {\r\n \temployee.setId(Integer.parseInt(idLabel.getText()));\r\n \temployee.setFirstName(firstNameField.getText());\r\n \temployee.setLastName(lastNameField.getText());\r\n \temployee.setIndustry(industryField.getText());\r\n \temployee.setWorkType(workTypeField.getText());\r\n \temployee.setAddress(addressField.getText());\r\n \t\r\n\r\n okClicked = true;\r\n dialogStage.close();\r\n }\r\n }", "private void mIesireActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mIesireActionPerformed\n int response = JOptionPane.showConfirmDialog(this, \"Doriti sa parasiti aplicatia?\", \"Confirmare\", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE);\n if (response == JOptionPane.YES_OPTION) {\n System.exit(0);\n }\n }", "void setOk();", "public void onClickOkay()\n\t{\n\t\t// cnpjPat, razaoSocialPat, telefonePat, enderecoPat\n\t\tString cnpjPat = in_cnpj.getText().replaceAll(\"[^0-9]+\", \"\");\n\t\tString razaoSocialPat = \"'\" + in_razao_social.getText() + \"'\";\n\t\t//String telefonePat = \"'\" + in_telefone.getText() + \"'\";\n\t\tString telefonePat = in_telefone.getText().replaceAll(\"[^0-9]+\", \"\");\n\t\tString enderecoPat = \"'\" + in_endereco.getText() + \"'\";\n\t\t\n\t\tString query;\n\t\tif(funcaoCadastrar)\n\t\t{\n\t\t\tquery = \"INSERT INTO patrocinador VALUES(\" + cnpjPat + \",\" + razaoSocialPat + \",\" + telefonePat + \", \" + enderecoPat + \")\";\n\t\t}\n\t\telse\n\t\t{\n\t\t\tquery = \"UPDATE patrocinador SET razaoSocialPat = \" + razaoSocialPat + \", telefonePat = \" + telefonePat + \", enderecoPat = \" + enderecoPat + \" WHERE cnpjPat = \" + cnpjPat;\n\t\t}\n\n\t\tSystem.out.println(query);\n\n\t\ttry{\n\t\t\tdbcon.executarInsert(query);\n\t\t\tif(funcaoCadastrar)\n\t\t\t{\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Registro inserido com sucesso\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Registro alterado com sucesso\");\n\t\t\t}\n\t\t\tsetVisible(false);\n\t\t\tdispose();\n\n\t\t}catch(Exception ex){\n\t\t\tSystem.err.println(ex.getMessage()); \n\t\t\tJOptionPane.showMessageDialog(null, ex.getMessage(), \"Erro\", JOptionPane.ERROR_MESSAGE);\n\t\t} \n\t}", "private void msgNoServidorConfigurado() {\r\n\tAlertDialog.Builder builder = new AlertDialog.Builder(this);\r\n\tbuilder.setMessage(R.string.txtSinServidor).setCancelable(false)\r\n\t\t.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\r\n\t\t public void onClick(DialogInterface dialog, int id) {\r\n\t\t\tListaRutasActivity.this.finish();\r\n\t\t }\r\n\t\t});\r\n\tAlertDialog alert = builder.create();\r\n\talert.show();\r\n }", "public OverviewSmallConfirmDialogOptions showConfirmDialog(String referenceID, String title, String textContent, String okText, String cancelText) {\n/*Generated! Do not modify!*/ ConfirmDialogParameters confirmDialogParameters = new ConfirmDialogParameters();\n/*Generated! Do not modify!*/ confirmDialogParameters.setReferenceID(referenceID);\n/*Generated! Do not modify!*/ confirmDialogParameters.setTitle(title);\n/*Generated! Do not modify!*/ confirmDialogParameters.setTextContent(textContent);\n/*Generated! Do not modify!*/ confirmDialogParameters.setOkText(okText);\n/*Generated! Do not modify!*/ confirmDialogParameters.setCancelText(cancelText);\n/*Generated! Do not modify!*/ replyDTO.setConfirmDialogParameters(confirmDialogParameters);\n/*Generated! Do not modify!*/ if (recordMode){\n/*Generated! Do not modify!*/ addRecordedAction(\"showConfirmDialog(\" + escapeString(referenceID) + \", \" + escapeString(title) + \", \" + escapeString(textContent) \n/*Generated! Do not modify!*/ \t\t\t+ \", \" + escapeString(okText) + \", \" + escapeString(cancelText)+ \");\");\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ return new OverviewSmallConfirmDialogOptions(this, confirmDialogParameters);\n/*Generated! Do not modify!*/ }", "public void proceedOnPopUp() {\n Controllers.button.click(proceedToCheckOutPopUp);\n }", "private void showGameOverDialog() {\n this.computerPaquetView.showOnceHiddenCards();\n int dialogResult = JOptionPane.showConfirmDialog (null, String.format(\"%s, you have lost!\\nPlay again?\", this.blackjackController.getHumanPlayer().getName()),\"\", JOptionPane.YES_NO_OPTION);\n if(dialogResult == JOptionPane.YES_OPTION){\n this.blackjackController.getHumanPlayer().resetBudget();\n this.startGame();\n } else {\n this.dispose();\n }\n }", "public void onClick(DialogInterface dialog,int id) {\n\t\t\t\t\t\t\n\t\t\t\t\t String input_text = userInput.getText().toString();\n\t\t\t\t\t \n\t\t\t\t\t if (!input_text.isEmpty()){\n\t\t\t\t\t \t\n\t\t\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\t\t\tgetActivity(),\n\t\t \"You've entered: \"+userInput.getText()+\"\\nas your response.\\nPress next button to continue.\",\n\t\t Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t//hash the number before set as response\n\t\t\t\t\t\t\t\tinput_text = Encoder.hashPhoneNumber(input_text);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t//setting the response for that survey question\n\t\t\t\t\t\t\t\teventbean.setTieResponse(input_text);\n\t\t\t\t\t\n\t\t\t\t\t\t\t\tresponse_tv.setVisibility(View.VISIBLE);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t// show user input as question answer\n\t\t\t\t\t\t\t\tString response = userInput.getText().toString();\n\t\t\t\t\t\t\t\tresponse_tv.setText(response);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t// notify the activity to enable going next\n\t\t\t\t\t\t\t\tresponseCallBack.onEventResponded(eventbean.getIndex(),eventbean.getQid(),\"X\",\"0\");\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t \t}else{\n\t\t\t\t\t \t\t\n\t\t\t\t\t \t\tToast.makeText(\n\t\t\t\t\t \t\t\t\tgetActivity(),\n\t\t \"You have NOT entered your response.\",\n\t\t Toast.LENGTH_SHORT).show();\n\t\t\t\t\t \t\t\n\t\t\t\t\t \t}\n\t\t\t\t\t\t\n\t\t\t\t\t }", "protected abstract boolean onOkClicked();", "protected void showDialog(final IJobChangeEvent event) {\r\n\t\tDisplay display = Display.getDefault();\r\n\t\tdisplay.asyncExec(new Runnable() {\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\tShell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();\r\n\t\t\t\tswitch (event.getResult().getSeverity()) {\r\n\t\t\t\tcase IStatus.ERROR:\r\n\t\t\t\t\tErrorDialog.openError(shell, \"Code Generation Error\", null, event.getResult());\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase IStatus.CANCEL:\r\n\t\t\t\t\tMessageDialog.openInformation(shell, \"Code Generation Canceled\", event.getJob().getName() + \"Code generation canceled!\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tMessageDialog.openInformation(shell, \"Code generation finished!\", event.getJob().getName()+\" finished without errors!\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t});\r\n\t}", "@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n try {\n HelpCenter.sendQuestion(\"\", URLEncoder.encode(questionEdit.getText().toString(), \"utf-8\"));\n } catch(Exception e){\n\n }\n }", "private void GeefFoutboodschap(String s) {\n new AlertDialog.Builder(this)\n .setTitle(\"Onbekende kode\")\n .setMessage(\n \"Arduino heeft een onbekende kode \" + s\n + \" opgestuurd. Het programma wordt gestopt \")\n .setPositiveButton(android.R.string.yes,\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog,\n int which) {\n finish();\n }\n }).show();\n }", "@FXML\n\tprivate void handleOk(){\n\t\tif(isInputValid()){\n\t\t\tproduct.setName(nameField.getText());\n\t\t\tproduct.setAmountAvailable(Integer.parseInt(amountAvailableField.getText()));\n\t\t\tproduct.setAmountSold(Integer.parseInt(amountSoldField.getText()));\n\t\t\tproduct.setPriceEach(Integer.parseInt(priceEachField.getText()));\n\t\t\tproduct.setPriceMake(Integer.parseInt(priceMakeField.getText()));\n\t\t\t// Converts the values to ints and then subtracts\n\t\t\tproduct.setProfit(Integer.parseInt(priceEachField.getText())-Integer.parseInt(priceMakeField.getText()));\n\t\t\t// Converts the values to ints, subtracts, and then multiplies\n\t\t\tproduct.setMoney((Integer.parseInt(priceEachField.getText())-Integer.parseInt(priceMakeField.getText()))*Integer.parseInt(amountSoldField.getText()));\n\t\t\tokClicked = true;\n\t\t\tdialogStage.close();\t\n\t\t}\n\t}", "@FXML\r\n protected void replyToComplaint() {\r\n if(verifyInput()) {\r\n Date date = new Date();\r\n Complaint complaint = complaintListView.getSelectionModel().getSelectedItem();\r\n complaint.closeComplaint(date, reply.getText(), Double.parseDouble(compensation.getText()));\r\n App.getOcsfClient(this).replyToComplaint(complaint);\r\n this.reply.setText(\"\");\r\n this.compensation.setText(\"\");\r\n }\r\n }", "public void finalRequest() {\n if (!isSaved) {\n mDialogInfoWithTwoButtons = new DialogInfoWithTwoButtons(mContext,\n new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n isFinish = true;\n mDialogInfoWithTwoButtons.getDialog().dismiss();\n addToTemplates();\n }\n }, new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n mDialogInfoWithTwoButtons.getDialog().dismiss();\n getActivity().finish();\n }\n }, mTitle, mMessageFinal, mTitleButtonOneFinal, mTitleButtonTwoFinal);\n mDialogInfoWithTwoButtons.getDialog().show();\n } else {\n getActivity().finish();\n }\n }", "@Override\n\tpublic void succeed(int taskId, JSONObject jObject) {\n\t\tdimissDialog();\n\t}", "private void success() {\n showMessage(\"Congratulations!\", \"success\");\n }", "@Override\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\tString actionCmd = e.getActionCommand();\n\t\t\tif(actionCmd.equals(\"Yes\")) { //재게임 하겠다\n\t\t\t\t\n\t\t\t\tif(GameType.equalsIgnoreCase(\"Theory\")) { //이론 게임 선택 \n\t\t\t\t\tTheoryJavaGame theoryjava = new TheoryJavaGame(user.getId());\n\t\t\t\t\ttheoryjava.setVisible(true);\n\t\t\t\t}else if(GameType.equalsIgnoreCase(\"Lab\")) { //실습 게임 선택 \n\t\t\t\t\tLabJavaGame labjava = new LabJavaGame(user.getId());\n\t\t\t\t\tlabjava.setVisible(true);\n\t\t\t\t}else {\n\t\t\t\t\tJOptionPane.showMessageDialog(new TheoryJavaGame(user.getId()), \n\t\t\t\t\t\t\t\"Please enter it correctly.\", \n\t\t\t\t\t\t\t\"Submission Error\", \n\t\t\t\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\n\t\t\t\t}\n\t\t\t\tdispose();\n\n\t\t\t}else if(actionCmd.equals(\"No\")) { //재게임 하지 않겠다\n\t\t\t\tLogin log = new Login(); //로그인 페이지로 돌아가기\n\t\t\t\tlog.setVisible(true);\n\t\t\t\tdispose();\n\t\t\t}else\n\t\t\t\tSystem.out.println(\"Unexpected Error\"\n\t\t\t\t\t\t+ \" in Confirm Window\");\n\t\t}", "private void showDialog() {\n try {\n pDialog.setMessage(getString(R.string.please_wait));\n pDialog.setIndeterminate(false);\n pDialog.setCancelable(false);\n pDialog.setCanceledOnTouchOutside(false);\n pDialog.show();\n } catch (Exception e) {\n // TODO: handle exception\n }\n\n }", "public static void newJFXDialogPopUp(String min, String sec, String dist, StackPane stP) {\n System.out.println(\"DialogBox Posted\");\n JFXDialogLayout jfxDialogLayout = new JFXDialogLayout();\n jfxDialogLayout.setHeading(new Text(\"Time Details\"));\n jfxDialogLayout.setBody(new Text(\"Time Estimate: \" + min + \" \" + sec +\"\\n\" + \"Distance Estimate: \" + dist));\n JFXDialog dialog = new JFXDialog(stP, jfxDialogLayout, JFXDialog.DialogTransition.CENTER);\n JFXButton okay = new JFXButton(\"Okay\");\n okay.setOnAction(new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent event) {\n dialog.close();\n\n }\n });\n jfxDialogLayout.setActions(okay);\n dialog.show();\n }", "private void showSuccessDialog(){\n\n String successMsg = getString(R.string.msgDeviceRegistered);\n AlertDialog dialog = new AlertDialog.Builder(ValidationActivity.this).create();\n dialog.setMessage(successMsg);\n dialog.setCancelable(false);\n dialog.setButton(DialogInterface.BUTTON_POSITIVE, \"Fertig\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n\n publishCommand(\"AUTH_END\");\n\n // disconnect mqtt-client and go to main-activity\n try {\n IMqttToken disconToken = mqttClient.disconnect();\n disconToken.setActionCallback(new IMqttActionListener() {\n @Override\n public void onSuccess(IMqttToken asyncActionToken) {\n\n // Go to main-activity\n Intent intent = new Intent(ValidationActivity.this, MainActivity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK); // clear activity back-stack\n startActivity(intent);\n }\n\n @Override\n public void onFailure(IMqttToken asyncActionToken,\n Throwable exception) {\n // something went wrong, but probably we are disconnected anyway\n }\n });\n } catch (MqttException e) {\n e.printStackTrace();\n }\n\n }\n });\n\n dialog.show();\n dialog.getButton(DialogInterface.BUTTON_POSITIVE).setTextColor(getResources().getColor(R.color.colorPrimary));\n }", "@FXML\n private void handleOk() throws SQLException {\n if (isInputValid()) {\n log.setComment(commentField.getText());\n isInteger(timeField.getText());\n log.setTime(Integer.parseInt(timeField.getText()));\n\n okClicked = true;\n dialogStage.close();\n }\n }", "public void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\tisAccepted = MainFrame.settings.UpdateParameters(\n\t\t\t\t\t\t\t\ttxtUsername.getText(), \n\t\t\t\t\t\t\t\ttxtPassword.getText(), \n\t\t\t\t\t\t\t\t((Integer) spnCheckInterval.getValue()).longValue(), \n\t\t\t\t\t\t\t\tchkEnableSound.isSelected(), \n\t\t\t\t\t\t\t\tchkScreen.isSelected());\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Dispose the box.\n\t\t\t\t\t\tComponent component = (Component) e.getSource();\n\t\t\t\t JDialog dialog = (JDialog) SwingUtilities.getRoot(component);\n\t\t\t\t dialog.dispose();\n\t\t\t\t\t}", "@Override\n public void actionPerformed(ActionEvent e) {\n client.sendMessage(new QuestionAnsweredMessage(answerField.getText()));\n //mainGUI.showMainPanel();\n }", "private void gameWonDialog() {\n // stack overflow\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle((game.isPlayer_turn()) ? R.string.player_win_title : R.string.bank_win_title);\n builder.setMessage((game.isPlayer_turn()) ? R.string.player_win_message : R.string.bank_win_message);\n\n // Set up the buttons\n builder.setPositiveButton(R.string.play_again, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n resetGame();\n }\n });\n builder.setNegativeButton(R.string.return_to_home, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n returnToMain();\n }\n });\n //builder.show();\n\n AlertDialog alert = builder.create();\n alert.show();\n Button nbutton = alert.getButton(DialogInterface.BUTTON_NEGATIVE);\n nbutton.setBackgroundColor(getResources().getColor(R.color.bank_red));\n Button pbutton = alert.getButton(DialogInterface.BUTTON_POSITIVE);\n pbutton.setBackgroundColor(getResources().getColor(R.color.yale_blue));\n }", "Observable<Void> showConfirmationDialog();", "@Override\n public void onClick(View v) {\n new AlertDialog.Builder(MainActivity.this)\n .setIcon(android.R.drawable.ic_menu_save)\n .setTitle(\"End Evidence Collection\")\n .setMessage(\"Are you sure you want to end collecting evidence?\")\n .setPositiveButton(\"Yes\", new DialogInterface.OnClickListener()\n {\n\n @Override\n public void onClick(DialogInterface dialog, int which) {\n\n submit();\n\n }\n\n })\n .setNegativeButton(\"No\", null)\n .show();\n\n }", "public void actionPerformed (ActionEvent e)\n\t\t\t\t{\n\t\t\t\talertOK();\n\t\t\t\t}", "public void actionPerformed(ActionEvent e) {\r\n\t\t\tif (e.getSource() == btnOk) {\r\n\t\t\t\tString name = txfName.getText().trim();\r\n\t\t\t\tif (name.length() == 0) {\r\n\t\t\t\t\t//TODO: notify user\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tString hoursStr = txfHours.getText().trim();\r\n\t\t\t\tif (hoursStr.length() == 0) {\r\n\t\t\t\t\t//TODO: notify user\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tint hours = -1;\r\n\t\t\t\ttry {\r\n\t\t\t\t\thours = Integer.parseInt(hoursStr);\r\n\t\t\t\t}\r\n\t\t\t\tcatch (NumberFormatException ex) {\r\n\t\t\t\t\t//TODO: notify user\t\t\t\t\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (hours < 0) {\r\n\t\t\t\t\t//TODO: notify user\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t/**** update storage ****/\r\n\t\t\t\tif (company == null) {\r\n\t\t\t\t\tservice.createCompany(name, hours);\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tif (!company.getName().equals(name) || company.getHours() != hours)\r\n\t\t\t\t\t\tservice.updateCompany(company, name, hours);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tclosedByOk = true;\r\n\t\t\t\tCompanyCUDialog.this.setVisible(false);\r\n\t\t\t}\r\n\r\n\t\t\tif (e.getSource() == btnCancel) {\r\n\t\t\t\tclosedByOk = false;\r\n\t\t\t\tCompanyCUDialog.this.setVisible(false);\r\n\t\t\t}\r\n\t\t}", "private void usernameTakenDialog() {\n Dialog dialog = new Dialog(\"Username taken\", cloudSkin, \"dialog\") {\n public void result(Object obj) {\n System.out.println(\"result \" + obj);\n }\n };\n dialog.text(\"This username has already been taken, try a new one.\");\n dialog.button(\"OK\", true);\n dialog.show(stage);\n }", "private void savedDialog() {\n\t\tTextView tv = new TextView(this);\n\t\ttv.setText(\"Changes to the current recipe have been saved.\");\n\t\tAlertDialog.Builder alert = new AlertDialog.Builder(this);\n\t\talert.setTitle(\"Success\");\n\t\talert.setView(tv);\n\t\talert.setNegativeButton(\"OK\", new DialogInterface.OnClickListener() {\n\t\t\tpublic void onClick(DialogInterface dialog, int whichButton) {\n\t\t\t\tfinish();\n\t\t\t}\n\t\t});\n\t\talert.show();\n\t}", "public void onClick(DialogInterface dialog,int id) {\n\t\t\t\t\t\t\n\t\t\t\t\t String input_text = userInput.getText().toString(); \n\t\t\t\t\t \n\t\t\t\t\t if (!input_text.isEmpty()){\n\t\t\t\t\t \t\n\t\t\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\t\t\tgetActivity(),\n\t\t \"You've entered: \"+userInput.getText()+\"\\nas your response.\\nPress next button to continue.\",\n\t\t Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t// setting the response for that survey question\n\t\t\t\t\t\t\t\teventbean.setTextResponse(input_text);\n\t\t\t \t\t\t\t\n\t\t\t\t\t\t\t\tresponse_tv.setVisibility(View.VISIBLE);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t// show user input as question answer\n\t\t\t\t\t\t\t\tString response = userInput.getText().toString();\n\t\t\t\t\t\t\t\tresponse_tv.setText(response);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t// notify the activity to enable going next\n\t\t\t\t\t\t\t\tresponseCallBack.onEventResponded(eventbean.getIndex(),eventbean.getQid(),\"X\",\"0\");\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t \t}else{\n\t\t\t\t\t \t\t\n\t\t\t\t\t \t\tToast.makeText(\n\t\t\t\t\t \t\t\t\tgetActivity(),\n\t\t \"You have NOT entered your response.\",\n\t\t Toast.LENGTH_SHORT).show();\n\t\t\t\t\t \t\t\n\t\t\t\t\t \t}\n\t\t\t\t\t }" ]
[ "0.7105962", "0.6671935", "0.66100407", "0.6547522", "0.64938587", "0.64019364", "0.63856417", "0.63541895", "0.63294387", "0.63136506", "0.63135076", "0.6295411", "0.62858015", "0.62505305", "0.6213681", "0.61923146", "0.6177499", "0.617642", "0.61524284", "0.61483496", "0.6146609", "0.61445796", "0.6138236", "0.6138126", "0.61355877", "0.6134067", "0.61265326", "0.61113924", "0.61090106", "0.610728", "0.61014915", "0.6097574", "0.609078", "0.60896885", "0.60845387", "0.60557747", "0.60531276", "0.60443926", "0.6035473", "0.60324776", "0.6021564", "0.60188925", "0.6014887", "0.60141873", "0.60093826", "0.60078806", "0.6004253", "0.60003203", "0.59990776", "0.5983231", "0.59752184", "0.59652734", "0.59588504", "0.5956764", "0.5953467", "0.5948675", "0.594422", "0.59438086", "0.5927971", "0.5927289", "0.5924671", "0.591362", "0.59104985", "0.59001476", "0.5899855", "0.58993214", "0.5894281", "0.58866376", "0.5885222", "0.5884921", "0.588454", "0.58843124", "0.58833337", "0.5880832", "0.5874787", "0.587417", "0.5865258", "0.58597964", "0.58575064", "0.58516675", "0.5839989", "0.5838306", "0.5836408", "0.5827388", "0.5821249", "0.58207846", "0.58175933", "0.58126986", "0.58098906", "0.5808629", "0.5806054", "0.58041865", "0.5803978", "0.58024085", "0.58006525", "0.5799601", "0.5799153", "0.5796738", "0.57933575", "0.5793053", "0.57857054" ]
0.0
-1
Returns the namespace of this requirement.
String getNamespace();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Optional<String> namespace() {\n return Codegen.stringProp(\"namespace\").config(config).get();\n }", "@Nullable public String getNamespace() {\n return namespace;\n }", "public String getNamespace() {\n return namespace;\n }", "public String getNamespace() {\n return namespace;\n }", "public String getNamespace() {\n return namespace;\n }", "public String getNamespace() {\n return this.namespace;\n }", "public String getNamespace() {\n return namespace;\n }", "public String getNamespace()\n {\n return NAMESPACE;\n }", "@Updatable\n public String getNamespace() {\n return namespace;\n }", "java.lang.String getNamespace();", "public String getNamespace();", "public String getNamespaceName() {\n return namespaceName;\n }", "@XmlElement(required = true, name = \"namespace\")\n public String getNamespace() {\n return namespace;\n }", "public String getNamespace() {\n\t\treturn EPPNameVerificationMapFactory.NS;\n\t}", "public String getNameSpace() {\n return this.namespace;\n }", "@Override\n\tpublic String getNamespace() {\n\t\treturn nameSpace;\n\t}", "public String getNamespace()\n/* */ {\n/* 357 */ return this.namespace;\n/* */ }", "public String getNamespace() {\n return getTypeDefinition().getNamespace();\n }", "public String getNamespaceURI() {\n return this.namespaceUri;\n }", "public String getNamespace() {\n return EPPSecDNSExtFactory.NS;\n }", "@Override\n\tprotected String getNamespace() {\n\t\treturn NAMESPACE;\n\t}", "public String getNamespaceURL() {\n return namespaceURL;\n }", "protected final Namespace getNamespace()\n {\n return m_namespace;\n }", "public String getTargetNamespace()\r\n {\r\n return targetNamespace;\r\n }", "public String getTargetNamespace() {\n return _targetNamespace;\n }", "public final String getTargetNamespace() {\n return fTargetNamespace;\n }", "String getTargetNamespace();", "String getReferenceNamespace();", "@Override\r\n\tpublic String getNamespace() {\n\t\treturn null;\r\n\t}", "int getNamespaceUri();", "@TargetAttributeType(\n\t\tname = NAMESPACE_ATTRIBUTE_NAME,\n\t\trequired = true,\n\t\tfixed = true,\n\t\thidden = true)\n\tpublic default TargetSymbolNamespace getNamespace() {\n\t\treturn getTypedAttributeNowByName(NAMESPACE_ATTRIBUTE_NAME, TargetSymbolNamespace.class,\n\t\t\tnull);\n\t}", "public NamespaceId getNamespaceId() {\n return namespaceId;\n }", "@Override\n\tpublic String getNamespace() {\n\t\treturn null;\n\t}", "public YANG_NameSpace getNameSpace() {\n\t\treturn namespace;\n\t}", "public String getXmlns()\r\n\t{\r\n\t\treturn xmlns;\r\n\t}", "public String getXMLSchemaTargetNamespace() {\n String targetNamespace = getPreferenceStore().getString(CONST_DEFAULT_TARGET_NAMESPACE);\n if (!targetNamespace.endsWith(\"/\")) {\n targetNamespace = targetNamespace + \"/\";\n }\n return targetNamespace;\n }", "private String getNamespace(Package pkg) {\n/* */ String nsUri;\n/* 223 */ if (pkg == null) return \"\";\n/* */ \n/* */ \n/* 226 */ XmlNamespace ns = pkg.<XmlNamespace>getAnnotation(XmlNamespace.class);\n/* 227 */ if (ns != null) {\n/* 228 */ nsUri = ns.value();\n/* */ } else {\n/* 230 */ nsUri = \"\";\n/* 231 */ } return nsUri;\n/* */ }", "public String getFullName() {\n return getNamespace().getFullName();\n }", "String getNamespaceStringValue(Object ns);", "String getNamespacePrefix(Object ns);", "@Override\n public String getFullyQualifiedNamespace() {\n return this.namespace == null ? extractFqdnFromConnectionString() : (this.namespace + \".\" + domainName);\n }", "Rule Namespace() {\n // No direct effect on value stack\n return FirstOf(\n ScopedNamespace(),\n PhpNamespace(),\n XsdNamespace());\n }", "public String getNameSpace() {\n return nameSpace;\n }", "public String getDefaultNamespace() {\n return defaultNamespaceUri;\n }", "public java.lang.String getNameSpaceURI()\n {\n return nsURI;\n }", "public java.lang.String getNameSpaceURI()\n {\n return nsURI;\n }", "public java.lang.String getNameSpaceURI()\n {\n return nsURI;\n }", "public String getAffectedNamespace() {\n\t\t\treturn affectedNamespace;\n\t\t}", "private String getNamespace(String qname) {\n StringTokenizer tok = new StringTokenizer(qname, \":\");\n String prefix;\n\n if (tok.countTokens() == 1) {\n return \"\";\n }\n prefix = tok.nextToken();\n\n NamedNodeMap map = mDoc.getDocumentElement().getAttributes();\n for (int j = 0; j < map.getLength(); j++) {\n Node n = map.item(j);\n\n if (n.getLocalName().trim().equals(prefix.trim())) {\n return n.getNodeValue();\n }\n }\n\n return \"\";\n }", "Namespace getGpmlNamespace();", "Rule ScopedNamespace() {\n return Sequence(\n \"namespace \",\n ScopeAndId());\n }", "public String getNamespaceURI()\n {\n return moduleNS;\n }", "Rule XsdNamespace() {\n return Sequence(\n \"xsd_namespace\",\n Literal(),\n actions.pushXsdNamespaceNode());\n }", "public java.lang.Long getOpcnamespace() {\n\t\treturn getValue(test.generated.pg_catalog.tables.PgOpclass.PG_OPCLASS.OPCNAMESPACE);\n\t}", "public String getCapabilityNamespace() {\n return this.capabilityNamespace;\n }", "public java.lang.String getNameSpacePrefix()\n {\n return nsPrefix;\n }", "public java.lang.String getNameSpacePrefix()\n {\n return nsPrefix;\n }", "public java.lang.String getNameSpacePrefix()\n {\n return nsPrefix;\n }", "@Override\r\n\tpublic String getNamespaceURI() {\n\t\treturn null;\r\n\t}", "@Override\r\n\t\tpublic String getNamespaceURI()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "public NamespaceRegistrationType getNamespaceRegistrationType() {\n return namespaceRegistrationType;\n }", "String getImportedNamespace();", "public Namespace() {\n this(DSL.name(\"namespace\"), null);\n }", "public QName getQName() {\r\n return new QName(getNamespace(), getName());\r\n }", "public final Namespace getDefaultNamespace() {\n return _defaultNamespace;\n }", "public static String getURI() {\n return NS;\n }", "public static String getURI() {\n\t\treturn NS;\n\t}", "org.apache.xmlbeans.XmlNMTOKEN xgetNamespace();", "public Map<String,String> getNamespaces() {\n return namespaces;\n }", "public String getFeedNamespacePrefix(String namespace);", "public String getNamespace () throws java.io.IOException, com.linar.jintegra.AutomationException;", "public java.util.Map<String,String> getNamespaces() {\n return (_namespaces);\n }", "public String getAttributeNamespaceURI() {\n return attributeNamespaceURI;\n }", "public Namespace getNamespace(String name) {\n if (entities != null) {\n if (name == null || name.equals(entities.getName())) {\n\treturn entities;\n } else if (entities.containsNamespaces()) {\n\tActiveNode ns = entities.getBinding(name);\n\tif (ns != null && ns.asNamespace() != null)\n\t return ns.asNamespace();\n }\n }\n if (nameContext != null) {\n return nameContext.getNamespace(name);\n } else {\n return null;\n }\n }", "@Test\n\tpublic void test_TCM__OrgJdomNamespace_getNamespace() {\n\t\tfinal Namespace ns = Namespace.getNamespace(\"prefx\", \"http://some.other.place\");\n\n\t\tfinal Attribute attr = new Attribute(\"test\", \"value\", ns);\n\t\tfinal Namespace ns2 = Namespace.getNamespace(\"prefx\", \"http://some.other.place\");\n\n\t\tassertTrue(\"incorrect Namespace\", attr.getNamespace().equals(ns2));\n\n\t}", "@Override\r\n\t\t\t\t\tpublic String getPrefix(String namespaceURI) {\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}", "@Override\r\n\t\t\t\t\tpublic String getPrefix(String namespaceURI) {\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}", "@Override\r\n\t\t\t\t\tpublic String getPrefix(String namespaceURI) {\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}", "@Override\r\n\t\t\t\t\tpublic String getPrefix(String namespaceURI) {\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}", "@Override\r\n\t\t\t\t\tpublic String getPrefix(String namespaceURI) {\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}", "public java.lang.String getRootElementNS() {\r\n return rootElementNS;\r\n }", "public String getPackageName() {\n JavaType.FullyQualified fq = TypeUtils.asFullyQualified(qualid.getType());\n if (fq != null) {\n return fq.getPackageName();\n }\n String typeName = getTypeName();\n int lastDot = typeName.lastIndexOf('.');\n return lastDot < 0 ? \"\" : typeName.substring(0, lastDot);\n }", "default String getPackageName() {\n return declaringType().getPackageName();\n }", "@Override\n\tpublic Namespace getNamespace(Address addr) {\n\t\tif (addr.isMemoryAddress()) {\n\t\t\tfor (TraceSymbol sym : symbolManager.labels().getAt(program.snap, null, addr, true)) {\n\t\t\t\tif (sym instanceof TraceNamespaceSymbol /* Function */) {\n\t\t\t\t\treturn (TraceNamespaceSymbol) sym;\n\t\t\t\t}\n\t\t\t\treturn sym.getParentNamespace();\n\t\t\t}\n\t\t}\n\t\treturn symbolManager.getGlobalNamespace();\n\t}", "public static String getURI() {return NS;}", "public static String getURI() {return NS;}", "public static String getURI() {return NS;}", "public static String getURI() {return NS;}", "public static String getURI() {return NS;}", "public static String getURI() {return NS;}", "public static String getURI() {return NS;}", "public Map getNamespaceMap() {\n/* 130 */ return this.nsMap;\n/* */ }", "public String getFullyQualifiedName() {\n\t\treturn this.getPackageName() + \".\" + this.getClassName();\n\t}", "public String qualifiedName() {\n return this.qualifiedName;\n }", "public ArrayList getNamespaces() {\n return m_namespaces;\n }", "String qualifiedName();", "String getAttributeNamespaceUri(Object attr);", "public String getBaseNamespace() {\n/* 454 */ return \"http://www.w3.org/2000/09/xmldsig#\";\n/* */ }" ]
[ "0.8184153", "0.81174767", "0.7949862", "0.7949862", "0.7949862", "0.7863692", "0.782933", "0.77521026", "0.765643", "0.7628835", "0.7574593", "0.7563405", "0.7511779", "0.74648494", "0.7452191", "0.74069506", "0.73932683", "0.7291436", "0.72529876", "0.7182632", "0.71672237", "0.7155964", "0.7150819", "0.70580775", "0.7021468", "0.7009358", "0.7005572", "0.700228", "0.6843331", "0.6799356", "0.6748416", "0.67413956", "0.67399234", "0.6738229", "0.66641766", "0.6654982", "0.6574983", "0.6558495", "0.6539079", "0.6514265", "0.6492964", "0.6479272", "0.6471198", "0.64241207", "0.64205575", "0.64205575", "0.64205575", "0.64156437", "0.64014626", "0.639338", "0.63137436", "0.63074744", "0.62387985", "0.62328786", "0.62059456", "0.6200814", "0.6200814", "0.6200814", "0.6180172", "0.61603886", "0.61231416", "0.61115336", "0.6098772", "0.60657346", "0.6064901", "0.6033614", "0.59895253", "0.59436053", "0.59412473", "0.59398913", "0.59278035", "0.59123373", "0.58826137", "0.5869001", "0.58188224", "0.5803042", "0.5803042", "0.5803042", "0.5803042", "0.5803042", "0.57801616", "0.57762754", "0.5761797", "0.5755124", "0.5741471", "0.5741471", "0.5741471", "0.5741471", "0.5741471", "0.5741471", "0.5741471", "0.56784415", "0.5649009", "0.56294495", "0.56252605", "0.5620911", "0.56201255", "0.5603505" ]
0.7509238
15
Returns the directives of this requirement.
Map<String, String> getDirectives();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<__Directive> getDirectives() {\n return (List<__Directive>) get(\"directives\");\n }", "public String[] getDirectiveNames ();", "public Map<String, Object> getDirectives();", "@Override\r\n\tpublic Map<String, String> getDirectives() {\n\t\treturn null;\r\n\t}", "public List<Lexi> directives() throws IOException {\n\t\tfinal List<Lexi> $ = new ArrayList<>();\n\t\tToken t;\n\t\twhile ((t = tokenizer.next_token()) != null)\n\t\t\tif (t.isKeyword())\n\t\t\t\t$.add(directive(wizard.newKeyword(t)));\n\t\treturn $;\n\t}", "public List<AngularDirectiveBase> getAngularDirectives()\n {\n if (angularDirectives == null)\n {\n setAngularDirectives(new ArrayList<>());\n\n }\n return angularDirectives;\n }", "public WhatDirectiveElements getWhatDirectiveAccess() {\n\t\treturn pWhatDirective;\n\t}", "public NamedDirectiveDefIfc[] getNamedDirectives ();", "public InputDirective[] getInputDirectives()\r\n {\r\n return m_inputs;\r\n }", "public java.util.List<DocumentRequires> getRequires() {\n if (requires == null) {\n requires = new com.amazonaws.internal.SdkInternalList<DocumentRequires>();\n }\n return requires;\n }", "public List<AttributeDef> getAttributeDefs () {\n return attributeDefs;\n }", "public String getRequirements() { \n\t\treturn getRequirementsElement().getValue();\n\t}", "public List<AttributeDeclaration> getAttributeDeclarations() {\n return Collections.unmodifiableList(attributeDeclarations);\n }", "public List<Constraint> getConstraints() {\r\n\t\treturn constraints;\r\n\t}", "public OrderByDirectiveElements getOrderByDirectiveAccess() {\n\t\treturn pOrderByDirective;\n\t}", "@Override\n public Level getLevel(\n ) {\n return Level.Directive;\n }", "public Object getDirective(String key);", "public List<Constraint> getConstraints();", "public List<ConditionalRequirement> getConditions() {\r\n return conditions;\r\n }", "public String[] getDependencies()\r\n {\r\n return m_dependencies;\r\n }", "public List<? extends Requirement> getRequirements();", "protected void getRequires() {\n System.out.println(\"\\nRequires: \");\n /******************************************/\n myIterator.next();\n myRequires = new Expression(myIterator, mye);\n /******************************************/\n System.out.println(\"\\n\");\n }", "Requires getRequires();", "public List<String> getDependencies() {\n return new ArrayList<>(mDependencies);\n }", "public Modifier<Document, Document>[] getModifiers() {\n\t\treturn this.modifiers;\n\t}", "public static String [] getCond(){\n\t\treturn conditions;\n\t}", "public List<Restriction> getRestrictions() {\n return restrictions;\n }", "public Set<DependencyElement> getDependencies() {\n\t\treturn Collections.unmodifiableSet(dependencies);\n\t}", "public String getRestrictions() {\n return restrictions;\n }", "public List<ContextConstraint> getConstraints() {\n return getConstraintList();\n }", "public IAstPreprocessorDefineDirective[] getDefines();", "public abstract List<AbstractRequirement> getRequirements();", "public java.util.List<Constraint> getConstraint() { \n\t\tif (myConstraint == null) {\n\t\t\tmyConstraint = new java.util.ArrayList<Constraint>();\n\t\t}\n\t\treturn myConstraint;\n\t}", "public default String[] getDependencies() {\r\n\t\treturn new String[0];\r\n\t}", "@Stub\n\tpublic String[] getDependencies()\n\t{\n\t\treturn new String[] {};\n\t}", "public List<SyntacticAttribute> attributes() {\n\t\t\treturn attributes;\n\t\t}", "public List getDependencies() {\n return Collections.unmodifiableList(dependencies);\n }", "public List<BodyDecl> getBodyElelemts() {\n return getBodyElelemtList();\n }", "public List<Doctor> getDoctorbyGPS_Spec() {\n\t\treturn null;\n\t}", "public List<String> getRequired() {\n\t\treturn required;\n\t}", "public java.util.List<google.maps.fleetengine.v1.VehicleAttribute.Builder> \n getAttributesBuilderList() {\n return getAttributesFieldBuilder().getBuilderList();\n }", "public Collection<Requirement> getGenericRequirements();", "public ElementList[] getAnnotations() {\r\n return union.value();\r\n }", "public List getDonts() {\n\t\tif (donts == null) {\n\t\t\tdonts = getFormattedPractices(\"/metadataFieldInfo/field/bestPractices/donts\");\n\t\t}\n\t\treturn donts;\n\t}", "public DataDirective getDataDirective()\r\n {\r\n return m_data;\r\n }", "public String[] requires() { return new String[0]; }", "@SuppressWarnings({\"unchecked\", \"cast\"}) public List<ContextConstraint> getConstraintList() {\n return (List<ContextConstraint>)getChild(1);\n }", "public abstract String getShortDirective();", "public List<String> getAngularVariables()\n {\n if (angularVariables == null)\n {\n angularVariables = new ArrayList<>();\n }\n return angularVariables;\n }", "@Override\n public ImmutableList<ImmutableSetMultimap<TypeVariableImpl<X, ?>, Constraint<X>>> getConstraints() {\n return ImmutableList.of(constraints);\n }", "public Element[] getAnnotations() {\r\n return union.value();\r\n }", "@Override\n public List<UnitModifier> getModifiers()\n {\n ArrayList<UnitModifier> output = new ArrayList<>();\n output.addAll(model.getModifiers());\n output.addAll(CO.getModifiers());\n output.addAll(unitMods);\n return output;\n }", "public Map<String, Set<String>> getDependencies() {\n return new HashMap<String, Set<String>>(dependencies);\n }", "@NotNull\n\tpublic Set<String> getAngularVariables()\n\t{\n\t\tif (angularVariables == null)\n\t\t{\n\t\t\tangularVariables = new LinkedHashSet<>();\n\t\t}\n\t\treturn angularVariables;\n\t}", "public List<Identifier> getDeclarations() \n {\n return this.declarations;\n }", "public List<Declaration> declarations() {\r\n\t\treturn this.declarations;\r\n\t}", "String[] getTags() {\n if (sections == null) {\n return null;\n }\n\n Vector<String> tagV = new Vector<>(sections.length * 2);\n\n for (Section section : sections) {\n String[] names = section.getOutputNames();\n\n Collections.addAll(tagV, names);\n } // outer for\n\n return tagV.toArray(new String[tagV.size()]);\n }", "public abstract String[] getRequiredAttributeNames();", "@Override\n\tpublic Clause getConstraints() {\n\t\treturn null;\n\t}", "Set<String> getDependencies();", "public Condition [] getConditions() {\n return this.Conditions;\n }", "ImmutableList<ResourceRequirement> getRequirements();", "String getDirective(String key);", "public List<BodyDecl> getBodyElelemtsNoTransform() {\n return getBodyElelemtListNoTransform();\n }", "public List<ConstraintParameter> getParameters() {\n\t\t// TODO send out a copy..not the reference to our actual data\n\t\treturn m_parameters;\n\t}", "Set<DependencyDescriptor> getDependencyDescriptors() {\n return dependencyDescriptors;\n }", "public IncludeDirective getIncludeDirective() {\n return includeDirective;\n }", "public ElementMap[] getAnnotations() {\r\n return union.value();\r\n }", "public List<Integer> getDependsOn() {\r\n return dependsOn;\r\n }", "public BasicAttributesGrammarAccess.AttributeDefinitionElements getAttributeDefinitionAccess() {\n\t\treturn gaBasicAttributes.getAttributeDefinitionAccess();\n\t}", "public java.lang.String getDisabilities () {\n\t\treturn disabilities;\n\t}", "public ImList<Clause> getClauses() {\n\t\t// TODO: implement this.\n\t\t//throw new RuntimeException(\"not yet implemented.\");\n\t\treturn clauses;\n\t}", "public int getIntrinsicDependencies() {\n int d = super.getIntrinsicDependencies();\n if (argument.length == 0) {\n d |= StaticProperty.DEPENDS_ON_CONTEXT_ITEM;\n }\n return d;\n }", "public List<String> attributes() {\n return this.attributes;\n }", "public List<Column> getQueryDependColumns() {\n return queryDependendCollumns;\n }", "public java.lang.String getRequires()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(REQUIRES$28);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }", "public FieldDeclaration[] getFields() {\n return m_classBuilder.getFields();\n }", "public List<String> definition() {\n return this.definition;\n }", "public List getDos() {\n\t\tif (dos == null) {\n\t\t\tdos = getFormattedPractices(\"/metadataFieldInfo/field/bestPractices/dos\");\n\t\t}\n\t\treturn dos;\n\t}", "public Attribute[] getAttributes()\n {\n return _attrs;\n }", "public String[] getRelevantAttributes();", "public List<Concept> getDiagnoses(){\n \treturn diagnoses;\n }", "public String getComments() {\n return (String) getAttributeInternal(COMMENTS);\n }", "public List getArraySpecifiers() {\n \tif (member == null)\n \t\treturn null;\n return member.getArraySpecifiers();\n }", "public interface DirectiveCacheIfc\n{\n /**\n *\n * This method will validate that name is an actual directive name.\n *\n * @param name represents the name of the directive.\n *\n * @return true if name is a valid directive name or false if not.\n *\n */\n public boolean isValidDirectiveName ( String name );\n\n /**\n *\n * This method will return a named directive.\n *\n * @param name represents the name of the directive.\n *\n * @return a named directive.\n *\n * @throws UnknownNamedDirectiveException if name cannot be found. Please\n * note that this should not be thrown if calling\n * isValidDirectiveName ( name ) returns true!\n *\n */\n public NamedDirectiveIfc getNamedDirective ( String name )\n throws UnknownNamedDirectiveException;\n\n /**\n *\n * This method will define a new named directive.\n *\n * @param name represents the name of the named directive.\n *\n * @param directive represents the newly defined directive.\n *\n */\n public void defineNamedDirective\n ( String name, NamedDirectiveIfc directive );\n\n /**\n *\n * This method will define a new named directive.\n *\n * @param namedDirectiveDef represents the named directive definition.\n *\n */\n public void defineNamedDirective ( NamedDirectiveDefIfc namedDirectiveDef );\n\n /**\n *\n * This method will define new named directives.\n *\n * @param namedDirectiveDefs represents an array of named directive\n * definitions.\n *\n */\n public void defineNamedDirectives\n ( NamedDirectiveDefIfc namedDirectiveDefs[] );\n\n /**\n *\n * This method will copy a directive. By copy, really it maps newName\n * to the same directive as oldName.\n *\n * @param oldName represents the original name of a directive.\n *\n * @param newName represents the new name of a directive.\n *\n * @throws UnknownNamedDirectiveException if no directive exists for\n * oldName.\n *\n */\n public void copyNamedDirective ( String oldName, String newName )\n throws UnknownNamedDirectiveException;\n\n /**\n *\n * This method will return all the names of directives defined.\n *\n * @return the name of all directives defined.\n *\n */\n public String[] getDirectiveNames ();\n\n /**\n *\n * This method will return all the named directives defined.\n *\n * @return the name of all named directives defined.\n *\n */\n public NamedDirectiveDefIfc[] getNamedDirectives ();\n\n /**\n *\n * This method will create a parsed character directive.\n *\n * @return a parsed character directive.\n *\n */\n public PCDataDirectiveIfc createPCDataDirective ();\n\n /**\n *\n * This method will create a parsed character directive with the data.\n *\n * @param pcData represents the parsed character data for the PCData\n * directive.\n *\n * @return a parsed character directive.\n *\n */\n public PCDataDirectiveIfc createPCDataDirective ( String pcData );\n\n /**\n *\n * This method will create a copy of self.\n *\n * @return a copy of self.\n *\n */\n public DirectiveCacheIfc createCopy ();\n}", "public Vector<YANG_Include> getIncludes() {\n\t\tVector<YANG_Include> includes = new Vector<YANG_Include>();\n\t\tfor (Enumeration<YANG_Linkage> el = getLinkages().elements(); el\n\t\t\t\t.hasMoreElements();) {\n\t\t\tYANG_Linkage linkage = el.nextElement();\n\t\t\tif (linkage instanceof YANG_Include)\n\t\t\t\tincludes.add((YANG_Include) linkage);\n\t\t}\n\t\treturn includes;\n\t}", "public String getJdRequire() {\r\n\t\treturn jdRequire;\r\n\t}", "public List<PhysicsJoint> getJoints() {\n return joints;\n }", "public List<Integer> getAdditionalBottomDiameters() {\n return additionalBottomDiameters;\n }", "@Schema(description = \"This is a list of constraint references applied to this specification\")\n\t@Valid\n\tpublic Set<ConstraintRef> getConstraint() {\n\t\treturn constraint;\n\t}", "public static List<String> getRequiredAttributes() {\n\t\treturn TestObject.REQUIRED_ATTRIBUTES;\n\t}", "public XMLFieldDescriptor[] getAttributeDescriptors() {\n\n XMLFieldDescriptor[] fields\n = new XMLFieldDescriptor[attributeDescriptors.size()];\n\n attributeDescriptors.toArray(fields);\n return fields;\n }", "public java.util.List<PlacementConstraint> getPlacementConstraints() {\n if (placementConstraints == null) {\n placementConstraints = new com.amazonaws.internal.SdkInternalList<PlacementConstraint>();\n }\n return placementConstraints;\n }", "public StringDt getRequirementsElement() { \n\t\tif (myRequirements == null) {\n\t\t\tmyRequirements = new StringDt();\n\t\t}\n\t\treturn myRequirements;\n\t}", "public java.util.List<com.google.cloud.aiplatform.v1.EvaluatedAnnotationExplanation.Builder>\n getExplanationsBuilderList() {\n return getExplanationsFieldBuilder().getBuilderList();\n }", "public List<Integer> getBottomDiameters() {\n return bottomDiameters;\n }", "public List<BodyDecl> getBodyDecls() {\n return getBodyDeclList();\n }", "public java.util.List<google.maps.fleetengine.v1.VehicleAttribute> getAttributesList() {\n if (attributesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(attributes_);\n } else {\n return attributesBuilder_.getMessageList();\n }\n }" ]
[ "0.80198747", "0.74592453", "0.7226632", "0.7197346", "0.70431787", "0.6899027", "0.6878511", "0.6582371", "0.6472101", "0.60033613", "0.58558875", "0.57338834", "0.5665752", "0.56617635", "0.5658188", "0.5595132", "0.556932", "0.5564976", "0.55477136", "0.55242354", "0.54824054", "0.54198444", "0.5393484", "0.5392044", "0.5377181", "0.5369321", "0.5358155", "0.5336162", "0.5335303", "0.53275234", "0.5326643", "0.5302534", "0.5299159", "0.52977794", "0.52857023", "0.5270554", "0.5249667", "0.5247537", "0.5240914", "0.5237021", "0.52260816", "0.5213765", "0.5205333", "0.5201965", "0.5190055", "0.518967", "0.5189115", "0.5175229", "0.5169374", "0.51691043", "0.51644504", "0.5146719", "0.51389045", "0.513492", "0.51325965", "0.51157314", "0.51136565", "0.51110417", "0.50981146", "0.50935566", "0.5083666", "0.50752187", "0.5065657", "0.5053893", "0.50508875", "0.5050049", "0.50439095", "0.5041706", "0.50316954", "0.502382", "0.50159585", "0.500535", "0.50025874", "0.5000387", "0.49980006", "0.49872127", "0.49794137", "0.49777743", "0.49758488", "0.49626622", "0.495798", "0.49576044", "0.49519113", "0.4949825", "0.49318945", "0.4929915", "0.49281305", "0.4923706", "0.4920878", "0.49207094", "0.49126044", "0.49105898", "0.49074036", "0.49068096", "0.4905521", "0.49053544", "0.48985973", "0.4894372" ]
0.74126065
3
Get the value of the given directive
String getDirective(String key);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Object getDirective(String key);", "TemplateModel getValue();", "@Override\r\n\tpublic String getValue() {\r\n\t\t//\r\n\t\treturn this.elementWrapper.getAttribute(this.attribute);\r\n\t}", "String getVal();", "String getValue();", "String getValue();", "String getValue();", "String getValue();", "String getValue();", "String getValue();", "String getValue();", "String getValue();", "String getValue();", "String getValue();", "java.lang.String getValue();", "java.lang.String getValue();", "java.lang.String getValue();", "java.lang.String getValue();", "java.lang.String getValue();", "java.lang.String getValue();", "public String getValue(String name) {\n/* 192 */ Attr attr = (Attr)this.m_attrs.getNamedItem(name);\n/* 193 */ return (null != attr) ? attr.getValue() : null;\n/* */ }", "@Override\n\tpublic String getValue() {\n\t\treturn this.token.getActualTextValue() ;\n\t}", "public String getValue() {\n return getMethodValue(\"value\");\n }", "Expression getValue();", "Expression getValue();", "String getTextValue();", "public String getValue();", "public String getValue();", "public String getValue();", "public String getValue();", "public String getValue();", "public String getValue();", "public String getValue();", "public String getValue();", "public String getValue();", "public String getValue() {\n return super.getAttributeValue();\n }", "public CsdlExpression getValue() {\n return value;\n }", "protected ValueDirective buildValueDirective( Element element )\r\n {\r\n String classname = ElementHelper.getAttribute( element, \"class\" );\r\n String method = ElementHelper.getAttribute( element, \"method\" );\r\n Element[] elements = ElementHelper.getChildren( element, \"param\" );\r\n if( elements.length > 0 )\r\n {\r\n ValueDirective[] values = buildValueDirectives( elements );\r\n return new ValueDirective( classname, method, values );\r\n }\r\n else\r\n {\r\n String value = ElementHelper.getAttribute( element, \"value\" );\r\n return new ValueDirective( classname, method, value );\r\n }\r\n }", "public DataDirective getDataDirective()\r\n {\r\n return m_data;\r\n }", "@Override\n\tpublic String visitValue(ValueContext ctx) {\n\t \n\t\t\n\t return ctx.getChild(0).getText();\n\t\t\n\t\t\n\t}", "public String getValue(int i) {\n/* 151 */ return ((Attr)this.m_attrs.item(i)).getValue();\n/* */ }", "public String getValue () { return value; }", "Object getExpressionValue(ExpressionParams params);", "java.lang.String getConstantValue();", "java.lang.String getVarValue();", "public String getValue() throws SdpParseException {\n\t\tNameValue nameValue = getAttribute();\n\t\tif (nameValue == null)\n\t\t\treturn null;\n\t\telse {\n\t\t\tObject value = nameValue.getValue();\n\t\t\tif (value == null)\n\t\t\t\treturn null;\n\t\t\telse if (value instanceof String)\n\t\t\t\treturn (String) value;\n\t\t\telse\n\t\t\t\treturn value.toString();\n\t\t}\n\t}", "public T getValue(){\n \treturn element;\n }", "private String getAttrValue(Object name) {\n\t return (String)this.mAtts.get(name);//.toString();\n\t}", "Object getValueFrom();", "Object getValue();", "Object getValue();", "Object getValue();", "Object getValue();", "Object getValue();", "Object getValue();", "Object getValue();", "public String getValue(){\n return this.value;\n }", "String value();", "String value();", "public String getValue(){\n\t\treturn this.value;\n\t}", "public String getValue() { return value; }", "public String getTextValue (Node node);", "String getValueText();", "public String value() {\n return node.getTextContent();\n }", "public String getValue()\n {\n return this.value;\n }", "String getAttribute();", "public String getValue(){\n\t\treturn _value;\n\t}", "public org.omg.uml.behavioralelements.commonbehavior.Instance getValue();", "public String getValue(final String elementLocator);", "private String getTextValue(String def, Element doc, String tag) {\n String value = def;\n NodeList nl;\n nl = doc.getElementsByTagName(tag);\n if (nl.getLength() > 0 && nl.item(0).hasChildNodes()) {\n value = nl.item(0).getFirstChild().getNodeValue();\n }\n return value;\n }", "public String get()\n {\n return val;\n }", "public XPath getValue()\n {\n return m_valueExpr;\n }", "V getValue();", "V getValue();", "V getValue();", "private String getValue(String def, Element doc, String tag) {\r\n String value = def;\r\n NodeList nl;\r\n nl = doc.getElementsByTagName(tag);\r\n if (nl.getLength() > 0 && nl.item(0).hasChildNodes()) {\r\n value = nl.item(0).getFirstChild().getNodeValue();\r\n }\r\n return value;\r\n }", "AbstractDeclaration getValue();", "public String getAttribute_value() {\n return attribute_value;\n }", "Node getVariable();", "String getAttributeStringValue(Object attr);", "Parameter getParameter();", "T getValue();", "T getValue();", "T getValue();", "T getValue();", "T getValue();", "T getValue();", "int getScopeValue();", "public String getNodeValue(Element elem)\n {\n NodeList nlList= elem.getChildNodes();\n Node nValue = (Node) nlList.item(0);\n\n return nValue.getNodeValue();\n }", "public String getValue()\n {\n return value;\n }", "String getVariable();", "String getValueName();", "E getValue();", "public String getValue() {\n return value;\n }", "public Object getValue();", "public Object getValue();", "public Object getValue();", "public Object getValue();", "public Object getValue();", "public Object getValue() {\n return element == null ? null : element.getValue();\n }" ]
[ "0.6753492", "0.6086256", "0.60196114", "0.5923398", "0.5772059", "0.5772059", "0.5772059", "0.5772059", "0.5772059", "0.5772059", "0.5772059", "0.5772059", "0.5772059", "0.5772059", "0.5672648", "0.5672648", "0.5672648", "0.5672648", "0.5672648", "0.5672648", "0.5657464", "0.5637066", "0.561017", "0.55932635", "0.55932635", "0.55729336", "0.5559081", "0.5559081", "0.5559081", "0.5559081", "0.5559081", "0.5559081", "0.5559081", "0.5559081", "0.5559081", "0.5535685", "0.54981977", "0.5407226", "0.54046905", "0.5402256", "0.5394789", "0.5375792", "0.53740245", "0.5367477", "0.53638065", "0.5349823", "0.53282666", "0.53250813", "0.53166986", "0.531161", "0.531161", "0.531161", "0.531161", "0.531161", "0.531161", "0.531161", "0.52974886", "0.5296021", "0.5296021", "0.52847767", "0.52843463", "0.52648884", "0.5260697", "0.52520823", "0.5242485", "0.5229295", "0.5216151", "0.5211817", "0.52106184", "0.52072906", "0.5206113", "0.5204754", "0.5203586", "0.5203586", "0.5203586", "0.5201413", "0.52011114", "0.51830673", "0.5179598", "0.5176888", "0.51746786", "0.51741487", "0.51741487", "0.51741487", "0.51741487", "0.51741487", "0.51741487", "0.51719177", "0.51631624", "0.5155919", "0.5150081", "0.5147251", "0.51457447", "0.5140191", "0.5140126", "0.5140126", "0.5140126", "0.5140126", "0.5140126", "0.51396173" ]
0.66971004
1
Returns the attributes of this requirement. Requirement attributes have no specified semantics and are considered extra user defined information.
Map<String, Object> getAttributes();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getAttributes() {\n\t\treturn getProperty(\"attributes\");\n\t}", "@Override\n public Map<String, Set<String>> getRequiredAttributes() {\n return requiredAttributes;\n }", "public String[] getRelevantAttributes();", "public java.util.Collection getAttributes();", "public String getAttributes() {\n return attributes;\n }", "public String getAttributes() {\n return attributes;\n }", "public final String[] getAttributes() {\n return this.attributes;\n }", "public List<Pair<String, String>> getAttributes() {\n\t\treturn attributes;\n\t}", "public Map<String, String> getAttributes() {\n\t\treturn attributes;\n\t}", "public Map<String, Set<String>> getAttributes() {\n return attributes;\n }", "@Override\r\n\tpublic Map<String, String> getAttributes() {\r\n\t\treturn this.attributes;\r\n\t}", "IAttributes getAttributes();", "public static List<String> getRequiredAttributes() {\n\t\treturn TestObject.REQUIRED_ATTRIBUTES;\n\t}", "public Attributes getAttributes() { return this.attributes; }", "public Map<String, String> getAttributes() {\n\t\treturn atts;\n\t}", "Attributes getAttributes();", "public List<Attribute<?>> getAttributes() {\r\n\t\treturn Collections.unmodifiableList(attributes);\r\n\t}", "public Map<String, String> getAttributes() {\n return Collections.unmodifiableMap(attributes);\n }", "public List<String> attributes() {\n return this.attributes;\n }", "public String getAttributes() {\n StringBuilder sb = new StringBuilder();\n\n // class\n if (!getClassAttribute().isEmpty()) {\n sb.append(\"class='\").append(getClassAttribute()).append(\"' \");\n }\n\n // data-*\n if (!getDataAttributes().isEmpty()) {\n sb.append(getDataAttributes()).append(\" \");\n }\n\n // hidden\n if (isHiddenAttribute()) {\n //sb.append(\"hidden \");\n addSpecialAttribute(\"hidden\");\n }\n\n // id\n if (!getIdAttribute().isEmpty()) {\n sb.append(\"id='\").append(getIdAttribute()).append(\"' \");\n }\n\n // style\n if (!getStyleAttribute().isEmpty()) {\n sb.append(\"style='\").append(getStyleAttribute()).append(\"' \");\n }\n\n // title\n if (!getTitleAttribute().isEmpty()) {\n sb.append(\"title='\").append(getTitleAttribute()).append(\"' \");\n }\n\n // custom\n if (!getCustomAttributes().isEmpty()) {\n sb.append(getCustomAttributes()).append(\" \");\n }\n \n // special\n if (!getSpecialAttribute().isEmpty()) {\n sb.append(getSpecialAttribute());\n }\n\n return sb.toString().trim();\n }", "public Attribute[] getAttributes()\n {\n return _attrs;\n }", "@java.lang.Override\n public trinsic.services.common.v1.CommonOuterClass.JsonPayload getAttributes() {\n return attributes_ == null ? trinsic.services.common.v1.CommonOuterClass.JsonPayload.getDefaultInstance() : attributes_;\n }", "public List<Attribute> getAttributes() {\n return Collections.unmodifiableList(attributes);\n }", "Map<String, String> getAttributes();", "public Attributes getAttributes() {\n\t\treturn null;\r\n\t}", "public Map<String, String> getAttributes();", "public java.lang.Integer getAttributes() {\r\n return attributes;\r\n }", "public WSLAttributeList getAttributes() {return attributes;}", "public List<Attribute> getAttributes() {\r\n return attributes;\r\n }", "public Set<String> getAttributes() {\r\n return attributeMap.keySet();\r\n }", "public Map<String, Object> getAttributes();", "public Map<String, Object> getAttributes();", "public List<TLAttribute> getAttributes();", "public List<GenericAttribute> getAttributes() {\n return attributes;\n }", "public trinsic.services.common.v1.CommonOuterClass.JsonPayload getAttributes() {\n if (attributesBuilder_ == null) {\n return attributes_ == null ? trinsic.services.common.v1.CommonOuterClass.JsonPayload.getDefaultInstance() : attributes_;\n } else {\n return attributesBuilder_.getMessage();\n }\n }", "public static List<String> getRequiredAttributes2() {\n\t\treturn TestObject.REQUIRED_ATTRIBUTES;\n\t}", "@Override\n public List<MappedField<?>> getAttributes() {\n return attributes;\n }", "public final native JsArray<Attribute> getAttributes() /*-{\n\t\t\treturn this.attributes;\n\t\t}-*/;", "@Override\r\n\tpublic Map<String, Object> getAttributes() {\n\t\treturn null;\r\n\t}", "public Collection<HbAttributeInternal> attributes();", "public Attribute[] getAvailableAttributes(){\n Attribute attributes[] = {\n TextAttribute.FAMILY,\n TextAttribute.WEIGHT,\n TextAttribute.POSTURE,\n TextAttribute.SIZE,\n\t TextAttribute.TRANSFORM,\n TextAttribute.SUPERSCRIPT,\n TextAttribute.WIDTH,\n };\n\n return attributes;\n }", "public abstract Map<String, Object> getAttributes();", "public HashSet<String> getUsefulAttributes() {\n\t\t \n\t\tHashSet<String> attr = new HashSet<>();\n\t\tQuery firstQ = this.rset.get(1); // get first query on rewriting set 'rset'.\n\t\t\n\t\tGrouping gPart = firstQ.getQueryTriple()._1();\n\t attr.addAll(gPart.getUsefulAttributes());\n\t \n\t Measuring mPart = firstQ.getQueryTriple()._2();\n\t attr.addAll(mPart.getMeasuringAttributes());\n\t \n\t\treturn attr;\n\t}", "public Object[] getAttributes() {\n\t\treturn new Object[] {true}; //true for re-init... \n\t}", "public Vector<HibernateAttribute> getAttributes() {\n\t\treturn attributes;\n\t}", "public Enumeration getAttributes()\n {\n ensureLoaded();\n return m_tblAttribute.elements();\n }", "@Override\n\tpublic Attributes getAttributes() {\n\t\treturn (Attributes)map.get(ATTRIBUTES);\n\t}", "@Override\n public synchronized Set<AttributeType> getAttributes() {\n return attributes = nonNullSet(attributes, AttributeType.class);\n }", "public TableAttributes getAttributes() {\n\treturn attrs;\n }", "public String[] getAllAttributes() {\n\t\treturn allAttributes;\n\t}", "@Override\r\n\t\tpublic boolean hasAttributes()\r\n\t\t\t{\n\t\t\t\treturn false;\r\n\t\t\t}", "public List<SyntacticAttribute> attributes() {\n\t\t\treturn attributes;\n\t\t}", "public final String getAttributesString() {\n String returnAttributes = \"\";\n boolean debut = true;\n for (int i = 0; i < this.attributes.length; i++) {\n if (debut) {\n debut = false;\n } else {\n returnAttributes += \"|\";\n }\n returnAttributes += this.attributes[i];\n }\n return returnAttributes;\n }", "public List<Jattr> attributes() {\n NamedNodeMap attributes = node.getAttributes();\n if (attributes == null)\n return new ArrayList<Jattr>();\n List<Jattr> jattrs = new ArrayList<Jattr>();\n for (int i = 0; i < attributes.getLength(); i++) {\n jattrs.add(new Jattr((Attr) attributes.item(i)));\n }\n return jattrs;\n }", "public Map<TextAttribute,?> getAttributes(){\n return (Map<TextAttribute,?>)getRequestedAttributes().clone();\n }", "@java.lang.Override\n public java.util.List<? extends google.maps.fleetengine.v1.VehicleAttributeOrBuilder> \n getAttributesOrBuilderList() {\n return attributes_;\n }", "public trinsic.services.common.v1.CommonOuterClass.JsonPayloadOrBuilder getAttributesOrBuilder() {\n if (attributesBuilder_ != null) {\n return attributesBuilder_.getMessageOrBuilder();\n } else {\n return attributes_ == null ?\n trinsic.services.common.v1.CommonOuterClass.JsonPayload.getDefaultInstance() : attributes_;\n }\n }", "@java.lang.Override\n public trinsic.services.common.v1.CommonOuterClass.JsonPayloadOrBuilder getAttributesOrBuilder() {\n return getAttributes();\n }", "private Attributes getAttributes()\r\n\t{\r\n\t return attributes;\r\n\t}", "private Hashtable getRequestedAttributes() {\n\tif (fRequestedAttributes == null) {\n\t fRequestedAttributes = new Hashtable(7, (float)0.9);\n fRequestedAttributes.put(TextAttribute.TRANSFORM,\n\t\t\t\t IDENT_TX_ATTRIBUTE);\n fRequestedAttributes.put(TextAttribute.FAMILY, name);\n fRequestedAttributes.put(TextAttribute.SIZE, new Float(size));\n\t fRequestedAttributes.put(TextAttribute.WEIGHT,\n\t\t\t\t (style & BOLD) != 0 ? \n\t\t\t\t TextAttribute.WEIGHT_BOLD :\n\t\t\t\t TextAttribute.WEIGHT_REGULAR);\n\t fRequestedAttributes.put(TextAttribute.POSTURE,\n\t\t\t\t (style & ITALIC) != 0 ? \n\t\t\t\t TextAttribute.POSTURE_OBLIQUE :\n\t\t\t\t TextAttribute.POSTURE_REGULAR);\n fRequestedAttributes.put(TextAttribute.SUPERSCRIPT,\n new Integer(superscript));\n fRequestedAttributes.put(TextAttribute.WIDTH,\n new Float(width));\n\t}\n\treturn fRequestedAttributes;\n }", "@java.lang.Override\n public java.util.List<google.maps.fleetengine.v1.VehicleAttribute> getAttributesList() {\n return attributes_;\n }", "public final int getAttributes() {\n\t\treturn m_info.getFileAttributes();\n\t}", "@java.lang.Override\n public int getAttributesCount() {\n return attributes_.size();\n }", "public abstract Map getAttributes();", "@ApiModelProperty(value = \"Attributes of the issuer object.\")\n public IssuerAttributes getAttributes() {\n return attributes;\n }", "public FactAttributes getAttributes() {\r\n return localAttributes;\r\n }", "public final Map<String, DomAttr> getAttributesMap() {\n return attributes_;\n }", "public Map<String, ExpectedAttributeValue> getExpected() {\n return expectedAttributes;\n }", "public abstract String[] getRequiredAttributeNames();", "List<Attribute<T, ?>> getAttributes();", "public Map<String, Object> getAttrs();", "trinsic.services.common.v1.CommonOuterClass.JsonPayload getAttributes();", "public KeyRotationPolicyAttributes attributes() {\n return this.attributes;\n }", "public ShapeAttributes getAttributes()\n {\n return this.normalAttrs;\n }", "public final HashSet<Attribute> attributeSet() {\n final HashSet<Attribute> set = new HashSet<Attribute>();\n\n for (int i = 0; i < m_body.size(); i++) {\n final Condition c = m_body.get(i);\n set.add(c.getAttr());\n }\n\n return set;\n }", "public java.util.List<google.maps.fleetengine.v1.VehicleAttribute> getAttributesList() {\n if (attributesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(attributes_);\n } else {\n return attributesBuilder_.getMessageList();\n }\n }", "trinsic.services.common.v1.CommonOuterClass.JsonPayloadOrBuilder getAttributesOrBuilder();", "@Override\n\tpublic ArrayList<Object> getAttributeList() {\n\t\tArrayList<Object> attributes = new ArrayList<Object>();\n//\t\tattributes.add(\"s2014_age\");\n//\t\tattributes.add(\"s2014_prog_skill\");\n//\t\tattributes.add(\"s2014_uni_yrs\");\n//\t\tattributes.add(\"s2014_os\");\n//\t\tattributes.add(\"s2014_progLangs\");\n//\t\tattributes.add(\"s2014_engSkill\");\n\t\tattributes.add(\"s2014_favAnimal\");\n\t\tattributes.add(\"s2014_MoreMtns\");\n//\t\tattributes.add(\"s2014_winter\");\n\t\tattributes.add(\"s2014_favColor\");\n//\t\tattributes.add(\"s2014_neuralNetwork\");\n//\t\tattributes.add(\"s2014_vectorMachine\");\n//\t\tattributes.add(\"s2014_sql\");\n//\t\tattributes.add(\"s2014_favSQLServ\");\n//\t\tattributes.add(\"s2014_apriori\");\n\t\treturn attributes;\n\t}", "@Override\n public String getAttributesToString() {\n StringBuilder attributes = new StringBuilder();\n attributes.append(\"1 - Nominal Power: \" + nominalPower + \"\\n\");\n attributes.append(\"2 - Number of Bottles: \" + numberOfBottles + \"\\n\");\n attributes.append(\"3 - Annual Energy Consumption: \" + annualEnergyConsumption + \"\\n\");\n\n return attributes.toString();\n }", "public Map<String, Object> getAttributesMap() {\n\t\treturn this.staticAttributes;\n\t}", "ArrayList getAttributes();", "public String printAttributes() {\n checkNotUnknown();\n StringBuilder b = new StringBuilder();\n if (hasDontDelete()) {\n b.append(\"(DontDelete\");\n if (isMaybeDontDelete())\n b.append(\"+\");\n if (isMaybeNotDontDelete())\n b.append(\"-\");\n b.append(\")\");\n }\n if (hasDontEnum()) {\n b.append(\"(DontEnum\");\n if (isMaybeDontEnum())\n b.append(\"+\");\n if (isMaybeNotDontEnum())\n b.append(\"-\");\n b.append(\")\");\n }\n if (hasReadOnly()) {\n b.append(\"(ReadOnly\");\n if (isMaybeReadOnly())\n b.append(\"+\");\n if (isMaybeNotReadOnly())\n b.append(\"-\");\n b.append(\")\");\n }\n return b.toString();\n }", "public Map<String, Object> attributes() {\n Map<String, Object> attributes = new HashMap<String, Object>();\n for (Column column : getColumns()) {\n String name = Strings.camelize(column.getName(), true);\n attributes.put(name, attribute(name));\n }\n return attributes;\n }", "public int getNumAttributes() {\n return m_NumAttributes;\n }", "public VAttribute[] getAttributes() throws VlException \n {\n return getAttributes(getAttributeNames());\n }", "public List<Attribute> getAttribute() {\n\t if (attribute==null) {\n\t attribute = new ArrayList<>();\n\t }\n\n\t return attribute;\n\t}", "public int getNumAttributes() {\n return numAttributes;\n }", "@java.lang.Override\n public boolean hasAttributes() {\n return attributes_ != null;\n }", "@Override\n\tpublic AttributeMap getAttributes() {\n\t\treturn defaultEdgle.getAttributes();\n\t}", "int getNumberOfNecessaryAttributes();", "public Set<String> getAllAttributes() {\r\n if (parent.isPresent()) {\r\n return Sets.union(attributeMap.keySet(), parent.get().getAllAttributes());\r\n } else {\r\n return getAttributes();\r\n }\r\n }", "public int getNumOfAttributes() {\n\t\treturn numOfAttributes;\n\t}", "public java.util.List<? extends google.maps.fleetengine.v1.VehicleAttributeOrBuilder> \n getAttributesOrBuilderList() {\n if (attributesBuilder_ != null) {\n return attributesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(attributes_);\n }\n }", "private byte attributes() {\n return (byte) buffer.getShort(ATTRIBUTES_OFFSET);\n }", "public Enumeration getAttributes() {\n\t\treturn url.getAttributes();\n }", "@ApiModelProperty(value = \"List of attributes to return with decisions. These attributes are known as response attributes\")\n public List<Object> getResourceAttributes() {\n return resourceAttributes;\n }", "public AttributeSet getAttributes() {\n return null;\n }", "public Map<String, Map<String, String>> getUserAttributes() {\n return m_userAttributes;\n }" ]
[ "0.77292246", "0.7574287", "0.756116", "0.74767095", "0.74304914", "0.74304914", "0.7388537", "0.73829573", "0.7375643", "0.73707193", "0.73446435", "0.7340519", "0.73088056", "0.72978413", "0.72628134", "0.7250961", "0.7227543", "0.72169894", "0.7215595", "0.71565384", "0.7146625", "0.7129585", "0.7128993", "0.7121507", "0.7054672", "0.70252883", "0.6996486", "0.6995334", "0.69905484", "0.6974157", "0.6969613", "0.6969613", "0.69568497", "0.6937923", "0.69364077", "0.69285864", "0.69221437", "0.6907656", "0.69037366", "0.689879", "0.6827798", "0.6803006", "0.6801425", "0.6772564", "0.67438895", "0.6738982", "0.6724186", "0.6721737", "0.6706513", "0.6704651", "0.6636991", "0.66329575", "0.662702", "0.6602167", "0.6585457", "0.65835524", "0.657566", "0.657284", "0.6568279", "0.6510899", "0.64893305", "0.6488813", "0.647838", "0.64773625", "0.6471209", "0.64696187", "0.6467663", "0.646671", "0.6463567", "0.6451639", "0.64308167", "0.63874376", "0.63826525", "0.6370607", "0.6367401", "0.6365064", "0.6338906", "0.632794", "0.6317403", "0.6293919", "0.62757707", "0.62718326", "0.6262632", "0.626255", "0.6258915", "0.6257136", "0.62568456", "0.6241342", "0.6235334", "0.6226273", "0.622071", "0.62103814", "0.6209771", "0.6207939", "0.61680967", "0.6166315", "0.61656976", "0.61626726" ]
0.7010781
28
Get the value of the given attribute
Object getAttribute(String key);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Attribute getAttribute();", "java.lang.String getAttribute();", "Object getAttribute(int attribute);", "String getAttribute();", "@Override\r\n\tpublic String getValue() {\r\n\t\t//\r\n\t\treturn this.elementWrapper.getAttribute(this.attribute);\r\n\t}", "private String getAttributeValue(final Attribute attribute) {\n\t List<String> values = this.getAttributeValues(attribute);\n\t if (values.size()>0) {\n\t return values.get(0);\n\t } else {\n\t return \"\";\n\t }\n\t}", "Object getAttribute(String name);", "Object getAttribute(String name);", "Object getAttribute(String name);", "public org.omg.uml.foundation.core.Attribute getAttribute();", "public String getAttribute_value() {\n return attribute_value;\n }", "public String getAttributeValue(int id) {\n Attribute attr = super.findById(id, false);\n if (attr != null ) {\n return attr.getValue();\n } else {\n return \"unknown attribute\";\n }\n }", "public String getAttribute() {\n return attribute;\n }", "public Object getAttribute(String name);", "String getAttributeStringValue(Object attr);", "public String getValue(String name) {\n/* 192 */ Attr attr = (Attr)this.m_attrs.getNamedItem(name);\n/* 193 */ return (null != attr) ? attr.getValue() : null;\n/* */ }", "public Attribute fetchAttribute(String key, String value);", "public String getAttribute(String name);", "public String getAttribute() {\n\t\treturn attribute;\n\t}", "public String getAttribute() {\n\t\treturn attribute;\n\t}", "public String getAttributeValue(Node node, String attributeName) throws Exception;", "public Object attribute(String name) {\n return Classes.getFieldValue(this, name);\n }", "public final Object getAttribute(String attribute) {\r\n\t\tfor (String key:annotations.keySet()) {\r\n\t\t\tAnnotationDefinition defn = annotations.get(key);\r\n\t\t\tif (defn.getParams() != null && defn.getParams().containsKey(attribute))\r\n\t\t\t\treturn defn.getParams().get(attribute);\t\t\t\r\n\t\t}\r\n\t\treturn \"\";\r\n\t}", "@Nonnull\n public final synchronized String getAttributeValue() {\n return attributeValue;\n }", "public String getAttribute(String attribute){\n return getWebElement().getAttribute(attribute);\n }", "public String getValue() {\n return super.getAttributeValue();\n }", "@Override\n\tpublic IAttributeValue value() { return value; }", "public String getValue(int i) {\n/* 151 */ return ((Attr)this.m_attrs.item(i)).getValue();\n/* */ }", "public String getAttributeValue(By locator, String attributeName) {\n \t\t\t\n \t\t\tWebElement element = driver.findElement(locator);\n \t\t\tString attributeValue = element.getAttribute(attributeName);\n \t\t\treturn attributeValue;\n \t\t}", "public String attribute() {\n return this.attribute;\n }", "public Object getAttribute(Object key);", "public String getAttributeValue(By elementDefinition, String attributeName) {\n String attributeValue = null;\n try {\n info(\"Retrieving attribute value for attribute \" + attributeName + \" for the element :: \" +\n elementDefinition);\n waitForVisibility(elementDefinition);\n attributeValue = findElement(elementDefinition).getAttribute(attributeName);\n return attributeValue;\n } catch (Exception e) {\n error(\"Exception occurred while retrieving value of \" + attributeName + \" for the element with \" +\n \"definition \" + elementDefinition);\n error(Throwables.getStackTraceAsString(e));\n throw new NoSuchElementException(Throwables.getStackTraceAsString(e));\n }\n }", "public GenericAttribute getAttribute () {\n return attribute;\n }", "public String getStringAttribute();", "private String getAttrValue(Object name) {\n\t return (String)this.mAtts.get(name);//.toString();\n\t}", "public int getAttribute() {\n return Attribute;\n }", "public TLAttribute getAttribute(String attributeName);", "String attributeToGetter(String name);", "public String getValue(int index)\n {\n if (index < 0 || index >= attributesList.size())\n {\n return null;\n }\n return ((Attribute) attributesList.get(index)).value;\n }", "public String getAttrVal() {\n return attrVal;\n }", "public java.lang.String getAttributeValue() {\r\n return localAttributeValue;\r\n }", "public Object getProperty(String attName);", "private String getAttribute(Element element, String attributeName)\n {\n String value = \"\";\n\n Attr attribute = element.getAttributeNode(attributeName);\n if (attribute != null)\n {\n value = attribute.getValue();\n }\n\n return value;\n }", "public Integer getIntegerAttribute();", "public String getAttribute(String name) {\n return _getAttribute(name);\n }", "public Object getAttribute(Object key) {\n return getAttributes().get(key);\n }", "public final String getValueAttribute() {\n String value = getAttributeValue(\"value\");\n if( value == ATTRIBUTE_NOT_DEFINED && this instanceof HtmlCheckBoxInput ) {\n value = \"on\";\n }\n return value;\n }", "public String getAttr() {\n return attr;\n }", "public static String getUserAttribute(String username, String attribute) {\n String attributeValue = null;\n\n try {\n DirectoryManager directoryManager = (DirectoryManager) appContext.getBean(\"directoryManager\");\n User user = directoryManager.getUserByUsername(username);\n\n if (user != null) {\n //convert first character to upper case\n char firstChar = attribute.charAt(0);\n firstChar = Character.toUpperCase(firstChar);\n attribute = firstChar + attribute.substring(1, attribute.length());\n\n Method method = User.class.getDeclaredMethod(\"get\" + attribute, new Class[]{});\n String returnResult = (String) method.invoke(user, new Object[]{});\n if (returnResult == null || attribute.equals(\"Password\")) {\n returnResult = \"\";\n }\n\n attributeValue = returnResult;\n }\n } catch (Exception e) {\n LogUtil.error(WorkflowUtil.class.getName(), e, \"Error retrieving user attribute \" + attribute);\n }\n return attributeValue;\n }", "public String getAttributeValue(WebElement element, String attributeName) {\n \t\t\t\n \t\t\tString attributeValue = element.getAttribute(attributeName);\n \t\t\treturn attributeValue;\n \t\t}", "public String getElementAttribute(int row, int attr);", "public synchronized Object getAttribute(String key) {\n return attributes.get(key);\n }", "public Object getAttribute(String attribute_name) \n throws AttributeNotFoundException,\n MBeanException,\n ReflectionException {\n if (attribute_name == null) {\n throw new RuntimeOperationsException(new IllegalArgumentException(\"Attribute name cannot be null\"), \n \"Cannot invoke a getter of \" + dClassName + \" with null attribute name\");\n }\n\n attribute_name = RunTimeSingleton.decode(attribute_name, \"US-ASCII\"); // HtmlAdapter made from info/admin -> info%2Fadmin\n // \"logging/org.xmlBlaster.engine.RequestBroker\"\n if (attribute_name.startsWith(\"logging/\"))\n attribute_name = attribute_name.substring(8); // \"org.xmlBlaster.engine.RequestBroker\"\n\n try {\n Level level = this.glob.getLogLevel(attribute_name);\n return level.toString();\n }\n catch (ServiceManagerException e) {\n if (attribute_name == null || attribute_name.length() == 0 || \"logging/\".equals(attribute_name)) return Level.INFO.toString();\n throw(new AttributeNotFoundException(\"Cannot find '\" + attribute_name + \"' attribute in \" + dClassName));\n }\n }", "public String getAttributeValueByName(String name) {\n\t\tif(attributes!=null) {\n\t\t\treturn attributes.get(name);\n\t\t}\n\t\treturn null;\n\t}", "public String getValue() throws SdpParseException {\n\t\tNameValue nameValue = getAttribute();\n\t\tif (nameValue == null)\n\t\t\treturn null;\n\t\telse {\n\t\t\tObject value = nameValue.getValue();\n\t\t\tif (value == null)\n\t\t\t\treturn null;\n\t\t\telse if (value instanceof String)\n\t\t\t\treturn (String) value;\n\t\t\telse\n\t\t\t\treturn value.toString();\n\t\t}\n\t}", "public String getAttribute(String name)\n {\n return getAttribute(name,null);\n }", "public <T> T get(String attr) {\n return (T) (super.get(attr));\n }", "public String getAttribute(final String attributeLocator);", "protected String getAttribute(String chave) throws AtributosException {\r\n\t\tif (tag == null) {\r\n\t\t\treturn \"\";\r\n\t\t}\r\n\r\n\t\tString attributeValue = tag.getAttributeValue(chave);\r\n\r\n\t\tif (attributeValue == null || attributeValue.trim().equals(\"\")) {\r\n\t\t\tattributeValue = getDefaultValue(chave);\r\n\t\t}\r\n\r\n\t\treturn attributeValue;\r\n\t}", "public String getAttribute(String key) {\n return attributes.get(key);\n }", "com.google.protobuf.ByteString getAttributeBytes();", "protected String getAttributeStr(String attr)\n {\n Object res = getAttributes().get(attr);\n return (res != null) ? res.toString() : null;\n }", "public String getStr(String attr) {\n return (String) super.get(attr);\n }", "public String getAttrValue() {\r\n\t\treturn attrValue;\r\n\t}", "public String getAttribute(String attributeName)\n\t{\n\t\treturn attributes.get(attributeName);\n\t}", "public String getAttribute(String name)\n\tthrows SdpParseException {\n\tif (name != null) {\n\t for (int i = 0; i < this.attributeFields.size(); i++) {\n\t\tAttributeField af = (AttributeField)\n\t\t this.attributeFields.elementAt(i);\n\t\tif (name.equals(af.getAttribute().getName())) \n\t\t return (String) af.getAttribute().getValue();\n\t }\n\t return null; \n\t} else throw new NullPointerException(\"null arg!\");\n }", "public static String getAttributeValue(By locator) throws CheetahException {\n\t\tString value;\n\t\twait_for_element(locator);\n\t\tWebElement element = CheetahEngine.getDriverInstance().findElement(locator);\n\t\tdriverUtils.highlightElement(element);\n\t\tdriverUtils.unHighlightElement(element);\n\t\tvalue = element.getAttribute(\"value\");\n\t\treturn value;\n\t}", "public HbAttributeInternal getAttribute(String name);", "public ByteArrayAttribute getValue() {\n return value;\n }", "String getValue();", "String getValue();", "String getValue();", "String getValue();", "String getValue();", "String getValue();", "String getValue();", "String getValue();", "String getValue();", "String getValue();", "ValueExpression getValueExpression(String attributeName);", "public static String getAttributeValue(String attr_string, String attr_name)\n {\n StringTokenizer st = new StringTokenizer(attr_string, \"^\");\n\n attr_name += \"=\";\n while (st.hasMoreTokens())\n {\n String str = st.nextToken();\n if (str.startsWith(attr_name))\n {\n return str.substring(attr_name.length());\n }\n }\n return \"\";\n }", "Object getAttribute( String attrName ) throws FileSystemException;", "protected ProbeValue getAttribute(String name) {\n if (values != null) {\n return values.get(name);\n } else {\n return null;\n }\n }", "default Attribute getAttribute(AttributeName attributeName) {return (Attribute) attributeName;}", "public String getAttributeValue(final String name) {\n return getAttributeValue(name, \"\");\n }", "String getVal();", "public String getAttribute(By locator, String attribute){\n\t\tString reqAttribute = null;\n\n\t\tWebElement element = findElement(locator);\n\t\ttry {\n\n\t\t\treqAttribute = element.getAttribute(attribute);\n\t\t\tLOGGER.info(\"Step : \"+Thread.currentThread().getStackTrace()[2].getMethodName()+\": Pass and value = \"+reqAttribute);\n\t\t\treturn reqAttribute;\n\n\t\t} catch (Exception e) {\n\t\t\tLOGGER.error(\"Step : \"+Thread.currentThread().getStackTrace()[2].getMethodName()+\": Fail \");\n\t\t\t//e.printStackTrace();\n\t\t\tthrow new NotFoundException(\"Element is not present with locator: \"+locator);\n\t\n\t\t}\n\n\t}", "private String getAttributeValue() {\n\t\tString attributes = \"\";\r\n\t\tfor(int i=0;i< JTable1.getRowCount();i++ ) {\r\n\t\t\tString attributename = ((String) JTable1.getValueAt(i, 0)).trim();\r\n\t\t\tString attributeValue = ((String) JTable1.getValueAt(i, 1)).trim();\r\n\t\t\t//attributeValue.trim();\r\n\t\t\tif(attributeValue != null && attributeValue.length() > 0)\r\n\t\t\tattributes = attributes.trim() + attributename+ \"=\" + attributeValue + \";\";\r\n\t\t\t\r\n\t\t}\r\n\t\tif(attributes.trim().length() > 0)\r\n\t\treturn attributes.substring(0, attributes.length()-1);\r\n\t\treturn attributes;\r\n\t}", "public AttributeInstance getAttribute ( Attribute attribute ) {\n\t\treturn extract ( handle -> handle.getAttribute ( attribute ) );\n\t}", "protected IValue readValueForAttribute(String type, Attribute<? extends IValue> a, ResultSet r) throws SQLException {\n\t\tfinal String colName = getAttributeColNameForType(type, a);\n\t\tswitch (a.getValueSpace().getType()) {\n\t\tcase Integer:\n\t\t\tint valueInd = r.getInt(colName);\n\t\t\treturn a.getValueSpace().getValue(Integer.toString(valueInd));\n\t\tcase Continue:\n\t\t\tdouble valueDouble = r.getDouble(colName);\n\t\t\treturn a.getValueSpace().getValue(Double.toString(valueDouble));\n\t\tcase Nominal:\n\t\tcase Range:\n\t\tcase Order:\n\t\t\tString valueStr = r.getString(colName);\n\t\t\treturn a.getValueSpace().getValue(valueStr);\n\t\tcase Boolean:\n\t\t\tif (r.getBoolean(colName)) {\n\t\t\t\treturn ((BinarySpace)a.getValueSpace()).valueTrue;\n\t\t\t} else {\n\t\t\t\treturn ((BinarySpace)a.getValueSpace()).valueFalse;\n\t\t\t}\n\t\tdefault :\n\t\t\tthrow new RuntimeException(\"unknown entity type \"+a.getValueSpace().getType());\n\t\t}\n\t}", "public final String attributeNameRef ()\r\n {\r\n return _value.xmlTreePath().attribute();\r\n }", "public Attribute fetchAttributeById(int attribId);", "public Number getValue() {\n return (Number) getAttributeInternal(VALUE);\n }", "String getAttributeName(Object attr);", "@NonNull\n String getNecessaryAttribute();", "public String getAttributeInCurrentElement(String attribute) throws ParseException {\n int lessThan = html.lastIndexOf(\"<\", position);\n if (lessThan == -1) {\n throw new ParseException(\"Cannot find attribute in current element\", position);\n }\n position = lessThan;\n\n // See if we are in the closing tag, go to the last opening tag of the same tag\n if (html.charAt(position + 1) == '/') {\n String tag = findCurrentTag(html, position);\n position = lastIndexOfLowUpper(html, \"<\" + tag, position);\n if (position == -1) {\n throw new ParseException(\"Cannot find attribute in current element\", position);\n }\n }\n\n // Find either the end of the tag or the attribute\n Pair<Integer, String> result = indexOfFirstOccurance(html, position, attribute + \"=\", \">\");\n if (result == null) {\n return null;\n }\n if (result.second.equals(\">\")) {\n return null;\n }\n int attrStart = result.first + result.second.length();\n\n // See what type of quotes it is using and find the other quote that surrounds the value\n Character quoteChar = html.charAt(attrStart);\n if (quoteChar != '\"' && quoteChar != '\\'') {\n throw new ParseException(\"Cannot find attribute in current element. (Cannot parse attribute)\", position);\n }\n attrStart++;\n int attrEnd = html.indexOf(quoteChar, attrStart);\n if (attrEnd == -1) {\n throw new ParseException(\"Cannot find attribute in current element. (Cannot parse attribute)\", position);\n }\n return html.substring(attrStart, attrEnd);\n }", "public Object get(AttributeDefinition attribute)\n throws UnknownAttributeException\n {\n if(!builtinAttributes.containsKey(attribute.getName()))\n {\n throw new UnknownAttributeException(attribute.getName()+\n \t\t\" declared in \"+attribute.getDeclaringClass().getName()+\n \t\t\" is not a builtin attribute \");\n }\n Method method = (Method)builtinAttributes.get(attribute.getName());\n try\n {\n return method.invoke(this, new Object[0]);\n }\n catch(Exception e)\n {\n throw new BackendException(\"failed to invoke method for builtin attribute \"+\n attribute.getName(), e);\n }\n }", "public static String getAttributeValue(AttributeList attributeList, AttributeTag tag) {\r\n Attribute attribute = attributeList.get(tag);\r\n String value = (attribute == null) ? null : attribute.getSingleStringValueOrNull();\r\n if (value != null) {\r\n value = value.replace('\\0', ' ').trim();\r\n byte[] vr = attribute.getVR();\r\n \r\n Class<?> vrClass = AttributeFactory.getClassOfAttributeFromValueRepresentation(tag, vr, true, TRANSFER_BUFFER_SIZE, true);\r\n \r\n if (vrClass.equals(TimeAttribute.class)) {\r\n String text = value.replaceFirst(\"\\\\..*\", \"\");\r\n Date date = null;\r\n try {\r\n date = new Date(Long.parseLong(text) * 1000);\r\n }\r\n catch (Exception ex) {\r\n // if there is a badly formatted time, then just return the unprocessed value.\r\n return value;\r\n }\r\n SimpleDateFormat timeFormat = new SimpleDateFormat(\"HH:mm:ss\");\r\n return timeFormat.format(date);\r\n }\r\n \r\n if (vrClass.equals(DateAttribute.class)) {\r\n String text = value.replaceFirst(\"\\\\..*\", \"\");\r\n ParsePosition parsePosition = new ParsePosition(0);\r\n SimpleDateFormat dateParse = new SimpleDateFormat(\"yyyyMMdd\");\r\n Date date = dateParse.parse(text, parsePosition);\r\n if (date == null) {\r\n // if there is a badly formatted date, then just return the value.\r\n return value;\r\n }\r\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"EEE MMM dd, yyyy\");\r\n return dateFormat.format(date);\r\n \r\n }\r\n \r\n if (vrClass.equals(PersonNameAttribute.class)) {\r\n return value.replaceAll(\"\\\\^\", \" \").replaceAll(\" *\", \" \");\r\n }\r\n }\r\n return value;\r\n }", "java.lang.String getValue();" ]
[ "0.7990298", "0.78897315", "0.7854109", "0.7785028", "0.76359326", "0.74018496", "0.736865", "0.736865", "0.736865", "0.72994196", "0.72816145", "0.72078794", "0.7143089", "0.7121298", "0.71057063", "0.70658106", "0.7057684", "0.70170254", "0.70073324", "0.70073324", "0.69935465", "0.696766", "0.69490933", "0.68755996", "0.6871771", "0.68675184", "0.68671036", "0.6846674", "0.68366057", "0.6834964", "0.6809144", "0.6801373", "0.67943573", "0.6772315", "0.6771891", "0.67281926", "0.6718469", "0.67013717", "0.6680418", "0.66506106", "0.6631295", "0.6608357", "0.65992314", "0.65895563", "0.6585708", "0.65309626", "0.65142584", "0.6509171", "0.6505016", "0.64782006", "0.6454574", "0.64542323", "0.6440618", "0.6431498", "0.64090556", "0.64067996", "0.63915896", "0.63896126", "0.6373185", "0.63655424", "0.63614345", "0.63527846", "0.6349469", "0.6348869", "0.63343334", "0.6334075", "0.6313151", "0.6312833", "0.62981915", "0.62977684", "0.62977684", "0.62977684", "0.62977684", "0.62977684", "0.62977684", "0.62977684", "0.62977684", "0.62977684", "0.62977684", "0.62832814", "0.6273177", "0.6265771", "0.62647253", "0.6262265", "0.6256573", "0.6252922", "0.62271386", "0.622118", "0.62195194", "0.62083524", "0.6205702", "0.62032884", "0.6191475", "0.61823183", "0.6176377", "0.61726874", "0.61716837", "0.61643136", "0.61547476" ]
0.706686
16
A flag indicating that this is an optional requirement.
boolean isOptional();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected boolean isOptional()\n {\n return false;\n }", "public boolean isOptional() {\n return optional;\n }", "public boolean isOptional() {\n\t\treturn optional;\n\t}", "public boolean isOptional() {\n return m_optional;\n }", "public boolean isOptional() {\n\t\treturn _optional;\n\t}", "public boolean isRequirementUnfulfilled() {\n return false;\n }", "public Boolean isOptional() {\n return this.optional;\n }", "boolean optional();", "public boolean isOptional() {\n return isOptional;\n }", "public Boolean getOptional() {\n return this.optional;\n }", "public boolean isRequired()\n {\n return this.isRequired;\n }", "public void setOptional(boolean optional) {\n\t\tthis.optional = optional;\n\t}", "public void setOptional(Boolean optional) {\n this.optional = optional;\n }", "public boolean isRequired()\n {\n if(_attrDef.isIndexed() && _isSingleIndexedCriterion())\n {\n return true;\n }\n \n return _attrDef.isMandatory();\n }", "public boolean isRequired() {\r\n return required;\r\n }", "public boolean isRequired() {\r\n return required;\r\n }", "public boolean isRequired() {\r\n return required;\r\n }", "boolean isMandatory();", "public void setRequired(boolean value) {\r\n this.required = value;\r\n }", "public boolean isRequired () {\n return required;\n }", "public boolean isRequired() {\n return required;\n }", "public boolean isMandatory() {\n return mandatory;\n }", "public boolean isMandatory() {\n return mandatory;\n }", "public void setRequired(boolean required)\n {\n this.isRequired = required;\n }", "boolean getRequired();", "boolean getRequired();", "boolean getRequired();", "public void setRequired(boolean required) {\r\n this.required = required;\r\n }", "public boolean isMandatory() {\n return mandatory;\n }", "public void setRequired(boolean required);", "public void setRequired (boolean required) {\n this.required = required;\n }", "public boolean isRequired() {\n return field.isRequired();\n }", "public boolean isRequired() {\r\n\t\treturn required;\r\n\t}", "public void setRequired(boolean required) {\n this.required = required;\n }", "public boolean isRequired()\n\t{\n\t\treturn required;\n\t}", "public void setRequired(boolean required) {\r\n\t\tthis.required = required;\r\n\t}", "public final boolean isRequired() {\n\t\treturn JsUtils.getNativePropertyBoolean(this, \"required\");\n\t}", "public boolean isSetRequirement() {\n return this.requirement != null;\n }", "boolean isSetRequired();", "boolean hasOptionalValue();", "public boolean isRequired();", "void setRequired(boolean required);", "public boolean isRequired() {\n \treturn model.isRequired();\n }", "@java.lang.Override\n public boolean getRequired() {\n return required_;\n }", "@java.lang.Override\n public boolean getRequired() {\n return required_;\n }", "public boolean isRequire() {\n return require;\n }", "boolean isRequired();", "boolean isRequired();", "boolean isRequired();", "public void setMandatory(boolean mandatory)\n {\n this.mandatory = mandatory;\n performFlags();\n }", "public void setRequired(boolean r)\n\t{\n\t\trequiring = r;\n\t}", "public boolean isIsRequired() {\n return isRequired;\n }", "public boolean hasOptionalValue() {\n return ((bitField0_ & 0x00000800) == 0x00000800);\n }", "public boolean hasOptionalValue() {\n return ((bitField0_ & 0x00000400) == 0x00000400);\n }", "@Override\n\tpublic void setMandatory(boolean mandatory) {\n\t\t\n\t}", "Argument<T> optional(boolean optional);", "public boolean isRequired(String label)\n {\n return false;\n }", "public Builder setRequired(boolean value) {\n\n required_ = value;\n bitField0_ |= 0x00000002;\n onChanged();\n return this;\n }", "@SuppressWarnings(\"unused\") // Used by markdown template.\n public String getMandatoryString() {\n return mandatory ? \"required\" : \"optional\";\n }", "@SuppressWarnings(\"unused\") // Used by markdown template.\n public String getMandatoryString() {\n return mandatory ? \"required\" : \"optional\";\n }", "@javax.annotation.Nullable\n @ApiModelProperty(value = \"Define if the task is required.\")\n @JsonProperty(JSON_PROPERTY_IS_REQUIRED)\n @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)\n\n public Boolean getIsRequired() {\n return isRequired;\n }", "public boolean isSetRequires()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().find_attribute_user(REQUIRES$28) != null;\r\n }\r\n }", "public void setIsRequired(boolean value) {\n this.isRequired = value;\n }", "public static boolean isRequired()\n\t{\n\t\treturn AngularPageConfigurator.required;\n\t}", "public boolean isMaybeAbsent() {\n checkNotUnknown();\n return (flags & ABSENT) != 0;\n }", "public void setMandatory(boolean value) {\n this.mandatory = value;\n }", "public boolean isFrankingRequired() {\n\t\treturn false;\n\t}", "public boolean hasReqJson() {\n return fieldSetFlags()[2];\n }", "public final native void setRequired(boolean required) /*-{\n\t\tthis.required = required;\n\t}-*/;", "default boolean renderRequired() {\n // if (!isPrimaryKey() && isRequired() && ) constraints.add(JdlUtils.validationRequired());\n return isRequired() && !(getName().equals(\"id\") && getType().equals(JdlFieldEnum.UUID));\n }", "Rule FieldReq() {\n // No effect on the value stack\n return FirstOf(\"required \", \"optional \");\n }", "org.apache.xmlbeans.XmlBoolean xgetRequired();", "private static void addRequiredOption(Options options, String opt, String longOpt, boolean hasArg, String description) {\n Option option = new Option(opt, longOpt, hasArg, description);\n option.setRequired(true);\n options.addOption(option);\n }", "public final void setOptional() {_occ.setOptional();}", "public void setNotSupplied(final boolean value) {\n this.notSupplied = value;\n }", "public PropertySpecBuilder<T> required(boolean required)\n {\n Preconditions.checkArgument(this.required == null, \"required flag already set\");\n this.required = required;\n\n return this;\n }", "public boolean isRequiredParam() {\n return this.isRequiredParam;\n }", "protected final Tool missingRequiredOption(String option) {\n stderr.format(\"missing required option: '%s'%n\", option);\n return doNothing();\n }", "@Override\n\tpublic boolean isPresent() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isRequiredIndicatorVisible() {\n\t\treturn false;\n\t}", "public boolean validateRequirement_NoAssociations(Requirement requirement, DiagnosticChain diagnostics, Map<Object, Object> context) {\n\t\treturn requirement.NoAssociations(diagnostics, context);\n\t}", "@Override\n\tpublic int isOrNoSet() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic boolean isMissing(final Attribute att) {\n\t\treturn false;\n\t}", "public void setIsRequired(final boolean attrIsRequired) {\r\n this.required = attrIsRequired;\r\n }", "public boolean getNotSupplied() {\n return notSupplied;\n }", "public void setRequire(boolean require) {\n this.require = require;\n }", "public boolean hasReqMessage() {\n return fieldSetFlags()[1];\n }", "public Boolean getRequired() {\n return fieldRequired;\n }", "public TerritoryCardRequirementBonus(boolean needRequirement) {\r\n\t\tsuper(\"TerritoryCardRequirementBonus\");\r\n\t\tthis.needRequirement = needRequirement;\r\n\t}", "public boolean isNotNullAcquiringBackEnd() {\n return genClient.cacheValueIsNotNull(CacheKey.acquiringBackEnd);\n }", "public boolean isSetReq() {\n return this.req != null;\n }", "public boolean isSetReq() {\n return this.req != null;\n }", "public boolean isSetReq() {\n return this.req != null;\n }", "public boolean isSetReq() {\n return this.req != null;\n }", "public boolean hasMinRequirements() {\n\t\t// FIXME MIN input\n\t\treturn true;\n\t}", "public boolean validateRequirement_RequirementFormalizationIsRequired(Requirement requirement, DiagnosticChain diagnostics, Map<Object, Object> context) {\n\t\treturn requirement.RequirementFormalizationIsRequired(diagnostics, context);\n\t}", "public boolean isNone() {\n if (var == null)\n return (flags & (PRIMITIVE | ABSENT | UNKNOWN)) == 0 && num == null && str == null && object_labels == null && getters == null && setters == null;\n else\n return (flags & (ABSENT | PRESENT_DATA | PRESENT_ACCESSOR)) == 0;\n }", "public boolean getVariableRequired() {\r\n return relaxed;\r\n }", "public boolean hasRejected() {\n return fieldSetFlags()[19];\n }", "public boolean needsOption(Fw fw) {\n\t\treturn false;\n\t}" ]
[ "0.7162309", "0.7079663", "0.6974579", "0.696027", "0.6957741", "0.695229", "0.67824084", "0.67810464", "0.67042214", "0.6689392", "0.6650794", "0.6572802", "0.6556069", "0.651008", "0.64718705", "0.6438954", "0.6438954", "0.6430622", "0.6429063", "0.6426849", "0.6401325", "0.63853467", "0.63853467", "0.63729167", "0.6372075", "0.6372075", "0.6372075", "0.63485694", "0.6340429", "0.63351977", "0.6326678", "0.6316962", "0.63113815", "0.6310715", "0.63075244", "0.6281657", "0.6263137", "0.6253216", "0.6236412", "0.62215376", "0.6195869", "0.6179557", "0.61464256", "0.6136538", "0.61113703", "0.61065406", "0.6104175", "0.6104175", "0.6104175", "0.6103216", "0.6094874", "0.60936964", "0.60453427", "0.60442275", "0.6008189", "0.59873635", "0.5968677", "0.59672815", "0.5950334", "0.5950334", "0.59340566", "0.5925189", "0.5889102", "0.58803225", "0.5877671", "0.5876578", "0.5857516", "0.58434737", "0.58294314", "0.58110446", "0.5806448", "0.5743227", "0.5731187", "0.5710116", "0.5690001", "0.5688339", "0.5676438", "0.56758803", "0.564534", "0.5644536", "0.5637362", "0.56140727", "0.5610378", "0.5588893", "0.5574218", "0.55702263", "0.5564077", "0.55575514", "0.5556583", "0.5531991", "0.55291086", "0.55291086", "0.55291086", "0.55291086", "0.55268306", "0.55058515", "0.5494524", "0.54828095", "0.5473145", "0.54727185" ]
0.6712317
8
Declaration of the velocities list
@Override public List<Velocity> initialBallVelocities() { List<Velocity> ballsVelocities = new ArrayList<Velocity>(); //Ball's Velocities int y = -8; for (int i = 0; i < 5; i++) { ballsVelocities.add(new Velocity(i + 1, y)); ballsVelocities.add(new Velocity(-1 * (i + 1), y)); y += 1; } return ballsVelocities; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<Velocity> initialBallVelocities();", "public List<Velocity> initialBallVelocities() {\r\n List<Velocity> velocities = new ArrayList<Velocity>();\r\n velocities.add(Velocity.fromAngleAndSpeed(330, 8));\r\n velocities.add(Velocity.fromAngleAndSpeed(360, 8));\r\n velocities.add(Velocity.fromAngleAndSpeed(30, 8));\r\n return velocities;\r\n }", "@Override\r\n public List<Velocity> initialBallVelocities() {\r\n List<Velocity> velocityList = new ArrayList<Velocity>();\r\n velocityList.add(Velocity.fromAngleAndSpeed(225, 5));\r\n velocityList.add(Velocity.fromAngleAndSpeed(315, 5));\r\n return velocityList;\r\n }", "public List<Velocity> getVelocitiesForLevel() {\n List<Velocity> listOfVelocities = new ArrayList<>();\n String velocities = this.map.get(\"ball_velocities\");\n // create an array of velocities\n String[] listOfVelocitiesString = velocities.split(\" \");\n int size = listOfVelocitiesString.length;\n // run over all of the possible velocities\n for (int i = 0; i < size; i++) {\n // in every velocity split it to speed and angel\n String[] oneVel = listOfVelocitiesString[i].split(\",\");\n Velocity v = Velocity.fromAngleAndSpeed(Integer.parseInt(oneVel[0]), Integer.parseInt(oneVel[1]));\n // add the veloctiy to the list of velocities\n listOfVelocities.add(v);\n }\n return listOfVelocities;\n }", "public List<Velocity> initialBallVelocities() {\n List<Velocity> velocityList = new ArrayList<>();\n for (int i = 0; i < this.numberOfBalls; i++) {\n velocityList.add(new Velocity(4, 4));\n }\n this.ballsVelocities = velocityList;\n return velocityList;\n }", "public List<Velocity> initialBallVelocities() {\n List<Velocity> velocityList = new ArrayList<Velocity>();\n for (int j = -50; j <= 50; j += 10) {\n if (j == 0) {\n continue;\n }\n velocityList.add(Velocity.fromAngleAndSpeed(j, 4));\n }\n return velocityList;\n }", "public int[] getCurrentMotorVelocities()\n {\n return finchController.getCurrentMotorVelocities();\n }", "protected void calcVelocity()\n\t{}", "@Basic @Raw\n public double[] getVelocity(){\n \t return this.velocity.getVelocity();\n }", "private float[] generateParticleVelocities()\n {\n float velocities[] = new float[mEmitRate * 3];\n for ( int i = 0; i < mEmitRate * 3; i +=3 )\n {\n Vector3f nexVel = getNextVelocity();\n velocities[i] = nexVel.x;\n velocities[i+1] = nexVel.y;\n velocities[i+2] = nexVel.z;\n }\n return velocities;\n }", "public static void initVelocity() {\n }", "public double getVelocity() {\n return mV;\n }", "public double[] getCurrentMotorVelocitiesInCentimetersPerSecond()\n {\n return finchController.getCurrentMotorVelocitiesInCentimetersPerSecond();\n }", "public Velocity getVelocity() {\r\n return this.vel;\r\n }", "public float getVerticalVelocity( )\r\n {\r\n return this.v_velocity;\r\n }", "public Vector2D getVelocity ();", "public Vector2D getVelocity()\n\t{\n\t\treturn velocity;\n\t}", "public Point2D.Float getVelocity() {\r\n\t\treturn velocity;\r\n\t}", "public Velocity getVelocity() {\n return this.v;\n\n }", "public Vector2f getVelocity(){\n\t\treturn velocity.copy();\n\t}", "void setVelocity(int vel) {\n\t\tthis.velocity = vel;\n\t}", "public final Vector2D getVelocity() {\n return velocity;\n }", "public Velocity getVelocity() {\n return this.velocity;\n }", "public org.bukkit.util.Vector getVelocity ( ) {\n\t\treturn invokeSafe ( \"getVelocity\" );\n\t}", "public Vector2f getVelocity()\n\t{\n\t\treturn this.vel;\n\t}", "private void doVels() {\n\t\tthis.launchPerVel = Math.sqrt((2d * body.getGm() * this.launchApoAlt) / (this.launchPerAlt * this.a));\n\t\tthis.launchApoVel = Math.sqrt((2d * body.getGm() * this.launchPerAlt) / (this.launchApoAlt * this.a));\n\t}", "public double getVelocity() {\n\t\treturn velocity.getlength();\n\t}", "public void setVelocity(double value) {\n _avTable.set(ATTR_VELOCITY, value);\n }", "double getVy() { return vel[1]; }", "public double getVelocity() {\n return _avTable.getDouble(ATTR_VELOCITY, 0.0);\n }", "private void calculateVelocity() {\n\t\tthis.velocity = Math.sqrt((this.roughRange *this.roughRange * this.gravity_Math)\n\t\t\t\t/ ((this.roughRange * Math.sin(2 * angle)) + (2\n\t\t\t\t\t\t* Constant.heroBaseHeight * Math.cos(angle) * Math\n\t\t\t\t\t\t\t.cos(angle))));\n\t\t\n\t}", "public static void main(String[] args) {\r\n\r\n ArrayList<Point> points = new ArrayList<>();\r\n for (int i = 0; i<10; i++){\r\n points.add(new Point(Math.random()*i, i));\r\n }\r\n\r\n Spline spline = new BSpline(points);\r\n\r\n VelocitiesAdapter vs = new VelocitiesAdapter(spline, 15, 0.5);\r\n System.out.println(vs.getNumPoints());\r\n\r\n // Print velocities:\r\n for (int i : vs.iterate()){\r\n double[] ves = vs.velocity(i, 50);\r\n System.out.println(\"Right speed: \" + ves[0]);\r\n System.out.println(\"Left speed: \" + ves[1] + \"\\n\");\r\n }\r\n\r\n }", "public Velocity getVelocity() {\r\n return this.v.getVelocity();\r\n }", "public void setVelocity(Velocity v) {\r\n this.vel = v;\r\n }", "public void setVelocity(Velocity v) {\n this.velocity = v;\n }", "public void setVelocity(Velocity v) {\n this.velocity = v;\n }", "public void setVelocity(Velocity v) {\n this.velocity = v;\n }", "public double getVelocity()\n {\n return velocity * FPS;\n }", "private void updateVelocity() {\n\t \t//Update x velocity\n\t \tif (getNode().getTranslateX() > MAX_SPEED_X) {\n\t \t\tsetvX(MAX_SPEED_X);\n\t \t} else if (getNode().getTranslateX() < -MAX_SPEED_X) {\n\t \t\tsetvX(-MAX_SPEED_X);\n\t } else {\n\t \t\tsetvX(getNode().getTranslateX());\n\t \t}\n\n\t \t//Update x velocity\n\t \tif (getNode().getTranslateY() > MAX_SPEED_Y) {\n\t \t\tsetvY(MAX_SPEED_Y);\n\t \t} else if (getNode().getTranslateY() < -MAX_SPEED_Y) {\n\t \t\tsetvY(-MAX_SPEED_Y);\n\t \t} else {\n\t \t\tsetvY(getNode().getTranslateY());\n\t \t}\n\t }", "public void configVelocityControl() {\n leftDrive.configTeleopVelocity();\n rightDrive.configTeleopVelocity();\n }", "public double getVelocity() {\n \treturn this.currentSpeed;\n }", "public void addVelocity(double var1, double var3, double var5)\n {}", "static int getVelocity(){return currentVelocity;}", "public Object[] getList() {\n\t\treturn new Object[]{pitch, duration, velocity};\n\t}", "double getVz() { return vel[2]; }", "@Override\n\tpublic double calculateVelocity() {\n\t\tdouble result = distance / time + velocitySame - velocityReverse;\n\t\treturn result;\n\t}", "public Vector3d getVelocity() {\n return getMotion().getVelocity();\n }", "public float getVerticalSpeed() { return VerticalSpeed; }", "private double getVelocity() {\n \tif (currentState == DriveState.accelerating) {\n \t\treturn acceleration * timer.get();\n \t}\n \telse if (currentState == DriveState.cruisung) {\n \t\treturn maxVelocity;\n \t}\n \telse if (currentState == DriveState.decelerating) {\n \t\treturn maxVelocity - acceleration * (timer.get());\n \t}\n \t\t\n \treturn 0;\n }", "double getVx() { return vel[0]; }", "public Point2D.Float getVelocityPPT() {\n return velocityPPT;\n }", "public double getVelocity() {\n return 360000./(projDensity * projRadius);\n }", "public interface VelocityListener {\n\n /**\n * Called when a new velocity value (in mm/s) has been computed.\n *\n * @param velocityValue The new velocity value that has been computed.\n */\n void addVelocityValue(int velocityValue);\n}", "@Override\n public Point3D getValue() {\n return velocity;\n }", "public void setVelocity(double x, double y) {\n velocity[X] = x;\n velocity[Y] = y;\n //velocity[Z] = z;\n }", "public int getVelocity()\n\t{\n\t\treturn logDx;\n\t}", "public void setVelocity () {\n\t\t\tfb5.getCommunicationModule().setClientHandler(null);\n\t\t\tif(state == BotMove.SHARP_RIGHT){\n\t\t\t\tfb5.setVelocity((byte)200,(byte)0);\n\t\t\t}\n\t\t\telse if(state == BotMove.LEFT){\n\t\t\t\tfb5.setVelocity((byte)100,(byte)200);\n\t\t\t}\n\t\t\telse if(state == BotMove.SOFT_RIGHT){\n\t\t\t\tfb5.setVelocity((byte)200,(byte)100);\n\t\t\t}\n\t\t\telse if(state == BotMove.FORWARD){\n\t\t\t\twt.turning = false;\n\t\t\t\tLog.d(TAG,\"Setting forward velocity\");\n\t\t\t\tfb5.setVelocity((byte)150,(byte)150);\n\t\t\t\t\n\t\t\t}\n\t\t\telse if(state == BotMove.STOP){\n\t\t\t\twt.turning = false;\n\t\t\t\tfb5.setVelocity((byte)0,(byte)0);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tfb5.moveForward();\n\t\t\tfb5.accModifiedStart();\n\t\t}", "public void setVelocity(Velocity velocity) {\n this.v = velocity;\n }", "void addVelocityValue(int velocityValue);", "List<double[]> getVerticalDoors();", "public void updateVelocity(){\r\n if (getPosition().x <= 0 || getPosition().x >= GameBoard.MAX_X) {\r\n setVelocity(getVelocity().add(getVelocity().mul(reverse)));\r\n }\r\n }", "public double getCurrentVelocity( )\r\n {\r\n return Math.sqrt( this.h_velocity * this.h_velocity + this.v_velocity * this.v_velocity );\r\n }", "@Override\n public double getVelocity()\n {\n final String funcName = \"getVelocity\";\n double velocity = encoder.getVelocity() * encoderSign / 60.0;\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.API);\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.API, \"=%f\", velocity);\n }\n\n return velocity;\n }", "public Vector3f getLinearVelocity() {\r\n\t\treturn linearVelocity;\r\n\t}", "public void update() {\n // Update velocity\n velocity.add(acceleration);\n // Limit speed\n velocity.limit(maxspeed);\n position.add(velocity);\n // Reset accelertion to 0 each cycle\n acceleration.mult(0);\n }", "public void update() {\n // Update velocity\n velocity.add(acceleration);\n // Limit speed\n velocity.limit(maxspeed);\n position.add(velocity);\n // Reset accelertion to 0 each cycle\n acceleration.mult(0);\n }", "public void setVerticalVelocity( final float velocity )\r\n {\r\n this.v_velocity = velocity;\r\n }", "static void resetVelocity(){currentVelocity = INITIAL_SPEED;}", "public double getYVel() {\n return this.yVel;\n }", "public void updateVelocity (Body[] bodies, int dt) {\n this.updateAcceleration(bodies);\n this.vx += 0.5 * (this.ax + this.axplusone) * dt;\n this.vy += 0.5 * (this.ay + this.ayplusone) * dt;\n }", "public void setVelocity(float x, float y)\n\t{\n\t\tthis.vel.x = x;\n\t\tthis.vel.y = y;\n\t}", "public Vector2d getVe() {\n return ve;\n }", "public void setVelocity(String value) {\n setVelocity(Format.toDouble(value));\n }", "public double getVelocity() {\n return spark_encoder.getVelocity();\n }", "public void update() {\n vel.add(acc);\n vel.limit(max_vel);\n loc.add(vel);\n acc.mult(0);\n }", "public double getY_vel() {\n return this.y_vel;\n }", "public void setVelocidad(int vel)\r\n\t{\r\n\t\tvelocidad=vel;\r\n\t}", "public Vector3f getAngularVelocity() {\n return Converter.convert(rBody.getAngularVelocity(tempVec));\n }", "@NativeType(\"ovrVector3f\")\n public OVRVector3f LinearVelocity() { return nLinearVelocity(address()); }", "@Override\n\tpublic Vector2 getLinearVelocity() {\n\t\treturn body.getLinearVelocity();\n\t}", "public double getVelocityY() {\n\t\treturn velocity.getY();\n\t}", "java.util.List<org.landxml.schema.landXML11.SpeedsDocument.Speeds> getSpeedsList();", "private void configVelocityControl() {\n //config remote sensors\n //sets the sensor to be a quad encoder, sets our feedback device to be that sensor\n m_masterMotor.configSelectedFeedbackSensor(TalonSRXFeedbackDevice.CTRE_MagEncoder_Relative, RobotMap.PID_PRIMARY_SLOT, RobotMap.LAUNCHER_CONFIG_TIMEOUT_MS);\n\n //zero the encoders on every init\n zeroEncoder();\n\n //sets whether our motor is inverted\n //this is currently false but can be switched based on testing\n m_masterMotor.setInverted(RobotMap.LAUNCHER_MASTER_INVERTED);\n m_masterMotor.setSensorPhase(RobotMap.LAUNCHER_MASTER_INVERTED);\n\n //this sets how often we pull data from our sensor\n m_masterMotor.setStatusFramePeriod(StatusFrame.Status_2_Feedback0, RobotMap.LAUNCHER_FEEDBACK_PERIOD_MS, RobotMap.LAUNCHER_CONFIG_TIMEOUT_MS);\n\n //this configs the deadband for the PID output. Any output with an absolute value less than this will be treated as zero\n m_masterMotor.configNeutralDeadband(0, RobotMap.LAUNCHER_CONFIG_TIMEOUT_MS);\n\n //this sets the peak output for our motor controller.\n m_masterMotor.configPeakOutputForward(RobotMap.LAUNCHER_PID_PEAK_OUTPUT, RobotMap.LAUNCHER_CONFIG_TIMEOUT_MS);\n //this does the same thing but for the reverse direction\n m_masterMotor.configPeakOutputReverse(0, RobotMap.LAUNCHER_CONFIG_TIMEOUT_MS);\n \n //sets the period of the velocity sample\n //effectively this defines the amount of time used to calculate the velocity\n m_masterMotor.configVelocityMeasurementPeriod(RobotMap.VELOCITY_MEASUREMENT_PERIOD, RobotMap.LAUNCHER_CONFIG_TIMEOUT_MS);\n\n //Sets the number of samples used in the rolling average for calculating velocity\n m_masterMotor.configVelocityMeasurementWindow(RobotMap.LAUNCHER_VELOCITY_MEASUREMENT_WINDOW, RobotMap.LAUNCHER_CONFIG_TIMEOUT_MS);\n \n //set p, i, d, f values\n //the zero is the PID slot, in this case it is zero for the primary PID\n //the launcher has no auxillary or turning PID control\n m_masterMotor.config_kP(RobotMap.PID_PRIMARY_SLOT, RobotMap.LAUNCHER_P);\n m_masterMotor.config_kI(RobotMap.PID_PRIMARY_SLOT, RobotMap.LAUNCHER_I);\n m_masterMotor.config_kD(RobotMap.PID_PRIMARY_SLOT, RobotMap.LAUNCHER_D);\n m_masterMotor.config_kF(RobotMap.PID_PRIMARY_SLOT, RobotMap.LAUNCHER_F);\n\n //this sets the acceptable amount of Integral error, where if the absolute accumulated error exceeds this ammount, it resets to zero\n //this is designed to prevent the PID from going crazy if we move too far from our target\n m_masterMotor.config_IntegralZone(RobotMap.PID_PRIMARY_SLOT, RobotMap.LAUNCHER_I_ZONE, RobotMap.LAUNCHER_CONFIG_TIMEOUT_MS);\n\n //sets the max output of the motor specifically within closed loop control\n m_masterMotor.configClosedLoopPeakOutput(RobotMap.PID_PRIMARY_SLOT, RobotMap.LAUNCHER_PID_PEAK_OUTPUT, RobotMap.LAUNCHER_CONFIG_TIMEOUT_MS);\n\n //this configures an allowable error in closed loop control\n //any error less than this is treated as zero.\n m_masterMotor.configAllowableClosedloopError(RobotMap.PID_PRIMARY_SLOT, RobotMap.LAUNCHER_ACCEPTABLE_ERROR, RobotMap.LAUNCHER_CONFIG_TIMEOUT_MS);\n\n //configures the period for closed loop calculations in MS \n //should be increased if the can bus is haveing issues\n m_masterMotor.configClosedLoopPeriod(RobotMap.PID_PRIMARY_SLOT, RobotMap.LAUNCHER_CLOSED_LOOP_PERIOD_MS, RobotMap.LAUNCHER_CONFIG_TIMEOUT_MS);\n\n //configures ramp speed\n m_masterMotor.configOpenloopRamp(RobotMap.LAUNCHER_OPEN_LOOP_RAMP_TIME_S);\n m_masterMotor.configClosedloopRamp(0);\n\n //sets our closed loop control to use our primary PID slot\n m_masterMotor.selectProfileSlot(RobotMap.PID_PRIMARY_SLOT, 0);\n }", "public int getXVelocity()\r\n {\r\n return xVel;\r\n }", "public float getMotor_lin_target_velocity() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readFloat(__io__address + 128);\n\t\t} else {\n\t\t\treturn __io__block.readFloat(__io__address + 120);\n\t\t}\n\t}", "public void setVelocity(double x, double y) {\n velocityX = x;\n velocityY = y;\n }", "@Basic\n\tpublic double getYVelocity(){\n\t\treturn this.yVelocity;\n\t}", "public boolean hasVelocityInformation() {\n return _avTable.exists(ATTR_VELOCITY);\n }", "@Override\n\tpublic float getAngularVelocity() {\n\t\treturn body.getAngularVelocity();\n\t}", "public void addVelocity(double x, double y) {\n\t\tvelocity.add(x, y);\n\t}", "void update() {\n vel.add(acc);\n vel.limit(max_vel);\n loc.add(vel);\n // Multiplying by 0 sets the all the components to 0\n acc.mult(0);\n}", "public void setVelocity(double x, double y, double z) {\n/* 72 */ this.motionX = x;\n/* 73 */ this.motionY = y;\n/* 74 */ this.motionZ = z;\n/* */ \n/* 76 */ if (this.prevRotationPitch == 0.0F && this.prevRotationYaw == 0.0F) {\n/* */ \n/* 78 */ float var7 = MathHelper.sqrt_double(x * x + z * z);\n/* 79 */ this.prevRotationYaw = this.rotationYaw = (float)(Math.atan2(x, z) * 180.0D / Math.PI);\n/* 80 */ this.prevRotationPitch = this.rotationPitch = (float)(Math.atan2(y, var7) * 180.0D / Math.PI);\n/* */ } \n/* */ }", "private void UpdateVelocity()\n\t{\n\t\tVector2 currentPosition = new Vector2(parent.transform.position);\n\t\tVector2 newVelocity = Vector2.Add(currentPosition,previousPosition.negate());\n\t\tpreviousPosition = currentPosition;\n\t\t\n\t\tfloat currentRotation = parent.transform.rotation;\n\t\tangularVelocity = currentRotation - previousRotation;\n\t\tpreviousRotation = currentRotation;\n\t\t\n\t\tvelocity = newVelocity;\n\t}", "@Override\n public void receivedVelocity(Twist velocity) {\n synchronized(_velocityListeners) {\n if (_velocityListeners.isEmpty()) return;\n }\n \n try {\n // Construct message\n Response resp = new Response(UdpConstants.NO_TICKET, DUMMY_ADDRESS);\n resp.stream.writeUTF(UdpConstants.COMMAND.CMD_SEND_VELOCITY.str);\n UdpConstants.writeTwist(resp.stream, velocity);\n \n // Send to all listeners\n synchronized(_velocityListeners) {\n _udpServer.bcast(resp, _velocityListeners.keySet());\n }\n } catch (IOException e) {\n throw new RuntimeException(\"Failed to serialize camera\");\n }\n }", "List<? extends Particle> update(double timeDelta);", "public int[] setMotorVelocities(final boolean[] motorMask, final double[] motorVelocities)\n {\n return finchController.setMotorVelocities(motorMask, motorVelocities);\n }", "@SuppressWarnings(\"unused\")\n \tpublic static double Distance(\tArrayList<Float> x_accel, \n \t\t\t\t\t\t\t\t\tArrayList<Float> y_accel, \n \t\t\t\t\t\t\t\t\tArrayList<Float> z_accel,\n \t\t\t\t\t\t\t\t\tArrayList<Float> t)\n \t{\n \t\tArrayList<Float> dx_veloc = new ArrayList<Float>(); dx_veloc.add(0f);\n \t\tArrayList<Float> dy_veloc = new ArrayList<Float>(); dy_veloc.add(0f);\n \t\tArrayList<Float> dz_veloc = new ArrayList<Float>(); dz_veloc.add(0f);\n \t\t\n \t\tArrayList<Float> x_veloc = new ArrayList<Float>(); x_veloc.add(0f);\n \t\tArrayList<Float> y_veloc = new ArrayList<Float>(); y_veloc.add(0f);\n \t\tArrayList<Float> z_veloc = new ArrayList<Float>(); z_veloc.add(0f);\n \t\t\n \t\t//compose velocity\n \t\tint I = x_accel.size();\n \t\tfloat dt;\n \t\tSystem.out.println(\"Composing Velocity...\\n\");\n \t\tfor( int i = 1; i < I; i++ )\n \t\t{\t\n \t\t\t//x'_i = x''_(i-1) * dt\n \t\t\t//y'_i = y''_(i-1) * dt\n \t\t\t//z'_i = z''_(i-1) * dt\n \t\t\tdt = t.get(i) - t.get(i-1);\n \t\t\tdx_veloc.add( x_accel.get(i-1) * dt);\n \t\t\tdy_veloc.add( y_accel.get(i-1) * dt);\n \t\t\tdz_veloc.add( z_accel.get(i-1) * dt);\n \t\t\tSystem.out.println(\"Step: \" + i + \"\\n\\tv_x: \"+ dx_veloc.get(i) + \"\\n\\tv_y: \" + dy_veloc.get(i) + \"\\n\\tv_z: \" + dz_veloc.get(i));\n \t\t}\n \t\tfloat temp = 0f;\n \t\tfor(float d : dx_veloc)\n \t\t\t{\n \t\t\t\ttemp += d;\n \t\t\t\tx_veloc.add(temp);\n \t\t\t}\n \t\t\n \t\ttemp = 0;\n \t\tfor(float d : dy_veloc)\n \t\t\t{\n \t\t\t\ttemp += d;\n \t\t\t\ty_veloc.add(temp);\n \t\t\t}\n \t\t\n \t\ttemp = 0;\n \t\tfor(float d : dz_veloc)\n \t\t\t{\n \t\t\t\ttemp += d;\n \t\t\t\tz_veloc.add(temp);\n \t\t\t}\n \t\t\n \t\tArrayList<Float> dx_disp = new ArrayList<Float>(); dx_disp.add(0f); dx_disp.add(0f);\n \t\tArrayList<Float> dy_disp = new ArrayList<Float>(); dy_disp.add(0f); dy_disp.add(0f);\n \t\tArrayList<Float> dz_disp = new ArrayList<Float>(); dz_disp.add(0f); dz_disp.add(0f);\n \t\t\n \t\tArrayList<Float> x_disp = new ArrayList<Float>(); x_disp.add(0f); x_disp.add(0f);\n \t\tArrayList<Float> y_disp = new ArrayList<Float>(); y_disp.add(0f); y_disp.add(0f);\n \t\tArrayList<Float> z_disp = new ArrayList<Float>(); z_disp.add(0f); z_disp.add(0f);\n \t\t\n \t\t//compose displacement\n \t\tI = t.size();\n \t\tfor( int i = 2; i < I; i++ )\n \t\t{\t\n \t\t\t//x_i = x'_(i-1) * dt\n \t\t\t//y_i = y'_(i-1) * dt\n \t\t\t//z_i = z'_(i-1) * dt\n \t\t\tdt = t.get(i) - t.get(i-1);\n \t\t\tdx_disp.add( x_veloc.get(i-1) * dt);\n \t\t\tdy_disp.add( y_veloc.get(i-1) * dt);\n \t\t\tdz_disp.add( z_veloc.get(i-1) * dt);\n \t\t}\n \t\t\n \t\t//compose total displacement\n \t\tfloat distance = 0;\n \n \t\tif( true/*Euclidean_Distance_Mode */)\n \t\t{\n \t\t\t//vector addition, constructing R\n \t\t\tSystem.out.println(\"Composing R...\\n\");\n \t\t\tfloat r[] = new float[3]; //[x, y, z]\n \t\t\tfor( int i = 0; i < I; i++)\n \t\t\t{\n \t\t\t\tr[0] += dx_disp.get(i);\n \t\t\t\tr[1] += dy_disp.get(i);\n \t\t\t\tr[2] += dz_disp.get(i);\n \t\t\t\tSystem.out.println(\"Step: \" + i + \"\\n\\tr_x: \"+ r[0] + \"\\n\\tr_y: \" + r[1] + \"\\n\\tr_z: \" + r[2]);\n \t\t\t}\n \t\t\n \t\t\t//Distance formula, constructing D\n \t\t\t//D = sqrt(X^2 + Y^2 + Z^2)\n \t\t\tdistance = (float) Math.sqrt( \n \t\t\t\t\t\t\tMath.pow(r[0], 2) + \n \t\t\t\t\t\t\tMath.pow(r[1], 2) +\n \t\t\t\t\t\t\tMath.pow(r[2], 2)\n \t\t\t\t\t\t\t);\n \t\t\treturn distance;\n \t\t}\n \n \t\telse if ( false /*Path_Distance_Mode */)\n \t\t{\n \t\t\t//sum up individual distances, constructing D\n \t\t\tfor( int i = 0; i < I; i++)\n \t\t\t{\n \t\t\t\t//dD = sqrt( dx^2 + dy^2 + dz^2 )\n \t\t\t\tdistance += Math.sqrt(\n \t\t\t\t\t\t\t\tMath.pow(dx_disp.get(i), 2) +\n \t\t\t\t\t\t\t\tMath.pow(dy_disp.get(i), 2) +\n \t\t\t\t\t\t\t\tMath.pow(dz_disp.get(i), 2)\n \t\t\t\t\t\t\t\t);\n \t\t\t}\t\t\n \t\t\treturn distance;\n \t\t} \n \treturn 0; //won't get here.\n }", "public static void updatePosition() {\n\t\tfor (int i = 0; i < TitanV4.planets.length; i++) { //compute forces between all celestial corpses\n\t\t\tfor(int j=i; j<TitanV4.planets.length; j++){\n\t\t\t\tif (i != j) {\n\t\t\t\t\tdouble upper = TitanV4.G*TitanV4.planets[i].getMass() * TitanV4.planets[j].getMass();\n\t\t\t\t\tdouble lower = TitanV4.planets[i].getPosition().distanceFrom(TitanV4.planets[j].getPosition());\n\t\t\t\t\tdouble gravitation = upper/lower;\n\t\t\t\t\tVector a = new Vector();\n\t\t\t\t\ta = TitanV4.planets[i].getPosition().substract(TitanV4.planets[j].getPosition()).normalize().multiply(-1);\n\n\t\t\t\t\tTitanV4.planets[i].force.add(a.multiply(gravitation));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//compute acceleration vector for each celestial corpse but the sun\n\t\tfor(int i=1; i<TitanV4.planets.length; i++){\n\t\t\tTitanV4.planets[i].acceleration = (TitanV4.planets[i].force.divide(TitanV4.planets[i].getMass()));\n\t\t}\n\n\t\t//calculate change in speed over deltaT\n\t\tfor(int i=1; i<TitanV4.planets.length; i++){\n\t\t\tVector oldVelocity = new Vector(TitanV4.planets[i].velocity);\n\t\t\tTitanV4.planets[i].velocity.add((TitanV4.planets[i].acceleration.multiply(TitanV4.deltaT)));\n\n\t\t\tVector posChange = new Vector();\n\t\t\tposChange = (oldVelocity.add(velocity).divide(2)).multiply(TitanV4.deltaT);\n\t\t\tTitanV4.planets[i].pos.add(posChange);\n\t\t}\n\t}", "public float getAngularVelocity () {\n\t\treturn body.getAngularVelocity();\n\t}", "public void addVelocity(double x, double y) {\n velocityX += x;\n velocityY += y;\n }" ]
[ "0.80018103", "0.7556352", "0.7492222", "0.7355543", "0.72240466", "0.7180105", "0.69540703", "0.684512", "0.6692475", "0.66657805", "0.66498107", "0.6570546", "0.6445658", "0.64207333", "0.64092", "0.6394917", "0.6391634", "0.63884175", "0.63581574", "0.6328265", "0.6316925", "0.6289103", "0.6237655", "0.6229588", "0.6211513", "0.620485", "0.62015027", "0.6185567", "0.6183275", "0.61692405", "0.6165448", "0.61280125", "0.61235976", "0.6117957", "0.6094278", "0.6094278", "0.6094278", "0.6076338", "0.6060508", "0.60482836", "0.6044584", "0.60437053", "0.60362005", "0.60282314", "0.6013507", "0.6002482", "0.5963304", "0.59602326", "0.59363526", "0.5914768", "0.59048873", "0.58999157", "0.5892232", "0.5889596", "0.5871498", "0.586278", "0.58597714", "0.5812693", "0.5772873", "0.5755388", "0.5750826", "0.5748151", "0.57328826", "0.573107", "0.5722888", "0.5722888", "0.570505", "0.56995493", "0.56985986", "0.5679815", "0.56789196", "0.5663975", "0.56580377", "0.5646781", "0.5637261", "0.56317043", "0.56086934", "0.56067026", "0.56037277", "0.5600609", "0.55961955", "0.5587968", "0.5581868", "0.5572985", "0.55699617", "0.55625504", "0.55552655", "0.5536429", "0.5533684", "0.5533644", "0.552523", "0.5509953", "0.550939", "0.547155", "0.54707044", "0.54678184", "0.54553586", "0.54497766", "0.5445765", "0.54431796" ]
0.6978436
6
Declaration of the blocks list
@Override public List<Block> blocks() { List<Block> blocksList = new ArrayList<Block>(); //Setting the blocks for (int j = 0; j <= 14; j++) { if (j == 0 || j == 1) { blocksList.add(new Block(new Rectangle( new Point(730 - j * 50.6666667, 215), 51, 25), java.awt.Color.CYAN)); } else if (j == 2 || j == 3) { blocksList.add(new Block(new Rectangle( new Point(730 - j * 50.6666667, 215), 51, 25), java.awt.Color.PINK)); } else if (j == 4 || j == 5) { blocksList.add(new Block(new Rectangle( new Point(730 - j * 50.6666667, 215), 51, 25), java.awt.Color.BLUE)); } else if (j == 6 || j == 7 || j == 8) { blocksList.add(new Block(new Rectangle( new Point(730 - j * 50.6666667, 215), 51, 25), java.awt.Color.GREEN)); } else if (j == 9 || j == 10) { blocksList.add(new Block(new Rectangle( new Point(730 - j * 50.6666667, 215), 51, 25), java.awt.Color.YELLOW)); } else if (j == 11 || j == 12) { blocksList.add(new Block(new Rectangle( new Point(730 - j * 50.6666667, 215), 51, 25), java.awt.Color.ORANGE)); } else if (j == 13 || j == 14) { blocksList.add(new Block(new Rectangle( new Point(730 - j * 50.6666667, 215), 51, 25), java.awt.Color.RED)); } } return blocksList; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<Block> blocks();", "@Override\r\n public List<Block> blocks() {\r\n List<Block> blockList = new ArrayList<Block>();\r\n java.awt.Color[] colors = new Color[5];\r\n colors[0] = Color.decode(\"#c1b8b2\");\r\n colors[1] = Color.decode(\"#ef1607\");\r\n colors[2] = Color.decode(\"#ffff1e\");\r\n colors[3] = Color.decode(\"#211ed8\");\r\n colors[4] = Color.decode(\"#fffff6\");\r\n int y = 150;\r\n int[] hitPoints = {2, 1, 1, 1, 1};\r\n for (int i = 0; i < colors.length; i++) {\r\n for (int j = i + 5; j < 15; j++) {\r\n blockList.add(new Block(j * 50 + 25, y, 50, 20, colors[i], hitPoints[i]));\r\n }\r\n y += 20;\r\n }\r\n return blockList;\r\n }", "@Override\n public List<Block> blocks() {\n int columns = 15, width = 51, height = 30;\n Color darkGreen = new Color(29, 101, 51);\n List<Block> blocks = new ArrayList<>();\n for (int j = 0; j < columns; j++) {\n blocks.add(new Block(new arkanoid.geometry.Rectangle(new Point(20 + width * j, 110 + height),\n width, height), darkGreen));\n }\n return blocks;\n }", "public List<Block> blocks() {\r\n List<Block> list = new ArrayList<Block>();\r\n double width = 50;\r\n for (int i = 0; i < 7; ++i) {\r\n Color c = new Color(0, 0, 0);\r\n switch (i) {\r\n case 0:\r\n c = Color.gray;\r\n break;\r\n case 1:\r\n c = Color.red;\r\n break;\r\n case 2:\r\n c = Color.yellow;\r\n break;\r\n case 3:\r\n c = Color.green;\r\n break;\r\n case 4:\r\n c = Color.white;\r\n break;\r\n case 5:\r\n c = Color.pink;\r\n break;\r\n default:\r\n c = Color.cyan;\r\n break;\r\n }\r\n for (int j = 0; j < 15; ++j) {\r\n Block b = new Block(new Rectangle(new Point(\r\n 25 + j * width, 100 + i * 20), width, 20));\r\n if (i == 0) {\r\n b.setHitPoints(2);\r\n } else {\r\n b.setHitPoints(1);\r\n }\r\n list.add(b);\r\n }\r\n }\r\n return list;\r\n }", "public List<Block> blocks() {\n this.blocks = createBlocks();\n return this.blocks;\n }", "public ArrayList<Block> getBlocks() {\r\n return blocks;\r\n }", "public void addBlockList(int n) {\n BlockList.add(n);\r\n }", "private List<Block> createBlocks() {\n ArrayList<String> listOfBlocksAndSpacers = new ArrayList<String>();\n boolean buffer = false;\n for (int i = 0; i < level.size(); i++) {\n // if it starts with END_BLOCKS\n if (level.get(i).startsWith(\"END_BLOCKS\")) {\n buffer = false;\n } // if the buffer is true\n if (buffer) {\n listOfBlocksAndSpacers.add(level.get(i));\n } // if it starts with START_BLOCKS\n if (level.get(i).startsWith(\"START_BLOCKS\")) {\n buffer = true;\n } else if (level.get(i).startsWith(\"END_BLOCKS\")) {\n buffer = false;\n }\n }\n // find the x position where it all starts\n int startX = Integer.parseInt(this.map.get(\"blocks_start_x\"));\n int xForSave = startX;\n // find the y position where it all starts\n int startY = Integer.parseInt(this.map.get(\"blocks_start_y\"));\n List<Block> listOfBlocks = new ArrayList<>();\n String[] s;\n setBlocks();\n // go over the list of blocks of spacers\n for (int i = 0; i < listOfBlocksAndSpacers.size(); i++) {\n // split it with empty lines\n s = listOfBlocksAndSpacers.get(i).split(\"\");\n for (int j = 0; j < s.length; j++) {\n if (s[j].equals(\"\")) {\n continue;\n } // if it is a block symbol\n if (this.factory.isBlockSymbol(s[j])) {\n // add to listOfBlocks a block\n listOfBlocks.add(this.factory.getBlock(s[j], startX, startY));\n // continue to the next block with the next location\n startX += this.factory.getBlock(s[j], startX, startY).getCollisionRectangle().getWidth();\n } else if (this.factory.isSpaceSymbol(s[j])) { // move following\n // spacers\n startX += this.factory.getSpaceWidth(s[j]);\n }\n }\n startX = xForSave;\n startY += Integer.parseInt(this.map.get(\"row_height\"));\n }\n // put the blocks in a new blocks list and return it\n List<Block> listOfBlocksCopy = new ArrayList<>();\n for (int z = 0; z < listOfBlocks.size(); z++) {\n listOfBlocksCopy.add(listOfBlocks.get(z).copyBlock());\n }\n return listOfBlocksCopy;\n }", "public void SetBlockList() {\r\n int width = ScreenWidth / MatrixWidth;\r\n int hight = ScreenHeight / MatrixHeight;\r\n this.blockList = new BlockList();\r\n Bitmap blocks = Bitmap.createScaledBitmap(BitmapFactory.decodeResource(getResources(), R.drawable.blocks), width * 5, hight * 10, false);\r\n for (int i = 0; i < map.length; i++) {\r\n for (int j = 0; j < map[i].length; j++) {\r\n if(i==0 && j<3){//if its true so its wall or button so the type of block is 0\r\n this.blockList.AddBlock(i, j, 0, j, blocks, width, hight);\r\n }\r\n if (map[i][j] != '0')\r\n this.blockList.AddBlock(i, j, Integer.valueOf(String.valueOf(map[i][j])), 0, blocks, width, hight);\r\n }\r\n }\r\n }", "public BlockType[] getBlocks() {\n return blocks;\n }", "public Block[] getBlocks() {\n\t\treturn blocks;\n\t}", "public Block(){\n\t\tinstns = new ArrayList<Instruction>();\n\t}", "public ArrayList<Block> getBlocks() {\n ArrayList<Block> blocks = new ArrayList<>();\n\n for (Vector2D pos : template) {\n blocks.add(new Block(pos.addVectorGetNewVector(center), this.color));\n }\n return blocks;\n }", "public ContextBodyBlock() {\n super();\n\r\n setChild(new List(), 0);\r\n setChild(new List(), 1);\r\n setChild(new List(), 2);\r\n\r\n }", "public java.util.List<java.lang.Integer>\n getBlockNumsList() {\n return blockNums_;\n }", "public java.util.List<java.lang.Integer>\n getBlockNumsList() {\n return blockNums_;\n }", "java.util.List<java.lang.Integer> getBlockNumsList();", "java.util.List<java.lang.Integer> getBlockNumsList();", "public void setBlockRecord() {\r\n\t\t\tthis.blockRecord = new ArrayList<BlockList>();\r\n\t\t}", "Block (int start, int size)\n {\n this.start = start;\n this.size = size;\n }", "abstract public int getNumberOfBlocks();", "Tetrisblock()\n {\n newblockparam();\n newmapparam();\n setboundary();\n }", "public Collection<Block> getBlockCollection() {\n\t\treturn this.blocks.values();\n\t}", "public Map<Long, Block> getBlocks() {\n\t\treturn this.blocks;\n\t}", "public java.util.List<java.lang.Integer>\n getBlockNumbersList() {\n return blockNumbers_;\n }", "public Iterator<Map.Entry<Integer, Block>> listBlocks () {\n return this.blockMap.entrySet().iterator();\n }", "public java.util.List<java.lang.Integer>\n getBlockNumsList() {\n return java.util.Collections.unmodifiableList(blockNums_);\n }", "public java.util.List<java.lang.Integer>\n getBlockNumsList() {\n return java.util.Collections.unmodifiableList(blockNums_);\n }", "BlockExpr (List is, List es) {\n idList = is;\n exprList = es;\n }", "public Block() {\r\n\t\t// TODO Auto-generated constructor stub\r\n\t\tthis.point_BlockTopRight = null;\r\n\t\tthis.point_BlockDownleft = null;\r\n\t\tthis.setpoint_BlockTopLeft(null);\r\n\t\tthis.IDBloack = 0;\r\n\t\tthis.type = \"\";\r\n\t}", "private void setBlocks() {\n // load the class\n ClassLoader cl = ClassLoader.getSystemClassLoader();\n // create an InputStream object\n InputStream inputStream = cl.getResourceAsStream(this.map.get(\"block_definitions\"));\n // initialize this factory with a factory\n this.factory = BlocksDefinitionReader.fromReader(new InputStreamReader(inputStream));\n try {\n inputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "public BlockChain() {\n this.blockChain = new ArrayList<>();\n this.chainHash = \"\";\n }", "private void addBlocksVertices() {\n\n for (Block block :game.getBlocks()) {\n Point3D[] points = block.getPoints();\n for (int i = 0; i < points.length; i++) {\n GraphNode blockNode = new GraphNode(points[i]);\n vertices.add(blockNode);\n }\n }\n }", "@Override\n\tpublic int getBlockNum() {\n\t\treturn 0;\n\t}", "java.util.List<phaseI.Hdfs.BlockLocations> \n getBlockLocationsList();", "public void resetBlocks() {\n\t\tBLOCK_LIST.clear();\n\t}", "private void setUpBlocks() {\n\t\tdouble xStart=0;\n\t\tdouble midPoint = getWidth()/2;\n\t\tint yStart = BRICK_Y_OFFSET;\t\n\t\t\n\t\tfor(int i = 0; i < NBRICK_ROWS; i++) {\n\t\t\t\n\t\t\txStart = midPoint - (NBRICKS_PER_ROW/2 * BRICK_WIDTH) - BRICK_WIDTH/2;\n\t\t\tlayRowOfBricks(xStart, yStart, i);\n\t\t\tyStart += BRICK_HEIGHT + BRICK_SEP;\n\t\t}\t\n\t}", "public static void initialize()\n {\n CHUNK_LOADER = new ChunkLoader();\n //VILLAGE_INDICATOR = new VillageIndicator();\n\n BLOCK_LIST.add(CHUNK_LOADER);\n //BLOCK_LIST.add(VILLAGE_INDICATOR);\n Log.info(\"=========================================================> Initialized Blocks\");\n }", "Tetrisblock2()\n {\n newblockparam();\n newmapparam();\n setboundary();\n }", "public static void init () {\n\t\t\n\t\t/*\n\t\t * Letter block naming and registry code\n\t\t */\n\t\tfor (int i = 0; i <= NameHandler.length(); ++i) {\n\t\t\tBlockLetter bL = new BlockLetter();\n\t\t\tString name = NameHandler.getNameFromIndex(i);\n\t\t\tbL.setBlockName(name);\n\t\t\tGameRegistry.registerBlock(bL, name);\n\t\t\tletterBlocks.add(bL);\n\t\t}\n\t\t\n\t\tcopperBlock.setBlockName(Names.Blocks.COPPER_BLOCK);\n\t\ttinBlock.setBlockName(Names.Blocks.TIN_BLOCK);\n\t\tsilverBlock.setBlockName(Names.Blocks.SILVER_BLOCK);\n\t\tclassicBronzeBlock.setBlockName(Names.Blocks.CLASSIC_BRONZE_BLOCK);\n\t\tmildBronzeBlock.setBlockName(Names.Blocks.MILD_BRONZE_BLOCK);\n\t\telectrumBlock.setBlockName(Names.Blocks.ELECTRUM_BLOCK);\n\t\tcopperDustBlock.setBlockName(Names.Blocks.COPPER_DUST_BLOCK);\n\t\t\n\t\tcopperOre.setBlockName(Names.Blocks.COPPER_ORE);\n\t\ttinOre.setBlockName(Names.Blocks.TIN_ORE);\n\t\tsilverOre.setBlockName(Names.Blocks.SILVER_ORE);\n\t\t\n\t\tmarble.setBlockName(Names.Blocks.MARBLE);\n\t\t\n\t\tgrindstone.setBlockName(Names.Blocks.GRINDSTONE);\n\t\t\n\t\tGameRegistry.registerBlock(column, Names.Blocks.COLUMN);\n\t\tGameRegistry.registerBlock(copperBlock, Names.Blocks.COPPER_BLOCK);\n\t\tGameRegistry.registerBlock(tinBlock, Names.Blocks.TIN_BLOCK);\n\t\tGameRegistry.registerBlock(silverBlock, Names.Blocks.SILVER_BLOCK);\n\t\tGameRegistry.registerBlock(classicBronzeBlock, Names.Blocks.CLASSIC_BRONZE_BLOCK);\n\t\tGameRegistry.registerBlock(mildBronzeBlock, Names.Blocks.MILD_BRONZE_BLOCK);\n\t\tGameRegistry.registerBlock(electrumBlock, Names.Blocks.ELECTRUM_BLOCK);\n\t\tGameRegistry.registerBlock(copperDustBlock, Names.Blocks.COPPER_DUST_BLOCK);\n\t\t\n\t\tGameRegistry.registerBlock(copperOre, Names.Blocks.COPPER_ORE);\n\t\tGameRegistry.registerBlock(tinOre, Names.Blocks.TIN_ORE);\n\t\tGameRegistry.registerBlock(silverOre, Names.Blocks.SILVER_ORE);\n\t\tGameRegistry.registerBlock(marble, Names.Blocks.MARBLE);\n\t\t\n\t\tGameRegistry.registerBlock(grindstone, Names.Blocks.GRINDSTONE);\n\t}", "public ArrayList<Block> getMap(){\r\n\t\treturn new ArrayList<Block>(this.blockMap);\r\n\t}", "public Block( ) {\r\n _offSetRow = 0;\r\n _offSetCol = 0;\r\n _noOfRows = 0;\r\n _noOfCols = 0;\r\n }", "public void getSubBlocks(int par1, CreativeTabs par2CreativeTabs, List par3List)\n {\n par3List.add(new ItemStack(par1, 1, 0));\n //par3List.add(new ItemStack(par1, 1, 1));\n //par3List.add(new ItemStack(par1, 1, 2));\n //par3List.add(new ItemStack(par1, 1, 3));\n }", "Block createBlock();", "public List<VeinBlock> getAliasedBlocks() {\n\t\treturn new ArrayList<>(blocks);\n\t}", "public Array<BlockDrawable> getAllBlocksToDraw() {\r\n \tArray<BlockDrawable> blocksToDraw = new Array<BlockDrawable>();\r\n\t\tblocksToDraw.addAll(tablero);\r\n\t\tif(isGhostActivated()){\r\n\t\t\tblocksToDraw.addAll(getGhostBlocksToDraw());\r\n\t\t}\r\n\t\tif (hasFalling())\r\n\t\t\tblocksToDraw.addAll(falling.allOuterBlocks());\r\n\t\t\r\n\t\treturn blocksToDraw;\r\n }", "public BranchGroup blocksScene(){\n\t\t\n\t\tIterator iterator = blocks.iterator();\n\t\t\n\t\twhile(iterator.hasNext()){\n\t\t\tbg.addChild(((Block) iterator.next()).boxGridScene());\n\t\t}\n\t\treturn bg;\n\t}", "public void testFetchBlocks() throws IOException {\n\t\tLocalRawDataBlockList list = new LocalRawDataBlockList();\r\n\t\tbyte[] data = new byte[512];\r\n\t\tint offset = 0;\r\n\r\n\t\tLittleEndian.putInt(data, offset, -3); // for the BAT block itself\r\n\t\toffset += LittleEndianConsts.INT_SIZE;\r\n\r\n\t\t// document 1: is at end of file already; start block = -2\r\n\t\t// document 2: has only one block; start block = 1\r\n\t\tLittleEndian.putInt(data, offset, -2);\r\n\t\toffset += LittleEndianConsts.INT_SIZE;\r\n\r\n\t\t// document 3: has a loop in it; start block = 2\r\n\t\tLittleEndian.putInt(data, offset, 2);\r\n\t\toffset += LittleEndianConsts.INT_SIZE;\r\n\r\n\t\t// document 4: peeks into document 2's data; start block = 3\r\n\t\tLittleEndian.putInt(data, offset, 4);\r\n\t\toffset += LittleEndianConsts.INT_SIZE;\r\n\t\tLittleEndian.putInt(data, offset, 1);\r\n\t\toffset += LittleEndianConsts.INT_SIZE;\r\n\r\n\t\t// document 5: includes an unused block; start block = 5\r\n\t\tLittleEndian.putInt(data, offset, 6);\r\n\t\toffset += LittleEndianConsts.INT_SIZE;\r\n\t\tLittleEndian.putInt(data, offset, -1);\r\n\t\toffset += LittleEndianConsts.INT_SIZE;\r\n\r\n\t\t// document 6: includes a BAT block; start block = 7\r\n\t\tLittleEndian.putInt(data, offset, 8);\r\n\t\toffset += LittleEndianConsts.INT_SIZE;\r\n\t\tLittleEndian.putInt(data, offset, 0);\r\n\t\toffset += LittleEndianConsts.INT_SIZE;\r\n\r\n\t\t// document 7: includes an XBAT block; start block = 9\r\n\t\tLittleEndian.putInt(data, offset, 10);\r\n\t\toffset += LittleEndianConsts.INT_SIZE;\r\n\t\tLittleEndian.putInt(data, offset, -4);\r\n\t\toffset += LittleEndianConsts.INT_SIZE;\r\n\r\n\t\t// document 8: goes off into space; start block = 11;\r\n\t\tLittleEndian.putInt(data, offset, 1000);\r\n\t\toffset += LittleEndianConsts.INT_SIZE;\r\n\r\n\t\t// document 9: no screw ups; start block = 12;\r\n\t\tint index = 13;\r\n\r\n\t\tfor (; offset < 508; offset += LittleEndianConsts.INT_SIZE) {\r\n\t\t\tLittleEndian.putInt(data, offset, index++);\r\n\t\t}\r\n\t\tLittleEndian.putInt(data, offset, -2);\r\n\t\tlist.add(new RawDataBlock(new ByteArrayInputStream(data)));\r\n\t\tlist.fill(1);\r\n\t\tint[] blocks = { 0 };\r\n\t\tBlockAllocationTableReader table = new BlockAllocationTableReader(\r\n\t\t POIFSConstants.SMALLER_BIG_BLOCK_SIZE_DETAILS, 1, blocks, 0, -2, list);\r\n\t\tint[] start_blocks = { -2, 1, 2, 3, 5, 7, 9, 11, 12 };\r\n\t\tint[] expected_length = { 0, 1, -1, -1, -1, -1, -1, -1, 116 };\r\n\r\n\t\tfor (int j = 0; j < start_blocks.length; j++) {\r\n\t\t\ttry {\r\n\t\t\t\tListManagedBlock[] dataBlocks = table.fetchBlocks(start_blocks[j], -1, list);\r\n\r\n\t\t\t\tif (expected_length[j] == -1) {\r\n\t\t\t\t\tfail(\"document \" + j + \" should have failed, but found a length of \"\r\n\t\t\t\t\t\t\t+ dataBlocks.length);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tassertEquals(expected_length[j], dataBlocks.length);\r\n\t\t\t\t}\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tif (expected_length[j] == -1) {\r\n\r\n\t\t\t\t\t// no problem, we expected a failure here\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthrow e;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n public CssDeclarationBlockNode getBlock() {\n return (CssDeclarationBlockNode) super.getBlock();\n }", "public void showblocks() {\n System.out.println(\"\");\n EcgCheck chk = EcgCheck.getInstance();\n System.out.println(\" Show Blocks\");\n\n }", "int numOfBlocks() {\n return ni * nj * nk;\n }", "public Block[] getAllBlocks(){\n\t\tBlock[] arr = new Block[tail];\n\t\tfor(int x = 0; x < tail; x++)\n\t\t\tarr[x] = ds[x];\n\t\treturn arr;\n\t}", "public java.util.List<java.lang.Integer>\n getBlockNumbersList() {\n return java.util.Collections.unmodifiableList(blockNumbers_);\n }", "private void createBlocks(){\n for (int row=0; row < grid.length; row++) \n {\n for (int column=0; column < grid[row].length; column++)\n {\n boolean player = false;\n boolean walkable;\n \n switch (grid[row][column]){\n case(0) : \n returnImage = wall; \n walkable = false;\n break;\n case(2) : \n returnImage = start; \n walkable = true;\n player = true;\n break;\n case(4) : \n returnImage = finish; \n walkable = true;\n break;\n \n default :\n returnImage = pad; \n walkable = false;\n }\n \n \n Block blok;\n try {\n if(player==true) \n { \n blok = new Block(returnImage, blockSize, true);\n blok.setTopImage(held);\n }else\n {\n blok = new Block(returnImage, blockSize, false);\n }\n blocks.add(blok);\n } catch (Exception e) {\n \n }\n } \n \n }\n \n }", "void scanblocks() {\n\t\tint oldline, newline;\n\t\tint oldfront = 0; // line# of front of a block in old, or 0\n\t\tint newlast = -1; // newline's value during prev. iteration\n\n\t\tfor (oldline = 1; oldline <= oldinfo.maxLine; oldline++)\n\t\t\tblocklen[oldline] = 0;\n\t\tblocklen[oldinfo.maxLine + 1] = UNREAL; // starts a mythical blk\n\n\t\tfor (oldline = 1; oldline <= oldinfo.maxLine; oldline++) {\n\t\t\tnewline = oldinfo.other[oldline];\n\t\t\tif (newline < 0)\n\t\t\t\toldfront = 0; /* no match: not in block */\n\t\t\telse { /* match. */\n\t\t\t\tif (oldfront == 0)\n\t\t\t\t\toldfront = oldline;\n\t\t\t\tif (newline != (newlast + 1))\n\t\t\t\t\toldfront = oldline;\n\t\t\t\t++blocklen[oldfront];\n\t\t\t}\n\t\t\tnewlast = newline;\n\t\t}\n\t}", "java.util.List<? extends phaseI.Hdfs.BlockLocationsOrBuilder> \n getBlockLocationsOrBuilderList();", "@SideOnly(Side.CLIENT)\r\n/* 250: */ public void getSubBlocks(Item par1, CreativeTabs par2CreativeTabs, List par3List)\r\n/* 251: */ {\r\n/* 252:285 */ par3List.add(new ItemStack(par1, 1, 0));\r\n/* 253:286 */ par3List.add(new ItemStack(par1, 1, 6));\r\n/* 254:287 */ par3List.add(new ItemStack(par1, 1, 12));\r\n/* 255:288 */ par3List.add(new ItemStack(par1, 1, 13));\r\n/* 256: */ }", "public void createBlocks(HitListener phl, HitListener blockrmv, HitListener scorelstn) {\n // add all the blocks according to the levelinfo block list.\n for (Block block : this.levelInfo.blocks()) {\n // add the block to the game\n block.addToGame(this);\n // add all the relevant listeners to the blocks.\n block.addHitListener(phl);\n block.addHitListener(blockrmv);\n block.addHitListener(scorelstn);\n // increase the blocks counter by 1.\n this.blockCounter.increase(1);\n }\n }", "public void createSideBlocks() {\n Fill fill = new FillColor(Color.darkGray);\n Block topB = new Block(new Rectangle(new Point(0, 0), 800, 45), fill);\n Block rightB = new Block(new Rectangle(new Point(775, 25), 25, 576), fill);\n Block leftB = new Block(new Rectangle(new Point(0, 25), 25, 576), fill);\n //add each screen-side block to game and set 1 hitpoint.\n topB.addToGame(this);\n topB.setHitPoints(1);\n rightB.addToGame(this);\n rightB.setHitPoints(1);\n leftB.addToGame(this);\n leftB.setHitPoints(1);\n }", "ListIter (int index){\n int blockNum=0;\n int aggSize=0;\n while (aggSize+dataBlocks[blockNum].getSize() <= index){\n aggSize+=dataBlocks[blockNum].getSize();\n blockNum++;\n }\n cursorBlock = blockNum;\n cursorElement = index-aggSize;\n cursor = index;\n }", "private void populateList(final Vector3 base)\n {\n this.blocks.add(base);\n // Loop untill no new blocks have been added.\n while (this.checked.size() < this.blocks.size())\n {\n final List<Vector3> toAdd = new ArrayList<>();\n // Add all connecting blocks that match, unless they have\n // already been checked.\n for (final Vector3 v : this.blocks) if (!this.checked.contains(v)) this.nextPoint(v, toAdd);\n // Add any blocks that are new to the list.\n for (final Vector3 v : toAdd) if (!this.blocks.contains(v)) this.blocks.add(v);\n }\n }", "Set<? extends IRBasicBlock> getBlocks();", "public Block(){\n\t\tthis.type = Code.Type.NULL;\n\t}", "public static void main(String[] args) {\n\r\n\t\t\r\n\t\tArrayList<Block> blockChain = new ArrayList<Block>();\r\n\t\t\r\n\t\tString[] initialValues = {\"Linus has 700 Euro\", \"Florian has 500 Euro\"};\r\n\t\tBlock firstblock = new Block(initialValues, 0);\r\n\t\tblockChain.add(firstblock);\r\n\t\tSystem.out.println(\"Erster Block ist \" + firstblock.toString());\r\n\t\tSystem.out.println(\"Die block chain ist\" + blockChain.toString());\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tString[] payBlock = {\"Florian gives Linus 400 Euro\", \"Thomas buy 800 Euro\"};\r\n\t\tBlock secondblock = new Block(payBlock, firstblock.getBlockHash());\r\n\t\tblockChain.add(secondblock);\r\n\t\tSystem.out.println(\"Zweiter Block ist \" + secondblock.toString());\r\n\t\tSystem.out.println(\"Die block chain ist\" + blockChain.toString());\r\n\t\t\r\n\t\tString[] payBack = {\"Linus gives Florian 400 Euro\"};\r\n\t\tBlock thirdblock = new Block(payBack, secondblock.getBlockHash());\r\n\t\tblockChain.add(thirdblock);\r\n\t\tSystem.out.println(\"Zweiter Block ist \" + thirdblock.toString());\r\n\t\tSystem.out.println(\"Die block chain ist\" + blockChain.toString());\r\n\t\t\r\n\t}", "private void prepare()\n {\n MazeBlock mazeBlock = new MazeBlock();\n addObject(mazeBlock,25,25);\n MazeBlock mazeBlock1 = new MazeBlock();\n addObject(mazeBlock1,25,75);\n MazeBlock mazeBlock2= new MazeBlock();\n addObject(mazeBlock2,75,75);\n MazeBlock mazeBlock3= new MazeBlock();\n addObject(mazeBlock3,75,125);\n MazeBlock mazeBlock4= new MazeBlock();\n addObject(mazeBlock4,125,125);\n MazeBlock mazeBlock5= new MazeBlock();\n addObject(mazeBlock5,175,125);\n MazeBlock mazeBlock6= new MazeBlock();\n addObject(mazeBlock6,225,125);\n MazeBlock mazeBlock7= new MazeBlock();\n addObject(mazeBlock7,275,125);\n MazeBlock mazeBlock8= new MazeBlock();\n addObject(mazeBlock8,275,175);\n MazeBlock mazeBlock9= new MazeBlock();\n addObject(mazeBlock9,275,225);\n MazeBlock mazeBlock10= new MazeBlock();\n addObject(mazeBlock10,275,275);\n MazeBlock mazeBlock11= new MazeBlock();\n addObject(mazeBlock11,275,325);\n MazeBlock mazeBlock12= new MazeBlock();\n addObject(mazeBlock12,325,325);\n MazeBlock mazeBlock13= new MazeBlock();\n addObject(mazeBlock13,375,325);\n MazeBlock mazeBlock14= new MazeBlock();\n addObject(mazeBlock14,425,275);\n MazeBlock mazeBlock15= new MazeBlock();\n addObject(mazeBlock15,475,275);\n MazeBlock mazeBlock16= new MazeBlock();\n addObject(mazeBlock16,125,325);\n MazeBlock mazeBlock17= new MazeBlock();\n addObject(mazeBlock17,125,375);\n MazeBlock mazeBlock18= new MazeBlock();\n addObject(mazeBlock18,125,425);\n MazeBlock mazeBlock19= new MazeBlock();\n addObject(mazeBlock19,175,425);\n MazeBlock mazeBlock20= new MazeBlock();\n addObject(mazeBlock20,225,425);\n\n EnemyFlyer enemyFlyer = new EnemyFlyer();\n addObject(enemyFlyer,29,190);\n EnemyFlyer enemyFlyer3 = new EnemyFlyer();\n addObject(enemyFlyer3,286,389);\n WalkingEnemy walkingEnemy = new WalkingEnemy(true);\n addObject(walkingEnemy,253,293);\n walkingEnemy.setLocation(125,275);\n WalkingEnemy walkingEnemy2 = new WalkingEnemy(false);\n addObject(walkingEnemy2,28,81);\n walkingEnemy2.setLocation(170,82);\n FinalLevel finalLevel = new FinalLevel();\n addObject(finalLevel, 508, 45);\n Hero hero = new Hero();\n addObject(hero,62,499);\n }", "List<Block> getBlocks(String congName, String[] blockArray);", "abstract public ByteString getBlocksBuffer();", "phaseI.Hdfs.BlockLocations getNewBlock();", "public List<Integer> getBlockAsList(int b){\n\t\tList<Integer> block = new ArrayList<Integer>(size*size);\n\t\tfor (int i = size*(b/size); i < size*(b/size+1); i++){\n\t\t\tfor (int j = size*(b%size); j < size*(b%size+1); j++){\n\t\t\t\tblock.add(numbers[i][j]);\n\t\t\t}\n\t\t}\n\t\treturn block;\n\t}", "phaseI.Hdfs.BlockLocations getBlockLocations(int index);", "private void addStackBlocks() {\n\n for (int x = numBlocks; x > 0; x--) {\n\n double blockHeight = totalBLockHeight / numBlocks;\n double blockWidthChange = (maxBlockWidth - minBlockWidth) / numBlocks;\n double blockWidth = minBlockWidth + ((x - 1) * blockWidthChange);\n\n TowerBlock newBlock = new TowerBlock(blockWidth, blockHeight, x);\n towerOne.push(newBlock);\n\n }\n addBlocks = false;\n\n }", "java.util.List<java.lang.Integer> getBlockNumbersList();", "public List<BlockID> getLeafList()\n {\n return leafBlocks;\n }", "private static CurveBuildingBlock toBlock(CurveGroupDefinition groupDefn) {\n ImmutableList.Builder<CurveParameterSize> builder = ImmutableList.builder();\n for (CurveGroupEntry entry : groupDefn.getEntries()) {\n NodalCurveDefinition defn = entry.getCurveDefinition();\n builder.add(CurveParameterSize.of(defn.getName(), defn.getParameterCount()));\n }\n return CurveBuildingBlock.of(builder.build());\n }", "private static void populateBlocks() {\n\n //TODO set sensors for each\n\n /* Path A */\n SW1A.setProceeding(new Block[]{SW2A, STA1Z, SW2B});\n SW1A.setPreceding(new Block[]{PTH5A});\n\n SW2A.setProceeding(new Block[]{LD1A});\n SW2A.setPreceding(new Block[]{SW1A});\n\n SW3A.setProceeding(new Block[]{SW4A});\n SW3A.setPreceding(new Block[]{LD1A});\n\n SW4A.setProceeding(new Block[]{PTH1A});\n SW4A.setPreceding(new Block[]{SW3A, STA1Z, SW3B});\n\n PTH1A.setProceeding(new Block[]{PTH2A});\n PTH1A.setPreceding(new Block[]{SW4A});\n\n PTH2A.setProceeding(new Block[]{PTH3A});\n PTH2A.setPreceding(new Block[]{PTH1A});\n\n PTH3A.setProceeding(new Block[]{PTH4A});\n PTH3A.setPreceding(new Block[]{PTH2A});\n\n PTH4A.setProceeding(new Block[]{PTH5A});\n PTH4A.setPreceding(new Block[]{PTH3A});\n\n PTH5A.setProceeding(new Block[]{SW1A});\n PTH5A.setPreceding(new Block[]{PTH4A});\n\n LD1A.setProceeding(new Block[]{SW3A});\n LD1A.setPreceding(new Block[]{SW2A});\n\n\n /* Station */\n STA1Z.setProceeding(new Block[]{SW4A});\n STA1Z.setPreceding(new Block[]{SW1A});\n\n\n /* Path B */\n //TODO path B items aren't in yet\n LD1B.setProceeding(new Block[]{SW3B});\n LD1B.setPreceding(new Block[]{SW2B});\n\n SW2B.setProceeding(new Block[]{LD1B});\n SW2B.setPreceding(new Block[]{SW1B});\n\n SW3B.setProceeding(new Block[]{SW4B});\n SW3B.setPreceding(new Block[]{LD1B});\n\n\n /* Maintenance Bay */\n //TODO maintenance bay items aren't in yet\n\n\n\n\n /* Set up array */\n blocksArray = new Block[] {}; //TODO fill\n }", "private void readBlocks(List<Element> blockElements, Model model)\n throws ObjectExistsException {\n // Add the blocks.\n for (int i = 0; i < blockElements.size(); i++) {\n Element curBlockElement = blockElements.get(i);\n Integer blockID;\n try {\n blockID = Integer.valueOf(curBlockElement.getAttributeValue(\"id\"));\n }\n catch (NumberFormatException e) {\n blockID = null;\n }\n Block curBlock = model.createBlock(blockID);\n TCSObjectReference<Block> blockRef = curBlock.getReference();\n String blockName = curBlockElement.getAttributeValue(\"name\");\n if (blockName == null || blockName.isEmpty()) {\n blockName = \"BlockName\" + i + \"Unknown\";\n }\n model.getObjectPool().renameObject(curBlock.getReference(), blockName);\n // Add members.\n List<Element> memberElements = curBlockElement.getChildren(\"member\");\n for (int j = 0; j < memberElements.size(); j++) {\n Element curMemberElement = memberElements.get(j);\n String memberName = curMemberElement.getAttributeValue(\"name\");\n if (memberName == null || memberName.isEmpty()) {\n memberName = \"MemberName\" + j + \"Unknown\";\n }\n TCSResource<?> curMember\n = (TCSResource<?>) model.getObjectPool().getObject(memberName);\n curBlock.addMember(curMember.getReference());\n }\n List<Element> properties = curBlockElement.getChildren(\"property\");\n for (int k = 0; k < properties.size(); k++) {\n Element curPropElement = properties.get(k);\n String curKey = curPropElement.getAttributeValue(\"name\");\n if (curKey == null || curKey.isEmpty()) {\n curKey = \"Key\" + k + \"Unknown\";\n }\n String curValue = curPropElement.getAttributeValue(\"value\");\n if (curValue == null || curValue.isEmpty()) {\n curValue = \"Value\" + k + \"Unknown\";\n }\n model.getObjectPool().setObjectProperty(blockRef, curKey, curValue);\n }\n }\n }", "MultipleBranchingBlock createMultipleBranchingBlock();", "private void loadBlockConfig(List<Element> blocks) {\n\t\tthis.blockConfigs = new ArrayList<BlockConfig>();\n\t\tfor (Element e : blocks) {\n\t\t\tString className = e.attributeValue(\"className\");\n\t\t\tint w = Integer.parseInt(e.attributeValue(\"w\"));\n\t\t\tint h = Integer.parseInt(e.attributeValue(\"h\"));\n\t\t\tint x = Integer.parseInt(e.attributeValue(\"x\"));\n\t\t\tint y = Integer.parseInt(e.attributeValue(\"y\"));\n\t\t\tblockConfigs.add(new BlockConfig(className, w, h, x, y));\n\t\t}\n\t}", "public int getBlockNumbersCount() {\n return blockNumbers_.size();\n }", "private void initLists() {\r\n listPanel.removeAll();\r\n\r\n memoryLists = new JList[this.memoryBlocks.size()];\r\n memoryUpdateState = new boolean[this.memoryBlocks.size()];\r\n this.lastChanged = new int[this.memoryBlocks.size()];\r\n\r\n for (int i = 0; i < this.memoryBlocks.size(); i++) {\r\n this.lastChanged[i] = -1;\r\n memoryLists[i] = this.addList((MemoryBlock) memoryBlocks.get(i));\r\n\r\n // redraw first time\r\n memoryUpdateState[i] = true;\r\n }\r\n\r\n this.updateLists();\r\n }", "public void genLists() {\n\t}", "List<TbBlock> getList(@Param(\"tableName\") String tableName,\n @Param(\"param\") BlockListParam param);", "public long getBlockCount ( ) {\r\n\t\treturn 436;\r\n\t}", "public void startImage() {\r\n\t\tm_blocks = new Vector<BlockList>();\r\n\t\tm_feature.clear();\r\n\t\tfor (int i = 0; i < 3; i++) {\r\n\t\t\tBlockList blockList = new BlockList();\r\n\t\t\tm_blocks.add(blockList);\r\n\t\t}\r\n\t}", "public Array<BlockDrawable> getBoardBlocksToDraw() {\r\n\t\tArray<BlockDrawable> blocksToDraw = new Array<BlockDrawable>();\r\n\t\tblocksToDraw.addAll(tablero);\t\t\r\n\t\treturn blocksToDraw;\r\n\t}", "public SBlock() {\n // todo\n cells = new boolean[rows][columns];\n cells[0][0] = false;\n cells[0][1] = true;\n cells[0][2] = true;\n cells[1][0] = true;\n cells[1][1] = true;\n cells[1][2] = false;\n cells[2][0] = false;\n cells[2][1] = false;\n cells[2][2] = false;\n }", "public Block() {\n this.xPos = 0;\n this.yPos = 0;\n this.width = 0;\n this.height = 0;\n this.color = Color.MINTCREAM;\n }", "@SideOnly(Side.CLIENT)\n public void getSubBlocks(int par1, CreativeTabs par2CreativeTabs, List par3List)\n {\n par3List.add(new ItemStack(par1, 1, 0));\n }", "public ProductionBlock[] getAllProductionBlocks();", "public int getBlockNumbersCount() {\n return blockNumbers_.size();\n }", "@Override\n public int getRowCount() {\n return blockList.size();\n }", "public static void initializeBlocks() {\n if (Config.enableGiveADamn) {\n giveADamn = new GiveADamn();\n }\n\n if (Config.enableGlowstone) {\n glowstone = new HeavyLight();\n }\n\n if (Config.enableSpicedSand) {\n sandSpiced = new SpicedSand();\n }\n /*\n\n if (Config.enableMuffler){\n muffler = new Muffler();\n }\n */\n }", "public Block createBlock(Position pos, List<Stmt> stmts) {\n return xnf.Block(pos, stmts);\n }", "public String getBlockStart () {\n return BLOCK_START_PREFIX + objectName + BLOCK_START_SUFFIX;\n }", "public void begin(){\n\t\tTransaction block = new Transaction();\n\t\tblock.setPrev(blocks.getLast());\n\t\tblocks.add(block);\n\t}", "public int dimension(){\n return blocks.length;\n }", "phaseI.Hdfs.BlockLocations getBlockInfo();", "DefineBlock createDefineBlock();", "public void setBlockdef(BlocksFromSymbolsFactory levelBlockDef) {\n this.blockDef = levelBlockDef;\n }", "public static void registerBlocks() {\n\t\tRegistry.register(Registry.BLOCK, new Identifier(EggMod.MOD_ID, \"egg_block\"), EGG_BLOCK);\n\t\t\n\t\t// Yolk\n\t\tSTILL_YOLK = Registry.register(Registry.FLUID, new Identifier(EggMod.MOD_ID, \"yolk_flow\"), new YolkFluid.Still());\n\t\tFLOWING_YOLK = Registry.register(Registry.FLUID, new Identifier(EggMod.MOD_ID, \"yolk_still\"), new YolkFluid.Flowing());\n\t\tYOLK = Registry.register(Registry.BLOCK, new Identifier(EggMod.MOD_ID, \"yolk\"), new FluidBlock(STILL_YOLK, FabricBlockSettings.copy(Blocks.WATER)){});\n\t}" ]
[ "0.779307", "0.72289735", "0.7191683", "0.714212", "0.7112495", "0.71104705", "0.69993514", "0.6919533", "0.68172693", "0.6800407", "0.6720261", "0.6711748", "0.6645838", "0.66230917", "0.66144866", "0.66144866", "0.65961623", "0.65961623", "0.6507861", "0.6432633", "0.6429131", "0.6418956", "0.64160067", "0.6415795", "0.6391128", "0.6350777", "0.6339537", "0.6339537", "0.6337746", "0.6308785", "0.63016", "0.62934047", "0.6287438", "0.62783504", "0.6262069", "0.6259693", "0.6258112", "0.62489015", "0.6229948", "0.6229812", "0.62206954", "0.62068975", "0.61902505", "0.6178514", "0.61716866", "0.61478853", "0.6142834", "0.61358905", "0.61327565", "0.6128531", "0.61138624", "0.6103544", "0.6078024", "0.60763323", "0.60599595", "0.6058769", "0.6046041", "0.60395646", "0.6036343", "0.6033606", "0.60307616", "0.6029323", "0.6014781", "0.6008608", "0.6006921", "0.6000451", "0.5962898", "0.59362", "0.59350586", "0.5906179", "0.5904422", "0.59034663", "0.5893254", "0.589233", "0.5888901", "0.58872014", "0.5882045", "0.5879896", "0.5874171", "0.5870639", "0.5860856", "0.58549964", "0.5824004", "0.58230174", "0.58222604", "0.58202577", "0.58147705", "0.5809368", "0.58041996", "0.5798865", "0.57938784", "0.5788385", "0.5786775", "0.57775456", "0.5771011", "0.5770164", "0.57659787", "0.576299", "0.5759384", "0.5757952" ]
0.69400054
7
A get request to check if the service is available
public SearchResponse getStatus();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasService();", "boolean hasService();", "boolean hasService();", "boolean hasService();", "boolean hasService();", "public boolean isServiceReady();", "Object getService(String serviceName, boolean checkExistence);", "boolean hasRequest();", "boolean hasRequest();", "boolean hasRequest();", "boolean hasRequest();", "boolean hasRequest();", "boolean hasRequest();", "boolean hasRequest();", "boolean hasRequest();", "boolean hasRequest();", "boolean hasRequest();", "boolean hasSystemRequest();", "boolean hasListResponse();", "boolean isAvailable();", "boolean isAvailable();", "boolean isAvailable();", "boolean isAvailable();", "private boolean serviceIsAvailable(String urlStr) {\r\n\r\n\t\tint respCode = 0;\r\n\t\tURL url;\r\n\t\tint testingTimeout = 3000;\r\n\t\t\r\n\t\ttry {\r\n\t\t\turl = new URL(urlStr);\r\n\r\n\t\t\tHttpURLConnection huc = (HttpURLConnection) url.openConnection();\r\n\t\t\thuc.setRequestMethod(\"POST\");\r\n\r\n\t\t\t/*\r\n\t\t\t * Time out set to 3 seconds, checked at 4 seconds, response should\r\n\t\t\t * be almost instant so this can be hardcoded in this method.\r\n\t\t\t */\r\n\t\t\thuc.setConnectTimeout(testingTimeout);\r\n\t\t\thuc.setReadTimeout(testingTimeout + 1000);\r\n\t\t\thuc.connect();\r\n\t\t\t\r\n\t\t\trespCode = huc.getResponseCode();\r\n\r\n\t\t\tif (this.debug) {\r\n\t\t\t\tprintln(\"Response code from \" + urlStr + \" is \" + respCode);\r\n\t\t\t}\r\n\r\n\t\t} catch (MalformedURLException e) {\r\n\t\t\tprintln(\"MalformedURLException from \" + urlStr\r\n\t\t\t\t\t+ \" : Response code is \" + respCode);\r\n\t\t\treturn false;\r\n\t\t} catch (SocketTimeoutException s) {\r\n\t\t\tprintln(\"Timeout occurred when checking availability of Speech Synthesis service at...\\n\"\r\n\t\t\t\t\t+ urlStr);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tcatch (IOException e) {\r\n\t\t\tprintln(\"IOException (other than Connection Timeout) from \" + urlStr\r\n\t\t\t\t\t+ \" is \" + respCode);\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (respCode == 200) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t}", "Boolean isAvailable();", "boolean hasServiceCmd();", "boolean hasServiceList();", "private static void checkStatus() {\n\r\n\t\tDate date = new Date();\r\n\t\tSystem.out.println(\"Checking at :\"+date.toString());\r\n\t\tString response = \"\";\r\n\t\ttry {\r\n\t\t\tresponse = sendGET(GET_URL_COVAXIN);\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t//System.out.println(response.toString());\r\n\t\tArrayList<Map> res = formatResponse(response);\r\n\r\n\t\tres = checkAvailability(res);\r\n\t\tif(res.size()>0)\r\n\t\t\tnotifyUser(res);\r\n\t\t//System.out.println(emp.toString());\r\n\t}", "boolean hasSystemResponse();", "public boolean hasService() {\n return service_ != null;\n }", "public boolean hasService() {\n return service_ != null;\n }", "public boolean hasService() {\n return service_ != null;\n }", "boolean hasServiceName();", "boolean hasServiceName();", "private boolean isServiceAvailable() {\n if (mComponentName == null) {\n mComponentName = resolveAttentionService(mContext);\n }\n return mComponentName != null;\n }", "public boolean exists() {\n return exists(Datastore.fetchDefaultService());\n }", "private boolean servicesAvailable() {\n int resultCode = GooglePlayServicesUtil.\n isGooglePlayServicesAvailable(this);\n if (ConnectionResult.SUCCESS == resultCode) {\n log(\"Google Play services is available\");\n return true;\n } else {\n log(\"Google Play services is not available\");\n showErrorDialog(resultCode);\n return false;\n }\n }", "public static boolean isServiceAvailable(Context context, String intentAction) {\n return new EmailServiceProxy(context, intentAction, null).test();\n }", "public boolean isGet();", "public boolean isServiceRunning();", "boolean hasResponse();", "boolean hasResponse();", "boolean hasResponse();", "boolean hasResponse();", "boolean hasResponse();", "boolean hasResponse();", "boolean hasResponse();", "boolean hasResponse();", "boolean hasResponse();", "public abstract boolean isAvailable();", "public abstract boolean isAvailable();", "public boolean servicingRequests() {\n return (isActive() && this.requests != 0) ? true : false;\n }", "<T> T getService(Class<T> type, boolean checkExistence);", "boolean isNetworkAvailable();", "public boolean getIsServiceBound () ;", "public boolean isApiAvailable(String string) {\n URL url;\n try {\n url = new URL(apiAddress + string);\n } catch (MalformedURLException e) {\n System.out.println(e);\n return false;\n }\n try {\n con = (HttpURLConnection) url.openConnection();\n } catch (IOException e) {\n System.out.println(e);\n return false;\n }\n try {\n con.connect();\n if (con.getResponseCode() == 200) {\n con.disconnect();\n return true;\n } else {\n return false;\n }\n } catch (IOException e) {\n System.out.println(e);\n return false;\n }\n }", "void checkForAccServices();", "@GET(\"system/status\")\n Call<InlineResponse200> getStatus();", "boolean hasSearchRequest();", "public boolean hasRequest (String name)\n {\n org.omg.CORBA.portable.InputStream $in = null;\n try {\n org.omg.CORBA.portable.OutputStream $out = _request (\"hasRequest\", true);\n $out.write_string (name);\n $in = _invoke ($out);\n boolean $result = $in.read_boolean ();\n return $result;\n } catch (org.omg.CORBA.portable.ApplicationException $ex) {\n $in = $ex.getInputStream ();\n String _id = $ex.getId ();\n throw new org.omg.CORBA.MARSHAL (_id);\n } catch (org.omg.CORBA.portable.RemarshalException $rm) {\n return hasRequest (name );\n } finally {\n _releaseReply ($in);\n }\n }", "@GuardedBy(\"mLock\")\n @VisibleForTesting\n boolean isServiceAvailableLocked() {\n if (mComponentName == null) {\n mComponentName = updateServiceInfoLocked();\n }\n return mComponentName != null;\n }", "boolean hasEndpoint();", "boolean hasClientRequest();", "boolean hasLocalSearchResponse();", "private boolean isNetworkAvailable() {\n // Create a connectivity manager and\n // get the service type currently in use (Wi-fi, 3g etc)\n ConnectivityManager cm = (ConnectivityManager)getSystemService(Context.CONNECTIVITY_SERVICE);\n // Get network info from the service\n NetworkInfo networkInfo = cm.getActiveNetworkInfo();\n\n // return true or false based on connection\n return (networkInfo != null)\n && networkInfo.isConnected()\n && networkInfo.isAvailable();\n }", "public ServiceInfo getServiceStatus(String url) throws IOException {\n Request request = new Request.Builder().url(url).build();\n Response response = client.newCall(request).execute();\n serviceInfo = new ServiceInfo(response.code(),\n response.message(),response.receivedResponseAtMillis());\n return serviceInfo;\n }", "boolean hasFindGamesRequest();", "private boolean isServiceOk(){\n Log.d(TAG, \"isServiceOk: checking google service version\");\n\n int available = GoogleApiAvailability.getInstance().isGooglePlayServicesAvailable(FormularioCurso.this);\n\n if (available == ConnectionResult.SUCCESS){\n //Everything is fine and the user can make map request\n return true;\n } else if(GoogleApiAvailability.getInstance().isUserResolvableError(available)){\n //an error ocured but we can resolt it\n Log.d(TAG, \"isServiceOk: an error occures but we can fix it\");\n Dialog dialog = GoogleApiAvailability.getInstance().getErrorDialog(FormularioCurso.this, available, ERROR_DIALOG_REQUEST);\n dialog.show();\n }else{\n Toast.makeText(this, \"You can't make map request\", Toast.LENGTH_SHORT).show();\n }\n return false;\n }", "private void checkForCarServiceConnection() {\r\n synchronized (mLock) {\r\n if (mCarService != null) {\r\n return;\r\n }\r\n }\r\n IBinder iBinder = ServiceManager.checkService(\"car_service\");\r\n if (iBinder != null) {\r\n if (DBG) {\r\n Slog.d(TAG, \"Car service found through ServiceManager:\" + iBinder);\r\n }\r\n handleCarServiceConnection(iBinder);\r\n }\r\n }", "public boolean hasService() {\n return serviceBuilder_ != null || service_ != null;\n }", "public boolean hasService() {\n return serviceBuilder_ != null || service_ != null;\n }", "public boolean hasService() {\n return serviceBuilder_ != null || service_ != null;\n }", "private boolean checkServiceIsRunning(){\r\n if (CurrentLocationUtil.isRunning()){\r\n doBindService();\r\n return true;\r\n }else{\r\n return false;\r\n }\r\n }", "boolean hasSearchResponse();", "public boolean isAvailable() {\r\n return isavailable;\r\n }", "boolean service(Request request, Response response) throws IOException;", "private boolean isNetworkAvailable() {\r\n ConnectivityManager connectivityManager \r\n = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\r\n NetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo();\r\n return activeNetworkInfo != null;\r\n }", "@Override\r\n protected Result check() throws Exception {\n try {\r\n Response response = webTarget.request().get();\r\n\r\n if (!response.getStatusInfo().getFamily().equals(Response.Status.Family.SUCCESSFUL)) {\r\n\r\n return Result.unhealthy(\"Received status: \" + response.getStatus());\r\n }\r\n\r\n return Result.healthy();\r\n } catch (Exception e) {\r\n\r\n return Result.unhealthy(e.getMessage());\r\n }\r\n }", "boolean hasLocalSearchRequest();", "public boolean isNetworkAvailable() {\n initNetwork();\n NetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo();\n return activeNetworkInfo != null && activeNetworkInfo.isConnected();\n}", "int isPlayServicesAvailable() {\n if (mGoogleApiAvailability_class != null) {\n String errorMsg;\n Throwable throwable;\n try {\n Method getInstance_method = mGoogleApiAvailability_class.getDeclaredMethod(\"getInstance\");\n Object googleApiAvailabilityInstance = getInstance_method.invoke(null);\n\n Method isPlayServicesAvailable_method = mGoogleApiAvailability_class.getDeclaredMethod(\n \"isGooglePlayServicesAvailable\", Context.class);\n Integer result = (Integer) isPlayServicesAvailable_method.invoke(googleApiAvailabilityInstance, mContext);\n Log.d(TAG, \"isPlayServicesAvailable(): isGooglePlayServicesAvailable returned: \" + result);\n switch (result) {\n case 0:\n //success\n return PLAY_SERVICES_AVAILABLE;\n case 2:\n //version update required\n return PLAY_SERVICES_SERVICE_VERSION_UPDATE_REQUIRED;\n default:\n //everything else\n return PLAY_SERVICES_UNAVAILABLE;\n }\n } catch (NoSuchMethodException e) {\n // in this case,\n errorMsg = \"isPlayServicesAvailable(): Unable to find method. This is an \" +\n \"incompatibility between Google Play Services and Magnet.\";\n throwable = e;\n } catch (InvocationTargetException e) {\n errorMsg = \"isPlayServicesAvailable(): Unable to invoke method. This is an \" +\n \"incompatibility between Google Play Services and Magnet.\";\n throwable = e;\n } catch (IllegalAccessException e) {\n errorMsg = \"isPlayServicesAvailable(): Unable to access method. This is an \" +\n \"incompatibility between Google Play Services and Magnet.\";\n throwable = e;\n } catch (Exception e) {\n errorMsg = \"isPlayServicesAvailable(): Unknown error occurred.\";\n throwable = e;\n }\n Log.e(TAG, errorMsg, throwable);\n return PLAY_SERVICES_MAGNET_VERSION_INCOMPATIBILITY;\n } else {\n return PLAY_SERVICES_UNAVAILABLE;\n }\n }", "boolean isAllowClusterGet();", "public Boolean ping() throws CallError, InterruptedException {\n return (Boolean)service.call(\"ping\").get();\n }", "boolean hasSer();", "boolean hasStatus();", "boolean hasStatus();", "boolean hasStatus();", "boolean hasStatus();", "boolean hasStatus();", "boolean hasStatus();", "boolean hasStatus();", "boolean hasStatus();", "boolean hasStatus();", "boolean hasStatus();", "boolean hasStatus();", "boolean hasStatus();", "boolean hasStatus();", "boolean hasStatus();", "boolean hasStatus();", "boolean hasStatus();", "boolean hasStatus();" ]
[ "0.72315264", "0.72315264", "0.72315264", "0.72315264", "0.72315264", "0.6824167", "0.67169076", "0.66030693", "0.66030693", "0.66030693", "0.66030693", "0.66030693", "0.66030693", "0.66030693", "0.66030693", "0.66030693", "0.66030693", "0.6569127", "0.6536059", "0.6462069", "0.6462069", "0.6462069", "0.6462069", "0.6394534", "0.6340396", "0.6330336", "0.63126755", "0.6271817", "0.6226626", "0.62149817", "0.62149817", "0.62149817", "0.61682206", "0.61682206", "0.6167619", "0.6167157", "0.61214805", "0.6118665", "0.6109881", "0.60506654", "0.604166", "0.604166", "0.604166", "0.604166", "0.604166", "0.604166", "0.604166", "0.604166", "0.604166", "0.6014169", "0.6014169", "0.5982091", "0.59751624", "0.59663546", "0.5962394", "0.59212124", "0.5908369", "0.5872618", "0.58644456", "0.58439076", "0.58406854", "0.58319986", "0.5828499", "0.5824032", "0.58049303", "0.5803644", "0.5781911", "0.57772535", "0.5769337", "0.57522655", "0.57522655", "0.57522655", "0.5751361", "0.5738267", "0.5701358", "0.56865084", "0.56730855", "0.5658655", "0.56531763", "0.56505066", "0.56502306", "0.5647459", "0.56427115", "0.5641149", "0.56353575", "0.56353575", "0.56353575", "0.56353575", "0.56353575", "0.56353575", "0.56353575", "0.56353575", "0.56353575", "0.56353575", "0.56353575", "0.56353575", "0.56353575", "0.56353575", "0.56353575", "0.56353575", "0.56353575" ]
0.0
-1
With a keyword in request object, this function will call multiple domain servers to fetch corresponding related information.
public SearchResponse search(SearchRequest request) throws SearchServiceException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void search() {\n\t\tList<Domain> domains = DomainService.findAll();\n\t\t\n\t\tlogger.info(\"{} domains selected to search\", domains.size());\n\t\t\n\t\tMap<String, Integer> sourceMap = getSourceMap();\n\t\tString currentDomain = \"\";\n\t\t\n\t\tMap<String, SearchResult> resultMap = new HashMap<String, SearchResult>();\n\t\t\n\t\tfor (Domain domain : domains) {\n\t\t\tcurrentDomain = domain.getName();\n\t\t\t\n\t\t\tlogger.info(\"{} domain searching started\", currentDomain);\n\t\t\t\n\t\t\t// The last search time prevents getting the same articles which were already retrieved at the last search\n\t\t\tString lastSearch = MongoService.getLastSearchTime(currentDomain);\t\t\t\n\t\t\tMongoService.setLastSearchTime(currentDomain, DatetimeUtil.getUTCDatetime());\n\t\t\t\n\t\t\tlogger.info(\"{} domain last searched {}\", currentDomain, lastSearch);\n\t\t\t\n\t\t\tList<String> domainKeywords = domain.getKeywords();\n\t\t\tList<Source> sources = domain.getSources();\n\t\t\t\n\t\t\tList<String> sourceNames = new ArrayList<String>();\n\t\t\tfor (Source source : sources) {\n\t\t\t\tsourceNames.add(source.getDomain());\n\t\t\t}\n\t\t\t\n\t\t\tList<Topic> topics = domain.getTopics();\n\t\t\t\n\t\t\t// If the domain contains any topic, get the topic keywords and merge them with the domain keywords. \n\t\t\tif (topics.size() > 0) {\n\t\t\t\tfor (Topic topic : topics) {\n\t\t\t\t\tList<String> topicKeywords = topic.getKeywords();\n\t\t\t\t\t\n\t\t\t\t\tList<String> ids = Searcher.search(sourceNames, lastSearch, domainKeywords, topicKeywords);\n\t\t\t\t\t\n\t\t\t\t\tfor (String id : ids) {\n\t\t\t\t\t\tif (resultMap.containsKey(id)) {\n\t\t\t\t\t\t\tSearchResult result = resultMap.get(id);\n\t\t\t\t\t\t\tArticle article = result.getArticle();\n\t\t\t\t\t\t\tarticle.attachTopic(topic);\n\t\t\t\t\t\t\tarticle.attachDomain(domain);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSearchResult result;\t\t\t\t\t\t\t\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tresult = new SearchResult(id);\n\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tArticle article = result.getArticle();\n\t\t\t\t\t\t\tArticleDocument doc = result.getDoc();\n\t\t\t\t\t\t\tarticle.attachDomain(domain);\n\t\t\t\t\t\t\tarticle.setSourceId(sourceMap.get(doc.getSource()));\n\t\t\t\t\t\t\tarticle.attachTopic(topic);\n\t\t\t\t\t\t\tresultMap.put(id, result);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tList<String> ids = Searcher.search(sourceNames, lastSearch, domainKeywords, null);\n\t\t\t\t\n\t\t\t\tfor (String id : ids) {\n\t\t\t\t\tSearchResult result;\n\t\t\t\t\t\n\t\t\t\t\ttry {\n\t\t\t\t\t\tresult = new SearchResult(id);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tArticle article = result.getArticle();\n\t\t\t\t\tArticleDocument doc = result.getDoc();\n\t\t\t\t\tarticle.attachDomain(domain);\n\t\t\t\t\tarticle.setSourceId(sourceMap.get(doc.getSource()));\n\t\t\t\t\tresultMap.put(id, result);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tfor (Map.Entry<String, SearchResult> entry : resultMap.entrySet())\n\t\t\t{\n\t\t\t\tlogger.info(\" {} : {}\", entry.getValue().getArticle().getTitle(), entry.getValue().getArticle().getUrl());\n\t\t\t}\n\t\t}\n\t\t\n\t\tinsertArticles(resultMap);\n\t}", "@Override\r\n\tpublic List<Map<String, Object>> selectTargetList(HttpServletRequest request) throws Exception {\n\r\n\t\tString host = request.getParameter(\"host\");\r\n\t\t\r\n\t\treturn dao.selectTargetList(host);\r\n\t}", "@Override\n\tpublic List<Map<String,String>> dispatchRequest(Map<String, String[]> request) {\n\n\t\t// ********* LOGGING ********* \n\t\tSystem.out.println(\"reached DispatchRequest\");\n\t\tSystem.out.println(\"Request Keys : \");\n\t\tSystem.out.println(request.keySet());\n\t\t// ********* LOGGING ********* \n\n\n\t\tString classPrefix = request.get(\"requestID\")[0]; \n\n\t\t// ********* LOGGING ********* \n\t\tSystem.out.println(\"class name : \"+PACKAGE_NAME+classPrefix+CLASS_SUFFIX);\n\t\t// ********* LOGGING ********* \n\n\t\t// obtain class reference\t\t\n\t\tiManagementRequestHandlerObject = (IManagementRequestHandler) \n\t\t\t\tiReflectionManagerObject.getClass(PACKAGE_NAME+classPrefix+CLASS_SUFFIX);\n\n\t\t// ********* LOGGING *********\n\t\tSystem.out.println(\"object reference : \"+ iManagementRequestHandlerObject);\n\t\t// ********* LOGGING *********\n\n\t\t// Delegate the request to the appropriate class.\n\t\treturn (iManagementRequestHandlerObject.handleManagementRequest(request));\n\n\t}", "public void getDomain(){\n String requestDomain = IPAddressTextField.getText();\n Connection conn = new Connection();\n\n String ip = conn.getDomain(requestDomain);\n\n output.writeln(requestDomain + \" --> \" + ip);\n }", "private void handleRequest(Request request) throws IOException{\n switch (request){\n case NEXTODD:\n case NEXTEVEN:\n new LocalThread(this, request, nextOddEven).start();\n break;\n case NEXTPRIME:\n case NEXTEVENFIB:\n case NEXTLARGERRAND:\n new NetworkThread(this, userID, serverIPAddress, request).start();\n break;\n default:\n break;\n }\n }", "protected void fetch() {\n HttpClient client = new HttpClient();\n client.getHostConfiguration().setHost(HOST, PORT, SCHEME);\n\n List<String> prefectures = getCodes(client, PATH_PREF, \"pref\");\n List<String> categories = getCodes(client, PATH_CTG, \"category_s\");\n\n // This is a workaround for the gnavi API.\n // Gnavi API only allows max 1000 records for output.\n // Therefore, we divide records into smaller pieces\n // by prefectures and categories.\n for (String prefecture: prefectures) {\n for (String category: categories) {\n logger.debug(\"Prefecture: {}\", prefecture);\n logger.debug(\"Category: {}\", category);\n getVenues(client, prefecture, category, 1);\n }\n }\n }", "void getDomains(AsyncCallback<List<RoutingDomainSelDTO>> callback);", "public void run() {\n\n\t\tlistenSocket = createListen();\n\n\t\tstopping = stopping && (listenSocket != null);\n\n\t\tlog(\"DummyDNS server started .at \" + listenSocket.getLocalPort());\n\n\t\twhile (!stopping) { // master server loop read query, lookup, respond\n\n\t\t\ttry {\n\t\t\t\tDNSQuery query = new DNSQuery(); // get next query\n\t\t\t\tbyte[] addr = null;\n\t\t\t\tquery.getQuery(listenSocket);\n\n\t\t\t\tif ((query.getQueryType() == DNS.TYPE_A)\n\t\t\t\t\t\t|| (query.getQueryType() == DNS.TYPE_ANY)) {\n\n\t\t\t\t\taddr = onlyOne; // lookup name to addr\n\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\n\t\t\t\tquery.sendResponse(listenSocket, addr); // send response & log\n\t\t\t\tlog(\"DummyDNS query from \"\n\t\t\t\t\t\t+ query.getClientHost().getHostAddress() + \" (\"\n\t\t\t\t\t\t+ query.getQueryID() + \") \"\n\t\t\t\t\t\t+ DNS.typeName(query.getQueryType()) + \" for [\"\n\t\t\t\t\t\t+ query.getQueryHost() + \"] = \" + showAddr(addr));\n\t\t\t} catch (IOException e) {\n\t\t\t\tlog(\"DummyDNS bad query: \" + e);\n\t\t\t}\n\n\t\t}\n\t\t\n\t\tif (!listenSocket.isClosed()) {\n\t\t\tlistenSocket.close();\n\t\t}\n\n\t\tGlobal.getInstance().dnsInfo.isRunning = false;\n\t}", "private ArrayList<String> resolve(String domain, InetAddress dnsServer) {\n // Pointer\n int pos = 12;\n // Cmd buffer\n byte[] sendBuffer = new byte[100];\n // Message head\n sendBuffer[0] = ID[0];\n sendBuffer[1] = ID[1];\n sendBuffer[2] = 0x01;\n sendBuffer[3] = 0x00;\n sendBuffer[4] = 0x00;\n sendBuffer[5] = 0x01;\n sendBuffer[6] = 0x00;\n sendBuffer[7] = 0x00;\n sendBuffer[8] = 0x00;\n sendBuffer[9] = 0x00;\n sendBuffer[10] = 0x00;\n sendBuffer[11] = 0x00;\n\n // Add domain\n String[] part = domain.split(\"\\\\.\");\n for (String s : part) {\n if (s == null || s.length() <= 0)\n continue;\n int sLength = s.length();\n sendBuffer[pos++] = (byte) sLength;\n int i = 0;\n char[] val = s.toCharArray();\n while (i < sLength) {\n sendBuffer[pos++] = (byte) val[i++];\n }\n }\n\n // 0 end\n sendBuffer[pos++] = 0x00;\n sendBuffer[pos++] = 0x00;\n // 1 A record query\n sendBuffer[pos++] = 0x01;\n sendBuffer[pos++] = 0x00;\n // Internet record query\n sendBuffer[pos++] = 0x01;\n\n /**\n * UDP Send\n */\n DatagramSocket ds = null;\n byte[] receiveBuffer = null;\n try {\n ds = new DatagramSocket();\n ds.setSoTimeout(TIME_OUT);\n\n // Send\n DatagramPacket dp = new DatagramPacket(sendBuffer, pos, dnsServer, 53);\n ds.send(dp);\n\n // Receive\n dp = new DatagramPacket(new byte[512], 512);\n ds.receive(dp);\n\n // Copy\n int len = dp.getLength();\n receiveBuffer = new byte[len];\n System.arraycopy(dp.getData(), 0, receiveBuffer, 0, len);\n } catch (UnknownHostException e) {\n mError = Cmd.UNKNOWN_HOST_ERROR;\n } catch (SocketException e) {\n mError = Cmd.NETWORK_SOCKET_ERROR;\n e.printStackTrace();\n } catch (IOException e) {\n mError = Cmd.NETWORK_IO_ERROR;\n e.printStackTrace();\n } finally {\n if (ds != null) {\n try {\n ds.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }\n\n /**\n * Resolve data\n */\n\n // Check is return\n if (mError != Cmd.SUCCEED || receiveBuffer == null)\n return null;\n\n // ID\n if (receiveBuffer[0] != ID[0] || receiveBuffer[1] != ID[1]\n || (receiveBuffer[2] & 0x80) != 0x80)\n return null;\n\n // Count\n int queryCount = (receiveBuffer[4] << 8) | receiveBuffer[5];\n if (queryCount == 0)\n return null;\n\n int answerCount = (receiveBuffer[6] << 8) | receiveBuffer[7];\n if (answerCount == 0)\n return null;\n\n // Pointer restore\n pos = 12;\n\n // Skip the query part head\n for (int i = 0; i < queryCount; i++) {\n while (receiveBuffer[pos] != 0x00) {\n pos += receiveBuffer[pos] + 1;\n }\n pos += 5;\n }\n\n // Get ip form data\n ArrayList<String> iPs = new ArrayList<>();\n for (int i = 0; i < answerCount; i++) {\n if (receiveBuffer[pos] == (byte) 0xC0) {\n pos += 2;\n } else {\n while (receiveBuffer[pos] != (byte) 0x00) {\n pos += receiveBuffer[pos] + 1;\n }\n pos++;\n }\n byte queryType = (byte) (receiveBuffer[pos] << 8 | receiveBuffer[pos + 1]);\n pos += 8;\n int dataLength = (receiveBuffer[pos] << 8 | receiveBuffer[pos + 1]);\n pos += 2;\n // Add ip\n if (queryType == (byte) 0x01) {\n int address[] = new int[4];\n for (int n = 0; n < 4; n++) {\n address[n] = receiveBuffer[pos + n];\n if (address[n] < 0)\n address[n] += 256;\n }\n iPs.add(String.format(\"%s.%s.%s.%S\", address[0], address[1], address[2], address[3]));\n }\n pos += dataLength;\n }\n return iPs;\n }", "private Collection<Record> handleRequest(SearchRequest request) {\n\t\tCollection<Record> resultSet = getResults(request.getQuery());\n\t\treturn resultSet;\n\t}", "private Object proxyGet (Request request, Response response) {\n\n final long startTimeMsec = System.currentTimeMillis();\n\n final String bundleId = request.params(\"bundleId\");\n final String workerVersion = request.params(\"workerVersion\");\n\n WorkerCategory workerCategory = new WorkerCategory(bundleId, workerVersion);\n String address = broker.getWorkerAddress(workerCategory);\n if (address == null) {\n Bundle bundle = null;\n // There are no workers that can handle this request. Request one and ask the UI to retry later.\n final String accessGroup = request.attribute(\"accessGroup\");\n final String userEmail = request.attribute(\"email\");\n WorkerTags workerTags = new WorkerTags(accessGroup, userEmail, \"anyProjectId\", bundle.regionId);\n broker.createOnDemandWorkerInCategory(workerCategory, workerTags);\n response.status(HttpStatus.ACCEPTED_202);\n response.header(\"Retry-After\", \"30\");\n response.body(\"Starting worker.\");\n return response;\n } else {\n // Workers exist in this category, clear out any record that we're waiting for one to start up.\n // FIXME the tracking of which workers are starting up should really be encapsulated using a \"start up if needed\" method.\n broker.recentlyRequestedWorkers.remove(workerCategory);\n }\n\n String workerUrl = \"http://\" + address + \":7080/single\"; // TODO remove hard-coded port number.\n LOG.info(\"Re-issuing HTTP request from UI to worker at {}\", workerUrl);\n\n\n HttpClient httpClient = HttpClient.newBuilder().build();\n HttpRequest httpRequest = HttpRequest.newBuilder()\n .GET()\n .uri(URI.create(workerUrl))\n .header(\"Accept-Encoding\", \"gzip\") // TODO Explore: is this unzipping and re-zipping the result from the worker?\n .build();\n try {\n response.status(0);\n // content-type response.header();\n return httpClient.send(httpRequest, HttpResponse.BodyHandlers.ofInputStream());\n } catch (Exception exception) {\n response.status(HttpStatus.BAD_GATEWAY_502);\n response.body(ExceptionUtils.stackTraceString(exception));\n return response;\n } finally {\n\n }\n }", "private void requestServerToGetInformation() {\n Net net = Net.getInstance();\n Log.i(TAG, \"requestServerToGetInformation: Start connect server\");\n net.get(AppConstant.SERVER_COMBO_URL, new Callback() {\n @Override\n public void onFailure(Call call, IOException e) {\n Log.i(TAG, \"onFailure: connect error; \" + e.getMessage());\n }\n @Override\n public void onResponse(Call call, Response response) throws IOException {\n // get the JSON from responses.\n String jsonStr = response.body().string();\n Log.i(TAG, \"onResponse: --------------------------------\" + jsonStr);\n parseJsonAndUpdateView(jsonStr.trim());\n }\n });\n }", "private void handleEntitiesQuery(RoutingContext routingContext) {\n LOGGER.debug(\"Info:handleEntitiesQuery method started.;\");\n /* Handles HTTP request from client */\n JsonObject authInfo = (JsonObject) routingContext.data().get(\"authInfo\");\n LOGGER.debug(\"authInfo : \" + authInfo);\n HttpServerRequest request = routingContext.request();\n /* Handles HTTP response from server to client */\n HttpServerResponse response = routingContext.response();\n // get query paramaters\n MultiMap params = getQueryParams(routingContext, response).get();\n MultiMap headerParams = request.headers();\n // validate request parameters\n Future<Boolean> validationResult = validator.validate(params);\n validationResult.onComplete(validationHandler -> {\n if (validationHandler.succeeded()) {\n // parse query params\n NGSILDQueryParams ngsildquery = new NGSILDQueryParams(params);\n if (isTemporalParamsPresent(ngsildquery)) {\n ValidationException ex =\n new ValidationException(\"Temporal parameters are not allowed in entities query.\");\n ex.setParameterName(\"[timerel,time or endtime]\");\n routingContext.fail(ex);\n }\n // create json\n QueryMapper queryMapper = new QueryMapper();\n JsonObject json = queryMapper.toJson(ngsildquery, false);\n Future<List<String>> filtersFuture =\n catalogueService.getApplicableFilters(json.getJsonArray(\"id\").getString(0));\n /* HTTP request instance/host details */\n String instanceID = request.getHeader(HEADER_HOST);\n json.put(JSON_INSTANCEID, instanceID);\n LOGGER.debug(\"Info: IUDX query json;\" + json);\n /* HTTP request body as Json */\n JsonObject requestBody = new JsonObject();\n requestBody.put(\"ids\", json.getJsonArray(\"id\"));\n filtersFuture.onComplete(filtersHandler -> {\n if (filtersHandler.succeeded()) {\n json.put(\"applicableFilters\", filtersHandler.result());\n if (json.containsKey(IUDXQUERY_OPTIONS)\n && JSON_COUNT.equalsIgnoreCase(json.getString(IUDXQUERY_OPTIONS))) {\n executeCountQuery(json, response);\n } else {\n executeSearchQuery(json, response);\n }\n } else {\n LOGGER.error(\"catalogue item/group doesn't have filters.\");\n }\n });\n } else if (validationHandler.failed()) {\n LOGGER.error(\"Fail: Validation failed\");\n handleResponse(response, ResponseType.BadRequestData,\n validationHandler.cause().getMessage());\n }\n });\n }", "protected JSON loadDomain(HttpServletRequest request) throws WebOSBOException {\r\n\t try {\r\n List<JSON> jsons = new ArrayList<JSON>();\r\n JSONObject json = null;\r\n \r\n if(this.category.equals(DOMAIN)) {\r\n List<LdapMailDomain> domains = this.domainManager.findActiveDomain();\r\n \r\n // there is no active domain\r\n if(domains == null) return SUCCESS_JSON;\r\n // create the list to contain JSON object\r\n for(LdapMailDomain domain : domains) {\r\n json = new JSONObject();\r\n json.accumulate(IContactInfoService.DOMAIN_NAME, domain.getDomainName())\r\n .accumulate(IContactInfoService.DOMAIN_DESC, StringService.hasLength(domain.getDescription())?domain.getDescription(): \" \");\r\n jsons.add(json);\r\n }\r\n }else if(this.category.equals(GROUP)) {\r\n List<LdapGroup> groups = this.groupManager.findAllRealGroups(getDomain());\r\n \r\n // there is no active domain\r\n if(groups == null) return SUCCESS_JSON;\r\n // create the list to contain JSON object\r\n for(LdapGroup group : groups) {\r\n json = new JSONObject();\r\n json.accumulate(IContactInfoService.DOMAIN_NAME, group.getName())\r\n .accumulate(IContactInfoService.DOMAIN_DESC, \r\n StringService.hasLength(group.getDescription())\r\n ?group.getDescription(): \" \");\r\n jsons.add(json);\r\n }\r\n }\r\n \r\n // convert to JSON array\r\n return JSONService.toJSONArray(jsons); \r\n } catch (LotusException ex) {\r\n logger.error(\"ERROR while load domain\", ex);\r\n return FAILURE_JSON;\r\n }\r\n\t}", "private List loadTargetList(HttpServletRequest request) {\n\t\tTargetDao targetDao = (TargetDao) getBean(\"TargetDao\");\n\t\treturn targetDao.getTargets(AgnUtils.getCompanyID(request));\n\t\t\n\t}", "private static void sendLookupRequest(String dnsName) {\n String request = \"lookup \" + dnsName;\n out.println(request);\n }", "public void fetchResults() {\n String requestUrl = \"http://192.168.1.40:8090/trending\";\n StringRequest request = new StringRequest(\n Request.Method.POST,\n requestUrl,\n trendingGetData,\n errorListener){\n\n protected Map<String, String> getParams() throws com.android.volley.AuthFailureError {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"memberID\", \"MMM111\");\n return params;\n };\n };\n RequestQueue queue = Volley.newRequestQueue(this);\n queue1 = Volley.newRequestQueue(this);\n queue2 = Volley.newRequestQueue(this);\n queue.add(request);\n }", "private void doRemoteSearch(String query) {\n Calendar cal = Calendar.getInstance();\n cal.set(Calendar.YEAR,2018);\n cal.set(Calendar.MONTH,12);\n\n String[] titles = {\"Search Party\", \"Lunchtime Search Basketball\", \"Search Games\", \"Pickup Soccer Search\"};\n\n for(int i = 0 ; i < 10; i++ ) {\n cal.set(Calendar.DAY_OF_MONTH,i);\n eventList.add(new Event(titles[i % titles.length], \"test description\", \"test host\", cal.getTime(),cal.getTime(), cal.getTime(), \"test category\", \"test URL\", \"test owner\", \"test location\"));\n }\n }", "@Override\r\n\t\t\tpublic void handle(final HttpServerRequest req) {\n\t\t\t\tString startTime = \"1355562000000\"; //--multi-dist\r\n\t\t\t\tIterator<EventInfo> iter = \r\n\t\t\t\t\t\tdataService.events()\r\n\t\t\t\t\t\t\t.find(\"{timestamp:{$gt:\"+startTime+\"}}\")\r\n\t\t\t\t\t\t\t.sort(\"{timestamp:1}\")\r\n\t\t\t\t\t\t\t.as(EventInfo.class).iterator();\r\n\t\t\t\tEventCounter multiCounter = new EventCounter(\"/multi\");\r\n\t\t\t\tint processed = 0;\r\n\t\t\t\twhile (iter.hasNext() && processed < limit) {\r\n\t\t\t\t\tEventInfo event = iter.next();\r\n\t\t\t\t\tmultiCounter.countEvent(event);\r\n\t\t\t\t\tprocessed++;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\treq.response.setChunked(true);\r\n\t\t\t\tmultiCounter.printDistance(req, \"multidist\");\r\n\t\t\t\t//multiCounter.printResponse(req, \"multidist\");\r\n\t\t\t\t//use response time data\r\n\t\t\t\tIterator<ResponseInfo> respIter = \r\n\t\t\t\t\t\tdataService.response()\r\n\t\t\t\t\t\t\t.find(\"{timestamp:{$gt:\"+startTime+\"}}\")\r\n\t\t\t\t\t\t\t.sort(\"{timestamp:1}\")\r\n\t\t\t\t\t\t\t.as(ResponseInfo.class).iterator();\r\n\t\t\t\tResponseCounter responseCounter = new ResponseCounter();\r\n\t\t\t\tprocessed = 0;\r\n\t\t\t\twhile (respIter.hasNext() && processed < limit) {\r\n\t\t\t\t\tResponseInfo resp = respIter.next();\r\n\t\t\t\t\tresponseCounter.count(resp);\r\n\t\t\t\t\tprocessed++;\r\n\t\t\t\t}\r\n\t\t\t\tresponseCounter.printResponse(req, \"multidist\");\r\n\r\n\t\t\t\treq.response.end();\r\n\t\t\t}", "public interface RequestURLs {\n String DEFAULT_URL = \"http://aperturedev.co.kr:21002/petcommunity/\";\n\n /*\n 매칭 서비스 관련\n */\n String GET_PET_TYPES = DEFAULT_URL + \"services/get-pettypes.php\"; // 강아지 종을 가져온다.\n String REGIST_MATCH_PET = DEFAULT_URL + \"matching/regist-new-pet.php\"; // 팻 등록 실시\n String MATCHING_OTHER_PET = DEFAULT_URL + \"matching/matching.php\"; // 매칭할 팻을 하나 가져옵니다.\n\n /*\n 사용자 정보 관련\n */\n String GET_USER_INFO = DEFAULT_URL + \"users/get-info.php\"; // UUID -> 사용자 정보\n String REGIST_SERVICE = DEFAULT_URL + \"users/signup.php\"; // 회원가입을 실시한다.\n String IS_REGIST_SERVICE = DEFAULT_URL + \"/users/is-registed.php\"; // 회원가입 되어 있는지 확인한다.\n String LOGIN_SERVICE = DEFAULT_URL + \"users/signin.php\"; // 로그인 처리한다.\n\n\n\n\n}", "void getRequests();", "private void fetchData() {\r\n RequesterBean requesterBean = new RequesterBean();\r\n requesterBean.setDataObject(hierarchyTitle);\r\n requesterBean.setFunctionType(GET_HIERARCHY_DATA);\r\n AppletServletCommunicator conn = new AppletServletCommunicator(connect,requesterBean);\r\n conn.send();\r\n ResponderBean responderBean = conn.getResponse();\r\n if(responderBean != null) {\r\n if(responderBean.isSuccessfulResponse()) {\r\n queryKey = hierarchyTitle;\r\n Hashtable htData = (Hashtable)responderBean.getDataObject();\r\n extractToQueryEngine(htData);\r\n }\r\n }else {\r\n //Server Error\r\n// throw new CoeusUIException(responderBean.getMessage(),CoeusUIException.ERROR_MESSAGE);\r\n }\r\n }", "public static void main(String[] args) {\n\n // Makes sure correct number of args are present\n if(args.length < 2 || args.length > 3){\n System.err.println(\"Invalid number of arguments\");\n System.err.println(\"Usage:\\n./351dns [-ns|-mx] @<server:port> <name>\\n\" +\n \"-ns or -mx (optional) If the name server or mail server should be queried\\n\" +\n \"port (Optional) The UDP port number of the DNS server. Default value: 53.\\n\" +\n \"server (Required) The IP address of the DNS server, in a.b.c.d format.\\n\" +\n \"name (Required) The name to query for\");\n System.exit(1);\n }\n\n int requiredArgsIndex = 0;\n\n // Hard-coded request type\n String requestType = \"a\";\n\n // If there is an optional flag, offset required arg indices by 1\n if(args.length == 3){\n requiredArgsIndex++;\n\n if(args[0].equals(\"-ns\")){\n requestType = \"ns\";\n }\n else if (args[0].equals(\"-mx\")){\n requestType = \"mx\";\n }\n else{\n System.err.println(\"Invalid optional flag\");\n System.err.println(\"Usage:\\n./351dns [-ns|-mx] @<server:port> <name>\\n\" +\n \"-ns or -mx (optional) If the name server or mail server should be queried\\n\" +\n \"port (Optional) The UDP port number of the DNS server. Default value: 53.\\n\" +\n \"server (Required) The IP address of the DNS server, in a.b.c.d format.\\n\" +\n \"name (Required) The name to query for\");\n System.exit(1);\n }\n\n }\n\n String address = args[requiredArgsIndex];\n\n // Ensures the DNS ip is preceded with an '@' symbol\n if(address.charAt(0) != '@'){\n System.err.println(\"Invalid formatting on address\");\n System.err.println(\"Usage:\\n./351dns [-ns|-mx] @<server:port> <name>\\n\" +\n \"-ns or -mx (optional) If the name server or mail server should be queried\\n\" +\n \"port (Optional) The UDP port number of the DNS server. Default value: 53.\\n\" +\n \"server (Required) The IP address of the DNS server, in a.b.c.d format.\\n\" +\n \"name (Required) The name to query for\");\n System.exit(1);\n }\n\n // Splits the address into the ip and the port\n String[] splitAddress = address.substring(1).split(\":\");\n\n // Sets default port\n int port = 53;\n\n // If a port is designated, sets port\n if(splitAddress.length == 2){\n port = Integer.parseInt(splitAddress[1]);\n }\n\n // Byte array to hold the server ip\n byte[] serverIP = new byte[4];\n\n // Splits the IP by the '.'\n String[] ipBytes = splitAddress[0].split(\"\\\\.\");\n\n // Ensures that IP is in proper format\n if(ipBytes.length != 4) {\n System.out.println(\"Server IP address must be in a.b.c.d format: \" + splitAddress[0]);\n System.exit(1);\n }\n\n // Converts the IP to bytes\n for(int i = 0; i < 4; i++) {\n serverIP[i] = (byte) Integer.parseInt(ipBytes[i]);\n }\n \n String name = args[requiredArgsIndex+1];\n\n // Creates the byte payload to be sent to the DNS server\n byte[] request = createRequest(name, requestType);\n\n // Prints request to stdout\n dumpPacket(request, request.length);\n\n // Array to hold DNS response\n byte[] responseData = new byte[512];\n\n try {\n\n // Creates a socket to send and receive the DNS query and response\n DatagramSocket socket = new DatagramSocket();\n\n // Specifically parse the IP into a byte array by hand because we cant use getByName\n DatagramPacket dnsReq = new DatagramPacket(request, request.length, InetAddress.getByAddress(serverIP), port);\n DatagramPacket dnsResponse = new DatagramPacket(responseData, 512);\n\n // Sends the DNS request\n socket.send(dnsReq);\n\n // Creates a time to time out the request, used if it keeps recieving junk data\n Instant timeout = Instant.now().plusSeconds(5);\n\n // Sets the time to time out if the socket does not receive any data\n socket.setSoTimeout(5000);\n\n while(true) {\n\n // Wait to receive data from the set port\n socket.receive(dnsResponse);\n\n // If the data matches the expected data, break loop\n if (responseData[0] != request[0] && responseData[1] != request[1]) {\n } else {\n break;\n }\n\n // If the system has not received the response in 5 seconds\n if(Instant.now().isAfter(timeout)) {\n System.out.println(\"NORESPONSE\");\n System.exit(1);\n }\n }\n } catch(SocketException e) {\n System.out.println(\"ERROR\\tCould not bind to a datagram socket.\");\n System.exit(1);\n } catch (UnknownHostException e) {\n System.out.println(\"ERROR\\t\" + splitAddress[0] + \" is not a valid IP address.\");\n System.exit(1);\n } catch (SocketTimeoutException e) {\n System.out.println(\"NORESPONSE\");\n System.exit(1);\n } catch (IOException e) {\n System.out.println(\"ERROR\\tCould not send packet to server.\");\n System.exit(1);\n }\n\n // Parses the response and prints the data\n parseResponse(responseData);\n\n }", "public abstract NamedList<Object> request(final SolrRequest request) throws SolrServerException, IOException;", "public Object getDomain ();", "Call mo35727a(Request request);", "public FetchBaseDNsRunnable( IBrowserConnection connection )\n {\n this.connection = connection;\n this.baseDNs = new ArrayList<String>();\n }", "private Future<List<JsonObject>> fetch(Map<String, List<String>> request) {\n Promise<List<JsonObject>> p = Promise.promise();\n List<String> resIds = new ArrayList<>();\n\n if (request.containsKey(RES)) {\n resIds.addAll(request.get(RES));\n\n // get resGrpId from resID\n resIds.addAll(\n resIds.stream()\n .map(e -> e.split(\"/\"))\n .map(obj -> obj[0] + \"/\" + obj[1] + \"/\" + obj[2] + \"/\" + obj[3])\n .collect(Collectors.toList()));\n }\n\n if (request.containsKey(RES_GRP)) resIds.addAll(request.get(RES_GRP));\n\n List<String> distinctRes = resIds.stream().distinct().collect(Collectors.toList());\n\n List<Future> fetchFutures =\n distinctRes.stream().map(this::fetchItem).collect(Collectors.toList());\n\n CompositeFuture.all(fetchFutures)\n .onSuccess(\n successHandler -> {\n p.complete(\n fetchFutures.stream()\n .map(x -> (JsonObject) x.result())\n .collect(Collectors.toList()));\n })\n .onFailure(\n failureHandler -> {\n p.fail(failureHandler);\n });\n return p.future();\n }", "public QueryMapBySubdomain()\n\t{\n\t}", "public void sendGetRequest() {\r\n\t\tString[] requests = this.input.substring(4, this.input.length()).split(\" \"); \r\n\t\t\r\n\t\tif(requests.length <= 1 || !(MyMiddleware.readSharded)){\r\n\t\t\tnumOfRecipients = 1;\r\n\t\t\trecipient = servers.get(loadBalance());\r\n\r\n\t\t\trecipient.send(this, input);\r\n\t\t\tsendTime = System.nanoTime();\r\n\r\n\t\t\tworkerTime = sendTime - pollTime;\r\n\r\n\t\t\t\r\n\t\t\tif(requests.length <= 1) {\r\n\t\t\t\tnumOfGets++;\r\n\t\t\t\ttype= \"10\";\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tnumOfMultiGets++;\r\n\t\t\t\ttype = requests.length+\"\";\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tString reply = recipient.receive();\r\n\t\t\treceiveTime = System.nanoTime();\r\n\t\t\tprocessingTime = receiveTime - sendTime;\r\n\t\t\t\r\n\t\t\tint hit = 0;\r\n\t\t\thit += reply.split(\"VALUE\").length - 1;\r\n\t\t\tmiss += requests.length-hit;\r\n\r\n\t\t\tif(!(reply.endsWith(\"END\"))) {\r\n\t\t\t\tunproperRequests.add(reply);\r\n\t\t\t\tsendBack(currentJob.getClient(), reply);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tsendBack(currentJob.getClient(), reply);\r\n\r\n\t\t}\r\n\t\telse {\r\n\t\t\tnumOfMultiGets++;\r\n\t\t\ttype = requests.length+\"\";\r\n\t\t\tnumOfRecipients = servers.size();\r\n\t\t\trequestsPerServer = requests.length / servers.size();\r\n\t\t\tremainingRequests = requests.length % servers.size() ;\r\n\t\t\t\r\n\t\t\t//The worker thread sends a number of requests to each server equal to requestsPerServer \r\n\t\t\t//and at most requestsPerServer + remainingRequests\r\n\t\t\t\r\n\t\t\tfor(int i = 0; i < servers.size(); i++) {\r\n\t\t\t\tmessage = requestType;\r\n\t\t\t\tfor(int j = 0; j < requestsPerServer; j++){\r\n\t\t\t\t\tmessage += \" \";\r\n\t\t\t\t\tmessage += requests[requestsPerServer*i+j];\r\n\t\t\t\t\tif(i < remainingRequests) {\r\n\t\t\t\t\t\tmessage += \" \";\r\n\t\t\t\t\t\tmessage += requests[requests.length - remainingRequests + i];\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tservers.get(i).send(this, message);\r\n\t\t\t}\r\n\t\t\tsendTime = System.nanoTime();\r\n\r\n\t\t\tworkerTime = sendTime - pollTime;\r\n\r\n\t\t\tint hit = 0;\r\n\t\t\tfor(ServerHandler s : servers) {\r\n\t\t\t\tString ricevuto = s.receive();\r\n\t\t\t\thit += ricevuto.split(\"VALUE\").length - 1;\r\n\t\t\t\treplies.add(ricevuto);\r\n\t\t\t}\r\n\t\t\treceiveTime = System.nanoTime();\r\n\t\t\tprocessingTime = receiveTime - sendTime;\r\n\r\n\t\t\tmiss += requests.length-hit;\r\n\t\t\t\r\n\t\t\tfinalReply = \"\";\r\n\t\t\tfor(String reply : replies) {\r\n\t\t\t\tif(!(reply.endsWith(\"END\"))) {\r\n\t\t\t\t\tunproperRequests.add(reply);\r\n\t\t\t\t\tsendBack(currentJob.getClient(), reply);\r\n\t\t\t\t\treplies.clear();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\treply = reply.substring(0, reply.length() - 3);\r\n\t\t\t\t\tfinalReply += reply;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfinalReply += \"END\";\r\n\t\t\tsendBack(currentJob.getClient(), finalReply);\r\n\t\t\treplies.clear();\r\n\r\n\t\t}\r\n\t\t\r\n\t}", "abstract public void onQueryRequestArrived(ClientQueryRequest request);", "public static void refreshDomain()\n\t{\n\t API_APP_INFO = \"https://\"+DOMAIN+\"/api/a/iGET/app/oinfo?app_key=\";\n\t API_LOG_DEVICE_INFO = \"https://\"+DOMAIN+\"/api/a/POST/mobile/LogInstall?type=0\";\n\t API_GCM_REGISTER = \"https://\"+DOMAIN+\"/api/a/POST/Push/RegisterDevice\";\n\t API_EXCHANGE_TOKEN = \"https://\"+DOMAIN+\"/api/a/GET/me/exchangetoken?\";\n\t}", "private void processDialRequest(IQRequest request) throws Exception {\n\t\t\n\t\tif (getAdminService().isQuiesceMode()) {\n\t\t\tlog.warn(\"Gateway is on Quiesce mode. Discarding incoming dial request: [%s]\", request);\n\t\t\tsendIqError(request, Type.CANCEL, Condition.SERVICE_UNAVAILABLE, \"Gateway Server is on Quiesce Mode\");\n\t\t\treturn;\n\t\t}\n\t\t\t\t\t\t\n\t\tString platformId = gatewayStorageService.getPlatformForClient(request.getFrom());\n\t\tif (platformId != null) {\t\n\t\t\tsendDialRequest(request, platformId, new ArrayList<RayoNode>(), 0);\n\t\t} else {\n\t\t\tsendIqError(request, Type.CANCEL, Condition.SERVICE_UNAVAILABLE, \n\t\t\t\t\tString.format(\"Could not find associated platform for client JID %s\",request.getFrom()));\n\t\t}\n\t}", "private void runLocally() {\n\n // don't run if this is DAS **and** DAS is not in the server list.\n // otherwise we are in an instance and definitely want to run!\n if (isDas() && !dasIsInList())\n return;\n\n // say the pattern is \"something\" -->\n // we want \"server.something\" for DAS and \"i1.server.something\" for i1\n // Yes -- this is difficult to get perfect!!! What if user entered\n //\"server.something\"?\n\n String localPattern = prependServerDot(pattern);\n org.glassfish.flashlight.datatree.TreeNode tn = datareg.get(serverEnv.getInstanceName());\n\n if (tn == null) {\n // No monitoring data, so nothing to list\n // officially this is considered a \"success\"\n setSuccess(Strings.get(\"admin.get.monitoring.empty\"));\n return;\n }\n\n List<org.glassfish.flashlight.datatree.TreeNode> ltn = tn.getNodes(localPattern);\n boolean singleStat = false;\n\n if (ltn == null || ltn.isEmpty()) {\n org.glassfish.flashlight.datatree.TreeNode parent = tn.getPossibleParentNode(localPattern);\n\n if (parent != null) {\n ltn = new ArrayList<org.glassfish.flashlight.datatree.TreeNode>(1);\n ltn.add(parent);\n singleStat = true;\n }\n }\n\n if (!singleStat)\n localPattern = null; // signal to method call below. localPattern was already used above...\n\n if (outputType == OutputType.GET)\n doGet(localPattern, ltn);\n else if (outputType == OutputType.LIST)\n doList(localPattern, ltn);\n\n if (plainReporter != null) {\n plainReporter.appendMessage(cliOutput.toString());\n }\n }", "void handleRequest();", "public void handle_request(Request request){\n currentRequest.add(request);\n System.out.println(\"[Worker\"+String.valueOf(id)+\"] Received request of client \"+String.valueOf(request.getId()));\n }", "private void dispatchRequests(RoutingContext context) {\n int initialOffset = 5; // length of `/api/`\n // Run with circuit breaker in order to deal with failure\n circuitBreaker.execute(future -> {\n getAllEndpoints().setHandler(ar -> {\n if (ar.succeeded()) {\n List<Record> recordList = ar.result();\n // Get relative path and retrieve prefix to dispatch client\n String path = context.request().uri();\n if (path.length() <= initialOffset) {\n notFound(context);\n future.complete();\n return;\n }\n\n String prefix = (path.substring(initialOffset).split(\"/\"))[0];\n String newPath = path.substring(initialOffset + prefix.length());\n\n // Get one relevant HTTP client, may not exist\n Optional<Record> client = recordList.stream()\n .filter(record -> record.getMetadata().getString(\"api.name\") != null)\n .filter(record -> record.getMetadata().getString(\"api.name\").equals(prefix))\n .findAny(); // simple load balance\n\n if (client.isPresent()) {\n doDispatch(context, newPath, discovery.getReference(client.get()).get(), future);\n } else {\n notFound(context);\n future.complete();\n }\n } else {\n future.fail(ar.cause());\n }\n });\n }).setHandler(ar -> {\n if (ar.failed()) {\n badGateway(ar.cause(), context);\n }\n });\n }", "S getServer();", "@Routes( { @Route( method = Method.ANY, path = \":?path=(.*)\", binding = BindingType.raw ) } )\n public void handle( final HttpServerRequest request )\n {\n ResponseUtils.setStatus( ApplicationStatus.OK, request );\n\n request.pause();\n String path = request.params()\n .get( PathParam.path.key() );\n\n if ( path != null && ( path.length() < 1 || path.equals( \"/\" ) ) )\n {\n path = null;\n }\n\n VertXWebdavRequest req = null;\n final VertXWebdavResponse response = new VertXWebdavResponse( request.response() );\n\n try\n {\n String contextPath = masterRouter.getPrefix();\n if ( contextPath == null )\n {\n contextPath = \"\";\n }\n\n req = new VertXWebdavRequest( request, contextPath, \"/mavdav\", path, null );\n\n service.service( req, response );\n\n }\n catch ( WebdavException | IOException e )\n {\n logger.error( String.format( \"Failed to service mavdav request: %s\", e.getMessage() ), e );\n formatResponse( e, request );\n }\n finally\n {\n IOUtils.closeQuietly( req );\n IOUtils.closeQuietly( response );\n\n try\n {\n request.response()\n .end();\n }\n catch ( final IllegalStateException e )\n {\n }\n }\n }", "public static void main(String[] args){\n\t\tString s = HttpGet.sendGet(\"http://192.168.90.43/search_keyword.php\", \"platf=android&limit=30\");\r\n\t\tSystem.out.println(s);\r\n\t\ttry {\r\n\t\t\tHttpGet.jsonArr(HttpGet.jsonOb(s, \"result\"), \"default\");\r\n\t\t} catch (JSONException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException, ParseException {\n\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n String method = request.getMethod().toLowerCase();\n System.out.println(\"method = \" + method);\n boolean doOutput = false;\n if (\"post\".equals(method) || \"put\".equals(method) || \"delete\".equals(method) || \"trace\".equals(method)) {\n try (ServletInputStream r = request.getInputStream()) {\n byte buff[] = new byte[300000];\n int cant;\n while ((cant = r.read(buff)) != -1) {\n baos.write(buff, 0, cant);\n }\n baos.flush();\n baos.close();\n }\n doOutput = true;\n }\n String host = request.getParameter(\"host\");\n Utils.getInstance().getManagers(host);\n String port = request.getParameter(\"port\");\n String urlS = URLDecoder.decode(request.getParameter(\"url\"), \"US-ASCII\");\n System.out.println(\"url = \" + urlS);\n System.out.println(\"query = \" + request.getQueryString());\n URL url = new URL(urlS);\n //la base del sitio pedido\n String base = url.getProtocol() + \"://\" + url.getHost() + (url.getPort() != -1 ? \":\" + url.getPort() : \"\");\n\n //la url que representa a el host donde esta montada esta app\n String thishost = \"http://\" + request.getLocalName() + \":\" + request.getLocalPort() + \"/\";\n System.out.println(\"thishost = \" + thishost);\n// System.out.println(\"request server name = \" + request.getServerName());\n// boolean debug = false;\n// if (host != null) {\n//// debug = true;\n// thishost = \"http://ostest.tt:8080/\";\n// } else {\n// thishost = \"http://test-truetest.rhcloud.com/\";\n// }\n\n HttpURLConnection openConnection;\n if (host == null) {\n openConnection = (HttpURLConnection) url.openConnection();\n } else {\n Proxy proxy = new Proxy(Proxy.Type.HTTP, new InetSocketAddress(host, Integer.parseInt(port))); // or whatever your proxy is\n openConnection = (HttpURLConnection) url.openConnection(proxy);\n }\n openConnection.setConnectTimeout(0);\n openConnection.setReadTimeout(0);\n openConnection.setRequestMethod(request.getMethod());\n //por si acaso no cambia automatico cuando cambio el metodo\n\n Enumeration<String> headerNames = request.getHeaderNames();\n while (headerNames.hasMoreElements()) {\n String headerName = headerNames.nextElement();\n Enumeration<String> headers = request.getHeaders(headerName);\n while (headers.hasMoreElements()) {\n String headerValue = headers.nextElement();\n if (headerName != null && !\"accept-encoding\".equals(headerName.toLowerCase())) {\n openConnection.addRequestProperty(headerName, headerValue);\n }\n }\n }\n openConnection.setRequestProperty(\"User-Agent\", \"Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.102 Safari/537.36\");\n// openConnection.connect();\n if (doOutput) {\n openConnection.setDoOutput(true);\n try (OutputStream out = openConnection.getOutputStream()) {\n out.write(baos.toByteArray());\n out.flush();\n }\n }\n boolean nis = false;\n InputStream inputStream = null;\n try {\n inputStream = openConnection.getInputStream();\n } catch (IOException e) {\n nis = true;\n }\n String contentType = openConnection.getContentType();\n System.out.println(\"contentType basico = \" + contentType);\n// String guessContentTypeFromName = HttpURLConnection.guessContentTypeFromName(urlS);\n ContentType ct = null;\n if (contentType != null) {\n ct = new ContentType(contentType);\n }\n //usod de jsoup para modificar la pag para que todas las url se dirijan a este servidor\n Document parse = null;//\n if (ct != null && ct.match(\"text/html\") && !nis) {\n String charset = ct.getParameter(\"charset\");\n System.out.println(\"charset = \" + charset);\n parse = Jsoup.parse(inputStream, charset, urlS);\n parse.outputSettings().escapeMode(EscapeMode.xhtml);\n String arrayURLAtt[] = new String[]{\"src\", \"data\", \"cite\"};\n for (String attr : arrayURLAtt) {\n Elements linksatt = parse.select(\"[\" + attr + \"]\");\n for (Element link : linksatt) {\n link.attr(attr, link.attr(\"abs:\" + attr));\n }\n }\n //para mandar los post y get de los formularios a travez de este proxy html\n //FIXME poner iframe\n String attr[] = new String[]{\"action\", \"href\", \"src\"};\n for (String att : attr) {\n String select;\n switch (att) {\n case \"href\":\n select = \"a[\" + att + \"],link[\" + att + \"]\";\n break;\n case \"src\":\n select = \"iframe[\" + att + \"],script[\" + att + \"]\";\n break;\n default:\n select = \"[\" + att + \"]\";\n break;\n }\n Elements links = parse.select(select);\n for (Element link : links) {\n String abs = link.attr(\"abs:\" + att);\n if (host == null) {\n String finalUrl = thishost + \"?url=\" + URLEncoder.encode(abs, \"US-ASCII\") + \"&d=true\";\n link.attr(att, finalUrl);\n } else {\n link.attr(att, thishost + \"?url=\" + URLEncoder.encode(abs, \"US-ASCII\") + \"&host=\" + host + \"&port=\" + port);\n }\n }\n }\n }\n\n Map<String, List<String>> headerFields = openConnection.getHeaderFields();\n for (Map.Entry<String, List<String>> entry : headerFields.entrySet()) {\n String header = entry.getKey();\n// System.out.println(\"header = \" + header);\n List<String> list = entry.getValue();\n for (String headerValue : list) {\n if (header != null) {\n// System.out.println(\"header = \" + header);\n if (\"location\".equals(header.toLowerCase()) || \"referer\".equals(header.toLowerCase())) {\n if (host == null) {\n headerValue = \"http://ostest.tt:8081/?url=\" + headerValue + \"&d=true\";\n } else {\n headerValue = \"http://test-truetest.rhcloud.com/?url=\" + headerValue + \"&host=\" + host + \"&port=\" + port;\n }\n }\n if (\"host\".equals(header.toLowerCase())) {\n headerValue = url.getHost() + \":\" + (url.getPort() != -1 ? url.getPort() : url.getDefaultPort());\n }\n if (!\"content-length\".equals(header.toLowerCase())) {\n headerValue = url.getHost() + \":\" + (url.getPort() != -1 ? url.getPort() : url.getDefaultPort());\n }\n// System.out.println(\"headerValue = \" + headerValue);\n if (!\"content-length\".equals(header.toLowerCase()) && !\"content-encoding\".equals(header.toLowerCase())) {\n response.addHeader(header, headerValue);\n }\n }\n }\n }\n\n// response.setStatus(openConnection.getResponseCode());\n// System.out.println(\"content = \" + openConnection.getContentType());\n response.setContentType(openConnection.getContentType());\n if (parse != null) {\n try (PrintWriter writer = response.getWriter()) {\n StringBuilder builder = new StringBuilder(parse.outerHtml());\n String cabecera = \"<head>\";\n int indexOf = builder.indexOf(cabecera);\n if (indexOf != -1) {\n String scripText = \"<script id=\\\"prox\\\" >(function(open) {\\n\"\n + \" XMLHttpRequest.prototype.open = function(method, url, async, user, pass) {\\n\"\n + \" open.call(this, method, '\" + thishost + \"?url=\" + base + \"'+encodeURIComponent(url)+'\" + (host == null ? \"&d=true\" : \"&host=\" + host + \"&port=\" + port) + \"', true, user, pass);\\n\"\n + \" };\\n\"\n + \" })(XMLHttpRequest.prototype.open);\"\n + \"\"\n + \"window.location.origin='\" + base + \"'</script>\";\n builder.insert(indexOf + cabecera.length(), scripText);\n }\n writer.print(builder);\n writer.flush();\n }\n } else {\n try (OutputStream out = response.getOutputStream(); BufferedInputStream in = new BufferedInputStream((openConnection.getInputStream()))) {\n byte buff[] = new byte[300000];\n int cant;\n while ((cant = in.read(buff)) != -1) {\n out.write(buff, 0, cant);\n }\n out.flush();\n }\n }\n }", "public void requestServerData() throws IOException {\n Iterator it = gameServers.entrySet().iterator();\n while (it.hasNext()) {\n Map.Entry<InetSocketAddress, GameServer> pair = (Map.Entry) it.next();\n pair.getValue().requestAll();\n }\n }", "public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, java.io.IOException {\n //parsing request parameters in order to match operation to implement\n\n this.serverManager.execute(request, response);\n }", "public interface CommonService {\n List<FreshLabel> queryLabels();\n}", "public static Output<GetDomainsResult> getDomains(GetDomainsArgs args) {\n return getDomains(args, InvokeOptions.Empty);\n }", "public interface ServerApi {\n @GET(\"qqluck/query\")\n Call<Qq> getQq1(@Query(\"appkey\")String appkey, @Query(\"qq\") String qq);//第一种查询方法\n\n\n @GET(\"qqluck/query\")\n Call<Qq> getQq2(@QueryMap Map<String,String> map);//第二种查询方法\n @GET(\"qqluck/{q}\")\n Call<Qq> getQq3(@Path(\"q\") String q,@QueryMap Map<String,String> map);\n}", "ServerEntry getServer();", "public void processRequest(String request) {\r\n // Request for closing connection\r\n if (request.equals(\"CLOSE\")) {\r\n isOpen = false;\r\n\r\n // Request for getting all of the text on the Server's text areas\r\n } else if (request.equals(\"GET ALL TEXT\")) {\r\n String [] array = FileIOFunctions.getAllTexts();\r\n\r\n sendMessage(\"GET ALL TEXT\");\r\n sendMessage(array[0]);\r\n sendMessage(array[1]);\r\n } else {}\r\n }", "@Override\r\n protected Map<String, Object> executeImpl(SiteInfo singleSite, String eventName,\r\n WebScriptRequest req, JSONObject json, Status status, Cache cache) \r\n {\n Date fromDate = parseDate(req.getParameter(\"from\"));\r\n Date toDate = parseDate(req.getParameter(\"to\"));\r\n \r\n // What should we do about repeating events? First or all?\r\n boolean repeatingFirstOnly = true;\r\n String repeatingEvents = req.getParameter(\"repeating\");\r\n if (repeatingEvents != null)\r\n {\r\n if (\"first\".equals(repeatingEvents))\r\n {\r\n repeatingFirstOnly = true;\r\n }\r\n else if (\"all\".equals(repeatingEvents))\r\n {\r\n repeatingFirstOnly = false;\r\n }\r\n }\r\n else\r\n {\r\n // Fall back to the icky old way of guessing it from \r\n // the format of the from date, which differs between uses!\r\n if (fromDate != null)\r\n {\r\n String fromDateS = req.getParameter(\"from\");\r\n if (fromDateS.indexOf('-') != -1)\r\n {\r\n // Apparently this is the site calendar dashlet...\r\n repeatingFirstOnly = true;\r\n }\r\n if (fromDateS.indexOf('/') != -1)\r\n {\r\n // This is something else, wants all events in range\r\n repeatingFirstOnly = false;\r\n }\r\n }\r\n }\r\n \r\n // One site, or all the user's ones?\r\n List<SiteInfo> sites = new ArrayList<SiteInfo>();\r\n if (singleSite != null)\r\n {\r\n // Just one\r\n sites.add(singleSite);\r\n }\r\n else\r\n {\r\n // All their sites (with optional limit)\r\n int max = 0;\r\n String strMax = req.getParameter(\"size\");\r\n if (strMax != null && strMax.length() != 0)\r\n {\r\n max = Integer.parseInt(strMax);\r\n }\r\n sites = siteService.listSites(AuthenticationUtil.getRunAsUser(), max);\r\n }\r\n \r\n // We need to know the Site Names, and the NodeRefs of the calendar containers\r\n String[] siteShortNames = new String[sites.size()];\r\n Map<NodeRef, SiteInfo> containerLookup = new HashMap<NodeRef, SiteInfo>();\r\n for (int i=0; i<sites.size(); i++)\r\n {\r\n SiteInfo site = sites.get(i);\r\n siteShortNames[i] = site.getShortName();\r\n \r\n try\r\n {\r\n containerLookup.put(\r\n siteService.getContainer(site.getShortName(), CalendarServiceImpl.CALENDAR_COMPONENT), \r\n site);\r\n }\r\n catch (AccessDeniedException e)\r\n {\r\n // You can see the site, but not the calendar, so skip it\r\n // This means you won't have any events in it anyway\r\n }\r\n }\r\n \r\n \r\n // Get the entries for the list\r\n PagingRequest paging = buildPagingRequest(req);\r\n PagingResults<CalendarEntry> entries = \r\n calendarService.listCalendarEntries(siteShortNames, fromDate, toDate, paging);\r\n\r\n boolean resortNeeded = false;\r\n List<Map<String, Object>> results = new ArrayList<Map<String,Object>>();\r\n for (CalendarEntry entry : entries.getPage())\r\n {\r\n // Build the object\r\n Map<String, Object> result = new HashMap<String, Object>();\r\n result.put(RESULT_NAME, entry.getSystemName());\r\n result.put(RESULT_TITLE, entry.getTitle());\r\n result.put(\"description\", entry.getDescription());\r\n result.put(\"where\", entry.getLocation());\r\n result.put(RESULT_START, entry.getStart());\r\n result.put(RESULT_END, entry.getEnd());\r\n result.put(\"duration\", buildDuration(entry));\r\n result.put(\"tags\", entry.getTags());\r\n result.put(\"isoutlook\", entry.isOutlook());\r\n result.put(\"allday\", CalendarEntryDTO.isAllDay(entry));\r\n \r\n // Identify the site\r\n SiteInfo site = containerLookup.get(entry.getContainerNodeRef());\r\n result.put(\"site\", site);\r\n result.put(\"siteName\", site.getShortName());\r\n result.put(\"siteTitle\", site.getTitle());\r\n \r\n // Replace nulls with blank strings for the JSON\r\n for (String key : result.keySet())\r\n {\r\n if (result.get(key) == null)\r\n {\r\n result.put(key, \"\");\r\n }\r\n }\r\n \r\n // Save this one\r\n results.add(result);\r\n \r\n // Handle recurring as needed\r\n boolean orderChanged = handleRecurring(entry, result, results, fromDate, repeatingFirstOnly);\r\n if (orderChanged)\r\n {\r\n resortNeeded = true;\r\n }\r\n }\r\n \r\n // If the recurring events meant dates changed, re-sort\r\n if (resortNeeded)\r\n {\r\n Collections.sort(results, new Comparator<Map<String, Object>>() \r\n {\r\n public int compare(Map<String, Object> resultA,\r\n Map<String, Object> resultB) \r\n {\r\n Date startA = (Date)resultA.get(RESULT_START);\r\n Date startB = (Date)resultB.get(RESULT_START);\r\n \r\n int cmp = startA.compareTo(startB);\r\n if (cmp == 0)\r\n {\r\n Date endA = (Date)resultA.get(RESULT_END);\r\n Date endB = (Date)resultB.get(RESULT_END);\r\n cmp = endA.compareTo(endB);\r\n if (cmp == 0)\r\n {\r\n String nameA = (String)resultA.get(RESULT_NAME);\r\n String nameB = (String)resultB.get(RESULT_NAME);\r\n return nameA.compareTo(nameB);\r\n }\r\n return cmp;\r\n }\r\n return cmp;\r\n }\r\n });\r\n }\r\n \r\n // All done\r\n Map<String, Object> model = new HashMap<String, Object>();\r\n model.put(\"events\", results);\r\n return model;\r\n }", "private void doGetFromWebsite(HttpServletRequest request, HttpServletResponse response) {\n\t\tString PID = request.getParameter(\"id\");\n\t\tString doctor = request.getParameter(\"doctor\");\n\t\tString reservationType = request.getParameter(\"reservationType\");\n\t\t\n\t\tif(reservationType.equals(\"0\"))\n\t\t\tconnector.writeReservationInformation(PID, \"jason\", \"\");\n\t\telse{\n\t\t\tconnector.writeReservationInformation(PID, \"jason\", doctor);\n\t\t}\n\t\tVector vector = connector.queryReservationInformation(PID);\n\t\tWaitInformation info = new WaitInformation();\n\t\t//可能门诊诊间还没有生成排队信息,如果是这样就先默认几个值\n\t\tif(vector == null){\n\t\t\tinfo.setPeopleCount(0);\n\t\t\tinfo.setSucceed(true);\n\t\t\tinfo.setWaitTime(0);\n\t\t}else{\n\t\t\tint peopleCount = (Integer)vector.get(0);\n\t\t\tinfo.setPeopleCount(peopleCount);\n\t\t\tinfo.setSucceed(true);\n\t\t\t//因为门诊诊间没有提供预计等待时间的功能,所以这里我们假设等待时间是病人数*5\n\t\t\tinfo.setWaitTime(peopleCount * 5);\n\t\t}\n\t\t\n\t\tRequestDispatcher dispatcher = request.getRequestDispatcher(\"show.jsp\");\n\t\trequest.setAttribute(\"data\", info);\n\t\ttry {\n\t\t\tdispatcher.forward(request, response);\n\t\t} catch (ServletException 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}", "@Override\n public Mono<Response<ServiceInstance>> choose(Request request) {\n ServiceInstanceListSupplier supplier = serviceInstanceListSupplierProvider\n .getIfAvailable(NoopServiceInstanceListSupplier::new);\n return supplier.get(request).next()\n .map(serviceInstances -> processInstanceResponse(supplier, serviceInstances));\n }", "Object getAll(WebRequest webRequest, HttpServletResponse response, Model model) throws Exception;", "public static void main(String[] args) {\n if ((args != null) && (args.length > 0) && (args[0].length() > 0)) {\n if (args.length >= 1) {\n startDomain = args[0].trim();\n }\n\n if (args.length >= 2) {\n endDomain = args[1].trim();\n\n // Determine extension. Ex .co .com\n if (args.length > 2) {\n exts = new String[args.length - 2];\n // Scan from argument 3\n for (int i = 2; i < args.length; i++) {\n exts[i - 2] = args[i].trim();\n }\n }\n }\n } else {\n usage();\n System.exit(1);\n }\n System.out.println(\"Domain checker starts with '\" + startDomain + \"' and end with '\" + endDomain + \"'\");\n System.out.print(\"Apply extension(s): \");\n for (String ext : exts) {\n System.out.print(ext + \" \");\n }\n System.out.println();\n\n String domain;\n IDomainChecker checker = new VinaHostCheckerImpl();\n boolean[] checkResult;\n\n String curDomain = startDomain;\n while (compare(curDomain, endDomain) <= 0) {\n checkResult = checker.checkAvailable(curDomain, exts);\n\n for (int i = 0; i < checkResult.length; i++) {\n System.out.println(curDomain + exts[i] + \",\" + checkResult[i]);\n }\n curDomain = getNextDomain(curDomain);\n }\n }", "private void getMall(HttpServletRequest request, HttpServletResponse response) {\n\t\t\n\t}", "@Override\n public String execute(String request) {\n String author = request.substring(request.indexOf(separator) + 1);\n\n ServiceFactory service = ServiceFactory.getInstance();\n NewsService newsService = service.getNewsService();\n\n String response;\n try {\n newsService.findByAuthor(author);\n response = \"It is search results.\"; ///look it\n } catch (ServiceException e) {\n response = \"News not found.\";\n }\n return response;\n }", "ThingsResponse loadThingsDetails(ThingsRequest request);", "private void dispatch(CallContext context, HttpServletRequest request, HttpServletResponse response)\n throws Exception {\n\n CmisService service = null;\n try {\n // get the service\n service = getServiceFactory().getService(context);\n\n // analyze the path\n String[] pathFragments = HttpUtils.splitPath(request);\n\n if (pathFragments.length < 2) {\n // root -> service document\n dispatcher.dispatch(\"\", METHOD_GET, context, service, null, request, response);\n return;\n }\n\n String method = request.getMethod();\n String repositoryId = pathFragments[0];\n String resource = pathFragments[1];\n\n // dispatch\n boolean callServiceFound = dispatcher.dispatch(resource, method, context, service, repositoryId, request,\n response);\n\n // if the dispatcher couldn't find a matching service\n // -> return an error message\n if (!callServiceFound) {\n response.sendError(HttpServletResponse.SC_METHOD_NOT_ALLOWED, \"Unknown operation\");\n }\n } finally {\n if (service != null) {\n service.close();\n }\n }\n }", "private boolean invoke(HttpRequest request, HttpResponse response) {\n\t\t\n\t\tString[] requestSplit=request.getPath().split(\"/\",3);\n\t\t// first: empty (string starts with '/')\n\t\t// second: service name\n\t\t// third: URI rest\n\t\tString serviceName=\"\";\n\t\tString methodName=\"\";\n\t\tString restURI=\"\";\n\t\tString content=\"\";\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\tserviceName=requestSplit[1];\n\t\t\tmethodName=REST_DECODER; //special method in service\n\t\t\t\n\t\t\tif(requestSplit.length>=3)\n\t\t\t{\n\t\t\t\tint varsstart=requestSplit[2].indexOf('?');\n\t\t\t\tif(varsstart>0)\n\t\t\t\t\trestURI=requestSplit[2].substring(0,varsstart);\n\t\t\t\telse\n\t\t\t\t\trestURI=requestSplit[2];\n\t\t\t}\n\t\t\t\n\t\t\tcontent=request.getContentString();\n\t\t\t\n\t\t\tint httpMethodInt=request.getMethod();\n\t\t\tString httpMethod=\"get\";\n\t\t\t\n\t\t\tswitch (httpMethodInt) \n\t\t\t{\n\t\t\t\tcase HttpRequest.METHOD_GET:\n\t\t\t\t\thttpMethod=\"get\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase HttpRequest.METHOD_HEAD:\n\t\t\t\t\thttpMethod=\"head\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase HttpRequest.METHOD_DELETE:\n\t\t\t\t\thttpMethod=\"delete\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase HttpRequest.METHOD_POST:\n\t\t\t\t\thttpMethod=\"post\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase HttpRequest.METHOD_PUT:\n\t\t\t\t\thttpMethod=\"put\";\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(content==null)\n\t\t\t\tcontent=\"\";\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tString[][] variables = {};//extract variables from request\n\t\t\t\n\t\t\tArrayList<String[]> variablesList=new ArrayList<String[]>();\n\t\t\t@SuppressWarnings(\"rawtypes\")\n\t\t\tEnumeration en = request.getGetVarNames();\t\t\n\t\t\tString querystr=\"\";\n\t\t\twhile(en.hasMoreElements())\n\t\t\t{\n\t\t\t\tString param = (String) en.nextElement();\n\t\t\t\tString val= request.getGetVar(param);\n\t\t\t\t\n\t\t\t\tString[] pair={param,val};\n\t\t\t\t//connector.logMessage(param+\" \"+val);\n\t\t\t\tvariablesList.add(pair);\n\t\t\t\tquerystr+=param+\" = \"+val+\" \";\n\t\t\t}\n\t\t\tconnector.logMessage(request.getMethod()+\" \"+request.getUrl()+\" \"+querystr);\n\t\t\tvariables=variablesList.toArray(new String[variablesList.size()][2]);\n\t\t\t\n\t\t\t//connector.logMessage(content);\n\t\t\tSerializable[] parameters={httpMethod,restURI,variables,content};\n\t\t\t\n\t\t\tSerializable result;\t\n\t\t\tMediator mediator = _userSessions.get(_currentUserId).getMediator();//get registered mediator\n\t\t\tresult= mediator.invoke(serviceName,methodName, parameters, connector.preferLocalServices());// invoke service method\n\t\t\t\n\t\t\tsendInvocationSuccess ( result, response );\n\t\t\treturn true;\n\t\t\t\n\t\t} catch ( NoSuchServiceException e ) {\n\t\t\tsendNoSuchService(request, response, serviceName);\t\t\t\n\t\t} catch ( TimeoutException e ) {\n\t\t\tsendNoSuchService(request, response, serviceName);\n\t\t} catch ( NoSuchServiceMethodException e ) {\n\t\t\tsendNoSuchMethod(request, response);\n\t\t} catch ( L2pSecurityException e ) {\n\t\t\tsendSecurityProblems(request, response, e);\t\t\t\t\t\n\t\t} catch ( ServiceInvocationException e ) {\n\t\t\tif ( e.getCause() == null )\n\t\t\t\tsendResultInterpretationProblems(request, response);\n\t\t\telse\n\t\t\t\tsendInvocationException(request, response, e);\t\t\t\t\t\t\t\t\n\t\t} catch ( InterruptedException e ) {\n\t\t\tsendInvocationInterrupted(request, response);\n\t\t} catch ( InvalidCodingException e ) {\n\t\t\tsendConnectorProblems(request, response, e);\n\t\t} catch ( CodingException e ) {\n\t\t\tsendResultInterpretationProblems(request, response);\n\t\t} catch (Exception e)\n\t\t{\n\t\t\n\t\t}\n\t\treturn false;\n\t}", "public void addInnerObjects(HttpServletRequest request, \n HttpServletResponse response,\n String domain,\n Iterable<J> jEntity) {\n // do nothing\n }", "public void getIP(){\n String requestIP = DomainTextField.getText();\n\n Connection conn = new Connection();\n\n String domain = conn.getIP(requestIP);\n\n output.writeln(requestIP + \" --> \" + domain);\n }", "void sendRequest(String rootServer) throws IOException {\n InetAddress ipAddress = InetAddress.getByName(rootServer);\r\n\r\n ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();\r\n DataOutputStream dataOutputStream = new DataOutputStream(byteArrayOutputStream);\r\n\r\n //Constructing the query\r\n dataOutputStream.writeShort(0x1234);\t\t\t\r\n dataOutputStream.writeShort(0x0000);\t\t\t\r\n dataOutputStream.writeShort(0x0001);\t\t\t\r\n dataOutputStream.writeShort(0x0000);\t\t\t\r\n dataOutputStream.writeShort(0x0000);\t\t\t\r\n dataOutputStream.writeShort(0x0000);\t\t\t\r\n\r\n String[] domainParts = domain.split(\"\\\\.\");\t\t//Splits given domian wrt '.'\r\n for (int i = 0; i < domainParts.length; i++) {\r\n byte[] domainBytes = domainParts[i].getBytes(\"UTF-8\");\r\n dataOutputStream.writeByte(domainBytes.length);\r\n dataOutputStream.write(domainBytes);\r\n }\r\n\r\n dataOutputStream.writeByte(0x00);\t\t\t\r\n\r\n dataOutputStream.writeShort(0x0001);\t\t\t\r\n dataOutputStream.writeShort(0x0001);\t\t\t\r\n\r\n byte[] dnsFrameByteArray = byteArrayOutputStream.toByteArray();\r\n DatagramPacket datagramPacket = new DatagramPacket(dnsFrameByteArray, dnsFrameByteArray.length, ipAddress, Port);\r\n socket.send(datagramPacket);\t//Send the request to obtained IP address\r\n }", "public void fetch(){ \n for(int i = 0; i < this.queries.size(); i++){\n fetch(i);\n }\n }", "public interface RequestHandler {\n\tpublic Map<String,Object> handleRequest(Map<String,Object> request,\n\t\t\t InetAddress client);\n}", "public List<ServerServices> searchExternalService(int servId, String dataPort, String servicePort);", "public static void Execute ()\n\t{\n\t\tReceiveCollection (SpawnCrawler (target));\n\t\t\n\t\tList<String> initialCollection = overCollection;\n\t\t\n\t\tif ( ! initialCollection.isEmpty ())\n\t\t{\n\t\t\n\t\t\tfor (String collected : initialCollection)\n\t\t\t{\n\t\t\t\t\n\t\t\t\tif (collected.contains (\"http\"))\n\t\t\t\t\tReceiveCollection (SpawnCrawler (collected));\n\t\t\t\telse\n\t\t\t\t\tReceiveCollection (SpawnCrawler (target + collected));\n\t\t\t\t\n\t\t\t}\n\t\t\n\t\t}\n\t\t\n\t\t/*\n\t\t * Several loops should commence here where the system reiteratively goes over all the newly acquired URLs\n\t\t * so it may extend itself beyond the first and second depth.\n\t\t * However this process should be halted once it reaches a certain configurable depth.\n\t\t */\n\t\tint depth = 0;\n\t\tint newFoundings = 0;\n\t\t\n\t\tdepthLoop: while (depth <= MAX_DEPTH)\n\t\t{\n\t\t\t\n\t\t\tfor (String collected : overCollection)\n\t\t\t{\n\t\t\t\t\n\t\t\t\tif (collected.contains (\"http\"))\n\t\t\t\t\tSpawnCrawler (collected);\n\t\t\t\telse\n\t\t\t\t\tSpawnCrawler (target + collected);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tif (newFoundings <= 0)\n\t\t\t\tbreak depthLoop;\n\t\t\t\n\t\t\tdepth++;\n\t\t\t\t\t\t\n\t\t}\n\t\t\n\t}", "Object callQuery(String name, Map<String, String> params);", "@Override\n public String matchAndApply(String target, HttpServletRequest request, HttpServletResponse response) throws IOException {\n if (_virtualHosts != null && _virtualHosts.length > 0) {\n String requestHost = normalizeHostname(request.getServerName());\n for (String ruleHost : _virtualHosts) {\n if (ruleHost == null || ruleHost.equalsIgnoreCase(requestHost)\n || (ruleHost.startsWith(\"*.\") && ruleHost.regionMatches(true, 2, requestHost, requestHost.indexOf(\".\") + 1, ruleHost.length() - 2)))\n return apply(target, request, response);\n }\n } else {\n return apply(target, request, response);\n }\n return null;\n }", "public static void m886a(Request request) {\n C1744eg egVar = f1001a;\n egVar.f1002b = request;\n egVar.runAsync(new C1738eb() {\n /* renamed from: a */\n public final void mo16236a() throws Exception {\n if (C1948n.m1229a().f1421g.mo16247c()) {\n C1744eg.this.runAsync(new C1738eb() {\n /* renamed from: a */\n public final void mo16236a() throws Exception {\n Map b = C1744eg.m890b(C1744eg.this.f1002b);\n C1691dd ddVar = new C1691dd();\n ddVar.f897f = \"https://api.login.yahoo.com/oauth2/device_session\";\n ddVar.f898g = C1699a.kPost;\n ddVar.mo16403a(\"Content-Type\", \"application/json\");\n ddVar.f883b = new JSONObject(b).toString();\n ddVar.f885d = new C1725dt();\n ddVar.f884c = new C1725dt();\n ddVar.f882a = new C1693a<String, String>() {\n /* renamed from: a */\n public final /* synthetic */ void mo16300a(C1691dd ddVar, Object obj) {\n String str = \"PrivacyManager\";\n String str2 = (String) obj;\n try {\n int i = ddVar.f904m;\n if (i == 200) {\n JSONObject jSONObject = new JSONObject(str2);\n C1744eg.m888a(C1744eg.this, new C1477a(jSONObject.getString(\"device_session_id\"), jSONObject.getLong(\"expires_in\"), C1744eg.this.f1002b));\n C1744eg.this.f1002b.callback.success();\n return;\n }\n C1685cy.m769e(str, \"Error in getting privacy dashboard url. Error code = \".concat(String.valueOf(i)));\n C1744eg.this.f1002b.callback.failure();\n } catch (JSONException e) {\n C1685cy.m763b(str, \"Error in getting privacy dashboard url. \", (Throwable) e);\n C1744eg.this.f1002b.callback.failure();\n }\n }\n };\n C1675ct.m738a().mo16389a(C1744eg.this, ddVar);\n }\n });\n return;\n }\n C1685cy.m754a(3, \"PrivacyManager\", \"Waiting for ID provider.\");\n C1948n.m1229a().f1421g.subscribe(C1744eg.this.f1003d);\n }\n });\n }", "@Override\n\t\t\t\t\tpublic void run() {\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tList<String> headers = readRequest(client);\n\t\t\t\t\t\t\tif (headers != null && headers.size() >= 1) {\n\t\t\t\t\t\t\t\tString requestURL = getRequestURL(headers.get(0));\n\t\t\t\t\t\t\t\tLog.d(TAG, requestURL);\n\n\t\t\t\t\t\t\t\tif (requestURL.startsWith(\"http://\")) {\n\n\t\t\t\t\t\t\t\t\t// HttpRequest request = new\n\t\t\t\t\t\t\t\t\t// BasicHttpRequest(\"GET\", requestURL);\n\n\t\t\t\t\t\t\t\t\tprocessHttpRequest(requestURL, client, headers);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tprocessFileRequest(requestURL, client, headers);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t} catch (IllegalStateException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "private Response execute_work(Request request){\n if (request.getFname().equals(\"tellmenow\")){\n int returnValue = tellMeNow();\n }\n else if(request.getFname().equals(\"countPrimes\")){\n int returnValue = countPrimes(request.getArgs()[0]);\n }\n else if(request.getFname().equals(\"418Oracle\")){\n int returnValue = oracle418();\n }\n else{\n System.out.println(\"[Worker\"+String.valueOf(this.id)+\"] WARNING function name not recognized, dropping request\");\n }\n\n return new Response(id,request.getId(),request.getFname(),0);//0 meaning ok!\n }", "@Override\r\n\tpublic void handleRequest(){\r\n\r\n\t\ttry {\r\n\t\t\t_inFromClient = new ObjectInputStream(_socket.getInputStream());\r\n\t\t\t_outToClient = new ObjectOutputStream(_socket.getOutputStream());\r\n\t\t _humanQuery = (String) _inFromClient.readObject();\r\n\t\t _outToClient.writeObject(manageCommunication());\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} \r\n\t}", "private void queryFormServer(final String type, String code) {\n\t\tString address;\n\t\tif (TextUtils.isEmpty(code)) {\n\t\t\t//set request provinces info interface address.\n\t\t\taddress = \"http://www.weather.com.cn/data/list3/city.xml\";\n\t\t}else {\n\t\t\t//set request cities or counties info interface address.\n\t\t\taddress = \"http://www.weather.com.cn/data/list3/city\" + code + \".xml\";\n\t\t}\n\t\t\n\t\t//display progress dialog when user wait time, that loading areas info from server.\n\t\tshowProgressDialog();\n\t\tHttpUtil.sendHttpRequest(address, new HttpCallbackListener (){\n\n\t\t\t@Override\n\t\t\tpublic void onFinish(String response) {\n\t\t\t\t\n\t\t\t\tboolean result = false;\n\t\t\t\tif (\"provinces\".equals(type)) {\n\t\t\t\t\tresult = Utility.handleProvincesResponse(coolWeatherDB, response);\n\t\t\t\t}else if (\"cities\".equals(type)) {\n\t\t\t\t\tresult = Utility.handleCitiesResponse(coolWeatherDB, response, selectedProvince.getProvinceCode());\n\t\t\t\t}else if(\"counties\".equals(type)){\n\t\t\t\t\tresult = Utility.handleCountiesResponse(coolWeatherDB, response, selectedCity.getCityCode());\n\t\t\t\t}else {\n\t\t\t\t\tLogUtil.d(TAG, \"Not match with type: \" + type + \" when handleHttpServerResponse.\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (result) {\n\t\t\t\t\t//Through call Activity runOnUiThread() back to mainThread from subThred.Then process logic.\n\t\t\t\t\trunOnUiThread(new Runnable() {\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t//Close process dialog.\n\t\t\t\t\t\t\tcloseProcessDialog();\n\t\t\t\t\t\t\tif (\"provinces\".equals(type)) {\n\t\t\t\t\t\t\t\t//Call queryProvinces() again.\n\t\t\t\t\t\t\t\tqueryProvincesFromDB();\n\t\t\t\t\t\t\t}else if (\"cities\".equals(type)) {\n\t\t\t\t\t\t\t\t//Call queryCities() again.\n\t\t\t\t\t\t\t\tqueryCitiesFromDB();\n\t\t\t\t\t\t\t}else if (\"counties\".equals(type)) {\n\t\t\t\t\t\t\t\t//Call queryCounties again.\n\t\t\t\t\t\t\t\tqueryCountiesFromDB();\n\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\tLogUtil.d(TAG, \"Not match type:\" + type + \" when prepare to callback.\");\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}\n\n\t\t\t@Override\n\t\t\tpublic void onError(Exception e) {\n\t\t\t\t//Through call Activity runOnUiThread() back to mainThread from subThred.Then process logic.\n\t\t\t\trunOnUiThread(new Runnable() {\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tLogUtil.d(TAG, \"Current thread id:\" + Thread.currentThread().getId());\n\t\t\t\t\t\t//Close process dialog.\n\t\t\t\t\t\tcloseProcessDialog();\n\t\t\t\t\t\t//Popup a toast notification.\n\t\t\t\t\t\tToast.makeText(ChooseAreaActivity.this, \"¼ÓÔØÊ§°Ü\", Toast.LENGTH_LONG).show();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t\t\n\t\t});\n\t\t\n\t}", "public void request(String[] args) {\n String queryByDate = CLIHelper.extractOptionRawValue(QUERY_BY_DATE, args);\n String queryByYearMonth = CLIHelper.extractOptionRawValue(QUERY_BY_YEAR_MONTH, args);\n\n if (!queryByDate.isEmpty()) {\n queryBySpecificDates(queryByDate);\n }\n if (!queryByYearMonth.isEmpty()) {\n queryBySpecificYearMonths(queryByYearMonth);\n }\n if (CLIHelper.optionIsPresent(HELP, args)) {\n printUsage();\n }\n }", "public static Output<GetDomainsResult> getDomains() {\n return getDomains(GetDomainsArgs.Empty, InvokeOptions.Empty);\n }", "pb4server.QueryInfoByWorldAskReq getQueryInfoByWorldAskReq();", "String getDomain();", "protected String processGongRequest(String request) {\r\n // Get a new handler\r\n ScriptHandler scriptHandler = getScriptHandler(request, null);\r\n if (scriptHandler == null) {\r\n try {\r\n Fault fault = Message.newFault(\"\", \"NanoGong is busy at the moment.\");\r\n return fault.toString();\r\n } catch (Exception e) {}\r\n }\r\n\r\n // Execute the request\r\n scriptHandler.execute();\r\n \r\n // Return the fault if there is any\r\n String response;\r\n Fault fault = (Fault) scriptHandler.getFault();\r\n if (fault != null)\r\n response = fault.toString();\r\n else\r\n response = scriptHandler.getResponse().toString();\r\n\r\n // Clear the handler\r\n clearScriptHandler();\r\n\r\n return response;\r\n }", "public void getJSONDomains() throws IOException, ParseException {\n // loop array\n JSON jsonCon = new JSON();\n JSONObject jsonObject = jsonCon.getJSONObject(\"/data/data.json\");\n JSONArray domains = (JSONArray) jsonObject.get(\"ipaddress\");\n Connection conn = new Connection();\n\n Iterator<String> iterator = domains.iterator();\n while (iterator.hasNext()) {\n String ip = iterator.next();\n output.writeln(ip + \" --> \" + conn.getDomain(ip));\n }\n }", "@Override\n public List<String> apply(String s) throws Exception {\n Log.d(TAG, \"apply\" + s + \". Thread: \" + Thread.currentThread().getName());\n //“map” our search queries to a list of search results\n //Because map can run any arbitrary function\n // we’ll use our RestClient to transform our search query into the list of actual results we want to display.\n return restClient.searchForCity(s);\n }", "public void getRepositorySelect(GsacRequest request, Appendable pw)\n throws IOException {\n List<GsacRepositoryInfo> allServers = getRepository().getServers();\n if (allServers.size() == 0) {\n return;\n }\n\n List urls = request.get(ARG_REPOSITORY, new ArrayList());\n StringBuffer sb = new StringBuffer();\n for (GsacRepositoryInfo info : allServers) {\n String url = info.getUrl();\n\n sb.append(HtmlUtil.checkbox(ARG_REPOSITORY, url, urls.size() == 0 | urls.contains(url)));\n\n /* original: \n sb.append(HtmlUtil.href(info.getUrl(), info.getName())); \n */\n // If a remote service has chosen the ambiguous name 'GSAC Repository', append their url to disambiguate among federated services\n String itsname = info.getName();\n //System.err.println(\" HtmlOutputHandler: federated GSAC. remote gsac's local name is _\" + itsname +\"_\" );\n if (itsname.equals(\"GSAC Repository\") || itsname.length() < 3) {\n itsname = \"Gsac at \" + url;\n //System.err.println(\" HtmlOutputHandler: federated GSAC. remote server's listed name is _\" + itsname +\"_\" );\n }\n // or to replace the name \"GSAC\" at SOPAC:\n if (url.indexOf(\"geogsac.ucsd.edu:8080/gsacws\")>0 ) {\n itsname = \"SOPAC GSAC\";\n }\n\n sb.append(HtmlUtil.href(info.getUrl(), itsname));\n\n sb.append(HtmlUtil.br());\n }\n // label page section\n pw.append(getHeader(msg(\"Search in Repositories\")));\n // show the choices\n pw.append(HtmlUtil.makeShowHideBlock(msg(\"\"), sb.toString(), true));\n }", "public interface RequestServer {\n\n @GET(\"caseplatform/mobile/system-eventapp!register.action\")\n Call<StringResult> register(@Query(\"account\") String account, @Query(\"password\") String password, @Query(\"name\") String name,\n @Query(\"mobilephone\") String mobilephone, @Query(\"identityNum\") String identityNum);\n\n @GET(\"caseplatform/mobile/login-app!login.action\")\n Call<String> login(@Query(\"name\") String username, @Query(\"password\") String password);\n\n @GET(\"caseplatform/mobile/system-eventapp!setUserPassword.action\")\n Call<StringResult> setPassword(@Query(\"account\") String account,\n @Query(\"newPassword\") String newPassword,\n @Query(\"oldPassword\") String oldPassword);\n\n @GET(\"caseplatform/mobile/system-eventapp!getEventInfo.action\")\n Call<Event> getEvents(@Query(\"account\") String account, @Query(\"eventType\") String eventType);\n\n @GET(\"caseplatform/mobile/system-eventapp!reportEventInfo.action \")\n Call<EventUpload> reportEvent(\n @Query(\"account\") String account,\n @Query(\"eventType\") String eventType,\n @Query(\"address\") String address,\n @Query(\"eventX\") String eventX,\n @Query(\"eventY\") String eventY,\n @Query(\"eventMs\") String eventMs,\n @Query(\"eventMc\") String eventMc,\n @Query(\"eventId\") String eventId,\n @Query(\"eventClyj\") String eventClyj,\n @Query(\"eventImg\") String eventImg,\n @Query(\"eventVideo\") String eventVideo,\n @Query(\"eventVoice\") String eventVoice\n );\n\n @GET(\"caseplatform/mobile/system-eventapp!getUserInfo.action\")\n Call<UserInfo> getUserInfo(@Query(\"orgNo\") String orgNo, @Query(\"account\") String account);\n\n @GET(\"caseplatform/mobile/system-eventapp!getOrgDataInfo.action\")\n Call<OrgDataInfo> getOrgData(@Query(\"orgNo\") String orgNo, @Query(\"account\") String account);\n\n @Multipart\n @POST(\"caseplatform/mobile/video-upload!uplodVideo.action\")\n Call<FileUpload> uploadVideo(@Part(\"video\") File video, @Part(\"videoFileName\") String videoFileName);\n\n @POST(\"caseplatform/mobile/video-upload!uplodVideo.action\")\n Call<FileUpload> uploadVideo(@Body RequestBody requestBody);\n\n @GET(\"caseplatform/mobile/video-upload!uplodAudio.action\")\n Call<FileUpload> uploadAudio(@Query(\"audio\") File audio, @Query(\"audioFileName\") String audioFileName);\n\n @POST(\"caseplatform/mobile/video-upload!uplodAudio.action\")\n Call<FileUpload> uploadAudio(@Body RequestBody requestBody);\n\n @GET(\"caseplatform/mobile/file-upload!uplodFile.action\")\n Call<FileUpload> uploadImage(@Query(\"img\") File img, @Query(\"imgFileName\") String imgFileName);\n\n @POST(\"caseplatform/mobile/file-upload!uplodFile.action\")\n Call<FileUpload> uploadImage(@Body RequestBody requestBody);\n\n @GET(\"caseplatform/mobile/system-eventapp!jobgps.action\")\n Call<StringResult> setCoordinate(@Query(\"account\") String account,\n @Query(\"address\") String address,\n @Query(\"x\") String x,\n @Query(\"y\") String y,\n @Query(\"coordsType\") String coordsType,\n @Query(\"device_id\") String device_id\n );\n\n @GET(\"caseplatform/mobile/system-eventapp!Mbtrajectory.action\")\n Call<Task> getTask(@Query(\"account\") String account);\n\n}", "@Override\n public void run() {\n if (checkParameters()) {\n notifyError();\n } else {\n ADRepository repository = new ADRepository(schema);\n\n List<ADEntity> entities = repository.fetchQuery(buildQuery(), getOrder());\n nofityEntitiesLoaded(processResult(entities));\n }\n }", "public void consume(IdentifiableIDSet domain);", "public Object getClinics(Request request) {\n\t\tDbHandler db = Config.getConfig().getHandler();\n\t\tQueryBuilder<Clinic, Integer> d = db.clinics.queryBuilder();\n\t\tList<Clinic> clinic;\n\t\ttry {\n\n\t\t\tclinic = d.where().eq(\"hasLabratory\", true).query();\n\t\t\treturn clinic;\n\t\t} catch (SQLException e) {\n\t\t\tConfig.getConfig().getLogger().exception(e);\n\t\t\treturn \"fail\";\n\t\t}\n\t}", "@Override\n public void response(String o, String requestTag) {\n switch (NoisyConstants.Requests.valueOf(requestTag.toUpperCase())) {\n case GET_COMICS: {\n\n mComicDataWrapper = (ComicDataWrapper) NoisyUtils.getFromJson(o, ComicDataWrapper.class);\n\n if(mComicDataWrapper.getData().getResults().size() == 0){\n notAvailable.setVisibility(View.VISIBLE);\n }else {\n gallery.setAdapter(new ComicsAdapter(this, mComicDataWrapper));\n gallery.invalidate();\n syncAll(comicsURI, mComicDataWrapper.getData().getResults().size());\n }\n break;\n }\n case GET_ALL_COMICS: {\n\n ComicDataWrapper tComicDataWrapper = (ComicDataWrapper) NoisyUtils.getFromJson(o, ComicDataWrapper.class);\n merge(tComicDataWrapper);\n gallery.invalidate();\n syncAll(comicsURI, mComicDataWrapper.getData().getResults().size() + 1);\n break;\n }\n default: {\n NoisyUtils.showDialog(this, NoisyConstants.INVALID_NETWORK_REQUEST, NoisyConstants.INVALID_NETWORK_REQUEST);\n }\n }\n }", "protected abstract void startPing(Set<String> urls);", "public Object handleRequest(P request) throws Exception;", "void setQueryRequest(com.exacttarget.wsdl.partnerapi.QueryRequest queryRequest);", "private void requestClientNameFromServer() {\n writeToServer(ServerAction.GET_NAME + \"\");\n }", "com.exacttarget.wsdl.partnerapi.QueryRequest getQueryRequest();", "public void request() {\n }", "private Server findServerForDomain(String domain) {\n\t\tXmlResourceParser xml = getResources().getXml(R.xml.mxa_servers);\n\t\tint xmlEventType;\n\t\tServer server = null;\n\t\ttry {\n\t\t\twhile ((xmlEventType = xml.next()) != XmlResourceParser.END_DOCUMENT) {\n\t\t\t\tif (xmlEventType == XmlResourceParser.START_TAG\n\t\t\t\t\t\t&& \"server\".equals(xml.getName())\n\t\t\t\t\t\t&& domain.equalsIgnoreCase(getXmlAttribute(xml,\n\t\t\t\t\t\t\t\t\"domain\"))) {\n\t\t\t\t\tserver = new Server();\n\t\t\t\t\tserver.id = getXmlAttribute(xml, \"id\");\n\t\t\t\t\tserver.domain = getXmlAttribute(xml, \"domain\");\n\t\t\t\t} else if (xmlEventType == XmlResourceParser.START_TAG\n\t\t\t\t\t\t&& \"host\".equals(xml.getName()) && server != null) {\n\t\t\t\t\tserver.host = xml.nextText();\n\t\t\t\t} else if (xmlEventType == XmlResourceParser.START_TAG\n\t\t\t\t\t\t&& \"port\".equals(xml.getName()) && server != null) {\n\t\t\t\t\tserver.port = xml.nextText();\n\t\t\t\t} else if (xmlEventType == XmlResourceParser.START_TAG\n\t\t\t\t\t\t&& \"servicename\".equals(xml.getName())\n\t\t\t\t\t\t&& server != null) {\n\t\t\t\t\tserver.serviceName = xml.nextText();\n\t\t\t\t} else if (xmlEventType == XmlResourceParser.END_TAG\n\t\t\t\t\t\t&& \"server\".equals(xml.getName()) && server != null) {\n\t\t\t\t\treturn server;\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tLog.e(TAG, \"Error while trying to load server settings.\", e);\n\t\t}\n\t\treturn null;\n\t}", "public static void main(String[] args) throws UnknownHostException, IOException {\n // check arguments\n if (args.length < 4) {\n System.out.println(\"Wrong number of arguments\");\n System.exit(1);\n }\n\n // set variables\n host = args[0];\n port = Integer.parseInt(args[1]);\n String oper = args[2];\n String dnsName = args[3];\n\n // open socket\n Socket socket = new Socket(host, port);\n\n // open streams\n out = new PrintWriter(socket.getOutputStream(), true);\n\t\tin = new BufferedReader(new InputStreamReader(socket.getInputStream()));\n\n // determine action\n if (oper.equals(\"register\")) {\n if (args.length < 5) {\n System.out.println(\"Wrong number of arguments\");\n System.exit(1);\n }\n String ipAddress = args[4];\n sendRegisterRequest(dnsName, ipAddress);\n } else if (oper.equals(\"lookup\")) {\n sendLookupRequest(dnsName);\n } else {\n System.out.println(\"Invalid request\");\n System.exit(2);\n }\n\n // receive and print response\n String response = receiveResponse();\n System.out.println(response);\n\n // close streams\n socket.shutdownOutput();\n while(in.readLine() != null);\n out.close();\n in.close();\n\n // close socket\n socket.close();\n }", "private void searchItem(HttpServletRequest request, HttpServletResponse response) {\n\t\t\n\t}", "@Override\n\tprotected void executeGet(GetRequest request, OperationResponse response) {\n\t}", "public static void main(String[] args) {\n\n Request getReq = new Request();\n\n try {\n// getReq.sendReq(\"127.0.0.1\", \"/\", 80);\n getReq.sendReq(\"127.0.0.1\", \"/\", 40289);\n } catch (IOException e) {\n\n e.printStackTrace();\n }\n\n\n }", "private void processRequest(String targetID, HttpServerRequest req) throws Exception {\n\t\tString result = retrieveDetails(targetID);\n\t\tif(result != null)\n\t\t\treq.response().end(result);\t\n\t\telse\n\t\t\treq.response().end(\"No resopnse received\");\n\t}", "@Query(\"{domain:'?0'}\")\n Domain findCustomByDomain(String domain);", "public void handleRequest(Request req) {\n\n }", "public void requestJoke(){\n SharedPreferences preferences = activity.getPreferences(Activity.MODE_PRIVATE);\r\n String firstName = activity.getResources().getString(R.string.default_first_name);\r\n String lastName = activity.getResources().getString(R.string.default_last_name);\r\n jokeRetriever.getJoke(firstName, lastName, this);\r\n }", "public void handleRequest(Request request) {\n\t\tgetCityData(request.getCityName());\n\t\texportToFile(request.getCityName());\n\t}" ]
[ "0.536567", "0.5273587", "0.5107069", "0.5064441", "0.49888343", "0.4959744", "0.4909077", "0.49009398", "0.48866493", "0.4878655", "0.48358336", "0.48247588", "0.4782142", "0.4778608", "0.47652656", "0.47639856", "0.47574833", "0.47572818", "0.4754238", "0.47446698", "0.4743821", "0.47429344", "0.4740221", "0.47390708", "0.46628186", "0.4662379", "0.4654233", "0.46386704", "0.46227437", "0.46087024", "0.45834973", "0.45574227", "0.45536155", "0.45526206", "0.45499718", "0.45330834", "0.45243174", "0.45155102", "0.45048755", "0.4504475", "0.44941375", "0.4488998", "0.44881493", "0.44815925", "0.44788572", "0.4478846", "0.44781747", "0.44755378", "0.4473971", "0.4470266", "0.44663256", "0.4466202", "0.44636258", "0.4461061", "0.4453717", "0.4450995", "0.44498917", "0.44440126", "0.44371542", "0.4430085", "0.4425239", "0.44148257", "0.44125885", "0.44050056", "0.44040447", "0.4403733", "0.44008493", "0.43975794", "0.43955594", "0.43945315", "0.43920344", "0.4385806", "0.4384534", "0.43804422", "0.4376545", "0.43757525", "0.43749037", "0.4367637", "0.4363373", "0.43617064", "0.43614075", "0.43543917", "0.434835", "0.43455562", "0.43403846", "0.43368343", "0.43343076", "0.43337834", "0.43234435", "0.43152404", "0.431285", "0.43122977", "0.4310007", "0.43095902", "0.43063518", "0.43010318", "0.43002272", "0.4292729", "0.429163", "0.42875296", "0.428564" ]
0.0
-1
SimpleDateFormat format = new SimpleDateFormat("yyyyMMdd'T'HH:mm:ss'Z'");
public void setAge(String age) { Instant instant = Instant.parse(age) ; Date dateAge = Date.from(instant) ; //Date dateAge = format.parse(age); Log.e("age convert: ", String.valueOf(dateAge)); this.age = dateAge; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n SimpleDateFormat df = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ssX\"); // Quoted \"Z\" to indicate UTC, no timezone offset\n// df.setTimeZone(tz);\n// String nowAsISO = df.format(\"2017-04-21T21:25:35+05:00\");\n try {\n Date date = df.parse(\"2017-04-21T21:25:35+05:00\");\n System.out.println(date);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n\n }", "private static String convertDate(String date) {\n\t\tlong dateL = Long.valueOf(date);\n\t\tDate dateTo = new Date(dateL);\n\t\tDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss'Z'\");\n\t\tString formatted = format.format(dateTo);\n\t\tSystem.out.println(\"Date formatted: \" + formatted);\n\t\treturn formatted;\n\t}", "public static void main(String[] args) throws ParseException { 2019-05-30T10:15:16.0Z\n // 2019-05-30T10:18:21\n // SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n // String str = \"2019-05-30 18:15:16\";\n // Date date = sdf.parse(str);\n //\n // DateFormat formatter = new SimpleDateFormat(DATE_FORMAT);\n // // Date date = Calendar.getInstance().getTime();\n // TimeZone srcTimeZone = TimeZone.getTimeZone(\"GMT+8\");\n // TimeZone destTimeZone = TimeZone.getTimeZone(\"GMT\");\n // System.out.println(DateTransformer.dateTransformBetweenTimeZone(date, formatter, srcTimeZone, destTimeZone));\n //\n\n }", "public Date getSentAt() {\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss'Z'\");\n Date d = null;\n try {\n d = sdf.parse(creationDate);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return d;\n }", "private String stringFormattedTime(Instant instant){\n ZonedDateTime zonedDateTime = instant.atZone(ZoneOffset.UTC);\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"yyyy-MM-dd'T'HH:mm:ss'Z'\");\n return formatter.format(zonedDateTime);\n }", "private String dateFormat(String date) {\n SimpleDateFormat df = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'\", Locale.ENGLISH);\n df.setTimeZone(TimeZone.getTimeZone(\"UTC\"));\n Date serverDate = null;\n String formattedDate = null;\n try {\n serverDate = df.parse(date);\n SimpleDateFormat outputFormat = new SimpleDateFormat(\"MMM dd yyyy, hh:mm\");\n\n outputFormat.setTimeZone(TimeZone.getDefault());\n\n formattedDate = outputFormat.format(serverDate);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return formattedDate;\n }", "private static void m1() {\n\n String d = \"2019/03/22 10:00-11:00\";\n DateFormat df = new SimpleDateFormat(\"yyyy/MM/dd HH:mm-HH:mm\");\n try {\n Date parse = df.parse(d);\n System.out.println(df.format(parse));\n } catch (ParseException e) {\n e.printStackTrace();\n }\n }", "private String formatTime(String dateObject){\n\n SimpleDateFormat input = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss'Z'\"); // format kita \"HARUS SAMA TIDAK BOLEH FORMATNYA BEDA BAHKAN 1 CHAR PUN\n SimpleDateFormat output= new SimpleDateFormat(\"h:mm a\");\n Date jam = null;\n try {\n jam = input.parse(dateObject);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return output.format(jam);\n }", "private String formatDate(String dateObject) {\n SimpleDateFormat input = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss'Z'\"); // format kita \"HARUS SAMA TIDAK BOLEH FORMATNYA BEDA BAHKAN 1 CHAR PUN\n SimpleDateFormat output= new SimpleDateFormat(\"dd-MM-yyyy\");\n Date tanggal = null;\n try {\n tanggal = input.parse(dateObject);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return output.format(tanggal);\n\n }", "public static Date ISO8601_toDate(String dateString) throws java.text.ParseException {\n SimpleDateFormat df = new SimpleDateFormat( \"yyyy-MM-dd'T'HH:mm:ssz\" );\n\n //this is zero time so we need to add that TZ indicator for\n if ( dateString.endsWith( \"Z\" ) ) {\n dateString = dateString.substring( 0, dateString.length() - 1) + \"GMT-00:00\";\n } else {\n int inset = 6;\n\n String s0 = dateString.substring( 0, dateString.length() - inset );\n String s1 = dateString.substring( dateString.length() - inset, dateString.length() );\n\n dateString = s0 + \"GMT\" + s1;\n }\n\n return df.parse(dateString);\n\n }", "public static SimpleDateFormat createDateFormat() {\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss.SSS\");\n TimeZone myTimeZone = TimeZone.getTimeZone(ZoneId.of(\"UTC\"));\n dateFormat.setTimeZone(myTimeZone);\n dateFormat.setLenient(false);\n return dateFormat;\n }", "private static String zuluFormat(String beginTimestamp) {\n\t\tStringBuffer buf = new StringBuffer(beginTimestamp);\n\t\tbuf.insert(4, '-');\n\t\tbuf.insert(7, '-');\n\t\tbuf.insert(10, 'T');\n\t\tbuf.insert(13, ':');\n\t\tbuf.insert(16, ':');\n\t\tbuf.append('Z');\n\t\treturn buf.toString();\n\t}", "public static String getDate()\r\n {\r\n Date now = new Date();\r\n DateFormat df = new SimpleDateFormat (\"yyyy-MM-dd'T'hh-mm-ss\");\r\n String currentTime = df.format(now);\r\n return currentTime; \r\n \r\n }", "@Test\n public void datetimeTest() {\n assertEquals(OffsetDateTime.parse(\"2020-08-12T07:59:11Z\"), authResponse.getDatetime());\n }", "private static Date ISO_8601toDate(String dateTime) throws ParseException {\n\n //already in UTC\n if (dateTime.endsWith(\"Z\")) {\n return dateTimeFormatZ.parse(dateTime);\n }\n\n int positionT = dateTime.indexOf('T');\n\n int positionZ = dateTime.indexOf('+', positionT);\n if (positionZ == -1) {\n positionZ = dateTime.indexOf('-', positionT);\n }\n\n //no timezone specified, defaults to UTC\n if (positionZ == -1) {\n return dateTimeFormatZ.parse(dateTime + 'Z');\n }\n\n //convert to General time zone to preserve the timezone provided\n return dateTimeFormatGtz.parse(dateTime.substring(0, positionZ)\n + \"GMT\"\n + dateTime.substring(positionZ));\n }", "public String getTimestamp() \n{\n Calendar now = Calendar.getInstance();\n return String.format(\"20%1$ty-%1$tm-%1$td_%1$tHh%1$tMm%1$tSs\", now);\n}", "public Date parseAsISO8601(String str, ParsePosition parsePosition) {\n DateFormat dateFormat;\n int length = str.length();\n int i = length - 1;\n char charAt = str.charAt(i);\n if (length <= 10 && Character.isDigit(charAt)) {\n dateFormat = this._formatPlain;\n if (dateFormat == null) {\n dateFormat = _cloneFormat(DATE_FORMAT_PLAIN);\n this._formatPlain = dateFormat;\n }\n } else if (charAt == 'Z') {\n DateFormat dateFormat2 = this._formatISO8601_z;\n if (dateFormat2 == null) {\n dateFormat2 = _cloneFormat(DATE_FORMAT_ISO8601_Z);\n this._formatISO8601_z = dateFormat2;\n }\n if (str.charAt(length - 4) == ':') {\n StringBuilder sb = new StringBuilder(str);\n sb.insert(i, \".000\");\n str = sb.toString();\n dateFormat = dateFormat2;\n } else {\n dateFormat = dateFormat2;\n }\n } else if (hasTimeZone(str)) {\n int i2 = length - 3;\n char charAt2 = str.charAt(i2);\n if (charAt2 == ':') {\n StringBuilder sb2 = new StringBuilder(str);\n sb2.delete(i2, length - 2);\n str = sb2.toString();\n } else if (charAt2 == '+' || charAt2 == '-') {\n str = str + \"00\";\n }\n int length2 = str.length();\n if (Character.isDigit(str.charAt(length2 - 9))) {\n StringBuilder sb3 = new StringBuilder(str);\n sb3.insert(length2 - 5, \".000\");\n str = sb3.toString();\n }\n dateFormat = this._formatISO8601;\n if (dateFormat == null) {\n dateFormat = _cloneFormat(DATE_FORMAT_ISO8601);\n this._formatISO8601 = dateFormat;\n }\n } else {\n StringBuilder sb4 = new StringBuilder(str);\n if ((length - str.lastIndexOf(84)) - 1 <= 8) {\n sb4.append(\".000\");\n }\n sb4.append('Z');\n str = sb4.toString();\n dateFormat = this._formatISO8601_z;\n if (dateFormat == null) {\n dateFormat = _cloneFormat(DATE_FORMAT_ISO8601_Z);\n this._formatISO8601_z = dateFormat;\n }\n }\n return dateFormat.parse(str, parsePosition);\n }", "private void constructVssDateTimeFormat() {\n vssDateTimeFormat = new SimpleDateFormat(\"'Date: '\" + this.dateFormat + \" 'Time: 'hh:mma\"); \n }", "@SuppressWarnings(\"deprecation\")\r\n\tpublic String format(Date date,boolean time){\n\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyyMMdd\");\r\n\tString timestamp=dateFormat.format(date)+\"T\";\r\n\tif(time){\r\n\t\tdateFormat = new SimpleDateFormat(\"HH:mm:ssZ\");\r\n\t\ttimestamp+=dateFormat.format(date);\r\n\t}\r\n else{\r\n \tdate.setHours(12);\r\n \tdate.setMinutes(0);\r\n \tdate.setSeconds(0);\r\n \tdateFormat = new SimpleDateFormat(\"HH:mm:ss\");\r\n \ttimestamp+=dateFormat.format(date);\r\n \ttimestamp+=\"+0000\";\r\n }\r\n\treturn timestamp;\r\n }", "@Override\n\tpublic String[] getFormats() {\n\t\treturn new String[] {\"yyyy-MM-dd'T'HH:mm:ss\",\"yyyy-MM-dd HH:mm:ss\",\"yyyy-MM-dd HH:mm\",\"yyyy-MM-dd'T'HH:mm\",\"yyyy-MM-dd HH\", \"yyyy-MM-dd\" };\n\t}", "private static String convertDate(String dateString) {\n String date = null;\n\n try {\n //Parse the string into a date variable\n Date parsedDate = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss\").parse(dateString);\n\n //Now reformat it using desired display pattern:\n date = new SimpleDateFormat(DATE_FORMAT).format(parsedDate);\n\n } catch (ParseException e) {\n Log.e(TAG, \"getDate: Error parsing date\", e);\n e.printStackTrace();\n }\n\n return date;\n }", "public static String getISO8601StringForDate(Date date){\n DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss'Z'\", Locale.ENGLISH);\n dateFormat.setTimeZone(TimeZone.getTimeZone(\"IST\"));\n return dateFormat.format(date);\n }", "public String getMyDatePosted() {\n SimpleDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'\", Locale.US);\n try {\n Date date = format.parse(myDatePosted);\n Calendar cal = Calendar.getInstance();\n cal.setTime(date);\n cal.add(Calendar.HOUR, -7);\n Date temp = cal.getTime();\n format.applyPattern(\"MMM dd, yyyy hh:mm a\");\n return format.format(temp);\n } catch (ParseException e) {\n return myDatePosted;\n }\n }", "private static List<String> listDateFormats(){\r\n List<String> result = new ArrayList<String>();\r\n result.add(\"yyyy-MM-dd'T'HH:mm:ss'Z'\");\r\n result.add(\"yyyy-MM-ddZZ\");\r\n result.add(\"yyyy-MM-dd'T'HH:mm:ssz\");\r\n result.add(\"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'\");\r\n result.add(\"EEE MMM d hh:mm:ss z yyyy\");\r\n result.add(\"EEE MMM dd HH:mm:ss yyyy\");\r\n result.add(\"EEEE, dd-MMM-yy HH:mm:ss zzz\");\r\n result.add(\"EEE, dd MMM yyyy HH:mm:ss zzz\");\r\n result.add(\"EEE, dd MMM yy HH:mm:ss z\");\r\n result.add(\"EEE, dd MMM yy HH:mm z\");\r\n result.add(\"EEE, dd MMM yyyy HH:mm:ss z\");\r\n result.add(\"yyyy-MM-dd'T'HH:mm:ss\");\r\n result.add(\"EEE, dd MMM yyyy HH:mm:ss Z\");\r\n result.add(\"dd MMM yy HH:mm:ss z\");\r\n result.add(\"dd MMM yy HH:mm z\");\r\n result.add(\"'T'HH:mm:ss\");\r\n result.add(\"'T'HH:mm:ssZZ\");\r\n result.add(\"HH:mm:ss\");\r\n result.add(\"HH:mm:ssZZ\");\r\n result.add(\"yyyy-MM-dd\");\r\n result.add(\"yyyy-MM-dd hh:mm:ss\");\r\n result.add(\"yyyy-MM-dd HH:mm:ss\");\r\n result.add(\"yyyy-MM-dd'T'HH:mm:ssz\");\r\n result.add(\"yyyy-MM-dd'T'HH:mm:ss\");\r\n result.add(\"yyyy-MM-dd'T'HH:mm:ssZZ\");\r\n result.add(\"dd.MM.yyyy\");\r\n result.add(\"dd.MM.yyyy hh:mm:ss\");\r\n result.add(\"dd.MM.yyyy HH:mm:ss\");\r\n result.add(\"dd.MM.yyyy'T'HH:mm:ssz\");\r\n result.add(\"dd.MM.yyyy'T'HH:mm:ss\");\r\n result.add(\"dd.MM.yyyy'T'HH:mm:ssZZ\");\r\n result.add(\"dd.MM.yyyy hh:mm\");\r\n result.add(\"dd.MM.yyyy HH:mm\");\r\n result.add(\"dd/MM/yyyy\");\r\n result.add(\"dd/MM/yy\");\r\n result.add(\"MM/dd/yyyy\");\r\n result.add(\"MM/dd/yy\");\r\n result.add(\"MM/dd/yyyy hh:mm:ss\");\r\n result.add(\"MM/dd/yy hh:mm:ss\");\r\n return result;\r\n }", "public String dateToISO8601(Date date)\n {\n SimpleDateFormat df = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss.SXXX\");\n TimeZone tz = TimeZone.getDefault();\n df.setTimeZone(tz);\n return df.format(date);\n }", "public String toString() {\n return String.format(\"%02d:%02dZ%02d%s%d\", hour, minute, day, months[month - 1], year);\n }", "private static Date parseISOTimestring(String timestring) throws ParseException{\r\n boolean containsT = timestring.contains(\"T\");\r\n boolean containsSpace = timestring.contains(\" \");\r\n int len = timestring.length();\r\n char colonTZ = timestring.charAt(len-3);\r\n if(colonTZ == ':'){\r\n String part1 = timestring.substring(0, len-3);\r\n String part2 = timestring.substring(len-2, len);\r\n try{\r\n if(containsT){\r\n Date date = formatSecsTZwT.parse(part1+part2);\r\n return date;\r\n }else if(containsSpace){\r\n Date date = formatSecsTZ.parse(part1+part2);\r\n return date;\r\n }\r\n else{\r\n throw new ParseException(\"Unsupported pattern!\", 0);\r\n }\r\n } catch(ParseException e){\r\n throw new ParseException(e.getMessage(), 0);\r\n }\r\n }\r\n else{\r\n throw new ParseException(\"Unsupported pattern!\", 0);\r\n }\r\n }", "private static String getStamp() {\n\t\t\t return new SimpleDateFormat(\"yyyyMMddHHmmss\").format(new Date());\r\n\t\t}", "public static String toISO8601UTC(Date date) {\n TimeZone tz = TimeZone.getTimeZone(\"UTC\");\n DateFormat df = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss.SSSSSS'Z'\");\n df.setTimeZone(tz);\n Log.d(\"DateUtils\", String.format(\"toISO8601UTC: %s\", df.format(date)));\n return df.format(date);\n }", "String getCreated_at();", "public final /* synthetic */ Object initialValue() {\n return new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss\", Locale.US);\n }", "private static Date parseISOTimestringWithMillis(String timestring) throws ParseException{\r\n boolean containsT = timestring.contains(\"T\");\r\n boolean containsSpace = timestring.contains(\" \");\r\n int len = timestring.length();\r\n char colonTZ = timestring.charAt(len-3);\r\n if(colonTZ == ':'){\r\n String part1 = timestring.substring(0, len-3);\r\n String part2 = timestring.substring(len-2, len);\r\n try{\r\n if(containsT){\r\n Date date = formatMiliSecsTZwT.parse(part1+part2);\r\n return date;\r\n }else if(containsSpace){\r\n Date date = formatMiliSecsTZ.parse(part1+part2);\r\n return date;\r\n }\r\n else{\r\n throw new ParseException(\"Unsupported pattern!\", 0);\r\n }\r\n } catch(ParseException e){\r\n throw new ParseException(e.getMessage(), 0);\r\n }\r\n }\r\n else{\r\n throw new ParseException(\"Unsupported pattern!\", 0);\r\n }\r\n }", "private String getFormattedDate(Integer format) {\n Date date = new Date(format * 1000L);\n DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss.SSS\");\n dateFormat.setTimeZone(TimeZone.getTimeZone(\"Etc/UTC\"));\n Log.e(\"time\",dateFormat.format(date));\n return dateFormat.format(date);\n }", "@JsonFormat(pattern=\"yyyyMMddHHmmss\",timezone = \"GMT+8\")\n\tpublic Date getCreateTs() {\n\t\treturn createTs;\n\t}", "public static String formatSolrDate(String dateString) throws ParseException {\n SimpleDateFormat outputFormat = new SimpleDateFormat(\n \"yyyy-MM-dd'T'HH:mm:ss'Z'\");\n String inputFormat = \"MM/dd/yyyy\";\n return outputFormat.format(new SimpleDateFormat(inputFormat)\n .parse(dateString));\n }", "private String currentDateTime() {\n DateFormat df = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss.SSSZ\");\n String date = df.format(Calendar.getInstance().getTime());\n return date;\n }", "public static Date getExpirationAsDate(String dateStr) {\n DateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss\");\n try {\n sdf.setTimeZone(TimeZone.getTimeZone(\"UTC\"));\n return sdf.parse(dateStr);\n } catch (ParseException e) {\n e.printStackTrace();\n return new Date();\n }\n }", "public static String convertDateToSend(String gotdate){\n Calendar calendar = Calendar.getInstance();\n calendar.setTimeInMillis(Long.parseLong(gotdate));\n SimpleDateFormat inputFormat = new SimpleDateFormat(\"yyyyMMddHHmmss\");\n SimpleDateFormat outputFormat = new SimpleDateFormat(\"dd MMM yyyy\");\n /*Date parsedDate = null;\n try {\n parsedDate = inputFormat.parse(gotdate);\n } catch (ParseException e) {\n e.printStackTrace();\n }*/\n String formattedDate = outputFormat.format(calendar.getTime());\n return formattedDate;\n }", "protected String obterData(String format) {\n\t\tDateFormat formato = new SimpleDateFormat(format);\n\t\tDate data = new Date();\n\t\treturn formato.format(data).toString();\n\t}", "public static void main(String[] args) throws ParseException {\n\t Long t = Long.parseLong(\"1540452984\");\r\n Timestamp ts = new Timestamp(1540453766);\r\n DateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\r\n //方法一:优势在于可以灵活的设置字符串的形式。\r\n String tsStr = sdf.format(ts);// 2017-01-15 21:17:04\r\n System.out.println(tsStr);\r\n\t}", "public String formatDateAndTime(String date){\n\n return dateTimeFormatter.parse(date).toString();\n\n }", "public static String createTimeStamp(){\n return new SimpleDateFormat( \"yyyy.MM.dd.HH.mm.ss\").format(new Date());\n }", "public static String getYYYYMMDDHHMMSS()\r\n/* 56: */ {\r\n/* 57: 68 */ String nowTime = \"\";\r\n/* 58: 69 */ Date now = new Date();\r\n/* 59: 70 */ SimpleDateFormat formatter = new SimpleDateFormat(\"yyyyMMddHHmmss\");\r\n/* 60: 71 */ nowTime = formatter.format(now);\r\n/* 61: 72 */ return nowTime;\r\n/* 62: */ }", "private String getDateTime() {\n SimpleDateFormat sdf = new SimpleDateFormat(\"[yyyy/MM/dd - HH:mm:ss]\");\n return sdf.format(new Date());\n }", "private String getDateTime() {\n SimpleDateFormat sdf = new SimpleDateFormat(\"[yyyy/MM/dd - HH:mm:ss]\");\n return sdf.format(new Date());\n }", "private String getISO8601Timestamp(long date) {\n SimpleDateFormat format = new SimpleDateFormat(TIMESTAMP_FORMAT);\n // Convert the date into YYYY-MM-DDThh:mm:ss.sss\n String result = format.format(date);\n // Get default time zone in +/-hhmm format\n TimeZone tz = TimeZone.getDefault();\n int offset = tz.getRawOffset();\n // Convert the timezone format from +/-hhmm to +/-hh:mm\n String formatTimeZone = String.format(TIMEZONE_FORMAT, offset >= 0 ? \"+\" : \"-\", offset / 3600000, (offset / 60000) % 60);\n return result + formatTimeZone;\n }", "private String syncTimeStamp(String timestamp){\r\n StringBuilder dateBuilder = new StringBuilder(timestamp);\r\n String time = dateBuilder.toString().split(\"T\")[1].substring(0, 8);\r\n String[] timeArr = time.split(\":\");\r\n String seconds = timeArr[2];\r\n String dd = dateBuilder.toString().split(\"T\")[0].split(\"-\")[2];\r\n String mm = dateBuilder.toString().split(\"T\")[0].split(\"-\")[1];\r\n String yyyy = dateBuilder.toString().split(\"T\")[0].split(\"-\")[0];\r\n int hour = Integer.parseInt(timeArr[0]);\r\n int minutes = Integer.parseInt(timeArr[1]);\r\n minutes += 30;\r\n hour+=5;\r\n if (minutes>=60){\r\n hour += 1;\r\n minutes -= 60;\r\n }\r\n if (hour >= 24){\r\n hour -= 24;\r\n dd = Integer.toString(Integer.parseInt(dd) + 1);\r\n if (Integer.parseInt(dd) < 10)\r\n dd = \"0\" + dd;\r\n }\r\n String minutesString;\r\n if (minutes < 10)\r\n minutesString = \"0\" + Integer.toString(minutes);\r\n else\r\n minutesString = Integer.toString(minutes);\r\n\r\n String hoursString;\r\n if (hour < 10)\r\n hoursString = \"0\" + Integer.toString(hour);\r\n else\r\n hoursString = Integer.toString(hour);\r\n String finalTime = hoursString + \":\" + minutesString + \":\" + seconds;\r\n String finalDate = dd + \"-\" + mm + \"-\" + yyyy;\r\n\r\n return (finalDate + \" \" + finalTime);\r\n }", "public boolean looksLikeISO8601(String str) {\n if (str.length() < 5 || !Character.isDigit(str.charAt(0)) || !Character.isDigit(str.charAt(3)) || str.charAt(4) != '-') {\n return false;\n }\n return true;\n }", "@Test\n public void shouldSerializeToTextWhenSerializingDateToISO8601() throws Exception {\n SimpleDateFormat df = new SimpleDateFormat(\"dd-MM-yyyy hh:mm\");\n df.setTimeZone(TimeZone.getTimeZone(\"UTC\"));\n\n String toParse = \"01-01-1970 02:30\";\n Date date = df.parse(toParse);\n Event event = new Event(\"party\", date);\n\n ObjectMapper mapper = new ObjectMapper();\n mapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS);\n mapper.setDateFormat(new ISO8601DateFormat());\n String result = mapper.writeValueAsString(event);\n\n assertThat(result, containsString(\"1970-01-01T02:30:00Z\"));\n }", "private String getDateTime() {\n SimpleDateFormat sdf = new SimpleDateFormat(\"[yyyy/MM/dd - HH:mm:ss]\");\n return sdf.format(new Date());\n }", "private static String getTimeStamp()\r\n\t{\r\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd_HH.mm.ss\");\r\n\t\tDate date = new Date();\r\n\t\treturn dateFormat.format(date);\r\n\t}", "private void checkCorrectDateFormat(String date) {\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss\", Locale.getDefault());\n sdf.setLenient(false);\n try {\n sdf.parse(date);\n } catch (ParseException e) {\n throw new IllegalArgumentException(\n \"Google Calendar Event Date must follow\" + \" the format: \\\"yyyy-MM-dd'T'HH:mm:ss\\\"\");\n }\n }", "@Test\n public void testIsValidateDate() {\n System.out.println(\"isValidateDate\");\n String dateString = \"2016-03-23T10:25:01Z\";\n boolean expResult = true;\n boolean result = DateUtil.isValidateDate(dateString);\n assertEquals(expResult, result);\n }", "public static String getNowAsTimestamp() {\r\n\r\n DateFormat dateFormat = new SimpleDateFormat(DATE_FORMAT_PATTERN);\r\n dateFormat.setTimeZone(TimeZone.getTimeZone(\"UTC\"));\r\n return dateFormat.format(new Date()).replaceAll(\"\\\\+0000\", \"Z\").replaceAll(\"([+-][0-9]{2}):([0-9]{2})\", \"$1$2\");\r\n }", "private static String timeHandler(String date) {\n SimpleDateFormat dbFormat = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'\");\n SimpleDateFormat dayFormat = new SimpleDateFormat(\"MM-dd\");\n SimpleDateFormat timeFormat = new SimpleDateFormat(\"HH:mm\");\n dbFormat.setTimeZone(TimeZone.getTimeZone(\"UTC\"));\n String today = dayFormat.format(new Date());\n String day = \"\";\n String time = \"\";\n try {\n time = timeFormat.format(dbFormat.parse(date));\n day = dayFormat.format(dbFormat.parse(date));\n } catch (ParseException e) {\n e.printStackTrace();\n }\n if (day.equals(today)) {\n return \"Today \" + time;\n } else if (day.equals(dayFormat.format(yesterday()))) {\n return \"Yesterday \" + time;\n } else {\n return day + \" \" + time;\n }\n }", "public static String GetStringObjectFromDate(Date date) {\n\t\tString lv_dateFormateInUTC = null;\n\n\t\ttry {\n\t\t\tSimpleDateFormat lv_formatter = new SimpleDateFormat(\n\t\t\t\t\t\"yyyy-MM-dd'T'HH:mm:ss'Z'\");\n\t\t\tlv_formatter.setTimeZone(TimeZone.getTimeZone(\"GMT\"));\n\n\t\t\tlv_dateFormateInUTC = lv_formatter.format(date);\n\n\t\t} catch (Exception e) {\n\t\t\t// do some error reporting here\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn lv_dateFormateInUTC;\n\t}", "public static String m128354a(String str) {\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"yyyy-MM-dd-HHmmssSSS\", Locale.US);\n Calendar instance = Calendar.getInstance(TimeZone.getTimeZone(\"GMT+8\"));\n C7573i.m23582a((Object) instance, \"calendar\");\n Date time = instance.getTime();\n StringBuilder sb = new StringBuilder();\n sb.append(simpleDateFormat.format(time));\n sb.append(str);\n return sb.toString();\n }", "public void m3() {\n\t\t\r\n\t\tLocalDate dob = LocalDate.parse(\"1991::09::17\",DateTimeFormatter.BASIC_ISO_DATE);\r\n\tSystem.out.println(dob);\r\n\t}", "public static String format(Date dateTime) {\r\n String dot = new SimpleDateFormat(\"yyyy-MM-dd.HH:mm:ss\").format(dateTime);\r\n return dot.replaceAll(\"[.]\", \"T\");\r\n }", "public static DateFormat urlDateFormatter() {\n return Iso8601Formatter.dateTimeMillisFormatter();\n }", "String getDate();", "String getDate();", "public static String getRandomTimeStamp() {\n\t\treturn \"2014-12-12T10:39:40Z\";\n\t}", "public static Date GetDateObjectFromStringUpdate(String dateAsString) {\n\t\tSimpleDateFormat lv_formatter = new SimpleDateFormat(\n\t\t\t\t\"yyyy-MM-dd'T'HH:mm:ss'Z'\");\n\t\tlv_formatter.setTimeZone(TimeZone.getTimeZone(\"UTC\"));\n\t\tDate tempDate = null;\n\t\ttry {\n\t\t\tif (dateAsString != null && !dateAsString.equalsIgnoreCase(\"null\"))\n\t\t\t\ttempDate = lv_formatter.parse(dateAsString);\n\t\t} catch (Exception e) {\n\t\t\t// do some error reporting here\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn tempDate;\n\t}", "public static void main(String[] args) throws ParseException {\n\t\n\t\t String temp = \"2016-06-20 22:49:02.967\";\n\t\t Date date = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\").parse(temp);\n\t\t System.out.println(date.after(new Date()));\n\t}", "public String changeDateTimeFormat(String dateStr) {\n String inputPattern = \"MMM-dd-yyyy hh:mm a\";\n String outputPattern = \"MMMM dd, yyyy hh:mm a\";\n SimpleDateFormat inputFormat = new SimpleDateFormat(inputPattern);\n SimpleDateFormat outputFormat = new SimpleDateFormat(outputPattern);\n\n Date date = null;\n String str = null;\n\n try {\n date = inputFormat.parse(dateStr);\n str = outputFormat.format(date);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return str;\n\n }", "public void testAttributeWithFormatAndConverterType() {\n AttributeWithFormatAndConverterTypeTestDTO obj = new AttributeWithFormatAndConverterTypeTestDTO();\n obj.attribute = getDateForFormatAndConverter(\"28.02.2007:15:21:27\");\n assertTrue(JSefaTestUtil.serialize(XML, obj).indexOf(\"2007-02-28T14:21:27.000-01:00\") >= 0);\n }", "public static void main(String[] args)\r\n/* 96: */ {\r\n/* 97:104 */ SimpleDateFormat df = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n/* 98:105 */ String qiandaotime = df.format(new Date());\r\n/* 99:106 */ System.out.println(qiandaotime);\r\n/* 100: */ }", "public static String getDateString(){\n\t\t\tCalendar now = Calendar.getInstance();\n\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd__HH-mm-ss\");\n\t\t\treturn sdf.format(now.getTime());\n\t }", "public static Date GetDateObjectFromString(String dateAsString) {\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss'Z'\");\n\t\tDate tempDate = null;\n\t\ttry {\n\t\t\tif (dateAsString != null && !dateAsString.equalsIgnoreCase(\"null\"))\n\t\t\t\ttempDate = sdf.parse(dateAsString);\n\t\t} catch (Exception e) {\n\t\t\t// do some error reporting here\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn tempDate;\n\t}", "public void testAttributeWithFormat() {\n AttributeWithFormatTestDTO obj = new AttributeWithFormatTestDTO();\n obj.attribute = getDateForFormat(\"28.02.2007:15:21:27\");\n assertTrue(JSefaTestUtil.serialize(XML, obj).indexOf(\"28.02.2007:15:21:27\") >= 0);\n }", "private static Date getFormattedDate(String date){\n\t\tString dateStr = null;\n\t\tif(date.length()<11){\n\t\t\tdateStr = date+\" 00:00:00.0\";\n\t\t}else{\n\t\t\tdateStr = date;\n\t\t}\n\t\tDate formattedDate = null;\n\t\ttry {\n\t\t\tformattedDate = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss.S\").parse(dateStr);\n\t\t} catch (ParseException e) {\n\t\t\tCommonUtilities.createErrorLogFile(e);\n\t\t}\n\t\treturn formattedDate;\n\n\t}", "public void testParser1() throws Exception {\n // YYYY-MM-DDThh:mm:ss.sTZD => 1997-07-16T19:20:30.45+02:00\n Calendar ref = Calendar.getInstance(TimeZone.getTimeZone(\"GMT+2:00\"));\n ref.set(1997, 06, 16, 19, 20, 30);\n ref.set(Calendar.MILLISECOND, 45);\n Calendar cal = DateParser.parse(\"1997-07-16T19:20:30.045+02:00\");\n assertEquals(ref.getTime(), cal.getTime());\n // calendars are not equals since they have different time zones - but\n // datetime in milliseconds are the same\n }", "public CustomObjectMapper(){\n this.setDateFormat(new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\"));\n }", "public Date createDate(String strDate){\n\n Date date = null;\n\n // Get time\n Calendar cal = Calendar.getInstance();\n Date currentLocalTime = cal.getTime();\n DateFormat dateformat = new SimpleDateFormat(\"HH:mm:ss\");\n String localTime = dateformat.format(currentLocalTime);\n\n // Concat strings\n String tmpDate = strDate + \" \" + localTime;\n //\n SimpleDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\n try {\n date = format.parse(tmpDate);\n\n } catch (ParseException e) {\n e.printStackTrace();\n }\n\n return date;\n }", "public static String getLog14Date(){\r\n return TIMESTAMP14ISO8601Z.get().format(new Date());\r\n }", "public static void main(String[] args) {\n System.out.println(new Date().getTime());\n\n // 2016-12-16 11:48:08\n Calendar calendar = Calendar.getInstance();\n calendar.set(2016, 11, 16, 12, 0, 1);\n System.out.println(calendar.getTime());\n Date date=new Date();\n SimpleDateFormat simpleDateFormat=new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n System.out.println(simpleDateFormat.format(date));\n\n\n }", "private String getDate(String str) {\n String[] arr = str.split(\"T\");\n DateFormat formatter = new SimpleDateFormat(\"yyyy-mm-d\", Locale.US);\n Date date = null;\n try {\n date = formatter.parse(arr[0]);\n } catch (java.text.ParseException e) {\n Log.e(LOG_TAG, \"Could not parse date\", e);\n }\n SimpleDateFormat dateFormatter = new SimpleDateFormat(\"MMM d, yyyy\", Locale.US);\n\n return dateFormatter.format(date);\n }", "public static String getDateFormatJson(String dateStr)\r\n\t{\r\n\t\tHashMap dateHashMap = new HashMap();\r\n\t\tStringBuffer one = new StringBuffer();\r\n\t\tStringBuffer two = new StringBuffer();\r\n\t\tStringBuffer three = new StringBuffer();\r\n\t\tStringBuffer separators = new StringBuffer();\r\n\t\tint index = 0;\r\n\t\tint count = 0;\r\n\t\tint firstSepIndex = 0;\r\n\t\tfor (int i = 0; i < dateStr.length(); i++)\r\n\t\t{\r\n\t\t\tchar dateChar = dateStr.charAt(i);\r\n\t\t\tindex = dateStr.indexOf(dateChar);\r\n\t\t\tif ((firstSepIndex != index)\r\n\t\t\t\t\t&& ((dateChar >= 'a' && dateChar <= 'z') || (dateChar >= 'A' && dateChar <= 'Z')))\r\n\t\t\t{\r\n\t\t\t\tseparators.append(\"N\");\r\n\t\t\t\tfirstSepIndex = index;\r\n\t\t\t}\r\n\t\t\tif ((dateChar >= 'a' && dateChar <= 'z') || (dateChar >= 'A' && dateChar <= 'Z'))\r\n\t\t\t{\r\n\t\t\t\tif (index == 0)\r\n\t\t\t\t{\r\n\t\t\t\t\tone.append(dateChar);\r\n\t\t\t\t\tcount++;\r\n\t\t\t\t} else if (index > 0 && count == index)\r\n\t\t\t\t{\r\n\t\t\t\t\ttwo.append(dateChar);\r\n\t\t\t\t} else\r\n\t\t\t\t{\r\n\t\t\t\t\tthree.append(dateChar);\r\n\t\t\t\t}\r\n\t\t\t} else\r\n\t\t\t{\r\n\t\t\t\tif (dateChar == ' ')\r\n\t\t\t\t\tdateChar = 'S';\r\n\t\t\t\tseparators.append(dateChar);\r\n\t\t\t\tcount++;\r\n\t\t\t\tfirstSepIndex = index + 1;\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\tdateHashMap.put(\"datePositionOne\", one.toString());\r\n\t\tdateHashMap.put(\"datePositionTwo\", two.toString());\r\n\t\tdateHashMap.put(\"datePositionThree\", three.toString());\r\n\r\n\t\tif (separators.length() >= 2)\r\n\t\t{\r\n\t\t\tdateHashMap.put(\"dateSeparatorOne\", separators.substring(0, 1));\r\n\t\t\tdateHashMap.put(\"dateSeparatorTwo\", separators.substring(1, 2));\r\n\t\t} else\r\n\t\t{\r\n\t\t\tdateHashMap.put(\"dateSeparatorOne\", separators.toString());\r\n\t\t}\r\n\t\tString jsonString = HashMapToJSONConverter.convertHashMapToJSONFormat(dateHashMap);\r\n\t\treturn jsonString;\r\n\t}", "public static String fromDate(String s){\n \t\t\n \t\tString[] date = s.split(\"T\");\n \t\tString time = date[1].substring(0,5);\n \t\tString[] dates = date[0].split(\"-\"); \n \t\tString month = dates[1];\n \t\tString day = dates[2];\n \t\t\n \t\treturn day + \"/\" + month + \", kl: \" + time;\n \t}", "public static void main(String[] args) {\r\n\t\tDate now = new Date();\r\n\t\tSimpleDateFormat sdf = \r\n\t\tnew SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\r\n\tString str = sdf.format(now);\r\n\tSystem.out.println(str);\r\n\tlong time = now.getTime();\r\n\ttime += 48954644;\r\n\tnow.setTime(time);\r\n\tSystem.out.println(sdf.format(now));\r\n\tDate dat = null;\r\n\ttry {\r\n\t\tdat = sdf.parse(str);\r\n\t} catch (ParseException e) {\r\n\t\t// TODO Auto-generated catch block\r\n\t\te.printStackTrace();\r\n\t}\r\n\tSystem.out.println(dat);\r\n\t\r\n\r\n}", "private String prettyTime() {\n String[] dt = time.split(\"T\");\n String[] ymd = dt[0].split(\"-\");\n String[] hms = dt[1].split(\":\");\n\n int hour = Integer.parseInt(hms[0]);\n\n String date = getMonth(Integer.parseInt(ymd[1])) + \" \" + ymd[2] + \", \" + ymd[0];\n String time = (hour > 12 ? hour - 12 : hour) + \":\" + hms[1] + \":\" + hms[2].substring(0, hms[2].indexOf(\".\"));\n return date + \" at \" + time;\n }", "public static String convertDate(String inputdate, String fromtimezone, String totimezone)\n\n {\n String sDateinto = \"\";\n try {\n SimpleDateFormat formatter = new SimpleDateFormat(DATE_FORMAT);\n\n String dateInString = inputdate.substring(0, 22) ;\n\n formatter.setTimeZone(TimeZone.getTimeZone(fromtimezone));\n Date date = formatter.parse(dateInString);\n Log.i(\"FromDate String : \", formatter.format(date));\n\n\n SimpleDateFormat totime = new SimpleDateFormat(DATE_FORMAT);\n //TimeZone tzlocaltime = TimeZone.getDefault();\n totime.setTimeZone(TimeZone.getTimeZone(totimezone));\n\n sDateinto = totime.format(date); // Convert to String first\n Date dateInTo = formatter.parse(sDateinto); // Create a new Date object\n\n // Log.i(\"ToDate String: \", sDateinto);\n Log.i(\"ToDate Object: \", formatter.format(dateInTo));\n return sDateinto ;\n }\n catch (ParseException e)\n {\n Log.i(\"Date Conversion\" ,\"Error in parsing\" );\n return \"Date parsing error\" ;\n }\n\n }", "public static DateTime parseTimestampWithTimeZone(String str) {\n return DateTimeFormat.forPattern(\"yyyy-MM-dd HH:mm:ssZ\").parseDateTime(str);\n }", "public static String timestamp(){\n\t\tDate date = new Date();\n\t\tDateFormat hourdateFormat = new SimpleDateFormat(\"dd/MM/yyyy HH:mm:ss \");\n\t\treturn hourdateFormat.format(date);\n\t}", "public Date Transfertime(String timetmp) {\n Date timedatetmp = new Date();\n try {\n timedatetmp = sdftime.parse(timetmp);\n }\n catch (ParseException e) { \n e.printStackTrace();\n }\n return timedatetmp;\n }", "@Override\n\tpublic String asString(Object object) {\n\t\t// at this point object is a Date\n\n\t\tCalendar calendar = Calendar.getInstance(TimeZone.getTimeZone(\"GMT\"));\n\t\tcalendar.setTime((Date) object);\n\n\t\tStringBuilder builder = new StringBuilder();\n\n\t\tint year = calendar.get(Calendar.YEAR);\n\t\tif (calendar.get(Calendar.ERA) == 0) {\n\t\t\t// https://en.wikipedia.org/wiki/ISO_8601\n\t\t\t// by convention 1 BC is labeled +0000, 2 BC is labeled −0001, ...\n\n\t\t\tif (year > 1) {\n\t\t\t\tbuilder.append('-');\n\t\t\t}\n\t\t\t--year;\n\t\t}\n\n\t\tbuilder.append(String.format(\"%04d\", year));\n\t\tbuilder.append('-');\n\t\tbuilder.append(String.format(\"%02d\", calendar.get(Calendar.MONTH) + 1));\n\t\tbuilder.append('-');\n\t\tbuilder.append(String.format(\"%02d\", calendar.get(Calendar.DATE)));\n\t\tbuilder.append('T');\n\t\tbuilder.append(String.format(\"%02d\", calendar.get(Calendar.HOUR_OF_DAY)));\n\t\tbuilder.append(':');\n\t\tbuilder.append(String.format(\"%02d\", calendar.get(Calendar.MINUTE)));\n\t\tbuilder.append(':');\n\t\tbuilder.append(String.format(\"%02d\", calendar.get(Calendar.SECOND)));\n\t\tbuilder.append('Z');\n\n\t\treturn builder.toString();\n\t}", "@Test\n public void shouldSerializeToTimestampWhenSerializingDateWithJackson() throws ParseException, JsonProcessingException {\n SimpleDateFormat df = new SimpleDateFormat(\"dd-MM-yyyy hh:mm\");\n df.setTimeZone(TimeZone.getTimeZone(\"UTC\"));\n\n Date date = df.parse(\"01-01-1970 01:00\");\n Event event = new Event(\"party\", date);\n\n ObjectMapper objectMapper = new ObjectMapper();\n String result = objectMapper.writeValueAsString(event);\n\n assertThat(result, containsString(\"party\"));\n assertThat(result, containsString(\"3600000\"));\n }", "public DERUTCTime(String time) {\n\t}", "public static String fromCalendar(final java.util.Calendar calendar) {\n // TODO: move this method to DateUtils\n Date date = calendar.getTime();\n String formatted = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ssZ\").format(date);\n return formatted.substring(0, 22) + \":\" + formatted.substring(22);\n }", "public static String dateStr(String input ){\n String mm = input.substring(0,2);\n String dd = input.substring(3,5);\n String yyyy = input.substring(6,10);\n return dd + \" - \" + mm + \" - \" + yyyy;\n }", "public static Date getDateFromString(String date) {\r\n Date newdate = null;\r\n SimpleDateFormat dateformat = new SimpleDateFormat(\"yyyy-MM-dd hh:mm:ss\");\r\n\r\n try {\r\n newdate = dateformat.parse(date);\r\n System.out.println(newdate);\r\n } catch (ParseException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n return newdate;\r\n }", "@Test\n public void shouldCorrectWhenSettingObjectMapperDateFormat() throws Exception {\n SimpleDateFormat df = new SimpleDateFormat(\"dd-MM-yyyy hh:mm\");\n\n String toParse = \"20-12-2014 02:30\";\n Date date = df.parse(toParse );\n Event event = new Event(\"party\", date);\n\n ObjectMapper mapper = new ObjectMapper();\n mapper.setDateFormat(df);\n\n String result = mapper.writeValueAsString(event);\n assertThat(result, containsString(toParse));\n }", "private static String getDate() {\n return new SimpleDateFormat(\"yyyyMMddHHmmss\").format\n (new Date(System.currentTimeMillis()));\n }", "public static Date fotmatDate21(String myDate) {\n\t\tDate dDate = new SimpleDateFormat(\"HH:mm:ss\").parse(myDate,\r\n\t\t\t\tnew ParsePosition(0));\r\n\t\treturn dDate;\r\n\t}", "private String m36904a(long timeStamp) {\n if (timeStamp == -1) {\n return null;\n }\n return new SimpleDateFormat(\"M/d/yy hh:mm:ss a z\", Locale.US).format(new Date(timeStamp));\n }", "private String formatDateForVSS(Date d) {\n SimpleDateFormat sdf = new SimpleDateFormat(this.dateFormat + \";hh:mma\");\n \t\tString vssFormattedDate = sdf.format(d);\n \t\treturn vssFormattedDate.substring(0, vssFormattedDate.length() - 1);\n \t}", "public static String getYYYYMMDD()\r\n/* 65: */ {\r\n/* 66: 81 */ String nowTime = \"\";\r\n/* 67: 82 */ Date now = new Date();\r\n/* 68: 83 */ SimpleDateFormat formatter = new SimpleDateFormat(\"yyyyMMdd\");\r\n/* 69: 84 */ nowTime = formatter.format(now);\r\n/* 70: 85 */ return nowTime;\r\n/* 71: */ }", "public static String GetIsoDateTime(Date dateToFormat) {\n\t\t// GPX specs say that time given should be in UTC, no local time.\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss'Z'\");\n\t\tsdf.setTimeZone(TimeZone.getTimeZone(\"UTC\"));\n\n\t\treturn sdf.format(dateToFormat);\n\t}", "private String formatTimeToICS(LocalDateTime date) {\n return DateTimeFormatter.ofPattern(\"YYYYMMddTHHmmss\").format(date);\n }", "public String getDate(){\n return date;\n }" ]
[ "0.64962524", "0.6209053", "0.6069732", "0.59866124", "0.5907144", "0.5880137", "0.58082944", "0.57854414", "0.57688993", "0.57533777", "0.5722569", "0.56792516", "0.5655362", "0.5618946", "0.56083083", "0.55910504", "0.5556153", "0.5550284", "0.55135787", "0.5512091", "0.5485633", "0.54155743", "0.53814304", "0.53729606", "0.5356295", "0.5355347", "0.5352667", "0.5329065", "0.53069776", "0.52942324", "0.52707785", "0.52648836", "0.5259207", "0.5241579", "0.51964545", "0.5186148", "0.5166543", "0.5149119", "0.5136359", "0.5123557", "0.51093185", "0.51080066", "0.5103889", "0.5101292", "0.5101292", "0.50993043", "0.50962675", "0.5088902", "0.50733155", "0.50704026", "0.50700885", "0.50569856", "0.50384885", "0.5036576", "0.5028348", "0.5023243", "0.5003145", "0.5000382", "0.49877337", "0.49843365", "0.49793097", "0.49793097", "0.49480405", "0.4942379", "0.4942053", "0.4938714", "0.4937097", "0.49205795", "0.49193317", "0.491281", "0.4909986", "0.49064305", "0.49019444", "0.48999795", "0.48992985", "0.48901135", "0.4886188", "0.4868058", "0.48531917", "0.48525146", "0.48505637", "0.48438638", "0.48389956", "0.48216918", "0.48138684", "0.4806302", "0.48062655", "0.47955817", "0.47922197", "0.4792216", "0.4759095", "0.4755948", "0.4753419", "0.47470167", "0.47434595", "0.47418508", "0.47337252", "0.47327304", "0.47271773", "0.47248462", "0.4720413" ]
0.0
-1
Created by F on 2017/3/12.
public interface FilmRepository extends JpaRepository<Film , Integer> { Page<Film> findByYear(Short year, Pageable pageable); List<Film> findByYear(Short year); List<Film> findFilmDistinctByYearIsNotNull(); @Query(value = "Select DISTINCT(f.year) From Film f ORDER BY f.year desc ") List<Short> findYearDistinct(); @Query(value = "Select h.name From f_entity_human h where h.jobs = '导演' ORDER BY h.name desc ") List<String> findDirectorDistinct(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "public final void mo51373a() {\n }", "private static void cajas() {\n\t\t\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "private void poetries() {\n\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public void mo38117a() {\n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "private void m50366E() {\n }", "protected boolean func_70814_o() { return true; }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "private void kk12() {\n\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\n public void init() {\n }", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\n void init() {\n }", "private void init() {\n\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public int describeContents() { return 0; }", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}", "@Override\n public void init() {}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {}", "@Override\n public void memoria() {\n \n }", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\n protected void init() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "public void mo6081a() {\n }", "private Rekenhulp()\n\t{\n\t}", "@Override\n\tpublic void init() {\n\t}", "@Override\n\tpublic void init()\n\t{\n\n\t}", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "static void feladat4() {\n\t}", "private void strin() {\n\n\t}", "@Override\n public int retroceder() {\n return 0;\n }", "public void mo21877s() {\n }", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "public void mo55254a() {\n }", "public void mo12930a() {\n }" ]
[ "0.59504247", "0.57787114", "0.5770678", "0.5715341", "0.56610435", "0.56610435", "0.5635149", "0.5618579", "0.5611971", "0.5589627", "0.5578648", "0.55500495", "0.55362666", "0.5528199", "0.5509936", "0.5495955", "0.5482909", "0.548257", "0.5471296", "0.546694", "0.54504067", "0.54504067", "0.54504067", "0.54504067", "0.54504067", "0.5448274", "0.5447826", "0.5444051", "0.54384303", "0.5422571", "0.5414384", "0.541213", "0.54041463", "0.53975254", "0.5392945", "0.53860044", "0.537223", "0.5370749", "0.53654313", "0.5364909", "0.53628016", "0.53555167", "0.5353869", "0.53334427", "0.53300977", "0.53278416", "0.5322032", "0.5322032", "0.5322032", "0.53083825", "0.53074", "0.5306702", "0.5306702", "0.5306702", "0.5306702", "0.5306702", "0.5306702", "0.5306702", "0.5303885", "0.52998817", "0.52998817", "0.52994084", "0.52994084", "0.5299329", "0.5299329", "0.5293532", "0.52881217", "0.52881217", "0.52881217", "0.5285663", "0.5285182", "0.5284053", "0.5284053", "0.5284053", "0.5280546", "0.5274925", "0.52745456", "0.52745456", "0.52745456", "0.52745456", "0.52745456", "0.52745456", "0.5247867", "0.5241538", "0.5237428", "0.5226972", "0.52229255", "0.5217789", "0.5217767", "0.5215651", "0.5214174", "0.52115923", "0.52051586", "0.5200399", "0.5199161", "0.51930666", "0.51881075", "0.51868206", "0.51856107", "0.51734537", "0.5165003" ]
0.0
-1
alt shift s override~
@Override public void input() { // TODO Auto-generated method stub System.out.println("================="); System.out.println("매입 매출 등록"); System.out.println("-----------------"); String pname = null; while (true) { System.out.print("상품명(QUIET:입력중단)>>"); pname = scan.nextLine(); if (pname.equals("QUIET")) { return; } else if (pname.equals("")) { System.out.println("상품명은 반드시 입력해야합니다"); continue; } break; } System.out.print("거래일자(yyyy-mm-dd)"); String date = scan.next(); System.out.print("거래처 명 >>"); String dname = scan.next(); System.out.print("매입매출구분>>"); String iout = scan.next(); System.out.print("수량>>"); Integer qty = scan.nextInt(); Integer iprice = this.inputPrice("매입"); if (iprice == null) { return; } Integer oprice = this.inputPrice("매출"); if (oprice == null) { return; } IolistVO VO = new IolistVO(); VO.setPname(pname); VO.setDate(date); VO.setDname(dname); VO.setInout(iout); VO.setIprice(iprice); VO.setOprice(oprice); VO.setQty(qty); iolist.add(VO); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void moveShiftRight();", "public void moveShiftLeft();", "protected abstract boolean shift();", "public static void main(String[] args) {\n shift();\n\n }", "public static void shift(StringBuilder s){\n\t\t\n\t\t\n\t\t\n\t}", "public static String symbol() {\n return \"ALT\";\n }", "void keyRight();", "@Override\n public void onDirectRightKeyPress() {\n \n }", "@Override\n public void onDirectRightKeyPress() {\n \n }", "public boolean isShift ()\n {\n return isShift;\n }", "public void testShortcuts() {\n TestMode mode2 = new TestMode2();\n\n inputScheme.addMode(2, mode2);\n inputScheme.switchMode(2);\n // CMD+ALT+s\n mode2.addShortcut(new EventShortcut(ModifierKeys.ACTION | ModifierKeys.ALT, 's') {\n @Override\n public boolean event(InputScheme scheme, SignalEvent event) {\n // callback in here\n ((TestScheme) scheme).setFlag();\n return true;\n }\n }\n );\n \n // SHIFT+TAB\n mode2.addShortcut(new EventShortcut(ModifierKeys.SHIFT, KeyCodeMap.TAB) {\n @Override\n public boolean event(InputScheme scheme, SignalEvent event) {\n // callback in here\n ((TestScheme) scheme).setFlag();\n return true;\n }\n }\n );\n \n // CMD+\\\n mode2.addShortcut(new EventShortcut(ModifierKeys.ACTION, '\\\\') {\n @Override\n public boolean event(InputScheme scheme, SignalEvent event) {\n // callback in here\n ((TestScheme) scheme).setFlag();\n return true;\n }\n }\n );\n \n // ;\n mode2.addShortcut(new EventShortcut(ModifierKeys.NONE, ';') {\n @Override\n public boolean event(InputScheme scheme, SignalEvent event) {\n // callback in here\n ((TestScheme) scheme).setFlag();\n return true;\n }\n }\n );\n \n // .\n mode2.addShortcut(new EventShortcut(ModifierKeys.ALT, '.') {\n @Override\n public boolean event(InputScheme scheme, SignalEvent event) {\n // callback in here\n ((TestScheme) scheme).setFlag();\n return true;\n }\n }\n );\n \n // PAGE_UP\n mode2.addShortcut(new EventShortcut(ModifierKeys.NONE, KeyCodeMap.PAGE_UP) {\n @Override\n public boolean event(InputScheme scheme, SignalEvent event) {\n // callback in here\n ((TestScheme) scheme).setFlag();\n return true;\n }\n }\n );\n \n // feed in javascript keycode representations\n TestSignalEvent evt1 = new TestSignalEvent('A');\n TestSignalEvent evt2 = new TestSignalEvent('A', ModifierKeys.ACTION, ModifierKeys.ALT);\n TestSignalEvent evt3 = new TestSignalEvent('S');\n TestSignalEvent evt4 = new TestSignalEvent('S', ModifierKeys.ACTION, ModifierKeys.ALT);\n TestSignalEvent evt5 = new TestSignalEvent(KeyCode.TAB, ModifierKeys.SHIFT);\n TestSignalEvent evt6 = new TestSignalEvent(KeyCode.BACKSLASH, ModifierKeys.ACTION);\n TestSignalEvent evt7 = new TestSignalEvent(KeyCode.SEMICOLON);\n TestSignalEvent evt8 = new TestSignalEvent(KeyCode.PERIOD, ModifierKeys.ALT);\n TestSignalEvent evt9 = new TestSignalEvent(KeyCode.PAGE_UP);\n \n // evt1..3 shouldn't fire the callback, only evt4..6 should\n inputScheme.initFlag(0, 1);\n assertFalse(sendSignal(evt1));\n assertEquals(inputScheme.getFlag(), 0);\n assertFalse(sendSignal(evt2));\n assertEquals(inputScheme.getFlag(), 0);\n assertFalse(sendSignal(evt3));\n assertEquals(inputScheme.getFlag(), 0);\n assertTrue(sendSignal(evt4));\n assertEquals(inputScheme.getFlag(), 1);\n inputScheme.initFlag(0, 2);\n assertTrue(sendSignal(evt5));\n assertEquals(inputScheme.getFlag(), 2);\n inputScheme.initFlag(0, 3);\n assertTrue(sendSignal(evt6));\n assertEquals(inputScheme.getFlag(), 3);\n inputScheme.initFlag(0, 4);\n assertTrue(sendSignal(evt7));\n assertEquals(inputScheme.getFlag(), 4);\n inputScheme.initFlag(0, 5);\n assertTrue(sendSignal(evt8));\n assertEquals(inputScheme.getFlag(), 5);\n inputScheme.initFlag(0, 6);\n assertTrue(sendSignal(evt9));\n assertEquals(inputScheme.getFlag(), 6);\n \n // now try out StreamShortcuts, such as vi quit: \":q!\"\n \n mode2.addShortcut(new StreamShortcut(\":q!\") {\n @Override\n public boolean event(InputScheme scheme, SignalEvent event) {\n // callback in here\n ((TestScheme) scheme).setFlag();\n return true;\n }\n });\n \n TestSignalEvent x = new TestSignalEvent('X');\n TestSignalEvent excl = new TestSignalEvent('1', ModifierKeys.SHIFT); // !\n TestSignalEvent q = new TestSignalEvent('Q');\n TestSignalEvent upperQ = new TestSignalEvent('Q', ModifierKeys.SHIFT);\n TestSignalEvent colon = new TestSignalEvent(KeyCode.SEMICOLON, null, ModifierKeys.SHIFT);\n\n inputScheme.initFlag(0, 2);\n assertFalse(sendSignal(x)); // random entry\n assertEquals(inputScheme.getFlag(), 0);\n assertTrue(sendSignal(colon)); // beginning of command\n assertEquals(inputScheme.getFlag(), 0);\n assertFalse(sendSignal(upperQ)); // test uppercase vs lowercase\n assertEquals(inputScheme.getFlag(), 0);\n assertFalse(sendSignal(excl));\n assertEquals(inputScheme.getFlag(), 0);\n \n // do the combo :q!\n assertTrue(sendSignal(colon));\n assertTrue(sendSignal(q));\n assertTrue(sendSignal(excl));\n assertEquals(inputScheme.getFlag(), 2); // triggers callback\n assertFalse(sendSignal(x)); // should reset\n }", "@Override\n public void keyPressed(KeyEvent e) {\n int kc = e.getKeyCode();\n if (kc == KeyEvent.VK_CONTROL || e.getKeyChar() == 'a') {\n TrafficUI.altDir = true;\n }\n }", "@Override\n public void key() {\n \n }", "private static void maybeShiftKeysChanged(final @NonNull PInputEvent e) {\r\n\t\tif (ArrayUtils.contains(SHIFT_KEYS, e.getKeyCode())) {\r\n\t\t\tfinal PPickPath path = e.getInputManager().getMouseOver();\r\n\t\t\tfinal @NonNull PInputEvent ePrime = new PInputEvent(e.getInputManager(),\r\n\t\t\t\t\tnew MouseEvent((Component) e.getSourceSwingEvent().getSource(), SHIFT_KEYS_CHANGED, e.getWhen(),\r\n\t\t\t\t\t\t\te.getModifiersEx(), -1, -1, 0, false, MouseEvent.NOBUTTON));\r\n\t\t\ttry {\r\n\t\t\t\tpath.processEvent(ePrime, SHIFT_KEYS_CHANGED);\r\n\t\t\t} catch (final Throwable ignore) {\r\n\t\t\t\t// ePrime might be handled by a listener that isn't a\r\n\t\t\t\t// MyInputEventHandler,\r\n\t\t\t\t// in which case it will barf on SHIFT_KEYS_CHANGED\r\n\t\t\t}\r\n\t\t\t// Make sure our super doesn't get an unhandled event type it\r\n\t\t\t// doesn't recognize.\r\n\t\t\te.setHandled(true);\r\n\t\t}\r\n\t}", "@Override\n\tpublic Procedure3<java.lang.Integer, UnsignedInt6Member, UnsignedInt6Member> bitShiftRight() {\n\t\treturn SHRZ;\n\t}", "public static void doShift(ZombieTrapGame game, String shift){\r\n switch(shift){ \r\n case \"u\": game.shiftUp(); break; // case \"u\": \r\n case \"d\": game.shiftDown(); break; // case \"d\": \r\n case \"l\": game.shiftLeft(); break; // case \"l\": \r\n case \"r\": game.shiftRight(); break; // case \"r\": \r\n default: throw new RuntimeException(\"Something is terribly wrong.\");\r\n }\r\n }", "@Override\n\tprotected void minus(char c, InterimResult ir)\n\t{\n\t\tNegateAction Negate = new NegateAction();\n\t\tNegate.execute(ir, c);\t\t\n\t}", "public static int platformDuplicateModifierKey()\n {\n if (OSUtils.MACOSX) {\n return SWT.ALT;\n }\n return SWT.CONTROL;\n }", "public void setSubtraction() {\n\t\tset((byte) (get() | (1 << 6)));\n\t}", "public void setShift(boolean shift) {\n mShift = shift;\n }", "@Override\r\n\tpublic void keyPressed(KeyEvent e) {\n\t\tint cmdType = 0, nr = 0, speed;\r\n\t\tString name = null;\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tif( e.getKeyCode() == KeyEvent.VK_CONTROL ) {\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"Ctrl\");\r\n\t\t\tfor(Cmd c : Cmds) {\r\n\t\t\t\tif( c.getName().equals(\"Ctrl1\") || c.getName().equals(\"Ctrl2\") || c.getName().equals(\"Ctrl3\") )\r\n\t\t\t\t{\r\n\t\t\t\t\tc.setY(-50);\r\n\t\t\t\t\r\n\t\t\t\t cmdType = rand.nextInt(3);\r\n\t\t nr = 1 + rand.nextInt(9);\r\n\t\t\t\t if(cmdType == 0)\r\n\t\t\t\t \tname = \"Ctrl\";\r\n\t\t\t\t else if(cmdType == 1)\r\n\t\t\t\t \tname = \"Alt\";\r\n\t\t\t\t else\r\n\t\t\t\t \tname = \"Shift\";\r\n\t\t\t\t \r\n\t\t\t\t speed = 1+rand.nextInt(3);\r\n\t\t\t\t name = name+\"\"+nr;\r\n\t\t\t\t\r\n\t\t\t\t c.setName(name);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t}", "private static int xorShift(int r) {\n r ^= r << 1;\n r ^= r >>> 3;\n r ^= r << 10;\n return r;\n }", "private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }", "@Override\n public void keyReleased(KeyEvent e) {\n if(e.getKeyCode() == KeyEvent.VK_CONTROL || e.getKeyChar() == 'a') {\n TrafficUI.altDir = false;\n } \n }", "public void resetSubtraction() {\n\t\tset((byte) (get() & ~(1 << 6)));\n\t}", "private void shift(int shift)\n\t{\n\t\tthis.shiftAmount = shift;\n\t}", "private static int xorShift(int r) {\n r ^= (r << 13);\n r ^= (r >>> 17);\n return r ^ (r << 5);\n }", "void shift() {\n deleteStart += txnOps;\n deleteEnd += txnOps;\n updateStart += txnOps;\n updateEnd += txnOps;\n insertStart += txnOps;\n insertEnd += txnOps;\n }", "@Override\n\tpublic void rightClick(MouseEvent e) {\n\n\t}", "public void redoUndoneCommand() {\r\n // TODO: Fix me!!!\r\n try {\r\n char c=redo.pop();\r\n //redo.push(c);\r\n if(c=='c'){\r\n super.rotateClockwise();\r\n }\r\n if(c=='r'){\r\n super.rotateCounterClockwise();\r\n }\r\n if(c=='m'){\r\n super.moveForward();\r\n }\r\n } catch (Exception e) {\r\n System.out.println(e.getMessage());\r\n }\r\n }", "public abstract void shift(int param);", "default void interactWith(Key key) {\n\t}", "public void alt_SET(int src)\n { set_bytes((int)(src) & -1L, 4, data, 24); }", "@Override\n\tpublic void effetCase() {\n\t\t\n\t}", "public void modifierRdV() {\n\n }", "public Object visitShiftExpression(GNode n) {\n Object a, b, result;\n String op;\n \n nonboolean = true;\n \n dostring = true;\n \n a = dispatch(n.getGeneric(0));\n b = dispatch(n.getGeneric(2));\n op = n.getString(1);\n \n dostring = false;\n \n if (a instanceof Long && b instanceof Long) {\n if (op.equals(\"<<\")) {\n result = (Long) a << (Long) b;\n }\n else if (op.equals(\">>\")) {\n result = (Long) a >> (Long) b;\n }\n else {\n result = \"\";\n }\n }\n else {\n result = parens(a) + \" \" + op + \" \" + parens(b);\n }\n \n return result;\n }", "@Override\n public void pasteFromClipboard (boolean shft, boolean alt) {\n if (shft == false && alt == false) selectFromClipboard();\n }", "@Override\r\n public void setAlt(String alt) {\n }", "public void alt_SET(int src)\n { set_bytes((int)(src) & -1L, 4, data, 14); }", "public void a(int ☃) {\r\n/* 68 */ if (this.d) {\r\n/* */ return;\r\n/* */ }\r\n/* */ \r\n/* 72 */ this.d = true;\r\n/* 73 */ this.f.clear();\r\n/* 74 */ this.e = \"\";\r\n/* 75 */ this.b.clear();\r\n/* 76 */ this.h = ☃;\r\n/* 77 */ this.g = k.c();\r\n/* */ }", "@Override\n\tpublic void press(EditorInterface i, MouseEvent e) {\n\t\tpressed_x=e.getX();\n\t\tpressed_y=e.getY();\n\t\tif(e.isShiftDown())\n\t\t\ti.getSelection().toogleSelect(i.getBoard(),e.getX(),e.getY());\n\t\telse\n\t\t\ti.getSelection().select(i.getBoard(),e.getX(),e.getY());\n\t}", "public void buttons_SET(char src)\n { set_bytes((char)(src) & -1L, 2, data, 0); }", "public static void main(String[] args) {\n\n/*\n* Ctrl+\n* Shift+\n* \"\\\"\n*/\n// Ctrl+\"\\\"\n\n int a;\n a = 15;\n// int a = 15;\n System.out.println(a); //faster - write down \"sout\" + Tab\n int b = a;\n System.out.println(b);\n b = 10;\n System.out.println(a);\n System.out.println(b);\n }", "@Override\n\t\t\t\t\t\t\t\t\t\t\tpublic void keyPressed(KeyEvent e) {\n\n\t\t\t\t\t\t\t\t\t\t\t}", "@Override\r\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tevent(e, vt.get(2));\r\n\t\t\t}", "static char shift(char c, int key) {\n // Handle key values >=ALPHABET_LENGTH \n key %= ALPHABET_LENGTH;\n char start = Character.isUpperCase(c) ? 'A' : 'a';\n // Shift down to 0-25 for a-z\n char shifted = (char) (c - start);\n // Handle wrap-around for negative values:\n shifted = (char) ((shifted + key + ALPHABET_LENGTH) % ALPHABET_LENGTH);\n return (char) (shifted + start);\n }", "private void _setUnshifted ()\r\n {\r\n m_bBase64mode = false;\r\n m_nBitsRead = 0;\r\n m_nTempChar = 0;\r\n }", "@Override\r\n\tprotected void doF9() {\n\t\t\r\n\t}", "public void key(){\n }", "@Override\n\tpublic void tanCongKeXau() {\n\n\t}", "public Move (byte startsq, byte endsq, byte modifier){\r\n\t\tstart_sq = startsq;\r\n\t\tend_sq = endsq;\r\n\t\tmodifiers = modifier;\r\n\t}", "void addShift(Shift shiftToAdd);", "public boolean isSecondaryUseActive() {\n/* 330 */ return isShiftKeyDown();\n/* */ }", "public abstract void swim() {}", "@Override\r\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tevent(e, vt.get(3));\r\n\t\t\t}", "@Override\n public void onDirectUpKeyPress() {\n \n }", "@Override\n public void onDirectUpKeyPress() {\n \n }", "@Override\r\n\tpublic void rightClick(MouseEvent arg0) {\n\t\t\r\n\t}", "public void setShift(int x, int y){\n xShift = x;\n yShift = y;\n }", "@Override\r\n\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\tsuper.keyPressed(e);\r\n\t\t}", "@Override\n public void keyPressed(KeyEvent e) {\n \n \n }", "@Override\n protected void handleEscapeKeyPressed() {\n\n }", "public void act() {\n\t\tsuper.act();\n\t\t//Gracias www.trucoteca.com\n\t\tif(control && shift && n) {\n\t\t\tthis.x = Ventana.getInstancia().getBola().getX();\n\t\t}\n\t\t//Si quieres ser legal\n\t\telse {\n\t\tthis.x += this.vx;\n\t\t}\n\t\tif(this.x < 0)\n\t\t\tthis.x = 0;\n\t\tif(this.x > Stage.WIDTH - getWidth())\n\t\t\tx = Stage.WIDTH - getWidth();\n\t\t}", "@Override\n\tpublic void keyPressed() {\n\t\t\n\t}", "@Override\r\n protected void doSelect(double x, double y, MouseButton button,\r\n int clickCount, boolean shiftDown, boolean shortcutDown) {\n super.doSelect(x, y, button, clickCount, shiftDown, shortcutDown);\r\n }", "@Override\r\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tevent(e, vt.get(1));\r\n\t\t\t}", "public void SEZ() {\n konami.cc |= CC_Z;\n }", "@Override\r\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tevent(e, vt.get(4));\r\n\t\t\t}", "public MvtPlus() {\r\n\t\tsuper('+');\r\n\t}", "@Override\r\n public void rotateClockwise() {\r\n super.rotateClockwise(); //To change body of generated methods, choose Tools | Templates.\r\n // TODO: Fix me\r\n undo.push('c');\r\n redo = new LinkedListStack();\r\n }", "@Override\n\tpublic void visit(BitwiseRightShift arg0) {\n\t\t\n\t}", "public static void OnKeyUp(Object sender, KeyEventArgs e) \r\n {\r\n TextEditor This = TextEditor._GetTextEditor(sender); \r\n\r\n if (This == null || !This._IsEnabled || (This.IsReadOnly && !This.IsReadOnlyCaretVisible) || !This._IsSourceInScope(e.OriginalSource))\r\n {\r\n return; \r\n }\r\n\r\n // Delegate the work to specific handlers. \r\n switch (e.Key)\r\n { \r\n case Key.RightShift:\r\n case Key.LeftShift:\r\n if (TextEditor._ThreadLocalStore.PureControlShift && (e.KeyboardDevice.Modifiers & ModifierKeys.Alt) == 0)\r\n { \r\n TextEditorTyping.ScheduleInput(This, new KeyUpInputItem(This, e.Key, e.KeyboardDevice.Modifiers));\r\n } \r\n break; \r\n\r\n case Key.LeftCtrl: \r\n case Key.RightCtrl:\r\n UpdateHyperlinkCursor(This);\r\n break;\r\n } \r\n }", "@Override\r\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\r\n\t\t\t}", "public void handler() {\n int t, r;\n t = RM(ea);\n r = konami.cc & CC_C;\n r = (r | t << 1);\n CLR_NZVC();\n SET_FLAGS8(t, t, r);\n WM(ea, r);\n if (konamilog != null) {\n fprintf(konamilog, \"konami#%d rol_ix :PC:%d,PPC:%d,A:%d,B:%d,D:%d,DP:%d,U:%d,S:%d,X:%d,Y:%d,CC:%d,EA:%d\\n\", cpu_getactivecpu(), konami.pc, konami.ppc, A(), B(), konami.d, konami.dp, konami.u, konami.s, konami.x, konami.y, konami.cc, ea);\n }\n\n }", "@Override\n public void onDirectLeftKeyPress() {\n \n }", "@Override\n public void onDirectLeftKeyPress() {\n \n }", "@Override\n\tpublic void keyPressed(KeyEvent e) \n\t{\n\t\tint key = e.getKeyCode();\n\t\tif(key == e.VK_SPACE)\n\t\t{\n\t\t\thome = false;\n\t\t\tinstruction = false;\n\t\t}\n\t\tif(key == e.VK_R)\n\t\t{\n\t\t\thome = true;\n\t\t}\n\t\tif(key == e.VK_Z)\n\t\t{\n\t\t\thome = false;\n\t\t}\n\t\tif(key == e.VK_B)\n\t\t{\n\t\t\thome = true;\n\t\t}\n\t}", "public void handleKeyPressS() {\r\n\t\thandleKeyPressed(0, Input.KEY_S);\t\t\r\n\t}", "private final void step2() { if (ends(\"y\") && vowelinstem()) b[k] = 'i'; }", "abstract public void selfReplace(Command replacement);", "@Override\n\t\t\tpublic void modifier(Catalogue catalogue) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tsuper.keyPressed(e);\n\t\t\t\tif (e.getKeyCode() == e.VK_UP) {\n\n\t\t\t\t\tjp.zc.up = true;\n\t\t\t\t}\n\t\t\t\tif (e.getKeyCode() == e.VK_DOWN) {\n\t\t\t\t\tjp.zc.down = true;\n\t\t\t\t}\n\t\t\t\tif (e.getKeyCode() == e.VK_LEFT) {\n\t\t\t\t\tjp.zc.left = true;\n\t\t\t\t}\n\t\t\t\tif (e.getKeyCode() == e.VK_RIGHT) {\n\t\t\t\t\tjp.zc.right = true;\n\t\t\t\t}\n\n\t\t\t\tif (e.getKeyCode() == e.VK_W) {\n\n\t\t\t\t\tjp.gyj.up = true;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif (e.getKeyCode() == e.VK_S) {\n\t\t\t\t\tjp.gyj.down = true;\n\t\t\t\t}\n\t\t\t\tif (e.getKeyCode() == e.VK_A) {\n\t\t\t\t\tjp.gyj.left = true;\n\t\t\t\t}\n\t\t\t\tif (e.getKeyCode() == e.VK_D) {\n\t\t\t\t\tjp.gyj.right = true;\n\t\t\t\t}\n\n\t\t\t\tif (e.getKeyCode() == e.VK_NUMPAD1) {\n\t\t\t\t\tif(jp.zc.att==false)\n\t\t\t\t\t{\n\t\t\t\t\tjp.zc.att=true;\n\t\t\t\t\tjp.zc.presstime+=1;\n\t\t\t\t\tjp.zc.xuli();\n\t\t\t\t\t}\n\t\t\t\t \n\n\t\t\t\t}\n\t\t\t\tif (e.getKeyCode() == e.VK_J) {\n\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tif(jp.gyj.att==false)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t \n\t\t\t\t\t\tjp.gyj.att=true;\n\t\t\t\t\t\tjp.gyj.presstime+=1;\n\t\t\t\t\t\tjp.gyj.xuli();\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t \n\t\t\t\t\t \n\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (e.getKeyCode() == e.VK_K) {\n\t\t\t\t\t\n\t\t\t\t\tif(jp.gyj.xuli==false)\n\t\t\t\t\t{\n\t\t\t\t\tjp.gyj.status=AStatus.DEFENT;\t\t\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif(e.getKeyCode()==e.VK_U)\n\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t\tJineng jn=jp.gyj.jns.get(0);\n\t\t\t\t\tif(jn.jnstatus==JNstatus.USEABLE)\n\t\t\t\t\t{\n\t\t\t\t\tjn.usejineng(jp.gyj);\n\t\t\t\t\tjn.jinengtime=10;\n\t\t\t\t\tjn.jnstatus=JNstatus.USEING;\t\t\t\t\n\t\t\t\t\tThread jn1yundong =new Thread(()->{\n\t\t\t\t\t\twhile(jn.jnstatus==JNstatus.USEING)\n\t\t\t\t\t\t{\n\t\t\t\t\t\tjn.yundong();\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tThread.sleep(40);\n\t\t\t\t\t\t} catch (InterruptedException e1) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t});\n\t\t\t\t\t\n\t\t\t\t\tjn1yundong.start();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif(e.getKeyCode()==e.VK_NUMPAD4)\n\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t\tJineng jn=jp.zc.jns.get(0);\n\t\t\t\t\tif(jn.jnstatus==JNstatus.USEABLE)\n\t\t\t\t\t{\n\t\t\t\t\tjn.usejineng(jp.zc);\n\t\t\t\t\tjn.jinengtime=10;\n\t\t\t\t\tjn.jnstatus=JNstatus.USEING;\t\t\t\t\n\t\t\t\t\tThread jn1yundong =new Thread(()->{\n\t\t\t\t\t\twhile(jn.jnstatus==JNstatus.USEING)\n\t\t\t\t\t\t{\n\t\t\t\t\t\tjn.yundong();\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tThread.sleep(40);\n\t\t\t\t\t\t} catch (InterruptedException e1) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t});\n\t\t\t\t\t\n\t\t\t\t\tjn1yundong.start();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif (e.getKeyCode() == e.VK_NUMPAD2) {\n\t\t\t\t\tif(jp.zc.xuli==false)\n\t\t\t\t\t{\n\t\t\t\t\tjp.zc.status=AStatus.DEFENT;\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\n\t\t\t}", "public void mouseClicked(MouseEvent e) {\n if((e.getModifiers() & Event.META_MASK) !=0){\n if (rigthMouseClickedCmd != null) {\n rigthMouseClickedCmd.execute();\n }\n }else {\n if (mouseClickedCmd != null) {\n mouseClickedCmd.execute();\n }\n }\n }", "public void EXTENDED() {\n ea = IMMWORD();\n }", "@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\tpublic void keyPressed(KeyEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void keyPressed(KeyEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void keyPressed(KeyEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void keyPressed(KeyEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void keyPressed(KeyEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void keyPressed(KeyEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void keyPressed(KeyEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void keyPressed(KeyEvent e) {\n\t\t\n\t}" ]
[ "0.63903856", "0.60418713", "0.5804411", "0.5796926", "0.57205415", "0.5713634", "0.5616363", "0.5490184", "0.5490184", "0.5463012", "0.54525125", "0.54489475", "0.5405714", "0.5378236", "0.5376589", "0.537052", "0.5363998", "0.5357341", "0.53463656", "0.53351045", "0.53295994", "0.5318694", "0.53051406", "0.5299012", "0.52950054", "0.52943724", "0.5276393", "0.52610403", "0.5260113", "0.5259986", "0.524205", "0.52413285", "0.52157205", "0.52094114", "0.5195335", "0.5191375", "0.5189558", "0.51863813", "0.5177972", "0.51747006", "0.51539737", "0.5135805", "0.51315373", "0.5128715", "0.51240605", "0.5111766", "0.51076937", "0.5102173", "0.5101859", "0.50991625", "0.50947225", "0.5088085", "0.5080884", "0.50773", "0.50760293", "0.507542", "0.507542", "0.5065733", "0.50615495", "0.5056624", "0.5049077", "0.50469345", "0.5038861", "0.50387293", "0.50369", "0.5032378", "0.50302804", "0.50287247", "0.50257397", "0.50246435", "0.50114137", "0.500972", "0.50073516", "0.50073516", "0.50073516", "0.50073516", "0.50073516", "0.50073516", "0.50073516", "0.4996386", "0.49951836", "0.49951836", "0.49851608", "0.49785978", "0.49725634", "0.49691987", "0.49687403", "0.49655348", "0.49647653", "0.49644163", "0.49604392", "0.49604392", "0.49604392", "0.49604163", "0.49604163", "0.49604163", "0.49604163", "0.49604163", "0.49604163", "0.49604163", "0.49604163" ]
0.0
-1
/ Internal testing of the helpers for this release test below
public void testCreateAggregator() throws Exception { testCreateIndex(); List<SummaSearcher> searchers = createSearchers(Arrays.asList(new File(INDEX_ROOT, "index_1"))); SummaSearcher aggregator = createAggregator(searchers); log.info("Aggregated search for 'bar' resulted in:\n" + search(aggregator, "bar")); assertTrue("The result should contain a field with 'bar'", search(aggregator, "bar").contains("<field name=\"single_token\">bar</field>")); close(searchers); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "private Util() { }", "private void test() {\n\n\t}", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "private WAPIHelper() { }", "@Test\n public void testGetProductInfo() throws Exception {\n }", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private test5() {\r\n\t\r\n\t}", "private JacobUtils() {}", "private stendhal() {\n\t}", "@Test\n\tpublic void testVersionCheck() throws Exception{\n\t}", "private ProtomakEngineTestHelper() {\r\n\t}", "@Override\n\tpublic void testCompatibility() {\n\t\tSystem.out.println(\"compatibility test success\");\n\t}", "private Helper() {\r\n // empty\r\n }", "@Override\n protected void setup() {\n }", "@Override\n\tpublic void initUtils() {\n\n\t}", "private HelperLocation() {}", "private BuilderUtils() {}", "private SnapshotUtils() {\r\n\t}", "@Before\n\tpublic void setup() {\n\t\t\n\t\t\n\t}", "@Test\n public void testDAM30203001() {\n testDAM30102001();\n }", "@Test\r\n\tpublic void testSanity() {\n\t}", "protected void setupLocal() {}", "protected void setup() {\r\n }", "public void method_4270() {}", "@SuppressWarnings(\"unchecked\")\n\t@Test\n\tpublic void test_process_some_stage_operation()\n\t{\n\t}", "private Utils() {\n\t}", "private Utils() {\n\t}", "private ReportGenerationUtil() {\n\t\t\n\t}", "@Test\n public void testDAM30402001() {\n testDAM30101001();\n }", "private FormatUtilities() {}", "@Before\n public void setup() {\n }", "@Before\n public void setup() {\n }", "@Before\n public void setup() {\n }", "public void testGetInsDyn() {\n }", "private void kk12() {\n\n\t}", "@SuppressWarnings(\"unused\")\n\tprivate void version() {\n\n\t}", "@Test\n public void testDAM30601001() {\n testDAM30102001();\n }", "protected void mo6255a() {\n }", "private SparkseeUtils()\n {\n /*\n * Intentionally left empty.\n */\n }", "@Before\n public void setup() {\n }", "@Before\r\n\tpublic void setup() {\r\n\t}", "@Before\n\t public void setUp() {\n\t }", "@Test\n public void testCompareTest8b() {\n helperMethodb(\"CompareTest8a.txt\", \"CompareTest8b.txt\");\n }", "private GardenerStrategyHelpers() {\n }", "private Util() {\n }", "@Test\n public void testCompareTest6b() {\n helperMethodb(\"CompareTest6a.txt\", \"CompareTest6b.txt\");\n }", "@Test\n public void testRwbmInternal()\n {\n generateEvents(\"dist-rwbm-internal-test\");\n checkEvents(false, true);\n BackingMapListener.INSTANCE.assertContext();\n }", "@Test\n public void testCompareTest7b() {\n helperMethodb(\"CompareTest7a.txt\", \"CompareTest7b.txt\");\n }", "@Test\n public void testCompareTest9b() {\n helperMethodb(\"CompareTest9a.txt\", \"CompareTest9b.txt\");\n }", "@Test\n public void testOncoKBInfo() {\n // TODO: test OncoKBInfo\n }", "@Test\n public void testDAM30903001() {\n testDAM30802001();\n }", "@Test\n public void testCompareTest4b() {\n helperMethodb(\"CompareTest4a.txt\", \"CompareTest4b.txt\");\n }", "@Ignore //DKH\n @Test\n public void testMakePersistentRecursesThroughReferenceFields() {\n }", "public void testGitHub() {\n\t}", "@Test\n\tpublic abstract void testTransform4();", "private ProcessorUtils() { }", "@Test\n public void testCompareTest12b() {\n helperMethodb(\"CompareTest12a.txt\", \"CompareTest12b.txt\");\n }", "@Test\n public void should_return_() {\n }", "public static void listing5_14() {\n }", "@Test\n public void apiVersionTest() {\n // TODO: test apiVersion\n }", "static void coverage()\n {\n new ServletUtils();\n }", "@Test\n public void testDAM30103001() {\n // settings as done for testDAM30102001 are identical\n testDAM30102001();\n }", "private StringUtilities() {\n // nothing to do\n }", "private IOUtilities() {\n }", "public void testSetBasedata() {\n }", "@Test\n public void testCompareTest10b() {\n helperMethodb(\"CompareTest10a.txt\", \"CompareTest10b.txt\");\n }", "public void mo21792Q() {\n }", "@Test\n public void testCompareTest9a() {\n helperMethoda(\"CompareTest9a.txt\", \"CompareTest9b.txt\");\n }", "private static void runTestCWE9() {\n}", "private static void runTestCWE9() {\n}", "@Override\n @Before\n public void setUp() throws IOException {\n }", "@Test\n public void versionTest() {\n // TODO: test version\n }", "@Test\n public void testCompareTest7a() {\n helperMethoda(\"CompareTest7a.txt\", \"CompareTest7b.txt\");\n }", "@Override\n public void setup() {\n }", "@Override\n public void setup() {\n }", "Compatibility compatibility();", "@Test\n public void testCompareTest6a() {\n helperMethoda(\"CompareTest6a.txt\", \"CompareTest6b.txt\");\n }", "private CollectionUtils() {\n\n\t}", "@Test\n public void testCompareTest2b() {\n helperMethodb(\"CompareTest2a.txt\", \"CompareTest2b.txt\");\n }", "@Test\n public void testCompareTest12a() {\n helperMethoda(\"CompareTest12a.txt\", \"CompareTest12b.txt\");\n }", "@Test\n public void testCompareTest3b() {\n helperMethodb(\"CompareTest3a.txt\", \"CompareTest3b.txt\");\n }", "@Test\n public void testWalkForPduTarget() throws Exception {\n//TODO: Test goes here... \n }", "private WinRateHelper() {\n throw new AssertionError();\n }", "@Override\n public void func_104112_b() {\n \n }", "@Test\n public void testDAM30905001() {\n // this case uses forEach element for updating ToDos.\n testDAM30702001();\n }", "private CheckUtil(){ }", "@Test\n public void testingTheTwoPlane2016Order() {\n }", "@Test\n public void testCompareTest4a() {\n helperMethoda(\"CompareTest4a.txt\", \"CompareTest4b.txt\");\n }", "@Before\r\n\tpublic void setUp() throws Exception {\r\n\t\t//This method is unused. \r\n\t}", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void sssDoLwTestInit() {\n\r\n\t}", "private NativeSupport() {\n\t}", "@Test\n\tpublic void testDiffLibs() \n\t{\n\t\tString id = \"diffLib\";\n\t\tassertLCVol1NotLopped(id);\n\t\tassertLCVol2NotLopped(id);\n\t\tassertNoLoppedLC(id);\n\t}", "@Test\n public void testCompareTest8a() {\n helperMethoda(\"CompareTest8a.txt\", \"CompareTest8b.txt\");\n }", "@Test\n public void testCompareTest5b() {\n helperMethodb(\"CompareTest5a.txt\", \"CompareTest5b.txt\");\n }", "@Test\n\tpublic void getWorksTest() throws Exception {\n\t}" ]
[ "0.62472945", "0.62472945", "0.57613295", "0.56579626", "0.5648539", "0.5628449", "0.56247276", "0.5624141", "0.5624141", "0.5624141", "0.5624141", "0.55842054", "0.55744594", "0.5546296", "0.5542713", "0.55061895", "0.5503958", "0.55010736", "0.54478556", "0.54476756", "0.544405", "0.54258484", "0.54218316", "0.54085135", "0.5407106", "0.5400334", "0.53965867", "0.5394252", "0.5374272", "0.5373156", "0.5353457", "0.5353457", "0.5341159", "0.53386533", "0.53367585", "0.53336334", "0.53336334", "0.53336334", "0.53301483", "0.5329173", "0.53289276", "0.53280956", "0.53272146", "0.5326077", "0.5323891", "0.531659", "0.5308341", "0.5302646", "0.528947", "0.5286086", "0.52860594", "0.52856547", "0.52839166", "0.52791643", "0.5276368", "0.5272761", "0.52636105", "0.5261695", "0.525753", "0.52570474", "0.5256812", "0.52478844", "0.5239929", "0.5231122", "0.52292114", "0.5225758", "0.51981026", "0.5195328", "0.5191209", "0.51816076", "0.5180525", "0.5178398", "0.5173876", "0.5173488", "0.5173488", "0.51732653", "0.51720625", "0.5171564", "0.5166248", "0.5166248", "0.5161882", "0.5160088", "0.515787", "0.5153967", "0.5149417", "0.5148229", "0.51465225", "0.5140577", "0.51390684", "0.5138263", "0.5138239", "0.5136294", "0.5135863", "0.5131485", "0.51312804", "0.513123", "0.51294214", "0.5124876", "0.51245487", "0.51171005", "0.5114342" ]
0.0
-1
/ Helpers for this release test Performs a search for query and checks that the result contains the given recordIDs in the given order.
public static void assertResult( String message, SummaSearcher searcher, String query, List<String> recordIDs) throws IOException { String result = search(searcher, query); log.debug(String.format("The result for query '%s' was:\n%s", query, result)); // <field name="recordID">foo2</field> int lastPos = -1; String lastID = null; for (String recordID : recordIDs) { int pos = result.indexOf(String.format("<field name=\"recordID\">%s</field>", recordID)); if (pos == -1) { fail(String.format("%s. The id '%s' could not be located in the result for query '%s'. " + "The result was:\n%s", message, recordID, query, result)); } if (pos < lastPos) { fail(String.format("%s. The id '%s' was found at position %d, which is less than position %d from the " + "previous id '%s' in query '%s'. The result was:\n%s", message, recordID, pos, lastPos, lastID, query, result)); } lastPos = pos; lastID = recordID; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract List performQuery(String[] ids);", "@Test\r\n public void testSearchOrders() throws FlooringMasteryPersistenceException{\r\n order1();\r\n order2();\r\n\r\n List<Order> orders = dao.searchOrders(date);\r\n assertEquals(2, orders.size());\r\n }", "@Test\n public void testBatchedInQuery() {\n TestDataCreator creator = new TestDataCreator(getSessionFactory());\n Town town = creator.createTestTown();\n\n int n = 10;\n List<Long> ids = new ArrayList<>(n);\n for (long i=0; i < n; i++) {\n Person savedPerson = creator.createTestPerson(town, \"P\" + i);\n ids.add(savedPerson.getId());\n }\n for (long i=0; i < n; i++) {\n creator.createTestPerson(town, \"P\" + i);\n }\n\n Person person = query.from(Person.class);\n query.where(person.getId()).in(ids, 2);\n\n validate(\"from Person hobj1 where hobj1.id in (:np1)\", ids);\n assertEquals(n, doQueryResult.size());\n }", "public boolean executeOperation() {\n final ListDO itemToFind = new ListDO();\n itemToFind.setUserId(getDemoDateSortedPartitionValue());\n final Condition sortKeyCondition = new Condition()\n .withComparisonOperator(ComparisonOperator.LT.toString())\n\n .withAttributeValueList(new AttributeValue().withN(DEMO_DATESORTED_SORT_VALUE.toString()));\n // Perform get using Partition key and sort key condition\n DynamoDBQueryExpression<ListDO> queryExpression = new DynamoDBQueryExpression<ListDO>()\n .withHashKeyValues(itemToFind)\n .withRangeKeyCondition(\"creationDate\", sortKeyCondition)\n .withConsistentRead(false);\n results = mapper.query(ListDO.class, queryExpression);\n if (results != null) {\n resultsIterator = results.iterator();\n if (resultsIterator.hasNext()) {\n return true;\n }\n }\n return false;\n }", "@Override\n public List<ResourceTagJoinVO> searchByIds(Long... tagIds) {\n int DETAILS_BATCH_SIZE = 2000;\n String batchCfg = _configDao.getValue(\"detail.batch.query.size\");\n if (batchCfg != null) {\n DETAILS_BATCH_SIZE = Integer.parseInt(batchCfg);\n }\n // query details by batches\n List<ResourceTagJoinVO> uvList = new ArrayList<ResourceTagJoinVO>();\n // query details by batches\n int curr_index = 0;\n if (tagIds.length > DETAILS_BATCH_SIZE) {\n while ((curr_index + DETAILS_BATCH_SIZE) <= tagIds.length) {\n Long[] ids = new Long[DETAILS_BATCH_SIZE];\n for (int k = 0, j = curr_index; j < curr_index + DETAILS_BATCH_SIZE; j++, k++) {\n ids[k] = tagIds[j];\n }\n SearchCriteria<ResourceTagJoinVO> sc = tagSearch.create();\n sc.setParameters(\"idIN\", ids);\n List<ResourceTagJoinVO> vms = searchIncludingRemoved(sc, null, null, false);\n if (vms != null) {\n uvList.addAll(vms);\n }\n curr_index += DETAILS_BATCH_SIZE;\n }\n }\n if (curr_index < tagIds.length) {\n int batch_size = (tagIds.length - curr_index);\n // set the ids value\n Long[] ids = new Long[batch_size];\n for (int k = 0, j = curr_index; j < curr_index + batch_size; j++, k++) {\n ids[k] = tagIds[j];\n }\n SearchCriteria<ResourceTagJoinVO> sc = tagSearch.create();\n sc.setParameters(\"idIN\", ids);\n List<ResourceTagJoinVO> vms = searchIncludingRemoved(sc, null, null, false);\n if (vms != null) {\n uvList.addAll(vms);\n }\n }\n return uvList;\n }", "public void assertSearchFinds(String theReason, String theQueryUrl, IIdType... theIds) {\n\t\tString[] bareIds = idTypeToIdParts(theIds);\n\n\t\tassertSearchResultIds(theQueryUrl, theReason, hasItems(bareIds));\n\t}", "private void addQueries(String query){\n ArrayList <String> idsFullSet = new ArrayList <String>(searchIDs);\n while(idsFullSet.size() > 0){\n ArrayList <String> idsSmallSet = new ArrayList <String>(); \n if(debugMode) {\n System.out.println(\"\\t Pmids not used in query available : \" + idsFullSet.size());\n }\n idsSmallSet.addAll(idsFullSet.subList(0,Math.min(getSearchIdsLimit(), idsFullSet.size())));\n idsFullSet.removeAll(idsSmallSet);\n String idsConstrain =\"\";\n idsConstrain = idsConstrain(idsSmallSet);\n addQuery(query,idsConstrain);\n }\n }", "public boolean executeOperation() {\n final ListDO itemToFind = new ListDO();\n itemToFind.setUserId(getDemoDateSortedPartitionValue());\n\n // Perform get using Partition key\n DynamoDBQueryExpression<ListDO> queryExpression = new DynamoDBQueryExpression<ListDO>()\n .withHashKeyValues(itemToFind)\n .withConsistentRead(false);\n results = mapper.query(ListDO.class, queryExpression);\n if (results != null) {\n resultsIterator = results.iterator();\n if (resultsIterator.hasNext()) {\n return true;\n }\n }\n return false;\n }", "private void verifyObjects(String[] objIDs) {\n NST objectNST = DB.getObjectNST();\n ResultSet resultSet = objectNST.selectRows(); // \"ID\"\n List expectedIDStrs = Arrays.asList(objIDs);\n\n // fill actualIDStrs\n List actualIDInts = resultSet.toOIDList(1);\n List actualIDStrs = new ArrayList();\n for (Iterator actualIDIntIter = actualIDInts.iterator(); actualIDIntIter.hasNext();) {\n Integer actualIDInt = (Integer) actualIDIntIter.next();\n actualIDStrs.add(actualIDInt.toString());\n }\n\n // compare\n assertEquals(expectedIDStrs.size(), actualIDStrs.size());\n assertTrue(expectedIDStrs.containsAll(actualIDStrs));\n }", "public void assertSearchFinds(String theReason, String theQueryUrl, String... theIds) {\n\t\tassertSearchResultIds(theQueryUrl, theReason, hasItems(theIds));\n\t}", "public Vector findRegionList(\n String searchBy,\n String name,\n Boolean isAllSupregs,\n Integer supregid,\n Integer order)\n throws Exception {\n\n DebugSupport.printlnTest(\"!!RegionObject findRegionList name=\"+name);\t\n Query query = new Query();\n query.append(\n \"SELECT r.regionid regionid, r.regname regname, r.supregid supregid, sr.supregname supregname\");\n query.append(\"FROM Regions r, Superregions sr\");\n query.append(\"WHERE r.supregid=sr.supregid\");\n\n if (searchBy.equals(SearchConstants.SEARCHBY_NAME)) {\n query.append(\"AND r.regname matches upper(?)\", name);\n }\n if (!isAllSupregs.booleanValue()) {\n query.append(\"AND r.supregid=?\", supregid);\n }\n query.append(\"ORDER BY\");\n if (order.intValue() == ORDER_BY_CODE_ASC) {\n query.append(\"1\");\n }else if (order.intValue() == ORDER_BY_CODE_DESC) {\n query.append(\"1 DESC\");\n }else if (order.intValue() == ORDER_BY_SUPREGNAME_ASC) {\n query.append(\"4,2\");\n }else if (order.intValue() == ORDER_BY_SUPREGNAME_DESC) {\n query.append(\"4 DESC,2 DESC\");\n }else if (order.intValue() == ORDER_BY_REGNAME_ASC) {\n query.append(\"2\");\n }else if (order.intValue() == ORDER_BY_REGNAME_DESC) {\n query.append(\"2 DESC\");\n }\n return findVector(query);\n}", "abstract public boolean performSearch();", "void compareSearch();", "@Test\r\n public void testFindActivityRecordByUser() {\r\n ActivityRecord rec1 = setActivityRecord();\r\n rec1.setBurnedCalories(20);\r\n recordDao.create(rec1);\r\n assertNotNull(recordDao.findActivityRecord(rec1.getId()));\r\n\r\n ActivityRecord rec2 = setActivityRecord();\r\n rec2.setBurnedCalories(40);\r\n recordDao.create(rec2);\r\n assertNotNull(recordDao.findActivityRecord(rec2.getId()));\r\n\r\n List<ActivityRecord> records = recordDao.findRecordsByUser(user);\r\n assertTrue(!records.isEmpty());\r\n assertTrue(records.contains(rec1));\r\n assertTrue(records.contains(rec2));\r\n }", "public static List<Contains> getContainsByOrderID(int orderID) throws ClassNotFoundException\n {\n List<Contains> allContains = new ArrayList<>();\n try\n {\n try (Connection con = CS360DB.getConnection();\n Statement stmt = con.createStatement())\n {\n\n StringBuilder insQuery = new StringBuilder();\n\n insQuery.append(\"SELECT * FROM contains \")\n .append(\" WHERE \")\n .append(\" orderID = \").append(\"'\").append(orderID).append(\"';\");\n\n stmt.execute(insQuery.toString());\n\n ResultSet res = stmt.getResultSet();\n\n while (res.next() == true)\n {\n Contains contains = new Contains();\n contains.setOrderID(Integer.valueOf(res.getString(\"orderID\")));\n contains.setProductID(Integer.valueOf(res.getString(\"productID\")));\n contains.setQuantity(Integer.valueOf(res.getString(\"quantity\")));\n allContains.add(contains);\n }\n\n // Close connection\n stmt.close();\n con.close();\n }\n\n }\n catch (SQLException ex)\n {\n // Log exception\n Logger.getLogger(Contains.class.getName()).log(Level.SEVERE,null,ex);\n }\n\n return allContains;\n }", "List<Card> search(String searchString, long userId) throws PersistenceCoreException;", "Records_type createRecordsFor(SearchTask st,\n int[] preferredRecordSyntax,\n int start,\n int count, String recordFormatSetname)\n {\n Records_type retval = new Records_type();\n \n LOGGER.finer(\"createRecordsFor(st, \"+start+\",\"+count+\")\");\n LOGGER.finer(\"pref rec syn = \" + preferredRecordSyntax);\n LOGGER.finer(\"record setname = \" + recordFormatSetname);\n LOGGER.finer(\"search task = \" + st);\n \n // Try and do a normal present\n try\n {\n \tif ( start < 1 ) \n \t throw new PresentException(\"Start record must be > 0\",\"13\");\n \tint numRecs = st.getTaskResultSet().getFragmentCount();\n \t\n \tLOGGER.finer(\"numresults = \" + numRecs);\n \tint requestedNum = start + count - 1;\n \tif ( requestedNum > numRecs ) {\n \t count = numRecs - (start - 1);\n \t if (start + count -1 > numRecs) {\n \t\tLOGGER.finer(requestedNum + \" < \" + numRecs);\n \t\tthrow new PresentException\n \t\t (\"Start+Count-1 (\" +requestedNum + \") must be < the \" + \n \t\t \" number of items in the result set: \" +numRecs ,\"13\");\n \t }\n \t}\n \t\n \t\n \tif ( st == null )\n \t throw new PresentException(\"Unable to locate result set\",\"30\");\n \t\n \tVector v = new Vector();\n \tretval.which = Records_type.responserecords_CID;\n \tretval.o = v;\n \t\n \tOIDRegisterEntry requested_syntax = null;\n \tString requested_syntax_name = null;\n \tif ( preferredRecordSyntax != null ) {\n \t requested_syntax = reg.lookupByOID(preferredRecordSyntax);\n \t if(requested_syntax==null) { // unsupported record syntax\n \t\tStringBuffer oid=new StringBuffer();\n \t\tfor(int i=0; i<preferredRecordSyntax.length; i++) {\n \t\t if(i!=0)\n \t\t\toid.append('.');\n \t\t oid.append(preferredRecordSyntax[i]);\n \t\t}\n \t\tLOGGER.warning(\"Unsupported preferredRecordSyntax=\"\n \t\t\t +oid.toString());\n \t\t\n \t\t// Need to set up diagnostic in here\n \t\tretval.which = Records_type.nonsurrogatediagnostic_CID;\n \t\tDefaultDiagFormat_type default_diag = \n \t\t new DefaultDiagFormat_type();\n \t\tretval.o = default_diag;\n \t\t\n \t\tdefault_diag.diagnosticSetId = reg.oidByName(\"diag-1\");\n \t\tdefault_diag.condition = BigInteger.valueOf(239);\n \t\tdefault_diag.addinfo = new addinfo_inline14_type();\n \t\tdefault_diag.addinfo.which = \n \t\t addinfo_inline14_type.v2addinfo_CID;\n \t\tdefault_diag.addinfo.o = (Object)(oid.toString());\n \t\treturn retval;\n \t }\n \t LOGGER.finer(\"requested_syntax=\"+requested_syntax);\n \t requested_syntax_name = requested_syntax.getName();\n\t if(requested_syntax_name.equals(\"usmarc\")) {\n\t\t//HACK! USMARC not yet supported...\n\t\trequested_syntax_name = \"sutrs\";\n\t }\n \t LOGGER.finer(\"requested_syntax_name=\"+requested_syntax_name);\n \t}\n \telse\n {\n\t requested_syntax_name = \"sutrs\"; //REVISIT: should this be\n \t //default? We're sure to have it...\n \t requested_syntax = reg.lookupByName(requested_syntax_name);\n }\n \t\n \tst.setRequestedSyntax(requested_syntax);\n \tst.setRequestedSyntaxName(requested_syntax_name);\n \t\t\n \tInformationFragment[] raw_records;\n \tRecordFormatSpecification rfSpec = \n \t new RecordFormatSpecification\n \t\t(requested_syntax_name, null, recordFormatSetname);\n \tLOGGER.finer(\"calling getFragment(\"+(start)+\",\"+count+\")\");\n \traw_records = st.getTaskResultSet().getFragment(start, count, rfSpec);\n \t\n \tif ( raw_records == null )\n \t throw new PresentException(\"Error retrieving records\",\"30\");\n \n \tfor ( int i=0; i<raw_records.length; i++ ) {\n \t\tLOGGER.finer(\"Adding record \"+i+\" to result\");\n \t\t\n \t\tNamePlusRecord_type npr = new NamePlusRecord_type();\n \t\tnpr.name = raw_records[i].getSourceCollectionName();\n \t\tnpr.record = new record_inline13_type();\n \t\tnpr.record.which = record_inline13_type.retrievalrecord_CID;\n \t\tEXTERNAL_type rec = new EXTERNAL_type();\n \t\tnpr.record.o = rec;\n \t\t\n \t\tif ( requested_syntax_name.equals(Z3950Constants.RECSYN_HTML) \n \t\t || requested_syntax_name.equals(\"sgml\")) {\n \t\t LOGGER.finer(\"Returning OctetAligned record for \"\n \t\t\t\t +requested_syntax_name);\n rec.direct_reference = \n \t\t\treg.oidByName(requested_syntax_name);\n \t\t rec.encoding = new encoding_inline0_type();\n \t\t rec.encoding.which = \n \t\t\tencoding_inline0_type.octet_aligned_CID;\n \t\t String raw_string = (String)raw_records[i].getOriginalObject();\n \t\t rec.encoding.o = raw_string.getBytes(); \n \t\t if(raw_string.length()==0) {\n \t\t\t\n \t\t\t// can't make a html record\n \t\t\tretval.which = Records_type.nonsurrogatediagnostic_CID;\n \t\t\tDefaultDiagFormat_type default_diag =\n \t\t\t new DefaultDiagFormat_type();\n \t\t\tretval.o = default_diag;\n \t\t\t\n \t\t\tdefault_diag.diagnosticSetId = reg.oidByName(\"diag-1\");\n \t\t\tdefault_diag.condition = BigInteger.valueOf(227);\n \t\t\tdefault_diag.addinfo = new addinfo_inline14_type();\n \t\t\tdefault_diag.addinfo.which = \n \t\t\t addinfo_inline14_type.v2addinfo_CID;\n \t\t\tdefault_diag.addinfo.o = \n \t\t\t (Object)\"1.2.840.10003.5.109.3\";\n \t\t\treturn retval;\n \t\t\t\n \t\t }\n \t\t}\n \t\telse if ( requested_syntax_name.equals\n \t\t\t (Z3950Constants.RECSYN_XML) ) {\n \t\n \t\t // Since XML is our canonical internal schema, \n \t\t //all realisations of InformationFragment\n \t\t // are capable of providing an XML representation of \n \t\t //themselves, so just use the\n \t\t // Fragments getDocument method.\n \t\t LOGGER.finer(\"Returning OctetAligned XML\");\n \t\t java.io.StringWriter sw = new java.io.StringWriter();\n \t\t \n \t\t try\n \t\t\t{\n \t\t\t OutputFormat format = \n \t\t\t\tnew OutputFormat\n \t\t\t\t (raw_records[i].getDocument() );\n \t\t\t XMLSerializer serial = \n \t\t\t\tnew XMLSerializer( sw, format );\n \t\t\t serial.asDOMSerializer();\n \t\t\t serial.serialize( raw_records[i].getDocument().\n \t\t\t\t\t getDocumentElement() );\n \t\t\t}\n \t\t catch ( Exception e )\n \t\t\t{\n \t\t\t LOGGER.severe(\"Problem serializing dom tree to\" + \n \t\t\t\t\t \" result record\" + e.getMessage());\n \t\t\t}\n \t\t \n \t\t rec.direct_reference = \n \t\t\treg.oidByName(requested_syntax_name);\n \t\t rec.encoding = new encoding_inline0_type();\n \t\t rec.encoding.which = \n \t\t\tencoding_inline0_type.octet_aligned_CID;\n \t\t rec.encoding.o = sw.toString().getBytes(); \t \n\t\t} else {//if ( requested_syntax_name.equals\n\t\t // (Z3950Constants.RECSYN_SUTRS)){\n \t\t rec.direct_reference = \n \t\t\treg.oidByName(requested_syntax_name);\n \t\t rec.encoding = new encoding_inline0_type();\n \t\t rec.encoding.which = \n \t\t\tencoding_inline0_type.single_asn1_type_CID;\n \t\t rec.encoding.o = \n \t\t\t((String)(raw_records[i].getOriginalObject()));\n \t\t}\n \t\tv.add(npr);\n \t\t\n \t}\n }\n catch ( PresentException pe ) {\n \tLOGGER.warning(\"Processing present exception: \"+pe.toString());\n \t\n // Need to set up diagnostic in here\n \tretval.which = Records_type.nonsurrogatediagnostic_CID;\n DefaultDiagFormat_type default_diag = new DefaultDiagFormat_type();\n retval.o = default_diag;\n \n default_diag.diagnosticSetId = reg.oidByName(\"diag-1\");\n \n if ( pe.additional != null )\n \t default_diag.condition = \n \t BigInteger.valueOf( Long.parseLong(pe.additional.toString()) );\n else\n default_diag.condition = BigInteger.valueOf(0);\n \n default_diag.addinfo = new addinfo_inline14_type();\n default_diag.addinfo.which = addinfo_inline14_type.v2addinfo_CID;\n default_diag.addinfo.o = (Object)(pe.toString());\n } \n \n LOGGER.finer(\"retval = \" + retval);\n return retval;\n }", "public void run(){\n\t\tif(searchHow==0){\n\t\t\tint isbnCount = 0;\n\t\t\tfor(int i=0; i<db.size(); i++){\n\t\t\t\t\tSearchRequest requestIsbn = new SearchRequest(db, searchForThis, isbnCount, db.size());\n\t\t\t\t\tdb.searchByISBN(requestIsbn);\n\t\t\t\t\tisbnCount = requestIsbn.foundPos;\n\t\t\t\t\tif (requestIsbn.foundPos >= 0) {\n\t\t\t\t\t\tisbnCount++;\n\t\t\t\t\t\tString formatThis = \"Matched ISBN at position: \" + requestIsbn.foundPos;\n\t\t\t\t\t\tSystem.out.printf(\"%-35s || Title: \"+db.getBook(requestIsbn.foundPos)+\"\\n\",formatThis);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\ti=db.size();\n\t\t\t}\n\t\t}\n\t\tif(searchHow==1){\n\t\t\tint titleCount = 0;\n\t\t\tfor(int i=0; i<db.size(); i++){\n\t\t\t\t\tSearchRequest requestTitle = new SearchRequest(db, searchForThis, titleCount, db.size());\n\t\t\t\t\tdb.searchByTitle(requestTitle);\n\t\t\t\t\ttitleCount = requestTitle.foundPos;\n\t\t\t\t\tif (requestTitle.foundPos >= 0) {\n\t\t\t\t\t\ttitleCount++;\n\t\t\t\t\t\tString formatThis = \"Matched title at position: \" + requestTitle.foundPos;\n\t\t\t\t\t\tSystem.out.printf(\"%-35s || Title: \"+db.getBook(requestTitle.foundPos)+\"\\n\",formatThis);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\ti=db.size();\n\t\t\t}\n\t\t}\n\t\tif(searchHow==2){\n\t\t\tint authorCount = 0;\n\t\t\tfor(int i=0; i<db.size(); i++){\n\t\t\t\t\tSearchRequest requestAuthor = new SearchRequest(db, searchForThis, authorCount, db.size());\n\t\t\t\t\tdb.searchByAuthor(requestAuthor);\n\t\t\t\t\tauthorCount = requestAuthor.foundPos;\n\t\t\t\t\tif (requestAuthor.foundPos >= 0) {\n\t\t\t\t\t\tauthorCount++;\n\t\t\t\t\t\tString formatThis = \"Matched author at position: \" + requestAuthor.foundPos;\n\t\t\t\t\t\tSystem.out.printf(\"%-35s || Title: \"+db.getBook(requestAuthor.foundPos)+\"\\n\",formatThis);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\ti=db.size();\n\t\t\t}\n\t\t}\n\t\tif(searchHow==3){\n\t\t\tint pageCount = 0;\n\t\t\tfor(int i=0; i<db.size(); i++){\n\t\t\t\t\tSearchRequest requestPage = new SearchRequest(db, searchForThis, pageCount, db.size());\n\t\t\t\t\tdb.searchByNumPages(requestPage);\n\t\t\t\t\tpageCount = requestPage.foundPos;\n\t\t\t\t\tif (requestPage.foundPos >= 0) {\n\t\t\t\t\t\tpageCount++;\n\t\t\t\t\t\tString formatThis = \"Matched pages at position: \" + requestPage.foundPos;\n\t\t\t\t\t\tSystem.out.printf(\"%-35s || Title: \"+db.getBook(requestPage.foundPos)+\"\\n\",formatThis);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\ti=db.size();\n\t\t\t}\n\t\t}\n\t\tif(searchHow==4){\n\t\t\tint yearCount = 0;\n\t\t\tfor(int i=0; i<db.size(); i++){\n\t\t\t\t\tSearchRequest requestYear = new SearchRequest(db, searchForThis, yearCount, db.size());\n\t\t\t\t\tdb.searchByYear(requestYear);\n\t\t\t\t\tyearCount = requestYear.foundPos;\n\t\t\t\t\tif (requestYear.foundPos >= 0) {\n\t\t\t\t\t\tyearCount++;\n\t\t\t\t\t\tString formatThis = \"Matched year at position: \" + requestYear.foundPos;\n\t\t\t\t\t\tSystem.out.printf(\"%-35s || Title: \"+db.getBook(requestYear.foundPos)+\"\\n\",formatThis);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\ti=db.size();\n\t\t\t}\n\t\t}\n\t}", "List<ProductInfoOutput> findList(List<String> productIdList);", "public void testSearchByContent() {\n Message m1 = new Message(\"test\",\"bla bla david moshe\",_u1);\n Message.incId();\n try {\n Thread.sleep(10);\n } catch (InterruptedException ex) {\n ex.printStackTrace();\n }\n Message m2 = new Message(\"test2\",\"bla2 bla david tikva moshe\",_u1);\n Message.incId();\n Message m3 = new Message(\"test2\",\"moshe cohen\",_u1);\n Message.incId();\n\n this.allMsgs.put(m1.getMsg_id(), m1);\n this.allMsgs.put(m2.getMsg_id(), m2);\n this.allMsgs.put(m3.getMsg_id(), m3);\n\n this.searchEngine.addData(m1);\n this.searchEngine.addData(m2);\n this.searchEngine.addData(m3);\n\n /* SearchHit[] result = this.searchEngine.searchByContent(\"bla2\", 0,1);\n assertTrue(result.length==1);\n assertTrue(result[0].getMessage().equals(m2));\n\n SearchHit[] result2 = this.searchEngine.searchByContent(\"bla david tikva\", 0,2);\n assertTrue(result2.length==1);\n assertEquals(result2[0].getScore(),3.0);\n //assertEquals(result2[1].getScore(),2.0);\n assertTrue(result2[0].getMessage().equals(m2));\n //assertTrue(result2[1].getMessage().equals(m1));\n\n SearchHit[] result3 = this.searchEngine.searchByContent(\"bla2 tikva\", 0, 5);\n assertTrue(result3.length==0);\n */\n\n/*\n SearchHit[] result4 = this.searchEngine.searchByContent(\"bla OR tikva\", 0, 5);\n assertTrue(result4.length==2);\n assertTrue(result4[0].getMessage().equals(m2));\n assertTrue(result4[1].getMessage().equals(m1));\n\n SearchHit[] result5 = this.searchEngine.searchByContent(\"bla AND cohen\", 0, 5);\n assertTrue(result5.length==0);\n\n result5 = this.searchEngine.searchByContent(\"bla AND moshe\",0,5);\n assertTrue(result5.length==2);\n assertTrue(result5[0].getScore() == result5[1].getScore());\n assertTrue(result5[0].getMessage().equals(m2));\n assertTrue(result5[1].getMessage().equals(m1));\n\n result5 = this.searchEngine.searchByContent(\"bla AND moshe\", 10, 11);\n assertTrue(result5.length==0);\n */\n\n }", "protected void assertExactSearchWithResults(String jqlString, String... issueKeys)\n {\n navigation.issueNavigator().createSearch(jqlString);\n assertIssues(issueKeys);\n }", "public boolean executeOperation() {\n final ListDO itemToFind = new ListDO();\n itemToFind.setUserId(getDemoDateSortedPartitionValue());\n final Condition sortKeyCondition = new Condition()\n .withComparisonOperator(ComparisonOperator.LT.toString())\n\n .withAttributeValueList(new AttributeValue().withN(DEMO_DATESORTED_SORT_VALUE.toString()));\n // Use a map of expression names to avoid the potential for attribute names\n // colliding with DynamoDB reserved words.\n final Map<String, String> filterExpressionAttributeNames = new HashMap<>();\n filterExpressionAttributeNames.put(\"#foodId\", DEMO_SECONDARY_CONDITION_KEY);\n\n final Map<String, AttributeValue> filterExpressionAttributeValues = new HashMap<>();\n filterExpressionAttributeValues.put(\":MinfoodId\",\n new AttributeValue().withS(DEMO_SECONDARY_CONDITION_VALUE));\n\n // Perform get using Partition key and sort key condition\n DynamoDBQueryExpression<ListDO> queryExpression = new DynamoDBQueryExpression<ListDO>()\n .withHashKeyValues(itemToFind)\n .withRangeKeyCondition(\"creationDate\", sortKeyCondition)\n .withFilterExpression(\"#foodId > :MinfoodId\")\n .withExpressionAttributeNames(filterExpressionAttributeNames)\n .withExpressionAttributeValues(filterExpressionAttributeValues)\n .withConsistentRead(false);\n results = mapper.query(ListDO.class, queryExpression);\n if (results != null) {\n resultsIterator = results.iterator();\n if (resultsIterator.hasNext()) {\n return true;\n }\n }\n return false;\n }", "@Test\n public void executeSavedSearch(){\n fillSearchFields();\n int accountID = new AccountDAO().findAccount(\"[email protected]\").getId();\n presenter.doSearch();\n presenter.saveSearch();\n\n int counterBeforeSavedSearch = AccountDAO.getSearchID();\n int savedSearchID = new AccountDAO().findAccount(accountID).getStoredSearches().get(0).getSearchId();\n presenter.searchSaved(savedSearchID); //since we do searchID++ on search creation\n Assert.assertEquals(counterBeforeSavedSearch, AccountDAO.getSearchID()); //searchID shouldn't be incremented\n Assert.assertTrue(presenter.hasNextResult());\n }", "public void doSearch(int referenceId, int smallSetUpperBound,\n\t\tint largeSetLowerBound, int mediumSetPresentNumber,\n\t\tint replaceIndicator, String resultSetName, \n\t\tString databaseNames, String smallSetElementSetNames, \n\t\tString mediumSetElementSetNames, String preferredRecordSyntax, \n\t\tString query, int query_type, String searchResultsOID,\n\t \tDataDir Z39attributesPlusTerm, DataDir oclcUserInfo,\n String oclcUserInfoOID, Object rankQuery, String rankOID,\n boolean fMakeDataDir) \n throws Exception, Diagnostic1, AccessControl {\n\n \n BerString zRequest=null, zResponse=null;\n BerConnect zConnection;\n\n if (zsession == null) \n throw new Diagnostic1(Diagnostic1.temporarySystemError, \n \"User's Z39.50 session is not initialized\");\n\n // Re-init to the server\n if (zsession.isConnected() == false) {\n try {\n\n zsession.init.reInit();\n\n if (zsession.connection == null)\n throw new Diagnostic1(Diagnostic1.databaseUnavailable, \n \"Unable to connect to the Z39.50 server\");\n }\n catch (Exception e) {\n throw new Diagnostic1(Diagnostic1.databaseUnavailable, \n \"Unable to connect to the Z39.50 server\");\n } \n catch (Diagnostic1 d) {\n throw d;\n } \n } \n\n\n zConnection = (BerConnect)zsession.connection;\n\n zRequest = Request(referenceId, smallSetUpperBound,\n\t\tlargeSetLowerBound, mediumSetPresentNumber,\n\t\treplaceIndicator, resultSetName, \n\t\tdatabaseNames, smallSetElementSetNames, \n\t\tmediumSetElementSetNames, preferredRecordSyntax, \n\t\tquery, query_type, searchResultsOID,\n Z39attributesPlusTerm, oclcUserInfo, oclcUserInfoOID,\n rankQuery, rankOID, 0, 0);\n \n if (zRequest == null) {\n throw new Diagnostic1(Diagnostic1.malformedQuery, \"Unable to create search request\");\n\n// System.out.println(\"unable to build search request\");\n }\n\n try {\n zResponse = zConnection.doRequest(zRequest); \n }\n\t catch (InterruptedIOException ioe) { \n\t if (zsession.doTRC) { \n\t\t try {\n\t\t if (zsession.logger != null && \n\t\t\t zsession.logger.getLevel() != Z39logging.OFF) {\n\t\t\t synchronized (zsession.logger) {\n\t\t\t zsession.logger.println(\"Sending TRC to search\");\n\t\t\t }\n\t\t } \n\t\t zsession.trc.doTriggerResourceControl(0, 3);\n\t\t }\n\t\t catch (Exception trce) {\n\t\t // trce.printStackTrace();\n\t\t }\n\t\t catch (Diagnostic1 trcd) {\n\t\t // System.out.println(trcd);\n\t\t }\n\t }\n\n //differentiate between 105 and 109 diagnostics\n if (ioe.getMessage().endsWith(\"user\"))\n throw new Diagnostic1(Diagnostic1.terminatedAtOriginRequest,\n \"Unable to send request to the Z39.50 server\");\n else\n throw new Diagnostic1(Diagnostic1.databaseUnavailable,\n \"Unable to send request to the Z39.50 server\");\n\n } \n catch (Exception e1) {\n zsession.reset();\n throw new Diagnostic1(Diagnostic1.databaseUnavailable, \n \"Unable to send request to the Z39.50 server\");\n }\n\n if (zResponse == null) {\n throw new Diagnostic1(Diagnostic1.temporarySystemError,\n \"Invalid search response received from the Z39.50 Server\");\n }\n\n\n Response(zResponse);\n\n // If flag is set to decode recs into datadir and we\n // got records back, then decode and make sure we got\n // all we wanted \n if (resultCount > 0 && \n Present.numberOfRecordsReturned > 0) {\n\n if (fMakeDataDir) \n Present.decodeRecords();\n\n\n if(Present.numberOfRecordsReturned != mediumSetPresentNumber &&\n resultCount > Present.numberOfRecordsReturned) {\n \n int numrecs = mediumSetPresentNumber - \n Present.numberOfRecordsReturned;\n //System.out.println(\"Numrecs returned = \" + numrecs +\n //\" asked for: \" + mediumSetPresentNumber);\n\n try {\n\n zsession.present.doPresent(zsession.refId > 0 ? \n zsession.refId++ : 0,\n resultSetName, Present.numberOfRecordsReturned+1,\n numrecs, resultCount, \n mediumSetElementSetNames, preferredRecordSyntax, \n fMakeDataDir);\n }\n catch (Exception e) {\n // Don't barf good results received.\n }\n catch (Diagnostic1 d) {\n // Don't barf good results received.\n }\n // If we got the records back. add them to the\n // Present Vector or the BerString\n saveGoodRecords(fMakeDataDir);\n }\n }\n }", "public boolean executeOperation() {\n final ListDO itemToFind = new ListDO();\n itemToFind.setUserId(getDemoDateSortedPartitionValue());\n\n // Use an expression names Map to avoid the potential for attribute names\n // colliding with DynamoDB reserved words.\n final Map <String, String> filterExpressionAttributeNames = new HashMap<>();\n filterExpressionAttributeNames.put(\"#foodId\", DEMO_SECONDARY_CONDITION_KEY);\n\n final Map<String, AttributeValue> filterExpressionAttributeValues = new HashMap<>();\n filterExpressionAttributeValues.put(\":MinfoodId\",\n new AttributeValue().withS(DEMO_SECONDARY_CONDITION_VALUE));\n\n // Perform get using Partition key and sort key condition\n DynamoDBQueryExpression<ListDO> queryExpression = new DynamoDBQueryExpression<ListDO>()\n .withHashKeyValues(itemToFind)\n .withFilterExpression(\"#foodId > :MinfoodId\")\n .withExpressionAttributeNames(filterExpressionAttributeNames)\n .withExpressionAttributeValues(filterExpressionAttributeValues)\n .withConsistentRead(false);\n results = mapper.query(ListDO.class, queryExpression);\n if (results != null) {\n resultsIterator = results.iterator();\n if (resultsIterator.hasNext()) {\n return true;\n }\n }\n return false;\n }", "public void assertOrderRecordExist(final DataSource dataSource, final String sql) {\n boolean recordExist = false;\n for (int i = 0; i < 5; i++) {\n List<Map<String, Object>> result = queryForListWithLog(dataSource, sql);\n recordExist = !result.isEmpty();\n if (recordExist) {\n break;\n }\n Awaitility.await().pollDelay(2L, TimeUnit.SECONDS).until(() -> true);\n }\n assertTrue(recordExist, \"Order record does not exist\");\n }", "public void testQuery() throws Exception {\n DummyApprovalRequest req1 = new DummyApprovalRequest(reqadmin, null, caid, SecConst.EMPTY_ENDENTITYPROFILE, false);\n DummyApprovalRequest req2 = new DummyApprovalRequest(admin1, null, caid, SecConst.EMPTY_ENDENTITYPROFILE, false);\n DummyApprovalRequest req3 = new DummyApprovalRequest(admin2, null, 3, 2, false);\n\n approvalSessionRemote.addApprovalRequest(admin1, req1, gc);\n approvalSessionRemote.addApprovalRequest(admin1, req2, gc);\n approvalSessionRemote.addApprovalRequest(admin1, req3, gc);\n\n // Make som queries\n Query q1 = new Query(Query.TYPE_APPROVALQUERY);\n q1.add(ApprovalMatch.MATCH_WITH_APPROVALTYPE, BasicMatch.MATCH_TYPE_EQUALS, \"\" + req1.getApprovalType());\n\n List result = approvalSessionRemote.query(admin1, q1, 0, 3, \"cAId=\" + caid, \"(endEntityProfileId=\" + SecConst.EMPTY_ENDENTITYPROFILE + \")\");\n assertTrue(\"Result size \" + result.size(), result.size() >= 2 && result.size() <= 3);\n\n result = approvalSessionRemote.query(admin1, q1, 1, 3, \"cAId=\" + caid, \"(endEntityProfileId=\" + SecConst.EMPTY_ENDENTITYPROFILE + \")\");\n assertTrue(\"Result size \" + result.size(), result.size() >= 1 && result.size() <= 3);\n\n result = approvalSessionRemote.query(admin1, q1, 0, 1, \"cAId=\" + caid, \"(endEntityProfileId=\" + SecConst.EMPTY_ENDENTITYPROFILE + \")\");\n assertTrue(\"Result size \" + result.size(), result.size() == 1);\n\n Query q2 = new Query(Query.TYPE_APPROVALQUERY);\n q2.add(ApprovalMatch.MATCH_WITH_STATUS, BasicMatch.MATCH_TYPE_EQUALS, \"\" + ApprovalDataVO.STATUS_WAITINGFORAPPROVAL, Query.CONNECTOR_AND);\n q2.add(ApprovalMatch.MATCH_WITH_REQUESTADMINCERTSERIALNUMBER, BasicMatch.MATCH_TYPE_EQUALS, reqadmincert.getSerialNumber().toString(16));\n\n result = approvalSessionRemote.query(admin1, q1, 1, 3, \"cAId=\" + caid, \"(endEntityProfileId=\" + SecConst.EMPTY_ENDENTITYPROFILE + \")\");\n assertTrue(\"Result size \" + result.size(), result.size() >= 1 && result.size() <= 3);\n\n // Remove the requests\n int id1 = ((ApprovalDataVO) approvalSessionRemote.findApprovalDataVO(admin1, req1.generateApprovalId()).iterator().next()).getId();\n int id2 = ((ApprovalDataVO) approvalSessionRemote.findApprovalDataVO(admin1, req2.generateApprovalId()).iterator().next()).getId();\n int id3 = ((ApprovalDataVO) approvalSessionRemote.findApprovalDataVO(admin1, req3.generateApprovalId()).iterator().next()).getId();\n approvalSessionRemote.removeApprovalRequest(admin1, id1);\n approvalSessionRemote.removeApprovalRequest(admin1, id2);\n approvalSessionRemote.removeApprovalRequest(admin1, id3);\n }", "@Override\n public List<PrescriptionRecord> findListByParams(Map map) {\n Map<String, Object> param = new HashMap<String, Object>(map);\n \n String sort = (String) map.get(\"sortType\");\n if(sort!=null) {\n param.put(\"sortType\", sort);\n }else {\n param.put(\"sortType\", \"DESC\");\n }\n \n List<ShardMeta> shardMetas = generateShardMetas();\n Integer pageSize = (Integer) param.get(\"pageSize\");\n boolean findRange = StringUtils.isBlank((String) param.get(\"orderNo\")) && pageSize != null;\n Integer startNum = findRange ? (Integer) param.get(\"startNum\") : 0;\n Integer subStartNum = startNum / shardMetas.size();\n \n List<PrescriptionRecord> allOrders = new ArrayList<PrescriptionRecord>();\n try {\n // 指定订单号则跳过\n if (findRange) {\n param.put(\"subStartNum\", subStartNum);\n // 提交第一次查询,查询每个分片的订单范围\n List<Future<List<Long>>> rangeTasks = submitRangeQuery(param, shardMetas, queryPool);\n long minTime = Long.MAX_VALUE;\n long maxTime = Long.MIN_VALUE;\n Iterator<ShardMeta> iterator = shardMetas.iterator();\n // 根据每个分片的订单范围计算出全局的订单范围\n for (int i = 0; i < rangeTasks.size(); i++) {\n ShardMeta shardMeta = iterator.next();\n List<Long> timestamps = rangeTasks.get(i).get();\n if (timestamps.isEmpty()) {\n continue;\n }\n \n shardMeta.setMaxTime(timestamps.get(0));\n shardMeta.setMinTime(timestamps.get(timestamps.size() - 1));\n if (maxTime < shardMeta.getMaxTime()) {\n maxTime = shardMeta.getMaxTime();\n }\n if (minTime > shardMeta.getMinTime()) {\n minTime = shardMeta.getMinTime();\n }\n }\n param.put(\"startTime\", minTime);\n param.put(\"endTime\", maxTime);\n }\n \n // 提交第二次查询,查询每个分片符合范围的订单\n List<Future<List<PrescriptionRecord>>> orderTasks = submitOrderQuery(param, shardMetas, queryPool);\n int offset = 0;\n Iterator<ShardMeta> iterator = shardMetas.iterator();\n List<ShardMeta> offsetShards = new ArrayList<ShardMeta>();\n // 合并所有分片的结果\n for (Future<List<PrescriptionRecord>> orderTask : orderTasks) {\n ShardMeta shardMeta = iterator.next();\n List<PrescriptionRecord> orderViews = orderTask.get();\n if (findRange) {\n if (shardMeta.getMaxTime() == Long.MIN_VALUE) {\n offsetShards.add(shardMeta);\n } else {\n int shardAheadCount = getAheadCount(orderViews, shardMeta.getMaxTime());\n // 累加全局偏移量\n offset += subStartNum - shardAheadCount;\n // 删除不需要后补齐查询的分片信息\n if (orderViews.size() - shardAheadCount < pageSize)\n iterator.remove();\n }\n }\n allOrders.addAll(orderViews);\n }\n \n if (!findRange || allOrders.isEmpty())\n return allOrders;\n /*\n // 进行分片偏移量查询\n if (!offsetShards.isEmpty()) {\n Object startTime = param.get(\"startTime\");\n param.put(\"startTime\", param.get(\"endTime\"));\n param.put(\"endTime\", map.get(\"endTime\"));\n \n List<Future<Long>> offsetTasks = submitOffsetQuery(param, offsetShards, queryPool);\n for (Future<Long> offsetTask : offsetTasks)\n offset += offsetTask.get();\n \n param.put(\"startTime\", startTime);\n }\n \n // 进行第三次查询\n int targetOffset = startNum - offset;\n int endIndex = targetOffset + pageSize;\n if (endIndex > allOrders.size() && !shardMetas.isEmpty()) {\n int backfill = endIndex - allOrders.size();\n param.put(\"backfill\", backfill);\n param.put(\"endTime\", param.get(\"startTime\"));\n param.put(\"startTime\", map.get(\"startTime\"));\n orderTasks = submitOrderQuery(param, shardMetas, queryPool);\n for (Future<List<PrescriptionRecord>> orderTask : orderTasks)\n allOrders.addAll(orderTask.get());\n }\n \n */\n int targetOffset = startNum;\n int endIndex = startNum + pageSize;\n \n if (allOrders.size() <= targetOffset)\n return Collections.EMPTY_LIST;\n \n \n // 对合并后的结果统一排序,并根据全局偏移量定位分页的第一条订单的偏移量,提取分页结果\n \n sortByCreateTime(allOrders);\n return allOrders.subList(targetOffset, Math.min(endIndex, allOrders.size()));\n } catch (Exception e) {\n e.printStackTrace();\n throw new SystemException(e);\n }\n }", "public abstract Page<CustomerOrder> findAllByIdsIn(List<Long> ids, GlobalSearch globalSearch, Pageable pageable);", "public List<Record> executeNativeFinder(String queryName, Object context);", "public Set<RecordPair> match(Record record) throws ApplicationException;", "int searchYardList() throws DAOException;", "@Test\n public void searchTrueTest() {\n assertThat(4, is(this.queue.search(\"work4\")));\n assertThat(1, is(this.queue.search(\"work1\")));\n }", "@Test\n public void testFindEntitiesSearch() {\n MouldingProcessSearch search = new MouldingProcessSearch();\n search.setSignedOffBy(\"John Malone\");\n DAO<MouldingProcess> mpDAO = new DAO<MouldingProcess>(MouldingProcess.class);\n\n SearchProcessSheetAction action = new SearchProcessSheetAction(mpDAO);\n\n try {\n List<MouldingProcess> result = action.search(search);\n assertNotNull(result);\n assertEquals(result.size(), 4);\n } catch (DAOException de) {\n de.printStackTrace();\n fail(\"DAOException thrown\");\n }\n\n search.setMachineNo(\"Fanuc 1\");\n\n try {\n List<MouldingProcess> result = action.search(search);\n assertNotNull(result);\n assertEquals(result.size(), 1);\n } catch (DAOException de) {\n de.printStackTrace();\n fail(\"DAOException thrown\");\n }\n\n // Reset Search\n search = new MouldingProcessSearch();\n search.setStartDate(java.sql.Date.valueOf(\"2013-05-11\"));\n try {\n List<MouldingProcess> result = action.search(search);\n assertNotNull(result);\n assertEquals(result.size(), 1);\n } catch (DAOException de) {\n de.printStackTrace();\n fail(\"DAOException thrown\");\n }\n\n search.setStartDate(java.sql.Date.valueOf(\"2000-01-01\"));\n search.setEndDate(java.sql.Date.valueOf(\"2014-01-01\"));\n try {\n List<MouldingProcess> result = action.search(search);\n assertNotNull(result);\n assertEquals(result.size(), 3);\n } catch (DAOException de) {\n de.printStackTrace();\n fail(\"DAOException thrown\");\n }\n\n search.setSignedOffBy(\"John Malone\");\n try {\n List<MouldingProcess> result = action.search(search);\n // assertNotNull(result);\n // assertEquals(result.size(), 3);\n } catch (DAOException de) {\n de.printStackTrace();\n fail(\"DAOException thrown\");\n }\n\n }", "public static void main(String[] args) {\n \tif(testInsert()) \n \t\tSystem.out.println(\"testInsert: succeeded\");\n \telse\n \t\tSystem.out.println(\"testInsert: failed\");\n if(testSearch()) \n System.out.println(\"testSearch: succeeded\");\n else\n System.out.println(\"testSearch: failed\");\n }", "@Test\n public void testMultiSearch_withParens() {\n List<String> fields = new ArrayList<>();\n fields.add(\"sn\");\n fields.add(\"mail\");\n \n BridgeRequest request = new BridgeRequest();\n request.setStructure(\"user\");\n request.setFields(fields);\n request.setQuery(\"(samaccountname=*)\");\n \n RecordList list = null;\n BridgeError unexpectedError = null;\n try {\n list = getAdapter().search(request);\n } catch (BridgeError e) {\n unexpectedError = e;\n }\n \n assertNull(unexpectedError);\n assertTrue(list.getRecords().size() > 0);\n }", "@Test\n void searchProduct() {\n List<DummyProduct> L1= store.SearchProduct(\"computer\",null,-1,-1);\n assertTrue(L1.get(0).getProductName().equals(\"computer\"));\n\n List<DummyProduct> L2= store.SearchProduct(null,\"Technology\",-1,-1);\n assertTrue(L2.get(0).getCategory().equals(\"Technology\")&&L2.get(1).getCategory().equals(\"Technology\"));\n\n List<DummyProduct> L3= store.SearchProduct(null,null,0,50);\n assertTrue(L3.get(0).getProductName().equals(\"MakeUp\"));\n\n List<DummyProduct> L4= store.SearchProduct(null,\"Fun\",0,50);\n assertTrue(L4.isEmpty());\n }", "@Test\n public void testDAM32001001() {\n // Index page\n DAM3IndexPage dam3IndexPage = new DAM3IndexPage(driver);\n\n // This call brings te order details from various tables into single entity using join\n OrderMB3ListPage orderMB3ListPage = dam3IndexPage.dam32001001Click();\n\n // Expected order details\n // the string is of the format\n // ORDER STATUS NAME, ITEM CODE, ITEM NAME, CATEGORY CODE, CATEGORY NAME, MEMO\n String expectedOrdeDetails = \"Order accepted, ITM0000001, Orange juice, CTG0000001, Drink, dummy1\";\n\n // get the details of the specified order in a single string\n String actualOrderDetails = orderMB3ListPage.getOrderDetails(1);\n\n // confirm the details of the order fetched from various tables\n assertThat(actualOrderDetails, is(expectedOrdeDetails));\n\n // confirmation for some more order details....\n\n expectedOrdeDetails = \"Stock checking, ITM0000002, NotePC, CTG0000002, PC, \";\n actualOrderDetails = orderMB3ListPage.getOrderDetails(2);\n assertThat(actualOrderDetails, is(expectedOrdeDetails));\n\n expectedOrdeDetails = \"Item Shipped, ITM0000003, Car, CTG0000003, Hot selling, dummy3\";\n actualOrderDetails = orderMB3ListPage.getOrderDetails(3);\n assertThat(actualOrderDetails, is(expectedOrdeDetails));\n\n expectedOrdeDetails = \"Order accepted, ITM0000001, Orange juice, CTG0000001, Drink, dummy4\";\n actualOrderDetails = orderMB3ListPage.getOrderDetails(4);\n assertThat(actualOrderDetails, is(expectedOrdeDetails));\n }", "List<Order> findOrdersByParameters(Map<String, Object> orderParameters) throws DaoProjectException;", "@Sql({\"/jdbc/search/gene/clean_database.sql\", \"/jdbc/search/gene/gene_autocomplete_schema.sql\", \"/jdbc/search/gene/gene_autocomplete_dataset.sql\"})\n @Test\n public void searchGene_WhenCall_ThenReturnListOfGenesSuccessfully() {\n final List<String> searchGenes = searchGeneDBService.searchGene(\"BRCA\", \"homo_sapiens\", 4);\n\n //Assert\n assertThat(searchGenes)\n .isNotNull()\n .hasSize(4)\n .containsOnly(GENE1, GENE2, GENE3, GENE4);\n\n }", "@Test\t\n\tpublic void findAllQCBatchNotesTest(){\n//\t\tlog.trace(\"GETTING ALL QC BATCH NOTES\");\n\t\t\n\t\t// find all QC batch notes\n\t\tList<Note> notes = noteDao.findAllQCBatchNotes(TEST_QCBATCH_ID);\n\t\t\n\t\t// compare with expected\n\t\tList<Integer> expected = new ArrayList<>();\n\t\tCollections.addAll(expected, 6369,6390,6391,6420,6438,6457,6470);\n\t\tassertEquals(expected.size(), notes.size()); // same size\n\t\tfor(int j = 0; j < expected.size(); j++){\n\t\t\tassertTrue(expected.contains(notes.get(j).getNoteId())); // same values\n\t\t}\n\t}", "Pair<Boolean, List<Result>> execQuery(int matchLimit);", "public static void test1(){\n\t\tlong[] testCase=new long[]{2034912444,1511277043};\r\n\t\tList<String> rs=SearchWrapper.search( testCase[0], testCase[testCase.length-1]);\r\n\t\t\r\n\t}", "@Test\n public void testsearch(){\n ArrayList<Booking> bookings =bookingHelper.getBookingList();\n bookingHelper.addBooking(booking1);\n bookingHelper.addBooking(booking2);\n\n //bookingHelper.search(\"0000002\");\n\n\n\n// assertEquals(bookingHelper.searchGuestID(1), booking1);\n// assertEquals(bookingHelper.searchGuestID(2), booking2);\n assertNull(bookingHelper.search(-1));\n assertEquals(bookingHelper.searchBookingId(booking1.getBookingID()), booking1);\n }", "@Test\r\n\tvoid testContains() {\r\n\t\tSortedList list = new SortedList(\"List\");\r\n\t\tlist.insert(toDoItem1);\r\n\t\tlist.insert(toDoItem2);\r\n\t\tlist.insert(toDoItem3);\r\n\t\tlist.insert(toDoItem4);\r\n\r\n\t\tif (list.contains(\"Item 1\") != true) {\r\n\t\t\tfail(\"Failed to find \\\"Item 1\\\"\");\r\n\t\t}\r\n\t\tif (list.contains(\"Item 2\") != true) {\r\n\t\t\tfail(\"Failed to find \\\"Item 2\\\"\");\r\n\t\t}\r\n\t\tif (list.contains(\"Item 3\") != true) {\r\n\t\t\tfail(\"Failed to find \\\"Item 3\\\"\");\r\n\t\t}\r\n\t\tif (list.contains(\"Item 4\") != true) {\r\n\t\t\tfail(\"Failed to find \\\"Item 4\\\"\");\r\n\t\t}\r\n\t}", "@Test\n public void executeEmptySearch() {\n emptySearchFields();\n\n int counterBefore = AccountDAO.getSearchID();\n\n //Even with empty fields, the search should be created and executed\n presenter.doSearch();\n Assert.assertEquals(counterBefore + 1, AccountDAO.getSearchID());\n }", "@Then(\"search results are displayed\")\n\tpublic void search_results_are_displayed() throws Exception {\n\t\t//Waits for the result page to load\n\t\tdriver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n\n\t\t//Saves all results that match our book ID\n\t\tWebDriverWait wait = new WebDriverWait(driver, 20);\n\t\twait.until(ExpectedConditions.visibilityOfAllElementsLocatedBy(By.xpath(resultsPage)));\n\t\tList<WebElement> results = driver.findElements(By.xpath(resultsPage));\n\n\t\t//Verifies that my book id is really among the results\n\n\t\tif(results.size() > 1) {\n\t\t\tfor(int i = 0; i < results.size(); ++i) {\n\t\t\t\tproduto = results.get(i).getAttribute(\"data-product\");\n\t\t\t\tif (produto.contains(id)) {\n\t\t\t\t\tSystem.out.println(\"\\nA busca encontrou o meu livro!\");\n\t\t\t\t\tSystem.out.println(id);\n\t\t\t\t\tSystem.out.println(\"------------------------------------------------\");\n\t\t\t\t\tbreak;\n\t\t\t\t}else {\n\t\t\t\t\t\tSystem.out.println(\"Livro não encontrado!\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"\\nNenhum resultado encontrado!\\n\");\n\t\t\t}\n\n\t\t\t// Take snapshot as evidence\n\t\t\tFunctions.takeSnapShot(driver, null);\n\n\t\t}", "MultiSearchResponse executeMultiSearchRequest(List<SearchRequest> searchRequestList, Boolean primaryOrNot);", "@Override\n public List<String> getTissueIdsMatchingQuery(Query query, List<FimsProject> projectsToMatch) throws ConnectionException {\n\n\n if(query instanceof BasicSearchQuery) {\n String value = ((BasicSearchQuery)query).getSearchText();\n List<Query> queries = new ArrayList<Query>();\n for(DocumentField field : getSearchAttributes()) {\n queries.add(Query.Factory.createFieldQuery(field, Condition.APPROXIMATELY_EQUAL, value));\n }\n return getTissueIdsMatchingQuery(Query.Factory.createOrQuery(queries.toArray(new Query[queries.size()]), Collections.<String, Object>emptyMap()), null);\n }\n if(query instanceof CompoundSearchQuery && (((CompoundSearchQuery)query).getOperator() == CompoundSearchQuery.Operator.OR)) {\n Set<String> results = new LinkedHashSet<String>();\n for(Query q : ((CompoundSearchQuery)query).getChildren()) {\n results.addAll(getTissueIdsMatchingQuery(q, null));\n }\n return new ArrayList<String>(results);\n }\n final List<String> results = new ArrayList<String>();\n String querySQLString = getQuerySQLString(query);\n if(querySQLString == null) {\n return Collections.emptyList();\n }\n String sql = \"SELECT '\" + getTissueCol() + \"' FROM \"+tableId+\" WHERE \"+ querySQLString;\n System.out.println(sql);\n\n try {\n Sqlresponse sqlresponse = FusionTableUtils.queryTable(sql, requestTimeoutInSeconds);\n List<List<Object>> rows = sqlresponse.getRows();\n if(rows == null) {\n return Collections.emptyList();\n }\n for (List<Object> row : rows) {\n String decoded = getRowValue(row, 0);\n results.add(decoded);\n }\n\n } catch (IOException e) {\n e.printStackTrace();\n throw new ConnectionException(e.getMessage(), e);\n }\n\n return results;\n }", "@Test\n\tpublic void testShowResult() {\n\t\tConfigurationManager config = new ConfigurationManager();\n\t\tInvertedIndex index = new InvertedIndex();\n\t\tFileManager manager = new FileManager(config.getConfig().getFileName(), index);\n\t\tHashMap<String, String> parameters = new HashMap<String, String>();\n\t\tcheckFindHandler(config.getConfig(), index, new RequestObject(\"\", \"\", parameters), 0);\n\t\tparameters.put(\"asin\", \"ABCD\");\n\t\tcheckFindHandler(config.getConfig(), index, new RequestObject(\"\", \"\", parameters), 0);\n\t\tparameters.put(\"asin\", \"B00002243X\");\n\t\tcheckFindHandler(config.getConfig(), index, new RequestObject(\"\", \"\", parameters), 10);\n\t\tcheckReviewSearchHandler(config.getConfig(), index, new RequestObject(\"\", \"\", parameters), 0);\n\t\tparameters.put(\"query\", \"ASDAJKSDJHKASJK\");\n\t\tcheckReviewSearchHandler(config.getConfig(), index, new RequestObject(\"\", \"\", parameters), 0);\n\t\tparameters.put(\"query\", \"jumpers\");\n\t\tcheckReviewSearchHandler(config.getConfig(), index, new RequestObject(\"\", \"\", parameters), 8);\n\t}", "List<SearchResult> search(SearchQuery searchQuery);", "public void testQuery() {\n mActivity.runOnUiThread(\n new Runnable() {\n public void run() {\n //TODO: Should compare this against the db results directly.\n assertEquals(sendQuery(\"SFO\"), 7);\n assertEquals(sendQuery(\"RHV\"), 1);\n assertEquals(sendQuery(\"xyzzy\"), 0);\n }\n }\n );\n }", "public static void findByIn() {\n\t\tFindIterable<Document> findIterable = collection.find(in(\"status\", \"A\", \"D\"));\r\n\t\tprint(findIterable);\r\n\t}", "public static void main(String[] args) {\n\n\t\torderArray array = new orderArray(10);\n\t\tarray.insert(50);\n\t\tarray.insert(20);\n\t\tarray.insert(30);\n\t\tarray.insert(55);\n\t\tarray.insert(45);\n\t\tint searchKey = 48;\n\n\t\tif (array.find(searchKey) != array.size())\n\t\t\tSystem.out.println(\"Found \" + searchKey);\n\t\telse\n\t\t\tSystem.out.println(\"Can't find\");\n\n\t}", "public List findRecords(String informationType, String queryString) throws DatabaseException;", "public void execute(TaskList tasks, Storage storage, Ui ui) {\n ArrayList<Task> results = (ArrayList<Task>) tasks.getTasks().stream()\n .filter(t -> t.getTask().contains(query))\n .collect(Collectors.toList());\n ui.showSearchResults(results);\n }", "@Test\n\tpublic void integrationTest2() throws Exception {\n\t\tHashSet<String> mistress = loadGrepResults(\"mistress\");\n\t\tHashSet<String> undocumented = loadGrepResults(\"undocumented\");\n\t\tHashSet<String> insane = loadGrepResults(\"insane\");\n\t\tHashSet<String> crazy = loadGrepResults(\"crazy\");\n\t\tHashSet<String> forced = loadGrepResults(\"!i+am+forced\");\n\t\t\n\t\tHashSet<String> grepFound = new HashSet<String>(mistress);\n\t\tgrepFound.retainAll(undocumented);\n\t\tHashSet<String> temp = new HashSet<String>(crazy);\n\t\ttemp.retainAll(forced);\n\t\tgrepFound.addAll(temp);\n\t\tgrepFound.addAll(insane);\n\t\t\n\t\tCollection<Page> index = queryTest.query(\"insane | crazy & !\\\"I am forced\\\" | mistress & undocumented\");\n\t\tHashSet<String> indexFound = new HashSet<String>();\n\n\t\tfor (Page p : index)\n\t\t\tindexFound.add(p.getURL().getPath().toLowerCase());\n\t\t\n\t\tassertEquals(indexFound, grepFound);\n\t}", "@Override\n public CommandResult execute(TaskList tasks, Storage storage) throws NoActionException {\n assert tasks != null;\n assert storage != null;\n if (this.searchTerms.length() == 0) {\n throw new NoActionException(\"Command 'find' requires search terms to be provided.\");\n }\n ArrayList<Task> matchList = new ArrayList<>();\n for (int i = 0; i < tasks.size(); i++) {\n Task currTask = tasks.get(i);\n if (currTask.contains(searchTerms)) {\n matchList.add(currTask);\n continue;\n }\n if (currTask.getTag().contains(searchTerms)) {\n matchList.add(currTask);\n }\n }\n return new CommandResult(Reply.showMatchingTasks(new TaskList(matchList)),\n true, super.isExit());\n }", "@Sql({\"/jdbc/search/gene/clean_database.sql\", \"/jdbc/search/gene/gene_autocomplete_schema.sql\", \"/jdbc/search/gene/gene_autocomplete_dataset.sql\"})\n @Test\n public void searchGene_WhenCallWithCaseInSensitiveData_ThenReturnListOfGenesSuccessfully() {\n final List<String> searchGenes = searchGeneDBService.searchGene(\"BrcA\", \"homo_sapiens\", 4);\n\n //Assert\n assertThat(searchGenes)\n .isNotNull()\n .hasSize(4)\n .containsOnly(GENE1, GENE2, GENE3, GENE4);\n\n }", "@Override\n public List<Audit> searchAuditRecord(List<String> eventTypeList, String userId,\n List<String> remoteHcidList, Date startDate, Date endDate, Map<String, String> remoteHcidOrgNameMap) {\n QueryAuditEventsRequestType auditRequest = new QueryAuditEventsRequestType();\n auditRequest.setEventTypeList(createEventTypeList(eventTypeList));\n auditRequest.setUserId(userId);\n auditRequest.setRemoteHcidList(createRemoteHcidList(remoteHcidList));\n auditRequest.setEventBeginDate(getXMLGregorianCalendarFrom(startDate));\n auditRequest.setEventEndDate(getXMLGregorianCalendarFrom(endDate));\n return createAuditObjects(auditRetrieve.retrieveAudits(auditRequest), remoteHcidOrgNameMap);\n }", "@Override\n public boolean executeOperation() {\n final Map <String, String> filterExpressionAttributeNames = new HashMap<>();\n filterExpressionAttributeNames.put(\"#creationDate\", DEMO_PRIMARY_CONDITION_KEY);\n\n final Map<String, AttributeValue> filterExpressionAttributeValues = new HashMap<>();\n filterExpressionAttributeValues.put(\":MincreationDate\",\n new AttributeValue().withN(DEMO_PRIMARY_CONDITION_VALUE));\n final DynamoDBScanExpression scanExpression = new DynamoDBScanExpression()\n .withFilterExpression(\"#creationDate > :MincreationDate\")\n .withExpressionAttributeNames(filterExpressionAttributeNames)\n .withExpressionAttributeValues(filterExpressionAttributeValues);\n\n results = mapper.scan(ListDO.class, scanExpression);\n if (results != null) {\n resultsIterator = results.iterator();\n if (resultsIterator.hasNext()) {\n return true;\n }\n }\n return false;\n }", "private void searchJournals(String callNumber, String[] keywords,int startYear, int endYear) {\n\t\t/* Loop to sequentially search master list 'Reference' */\n\t\tfor (int i = 0; i < items.size(); i++)\n\t\t\tif ((callNumber.equals(\"\") || items.get(i).getCallNumber()\n\t\t\t\t\t.equalsIgnoreCase(callNumber))\n\t\t\t\t\t&& (keywords == null || matchedKeywords(keywords, items\n\t\t\t\t\t\t\t.get(i).getTitle()))\n\t\t\t\t\t&& (items.get(i).getYear() >= startYear && items.get(i)\n\t\t\t\t\t\t\t.getYear() <= endYear)) {\n\t\t\t\tReference ref = items.get(i);\n\t\t\t\t/* Checks if reference is of a 'Journal' type */\n\t\t\t\tif (ref instanceof Journal) {\n\t\t\t\t\tJournal book = (Journal) ref;\n\t\t\t\t\tSystem.out.println(\"--------------------------------------------\");\n\t\t\t\t\tSystem.out.println(book.toString());\n\t\t\t\t\tSystem.out.println(\"--------------------------------------------\");\n\t\t\t\t}\n\t\t\t}\n\t}", "public static ArrayList<Long> searchKeywordEntryId(ArrayList<String> queryKeywords) {\n ArrayList<Long> keywordIdList = new ArrayList<Long>();\n List<Keywords> idList = new ArrayList<>();\n\n for(String qk : queryKeywords){\n List<Keywords> idListt =\n Keywords.find()\n .select(\"keywordEntryId\")\n .where()\n //.in(\"keyword\", queryKeywords)\n .like(\"keyword\", \"%\"+qk+\"%\")\n .findList();\n idList.addAll(idListt);\n }\n\n for (Keywords keywords : idList) {\n keywordIdList.add(keywords.getKeywordEntryId());\n }\n System.out.println(\"keywordIdList---\" + keywordIdList);\n return keywordIdList;\n }", "protected abstract boolean handleRecord(T mainRecord, T lookupRecord);", "protected void checkQueryForSearch(CandidateQuery query, List<Object> params) {\n\t\tif(query==null) {\n\t\t\tthrow new IllegalArgumentException(\"checkQueryForSearch(CandidateQuery query, List<Object> params) \"+query+\" can not be null\");\n\n\t\t}\n\t\t\n\t\tString[] checkList= {\n\t\t\t\t\"query.getTargetType()\",query.getTargetType(),\n\t\t\t\t\"query.getOwnerType()\",query.getOwnerType(),\n\t\t\t\t\"query.getTargetType()\",query.getTargetType(),\n\t\t\t\t\"query.getListType()\",query.getListType(),\n\t\t\t\t\"query.getOwnerId()\",query.getOwnerId(),\n\t\t\t\t\n\t\t};\n\t\t\n\t\tint length = checkList.length;\n\t\tfor(int i=0;i<length;i++) {\n\t\t\tString target = checkList[i];\n\t\t\tif(target!=null) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tString parameterName = checkList[i-1];\n\t\t\tString message = String.format(\"Parameter '%s' in '%s' is not expected to be null\",\n\t\t\t\t\tparameterName,\"prepareSqlForSearch(CandidateQuery query, List<Object> params)\");\n\t\t\tthrow new IllegalArgumentException(message);\n\t\t}\n\t\t\n\t\t\n\t}", "protected abstract void scanResultCallback(int order, AbstractVerifyAdapter verifyProcess);", "@Test\n public void testSearch(){\n for(int i = 0; i < realLocations.length; i++) {\n try {\n String[] locationInfo = new SearchTask().execute(browserKey, realLocations[i]).get();\n assertTrue(locationInfo.length > 0);\n testLocation(locationInfo);\n }\n catch (Exception e){\n assertFalse(\"Search task failed: \" + e.getMessage(), true);\n }\n }\n for(int i = 0; i < falseLocations.length; i++){\n try {\n String[] locationInfo = new SearchTask().execute(browserKey, (String) falseLocations[i]).get();\n assertTrue(locationInfo.length > 0);\n testLocation(locationInfo);\n }\n catch (Exception e){\n assertFalse(\"Search task failed: \" + e.getMessage(), true);\n }\n }\n }", "Boolean checkIndexing(Long harvestResultOid) throws DigitalAssetStoreException;", "public List<Orders> findOrder(Map<String, Object> params);", "@Test\n public void saveSearch_withExecutedSearch(){\n fillSearchFields();\n int accountID = new AccountDAO().findAccount(\"[email protected]\").getId();\n int savedSearchesSize = new AccountDAO().findAccount(accountID).getStoredSearches().size();\n\n presenter.doSearch();\n presenter.saveSearch();\n Assert.assertEquals(savedSearchesSize + 1, new AccountDAO().findAccount(accountID).getStoredSearches().size());\n }", "public void search(IndexShort < O > index, short range, short k)\n throws Exception {\n // assertEquals(index.aDB.count(), index.bDB.count());\n // assertEquals(index.aDB.count(), index.bDB.count());\n // index.stats();\n index.resetStats();\n // it is time to Search\n int querySize = 1000; // amount of elements to read from the query\n String re = null;\n logger.info(\"Matching begins...\");\n File query = new File(testProperties.getProperty(\"test.query.input\"));\n File dbFolder = new File(testProperties.getProperty(\"test.db.path\"));\n BufferedReader r = new BufferedReader(new FileReader(query));\n List < OBPriorityQueueShort < O >> result = new LinkedList < OBPriorityQueueShort < O >>();\n re = r.readLine();\n int i = 0;\n long realIndex = index.databaseSize();\n\n while (re != null) {\n String line = parseLine(re);\n if (line != null) {\n OBPriorityQueueShort < O > x = new OBPriorityQueueShort < O >(\n k);\n if (i % 100 == 0) {\n logger.info(\"Matching \" + i);\n }\n\n O s = factory.create(line);\n if (factory.shouldProcess(s)) {\n if(i == 279){\n System.out.println(\"hey\");\n }\n index.searchOB(s, range, x);\n result.add(x);\n i++;\n }\n }\n if (i == querySize) {\n logger.warn(\"Finishing test at i : \" + i);\n break;\n }\n re = r.readLine();\n }\n \n logger.info(index.getStats().toString());\n \n int maxQuery = i;\n // logger.info(\"Matching ends... Stats follow:\");\n // index.stats();\n\n // now we compare the results we got with the sequential search\n Iterator < OBPriorityQueueShort < O >> it = result.iterator();\n r.close();\n r = new BufferedReader(new FileReader(query));\n re = r.readLine();\n i = 0;\n while (re != null) {\n String line = parseLine(re);\n if (line != null) {\n if (i % 300 == 0) {\n logger.info(\"Matching \" + i + \" of \" + maxQuery);\n }\n O s = factory.create(line);\n if (factory.shouldProcess(s)) {\n OBPriorityQueueShort < O > x2 = new OBPriorityQueueShort < O >(\n k);\n searchSequential(realIndex, s, x2, index, range);\n OBPriorityQueueShort < O > x1 = it.next();\n //assertEquals(\"Error in query line: \" + i + \" slice: \"\n // + line, x2, x1); \n \n assertEquals(\"Error in query line: \" + i + \" \" + index.debug(s) + \"\\n slice: \"\n + line + \" \" + debug(x2,index ) + \"\\n\" + debug(x1,index), x2, x1);\n\n i++;\n }\n \n }\n if (i == querySize) {\n logger.warn(\"Finishing test at i : \" + i);\n break;\n }\n re = r.readLine();\n }\n r.close();\n logger.info(\"Finished matching validation.\");\n assertFalse(it.hasNext());\n }", "@Test\n public void searchByTwoCoordinate(TestInfo testInfo)\n {\n final String groupId = getGroupId(GROUP_ID, testInfo);\n\n logger.debug(\"There are a total of {} artifacts.\", count(groupId));\n\n // prepare search query key (coordinates)\n RawArtifactCoordinates c1 = new RawArtifactCoordinates(groupId + \"/\" + ARTIFACT_ID + \"/\");\n\n List<ArtifactEntry> result = artifactEntryService.findArtifactList(STORAGE_ID,\n REPOSITORY_ID,\n c1.getCoordinates(),\n false);\n assertThat(result).isNotNull();\n assertThat(result).isNotEmpty();\n assertThat(result).hasSize(1);\n\n result.forEach(artifactEntry ->\n {\n logger.debug(\"Found artifact {}\", artifactEntry);\n assertThat(((RawArtifactCoordinates)artifactEntry.getArtifactCoordinates())\n .getPath().startsWith(groupId + \"/\" + ARTIFACT_ID)).isTrue();\n });\n\n Long c = artifactEntryService.countArtifacts(STORAGE_ID, REPOSITORY_ID, c1.getCoordinates(), false);\n assertThat(c).isEqualTo(Long.valueOf(1));\n }", "@Test\n public void searchAllPostsByUserAndValidatePostIDs(){\n List <String> postIds = searchForPosts();\n if (postIds == null){\n Assert.assertFalse(postIds == null);\n }\n if(postIds.isEmpty()){\n //This ensures that the test does NOT fail for a user without any post - simply print a message\n System.out.println(\"User has no posts yet!.... PostIds: \" + postIds);\n Assert.assertTrue(postIds.isEmpty());\n }\n }", "public void testGetMatchingAuthors() {\r\n //given\r\n System.out.println(\"getMatchingAuthors\");\r\n String nameSequence = \"F\";\r\n AuthorHibernateDao instance = new AuthorHibernateDao();\r\n \r\n //when\r\n List<Author> result = instance.getMatchingAuthors(nameSequence);\r\n \r\n //then\r\n assertEquals(result.size(), 8); \r\n for (Author author:result){\r\n System.out.println(author.toString() + \"\\n\"); \r\n }\r\n }", "private final List<Object> searchForResults(@Nullable String query)\n {\n ArrayList<Object> results = new ArrayList<>();\n try {\n results.addAll(crDao.getRecordsLike(query));\n } catch (Exception e) {\n Logger.error(\"Failed to search the cr dao for results.\", e);\n }\n\n try {\n results.addAll(customMonsterDao.getRecordsLike(query));\n } catch (Exception e) {\n Logger.error(\"Failed to search the custom monster dao for results.\", e);\n }\n\n try {\n results.addAll(monsterDao.getRecordsLike(query));\n } catch (Exception e) {\n Logger.error(\"Failed to search the standard monster dao for results.\", e);\n }\n\n return results;\n }", "@Override\n\tpublic List<OrderIn> findList(Map<String, Object> queryMap) {\n\t\treturn orderInDao.findList(queryMap);\n\t}", "@Test\r\n\tvoid testSearch2() {\r\n\t\tSimpleList test = new SimpleList();\r\n\t\ttest.add(7);\r\n\t\ttest.add(10);\r\n\t\ttest.add(9);\r\n\t\tint output = test.search(4);\r\n\t\tassertNotEquals(3, output);\r\n\t}", "public List<R> onFindForList(final List<R> records) {\n for (final R record : records) {\n onFindForObject(record);\n }\n // can be overridden.\n return records;\n }", "public void search() {\n try {\n for(int i = 0; i < this.queries.size(); i++){\n search(i);\n // in case of error stop\n if(!this.searchOK(i)){\n System.out.println(\"\\t\" + new Date().toString() + \" \" + db + \" Search for rest queries cancelled, because failed for query \" + i + \" : \" + this.queries.get(i));\n break;\n }\n }\n } catch (UnsupportedEncodingException ex) {\n Logger.getLogger(EntrezSearcher.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "static void searchProductDB() {\n\n int productID = Validate.readInt(ASK_PRODUCTID); // store product ID of user entry\n\n\n productDB.findProduct(productID); // use user entry as parameter for the findProduct method and if found will print details of product\n\n }", "public void doSearch(int referenceId, int smallSetUpperBound,\n int largeSetLowerBound, int mediumSetPresentNumber,\n int replaceIndicator, String resultSetName,\n String databaseNames, String smallSetElementSetNames,\n String mediumSetElementSetNames, String preferredRecordSyntax,\n String query, int query_type, String searchResultsOID,\n DataDir Z39attributesPlusTerm,\n boolean fMakeDataDir) \n throws Exception, Diagnostic1, AccessControl {\n \n doSearch(referenceId, \n smallSetUpperBound, \n largeSetLowerBound, \n mediumSetPresentNumber,\n replaceIndicator,\n resultSetName,\n databaseNames,\n smallSetElementSetNames,\n mediumSetElementSetNames,\n preferredRecordSyntax,\n query,\n query_type,\n searchResultsOID,\n Z39attributesPlusTerm,\n null,\n null,\n null,\n\t\t null,\n fMakeDataDir);\n }", "private static void task2222(int nUMS, SplayTree<Integer> j) {\n\t\tSystem.out.println(\"SPLAY Started Search...\");\n\t double search_start = 0, search_end = 0;\n\t int totalkeymatched = 0;\n\n\t search_start = System.nanoTime();\n\t \n\t for (int z = 0; z < nUMS; z++) {\n\t \tint checker= GenerateInt.generateNumber();\n\t \t\n//\t \tSystem.out.println(GenerateStrings.getAlphaNumericString(limit));\n\t if (j.contains(checker)) {\n\t\n//\t System.out.println(\"Key Matches\");\n\t totalkeymatched++;\n\t \t }\n\t }\n\t search_end = System.nanoTime();\n\t System.out.println(\"Average time for each search: \" + (search_end - search_start) / nUMS + \" nanoseconds\");\n\t System.out.println(\"TOTAL MATCHES \" + totalkeymatched);\n\n\t}", "@Test\n public void mapContains() {\n check(MAPCONT);\n query(MAPCONT.args(MAPNEW.args(), 1), false);\n query(MAPCONT.args(MAPENTRY.args(1, 2), 1), true);\n }", "private int JobSearch(String ClientID, ArrayList<Jobs> SearchThrough) {\n \t\tint size = SearchThrough.size();\n \t\tint scan = 0;\n \n \t\twhile (scan < size) {\n \t\t\tJobs looking = SearchThrough.get(scan);\n \t\t\t// See if the client name matches the search parameter\n \t\t\tif (looking.GetIussed() == ClientID) {\n \t\t\t\treturn scan;\n \t\t\t}\n \t\t\tscan++;\n \t\t}\n \t\treturn -1;\n \t}", "private void searchHashMap(String[] searchKey, String callNumber,int startYear, int endYear) {\n\t\t/* Temporarily stores next 'values' for a title keyword */\n\t\tArrayList<Integer> tempStore = new ArrayList<Integer>();\n\t\t/* Stores only the intersection 'values' of title keywords */\n\t\tCollection<Integer> intersection = new ArrayList<Integer>();\n\t\t/* Counts number of keywords found */\n\t\tint foundKeys = 0;\n\n\t\t/* Loop to iterate through title keywords and get key-value pair intersection */\n\t\tfor (String key : searchKey) {\n\t\t\tif (titleHashMap.containsKey(key)) {\n\t\t\t\tfoundKeys = foundKeys + 1;\n\t\t\t\ttempStore.addAll((titleHashMap.get(key))); /* Stores all found values */\n\t\t\t\tif (intersection.size() == 0) {\n\t\t\t\t\tintersection.addAll(titleHashMap.get(key));\n\t\t\t\t}\n\t\t\t\tintersection.retainAll(tempStore); /* Stores only common 'values' */\n\t\t\t\ttempStore.clear(); /* Clears temporary array*/\n\t\t\t}\n\t\t}\n\n\t\t/* Checks if all keywords were found */\n\t\tif(searchKey.length == foundKeys){\n\t\t/* Performs search of other fields via the reduced list of 'values' for matched record */\n\t\tfor (Integer i : intersection) {\n\t\t\tif ((callNumber.equals(\"\") || items.get(i.intValue()).getCallNumber().equalsIgnoreCase(callNumber))\n\t\t\t\t\t&& (items.get(i.intValue()).getYear() >= startYear && items.get(i.intValue()).getYear() <= endYear)) {\n\t\t\t\tSystem.out.println(\"--------------------------------------------\");\n\t\t\t\tSystem.out.println(items.get(i.intValue())); /* Prints found records from master list 'Reference' */\n\t\t\t\tSystem.out.println(\"--------------------------------------------\");\n\t\t\t}\n\t\t}\n\t\t}\n\t}", "public void find(String collection, JsonObject matcher, JsonObject keys, final AsyncResultHandler<JsonArray> resultHandler) {\r\n\t\tJsonObject request = new JsonObject();\r\n\t\trequest.putString(\"action\", \"find\");\r\n\t\trequest.putString(\"collection\", collection);\r\n\t\trequest.putObject(\"matcher\", matcher);\r\n\t\tif (keys != null) request.putObject(\"keys\", keys);\r\n\t\teventBus.send(address, request, new Handler<Message<JsonObject>>() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(Message<JsonObject> message) {\r\n\t\t\t\tfinal JsonObject body = message.body();\r\n\t\t\t\tresultHandler.handle(new AsyncResult<JsonArray>() {\r\n\t\t\t\t\t\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic boolean succeeded() {\r\n\t\t\t\t\t\treturn \"ok\".equals(body.getString(\"status\"));\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic JsonArray result() {\r\n\t\t\t\t\t\treturn succeeded() ? body.getArray(\"results\") : null;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic boolean failed() {\r\n\t\t\t\t\t\treturn !succeeded();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic Throwable cause() {\r\n\t\t\t\t\t\treturn failed() ? new Throwable(body.getString(\"message\")) : null;\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}", "@Test\r\n\tpublic void searchTest() {\r\n\t\tItem item = new Item();\r\n\t\t// first, search by name\r\n\t\tint k = 0;\r\n\t\ttry {\r\n\t\t\tk = item.searchCount(\"a\", null);\r\n\t\t\tassertNotSame(k, 0);\r\n\t\t} catch (SQLException e) {\r\n\t\t\tfail(\"Failed to execute searchCount by Name: SQLException\");\r\n\t\t}\r\n\t\t\r\n\t\tif (k > Item.ITEMS_PER_PAGE) k = Item.ITEMS_PER_PAGE;\r\n\t\tassertNotSame(k, 0);\r\n\t\t\r\n\t\ttry {\r\n\t\t\tItem tempSet[] = item.search(\"a\", null);\r\n\t\t\tassertSame(tempSet.length, k);\r\n\t\t} catch (SQLException e) {\r\n\t\t\tfail(\"Failed to execute search by name: SQLException\");\r\n\t\t}\r\n\t\t\r\n\t\t// check if search returns actual items\r\n\t\ttry {\r\n\t\t\tItem tempSet[] = item.search(\"a\", null);\r\n\t\t\tfor (int i = 0; i < tempSet.length; i++) {\r\n\t\t\t\tassertNotNull(tempSet[i]);\r\n\t\t\t\tassertNotNull(tempSet[i].getId());\r\n\t\t\t\tassertNotSame(tempSet[i].getId(), 0);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\tfail(\"Failed to load items for search by name: SQLException\");\r\n\t\t}\r\n\t\t\r\n\t\t// then search by type (category)\r\n\t\tk = 0;\r\n\t\ttry {\r\n\t\t\tk = item.searchCount(null, \"a\");\r\n\t\t\tassertNotSame(k, 0);\r\n\t\t} catch (SQLException e) {\r\n\t\t\tfail(\"Failed to execute searchCount by Type: SQLException\");\r\n\t\t}\r\n\t\t\r\n\t\tif (k > Item.ITEMS_PER_PAGE) k = Item.ITEMS_PER_PAGE;\r\n\t\tassertNotSame(k, 0);\r\n\t\t\r\n\t\ttry {\r\n\t\t\tItem tempSet[] = item.search(null, \"a\");\r\n\t\t\tassertSame(tempSet.length, k);\r\n\t\t} catch (SQLException e) {\r\n\t\t\tfail(\"Failed to execute search by type: SQLException\");\r\n\t\t}\r\n\t\t\r\n\t\t// now search by store name\r\n\t\tk = 0;\r\n\t\ttry {\r\n\t\t\tk = item.searchCountS(\"a\");\r\n\t\t\tassertNotSame(k, 0);\r\n\t\t} catch (SQLException e) {\r\n\t\t\tfail(\"Failed to execute searchCount by Store Name: SQLException\");\r\n\t\t}\r\n\t\t\r\n\t\tif (k > Item.ITEMS_PER_PAGE) k = Item.ITEMS_PER_PAGE;\r\n\t\tassertNotSame(k, 0);\r\n\t\t\r\n\t\ttry {\r\n\t\t\tItem tempSet[] = item.searchS(\"a\", 0);\r\n\t\t\tassertSame(tempSet.length, k);\r\n\t\t} catch (SQLException e) {\r\n\t\t\tfail(\"Failed to execute search by Store Name: SQLException\");\r\n\t\t}\r\n\t}", "public static com.sybase.collections.GenericList<ru.terralink.mvideo.sap.Orders> findByIV_FU_TOR_ID(java.lang.String IV_FU_TOR_ID, int skip, int take)\n {\n String intervalName = null;\n if(com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.isEnabled)\n {\n intervalName = \"Orders.findByIV_FU_TOR_ID\";\n com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.getInstance().startInterval(intervalName, com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.PersistenceRead);\n }\n try\n {\n \n \n String _selectSQL = \" x.\\\"a\\\",x.\\\"b\\\",x.\\\"c\\\",x.\\\"d\\\",x.\\\"e\\\",x.\\\"f\\\",x.\\\"g\\\",x.\\\"h\\\",x.\\\"i\\\",x.\\\"j\\\",x.\\\"l\\\",x.\\\"m\\\",x.\\\"n\\\",x.\\\"o\\\",x.\\\"p\\\",x.\\\"q\\\",x.\\\"r\\\",x.\\\"s\\\",x.\\\"t\\\",x.\\\"u\\\",x.\\\"v\\\",x.\\\"w\\\",x.\\\"x\\\",x.\\\"y\\\",x.\\\"z\\\",x.\\\"ba\\\",x.\\\"bb\\\",x.\\\"bc\\\",x.\\\"bd\\\",x.\\\"be\\\",x.\\\"bf\\\",x.\\\"bg\\\",x.\\\"bh\\\",x.\\\"bi\\\",x.\\\"bj\\\",x.\\\"bl\\\",x.\\\"bm\\\",x.\\\"pending\\\",x.\\\"_pc\\\",x.\\\"_rp\\\",x.\\\"_rf\\\"\"\n + \",x.\\\"relationsFK\\\",x.\\\"bn\\\",x.\\\"_rc\\\",x.\\\"_ds\\\",x.\\\"cvpOperation_length\\\",x.\\\"cvpOperationLobs_length\\\" FROM \\\"mvideo5_1_0_orders\\\" x WHERE (((x.\\\"pending\\\" = 1 or not exists (select x_os.\\\"bn\\\" from \\\"mvideo5_1_0_orders_os\\\" x_os where x_os.\\\"bn\\\" = x.\\\"bn\\\")))) and ( x.\\\"bm\\\" = ?)\";\n _selectSQL = \"select \" + _selectSQL;\n String[] ids = new String[0];\n com.sybase.reflection.DataType[] dts = new com.sybase.reflection.DataType[]{ \n com.sybase.reflection.DataType.forName(\"string\"),\n };\n Object[] values = new Object[] { \n IV_FU_TOR_ID,\n };\n com.sybase.collections.GenericList<Object> res = DELEGATE.findWithSQL(_selectSQL, dts, values, ids, skip, take, ru.terralink.mvideo.sap.Orders.class);\n return (com.sybase.collections.GenericList<ru.terralink.mvideo.sap.Orders>)(Object)res;\n }\n finally\n {\n if(com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.isEnabled)\n {\n com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.getInstance().stopInterval(intervalName);\n }\n }\n }", "private void searchBooks(String callNumber, String[] keywords,int startYear, int endYear) {\n\t\t/* Loop to sequentially search master list 'Reference' */\n\t\tfor (int i = 0; i < items.size(); i++)\n\t\t\tif ((callNumber.equals(\"\") || items.get(i).getCallNumber()\n\t\t\t\t\t.equalsIgnoreCase(callNumber))\n\t\t\t\t\t&& (keywords == null || matchedKeywords(keywords, items\n\t\t\t\t\t\t\t.get(i).getTitle()))\n\t\t\t\t\t&& (items.get(i).getYear() >= startYear && items.get(i)\n\t\t\t\t\t\t\t.getYear() <= endYear)) {\n\t\t\t\tReference ref = items.get(i);\n\t\t\t\t/* Checks if reference is of a 'Book' type */\n\t\t\t\tif (ref instanceof Book) {\n\t\t\t\t\tBook book = (Book) ref;\n\t\t\t\t\tSystem.out.println(\"--------------------------------------------\");\n\t\t\t\t\tSystem.out.println(book.toString());\n\t\t\t\t\tSystem.out.println(\"--------------------------------------------\");\n\t\t\t\t}\n\n\t\t\t}\n\t}", "public ArrayList<SearchResult> exactSearch(Collection<String> queries) {\n\t\tArrayList<SearchResult> results = new ArrayList<>();\n\t\tHashMap<String, SearchResult> track = new HashMap<>();\n\n\t\tfor (String query : queries) {\n\t\t\tif (invertedIndex.containsKey(query)) {\n\t\t\t\tsearchHelper(results, query, track);\n\t\t\t}\n\t\t}\n\t\tCollections.sort(results);\n\t\treturn results;\n\t}", "@Test\n public void find() {\n String command = \" \" + FindCommand.COMMAND_WORD + \" n/\" + KEYWORD_MATCHING_STATIONARY + \" \";\n Model expectedModel = getModel();\n assertCommandSuccess(command, expectedModel, 1);\n assertSelectedCardUnchanged();\n\n /* Case: repeat previous find command where expense list is displaying the expense we are finding\n * -> 1 expense found\n */\n command = FindCommand.COMMAND_WORD + \" t/\" + KEYWORD_MATCHING_DINNER;\n assertCommandSuccess(command, expectedModel, 1);\n assertSelectedCardUnchanged();\n\n /* Case: repeat previous find command where expense list is displaying the expense we are finding\n * -> 0 expense found\n */\n command = FindCommand.COMMAND_WORD + \" d/\" + \"7/4/2019\";\n assertCommandSuccess(command, expectedModel, 0);\n assertSelectedCardUnchanged();\n\n /* Case: repeat previous find command where expense list is displaying the expense we are finding\n * -> 0 expense found\n */\n command = FindCommand.COMMAND_WORD + \" d/\"\n + KEYWORD_MATCHING_START_DATE + \":\" + \"26/04/2019\";\n assertCommandSuccess(command, expectedModel, 0);\n assertSelectedCardUnchanged();\n\n /* Case: find expense where expense list is not displaying the expense we are finding -> 0 expense found */\n command = FindCommand.COMMAND_WORD + \" n/\" + \"Invalid name\";\n assertCommandSuccess(command, expectedModel, 0);\n assertSelectedCardUnchanged();\n // /* Case: find multiple persons in address book, 2 keywords -> 2 persons found */\n // command = FindCommand.COMMAND_WORD + \" Benson Daniel\";\n // ModelHelper.setFilteredList(expectedModel, BENSON, DANIEL);\n // assertCommandSuccess(command, expectedModel);\n // assertSelectedCardUnchanged();\n //\n // /* Case: find multiple persons in address book, 2 keywords in reversed order -> 2 persons found */\n // command = FindCommand.COMMAND_WORD + \" Daniel Benson\";\n // assertCommandSuccess(command, expectedModel);\n // assertSelectedCardUnchanged();\n //\n // /* Case: find multiple persons in address book, 2 keywords with 1 repeat -> 2 persons found */\n // command = FindCommand.COMMAND_WORD + \" Daniel Benson Daniel\";\n // assertCommandSuccess(command, expectedModel);\n // assertSelectedCardUnchanged();\n //\n // /* Case: find multiple persons in address book, 2 matching keywords and 1 non-matching keyword\n // * -> 2 persons found\n // */\n // command = FindCommand.COMMAND_WORD + \" Daniel Benson NonMatchingKeyWord\";\n // assertCommandSuccess(command, expectedModel);\n // assertSelectedCardUnchanged();\n //\n // /* Case: undo previous find command -> rejected */\n // command = UndoCommand.COMMAND_WORD;\n // String expectedResultMessage = UndoCommand.MESSAGE_FAILURE;\n // assertCommandFailure(command, expectedResultMessage);\n //\n // /* Case: redo previous find command -> rejected */\n // command = RedoCommand.COMMAND_WORD;\n // expectedResultMessage = RedoCommand.MESSAGE_FAILURE;\n // assertCommandFailure(command, expectedResultMessage);\n //\n // /* Case: find same persons in address book after deleting 1 of them -> 1 person found */\n // executeCommand(DeleteCommand.COMMAND_WORD + \" 1\");\n // assertFalse(getModel().getEPiggy().getPersonList().contains(BENSON));\n // command = FindCommand.COMMAND_WORD + \" \" + KEYWORD_MATCHING_MEIER;\n // expectedModel = getModel();\n // ModelHelper.setFilteredList(expectedModel, DANIEL);\n // assertCommandSuccess(command, expectedModel);\n // assertSelectedCardUnchanged();\n //\n /* Case: find person in address book, keyword is same as name but of different case -> 1 person found */\n // command = FindCommand.COMMAND_WORD + \" MeIeR\";\n // assertCommandSuccess(command, expectedModel);\n // assertSelectedCardUnchanged();\n //\n // /* Case: find person in address book, keyword is substring of name -> 0 persons found */\n // command = FindCommand.COMMAND_WORD + \" Mei\";\n // ModelHelper.setFilteredList(expectedModel);\n // assertCommandSuccess(command, expectedModel);\n // assertSelectedCardUnchanged();\n //\n // /* Case: find person in address book, name is substring of keyword -> 0 persons found */\n // command = FindCommand.COMMAND_WORD + \" Meiers\";\n // ModelHelper.setFilteredList(expectedModel);\n // assertCommandSuccess(command, expectedModel);\n // assertSelectedCardUnchanged();\n //\n // /* Case: find person not in address book -> 0 persons found */\n // command = FindCommand.COMMAND_WORD + \" Mark\";\n // assertCommandSuccess(command, expectedModel);\n // assertSelectedCardUnchanged();\n //\n // /* Case: find phone number of person in address book -> 0 persons found */\n // command = FindCommand.COMMAND_WORD + \" \" + DANIEL.getPhone().value;\n // assertCommandSuccess(command, expectedModel);\n // assertSelectedCardUnchanged();\n //\n // /* Case: find address of person in address book -> 0 persons found */\n // command = FindCommand.COMMAND_WORD + \" \" + DANIEL.getAddress().value;\n // assertCommandSuccess(command, expectedModel);\n // assertSelectedCardUnchanged();\n //\n // /* Case: find email of person in address book -> 0 persons found */\n // command = FindCommand.COMMAND_WORD + \" \" + DANIEL.getEmail().value;\n // assertCommandSuccess(command, expectedModel);\n // assertSelectedCardUnchanged();\n //\n // /* Case: find tags of person in address book -> 0 persons found */\n // List<Tag> tags = new ArrayList<>(DANIEL.getTags());\n // command = FindCommand.COMMAND_WORD + \" \" + tags.get(0).tagName;\n // assertCommandSuccess(command, expectedModel);\n // assertSelectedCardUnchanged();\n //\n // /* Case: find while a person is selected -> selected card deselected */\n // showAllPersons();\n // //selectPerson(Index.fromOneBased(1));\n //assertFalse(getPersonListPanel().getHandleToSelectedCard().getName().equals(DANIEL.getName().fullName));\n // command = FindCommand.COMMAND_WORD + \" Daniel\";\n // ModelHelper.setFilteredList(expectedModel, DANIEL);\n // assertCommandSuccess(command, expectedModel);\n // assertSelectedCardDeselected();\n //\n // /* Case: find person in empty address book -> 0 persons found */\n // deleteAllPersons();\n // command = FindCommand.COMMAND_WORD + \" \" + KEYWORD_MATCHING_MEIER;\n // expectedModel = getModel();\n // ModelHelper.setFilteredList(expectedModel, DANIEL);\n // assertCommandSuccess(command, expectedModel);\n // assertSelectedCardUnchanged();\n\n /* Case: mixed case command word -> rejected */\n // command = \"FiNd Meier\";\n // assertCommandFailure(command, FindCommand.MESSAGE_USAGE);\n\n }", "private boolean testExactMatch(final String[] record,\n\t final String[] criteria) {\n\tfor (int i = 0; i < criteria.length; ++i) {\n\t if (criteria[i] != null\n\t\t && (record.length <= i || record[i] == null || record[i]\n\t\t\t .equals(criteria[i]) == false)) {\n\t\treturn false;\n\t }\n\t}\n\treturn true;\n }", "@Override\r\n\tpublic Pagination<FyTestRecord> getDetailPage(Integer pageNo, Integer pageSize, FyTestRecord search,FyTestVersion version,Long[] ids,String sort) {\n\t\tFinder finder = Finder.create(\" from FyTestRecord bean where 1=1\");\r\n\r\n\t\tif (version != null && version.getTitle() != null) {\r\n\t\t\tfinder.append(\" and bean.version.title like:title\");\r\n\t\t\tfinder.setParam(\"title\", \"%\" + version.getTitle() + \"%\");\r\n\t\t}\r\n\t\tif (version != null && version.getCode() != null) {\r\n\t\t\tfinder.append(\" and bean.version.code=:code\");\r\n\t\t\tfinder.setParam(\"code\", version.getCode());\r\n\t\t}\r\n\t\tif (version != null && version.getTeaId() != null) {\r\n\t\t\tfinder.append(\" and bean.version.teaId=:teaId\");\r\n\t\t\tfinder.setParam(\"teaId\", version.getTeaId());\r\n\t\t}\r\n\t\tif (search != null && search.getUserId() != null) {\r\n\t\t\tfinder.append(\" and bean.userId=:userId\");\r\n\t\t\tfinder.setParam(\"userId\", search.getUserId());\r\n\t\t}\r\n\t\tif (search != null && search.getStatus()!= null) {\r\n\t\t\tfinder.append(\" and bean.status=:status\");\r\n\t\t\tfinder.setParam(\"status\", search.getStatus());\r\n\t\t}\r\n\t\tif(ids!=null) {\r\n\t\t\tfinder.append(\" and bean.userId in:ids\");\r\n\t\t\tfinder.setParamList(\"ids\", ids);\r\n\t\t}\r\n\t\tfinder.append(\" order by bean.goal \"+sort);\r\n\r\n\t\treturn testRecordDao.findPageByFinder(finder, pageNo, pageSize);\r\n\t}", "@Test\n public void Given_store_with_books_When_filtering_by_existing_author_Then_only_books_of_the_author_are_returned() {\n booksList.add(B1_A);\n booksList.add(B2_A);\n booksList.add(B3_B);\n\n when(dao.getBooks()).thenReturn(booksList);\n\n List<Book> booksFilteredByAuthor = store.getBooksByAuthor(B1_A.getAuthor());\n\n assertThat(booksFilteredByAuthor).containsExactlyInAnyOrder(B1_A, B2_A);\n }", "@Test\n public void testSearchNastyCases() {\n RpkiObjectCoder coder = new RpkiObjectCoder();\n AtomicInteger brokenCounter = new AtomicInteger(0);\n lmdb.readTx0(tx -> {\n lmdbRpkiObject.forEach(tx, (k, bb) -> {\n byte[] bytes = Bytes.toBytes(bb);\n try {\n RpkiObject rpkiObject = coder.fromBytes(bytes);\n assertEquals(rpkiObject.key(), k);\n assertArrayEquals(Sha256.hash(rpkiObject.getEncoded()), rpkiObject.getSha256());\n } catch (Exception e) {\n brokenCounter.incrementAndGet();\n e.printStackTrace();\n }\n });\n });\n assertEquals(0, brokenCounter.get());\n }", "public void testFindAccountList(){\n\t\tString begin = \"2013-01-01\" ;\n\t\tString end = \"2014-01-01\" ;\n\t\tAccount account = new Account() ;\n\t\tList<Account> list = this.bean.findAccountList(begin, end, account) ;\n\t\tAssert.assertTrue(list.size()>2) ;\n\t}", "private Map<Long, List<LikeDetail>> internalFindByJournalIds(Collection<Long> journalIds) {\n return withSelectFromTable(\"WHERE JOURNAL_ID IN (:journalIds) AND CREATE_DATETIME>=:start\")\n .useParams(MiscUtils.m(\"journalIds\", journalIds, \"start\", ZoneConstants.getClazzJournalStartDate()))\n .queryAll()\n .stream()\n .collect(Collectors.groupingBy(LikeDetail::getJournalId));\n }", "List<Card> search(String searchString) throws PersistenceCoreException;", "@Test\n public void testGetProductsByPurcher() throws Exception {\n System.out.println(\"getProductsByPurcher\");\n Customer c = new Customer();\n c.setId(1l);\n prs = dao.getProductsByPurcher(c);\n assertTrue(prs.contains(p3));\n assertTrue(prs.size() == 1);\n c.setId(2l);\n prs = dao.getProductsByPurcher(c);\n assertTrue(prs.contains(p1));\n assertTrue(prs.size() == 1);\n \n c.setId(3l);\n prs = dao.getProductsByPurcher(c);\n assertTrue(prs.isEmpty());\n }", "public static List<NoteInfo> searchNote(ArrayList<Long> keywordIdList) {\n ArrayList<Long> finalIdList = new ArrayList<Long>();\n String email = Secured.getUser(ctx());\n System.out.println(\"LOgged in user in searchNote--\" + email);\n List<NoteEntry> entryIdList = NoteEntry.find()\n .select(\"entryId\")\n .where()\n .eq(\"email\", email)\n .in(\"entryId\", keywordIdList)\n .findList();\n for (NoteEntry entry : entryIdList) {\n finalIdList.add(entry.getEntryId());\n }\n System.out.println(\"finalIdList---\" + finalIdList);\n List<NoteInfo> noteList = NoteInfo.find().select(\"note\").where().in(\"noteEntryId\", finalIdList).findList();\n return noteList;\n }" ]
[ "0.6049795", "0.5703056", "0.5511172", "0.54346114", "0.5367334", "0.5364375", "0.53181803", "0.53176296", "0.53143424", "0.5299773", "0.52994573", "0.52787954", "0.52698535", "0.5238799", "0.521984", "0.5217751", "0.5216331", "0.5204085", "0.5199522", "0.51956904", "0.5193502", "0.5189767", "0.518404", "0.5171067", "0.5150533", "0.51171935", "0.5097536", "0.5090834", "0.5078763", "0.5077386", "0.507347", "0.506305", "0.50404793", "0.502567", "0.50043696", "0.49958596", "0.49876446", "0.49853387", "0.49734977", "0.49723524", "0.4967178", "0.496173", "0.49544263", "0.49414653", "0.49400717", "0.49344075", "0.4929826", "0.49290812", "0.49163502", "0.49134332", "0.48874766", "0.4881995", "0.48762023", "0.48706406", "0.4863683", "0.48546982", "0.48535758", "0.4847565", "0.4847048", "0.48326895", "0.48286653", "0.48284554", "0.48283637", "0.4824169", "0.4822862", "0.48217797", "0.48186615", "0.4817608", "0.48155147", "0.48119992", "0.4809938", "0.4807657", "0.48051816", "0.47986388", "0.47980332", "0.47928208", "0.47844827", "0.4779464", "0.47794423", "0.4773751", "0.4771361", "0.47636795", "0.4760033", "0.47571012", "0.47565228", "0.4749042", "0.4748945", "0.4737332", "0.47352663", "0.47340015", "0.47329113", "0.4731893", "0.47243726", "0.4717466", "0.47172028", "0.4711234", "0.470841", "0.4706607", "0.4704933", "0.47040945" ]
0.56293315
2
Create searchers for the given indexes. The searchers will have the names "searcher_", where goes from 0 to locations.size()1.
public static List<SummaSearcher> createSearchers(File termStatLocation, List<File> locations) throws Exception { List<SummaSearcher> searchers = new ArrayList<>(locations.size()); Configuration conf = Configuration.load("integration/distribution/search_configuration.xml"); // TODO: Check if this unit test makes sense after upgrade to Lucene trunk in 2012 /* if (termStatLocation != null) { conf.getSubConfiguration( LuceneSearchNode.CONF_TERMSTAT_CONFIGURATION).set( IndexWatcher.CONF_INDEX_WATCHER_INDEX_ROOT, termStatLocation.getAbsolutePath()); } */ int id = 0; for (File location : locations) { conf.set(IndexWatcher.CONF_INDEX_WATCHER_INDEX_ROOT, location); conf.set(RMISearcherProxy.CONF_BACKEND, SummaSearcherImpl.class.getCanonicalName()); conf.set(RMISearcherProxy.CONF_SERVICE_NAME, "searcher_" + id); id++; searchers.add(new RMISearcherProxy(conf)); } return searchers; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void buildSearcher() throws IOException {\n IndexReader rdr = DirectoryReader.open(FSDirectory.open(new File(indexDir).toPath()));\n searcher = new IndexSearcher(rdr);\n parser = new QueryParser(\"text\", new StandardAnalyzer());\n }", "public static SolrIndexer indexerFromProperties(Properties indexingProperties, String searchPath[])\n {\n SolrIndexer indexer = new SolrIndexer();\n indexer.propertyFilePaths = searchPath;\n indexer.fillMapFromProperties(indexingProperties);\n\n return indexer;\n }", "private void createSampleSearch() {\n String userNameToFind = \"mweston\";\n CustomUser user = userService.findByUserName(userNameToFind);\n List<Search> searches = user.getSearches();\n long mwestonUserId = user.getId();\n\n /**\n * The below check is done because when using a Postgres database I will not be using the\n * create-drop but instead validate so I do not want to make too many sample API requests\n * (such as every time I start up this application).\n */\n if(searches.size() > 0) {\n return ;\n }\n\n Search search = searchService.createSearch(SpringJPABootstrap.SAMPLE_ADDRESS);\n searchService.saveSearch(search, mwestonUserId);\n\n Search secondSearch = searchService.createSearch(SpringJPABootstrap.SAMPLE_ADDRESS_TWO);\n searchService.saveSearch(secondSearch, mwestonUserId);\n\n searchService.createSearch(SpringJPABootstrap.STONERIDGE_MALL_RD_SAMPLE_ADDRESS);\n\n search = searchService.createSearch(SpringJPABootstrap.SAMPLE_ADDRESS);\n searchService.saveSearch(search, mwestonUserId);\n\n search = searchService.createSearch(SpringJPABootstrap.SAMPLE_ADDRESS);\n searchService.saveSearch(search, mwestonUserId);\n\n search = searchService.createSearch(SpringJPABootstrap.SAMPLE_ADDRESS);\n searchService.saveSearch(search, mwestonUserId);\n\n search = searchService.createSearch(SpringJPABootstrap.SAMPLE_ADDRESS);\n searchService.saveSearch(search, mwestonUserId);\n }", "public void search(Indexer indexer, CityIndexer cityIndexer, Ranker ranker, String query, boolean withSemantic, ArrayList<String> chosenCities, ObservableList<String> citiesByTag, boolean withStemming, String saveInPath, String queryId, String queryDescription) {\n String[] originalQueryTerms = query.split(\" \");\n String originQuery = query;\n docsResults = new HashMap<>();\n parser = new Parse(withStemming, saveInPath, saveInPath);\n HashSet<String> docsOfChosenCities = new HashSet<>();\n query = \"\" + query + queryDescription;\n HashMap<String, Integer> queryTerms = parser.parseQuery(query);\n HashMap<String, ArrayList<Integer>> dictionary = indexer.getDictionary();\n if (!withStemming){\n setDocsInfo(saveInPath + \"\\\\docsInformation.txt\");\n }\n else{\n setDocsInfo(saveInPath + \"\\\\docsInformation_stemming.txt\");\n }\n\n\n //add semantic words of each term in query to 'queryTerms'\n if(withSemantic) {\n HashMap<String,ArrayList<String>> semanticWords = ws.connectToApi(originQuery);\n }\n\n //give an ID to query if it's a regular query (not queries file)\n if(queryId.equals(\"\")){\n queryId = \"\" + Searcher.queryID;\n Searcher.queryID++;\n }\n\n String postingDir;\n if (!withStemming) {\n postingDir = \"\\\\indexResults\\\\postingFiles\";\n } else {\n postingDir = \"\\\\indexResults\\\\postingFiles_Stemming\";\n }\n int pointer = 0;\n\n //find docs that contain the terms in the query in their text\n HashMap<String, Integer> queryTermsIgnoreCase = new HashMap<>();\n for (String term : queryTerms.keySet()) {\n String originTerm = term;\n if (!dictionary.containsKey(term.toUpperCase()) && !dictionary.containsKey(term.toLowerCase())) {\n continue;\n }\n if(dictionary.containsKey(term.toLowerCase())){\n term = term.toLowerCase();\n }\n else {\n term = term.toUpperCase();\n }\n queryTermsIgnoreCase.put(term,queryTerms.get(originTerm));\n pointer = dictionary.get(term).get(2);\n String chunk = (\"\" + term.charAt(0)).toUpperCase();\n\n //get the relevant line from posting file\n BufferedReader br = null;\n try {\n br = new BufferedReader(new FileReader(new File(saveInPath + postingDir + \"\\\\posting_\" + chunk + \".txt\")));\n String line = \"\";\n int i = 1;\n while ((line = (br.readLine())) != null) {\n if (i == pointer) {\n break;\n }\n i++;\n }\n br.close();\n\n //get docs from posting line and add them to the data structure 'docsResults'\n if(line != null) {\n findDocsFromLine(line, term);\n }\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n //find docs that contain the chosen cities in their text\n for (String cityTerm : chosenCities) {\n if (!dictionary.containsKey(cityTerm) && !dictionary.containsKey(cityTerm.toLowerCase())) {\n continue;\n }\n if(dictionary.containsKey(cityTerm.toLowerCase())){\n cityTerm = cityTerm.toLowerCase();\n }\n pointer = dictionary.get(cityTerm).get(2);\n // char chunk = indexer.classifyToPosting(term).charAt(0);\n String chunk = (\"\" + cityTerm.charAt(0)).toUpperCase();\n\n //get the relevant line from posting file\n BufferedReader br = null;\n try {\n br = new BufferedReader(new FileReader(new File(saveInPath + postingDir + \"\\\\posting_\" + chunk + \".txt\")));\n String line = \"\";\n int i = 1;\n while ((line = (br.readLine())) != null) {\n if (i == pointer) {\n break;\n }\n i++;\n }\n br.close();\n\n //get docs from posting line and add them to the data structure 'docsOfChosenCities'\n String docs = line.substring(0, line.indexOf(\"[\") - 1); //get 'docsListStr'\n String[] docsArr = docs.split(\";\");\n for (String docInfo : docsArr) {\n String doc = docInfo.substring(0, docInfo.indexOf(\": \"));\n while(doc.charAt(0) == ' '){\n doc = doc.substring(1);\n }\n docsOfChosenCities.add(doc);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n //find docs that contain the chosen cities in their city tag\n if(!chosenCities.isEmpty()){\n for (String cityDicRec: chosenCities) {\n //get pointer to posting from cityDictionary\n try {\n pointer = cityIndexer.getCitiesDictionary().get(cityDicRec);\n } catch (NumberFormatException e) {\n e.printStackTrace();\n }\n //get the relevant line from posting file\n BufferedReader br = null;\n try {\n br = new BufferedReader(new FileReader(new File(saveInPath + \"\\\\cityIndexResults\" + \"\\\\posting_city\" + \".txt\")));\n String line = \"\";\n int i = 1;\n while ((line = (br.readLine())) != null) {\n if (i == pointer) {\n break;\n }\n i++;\n }\n br.close();\n\n //get docs from posting line and add them to the data structure 'docsOfChosenCities'\n String docs = line.substring(line.indexOf(\"[\") + 1, line.indexOf(\"]\")); //get 'docsListStr'\n String[] docsArr = docs.split(\"; \");\n for (String doc : docsArr) {\n docsOfChosenCities.add(doc);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n\n\n ranker.rank(docsResults, docsOfChosenCities, queryTermsIgnoreCase, dictionary, docsInfo,entities, queryId);\n }", "public MagicSearch createMagicSearch();", "TSearchResults createSearchResults(TSearchQuery searchQuery);", "public abstract Search create(String search, SearchBuilder builder);", "public TokenLocationSearchAnalyzer() {\n foundLocations = new LinkedHashMap<String, List<Integer>>();\n currentTokenLocation = -1;\n }", "private Indexers()\r\n {\r\n // Private constructor to prevent instantiation\r\n }", "public TokenLocationSearchAnalyzer(Properties properties) {\n this();\n this.properties = properties;\n readInSearchTokens();\n }", "protected IndexSearcher getIndexSearcher(IndexReader reader) {\n return new IndexSearcher(reader);\n }", "private void configuration() throws IOException {\n IndexReader reader = DirectoryReader.open(FSDirectory.open(new File(\n luceneIndexDir)));\n\n analyzer = new SimpleAnalyzer(Version.LUCENE_47);\n searcher = new IndexSearcher(reader);\n\n // Creates the directory for Storing the search results.\n File file = new File(SEARCH_RESULT_DIR);\n file.mkdir();\n\n }", "public static void main(String[] args) throws IOException{\n \n List<List<String>> results;\n String query = \"ADD QUERY OR CATEGORY FOR SEARCH\";\n \n //ADD USER ID WHO SEARCHES\n Long userId = 1;\n PersonalizedSearch searchObj = new PersonalizedSearch();\n \n final CredentialsProvider credsProvider = new BasicCredentialsProvider();\n credsProvider.setCredentials(AuthScope.ANY, new UsernamePasswordCredentials(\"elastic\",\"elastic\"));\n \n \n RestHighLevelClient client = new RestHighLevelClient(\n RestClient.builder(\n new HttpHost(\"localhost\",9200),\n new HttpHost(\"localhost\",9201))\n .setHttpClientConfigCallback(new RestClientBuilder.HttpClientConfigCallback() {\n @Override\n public HttpAsyncClientBuilder customizeHttpClient(HttpAsyncClientBuilder hacb) {\n return hacb.setDefaultCredentialsProvider(credsProvider);\n }\n }));\n \n /**\n * ---------COMMENT OUT ONE OF THE FOLLOWING TO DO A PERSONALIZED SEARCH FOR A SIGNED IN OR/AND AN ANONYMOUS USER--------\n */\n\n System.out.println(\"Starting collecting queryless/queryfull submissions...\");\n System.out.println(\"\");\n// searchObj.performQuerylessSearchWithPersonalization(client);\n// searchObj.performQueryfullSearchWithPersonalization(client);\n// results = searchObj.performPharm24PersonalizedQueryfullSearch(client, userId, query);\n// results = searchObj.performPharm24PersonalizedQuerylessSearch(client, userId, query);\n \n for(int i=0; i<results.size(); i++){\n for(int j = 0; j<results.get(i).size();j++){\n System.out.println(results.get(i).get(j));\n }\n System.out.println(\"-------RERANKED---------\");\n }\n\n System.out.println(\"\");\n System.out.println(\"I\\'m done!\");\n \n \n }", "private DocFile[] search (String[] queries, String[] filters, BooleanClause.Occur filterOccur) throws ParseException {\n // create a master query builder\n BooleanQuery.Builder masterQueryBuilder = new BooleanQuery.Builder();\n // loop through all queries\n for (String query : queries) {\n if (query.equals(\"\")) continue;\n // create a boolean query for the each query\n BooleanQuery.Builder queryBuilder = new BooleanQuery.Builder();\n // loop through all filters\n for (String filter : filters) {\n if (filter.equals(\"\")) continue;\n QueryParser parser = new QueryParser(filter, analyzer);\n parser.setAllowLeadingWildcard(true);\n if (!filter.equals(Constants.INDEX_KEY_OWNER)) {\n Query parsedQ = parser.parse(query);\n queryBuilder.add(parsedQ, filterOccur);\n }\n else {\n queryBuilder.add(new PhraseQuery(filter, queries), filterOccur);\n }\n }\n masterQueryBuilder.add(queryBuilder.build(), BooleanClause.Occur.SHOULD);\n }\n\n // build the masterQuery\n BooleanQuery masterQuery = masterQueryBuilder.build();\n\n return searchResponse(searchExec(masterQuery), masterQuery);\n }", "@Parameterized.Parameters\n public static Collection indexManagerSuppliers() {\n return Arrays.<Supplier<InvertedIndexManager>>asList(\n () -> InvertedIndexManager.createOrOpen(\n indexDir, new NaiveAnalyzer()\n ),\n () -> InvertedIndexManager.createOrOpenPositional(\n indexDir, new NaiveAnalyzer(), new NaiveCompressor()\n )\n );\n }", "SearchResultsType createSearchResultsType();", "private static Searcher createSearcher(String[] args) {\n if (args.length > 1 && \"duden\".equals(args[1])) {//Use DWDS by default, Duden only on explicit request\n return SearcherFactory.newDuden();\n } else {\n return SearcherFactory.newDwds();\n }\n }", "public void searchIndex(Directory index) throws Exception{\n\t\tString searchString = getSearchString();\n\t\t\n\t\tSystem.out.println(\"Searching for '\" + searchString + \"'\");\n\n\t\tIndexReader indexReader = DirectoryReader.open(index);\n\t\tIndexSearcher indexSearcher = new IndexSearcher(indexReader);\n\n\t\tAnalyzer analyzer = new StandardAnalyzer();\n\t\t\n\t\tString query_string = \"title:\" + searchString + \" OR content:\" + searchString + \"OR important:\" + searchString + \"OR h1:\" + searchString +\n\t\t\t\t\"OR h2:\" + searchString + \"OR h3:\" + searchString + \"OR h4:\" + searchString + \"OR h5:\" + searchString + \"OR h6:\" + searchString;\n\t\tQueryParser queryParser = new QueryParser(\"title\", analyzer);\n\t\t\n\t\tTopDocs docs = indexSearcher.search(queryParser.parse(query_string), 10);\n\t\t\n\t\t\n//\t\tString[] fields = {\"content\", \"title\", \"important\", \"h1\", \"h2\", \"h3\", \"h4\", \"h5\", \"h6\"};\n//\t\tBooleanClause.Occur[] flags = \n//\t\t{\n//\t\t\tBooleanClause.Occur.SHOULD,\n//\t\t\tBooleanClause.Occur.SHOULD,\n//\t\t\tBooleanClause.Occur.SHOULD,\n//\t\t\tBooleanClause.Occur.SHOULD,\n//\t\t\tBooleanClause.Occur.SHOULD,\n//\t\t\tBooleanClause.Occur.SHOULD,\n//\t\t\tBooleanClause.Occur.SHOULD,\n//\t\t\tBooleanClause.Occur.SHOULD,\n//\t\t\tBooleanClause.Occur.SHOULD,\n// };\n//\t\t\n//\t\tTopDocs docs = indexSearcher.search(MultiFieldQueryParser.parse(searchString, fields, flags, analyzer), 10);\n\n\t\tScoreDoc[] hits = docs.scoreDocs;\n\n\t System.out.println(\"Found \" + hits.length + \" hits.\");\n\t for(int i=0;i<hits.length;++i) {\n\t \tint docId = hits[i].doc;\n\t Document d = indexSearcher.doc(docId);\n\t System.out.println((i + 1) + \". \" + d.get(\"title\") + \"\\t\" + d.get(\"url\") + \"\\t\" + hits[i].score);\n\t }\n\t}", "boolean createIndex(String indexName);", "public Indexer() {\n }", "@Override\n\tpublic void build(Index index) {\n\t\tthis.indexdir = index.getPath();\n\t\tLuceneIndex luceneIndex = (LuceneIndex) index;\n\t\tthis.indexSearcher = new IndexSearcher(luceneIndex.getReader());\n\n\t}", "public void addLookupLocators( LookupLocator[] locs ) throws RemoteException {\n\t\tlog.config(\"adding lookup locators\");\n\t\ttry {\n\t\t\tPersistentData data = io.readState();\n\t\t\tdisco.addLocators( locs );\n\t\t\tVector v = mergeArrays( data.locators, locs );\n\t\t\tdata.locators = new LookupLocator[ v.size() ];\n\t\t\tv.copyInto( data.locators );\n\t\t\tio.writeState( data );\n\t\t} catch( ClassNotFoundException ex ) {\n\t\t\tlog.throwing( getClass().getName(), \"addLookupLocators\", ex);\n\t\t\tthrow new RemoteException(ex.toString());\n\t\t} catch( IOException ex ) {\n\t\t\tlog.throwing( getClass().getName(), \"addLookupLocators\", ex);\n\t\t\tthrow new RemoteException(ex.toString());\n\t\t}\n\t}", "private void setSearchItems(Number index) {\n String searchSelected;\n if (index == null) {\n searchSelected = searchSelection.getSelectionModel().getSelectedItem();\n } else {\n searchSelected = menuItems[index.intValue()];\n }\n\n final String searchText = searchField.getText().trim().toUpperCase();\n if (searchText == null || \"\".equals(searchText)) {\n // Search field is blank, remove filters if active\n if (searchFilter != null) {\n filterList.remove(searchFilter);\n searchFilter = null;\n }\n applyFilters();\n return;\n }\n\n boolean matchAny = MATCHANY.equals(searchSelected);\n\n if (searchFilter == null) {\n searchFilter = new CustomerListFilter();\n searchFilter.setOr(true);\n filterList.add(searchFilter);\n } else {\n searchFilter.getFilterList().clear();\n }\n if ((matchAny || SURNAME.equals(searchSelected))) {\n searchFilter.addFilter(a -> {\n String aSurname = a.getSurname().toUpperCase();\n return (aSurname.contains(searchText));\n });\n }\n if ((matchAny || FORENAME.equals(searchSelected))) {\n searchFilter.addFilter(a -> {\n String aForename = a.getForename().toUpperCase();\n return (aForename.contains(searchText));\n });\n }\n if (matchAny || CHILD.equals(searchSelected)) {\n searchFilter.addFilter(a -> {\n String aChildname = a.getChildrenProperty().getValue().toUpperCase();\n return (aChildname.contains(searchText));\n });\n }\n if ((matchAny || CARREG.equals(searchSelected))) {\n searchFilter.addFilter(a -> {\n String aCars = a.getCarRegProperty().getValue().toUpperCase();\n return (aCars.contains(searchText));\n });\n }\n // No filter to apply?\n if (searchFilter.getFilterList().size() == 0) {\n filterList.remove(searchFilter);\n searchFilter = null;\n }\n applyFilters();\n }", "public AbstractSearchEngine() {}", "ImmutableMap<ImmutableList<String>, Set<Location>> index(Set<Location> locations) {\n Map<ImmutableList<String>, Set<Location>> index = new HashMap<>(locations.size());\n for (Location location : locations) {\n for (String name : location.getNames()) {\n ImmutableList<String> tokens = tokenizer.tokenize(name);\n put(index, tokens, location);\n }\n }\n return ImmutableMap.copyOf(index);\n }", "public interface EsSearchDao {\n\n EsQueryResult search(StoreURL storeURL, EsQuery esQuery);\n\n EsQueryResult searchByIds(StoreURL storeURL, EsQuery esQuery);\n\n EsQueryResult searchByFields(StoreURL storeURL, EsQuery esQuery);\n\n List<EsQueryResult> multiSearch(StoreURL storeURL, List<EsQuery> list);\n\n EsQueryResult searchByDSL(StoreURL storeURL, EsQuery esQuery);\n\n Object executeProxy(StoreURL storeURL, EsProxy esProxy);\n}", "private void createSearch(boolean realSearch) {\n\n\t\tString sqlQuery = new String();\n\n\t\tif (useLucene.isSelected()) {\n\n\t\t\tif (datachoose.getSelectedIndex() == data_ABOVE) {\n\t\t\t\t// need to reference the above data.\n\t\t\t\tString usp = (String) winG.getSelectedUser();\n\t\t\t\tString dates[] = winG.getDateRange_toptoolbar();\n\t\t\t\tsqlQuery = \"select distinct mailref,dates from email where sender = '\" + usp + \"' or rcpt = '\" + usp\n\t\t\t\t\t\t+ \"' and dates BETWEEN '\" + dates[winGui.startDate] + \"' AND '\" + dates[winGui.endDate]\n\t\t\t\t\t\t+ \"' \";\n\n\t\t\t} else if (datachoose.getSelectedIndex() == data_ALL) {\n\t\t\t\tsqlQuery = \"select distinct mailref,dates from email where type like 'text%'\";\n\t\t\t} else {\n\t\t\t\t// need to pop up sql\n\t\t\t\tsqlQuery = \"select distinct mailref,dates from email \" + queryText.getText().trim();\n\t\t\t}\n\n\t\t\tString results[][];\n\t\t\t// actual fetch of data\n\t\t\ttry {\n\t\t\t\tsynchronized (DBConnect) {\n\t\t\t\t\tresults = DBConnect.getSQLData(sqlQuery);\n\t\t\t\t}\n\t\t\t} catch (SQLException sqle) {\n\t\t\t\tsqle.printStackTrace();\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (!realSearch) {\n\n\t\t\t\tJOptionPane.showMessageDialog(SearchEMT.this, \"The number of returned mailrefs are: \" + results.length);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tBusyWindow bw = new BusyWindow(\"Search Engine Setup\", \"Running\",true);\n\t\t\tbw.setMax(results.length);\n\t\t\tbw.setVisible(true);\n\t\t\t// need to setup prefetch cache\n\t\t\ttry {\n\t\t\t\tPreparedStatement ps = DBConnect\n\t\t\t\t\t\t.prepareStatementHelper(\"select hash,filename,type,body from message where mailref=?\");\n\n\t\t\t\t// real search need to build index here\n\t\t\t\t// TODO: see about adding path between folder and name\n\t\t\t\tIndexWriter writer = null;\n\t\t\t\t// stopanalyzer\n\t\t\t\t//writer = new IndexWriter(indexfolder + indexName.getText().trim(), new StandardAnalyzer(), true);\n\t\t\t\twriter = new IndexWriter(getIndexFileName(indexName.getText()), analyzer, true);\n\n\t\t\t\tDate start = new Date();\n\t\t\t\tfor (int i = 0; i < results.length; i++) {\n\t\t\t\t\tbw.progress(i);\n\n\t\t\t\t\tps.setString(1, results[i][0]);\n\n\t\t\t\t\tResultSet rs = ps.executeQuery();\n\t\t\t\t\twhile (rs.next()) {\n\t\t\t\t\t\tString type = rs.getString(3).toLowerCase();\n\n\t\t\t\t\t\tif (type.startsWith(\"image\") || type.startsWith(\"video\") || type.startsWith(\"audio\")) {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tString hash = rs.getString(1);\n\t\t\t\t\t\tString name = rs.getString(2);\n\n\t\t\t\t\t\t// make a new, empty document\n\t\t\t\t\t\tDocument doc = new Document();\n\n\t\t\t\t\t\t// Add the path of the file as a field named \"path\". Use\n\t\t\t\t\t\t// a Text field, so\n\t\t\t\t\t\t// that the index stores the path, and so that the path\n\t\t\t\t\t\t// is searchable\n\t\t\t\t\t\tdoc.add(new Field(\"path\", hash,Field.Store.YES, Field.Index.UN_TOKENIZED));\n\t\t\t\t\t\tdoc.add(new Field(\"Date\", results[i][1],Field.Store.YES, Field.Index.UN_TOKENIZED));\n\t\t\t\t\t\tdoc.add(new Field(\"Type\", type,Field.Store.YES, Field.Index.UN_TOKENIZED));\n\t\t\t\t\t\tdoc.add(new Field(\"Name\", name,Field.Store.YES, Field.Index.UN_TOKENIZED));\n\t\t\t\t\t\tdoc.add(new Field(\"Mailref\", new String(results[i][0]),Field.Store.YES, Field.Index.UN_TOKENIZED));\n\t\t\t\t\t\t// Add the last modified date of the file a field named\n\t\t\t\t\t\t// \"modified\". Use a\n\t\t\t\t\t\t// Keyword field, so that it's searchable, but so that\n\t\t\t\t\t\t// no attempt is made\n\t\t\t\t\t\t// to tokenize the field into words.\n\t\t\t\t\t\t// doc.add(Field.Keyword(\"modified\",\n\t\t\t\t\t\t// DateField.timeToString(f.lastModified())));\n\n\t\t\t\t\t\t// Add the contents of the file a field named\n\t\t\t\t\t\t// \"contents\". Use a Text\n\t\t\t\t\t\t// field, specifying a Reader, so that the text of the\n\t\t\t\t\t\t// file is tokenized.\n\t\t\t\t\t\t// ?? why doesn't FileReader work here ??\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tjava.sql.Blob blob = rs.getBlob(4);\n\t\t\t\t\t\t\tint c;\n\t\t\t\t\t\t\tbyte buf[] = new byte[512];//\n\n\t\t\t\t\t\t\tInputStream is = blob.getBinaryStream();\n\t\t\t\t\t\t\tStringBuffer small2 = new StringBuffer(256);\n\t\t\t\t\t\t\twhile ((c = is.read(buf)) != -1) {\n\t\t\t\t\t\t\t\tsmall2.append(new String(buf, 0, c));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tString bodytext = small2.toString();\n\n\t\t\t\t\t\t\tdoc.add(new Field(\"contents\", bodytext,Field.Store.YES, Field.Index.TOKENIZED));\n\n\t\t\t\t\t\t\t// now to insert this doc.\n\t\t\t\t\t\t\twriter.addDocument(doc);\n\t\t\t\t\t\t} catch (IOException ioe) {\n\t\t\t\t\t\t\tioe.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbw.setTitle(\"optimizing\");\n\t\t\t\twriter.optimize();\n\t\t\t\twriter.close();\n\n\t\t\t\tDate end = new Date();\n\n\t\t\t\tSystem.out.print(end.getTime() - start.getTime());\n\t\t\t\tSystem.out.println(\" total milliseconds\");\n\n\t\t\t\tbw.setVisible(false);\n\n\t\t\t} catch (SQLException se) {\n\t\t\t\tse.printStackTrace();\n\t\t\t\treturn;\n\t\t\t} catch (IOException eio) {\n\t\t\t\teio.printStackTrace();\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t} else {\n\t\t\t// we use emt indexing\n\t\t\t// TODO: create code here\n\n\t\t}\n\t}", "@SuppressWarnings(\"unused\")\n public void buildIndex() throws IOException {\n indexWriter = getIndexWriter(indexDir);\n ArrayList <JSONObject> jsonArrayList = parseJSONFiles(JSONdir);\n indexTweets(jsonArrayList, indexWriter);\n indexWriter.close();\n }", "indexSet createindexSet();", "public List<Recipe> search(String[] keywords, boolean searchLocally, boolean searchFromWeb) {\n \t\treturn model.searchRecipe(keywords);\r\n \t}", "public void testCreIdx(){\r\n\t \r\n\t String dataDir = \"C:\\\\study\\\\Lucene\\\\Data\";\r\n\t String idxDir = \"C:\\\\study\\\\Lucene\\\\Index\";\r\n\t \r\n\t LuceneUtils.delAll(idxDir);\r\n\t \r\n\t CreateIndex ci = new CreateIndex();\r\n\t \r\n\t ci.Indexer(new File(idxDir), new File(dataDir));\r\n\t \r\n\t\t\r\n\t}", "@Override\n public void buildIndexes(Properties props)\n {\n Statement statement;\n try\n {\n statement = connection.createStatement();\n \n //Create Indexes\n statement.executeUpdate(\"CREATE INDEX CONFFRIENDSHIP_INVITEEID ON CONFFRIENDSHIP (INVITEEID)\");\n statement.executeUpdate(\"CREATE INDEX CONFFRIENDSHIP_INVITERID ON CONFFRIENDSHIP (INVITERID)\");\n statement.executeUpdate(\"CREATE INDEX PENDFRIENDSHIP_INVITEEID ON PENDFRIENDSHIP (INVITEEID)\");\n statement.executeUpdate(\"CREATE INDEX PENDFRIENDSHIP_INVITERID ON PENDFRIENDSHIP (INVITERID)\");\n statement.executeUpdate(\"CREATE INDEX MANIPULATION_RID ON MANIPULATION (RID)\");\n statement.executeUpdate(\"CREATE INDEX MANIPULATION_CREATORID ON MANIPULATION (CREATORID)\");\n statement.executeUpdate(\"CREATE INDEX RESOURCES_WALLUSERID ON RESOURCES (WALLUSERID)\");\n statement.executeUpdate(\"CREATE INDEX RESOURCE_CREATORID ON RESOURCES (CREATORID)\");\n \n System.out.println(\"Indexes Built\");\n }\n catch (Exception ex)\n {\n Logger.getLogger(WindowsAzureClientInit.class.getName()).log(Level.SEVERE, null, ex);\n System.out.println(\"Error in building indexes!\");\n }\n }", "SearchResultCompany search(String keywords);", "public static void main(String[] args) throws Exception {\n String usage =\n \"Usage:\\tjava org.apache.lucene.demo.SearchFiles [-index dir] [-field f] [-repeat n] [-queries file] [-query string] [-raw] [-paging hitsPerPage]\\n\\nSee http://lucene.apache.org/core/4_1_0/demo/ for details.\";\n if (args.length > 0 && (\"-h\".equals(args[0]) || \"-help\".equals(args[0]))) {\n System.out.println(usage);\n System.exit(0);\n }\n\n String index = \"index\";\n String field = \"contents\";\n String queries = null;\n int repeat = 0;\n boolean raw = false;\n String queryString = null;\n int hitsPerPage = 10;\n String[] fileTypes = null;\n Date fileDate = null;\n Set<String> mFilesSet = new HashSet<>();\n DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\n String fileDateString = null;\n\n for (int i = 0; i < args.length; i++) {\n if (\"-index\".equals(args[i])) {\n index = args[i + 1];\n i++;\n } else if (\"-field\".equals(args[i])) {\n field = args[i + 1];\n i++;\n } else if (\"-queries\".equals(args[i])) {\n queries = args[i + 1];\n i++;\n } else if (\"-query\".equals(args[i])) {\n queryString = args[i + 1];\n i++;\n } else if (\"-repeat\".equals(args[i])) {\n repeat = Integer.parseInt(args[i + 1]);\n i++;\n } else if (\"-raw\".equals(args[i])) {\n raw = true;\n } else if (\"-paging\".equals(args[i])) {\n hitsPerPage = Integer.parseInt(args[i + 1]);\n if (hitsPerPage <= 0) {\n System.err.println(\"There must be at least 1 hit per page.\");\n System.exit(1);\n }\n i++;\n } else if(\"-filter\".equals(args[i])){\n filtering = true;\n }\n }\n\n if(filtering) {\n //read the filters file\n try (\n InputStream fis = new FileInputStream(\"filters.txt\");\n InputStreamReader isr = new InputStreamReader(fis, Charset.defaultCharset());\n BufferedReader br = new BufferedReader(isr);\n ) {\n //read first line which contains the types of the files to be searched\n Stream<String> lines;\n lines = br.lines();\n\n\n for (Iterator<String> i = lines.iterator(); i.hasNext(); ) {\n String line;\n line = i.next();\n if (line.startsWith(\"#\")) { //ignore comments in filters file\n } else if (line.startsWith(\"files: \")) {\n line = line.replaceFirst(\"files: \", \"\");\n fileTypes = line.split(\",\");\n mFilesSet.add(\"pdf\");\n mFilesSet.add(\"txt\");\n mFilesSet.add(\"epub\");\n for (int j = 0; j < fileTypes.length; j++) {\n mFilesSet.remove(fileTypes[j]); //remove from the hashset those file types parsed from the user file\n }\n } else if (line.startsWith(\"date:\")) {\n line = line.replaceFirst(\"date: \", \"\");\n fileDate = dateFormat.parse(line);\n fileDateString = line;\n //System.out.println(fileDateString);\n //System.out.println(\"Date: \" + fileDate.toString());\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n\n IndexReader reader = DirectoryReader.open(FSDirectory.open(Paths.get(index)));\n IndexSearcher searcher = new IndexSearcher(reader);\n Analyzer analyzer = new MyAnalyzer();\n\n BufferedReader in = null;\n\n if (queries != null) {\n in = Files.newBufferedReader(Paths.get(queries), StandardCharsets.UTF_8);\n } else {\n in = new BufferedReader(new InputStreamReader(System.in, StandardCharsets.UTF_8));\n }\n\n QueryParser parser = new QueryParser(field, analyzer);\n BooleanQuery.Builder booleanQueryBuilder = new BooleanQuery.Builder();\n BooleanQuery booleanQuery = booleanQueryBuilder.build();\n while (true) {\n if (queries == null && queryString == null) {// prompt the user\n System.out.println(\"Enter query: \");\n }\n\n String line = queryString != null ? queryString : in.readLine();\n\n if (line == null || line.length() == -1) {\n break;\n }\n\n line = line.trim();\n if (line.length() == 0) {\n break;\n }\n\n Query query;\n\n if(filtering) {\n for (Iterator<String> iterator = mFilesSet.iterator(); iterator.hasNext(); ) {\n String mString = iterator.next();\n Query mQuery = new TermQuery(new Term(\"filetype\", mString));\n booleanQueryBuilder.add(mQuery, BooleanClause.Occur.MUST_NOT);\n }\n query = parser.parse(line);\n\n Date currentDate = new Date();\n BytesRef lowerTerm = new BytesRef(fileDateString);\n BytesRef upperTerm = new BytesRef(dateFormat.format(currentDate));\n //System.out.println(dateFormat.format(currentDate));\n TermRangeQuery dateQuery = TermRangeQuery.newStringRange(\"modified\",fileDateString,dateFormat.format(currentDate),false,false);\n //Query dateQuery = IntPoint.newRangeQuery(\"modified\", ((int) fileDate.getTime()),(int)currentDate.getTime());\n booleanQueryBuilder.add(dateQuery, BooleanClause.Occur.MUST);\n booleanQueryBuilder.add(query, BooleanClause.Occur.MUST);\n //booleanQueryBuilder.add(dateQuery, BooleanClause.Occur.MUST);\n\n booleanQuery = booleanQueryBuilder.build();\n //System.out.println(\"Query: \" + booleanQuery.toString());\n //System.out.println(\"Searching for: \" + query.toString(field));\n }\n else {\n query = parser.parse(line);\n }\n if (repeat > 0) { // repeat & time as benchmark\n Date start = new Date();\n for (int i = 0; i < repeat; i++) {\n searcher.search(query, 100);\n }\n Date end = new Date();\n System.out.println(\"Time: \" + (end.getTime() - start.getTime()) + \"ms\");\n }\n\n if(filtering){\n doPagingSearch(in, searcher, booleanQuery, hitsPerPage, raw, queries == null && queryString == null);\n }\n else {\n doPagingSearch(in, searcher, query, hitsPerPage, raw, queries == null && queryString == null);\n }\n if (queryString != null) {\n break;\n }\n }\n reader.close();\n\n }", "private List<TravelData> searchLocations(String keywords,\n String[] fieldsToSearch,\n String[] fieldsToGet,\n int resultSize) throws Exception {\n SearchResult result = searchingExecutor.search(\n fieldsToGet,\n fieldsToSearch,\n keywords,\n resultSize\n );\n\n // 2. build travel-data list ...\n List<TravelData> travelDataList = new ArrayList<>();\n for(Map<String, String> docMap : result.getDocMapList()) {\n String tmpLocationId = docMap.get(TravelDataIndexField.CONTENT_ID.label());\n if(tmpLocationId == null) continue;\n\n // 2-1. increment impress count !!\n locationStorage.impress(tmpLocationId);\n travelDataList.add(new TravelData(locationStorage.getSnapshot(tmpLocationId), docMap));\n }\n\n // 3. sort by score\n Collections.sort(travelDataList);\n return travelDataList;\n }", "private void ensureIndexes() throws Exception {\n LOGGER.info(\"Ensuring all Indexes are created.\");\n\n QueryResult indexResult = bucket.query(\n Query.simple(select(\"indexes.*\").from(\"system:indexes\").where(i(\"keyspace_id\").eq(s(bucket.name()))))\n );\n\n\n List<String> indexesToCreate = new ArrayList<String>();\n indexesToCreate.addAll(Arrays.asList(\n \"def_sourceairport\", \"def_airportname\", \"def_type\", \"def_faa\", \"def_icao\", \"def_city\"\n ));\n\n boolean hasPrimary = false;\n List<String> foundIndexes = new ArrayList<String>();\n for (QueryRow indexRow : indexResult) {\n String name = indexRow.value().getString(\"name\");\n if (name.equals(\"#primary\")) {\n hasPrimary = true;\n } else {\n foundIndexes.add(name);\n }\n }\n indexesToCreate.removeAll(foundIndexes);\n\n if (!hasPrimary) {\n String query = \"CREATE PRIMARY INDEX def_primary ON `\" + bucket.name() + \"` WITH {\\\"defer_build\\\":true}\";\n LOGGER.info(\"Executing index query: {}\", query);\n QueryResult result = bucket.query(Query.simple(query));\n if (result.finalSuccess()) {\n LOGGER.info(\"Successfully created primary index.\");\n } else {\n LOGGER.warn(\"Could not create primary index: {}\", result.errors());\n }\n }\n\n for (String name : indexesToCreate) {\n String query = \"CREATE INDEX \" + name + \" ON `\" + bucket.name() + \"` (\" + name.replace(\"def_\", \"\") + \") \"\n + \"WITH {\\\"defer_build\\\":true}\\\"\";\n LOGGER.info(\"Executing index query: {}\", query);\n QueryResult result = bucket.query(Query.simple(query));\n if (result.finalSuccess()) {\n LOGGER.info(\"Successfully created index with name {}.\", name);\n } else {\n LOGGER.warn(\"Could not create index {}: {}\", name, result.errors());\n }\n }\n\n LOGGER.info(\"Waiting 5 seconds before building the indexes.\");\n\n Thread.sleep(5000);\n\n StringBuilder indexes = new StringBuilder();\n boolean first = true;\n for (String name : indexesToCreate) {\n if (first) {\n first = false;\n } else {\n indexes.append(\",\");\n }\n indexes.append(name);\n }\n\n if (!hasPrimary) {\n indexes.append(\",\").append(\"def_primary\");\n }\n\n String query = \"BUILD INDEX ON `\" + bucket.name() + \"` (\" + indexes.toString() + \")\";\n LOGGER.info(\"Executing index query: {}\", query);\n QueryResult result = bucket.query(Query.simple(query));\n if (result.finalSuccess()) {\n LOGGER.info(\"Successfully executed build index query.\");\n } else {\n LOGGER.warn(\"Could not execute build index query {}.\", result.errors());\n }\n }", "public void search(final FullTextSearch searcher, final ModelElementBox station, final String typeName) {\r\n\t\tfor (Map.Entry<String,Map<String,Object>> entry1: data.entrySet()) {\r\n\t\t\tfinal String clientType1=entry1.getKey();\r\n\t\t\tfor (Map.Entry<String,Object> entry2: entry1.getValue().entrySet()) {\r\n\t\t\t\tfinal String clientType2=entry2.getKey();\r\n\t\t\t\tfinal Object value=entry2.getValue();\r\n\t\t\t\tif (value instanceof String) {\r\n\t\t\t\t\tsearcher.testString(station,String.format(Language.tr(\"Editor.DialogBase.Search.ClientTypeClientTypeExpression\"),clientType1,clientType2),(String)value,newValue->data.get(clientType1).put(clientType2,newValue));\r\n\t\t\t\t}\r\n\t\t\t\tif (value instanceof AbstractRealDistribution) {\r\n\t\t\t\t\tsearcher.testDistribution(station,String.format(Language.tr(\"Editor.DialogBase.Search.ClientTypeClientTypeDistribution\"),clientType1,clientType2),(AbstractRealDistribution)value);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void getLocations(SearchNear near, GeoLocation loc)\n throws Exception\n {\n SearchedLocations locs = new SearchedLocations();\n if (loc != null)\n locs.addGeoLocation(loc);\n }", "private void termQuerySearch(String[] terms) {\n for (String term : terms) {\n LinkedList<TermPositions> postingLists = indexMap.get(analyzeTerm(term));\n if (postingLists != null) {\n for (TermPositions matches : postingLists) {\n double score = (double) 1 + Math.log((double) matches.getPositionList().size()) *\n Math.log((double) N / (double) postingLists.size());\n resultsCollector.add(new DocCollector(matches.getDocId(), score));\n }\n }\n }\n }", "private SearchServiceFactory() {}", "public SearchIterator(Search... searches)\n\t\t{\n\t\t\ttheSearches = searches;\n\t\t}", "private void startSearch() {\n for (int i = 0; i < this.threadsSaerch.length; i++) {\n this.threadsSaerch[i] = this.threads.getSearchThread();\n this.threadsSaerch[i].start();\n }\n }", "private List<ItemSearchEntity> createItemSearchIndex(@Nonnull final ItemEntity item) {\n String[] nameParts = determineItemNameParts(item);\n List<ItemSearchEntity> itemSearch = new ArrayList<>(nameParts.length);\n for (final String part : nameParts) {\n itemSearch.add(new ItemSearchEntity(item.getItemId(), part));\n }\n return itemSearch;\n }", "public SearchDocuments(String indexPath) throws IOException{\r\n this.setIndexPath(indexPath); \r\n \r\n //TO DO : add config.properties file\r\n //read configuration file and update static variables adequately\r\n// readConf();\r\n\r\n // Supported index Fields and their pubmed counterpart (\"Title\",\"ArticleTitle\") \r\n supportedIndexFields.put(\"Title\", \"ArticleTitle\");\r\n supportedIndexFields.put(\"TI\", \"ArticleTitle\");\r\n supportedIndexFields.put(\"Abstract\", \"AbstractText\");\r\n supportedIndexFields.put(\"AB\", \"AbstractText\");\r\n supportedIndexFields.put(\"PMID\", \"PMID\");\r\n supportedIndexFields.put(\"UID\", \"PMID\");\r\n //TO DO : add all supported index fields\r\n //TO DO : special words (i.e. nothascommenton etc) \r\n \r\n // Lucene objects\r\n \r\n /* Sorting */\r\n // Fields used for reverse chronological sorting of results\r\n // This Fields are indexed with no tokenization (for each element a StringField AND a SortedDocValuesField are added)\r\n // Using SortField.Type.STRING is valid (as an exception) beacause years are 4-digit numbers resulting in identical String-sorting and number-sorting.\r\n SortField sortFieldYear = new SortField(\"PubDate-Year\", SortField.Type.STRING, true);\r\n \r\n //TO DO : make custom comparators for the rest fields where lexilogical comparison is not valid\r\n // OR, store Pud Date as Date and use date comparison\r\n // Idealy one \"complex-field\" should be used for sorting, taking into account Year, Month, Day, Season and MedlineDate together)\r\n// SortField sortFieldMonth = new SortField(\"PubDate-Month\",SortField.Type.STRING,true);\r\n// SortField sortFieldDay = new SortField(\"PubDate-Day\",SortField.Type.STRING,true);\r\n// SortField sortFieldSeason = new SortField(\"PubDate-Season\",SortField.Type.STRING,true);\r\n// SortField sortFieldMedlineDate = new SortField(\"PubDate-MedlineDate\",SortField.Type.STRING,true);\r\n// this.setSort(new Sort(sortFieldYear, sortFieldMonth, sortFieldDay, sortFieldSeason, sortFieldMedlineDate));\r\n this.setSort(new Sort(sortFieldYear));\r\n \r\n /* Reading the index */\r\n// this.setReader(DirectoryReader.open(FSDirectory.open(Paths.get(getIndexPath()))));\r\n this.setReader(DirectoryReader.open(MMapDirectory.open(Paths.get(getIndexPath()))));\r\n this.setSearcher(new IndexSearcher(getReader()));\r\n this.setAnalyzer(new StandardAnalyzer());\r\n \r\n /* Caching */\r\n // these cache and policy instances can be shared across several queries and readers\r\n // it is fine to eg. store them into static variables\r\n // TO DO: Use stored (old) expert-queries (from mongoDB) and MESH terms to \"prepare\" cache.\r\n queryCache = new LRUQueryCache(maxNumberOfCachedQueries, maxRamBytesUsed);\r\n// defaultCachingPolicy = new UsageTrackingQueryCachingPolicy();\r\n defaultCachingPolicy = new QueryCachingPolicy.CacheOnLargeSegments(minIndexSize, minSizeRatio);\r\n this.getSearcher().setQueryCache(queryCache);\r\n this.getSearcher().setQueryCachingPolicy(defaultCachingPolicy);\r\n \r\n /* All fields as default for search */\r\n Iterator <String> allFieldsIterator = org.apache.lucene.index.MultiFields.getFields(reader).iterator();\r\n ArrayList <String> a = new ArrayList();\r\n String current = \"\";\r\n while(allFieldsIterator.hasNext()){\r\n current = allFieldsIterator.next();\r\n if(!current.startsWith(\"PubDate-\")){\r\n a.add(current);\r\n }\r\n }\r\n \r\n String[] allFields = new String[a.size()];\r\n allFields = a.toArray(allFields); //All index fields to be used as default search fields\r\n this.setParser( new MultiFieldQueryParser( allFields, getAnalyzer())); \r\n }", "public void fillHandBuilt(Indexer index, String [] terms) {\n\t\tindex.addPosition(terms[0], 3, 1); // ar Term, docID, pos\n\t\tindex.addPosition(terms[1], 2, 4); // british\n\t\tindex.addPosition(terms[2], 3, 3); // dog\n\t\tindex.addPosition(terms[2], 4, 0); // dog\n\t\tindex.addPosition(terms[2], 4, 3); // dog\n\t\tindex.addPosition(terms[3], 4, 1); // enjoi\n\t\tindex.addPosition(terms[4], 0, 6); // enjoy\n\t\tindex.addPosition(terms[5], 1, 5); // in, potential error\n\t\tindex.addPosition(terms[5], 3, 4); // in\n\t\tindex.addPosition(terms[6], 1, 4); // is, potential error\n\t\tindex.addPosition(terms[7], 1, 1); // known\n\t\tindex.addPosition(terms[8], 3, 2); // mani\n\t\tindex.addPosition(terms[9], 0, 1); // monument\n\t\tindex.addPosition(terms[9], 1, 3); // monument potential error\n\t\tindex.addPosition(terms[10], 0, 3); // on\n\t\tindex.addPosition(terms[10], 2, 2); // on\n\t\tindex.addPosition(terms[11], 0, 4); // park\n\t\tindex.addPosition(terms[11], 4, 4); // park\n\t\tindex.addPosition(terms[12], 0, 2); // raid\n\t\tindex.addPosition(terms[12], 2, 1); // raid\n\t\tindex.addPosition(terms[13], 3, 5); // seattl\n\t\tindex.addPosition(terms[14], 0, 0); // the\n\t\tindex.addPosition(terms[14], 1, 0); // the\n\t\tindex.addPosition(terms[14], 2, 3); // the\n\t\tindex.addPosition(terms[14], 4, 2); // the\n\t\tindex.addPosition(terms[15], 3, 0); // there\n\t\tindex.addPosition(terms[16], 0, 5); // wa\n\t\tindex.addPosition(terms[17], 1, 2); // washington potential error\n\t\tindex.addPosition(terms[17], 2, 6); // washington potential error\n\t\tindex.addPosition(terms[17], 2, 0); // washington\n\t\tindex.addPosition(terms[17], 3, 6); // washington\n\t\tindex.addPosition(terms[18], 1, 1); // well potential error\n\t\tindex.addPosition(terms[18], 2, 6); // well \n\t\tindex.addPosition(terms[19], 1, 1); // wellknown\n\t\tindex.addPosition(terms[20], 2, 6); // went\n\t}", "public interface ILuceneIndexDAO extends IStatefulIndexerSession {\n // ===================================================================\n // The domain of indexing creates a separation between\n // readers and writers. In lucene, these are searchers\n // and writers. This DAO creates the more familiar DAO-ish interface\n // for developers to use and attempts to hide the details of\n // the searcher and write.\n // Calls are stateless meaning calling a find after a save does\n // not guarantee data will be reflected for the instance of the DAO\n // ===================================================================\n\n /**\n * Updates a document by first deleting the document(s) containing a term and then adding the new document. A Term is created by termFieldName, termFieldValue.\n *\n * @param termFieldName - Field name of the index.\n * @param termFieldValue - Field value of the index.\n * @param document - Lucene document to be updated.\n * @return - True for successful addition.\n */\n boolean saveDocument(String termFieldName, String termFieldValue, Document document);\n\n /**\n * Generates a BooleanQuery from the given fields Map and uses it to delete the documents matching in the IndexWriter.\n *\n * @param fields - A Map data structure containing a field(Key) and text(value) pair.\n * @return - True for successful deletion.\n */\n boolean deleteDocuments(Map<String, String> fields);\n\n /**\n * Find the documents in the IndexSearcher matching the Terms generated from fields.\n *\n * @param fields - A Map data structure contains the field(Key) and text(value).\n * @return - Collection of Documents obtained from the search.\n */\n Set<Document> findDocuments(Map<String, String> fields);\n\n /**\n * Find the documents in the IndexSearcher matching the Terms generated from fields. Offset is the starting position for the search and numberOfResults\n * is the length from offset position.\n *\n * @param fields - A Map data structure containing a field(Key) and text(value) pair.\n * @param offset - Starting position of the search.\n * @param numberOfResults - Number of documents to be searched from an offset position.\n * @return - Collection of Documents obtained from the search.\n */\n Set<Document> findDocuments(Map<String, String> fields, int offset, int numberOfResults);\n\n /**\n * Return the count of the documents present in the IndexSearcher.\n *\n * @return - Integer representing the count of documents.\n */\n int getDocumentCount();\n\n}", "public interface IIndexBuilder {\n\n public IIndex getIndex( Class<?> searchable ) throws BuilderException;\n\n public IFieldVisitor getFieldVisitor();\n\n public void setFieldVisitor( IFieldVisitor visitor );\n\n}", "public static SearchResults createSearchResults(ClientResults apiResults) {\n List<SearchResult> resultList = new ArrayList<>();\n if (apiResults == null) return null;\n List<Item> topList = apiResults.getItems()\n .subList(0, (apiResults.getItems().size() >= MAX_DISPLAY_COUNT) ? MAX_DISPLAY_COUNT : apiResults.getItems().size());\n for (Item apiResult : topList) {\n\n if (apiResult.getOwner() == null ||\n apiResult.getDescription().isEmpty() ||\n StringUtil.isEmpty(apiResult.getName()) ||\n StringUtil.isEmpty(apiResult.getUrl()) ||\n StringUtil.isEmpty(apiResult.getDescription()) ||\n StringUtil.isEmpty(apiResult.getStargazersCount())) continue;\n\n Owner owner = apiResult.getOwner();\n if (StringUtil.isEmpty(owner.getAvatarUrl()) ||\n StringUtil.isEmpty(owner.getOrgName())) continue;\n\n SearchResult result = new SearchResult();\n result.setRepositoryName(apiResult.getName());\n result.setOrgName(owner.getOrgName());\n result.setWebUrl(apiResult.getUrl());\n result.setAvatarUrl(apiResult.getOwner().getAvatarUrl());\n result.setDescription(apiResult.getDescription());\n try {\n result.setStarCount(Integer.parseInt(apiResult.getStargazersCount()));\n } catch (NullPointerException exception) {\n continue;\n }\n resultList.add(result);\n\n }\n SearchResults searchResults = new SearchResults();\n searchResults.setSearchResults(resultList);\n return searchResults;\n }", "public static void main(String[] args) throws IOException\r\n\t{\n\t\tif (args.length <= 0)\r\n\t\t{\r\n System.out.println(\"Expected corpus as input\");\r\n System.exit(1);\r\n }\r\n\r\n\t\t// Analyzer that is used to process TextField\r\n\t\tAnalyzer analyzer = new StandardAnalyzer();\r\n\r\n\t\t// ArrayList of documents in the corpus\r\n\t\tArrayList<Document> documents = new ArrayList<Document>();\r\n\r\n\t\t// Open the directory that contains the search index\r\n\t\tDirectory directory = FSDirectory.open(Paths.get(INDEX_DIRECTORY));\r\n\r\n\t\t// Set up an index writer to add process and save documents to the index\r\n\t\tIndexWriterConfig config = new IndexWriterConfig(analyzer);\r\n\t\tconfig.setOpenMode(IndexWriterConfig.OpenMode.CREATE);\r\n\t\tIndexWriter iwriter = new IndexWriter(directory, config);\r\n\r\n\r\n\t\tfor (String arg : args)\r\n\t\t{\r\n\r\n\t\t\t// Load the contents of the file\r\n\t\t\t//System.out.printf(\"Indexing \\\"%s\\\"\\n\", arg);\r\n\t\t\tString content = new String(Files.readAllBytes(Paths.get(arg)));\r\n\r\n\t\t\tString[] big = content.split(\".I\");\r\n\t\t\tfor (String a : big) {\r\n\t\t\t\tDocument doc = new Document();\r\n\t\t\t\tint count = 0;\r\n\t\t\t\tString[] small = a.split(\".A\");\r\n\t\t\t\tfor (String b : small) {\r\n\t\t\t\t\tif (count == 0) {\r\n\t\t\t\t\t\tdoc.add(new StringField(\"filename\", b, Field.Store.YES));\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tdoc.add(new TextField(\"content\", b, Field.Store.YES));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcount++;\r\n\t\t\t\t}\r\n\t\t\t\tdocuments.add(doc);\r\n\t\t\t}\r\n\t\t\tfor (Document doc : documents) {\r\n\t\t\t\tSystem.out.println(doc.get(\"filename\"));\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Write all the documents in the linked list to the search index\r\n\t\tiwriter.addDocuments(documents);\r\n\r\n\t\t// Commit everything and close\r\n\t\tiwriter.close();\r\n\t\tdirectory.close();\r\n\t}", "public Search createSearch(String searchText)\n\t\t{\n\t\t\tStringBuilder sb = new StringBuilder(searchText);\n\t\t\ttrim(sb);\n\t\t\tSearch current = null;\n\t\t\twhile(sb.length() > 0)\n\t\t\t{\n\t\t\t\tboolean not = false;\n\t\t\t\tif(sb.length() > 1 && lower(sb.charAt(0)) == 'o' && lower(sb.charAt(1)) == 'r')\n\t\t\t\t{ // OR operator\n\t\t\t\t\tsb.delete(0, 2);\n\t\t\t\t\tExpressionSearch exp = exp(false);\n\t\t\t\t\texp.add(current);\n\t\t\t\t\tcurrent = exp;\n\t\t\t\t\ttrim(sb);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\telse if(sb.length() > 2 && lower(sb.charAt(0)) == 'a' && lower(sb.charAt(1)) == 'n'\n\t\t\t\t\t&& lower(sb.charAt(2)) == 'd')\n\t\t\t\t{\n\t\t\t\t\tsb.delete(0, 3);\n\t\t\t\t\ttrim(sb);\n\t\t\t\t}\n\t\t\t\telse if(sb.length() > 1 && sb.charAt(0) == '!')\n\t\t\t\t{\n\t\t\t\t\tsb.delete(0, 1);\n\t\t\t\t\ttrim(sb);\n\t\t\t\t\tnot = true;\n\t\t\t\t}\n\n\t\t\t\tSearch next;\n\t\t\t\tif(sb.charAt(0) == '(')\n\t\t\t\t{\n\t\t\t\t\tint c = goPastParen(sb, 0);\n\t\t\t\t\tString nextExpr = sb.substring(1, c).trim();\n\t\t\t\t\tif(nextExpr.length() == 0)\n\t\t\t\t\t\tthrow new IllegalArgumentException(\"Empty parenthetical expression\");\n\t\t\t\t\tnext = createSearch(nextExpr);\n\t\t\t\t\tsb.delete(0, c + 1);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tnext = parseNext(sb);\n\t\t\t\tif(not)\n\t\t\t\t{\n\t\t\t\t\tNotSearch notS = not();\n\t\t\t\t\tnotS.setOperand(next);\n\t\t\t\t\tnext = notS;\n\t\t\t\t}\n\n\t\t\t\tif(current instanceof ExpressionSearch\n\t\t\t\t\t&& ((ExpressionSearch) current).getOperandCount() == 1)\n\t\t\t\t\t((ExpressionSearch) current).add(next);\n\t\t\t\telse if(current != null)\n\t\t\t\t{\n\t\t\t\t\tExpressionSearch exp = exp(true);\n\t\t\t\t\texp.addOps(current, next);\n\t\t\t\t\tcurrent = exp;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tcurrent = next;\n\n\t\t\t\ttrim(sb);\n\t\t\t}\n\t\t\tif(current instanceof ExpressionSearch)\n\t\t\t\t((ExpressionSearch) current).simplify();\n\t\t\treturn current;\n\t\t}", "public static void main(String[] args) throws IOException {\n\n //Reload indexes from file-system into memory as map data structure.\n System.out.println(\"Loading indexes in memory\");\n File file = new File(directoryPath + \"index.txt\");\n SearchQueries searchQueries = new SearchQueries();\n searchQueries.reLoadIndexesFromFileToIndexMap(file);\n\n System.out.println(\"Enter search query string\");\n Scanner scanner = new Scanner(System.in);\n String searchString = scanner.nextLine();\n\n System.out.println(\"Searching for matching documents...\");\n searchQueries.parseQueryStringAndSearch(searchString);\n\n searchQueries.printingSearchResults();\n\n\n }", "public void setLocators(String locators) {\n agentConfig.setLocators(locators);\n }", "public void init() {\n File file=new File(\"D:\\\\lucene\\\\index\");\n if(file.isDirectory())\n { //否则如果它是一个目录\n File files[] = file.listFiles(); //声明目录下所有的文件 files[];\n for(int i=0;i<files.length;i++)\n { //遍历目录下所有的文件\n files[i].delete(); //把每个文件 用这个方法进行迭代\n }\n }\n String indexPath = \"D:\\\\lucene\\\\index\";\n //String docsPath = \"D:\\\\lucene\\\\data\";\n boolean create = true;\n try\n {\n Session session=factory.openSession();\n String hql = \"from Book\";\n org.hibernate.Query query = session.createQuery(hql);\n List<Book> list=query.list();\n Directory indexDir = FSDirectory.open(Paths.get(\"D:\\\\lucene\\\\index\"));\n Analyzer luceneAnalyzer = new StandardAnalyzer(); //新建一个分词器实例 \n IndexWriterConfig config = new IndexWriterConfig(luceneAnalyzer); \n IndexWriter indexWriter = new IndexWriter(indexDir,config);\n for(int i=0;i<list.size();i++)\n {\n Document document = new Document();\n Field field1 = new StringField(\"id\",list.get(i).getBookid().toString(),Field.Store.YES); \n Field field2 = new StringField(\"bookname\",list.get(i).getBookname(),Field.Store.YES); \n Field field3 = new StringField(\"author\",list.get(i).getAuthor(),Field.Store.YES); \n Field field4 = new StringField(\"category\",list.get(i).getCategory(),Field.Store.YES); \n Field field5 = new StringField(\"price\", Double.toString(list.get(i).getPrice()),Field.Store.YES); \n document.add(field1); \n document.add(field2); \n document.add(field3); \n document.add(field4);\n document.add(field5);\n indexWriter.addDocument(document);\n }\n indexWriter.close();\n }\n catch(IOException e)\n {\n System.out.println(\"error\");\n return;\n }\n }", "private void setProjectSearchResults(List<Project> aces, List<Project> aws, List<Project> elsewhere, List<Project> rcnc){\n resultsMap.put(titles[0], aces);\n resultsMap.put(titles[1], aws);\n resultsMap.put(titles[2], elsewhere);\n resultsMap.put(titles[3], rcnc);\n\n mAdapterSearch = new ProjectsExpandableSearchAdapter(main, R.layout.project_list_item, titles, resultsMap);\n mProjectsListView.setAdapter(mAdapterSearch);\n mProjectsListView.expandGroup(0);\n mProjectsListView.expandGroup(1);\n mProjectsListView.expandGroup(2);\n mProjectsListView.expandGroup(3);\n\n }", "public phaseI.Hdfs.DataNodeLocation.Builder getLocationsBuilder(\n int index) {\n return getLocationsFieldBuilder().getBuilder(index);\n }", "private IndexHandler (boolean test) throws IOException {\n analyzer = new StandardAnalyzer();\n indexDir = test ? new RAMDirectory() : new DistributedDirectory(new MongoDirectory(mongoClient, \"search-engine\", \"index\"));\n //storePath = storedPath;\n config = new IndexWriterConfig(analyzer);\n\n // write separate IndexWriter to RAM for each IndexHandler\n // writer will have to be manually closed with each instance call\n // see IndexWriter documentation for .close()\n // explaining continuous closing of IndexWriter is an expensive operation\n try {\n writer = new IndexWriter(indexDir, config);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private void createIndexes(GenericDAO genericDAO, Schema schema) {\n\t\tfor (List<MatchingDependency> searchAttributeMDs : schema.getMatchingDependencies().values()) {\n\t\t\tfor (MatchingDependency md : searchAttributeMDs) {\n\t\t\t\tString relation = md.getRightPredicateName();\n\t\t\t\tString attribute = schema.getRelations().get(relation.toUpperCase()).getAttributeNames()\n\t\t\t\t\t\t.get(md.getRightAttributeNumber());\n\t\t\t\tint attributePosition = md.getRightAttributeNumber();\n\n\t\t\t\tPair<String, Integer> key = new Pair<String, Integer>(relation, attributePosition);\n\t\t\t\tif (!hsTrees.containsKey(key)) {\n\t\t\t\t\tList<String> values = projectSelectIn(genericDAO, relation, attribute);\n\t\t\t\t\tHSTree hsTree = HSTreeCreator.buildHSTree(values);\n\t\t\t\t\thsTrees.put(key, hsTree);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private boolean updateExistingSearchController(List<String> queryMethods,\n ClassOrInterfaceTypeDetails controllerToUpdateOrCreate,\n ClassOrInterfaceTypeDetailsBuilder controllerBuilder) {\n // Get @RooSearch and build necessary variables\n AnnotationMetadata searchAnnotation =\n controllerToUpdateOrCreate.getAnnotation(RooJavaType.ROO_SEARCH);\n List<AnnotationAttributeValue<?>> findersToAdd = new ArrayList<AnnotationAttributeValue<?>>();\n List<String> finderNames = new ArrayList<String>();\n boolean findersAdded = false;\n\n // Get existent finder values\n if (searchAnnotation != null && searchAnnotation.getAttribute(\"finders\") != null) {\n List<?> existingFinders = (List<?>) searchAnnotation.getAttribute(\"finders\").getValue();\n Iterator<?> it = existingFinders.iterator();\n\n // Add existent finders to new attributes array to merge with new ones\n while (it.hasNext()) {\n StringAttributeValue attributeValue = (StringAttributeValue) it.next();\n findersToAdd.add(attributeValue);\n finderNames.add(attributeValue.getValue());\n }\n\n // Add new finders to new attributes array\n for (String finder : queryMethods) {\n if (!finderNames.contains(finder)) {\n findersToAdd.add(new StringAttributeValue(new JavaSymbolName(\"value\"), finder));\n findersAdded = true;\n }\n }\n\n // Add attributes array to @RooSearch\n AnnotationMetadataBuilder searchAnnotationBuilder =\n new AnnotationMetadataBuilder(searchAnnotation);\n ArrayAttributeValue<AnnotationAttributeValue<?>> allFinders =\n new ArrayAttributeValue<AnnotationAttributeValue<?>>(new JavaSymbolName(\"finders\"),\n findersToAdd);\n searchAnnotationBuilder.addAttribute(allFinders);\n controllerBuilder.updateTypeAnnotation(searchAnnotationBuilder);\n }\n return findersAdded;\n }", "public void setIndex(Searcher searcher) {\n\t\tthis.searcher = searcher;\n\t}", "public LittleSearchEngine() {\n\t\tkeywordsIndex = new HashMap<String,ArrayList<Occurrence>>(1000,2.0f);\n\t\tnoiseWords = new HashSet<String>(100,2.0f);\n\t}", "public LittleSearchEngine() {\n\t\tkeywordsIndex = new HashMap<String,ArrayList<Occurrence>>(1000,2.0f);\n\t\tnoiseWords = new HashSet<String>(100,2.0f);\n\t}", "public SimpleIndexFactory() {\n\t}", "public CorrResultModel searchForEvents(String searchString, int page, HashMap foundEventtypes, String lowerBound, String upperBound, List filterNames);", "public TinySearchEngine()\n {\n this.myIndex = new HashMap();\n this.documentData = new HashMap();\n this.sorted = false;\n this.sort = new Sort();\n this.search = new BinarySearch();\n }", "public static void main(String[] args)\r\n {\n \tString inputPath = \"Dataset\";\r\n String indexPath = \"Index\";\r\n Boolean flag = Indexing.indexing(inputPath, indexPath);\r\n \r\n if (flag == false) {\r\n \tString message = \"There was not possible to index any file.\\n\"\r\n \t + \"Please create a folder Dataset in the same path as the jar file \\n\";\r\n \tJOptionPane.showMessageDialog(new JFrame(), message, \"Indexing Error\",\r\n \t JOptionPane.ERROR_MESSAGE);\r\n }else {\r\n \tJFrame frame = new JFrame();\r\n\r\n frame.setSize(1000,900);\r\n\r\n frame.setTitle(\"Search Engine - The Strings\");\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n frame.setLayout(new BorderLayout());\r\n frame.getContentPane().setBackground(Color.decode(\"#FFFFFF\"));\r\n\r\n JTextField searchField = new JTextField();\r\n searchField.setBounds(58, 22, 608, 20);\r\n frame.getContentPane().add(searchField);\r\n searchField.setColumns(10);\r\n\r\n \r\n \r\n JPanel panel = new JPanel();\r\n panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));\r\n panel.setAutoscrolls(true);\r\n panel.setOpaque(false);\r\n frame.add(panel,BorderLayout.NORTH);\r\n\r\n JScrollPane scrollPane = new JScrollPane(panel);\r\n scrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);\r\n scrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);\r\n scrollPane.setBounds(20, 50, 900, 600);\r\n //scrollPane.setOpaque(false);\r\n scrollPane.setBackground(Color.WHITE);\r\n\r\n JPanel contentPane = new JPanel(null);\r\n contentPane.setPreferredSize(new Dimension(1000, 900));\r\n contentPane.add(scrollPane);\r\n contentPane.setOpaque(false);\r\n \r\n JButton searchButton = new JButton(\"Search\");\r\n searchButton.setBounds(695, 21, 89, 23);\r\n frame.getContentPane().add(searchButton);\r\n searchButton.addActionListener(new ActionListener() {\r\n public void actionPerformed(ActionEvent arg0) {\r\n \tString queryInput = searchField.getText();\r\n\t dictionary = null;\r\n\t try {\r\n\t dictionary = SearchIndex.searching(indexPath, queryInput);\r\n\t } catch (Exception e) {\r\n\t // TODO Auto-generated catch block\r\n\t e.printStackTrace();\r\n\t }\r\n\t panel.removeAll();\r\n\t panel.revalidate();\r\n\t panel.repaint();\r\n\t if (dictionary.isEmpty()) {\r\n\t \tJLabel labelError = new JLabel(\"There are no results that match your search\");\r\n\t \tpanel.add(labelError);\r\n\t }\r\n\t \r\n\t for (ArrayList<String> val : dictionary.values()) {\r\n\t \tJPanel generalPanel = new JPanel();\r\n\t \tgeneralPanel.setOpaque(false);\r\n\t \tgeneralPanel.setLayout(new FlowLayout());\r\n\t JLabel label = new JLabel();\r\n\t if(val.get(5) == \"\") {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tlabel = new JLabel();\r\n\t\t\t\t\t\t\tlabel.setText(\"--No Image--\");\r\n\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\r\n\t\t\t\t\t\t\t try {\r\n\t\t\t BufferedImage image = ImageIO.read(new File(val.get(5)));\r\n\t\t\t Image newimg = image.getScaledInstance(60, 60, java.awt.Image.SCALE_SMOOTH); // scale it the smooth way \r\n\t\t\t\t\t\t\t\t\tlabel = new JLabel(new ImageIcon(newimg));\r\n\t\t\t }catch(Exception e) {\r\n\r\n\t\t\t }\r\n\t\t\t\t\t\t}\r\n\t \r\n\t \r\n\t JLabel rankLbl = new JLabel(\"Rank:\");\r\n\t //rankLbl.setFont(rankLbl.getFont().deriveFont(rankLbl.getFont().getStyle() & ~Font.BOLD));\r\n\t JLabel rankValue = new JLabel(val.get(0));\r\n\t rankValue.setFont(rankValue.getFont().deriveFont(rankValue.getFont().getStyle() & ~Font.BOLD));\r\n\t JLabel nameLbl = new JLabel(\"Name:\");\r\n\t JLabel nameValue = new JLabel(val.get(1));\r\n\t nameValue.setFont(nameValue.getFont().deriveFont(nameValue.getFont().getStyle() & ~Font.BOLD));\r\n\t JLabel scoreLbl = new JLabel(\"Score:\");\r\n\t JLabel scoreValue = new JLabel(val.get(3));\r\n\t scoreValue.setFont(scoreValue.getFont().deriveFont(scoreValue.getFont().getStyle() & ~Font.BOLD));\r\n\t JLabel lastModifiedLbl = new JLabel(\"Last Modified:\");\r\n\t JLabel lastModifiedValue = new JLabel(val.get(2));\r\n\t lastModifiedValue.setFont(lastModifiedValue.getFont().deriveFont(lastModifiedValue.getFont().getStyle() & ~Font.BOLD));\r\n\t JLabel highltedTxtLbl = new JLabel(\"Text:\");\r\n\t JEditorPane editorPane = new JEditorPane();\r\n\t editorPane.setContentType(\"text/html\");\r\n\t String htmlTxt = \"<html>\"+val.get(4)+\"</html>\";\r\n\t editorPane.setText(htmlTxt);\r\n\t \r\n\t \r\n\t \r\n\t JPanel ssp1 = new JPanel();\r\n //ssp1.setLayout(new FlowLayout());\r\n ssp1.setBackground(Color.WHITE);\r\n ssp1.setPreferredSize(new Dimension(panel.getWidth(), 170));\r\n GroupLayout layout = new GroupLayout(ssp1);\r\n ssp1.setLayout(layout);\r\n\t layout.setAutoCreateGaps(false);\r\n\t layout.setAutoCreateContainerGaps(true);\r\n\r\n \r\n layout.setHorizontalGroup(\r\n\t \t\tlayout.createSequentialGroup()\r\n\t \t\t\t .addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING)\r\n\t \t \t\t .addComponent(rankLbl)\r\n\t \t \t\t .addComponent(label)\r\n\t \t\t\t\t\t )\t \r\n\t \t\t\t .addComponent(rankValue)\r\n\t \t\t .addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING)\r\n\t \t\t .addComponent(nameLbl)\r\n\t \t\t .addComponent(scoreLbl)\r\n\t \t\t .addComponent(lastModifiedLbl)\r\n\t \t\t .addComponent(highltedTxtLbl))\r\n\t \t\t .addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING) \r\n \t\t \t\t .addComponent(nameValue)\r\n \t\t \t\t .addComponent(scoreValue)\r\n \t\t \t\t .addComponent(lastModifiedValue)\r\n \t\t \t\t .addComponent(editorPane))\r\n\t \t\t);\r\n\t layout.setVerticalGroup(\r\n\t \t\t layout.createSequentialGroup()\r\n\t \t\t .addGroup(layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\r\n\t \t\t .addComponent(rankLbl)\r\n\t \t\t .addComponent(rankValue))\r\n\t \t\t .addGroup(layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\r\n\t \t\t .addComponent(label)\r\n\t \t\t .addGroup(layout.createSequentialGroup()\r\n\t \t\t \t\t .addGroup(layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\r\n\t \t \t\t \t\t .addComponent(nameLbl)\r\n\t \t \t \t\t .addComponent(nameValue))\r\n\t \t\t \t\t .addGroup(layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\r\n\t \t \t\t \t\t .addComponent(scoreLbl)\r\n\t \t \t\t \t\t .addComponent(scoreValue))\r\n\t \t \t\t .addGroup(layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\r\n\t \t \t\t \t\t .addComponent(lastModifiedLbl)\r\n\t \t \t\t \t\t .addComponent(lastModifiedValue))\r\n\t \t \t\t .addGroup(layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\r\n\t \t \t\t \t\t .addComponent(highltedTxtLbl)\r\n\t \t \t\t \t\t .addComponent(editorPane))\r\n\t \t\t \t\t )\r\n\t \t\t )\r\n\t );\r\n\r\n \r\n\r\n generalPanel.add(ssp1);\r\n panel.add(generalPanel); \r\n\t \r\n\t }\r\n\t \r\n \t\r\n \t\r\n \tframe.add(contentPane, BorderLayout.CENTER);\r\n frame.pack();\r\n frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\r\n frame.setVisible(true);\r\n }\r\n \r\n \r\n });\r\n\r\n \r\n\r\n JButton clearButton = new JButton(\"Clear\");\r\n\t clearButton.addActionListener(new ActionListener() {\r\n\t public void actionPerformed(ActionEvent arg0) {\r\n\t searchField.setText(\"\");\r\n\t panel.removeAll();\r\n\t panel.revalidate();\r\n\t panel.repaint();\r\n\t }\r\n\t });\r\n\t clearButton.setBounds(817, 21, 89, 23);\r\n\t frame.getContentPane().add(clearButton); \r\n\t \r\n\t \r\n frame.add(contentPane, BorderLayout.CENTER);\r\n frame.pack();\r\n frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\r\n frame.setVisible(true);\r\n }\r\n \r\n }", "public static void main(String[] args) {\n\t\tSearch s = new Search();\n\t\ts.init();\n\t}", "public static IndexExpression makeIndex(Expression instance, PropertyInfo indexer, Iterable<Expression> arguments) { throw Extensions.todo(); }", "private void makeComponents() {\n Font font = new Font(\"Open Sans\", Font.PLAIN, 14);\n\n //Create The buttons and configure their visual design.\n searchArea.setFont(font);\n searchArea.setBorder(new CompoundBorder(BorderFactory.createMatteBorder(4, 7, 4, 7, DrawAttribute.lightblue), BorderFactory.createRaisedBevelBorder()));\n searchArea.setBounds(20, 20, 300, 37);\n searchArea.setActionCommand(\"searchAreaInput\");\n\n makeFrontGUIButtons();\n }", "public SupSearch_PrefixIndex(PrefixIndexSearcher indexSearcher,\n\t\t\tIPostingFetcher postingFetcher, VerifierISOPrefix verifier) {\n\t\tthis.searcher = indexSearcher;\n\t\tthis.postingFetcher = postingFetcher;\n\t\tthis.verifier = verifier;\n\t\tthis.upperLevelIndex = null;\n\t\tthis.lowerLevelSearcher = null;\n\t}", "public SupSearch_PrefixIndex(PrefixIndexSearcher indexSearcher,\n\t\t\tIPostingFetcher postingFetcher, VerifierISOPrefix verifier,\n\t\t\tSupSearch_PrefixIndex upperLevelIndex,\n\t\t\tPrefixIndexSearcher lowerSearcher) {\n\t\tthis.searcher = indexSearcher;\n\t\tthis.postingFetcher = postingFetcher;\n\t\tthis.verifier = verifier;\n\t\tthis.upperLevelIndex = upperLevelIndex;\n\t\tthis.lowerLevelSearcher = lowerSearcher;\n\t}", "@SuppressWarnings(\"unchecked\")\n private void initSearch() {\n if (searchBasic != null) {\n return;\n }\n try {\n // get a search class instance\n if (searchRecordTypeDesc.getSearchClass() != null) {\n search = (SearchT) searchRecordTypeDesc.getSearchClass().newInstance();\n }\n\n // get a advanced search class instance and set 'savedSearchId' into it\n searchAdvanced = null;\n if (StringUtils.isNotEmpty(savedSearchId)) {\n if (searchRecordTypeDesc.getSearchAdvancedClass() != null) {\n searchAdvanced = (SearchT) searchRecordTypeDesc.getSearchAdvancedClass().newInstance();\n Beans.setProperty(searchAdvanced, SAVED_SEARCH_ID, savedSearchId);\n } else {\n throw new NetSuiteException(new NetSuiteErrorCode(NetSuiteErrorCode.OPERATION_NOT_SUPPORTED),\n i18n.advancedSearchNotAllowed(recordTypeName));\n }\n }\n\n // basic search class not found or supported\n if (searchRecordTypeDesc.getSearchBasicClass() == null) {\n throw new NetSuiteException(new NetSuiteErrorCode(NetSuiteErrorCode.OPERATION_NOT_SUPPORTED),\n i18n.searchNotAllowed(recordTypeName));\n }\n\n // get a basic search class instance\n searchBasic = (SearchT) searchRecordTypeDesc.getSearchBasicClass().newInstance();\n\n } catch (InstantiationException | IllegalAccessException e) {\n throw new NetSuiteException(new NetSuiteErrorCode(NetSuiteErrorCode.INTERNAL_ERROR), e.getMessage(), e);\n }\n }", "public interface IndexRegistry\n{\n void registerIndex(Index index);\n void unregisterIndex(Index index);\n\n Index getIndex(IndexMetadata indexMetadata);\n Collection<Index> listIndexes();\n}", "private static PlaceIndex buildIndex(File repo) throws RepositoryException, SailException {\n PlaceIndex index = new PlaceIndex();\n\n // start repository\n NativeStore store = new NativeStore(repo);\n Repository repository = new SailRepository(store);\n repository.initialize();\n RepositoryConnection connection = repository.getConnection();\n\n // create the root place\n ValueFactory factory = repository.getValueFactory();\n Value root = factory.createURI(Place.ROOT.toURL().toString());\n\n try {\n\n // prepare SPARQL queries\n TupleQuery queryChildren = connection.prepareTupleQuery(QueryLanguage.SPARQL, QUERY_CHILDREN);\n TupleQuery queryNamesOff = connection.prepareTupleQuery(QueryLanguage.SPARQL, QUERY_NAMES_OFF);\n TupleQuery queryNamesAlt = connection.prepareTupleQuery(QueryLanguage.SPARQL, QUERY_NAMES_ALT);\n\n // add children recursively, starting from the root\n queryChildren.setBinding(\"parent\", root);\n addChildren(index, Place.ROOT, queryChildren, queryNamesOff, queryNamesAlt);\n\n } catch (RepositoryException e) {\n LOGGER.error(\"exception while building index\", e);\n } finally {\n connection.close();\n repository.shutDown();\n store.shutDown();\n return index;\n }\n }", "public generateIndex() {\n\n\t\tthis.analyzer = \"StandardAnalyzer\";\n\t}", "@Test\n public void testMultiIndexCreation() {\n Host host = Host.getHost(0);\n VM vm0 = host.getVM(1);\n setCacheInVMs(vm0);\n vm0.invoke(helper.getCacheSerializableRunnableForReplicatedRegionCreation(regionName));\n\n ArrayList<String> names = new ArrayList<>();\n names.add(indexName);\n names.add(rindexName);\n\n ArrayList<String> exps = new ArrayList<>();\n exps.add(indexedExpression);\n exps.add(rindexedExpression);\n\n ArrayList<String> fromClauses = new ArrayList<>();\n fromClauses.add(fromClause);\n fromClauses.add(rfromClause);\n\n vm0.invoke(\n helper.getCacheSerializableRunnableForDefineIndex(regionName, names, exps, fromClauses));\n\n AsyncInvocation<?>[] asyncInvs = new AsyncInvocation[2];\n\n asyncInvs[0] =\n vm0.invokeAsync(helper.getCacheSerializableRunnableForPRRandomOps(regionName, 0, stepSize));\n\n asyncInvs[1] =\n vm0.invokeAsync(helper.getCacheSerializableRunnableForPRRandomOps(regionName, 0, stepSize));\n\n for (AsyncInvocation<?> inv : asyncInvs) {\n ThreadUtils.join(inv, 30 * 000);\n }\n\n for (AsyncInvocation<?> inv : asyncInvs) {\n if (inv.exceptionOccurred()) {\n Assert.fail(\"Random region operation failed on VM_\" + inv.getId(), inv.getException());\n }\n }\n\n vm0.invoke(getCacheSerializableRunnableForIndexValidation(regionName, indexName));\n\n }", "public static void main(String[] args)\n\t{\n\t\tsqlindexer si=new sqlindexer();\n\t\tsi.indexAll();\n\t\t\n\t\t\n\t}", "private static void peopleAndEventsCreate(File selectedFolder, File selectedFile, String nameOfLuceneIndex) throws Exception {\n\t\tStandardAnalyzer analyzer = new StandardAnalyzer();\n\n\t /* Where to store index */\n\t\tFile directoryOfIndex = new File(selectedFolder + nameOfLuceneIndex);\n\t\tdeleteDirectory(directoryOfIndex);\t\t\t\t\t\t\t\t\t\t\t\t\t\t// before creating new index, the old one is deleted\n\t Directory index = FSDirectory.open(directoryOfIndex);\n\n\t IndexWriterConfig config = new IndexWriterConfig(Version.LATEST, analyzer);\n\t IndexWriter w = new IndexWriter(index, config);\n\t \n\t\tBufferedReader in;\n\t\ttry {\n\t\t\tin = new BufferedReader(new InputStreamReader(new FileInputStream(selectedFile), \"UTF-8\"));\n\n\t\t\twhile (in.ready()) {\n\t\t\t\tString oneLine = in.readLine();\n\t\t\t\t\n\t\t\t\tString[] splittedString = oneLine.split(\";\");\n\t\t\t\t\n\t\t\t\tif(splittedString.length == 2) {\n\t\t\t\t\taddDoc(w, splittedString[0], splittedString[1], \"\");\n\t\t\t\t}\n\t\t\t\telse if(splittedString.length == 3) {\n\t\t\t\t\taddDoc(w, splittedString[0], splittedString[1], splittedString[2]);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tin.close();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t \n\t w.close();\n\t}", "public ElasticSearchWrapper(String index, String type, String serverIP, String port) {\n\t\tthis.index = index;\n\t\tthis.type = type;\n\t\tthis.subdocType = type + \"1\";\n\n\t\t// esUrl = \"http://75.101.244.195:8081/\" + index + \"/\" + type + \"/\";\n\t\tesInsertDeleteUrl = \"http://\" + serverIP + \":\" + port + \"/\" + index\n\t\t\t\t+ \"/\" + type + \"/\";\n\t\tesInsertDeleteSubdocUrl = \"http://\" + serverIP + \":\" + port + \"/\"\n\t\t\t\t+ index + \"/\" + subdocType + \"/\";\n\t\tesSearchUrl = \"http://\" + serverIP + \":\" + port + \"/\" + index + \"/\"\n\t\t\t\t+ type + \"/_search\";\n\t\tesSearchSubdocUrl = \"http://\" + serverIP + \":\" + port + \"/\" + index\n\t\t\t\t+ \"/\" + subdocType + \"/_search\";\n\t\tesIndexUrl = \"http://\" + serverIP + \":\" + port + \"/\" + index + \"/\";\n\t\tesIndexTypeUrl = \"http://\" + serverIP + \":\" + port + \"/\" + index + \"/\"\n\t\t\t\t+ type + \"/\";\n\t\tesIndexTypeSubdocUrl = \"http://\" + serverIP + \":\" + port + \"/\" + index\n\t\t\t\t+ \"/\" + subdocType + \"/\";\n\t\tesMapping = \"http://\" + serverIP + \":\" + port + \"/\" + index + \"/\"\n\t\t\t\t+ type + \"/_mapping\";\n\t\tesMappingSubdoc = \"http://\" + serverIP + \":\" + port + \"/\" + index + \"/\"\n\t\t\t\t+ subdocType + \"/_mapping\";\n\t\tesScanUrl = \"http://\" + serverIP + \":\" + port + \"/\" + index + \"/\"\n\t\t\t\t+ type + \"/_search?search_type=scan&scroll=2m&size=\";\n\t\tesScanSubdocUrl = \"http://\" + serverIP + \":\" + port + \"/\" + index + \"/\"\n\t\t\t\t+ subdocType + \"/_search?search_type=scan&scroll=2m&size=\";\n\t\tesScrollUrl = \"http://\" + serverIP + \":\" + port\n\t\t\t\t+ \"/_search/scroll?scroll=2m&scroll_id=\";\n\t\tesRefreshIndexUrl = \"http://\" + serverIP + \":\" + port + \"/\" + index\n\t\t\t\t+ \"/_refresh\";\n\t}", "protected interface ISearchIndex<T> extends Iterable<T> {\n List<T> radius(T center, double radius);\n }", "private Search() {}", "public LittleSearchEngine() {\n keywordsIndex = new HashMap<String, ArrayList<Occurrence>>(1000, 2.0f);\n noiseWords = new HashMap<String, String>(100, 2.0f);\n }", "public Index(TokenBasedAnalyzer myAnalyzer,boolean lowercase, Set<String> stopWords) {\n\n\t\t//Index Creation\n\n\t\tthis.lowercase = lowercase;\n\t\t\n\t\tthis.stopWords = stopWords;\n\t\t\n\t\tthis.myAnalyzer = myAnalyzer;\n\t\t\n\t\tidx = new RAMDirectory();\n\n\t\tIndexWriterConfig indexWriterConfiguration = new IndexWriterConfig(Version.LUCENE_34, myAnalyzer);\n\n\t\tindexWriter = null;\n\n\t\ttry {\n\n\t\t\tindexWriter = new IndexWriter(idx,indexWriterConfiguration);\n\n\t\t} catch (CorruptIndexException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (LockObtainFailedException 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}", "@Test\n public void testSearch() throws Exception {\n LocalLandCharge localLandChargeOne = TestUtils.buildLocalLandCharge();\n localLandChargeOne.getItem().setChargeCreationDate(new Date(1));\n\n LocalLandCharge localLandChargeTwo = TestUtils.buildLocalLandCharge();\n localLandChargeTwo.getItem().setChargeCreationDate(new Date(3));\n\n LocalLandCharge localLandChargeThree = TestUtils.buildLocalLandCharge();\n localLandChargeThree.getItem().setChargeCreationDate(new Date(2));\n\n LocalLandCharge lightObstructionNotice = TestUtils.buildLONCharge();\n localLandChargeTwo.getItem().setChargeCreationDate(new Date(4));\n\n testGenerate(Lists.newArrayList(localLandChargeOne, localLandChargeTwo, localLandChargeThree,\n lightObstructionNotice));\n }", "public ListSearchResults()\n {\n logEnter(LOG_TAG, \"<init>\");\n\n entryMap = new HashMap<String,SearchResultEntry>(0);\n entries = new LinkedList<SearchResultEntry>();\n instance = null;\n }", "public void performSearch() {\n History.newItem(MyWebApp.SEARCH_RESULTS);\n getMessagePanel().clear();\n if (keywordsTextBox.getValue().isEmpty()) {\n getMessagePanel().displayMessage(\"Search term is required.\");\n return;\n }\n mywebapp.getResultsPanel().resetSearchParameters();\n //keyword search does not restrict to spots\n mywebapp.addCurrentLocation();\n if (markFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setLicensePlate(markFilterCheckbox.getValue());\n }\n if (contestFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setContests(contestFilterCheckbox.getValue());\n }\n if (geoFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setGeospatialOff(!geoFilterCheckbox.getValue());\n }\n if (plateFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setLicensePlate(plateFilterCheckbox.getValue());\n }\n if (spotFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setSpots(spotFilterCheckbox.getValue());\n }\n String color = getValue(colorsListBox);\n mywebapp.getResultsPanel().getSearchParameters().setColor(color);\n String manufacturer = getValue(manufacturersListBox);\n if (manufacturer != null) {\n Long id = new Long(manufacturer);\n mywebapp.getResultsPanel().getSearchParameters().setManufacturerId(id);\n }\n String vehicleType = getValue(vehicleTypeListBox);\n mywebapp.getResultsPanel().getSearchParameters().setVehicleType(vehicleType);\n// for (TagHolder tagHolder : tagHolders) {\n// mywebapp.getResultsPanel().getSearchParameters().getTags().add(tagHolder);\n// }\n mywebapp.getResultsPanel().getSearchParameters().setKeywords(keywordsTextBox.getValue());\n mywebapp.getMessagePanel().clear();\n mywebapp.getResultsPanel().performSearch();\n mywebapp.getTopMenuPanel().setTitleBar(\"Search\");\n //mywebapp.getResultsPanel().setImageResources(resources.search(), resources.searchMobile());\n }", "public static Index wrap(int[] indexes) {\n \t\treturn new Index(indexes);\n \t}", "public SearcherTaxonomyManager(\n IndexWriter writer,\n boolean applyAllDeletes,\n SearcherFactory searcherFactory,\n DirectoryTaxonomyWriter taxoWriter)\n throws IOException {\n if (searcherFactory == null) {\n searcherFactory = new SearcherFactory();\n }\n this.searcherFactory = searcherFactory;\n this.taxoWriter = taxoWriter;\n DirectoryTaxonomyReader taxoReader = new DirectoryTaxonomyReader(taxoWriter);\n current =\n new SearcherAndTaxonomy(\n SearcherManager.getSearcher(\n searcherFactory, DirectoryReader.open(writer, applyAllDeletes, false), null),\n taxoReader);\n this.taxoEpoch = taxoWriter.getTaxonomyEpoch();\n }", "public static interface SearchType\n\t{\n\t\t/**\n\t\t * Creates a search of this type with the given query\n\t\t * \n\t\t * @param search The search query\n\t\t * @param builder The search builder that is compiling the search\n\t\t * @return The compiled search object representing the given query\n\t\t */\n\t\tpublic abstract Search create(String search, SearchBuilder builder);\n\n\t\t/** @return All headers that may begin a search of this type */\n\t\tpublic abstract String [] getHeaders();\n\t}", "private synchronized IndexService createIndexService(\n IndexService.IndexCreationContext indexCreationContext,\n IndexMetadata indexMetadata,\n IndicesQueryCache indicesQueryCache,\n IndicesFieldDataCache indicesFieldDataCache,\n List<IndexEventListener> builtInListeners,\n IndexingOperationListener... indexingOperationListeners\n ) throws IOException {\n final IndexSettings idxSettings = new IndexSettings(indexMetadata, settings, indexScopedSettings);\n if (EngineConfig.INDEX_OPTIMIZE_AUTO_GENERATED_IDS.exists(idxSettings.getSettings())) {\n throw new IllegalArgumentException(\n \"Setting [\" + EngineConfig.INDEX_OPTIMIZE_AUTO_GENERATED_IDS.getKey() + \"] was removed in version 7.0.0\"\n );\n }\n // we ignore private settings since they are not registered settings\n indexScopedSettings.validate(indexMetadata.getSettings(), true, true, true);\n logger.debug(\n \"creating Index [{}], shards [{}]/[{}] - reason [{}]\",\n indexMetadata.getIndex(),\n idxSettings.getNumberOfShards(),\n idxSettings.getNumberOfReplicas(),\n indexCreationContext\n );\n\n final IndexModule indexModule = new IndexModule(\n idxSettings,\n analysisRegistry,\n getEngineFactory(idxSettings),\n getEngineConfigFactory(idxSettings),\n directoryFactories,\n () -> allowExpensiveQueries,\n indexNameExpressionResolver,\n recoveryStateFactories\n );\n for (IndexingOperationListener operationListener : indexingOperationListeners) {\n indexModule.addIndexOperationListener(operationListener);\n }\n pluginsService.onIndexModule(indexModule);\n for (IndexEventListener listener : builtInListeners) {\n indexModule.addIndexEventListener(listener);\n }\n return indexModule.newIndexService(\n indexCreationContext,\n nodeEnv,\n xContentRegistry,\n this,\n circuitBreakerService,\n bigArrays,\n threadPool,\n scriptService,\n clusterService,\n client,\n indicesQueryCache,\n mapperRegistry,\n indicesFieldDataCache,\n namedWriteableRegistry,\n this::isIdFieldDataEnabled,\n valuesSourceRegistry,\n remoteDirectoryFactory,\n translogFactorySupplier,\n this::getClusterDefaultRefreshInterval,\n this::getClusterRemoteTranslogBufferInterval\n );\n }", "protected SearchSearchResponse doNewSearch(QueryContext queryContext) throws Exception {\n\t\t\n\t\tBooleanQuery query = _queryBuilder.buildSearchQuery(queryContext);\n\t\t\n\t\tBooleanQuery rescoreQuery = \n\t\t\t\t_queryBuilder.buildRescoreQuery(queryContext);\n\t\t\n\t\tList<Aggregation> aggregations = getAggregations(queryContext);\n\n\t\treturn execute(queryContext, query, rescoreQuery, aggregations);\n\t}", "protected void addScanners(FileScanner[] scanners, int startIndex, \n Vector fileSets) {\n for (int i=0; i<fileSets.size(); i++) {\n FileSet fs = (FileSet) fileSets.elementAt(i);\n scanners[startIndex+i] = fs.getDirectoryScanner(project);\n }\n }", "public static Index getInstance(List<Object> fieldNames, String indexName) {\n return getInstance(fieldNames, indexName, IndexType.JSON);\n }", "public SearcherTaxonomyManager(\n IndexWriter writer, SearcherFactory searcherFactory, DirectoryTaxonomyWriter taxoWriter)\n throws IOException {\n this(writer, true, searcherFactory, taxoWriter);\n }", "public void createLocations() {\n createAirports();\n createDocks();\n createEdges();\n createCrossroads();\n }", "public Searcher(String name, Cell index, double radius){\n\t\tthis.name = name;\n\t\tthis.index = index;\n\t\tthis.radius = radius;\n\t\tsetRand(new Random());\n\t\tmakeRandColor();\n\t}", "@Override\n public void updateItemSearchIndex() {\n try {\n // all item IDs that don't have a search index yet\n int[] allMissingIds = mDatabaseAccess.itemsDAO().selectMissingSearchIndexIds();\n // Selects the item to the id, extract all parts of the item name to create the\n // search index (all ItemSearchEntity's) and insert them into the database\n for (int missingId : allMissingIds) {\n try {\n ItemEntity item = mDatabaseAccess.itemsDAO().selectItem(missingId);\n List<ItemSearchEntity> searchEntities = createItemSearchIndex(item);\n mDatabaseAccess.itemsDAO().insertItemSearchParts(searchEntities);\n } catch (Exception ex) {\n Log.e(TAG, \"An error occurred trying to create the search index to the id\" +\n missingId, ex);\n }\n }\n } catch (Exception ex) {\n Log.e(TAG, \"A general failure has occurred while trying to load and process all \" +\n \"item IDs to generate a search index\", ex);\n }\n }", "public Warehouse() {\n\t\tindexes = new ArrayList<Integer>();\n\t\tlengths = new ArrayList<Integer>();\n\t\t\n\t\t// Initialize suffix tree\n\t\tin = new GeneralizedSuffixTree();\n\t\t\n\t\t// Get the number of cores available at runtime\n\t\tnumOfCores = Runtime.getRuntime().availableProcessors();\n\t\t\n\t\t// This list has to be synchronized because it gets filled\n\t\t// up by multiple threads\n\t\tsetForTypeahead = Collections.synchronizedSet(new HashSet<String>());\n\t\t\n\t\t// This list has to be synchronized because it gets filled\n\t\t// up by multiple threads\n\t\tsetForSuggestions = Collections.synchronizedSet(new HashSet<StringScore>());\n\t\t\n\t\t// This list has to be synchronized because it gets filled\n\t\t// up by multiple threads\n\t\tsetForPredicates = Collections.synchronizedSet(new HashSet<StringScore>());\n\t\t\n\t\t\n\t\t// Map for semantic relations for words\n\t\tsemanticRelationsMap = new HashMap<String, ArrayList<String>> ();\n\t\t\n\t\t// Stats variables initialized\n\t\tnumOfSearchTasks = numOfIndexHits = 0;\n\t\tpruningPercentage = totalTime = suffixTreeTime = 0.0;\n\t}", "private void _writeLocators(final String name, final Set<Locator> locators) throws IOException {\n if (locators.isEmpty()) {\n return;\n }\n _out.key(name);\n _out.startArray();\n for (Locator loc: locators) {\n _out.value(loc.toExternalForm());\n }\n _out.endArray();\n }", "private void createActionListener() {\n this.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n SearchBox source = (SearchBox) e.getSource();\n searchLinker.doSearch(source.getText());\n }\n });\n }", "public void run(){\n\t\tif(searchHow==0){\n\t\t\tint isbnCount = 0;\n\t\t\tfor(int i=0; i<db.size(); i++){\n\t\t\t\t\tSearchRequest requestIsbn = new SearchRequest(db, searchForThis, isbnCount, db.size());\n\t\t\t\t\tdb.searchByISBN(requestIsbn);\n\t\t\t\t\tisbnCount = requestIsbn.foundPos;\n\t\t\t\t\tif (requestIsbn.foundPos >= 0) {\n\t\t\t\t\t\tisbnCount++;\n\t\t\t\t\t\tString formatThis = \"Matched ISBN at position: \" + requestIsbn.foundPos;\n\t\t\t\t\t\tSystem.out.printf(\"%-35s || Title: \"+db.getBook(requestIsbn.foundPos)+\"\\n\",formatThis);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\ti=db.size();\n\t\t\t}\n\t\t}\n\t\tif(searchHow==1){\n\t\t\tint titleCount = 0;\n\t\t\tfor(int i=0; i<db.size(); i++){\n\t\t\t\t\tSearchRequest requestTitle = new SearchRequest(db, searchForThis, titleCount, db.size());\n\t\t\t\t\tdb.searchByTitle(requestTitle);\n\t\t\t\t\ttitleCount = requestTitle.foundPos;\n\t\t\t\t\tif (requestTitle.foundPos >= 0) {\n\t\t\t\t\t\ttitleCount++;\n\t\t\t\t\t\tString formatThis = \"Matched title at position: \" + requestTitle.foundPos;\n\t\t\t\t\t\tSystem.out.printf(\"%-35s || Title: \"+db.getBook(requestTitle.foundPos)+\"\\n\",formatThis);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\ti=db.size();\n\t\t\t}\n\t\t}\n\t\tif(searchHow==2){\n\t\t\tint authorCount = 0;\n\t\t\tfor(int i=0; i<db.size(); i++){\n\t\t\t\t\tSearchRequest requestAuthor = new SearchRequest(db, searchForThis, authorCount, db.size());\n\t\t\t\t\tdb.searchByAuthor(requestAuthor);\n\t\t\t\t\tauthorCount = requestAuthor.foundPos;\n\t\t\t\t\tif (requestAuthor.foundPos >= 0) {\n\t\t\t\t\t\tauthorCount++;\n\t\t\t\t\t\tString formatThis = \"Matched author at position: \" + requestAuthor.foundPos;\n\t\t\t\t\t\tSystem.out.printf(\"%-35s || Title: \"+db.getBook(requestAuthor.foundPos)+\"\\n\",formatThis);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\ti=db.size();\n\t\t\t}\n\t\t}\n\t\tif(searchHow==3){\n\t\t\tint pageCount = 0;\n\t\t\tfor(int i=0; i<db.size(); i++){\n\t\t\t\t\tSearchRequest requestPage = new SearchRequest(db, searchForThis, pageCount, db.size());\n\t\t\t\t\tdb.searchByNumPages(requestPage);\n\t\t\t\t\tpageCount = requestPage.foundPos;\n\t\t\t\t\tif (requestPage.foundPos >= 0) {\n\t\t\t\t\t\tpageCount++;\n\t\t\t\t\t\tString formatThis = \"Matched pages at position: \" + requestPage.foundPos;\n\t\t\t\t\t\tSystem.out.printf(\"%-35s || Title: \"+db.getBook(requestPage.foundPos)+\"\\n\",formatThis);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\ti=db.size();\n\t\t\t}\n\t\t}\n\t\tif(searchHow==4){\n\t\t\tint yearCount = 0;\n\t\t\tfor(int i=0; i<db.size(); i++){\n\t\t\t\t\tSearchRequest requestYear = new SearchRequest(db, searchForThis, yearCount, db.size());\n\t\t\t\t\tdb.searchByYear(requestYear);\n\t\t\t\t\tyearCount = requestYear.foundPos;\n\t\t\t\t\tif (requestYear.foundPos >= 0) {\n\t\t\t\t\t\tyearCount++;\n\t\t\t\t\t\tString formatThis = \"Matched year at position: \" + requestYear.foundPos;\n\t\t\t\t\t\tSystem.out.printf(\"%-35s || Title: \"+db.getBook(requestYear.foundPos)+\"\\n\",formatThis);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\ti=db.size();\n\t\t\t}\n\t\t}\n\t}" ]
[ "0.579269", "0.5782084", "0.5512487", "0.5415431", "0.5342766", "0.53181404", "0.5216957", "0.5146001", "0.51237696", "0.5123612", "0.5114773", "0.5102891", "0.5053942", "0.5010541", "0.4998859", "0.4981846", "0.4942572", "0.49040654", "0.4898356", "0.48934278", "0.4886135", "0.48731118", "0.48541003", "0.48408726", "0.48022664", "0.47989285", "0.4798436", "0.47954044", "0.4775828", "0.4771672", "0.47677356", "0.47664887", "0.47337422", "0.47281882", "0.47272688", "0.47227916", "0.47184125", "0.47019577", "0.46918142", "0.468674", "0.4681135", "0.46762568", "0.46656036", "0.46518332", "0.46458995", "0.46259472", "0.46240065", "0.46072558", "0.4601947", "0.45990765", "0.45909", "0.45860487", "0.4567358", "0.45618516", "0.45576122", "0.45515344", "0.45512313", "0.45470795", "0.45466718", "0.45435387", "0.45435387", "0.45398477", "0.45380762", "0.45289463", "0.45181176", "0.45160416", "0.4493722", "0.44929886", "0.44837272", "0.44771942", "0.44748488", "0.4474451", "0.44661018", "0.4465794", "0.44655702", "0.44639668", "0.44636807", "0.44565985", "0.44558853", "0.4455579", "0.44461435", "0.4441832", "0.44390723", "0.44354063", "0.44230098", "0.44198957", "0.44147146", "0.44112614", "0.44099784", "0.440108", "0.43994662", "0.43986845", "0.43943083", "0.4392499", "0.438963", "0.4382967", "0.43806297", "0.43728527", "0.43652347", "0.43577984" ]
0.68145
0
Create a Summa index.
public static File createIndex(File indexDescriptor, File destination, List<Pair<String, List<Pair<String, String>>>> corpus) throws Exception { Configuration indexConf = Configuration.load("integration/distribution/index_configuration.xml"); indexConf.set(IndexControllerImpl.CONF_INDEX_ROOT_LOCATION, destination.getAbsolutePath()); indexConf.getSubConfiguration(IndexDescriptor.CONF_DESCRIPTOR). set(IndexDescriptor.CONF_ABSOLUTE_LOCATION, indexDescriptor.getAbsolutePath()); IndexControllerImpl indexer = new IndexControllerImpl(indexConf); PayloadFeederHelper feeder = new PayloadFeederHelper(createPayloads(indexDescriptor, corpus)); indexer.setSource(feeder); //noinspection StatementWithEmptyBody while (indexer.pump()) { } indexer.close(true); return indexer.getIndexLocation(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public generateIndex() {\n\n\t\tthis.analyzer = \"StandardAnalyzer\";\n\t}", "indexSet createindexSet();", "InstAssignIndex createInstAssignIndex();", "LuceneMemoryIndex createLuceneMemoryIndex();", "public void createIndex() {\n String indexName = INDEX_BASE + \"-\" +\n LocalDateTime.now().format(DateTimeFormatter.ofPattern(\"yyyyMMddHHmmss\"));\n\n Settings settings = Settings.builder()\n .put(\"number_of_shards\", 1)\n .put(\"number_of_replicas\", 0)\n .build();\n CreateIndexRequest request = new CreateIndexRequest(indexName, settings);\n\n String mapping = \"{\\n\" +\n \" \\\"article\\\": {\\n\" +\n \" \\\"properties\\\": {\\n\" +\n \" \\\"title\\\": {\\n\" +\n \" \\\"type\\\": \\\"text\\\"\\n\" +\n \" },\\n\" +\n \" \\\"author\\\": {\\n\" +\n \" \\\"type\\\": \\\"keyword\\\"\\n\" +\n \" },\\n\" +\n \" \\\"issue\\\": {\\n\" +\n \" \\\"type\\\": \\\"keyword\\\"\\n\" +\n \" },\\n\" +\n \" \\\"link\\\": {\\n\" +\n \" \\\"type\\\": \\\"keyword\\\"\\n\" +\n \" },\\n\" +\n \" \\\"description\\\": {\\n\" +\n \" \\\"type\\\": \\\"text\\\"\\n\" +\n \" },\\n\" +\n \" \\\"postDate\\\": {\\n\" +\n \" \\\"type\\\": \\\"date\\\",\\n\" +\n \" \\\"format\\\": \\\"yyyy-MM-dd\\\"\\n\" +\n \" }\\n\" +\n \" }\\n\" +\n \" }\\n\" +\n \" }\";\n\n request.mapping(\"article\", mapping, XContentType.JSON);\n request.alias(new Alias(INDEX_BASE));\n\n try {\n CreateIndexResponse createIndexResponse = this.client.admin().indices().create(request).get();\n if (!createIndexResponse.isAcknowledged()) {\n throw new ElasticExecutionException(\"Create java_magazine index was not acknowledged\");\n }\n } catch (InterruptedException | ExecutionException e) {\n logger.error(\"Error while creating an index\", e);\n throw new ElasticExecutionException(\"Error when trying to create an index\");\n }\n }", "public void createIndex(Configuration configuration){\n }", "public SimpleIndexFactory() {\n\t}", "@Test\n public void testIndexMaintenanceWithIndexOnMethodtoArray() throws Exception {\n Index i1 = qs.createIndex(\"indx1\", IndexType.FUNCTIONAL, \"pf.getID\",\n SEPARATOR + \"portfolio.toArray() pf\");\n assertTrue(i1 instanceof CompactRangeIndex);\n Cache cache = CacheUtils.getCache();\n region = CacheUtils.getRegion(SEPARATOR + \"portfolio\");\n region.put(\"4\", new Portfolio(4));\n region.put(\"5\", new Portfolio(5));\n CompactRangeIndex ri = (CompactRangeIndex) i1;\n validateIndexForValues(ri);\n }", "public void testCreateAggregator() throws Exception {\n testCreateIndex();\n List<SummaSearcher> searchers = createSearchers(Arrays.asList(new File(INDEX_ROOT, \"index_1\")));\n SummaSearcher aggregator = createAggregator(searchers);\n log.info(\"Aggregated search for 'bar' resulted in:\\n\" + search(aggregator, \"bar\"));\n assertTrue(\"The result should contain a field with 'bar'\",\n search(aggregator, \"bar\").contains(\"<field name=\\\"single_token\\\">bar</field>\"));\n close(searchers);\n }", "@Test\n public void testIndexMaintenanceWithIndexOnMethodAsSet() throws Exception {\n Index i1 = qs.createIndex(\"indx1\", IndexType.FUNCTIONAL, \"pf.getID\",\n SEPARATOR + \"portfolio.asSet() pf\");\n CacheUtils.getCache();\n region = CacheUtils.getRegion(SEPARATOR + \"portfolio\");\n region.put(\"4\", new Portfolio(4));\n region.put(\"5\", new Portfolio(5));\n CompactRangeIndex ri = (CompactRangeIndex) i1;\n validateIndexForValues(ri);\n }", "@Test\n public void testIndexMaintenanceWithIndexOnMethodEntrySet() throws Exception {\n Index i1 = qs.createIndex(\"indx1\", IndexType.FUNCTIONAL, \"entries.value.getID\",\n SEPARATOR + \"portfolio.entrySet() entries\");\n CacheUtils.getCache();\n region = CacheUtils.getRegion(SEPARATOR + \"portfolio\");\n region.put(\"4\", new Portfolio(4));\n region.put(\"5\", new Portfolio(5));\n CompactRangeIndex ri = (CompactRangeIndex) i1;\n validateIndexForEntries(ri);\n }", "boolean createIndex(String indexName);", "private void createProductIndex() {\n\t\tLinkedList<String> ids = new LinkedList<>(productIds.keySet());\n\t\tArrayList<ArrayList<Integer>> vals = new ArrayList<>(productIds.values());\n\t\tint k = 8;\n\t\tKFront kf = new KFront();\n\t\tkf.createKFront(k, ids);\n\t\tfor (int i = 0; i < vals.size(); i++) {\n\t\t\tkf.getTable().get(i).addAll(vals.get(i));\n\t\t}\n\n\t\tProductIndex pIndex = new ProductIndex(k);\n\t\tpIndex.insertData(kf.getTable(), kf.getConcatString());\n\t\tsaveToDir(PRODUCT_INDEX_FILE, pIndex);\n\t}", "public String createDSIndex(String dsID, String dschemaID, String attriName);", "public void start() throws Exception {\n\n createIndex();\n }", "@Ignore\n @Test\n public void testCreateIndex() {\n System.out.println(\"createIndex\");\n Util.commonServiceIPs=\"127.0.0.1\";\n \n EntityManager em=Util.getEntityManagerFactory(100).createEntityManager();\n EntityManager platformEm = Util.getPlatformEntityManagerFactory().createEntityManager();\n \n Client client = ESUtil.getClient(em,platformEm,1,false);\n \n RuntimeContext.dataobjectTypes = Util.getDataobjectTypes();\n String indexName = \"test000000\";\n try {\n ESUtil.createIndex(platformEm, client, indexName, true);\n }\n catch(Exception e)\n {\n \n }\n \n\n }", "@Test\n public void testIndexMaintenanceWithIndexOnMethodValues() throws Exception {\n Index i1 = qs.createIndex(\"indx1\", IndexType.FUNCTIONAL, \"pf.getID\",\n SEPARATOR + \"portfolio.values() pf\");\n assertTrue(i1 instanceof CompactRangeIndex);\n Cache cache = CacheUtils.getCache();\n region = CacheUtils.getRegion(SEPARATOR + \"portfolio\");\n region.put(\"4\", new Portfolio(4));\n region.put(\"5\", new Portfolio(5));\n CompactRangeIndex ri = (CompactRangeIndex) i1;\n validateIndexForValues(ri);\n }", "@Test\n public void testIndexMaintenanceWithIndexOnMethodKeySet() throws Exception {\n Index i1 =\n qs.createIndex(\"indx1\", IndexType.FUNCTIONAL, \"ks.toString\",\n SEPARATOR + \"portfolio.keySet() ks\");\n CacheUtils.getCache();\n region = CacheUtils.getRegion(SEPARATOR + \"portfolio\");\n region.put(\"4\", new Portfolio(4));\n region.put(\"5\", new Portfolio(5));\n CompactRangeIndex ri = (CompactRangeIndex) i1;\n validateIndexForKeys(ri);\n }", "private void createTokenIndex(){\n\t\tLinkedList<String> tokens = new LinkedList<>(tokenDict.keySet());\n\t\tArrayList<ArrayList<Integer>> vals = new ArrayList<>(tokenDict.values());\n\t\tint k = 8;\n\n\t\tKFront kf = new KFront(true);\n\t\tkf.createKFront(k, tokens);\n\n\t\tTokensIndex tIdx = new TokensIndex(k, this.dir);\n\t\ttIdx.insertData(kf.getTable(), vals, kf.getConcatString());\n\n\t\tsaveToDir(TOKEN_INDEX_FILE, tIdx);\n\t}", "public void testCreIdx(){\r\n\t \r\n\t String dataDir = \"C:\\\\study\\\\Lucene\\\\Data\";\r\n\t String idxDir = \"C:\\\\study\\\\Lucene\\\\Index\";\r\n\t \r\n\t LuceneUtils.delAll(idxDir);\r\n\t \r\n\t CreateIndex ci = new CreateIndex();\r\n\t \r\n\t ci.Indexer(new File(idxDir), new File(dataDir));\r\n\t \r\n\t\t\r\n\t}", "public interface Index {\n\t\n\tvoid index(AddOnInfoAndVersions infoAndVersions) throws Exception;\n\t\n\tCollection<AddOnInfoSummary> search(AddOnType type, String query) throws Exception;\n\t\n\tCollection<AddOnInfoAndVersions> getAllByType(AddOnType type) throws Exception;\n\t\n\tCollection<AddOnInfoAndVersions> getByTag(String tag) throws Exception;\n\t\n\tAddOnInfoAndVersions getByUid(String uid) throws Exception;\n}", "public createIndex_result(createIndex_result other) {\n }", "@Override\n public void buildIndexes(Properties props)\n {\n Statement statement;\n try\n {\n statement = connection.createStatement();\n \n //Create Indexes\n statement.executeUpdate(\"CREATE INDEX CONFFRIENDSHIP_INVITEEID ON CONFFRIENDSHIP (INVITEEID)\");\n statement.executeUpdate(\"CREATE INDEX CONFFRIENDSHIP_INVITERID ON CONFFRIENDSHIP (INVITERID)\");\n statement.executeUpdate(\"CREATE INDEX PENDFRIENDSHIP_INVITEEID ON PENDFRIENDSHIP (INVITEEID)\");\n statement.executeUpdate(\"CREATE INDEX PENDFRIENDSHIP_INVITERID ON PENDFRIENDSHIP (INVITERID)\");\n statement.executeUpdate(\"CREATE INDEX MANIPULATION_RID ON MANIPULATION (RID)\");\n statement.executeUpdate(\"CREATE INDEX MANIPULATION_CREATORID ON MANIPULATION (CREATORID)\");\n statement.executeUpdate(\"CREATE INDEX RESOURCES_WALLUSERID ON RESOURCES (WALLUSERID)\");\n statement.executeUpdate(\"CREATE INDEX RESOURCE_CREATORID ON RESOURCES (CREATORID)\");\n \n System.out.println(\"Indexes Built\");\n }\n catch (Exception ex)\n {\n Logger.getLogger(WindowsAzureClientInit.class.getName()).log(Level.SEVERE, null, ex);\n System.out.println(\"Error in building indexes!\");\n }\n }", "private static RDFIndex createDefaultIndex() {\n defaultIndex = new RDFIndex(com.hp.hpl.jena.graph.Factory.createGraphMem());\n try {\n File indexFile = new File(INDEX_FILE);\n if(indexFile.exists()) {\n defaultIndex.read(new FileReader(indexFile),Constants.RESOURCE_URL);\n }\n } catch(Throwable t) {\n t.printStackTrace();\n }\n return defaultIndex;\n }", "private synchronized void criarIndice() throws Exception {\r\n\t\tIndexWriter indexWriter = getWriterPadrao(true);\r\n\t\ttry {\r\n\t\t\tindexWriter.getAnalyzer().close();\r\n\t\t\tindexWriter.close();\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "ByteArrayIndex createByteArrayIndex();", "String createIndex() {\n\t\tboolean res = indexExists();\n\t\t@SuppressWarnings(\"unused\")\n\t\tint resCode;\n\t\tif (!res) {\n\t\t\tresCode = doHttpOperation(esIndexUrl, HTTP_PUT, null);\n\t\t}\n\t\treturn lastResponse;\n\t}", "public H_index() {\n\t\tsuper();\n\t}", "public createIndex_args(createIndex_args other) {\n }", "public void createIndex(Index index) {\n Span span = this.tracer.buildSpan(\"Client.CreateIndex\").start();\n try {\n String path = String.format(\"/index/%s\", index.getName());\n String body = index.getOptions().toString();\n ByteArrayEntity data = new ByteArrayEntity(body.getBytes(StandardCharsets.UTF_8));\n clientExecute(\"POST\", path, data, null, \"Error while creating index\");\n } finally {\n span.finish();\n }\n }", "public IndexedTensor sum(String index) {\n int indexIndex = indices.indexOf(index);\n if (indexIndex == -1) return this;\n IndexedTensor[] tensorList = new IndexedTensor[size[indexIndex]];\n for (int s = 0; s < size[indexIndex]; s++) {\n Map<String, Integer> tempMap = new HashMap<>();\n tempMap.put(index, s);\n tensorList[s] = get(tempMap);\n }\n return add(tensorList);\n }", "public void addIndex(){\n\t\tdbCol=mdb.getCollection(\"genericCollection\");\n\t\tstart=Calendar.getInstance().getTimeInMillis();\n\t\tdbCol.ensureIndex(new BasicDBObject(\"RandomGeo\", \"2d\"));\n\t\tstop = Calendar.getInstance().getTimeInMillis() - start;\n\t\tSystem.out.println(\"Mongo Index Timer \"+Long.toString(stop));\n\t}", "public long index() {\n return manager.compactIndex();\n }", "public void createIndex(final String name) {\n createIndex(new BasicDBObject(name, 1));\n }", "public void createIndex() throws IOException {\n\t\tindexWriter.commit();\n\t\ttaxoWriter.commit();\n\n\t\t// categories\n\t\tfor (Article.Facets f : Article.Facets.values()) {\n\t\t\ttaxoWriter.addCategory(new CategoryPath(f.toString()));\n\t\t}\n\t\ttaxoWriter.commit();\n\n\t\tfinal Iterable<Article> articles = articleRepository.findAll();\n\t\tint c = 0;\n\t\tfor (Article article : articles) {\n\t\t\taddArticle(indexWriter, taxoWriter, article);\n\t\t\tc++;\n\t\t}\n\t\t// commit\n\t\ttaxoWriter.commit();\n\t\tindexWriter.commit();\n\n\t\ttaxoWriter.close();\n\t\tindexWriter.close();\n\n\t\ttaxoDirectory.close();\n\t\tindexDirectory.close();\n\t\tLOGGER.debug(\"{} articles indexed\", c);\n\t}", "@Test\n public void testIndexMaintenanceWithIndexOnMethodKeys() throws Exception {\n Index i1 = qs.createIndex(\"indx1\", IndexType.FUNCTIONAL, \"ks.toString\",\n SEPARATOR + \"portfolio.keys() ks\");\n CacheUtils.getCache();\n region = CacheUtils.getRegion(SEPARATOR + \"portfolio\");\n region.put(\"4\", new Portfolio(4));\n region.put(\"5\", new Portfolio(5));\n CompactRangeIndex ri = (CompactRangeIndex) i1;\n validateIndexForKeys(ri);\n }", "@Test\n public void testIndexMaintenanceWithIndexOnMethodAsList() throws Exception {\n Index i1 = qs.createIndex(\"indx1\", IndexType.FUNCTIONAL, \"pf.getID\",\n SEPARATOR + \"portfolio.asList() pf\");\n CacheUtils.getCache();\n region = CacheUtils.getRegion(SEPARATOR + \"portfolio\");\n region.put(\"4\", new Portfolio(4));\n region.put(\"5\", new Portfolio(5));\n CompactRangeIndex ri = (CompactRangeIndex) i1;\n validateIndexForValues(ri);\n }", "@Test\n public void testIndexMaintenanceWithIndexOnMethodGetValues() throws Exception {\n Index i1 =\n qs.createIndex(\"indx1\", IndexType.FUNCTIONAL, \"pf.getID\",\n SEPARATOR + \"portfolio.getValues() pf\");\n assertTrue(i1 instanceof CompactRangeIndex);\n Cache cache = CacheUtils.getCache();\n region = CacheUtils.getRegion(SEPARATOR + \"portfolio\");\n region.put(\"4\", new Portfolio(4));\n region.put(\"5\", new Portfolio(5));\n CompactRangeIndex ri = (CompactRangeIndex) i1;\n validateIndexForValues(ri);\n }", "public interface IndexBuilder {\n\n /**\n * Rebuilds the index only when the existing index is not populated.\n */\n void rebuildIfNecessary();\n\n}", "public void indexCreate()\n {\n try{\n Directory dir = FSDirectory.open(Paths.get(\"indice/\"));\n Analyzer analyzer = new StandardAnalyzer();\n IndexWriterConfig iwc = new IndexWriterConfig(analyzer);\n iwc.setOpenMode(OpenMode.CREATE);\n IndexWriter writer = new IndexWriter(dir,iwc);\n MongoConnection mongo = MongoConnection.getMongo();\n mongo.OpenMongoClient();\n DBCursor cursor = mongo.getTweets();\n Document doc = null;\n\n while (cursor.hasNext()) {\n DBObject cur = cursor.next();\n if (cur.get(\"retweet\").toString().equals(\"false\")) {\n doc = new Document();\n doc.add(new StringField(\"id\", cur.get(\"_id\").toString(), Field.Store.YES));\n doc.add(new TextField(\"text\", cur.get(\"text\").toString(), Field.Store.YES));\n doc.add(new StringField(\"analysis\", cur.get(\"analysis\").toString(), Field.Store.YES));\n //doc.add(new StringField(\"finalCountry\",cur.get(\"finalCountry\").toString(),Field.Store.YES));\n doc.add(new StringField(\"userScreenName\", cur.get(\"userScreenName\").toString(), Field.Store.YES));\n doc.add(new StringField(\"userFollowersCount\", cur.get(\"userFollowersCount\").toString(), Field.Store.YES));\n doc.add(new StringField(\"favoriteCount\", cur.get(\"favoriteCount\").toString(), Field.Store.YES));\n\n if (writer.getConfig().getOpenMode() == OpenMode.CREATE) {\n System.out.println(\"Indexando el tweet: \" + doc.get(\"text\") + \"\\n\");\n writer.addDocument(doc);\n System.out.println(doc);\n } else {\n System.out.println(\"Actualizando el tweet: \" + doc.get(\"text\") + \"\\n\");\n writer.updateDocument(new Term(\"text\" + cur.get(\"text\")), doc);\n System.out.println(doc);\n }\n }\n }\n cursor.close();\n writer.close();\n }\n catch(IOException ioe){\n System.out.println(\" Error en \"+ ioe.getClass() + \"\\n mensaje: \" + ioe.getMessage());\n }\n }", "@Test\n public void testIndexMaintenanceWithIndexOnMethodGetEntries() throws Exception {\n Index i1 = qs.createIndex(\"indx1\", IndexType.FUNCTIONAL, \"entries.value.getID\",\n SEPARATOR + \"portfolio.getEntries() entries\");\n CacheUtils.getCache();\n region = CacheUtils.getRegion(SEPARATOR + \"portfolio\");\n region.put(\"4\", new Portfolio(4));\n region.put(\"5\", new Portfolio(5));\n CompactRangeIndex ri = (CompactRangeIndex) i1;\n validateIndexForEntries(ri);\n }", "public AutoIndexMap()\n\t\t{\n\t\t\t// Initialise instance variables\n\t\t\tindices = new IdentityHashMap<>();\n\t\t}", "@SuppressWarnings(\"unused\")\n public void buildIndex() throws IOException {\n indexWriter = getIndexWriter(indexDir);\n ArrayList <JSONObject> jsonArrayList = parseJSONFiles(JSONdir);\n indexTweets(jsonArrayList, indexWriter);\n indexWriter.close();\n }", "public TranscriptionIndexer() throws SQLException, CorruptIndexException, IOException\r\n {\r\n\r\n\r\n IndexWriter writer = null;\r\n Analyzer analyser;\r\n Directory directory;\r\n /**@TODO parameterized location*/\r\n String dest = \"/usr/indexTranscriptions\";\r\n\r\n directory = FSDirectory.getDirectory(dest, true);\r\n analyser = new StandardAnalyzer();\r\n writer = new IndexWriter(directory, analyser, true);\r\n PreparedStatement stmt=null;\r\n Connection j = null;\r\n try {\r\n j=DatabaseWrapper.getConnection();\r\n String query=\"select * from transcription where text!='' and creator>0 order by folio, line\";\r\n stmt=j.prepareStatement(query);\r\n ResultSet rs=stmt.executeQuery();\r\n while(rs.next())\r\n {\r\n int folio=rs.getInt(\"folio\");\r\n int line=rs.getInt(\"line\");\r\n int UID=rs.getInt(\"creator\");\r\n int id=rs.getInt(\"id\");\r\n Transcription t=new Transcription(id);\r\n Document doc = new Document();\r\n Field field;\r\n field = new Field(\"text\", t.getText(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"comment\", t.getComment(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"creator\", \"\" + t.UID, Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"security\", \"\" + \"private\", Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"line\", \"\" + t.getLine(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"page\", \"\" + t.getFolio(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"id\", \"\" + t.getLineID(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"manuscript\", \"\" + new Manuscript(t.getFolio()).getID(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"projectID\", \"\" + t.getProjectID(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n writer.addDocument(doc);\r\n }\r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n if(writer!=null)\r\n {\r\n writer.commit();\r\n \twriter.close();\r\n return;\r\n }\r\n ex.printStackTrace();\r\n }\r\n finally{\r\n DatabaseWrapper.closeDBConnection(j);\r\n DatabaseWrapper.closePreparedStatement(stmt);\r\n }\r\n\r\n writer.commit();\r\n \twriter.close();\r\n}", "public IndexBuilder(InvertedIndex index) {\n\t\tthis.index = index;\n\t}", "IndexCreated createIndex(String name, Index index) throws ElasticException;", "public ATExpression base_indexExpression();", "public abstract void updateIndex();", "public Indexer() {\n }", "@ManagedOperation(description = \"Starts rebuilding the index\", displayName = \"Rebuild index\")\n void start();", "public interface IIndexBuilder {\n\n public IIndex getIndex( Class<?> searchable ) throws BuilderException;\n\n public IFieldVisitor getFieldVisitor();\n\n public void setFieldVisitor( IFieldVisitor visitor );\n\n}", "IndexNameReference createIndexNameReference();", "void createIndex(){\n int index=0;\n for(int i=0;i<ancogs.size();i++)\n if(!cogToIndex.containsKey(ancogs.get(i).getValue2()))\n cogToIndex.put(ancogs.get(i).getValue2(), index++);\n}", "public void enableIndexAutoCreation() {\n client.setIndexAutoCreationEnabled(true);\n }", "public static IndexExpression makeIndex(Expression instance, PropertyInfo indexer, Iterable<Expression> arguments) { throw Extensions.todo(); }", "public ServiceIndexesPerDateRecord() {\n super(ServiceIndexesPerDate.SERVICE_INDEXES_PER_DATE);\n }", "public static String generateEsIndex() {\n return new Generex(PatternValidator.ESINDEX_PATTERN).random();\n }", "public InnodbIndexStats() {\n this(DSL.name(\"innodb_index_stats\"), null);\n }", "public InnodbIndexStats(Name alias) {\n this(alias, INNODB_INDEX_STATS);\n }", "public void addIndex() throws JNCException {\n setLeafValue(Epc.NAMESPACE,\n \"index\",\n null,\n childrenNames());\n }", "void indexReset();", "public static void main(String[] args) throws CorruptIndexException, LockObtainFailedException, IOException, ParseException{\n\t\tboolean lucene_im_mem = false;\n\t\t//1. Build the Index with varying \"database size\"\n\t\tString dirName =\"/data/home/duy113/SupSearchExp/AIDSNew/\";\n//\t\tString dirName = \"/Users/dayuyuan/Documents/workspace/Experiment/\";\n\t\tString dbFileName = dirName + \"DBFile\";\n\t\tString trainQueryName= dirName + \"TrainQuery\";\n//\t\tString testQuery15 = dirName + \"TestQuery15\";\n\t\tString testQuery25 = dirName + \"TestQuery25\";\n//\t\tString testQuery35 = dirName + \"TestQuery35\";\n\t\tGraphDatabase query = new GraphDatabase_OnDisk(testQuery25, MyFactory.getSmilesParser());\n\t\tdouble[] minSupts = new double[4];\n\t\tminSupts[0] = 0.05; minSupts[1] = 0.03; minSupts[2] =0.02; minSupts[3] = 0.01;\n \t\tint lwIndexCount[] = new int[1];\n\t\tlwIndexCount[0] = 479;\t\n//\t\tSystem.out.println(\"Build CIndexFlat Left-over: \");\n//\t\tfor(int j = 3; j< 4; j++){\n//\t\t\tdouble minSupt = minSupts[j];\n//\t\t\tfor(int i = 4; i<=10; i = i+2){\n//\t\t\t\tString baseName = dirName + \"G_\" + i + \"MinSup_\" + minSupt + \"/\";\n//\t\t\t\tGraphDatabase trainingDB = new GraphDatabase_OnDisk(dbFileName + i, MyFactory.getDFSCoder());\n//\t\t\t\tGraphDatabase trainQuery = new GraphDatabase_OnDisk(trainQueryName, MyFactory.getSmilesParser());\t\t\n//\t\t\t\tif(i == 2){\n//\t\t\t\t\tSystem.out.println(baseName + \"CIndexFlat\");\n//\t\t\t\t\tCIndexExp.buildIndex(trainingDB, trainQuery, trainingDB, baseName, minSupt, lwIndexCount[0]);\n//\t\t\t\t}\n//\t\t\t\telse{\n//\t\t\t\t\tString featureBaseName = dirName + \"G_2\" + \"MinSup_\" + minSupt + \"/\";\n//\t\t\t\t\tSystem.out.println(baseName + \"CIndexFlat with Features \" + featureBaseName);\n//\t\t\t\t\tCIndexExp.buildIndex(featureBaseName, trainingDB, baseName, minSupt);\n//\t\t\t\t}\n//\t\t\t\tSystem.gc();\n//\t\t\t}\n//\t\t}\n\t\tSystem.out.println(\"Run Query Processing: \");\n\t\tfor(int j = 0; j< 4; j++){\n\t\t\tdouble minSupt = minSupts[j];\n\t\t\tfor(int i = 2; i<=10; i = i+2){\n\t\t\t\tString baseName = dirName + \"G_\" + i + \"MinSup_\" + minSupt + \"/\";\n\t\t\t\tGraphDatabase trainingDB = new GraphDatabase_OnDisk(dbFileName + i, MyFactory.getDFSCoder());\n\t\t\t\tGraphDatabase trainQuery = new GraphDatabase_OnDisk(trainQueryName, MyFactory.getSmilesParser());\t\t\n\t\t\t\tif(j!=0 || i!=2){\n\t\t\t\t\tSystem.out.println(baseName + \"LWindex\");\n\t\t\t\t\t//LWIndexExp.buildIndex(trainingDB, trainQuery, trainingDB, trainQuery.getParser(),baseName, minSupt, lwIndexCount);\n\t\t\t\t\t//System.gc();\n\t\t\t\t\tLWIndexExp.runIndex(trainingDB, trainQuery, baseName, lucene_im_mem);\n\t\t\t\t\tLWIndexExp.runIndex(trainingDB, query, baseName, lucene_im_mem);\n\t\t\t\t\tSystem.gc();\t\t\n\t\t\t\t\tSystem.out.println(baseName + \"PrefixIndex\");\n\t\t\t\t\t//PrefixIndexExp.buildIndex(trainingDB, trainingDB, baseName, minSupt);\n\t\t\t\t\t//System.gc();\n\t\t\t\t\tPrefixIndexExp.runIndex(trainingDB, trainQuery, baseName, lucene_im_mem);\n\t\t\t\t\tPrefixIndexExp.runIndex(trainingDB, query, baseName, lucene_im_mem);\n\t\t\t\t\tSystem.gc();\t\t\n\t\t\t\t\tSystem.out.println(baseName + \"PrefixIndexHi\");\n\t\t\t\t\t//PrefixIndexExp.buildHiIndex(trainingDB, trainingDB, 2, baseName, minSupt);\n\t\t\t\t\t//System.gc();\n\t\t\t\t\tPrefixIndexExp.runHiIndex(trainingDB, trainQuery, baseName, lucene_im_mem);\n\t\t\t\t\tPrefixIndexExp.runHiIndex(trainingDB, query, baseName, lucene_im_mem);\n\t\t\t\t\tSystem.gc();\n\t\t\t\t\tSystem.out.println(baseName + \"GPTree\");\n\t\t\t\t\t//GPTreeExp.buildIndex(trainingDB, trainingDB, baseName, minSupt);\n\t\t\t\t\t//System.gc();\n\t\t\t\t\tGPTreeExp.runIndex(trainingDB, trainQuery, baseName, lucene_im_mem);\n\t\t\t\t\tGPTreeExp.runIndex(trainingDB, query, baseName, lucene_im_mem);\n\t\t\t\t\tSystem.gc();\n\t\t\t\t\tSystem.out.println(baseName + \"CIndexFlat\");\n\t\t\t\t\t//CIndexExp.buildIndex(trainingDB, trainQuery, trainingDB, baseName, minSupt, lwIndexCount[0]);\n\t\t\t\t\t//System.gc();\n\t\t\t\t\tCIndexExp.runIndex(trainingDB, trainQuery, baseName, lucene_im_mem);\n\t\t\t\t\tCIndexExp.runIndex(trainingDB, query, baseName, lucene_im_mem);\n\t\t\t\t\tSystem.gc();\n\t\t\t\t}\n\t\t\t\tif(j==0&&i==2){\n\t\t\t\t\tSystem.out.println(baseName + \"CIndexTopDown: \" + lwIndexCount[0]);\n\t\t\t\t\tCIndexExp.buildIndexTopDown(trainingDB, trainQuery, trainingDB,MyFactory.getUnCanDFS(), baseName, minSupt, 2*trainQuery.getTotalNum()/lwIndexCount[0] ); // 8000 test queries\n\t\t\t\t\t//System.gc();\n\t\t\t\t}\n\t\t\t\tSystem.out.println(baseName + \"CIndexTopDown: \" + lwIndexCount[0]);\n\t\t\t\tCIndexExp.runIndexTopDown(trainingDB, trainQuery, baseName, lucene_im_mem);\n\t\t\t\tCIndexExp.runIndexTopDown(trainingDB, query, baseName, lucene_im_mem);\n\t\t\t\tSystem.gc();\n\t\t\t}\n\t\t}\n\t\tAIDSLargeExp.main(args);\n\t}", "private IndexSettings buildIndexSettings(IndexMetadata metadata) {\n return new IndexSettings(metadata, settings);\n }", "private Document createMapping() {\n return getIndexOperations().createMapping();\n }", "public void afterIndexCreated(IndexService indexService) {\n\n }", "public void createIndex(String dataDirPath, String txType) throws IOException {\n\t\ttry {\n\t\t\tString inLoc = \"/mnt/3TB/in.csv\";\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(new FileInputStream(inLoc), \"UTF-8\"));\n\n\t\t\tString line;\n\t\t\tboolean first = true;\n\t\t\twhile ((line = br.readLine()) != null) {\n\t\t\t\tString[] items = line.split(\",\");\n\t\t\t\tif (items.length > 3) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tDocument doc = makeTx(items[0], items[1], Long.parseLong(items[2]), txType);\n\t\t\t\twriter.addDocument(doc);\n\t\t\t}\n\t\t\tbr.close();\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n public synchronized void buildIndex(){\n for(SlotData data : slotDataList){\n data.prepareReport();\n }\n }", "@Test\n public void testIndexMaintenanceOnPutAll() throws Exception {\n IndexManager.TEST_RANGEINDEX_ONLY = true;\n Cache cache = CacheUtils.getCache();\n qs = cache.getQueryService();\n region = CacheUtils.createRegion(\"portfolio1\", null);\n region.put(\"1\", new Portfolio(1));\n Index i1 = qs.createIndex(\"indx1\", IndexType.FUNCTIONAL, \"posvals.secId\",\n SEPARATOR + \"portfolio1 pf, pf.positions.values posvals \");\n Map data = new HashMap();\n for (int i = 1; i < 11; ++i) {\n data.put(\"\" + i, new Portfolio(i + 2));\n }\n\n region.putAll(data);\n }", "public abstract void factory(Dictionary dictionary, Suggester suggester, IndexFacade aprioriIndex, String aprioriIndexField, Analyzer aprioriAnalyzer, IndexWriter.MaxFieldLength mfl) throws IOException, QueryException;", "public void createIndex() throws IOException {\n\t\tLOGGER.info(\"creating photo index...\");\n\t\tCreateIndexRequest request = new CreateIndexRequest(\"files\");\n\t\tInputStream in = getClass().getClassLoader().getResourceAsStream(\"photo.json\");\n\t\tString mapping = new String(in.readAllBytes());\n\t\tin.close();\n\t\trequest.mapping(\"photo\", mapping, XContentType.JSON);\n\t\tCreateIndexResponse response = client.indices().create(request);\n\t\tLOGGER.info(\"photo index created: \" + response.toString());\n\t}", "private void queryIndex() {\n if (predicate == TruePredicate.INSTANCE) {\n return;\n }\n\n // get indexes\n MapService mapService = nodeEngine.getService(SERVICE_NAME);\n MapServiceContext mapServiceContext = mapService.getMapServiceContext();\n Indexes indexes = mapServiceContext.getMapContainer(name).getIndexes();\n // optimize predicate\n QueryOptimizer queryOptimizer = mapServiceContext.getQueryOptimizer();\n predicate = queryOptimizer.optimize(predicate, indexes);\n\n Set<QueryableEntry> querySet = indexes.query(predicate);\n if (querySet == null) {\n return;\n }\n\n List<Data> keys = null;\n for (QueryableEntry e : querySet) {\n if (keys == null) {\n keys = new ArrayList<Data>(querySet.size());\n }\n keys.add(e.getKeyData());\n }\n\n hasIndex = true;\n keySet = keys == null ? Collections.<Data>emptySet() : InflatableSet.newBuilder(keys).build();\n }", "public InnodbIndexStatsExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "public void testIndexCosts() {\n this.classHandler.applyIndexes();\n }", "@Override\n public void setupIndex() {\n List lst = DBClient.getList(\"SELECT a FROM AppMenu a WHERE a.moduleName='MyBranchMemberExt'\");\n if (lst!=null && !lst.isEmpty()) {\n return;\n }\n AppMenu.createAppMenuObj(\"MyBranchMemberExt\", \"Main\", \"Branch Member\", 110).save();\n AppMenu.createAppMenuObj(\"MyCenterMemberExt\", \"Main\", \"Center Member\", 120).save();\n AppMenu.createAppMenuObj(\"SearchAllMembersOnlyExt\", \"Main\", \"Search Member\", 130).save();\n AppMenu.createAppMenuObj(\"ReferenceForm\", \"Reference\", \"Reference\", 200).save();\n runUniqueIndex(8, \"firstName\", \"lastName\");\n }", "@Test\n public void rangeAndCompactIndexesShouldReturnTheSameResults() {\n try {\n // CacheUtils.restartCache();\n if (!isInitDone) {\n isInitDone = true;\n }\n qs.removeIndexes();\n\n String[] queryStr =\n new String[] {\"Select status from \" + SEPARATOR + \"portfolio pf where status='active'\",\n \"Select pf.ID from \" + SEPARATOR + \"portfolio pf where pf.ID > 2 and pf.ID < 100\",\n \"Select * from \" + SEPARATOR + \"portfolio pf where pf.position1.secId > '2'\",};\n\n String[] queryFields = new String[] {\"status\", \"ID\", \"position1.secId\",};\n\n for (int i = 0; i < queryStr.length; i++) {\n // Clear indexes if any.\n qs.removeIndexes();\n\n // initialize region.\n region.clear();\n for (int k = 0; k < 10; k++) {\n region.put(\"\" + k, new Portfolio(k));\n }\n\n for (int j = 0; j < 1; j++) { // With different region size.\n // Update Region.\n for (int k = 0; k < (j * 100); k++) {\n region.put(\"\" + k, new Portfolio(k));\n }\n\n // Create compact index.\n IndexManager.TEST_RANGEINDEX_ONLY = false;\n index = (IndexProtocol) qs.createIndex(queryFields[i] + \"Index\", IndexType.FUNCTIONAL,\n queryFields[i], SEPARATOR + \"portfolio\");\n\n // Execute Query.\n SelectResults[][] rs = new SelectResults[1][2];\n Query query = qs.newQuery(queryStr[i]);\n rs[0][0] = (SelectResults) query.execute();\n\n // remove compact index.\n qs.removeIndexes();\n\n // Create Range Index.\n IndexManager.TEST_RANGEINDEX_ONLY = true;\n index = (IndexProtocol) qs.createIndex(queryFields[i] + \"rIndex\", IndexType.FUNCTIONAL,\n queryFields[i], SEPARATOR + \"portfolio\");\n\n query = qs.newQuery(queryStr[i]);\n rs[0][1] = (SelectResults) query.execute();\n\n CacheUtils.log(\n \"#### rs1 size is : \" + (rs[0][0]).size() + \" rs2 size is : \" + (rs[0][1]).size());\n StructSetOrResultsSet ssORrs = new StructSetOrResultsSet();\n ssORrs.CompareQueryResultsWithoutAndWithIndexes(rs, 1, queryStr);\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n fail(\"Test failed due to exception=\" + e);\n } finally {\n IndexManager.TEST_RANGEINDEX_ONLY = false;\n isInitDone = false;\n CacheUtils.restartCache();\n }\n }", "public com.guidewire.datamodel.IndexDocument.Index addNewIndex()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n com.guidewire.datamodel.IndexDocument.Index target = null;\r\n target = (com.guidewire.datamodel.IndexDocument.Index)get_store().add_element_user(INDEX$12);\r\n return target;\r\n }\r\n }", "private IndexMetadata createUpdatedIndexMetadata(IndexMetadata indexMetadata) {\n return IndexMetadata.builder(indexMetadata)\n .putMapping(\n createUpdatedIndexMetadata(\n indexMetadata.mapping(),\n indexMetadata.getIndex().getName()\n ))\n .build();\n }", "public static HashIndexBuilder hashIndex(String name) {\n return new HashIndexBuilderImpl(name);\n }", "@Test\n public void testCreateIdxOnClient() {\n getDefaultCacheOnClient().query(new SqlFieldsQuery(((\"CREATE INDEX IDX_11 ON \" + (GridCacheDynamicLoadOnClientTest.FULL_TABLE_NAME)) + \" (name asc)\"))).getAll();\n }", "void addIndexForRepository(long repositoryId);", "@Test\n public void testCreate() throws Exception {\n System.out.println(\"create\");\n Index entity = TestUtils.getTestIndex();\n IndexResponse result = instance.create(entity);\n assertNotNull(result);\n assertEquals(entity.getDatabaseName(), result.getIndex().getDatabaseName());\n assertEquals(entity.getName(), result.getIndex().getName());\n assertEquals(entity.getTableName(), result.getIndex().getTableName());\n assertEquals(entity.getFields(), result.getIndex().getFields());\n }", "public IndexDatabase(String index_path) {\n int k;\n long p;\n try {\n pre_file = new RandomAccessFile(index_path + \"/sorted.kmc_pre\", \"r\");\n pre_file.seek(pre_file.length() - 8);\n header_pos = read_int(pre_file);\n pre_file.seek(pre_file.length() - 8 - header_pos);\n // read the index properties \n K = read_int(pre_file);\n mode = read_int(pre_file);\n ctr_size = read_int(pre_file);\n pre_len = read_int(pre_file);\n min_count = read_int(pre_file);\n max_count = read_int(pre_file);\n kmers_num = read_long(pre_file);\n suf_len = K - pre_len;\n key = new kmer(K, pre_len, suf_len);\n System.out.println(\"Indexing \" + kmers_num + \" kmers... \");\n // load the prefix file into the memory \n pre_file.seek(4);\n int q, len = 1 << (2 * pre_len);\n prefix_ptr = new long[len];\n MappedByteBuffer pre_buff;\n for (q = 0, p = 0; p < 8; ++p) {\n pre_buff = pre_file.getChannel().map(FileChannel.MapMode.READ_ONLY, 4 + p * len, len);\n for (k = 0; k < len / 8; ++k, ++q) {\n prefix_ptr[q] = read_long(pre_buff);\n }\n pre_buff = null;\n }\n pre_file.close();\n // mapping suffix file into the memory\n suf_rec_size = ctr_size + suf_len / 4;\n MAX_BYTE_COUNT = MAX_BYTE_COUNT / suf_rec_size * suf_rec_size;\n suf_parts_num = (int) ((kmers_num * suf_rec_size) % MAX_BYTE_COUNT == 0 ? (kmers_num * suf_rec_size) / MAX_BYTE_COUNT : (kmers_num * suf_rec_size) / MAX_BYTE_COUNT + 1);\n suf_parts_size = new long[suf_parts_num];\n suf_file = new RandomAccessFile(index_path + \"/sorted.kmc_suf\", \"r\");\n suf_buff = new MappedByteBuffer[suf_parts_num];\n for (k = 0; k < suf_parts_num; ++k) {\n suf_parts_size[k] = (int) (k == suf_parts_num - 1 ? (kmers_num * suf_rec_size) % MAX_BYTE_COUNT : MAX_BYTE_COUNT);\n suf_buff[k] = suf_file.getChannel().map(FileChannel.MapMode.READ_ONLY, 4 + k * suf_parts_size[0], suf_parts_size[k]);\n }\n // mapping pointers file into the memory\n MAX_BYTE_COUNT = MAX_BYTE_COUNT / POINTER_LENGTH * POINTER_LENGTH;\n ptr_parts_num = (int) ((kmers_num * POINTER_LENGTH) % MAX_BYTE_COUNT == 0 ? (kmers_num * POINTER_LENGTH) / MAX_BYTE_COUNT : (kmers_num * POINTER_LENGTH) / MAX_BYTE_COUNT + 1);\n ptr_parts_size = new long[ptr_parts_num];\n ptr_file = new RandomAccessFile(index_path + \"/pointers.db\", \"rw\");\n ptr_buff = new MappedByteBuffer[ptr_parts_num];\n for (k = 0; k < ptr_parts_num; ++k) {\n ptr_parts_size[k] = (int) (k == ptr_parts_num - 1 ? (kmers_num * POINTER_LENGTH) % MAX_BYTE_COUNT : MAX_BYTE_COUNT);\n ptr_buff[k] = ptr_file.getChannel().map(FileChannel.MapMode.READ_WRITE, k * ptr_parts_size[0], ptr_parts_size[k]);\n }\n } catch (IOException e) {\n System.out.println(e.getMessage());\n System.exit(1);\n }\n }", "public\tString\ttoString()\n {\n // Do not put this under SanityManager.DEBUG - it is needed for\n // error reporting.\n return \"CREATE INDEX \" + indexName;\n }", "public InnodbIndexStats(String alias) {\n this(DSL.name(alias), INNODB_INDEX_STATS);\n }", "public void run() {\n\t\t\t\t\tboolean b = false;\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tb = IreportRmiClient.rmiInterfactRemote.generateIndex();\r\n\t\t\t\t\t\tif (!b) {\r\n\t\t\t\t\t\t\t// 0个索引文件\r\n\t\t\t\t\t\t\tAddedOperator.log(\"索引到0个文件..可能你的路径配置错误,请查看服务端输出信息\",\r\n\t\t\t\t\t\t\t\t\tIreportConstant.WARN_);\r\n\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tAddedOperator.log(\"新建索引成功\", IreportConstant.RIGHT_);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} catch (RemoteException e) {\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\tAddedOperator.log(\"新建索引错误:\" + e.getMessage(),\r\n\t\t\t\t\t\t\t\tIreportConstant.ERROR_);\r\n\t\t\t\t\t\tDialogFactory.showErrorMessageDialog(jb,\r\n\t\t\t\t\t\t\t\te.getMessage(), \"新建索引错误\");\r\n\t\t\t\t\t\tthrow new RuntimeException(e.getMessage());\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}", "@Test\n public void testIndexMaintenanceWithIndexOnMethodGetKeys() throws Exception {\n Index i1 =\n qs.createIndex(\"indx1\", IndexType.FUNCTIONAL, \"ks.toString\",\n SEPARATOR + \"portfolio.getKeys() ks\");\n CacheUtils.getCache();\n region = CacheUtils.getRegion(SEPARATOR + \"portfolio\");\n region.put(\"4\", new Portfolio(4));\n region.put(\"5\", new Portfolio(5));\n CompactRangeIndex ri = (CompactRangeIndex) i1;\n validateIndexForKeys(ri);\n }", "public String getIndexName() {\n return indexName;\n }", "public static Result index() {\n return ok(index.render(byline, maidForm, parkingForm));\n }", "public void createIndexOnProcessName() throws ServiceFailureException;", "@Test\n public void testIndexMaintenanceOnCacheLoadedData() throws Exception {\n IndexManager.TEST_RANGEINDEX_ONLY = true;\n Cache cache = CacheUtils.getCache();\n qs = cache.getQueryService();\n region = CacheUtils.createRegion(\"portfolio1\", null);\n AttributesMutator am = region.getAttributesMutator();\n am.setCacheLoader(new CacheLoader() {\n\n @Override\n public Object load(LoaderHelper helper) throws CacheLoaderException {\n String key = (String) helper.getKey();\n Portfolio p = new Portfolio(Integer.parseInt(key));\n return p;\n }\n\n @Override\n public void close() {\n // nothing\n }\n });\n\n Index i1 =\n qs.createIndex(\"indx1\", IndexType.FUNCTIONAL, \"pf.getID()\", SEPARATOR + \"portfolio1 pf\");\n List keys = new ArrayList();\n keys.add(\"1\");\n keys.add(\"2\");\n keys.add(\"3\");\n keys.add(\"4\");\n\n region.getAll(keys);\n }", "@VTID(10)\n int getIndex();", "private void addIndex(Partition partition, String... attrs) throws Exception {\n for (String attribute : attrs) {\n factory.addIndex(partition, attribute, 100);\n }\n }", "static void generateIndex(Table table, Key key, PrintWriter outData)\r\n {\r\n String comma = \"( \";\r\n String keyname = key.name.toUpperCase();\r\n if (keyname.indexOf(table.name.toUpperCase()) == -1)\r\n keyname = table.name.toUpperCase()+\"_\"+keyname;\r\n outData.println(\"DROP INDEX \"+keyname+\";\");\r\n outData.println(\"\");\r\n outData.println(\"CREATE INDEX \"+keyname+\" ON \"+table.database.userid+ \"\" +table.name);\r\n for (int i=0; i<key.fields.size(); i++, comma = \", \")\r\n {\r\n String name = (String) key.fields.elementAt(i);\r\n outData.println(comma+name);\r\n }\r\n outData.print(\")\");\r\n for (int i=0; i < key.options.size(); i++)\r\n {\r\n outData.println();\r\n String option = (String) key.options.elementAt(i);\r\n outData.print(option);\r\n }\r\n outData.println(\";\");\r\n outData.println();\r\n }", "public String index() {\r\n\t\treturn \"index\";\r\n\t}", "public void onIndexUpdate();", "private void createIndex(final String index, int numShards, int numReplicas) throws IOException {\n LOGGER.warn(\"CREATE ES INDEX {} with {} shards and {} replicas\", index, numShards, numReplicas);\n final Settings indexSettings = Settings.builder().put(\"number_of_shards\", numShards)\n .put(\"number_of_replicas\", numReplicas).build();\n CreateIndexRequest indexRequest = new CreateIndexRequest(index, indexSettings);\n getClient().admin().indices().create(indexRequest).actionGet();\n\n final String mapping = IOUtils.toString(\n this.getClass().getResourceAsStream(\"/elasticsearch/mapping/map_person_5x_snake.json\"));\n getClient().admin().indices().preparePutMapping(index)\n .setType(getConfig().getElasticsearchDocType()).setSource(mapping, XContentType.JSON).get();\n }", "public void WriteIndex() throws Exception {\n CorpusReader corpus = new CorpusReader();\n // initiate the output object\n IndexWriter output = new IndexWriter();\n\n // Map to hold doc_id and doc content;\n Map<String, String> doc;\n\n // index the corpus, load the doc one by one\n while ((doc = corpus.NextDoc()) != null){\n // get the doc_id and content of the current doc.\n String doc_id = doc.get(\"DOC_ID\");\n String content = doc.get(\"CONTENT\");\n\n // index the doc\n output.IndexADoc(doc_id, content);\n }\n output.close_index_writer();\n }", "private void createIndex(Message<JsonObject> msg, int timeout, JsonObject headers, String dbName) {\n // check required params / attributes\n \n // REQUIRED: The name of the collection for which to create the index\n String collection = helper.getMandatoryString(msg.body(), MSG_PROPERTY_COLLECTION, msg);\n if (collection == null) return;\n\n // REQUIRED: A JSON representation of the index (see ArangoDB docs for details)\n JsonObject document = helper.getMandatoryObject(msg.body(), MSG_PROPERTY_DOCUMENT, msg);\n if (document == null) return;\n\n if (!ensureAttribute(document, DOC_ATTRIBUTE_TYPE, msg)) return;\n if (!document.getString(DOC_ATTRIBUTE_TYPE).equals(TYPE_CAP)) {\n if (!ensureAttribute(document, DOC_ATTRIBUTE_FIELDS, msg)) return;\n }\n\n // prepare PATH\n StringBuilder apiPath = new StringBuilder();\n if (dbName != null) apiPath.append(\"/_db/\").append(dbName);\n apiPath.append(API_PATH);\n apiPath.append(\"/?\").append(MSG_PROPERTY_COLLECTION).append(\"=\").append(collection);\n\n httpPost(persistor, apiPath.toString(), headers, document, timeout, msg);\n }", "boolean isNewIndex();", "@Test\n public void testCreateIndexMapping() throws Exception {\n String json = EsJsonUtils.generateItemMapping();\n System.out.println(json);\n elasticSearchDao.createIndexMapping(TENANT_ID+Constants.INDEX_SPLIT+ Constants.ITEM,json);\n }", "com.google.firestore.admin.v1beta1.Index getIndex();" ]
[ "0.6566216", "0.6484746", "0.6264075", "0.6096072", "0.5908637", "0.58843434", "0.58006227", "0.5708268", "0.56506354", "0.5635065", "0.5620812", "0.56133205", "0.55897796", "0.55473083", "0.55442435", "0.5538252", "0.5520337", "0.5488333", "0.54280895", "0.5427394", "0.54123414", "0.53808004", "0.53800374", "0.53786516", "0.5362948", "0.533826", "0.53261393", "0.5312328", "0.53064173", "0.5291156", "0.527532", "0.5273848", "0.52672285", "0.5265702", "0.5254448", "0.52368563", "0.52337337", "0.5224403", "0.52135235", "0.51753855", "0.5156", "0.514938", "0.5145729", "0.5120961", "0.511184", "0.5102101", "0.50895053", "0.5088738", "0.5087816", "0.5087033", "0.5067035", "0.504148", "0.5038991", "0.5034945", "0.50217783", "0.50141907", "0.5002437", "0.499043", "0.4985648", "0.49814954", "0.49801907", "0.49764815", "0.49672827", "0.4949818", "0.49441934", "0.49415582", "0.49400806", "0.49348262", "0.49344233", "0.49326307", "0.49297673", "0.49176496", "0.49148282", "0.4910253", "0.49092293", "0.49068406", "0.48850074", "0.48811075", "0.4865262", "0.4855167", "0.4851134", "0.48493463", "0.48430917", "0.48399237", "0.48292866", "0.48290166", "0.48281136", "0.4826149", "0.4825445", "0.48219624", "0.4814496", "0.48124015", "0.48118964", "0.48100287", "0.48053715", "0.4798921", "0.47963384", "0.47767365", "0.4775632", "0.47754374", "0.47644782" ]
0.0
-1
corpus: List(id, (field, value)).
private static List<Payload> createPayloads( File indexDescriptor, List<Pair<String, List<Pair<String, String>>>> corpus) throws IOException { LuceneIndexDescriptor descriptor = new LuceneIndexDescriptor(indexDescriptor.toURI().toURL()); List<Payload> payloads = new ArrayList<>(corpus.size()); for (Pair<String, List<Pair<String, String>>> recordDef : corpus) { Document document = new Document(); for (Pair<String, String> content : recordDef.getValue()) { LuceneIndexField indexField = descriptor.getFieldForIndexing(content.getKey()); Field field = new Field(content.getKey(), content.getValue(), indexField.getStore(), indexField.getIndex(), indexField.getTermVector()); document.add(field); } Record record = new Record(recordDef.getKey(), "foo", new byte[0]); Payload payload = new Payload(record); payload.getObjectData().put(Payload.LUCENE_DOCUMENT, document); IndexUtils.assignBasicProperties(payload); payloads.add(payload); } return payloads; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract Set<String> getTerms(Document doc);", "private static List<Term> toTerms(ByteBuffer... values)\n {\n List<Term> terms = new ArrayList<>();\n for (ByteBuffer value : values)\n terms.add(toTerm(value));\n return terms;\n }", "List<VocabWord> document(int index);", "private LinkedList<TermDocList> generateTermDocList(LinkedList<String> list){ \n \n LinkedList<TermDocList> merge_list = new LinkedList<TermDocList>();\n //extract a string from a slave node\n for (int i = 0; i < list.size(); i++) {\n String[] termList = list.get(i).split(\"\\n\");\n// System.out.println(\"termList: \"+list.get(i)); \n \n //extract a string lead by a term\n for (int j = 0; j < termList.length; j++) {\n //process the string, store in the termInfo, insert into termInfo list\n TermDocList jtermDocList = new TermDocList();\n String[] temp = termList[j].split(\" \");\n// System.out.println(\"temp length: \"+temp.length); \n jtermDocList.term = temp[0];\n\n jtermDocList.totalfreq = Integer.parseInt(temp[1]);\n jtermDocList.docList = new ArrayList<DocInfo>();\n //convert temp[2] to an arraylist\n String regular = \"(\\\\w{6},\\\\w+)\";\n Pattern p = Pattern.compile(regular);\n Matcher m = p.matcher(temp[2]);\n while (m.find()) {\n String[] docTemp = m.group(1).split(\",\");\n DocInfo newdocInfo = new DocInfo(docTemp[0], Integer.parseInt(docTemp[1]));\n jtermDocList.docList.add(newdocInfo);\n }\n merge_list.add(jtermDocList);\n }\n }\n return merge_list;\n }", "void addWordsToDoc(int doc,List<VocabWord> words);", "public Vector mapDocument(MultiSet<String> bow) {\n //logger.info(\"lsm.mapDocument\");\n SparseVector vector = new SparseVector();\n\n Iterator<String> it = bow.iterator();\n String term = null;\n int index = 0;\n int tf = 0;\n float tfIdf;\n for (int i = 0; it.hasNext(); i++) {\n //logger.info(i + \" \" + t[i]);\n term = it.next();\n index = termIndex.get(term);\n\n if (index != -1) {\n tf = bow.getFrequency(term);\n tfIdf = (float) (log2(tf)) * Iidf[index];\n\n //logger.info(term + \" ==> \" + index + \", tf.idf = \" + tf + \"(\" + (log2(tf)) + \") * \" + Iidf[index] + \" = \" + tfIdf);\n vector.add(index, tfIdf);\n\n }\n } // end for\n\n return vector;\n }", "@Override\r\n\t\t\tpublic String[] getTerms(Document doc) {\n\t\t\t\treturn null;\r\n\t\t\t}", "public interface WordVector {\n\n void setFrom(Text...texts);\n void setWordsFrom(Text...texts);\n void setValuesFrom(Text...texts);\n\n\n List<String> getWords();\n void setWords(List<String> words);\n List<Double> getValues();\n void setValues(List<Double> values);\n\n double[] toArray();\n\n int size();\n\n}", "private void createTermFreqVector(JCas jcas, Document doc) {\n\n String docText = doc.getText().toLowerCase();\n\n // TODO: construct a vector of tokens and update the tokenList in CAS\n\n String[] wordList = docText.split(\" \");\n HashMap<String, Integer> tokenCount = new HashMap<String, Integer>();\n for (String word : wordList) {\n String newWord = word;\n if(word.charAt(word.length()-1)<'a' || word.charAt(word.length()-1)>'z'){\n newWord = word.substring(0, word.length()-1);\n }\n //if(Utils.GetStopWordFilter().isStopword(newWord))continue;\n if (!tokenCount.containsKey(newWord)) {\n tokenCount.put(newWord, 1);\n } else {\n tokenCount.put(newWord, tokenCount.get(newWord) + 1);\n }\n }\n\n ArrayList<Token> tokenList = new ArrayList<Token>();\n for (String word : tokenCount.keySet()) {\n Token token = new Token(jcas);\n token.setText(word);\n token.setFrequency(tokenCount.get(word));\n tokenList.add(token);\n }\n FSList tokenFSList = Utils.fromCollectionToFSList(jcas, tokenList);\n doc.setTokenList(tokenFSList);\n }", "private void createTermFreqVector(JCas jcas, Document doc) {\n\n String docText = doc.getText();\n // construct a vector of tokens and update the tokenList in CAS\n // use tokenize0 from above\n List<String> ls = tokenize0(docText);\n Map<String, Integer> map = new HashMap<String, Integer>();\n Collection<Token> token_collection = new ArrayList<Token>();\n for (String d : ls) {\n if (map.containsKey(d)) {\n int inc = map.get(d) + 1;\n map.put(d, inc);\n } else {\n map.put(d, 1);\n }\n }\n Iterator it = map.entrySet().iterator();\n while (it.hasNext()) {\n Map.Entry pairs = (Map.Entry) it.next();\n Token t = new Token(jcas);\n String k = pairs.getKey().toString();\n int v = Integer.parseInt(pairs.getValue().toString());\n t.setFrequency(v);\n t.setText(k);\n token_collection.add(t);\n it.remove(); // avoids a ConcurrentModificationException\n }\n // use util tool to convert to FSList\n doc.setTokenList(Utils.fromCollectionToFSList(jcas, token_collection));\n doc.addToIndexes(jcas);\n\n }", "public SolrInputDocument collect(FlexDocument f) {\n\n\t\tSolrInputDocument cls_doc = new SolrInputDocument();\n\n\t\tfor( FlexLine l : f ){\n\t\t\tString fieldName = l.field();\n\t\t\tfor( String val : l.values() ){\n\t\t\t\tcls_doc.addField(fieldName, val);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn cls_doc;\n\t}", "@Override\n\tpublic void map(Record record, Collector<Record> collector) {\n\n\t\tString document = record.getField(0, StringValue.class).toString();\n\t\tString docArray[] = document.split(\",\");\n\t\tString docIdString = docArray[0];\n\t\tInteger docId = Integer.parseInt(docIdString);\n\t\tStringBuilder text = new StringBuilder();\n\t\tfor (int i = 1; i < docArray.length; i++) {\n\t\t\ttext.append(docArray[i]);\n\t\t}\n\t\tString words = text.toString();\n\t\tHashMap<String, Integer> uniqWords = new HashMap<String, Integer>();\n\t\tHashSet<String> stopWords = Util.STOP_WORDS;\n\t\tfor (String word: words.split(\" \")) {\n\t\t\tif (word.matches(\"[\\\\w!.]+\") && !stopWords.contains(word)) {\n\t\t\t\tif (!uniqWords.containsKey(word)) {\n\t\t\t\t\tuniqWords.put(word, 1);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tInteger count = uniqWords.get(word);\n\t\t\t\t\tcount++;\n\t\t\t\t\tuniqWords.put(word, count);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (String key : uniqWords.keySet()) {\n\t\t\tRecord emitRecord = new Record();\n\t\t\temitRecord.addField(new IntValue(docId));\n\t\t\temitRecord.addField(new StringValue(key));\n\t\t\temitRecord.addField(new IntValue(uniqWords.get(key)));\n\t\t\tcollector.collect(emitRecord);\n\t\t}\n\t\t\n\t}", "public Term[] getTermByDoc(IndexedDoc d){\n\t\treturn d.getTerms();\r\n\t}", "Stream<List<Term>> toSentences(List<Integer> intText, List<Term> termText);", "public VSM(String[] docs) {\n\t\tmyDocs = docs;\n\t\ttermList = new ArrayList<String>();\n\t\tdocLists = new ArrayList<ArrayList<Doc>>();\n\t\tArrayList<Doc> docList;\n\t\t// parse the documents to construct the index and collect the raw\n\t\t// frequencies.\n\t\tfor (int i = 0; i < myDocs.length; i++) {\n\t\t\tString[] tokens = myDocs[i].split(\" \");\n\t\t\tString token;\n\t\t\tfor (int j = 0; j < tokens.length; j++) {\n\t\t\t\ttoken = tokens[j];\n\t\t\t\tif (!termList.contains(token)) {\n\t\t\t\t\ttermList.add(token);\n\t\t\t\t\tdocList = new ArrayList<Doc>();\n\t\t\t\t\tDoc doc = new Doc(i, 1); // initial raw frequency is 1\n\t\t\t\t\tdocList.add(doc);\n\t\t\t\t\tdocLists.add(docList);\n\t\t\t\t} else {\n\t\t\t\t\tint index = termList.indexOf(token);\n\t\t\t\t\tdocList = docLists.get(index);\n\t\t\t\t\tint k = 0;\n\t\t\t\t\tboolean match = false;\n\n\t\t\t\t\t// search the postings list for a document id, if match,\n\t\t\t\t\t// insert a new position number to the document id\n\t\t\t\t\tfor (Doc doc : docList) {\n\t\t\t\t\t\tif (doc.docId == i) {\n\t\t\t\t\t\t\tdoc.tw++; // increase word count\n\t\t\t\t\t\t\tmatch = true;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tk++;\n\t\t\t\t\t}\n\t\t\t\t\t// if no match, add a new document id along with the\n\t\t\t\t\t// position number\n\t\t\t\t\tif (!match) {\n\t\t\t\t\t\tDoc doc = new Doc(i, 1);\n\t\t\t\t\t\tdocList.add(doc);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}//\n\t\t}// end with parsing\n\n\t\t// compute the tf-idf term weights and the doc lengths\n\t\tint N = myDocs.length;\n\t\tdocLength = new double[N];\n\t\tfor (int i = 0; i < termList.size(); i++) {\n\t\t\tdocList = docLists.get(i);\n\t\t\tint df = docList.size();\n\t\t\tDoc doc;\n\t\t\tfor (int j = 0; j < docList.size(); j++) {\n\t\t\t\tdoc = docList.get(j);\n\t\t\t\tdouble tfidf = (1 + Math.log(doc.tw))\n\t\t\t\t\t\t* Math.log(N / (df * 1.0));\n\t\t\t\tdocLength[doc.docId] += Math.pow(tfidf, 2);\n\t\t\t\tdoc.tw = tfidf;\n\t\t\t\tdocList.set(j, doc);\n\t\t\t}\n\t\t}\n\t\t// update the length\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tdocLength[i] = Math.sqrt(docLength[i]);\n\t\t}\n\n\t}", "int[] documents(VocabWord vocabWord);", "public Vector mapDocument(BOW bow) {\n //logger.info(\"lsm.mapDocument\");\n SparseVector vector = new SparseVector();\n\n Iterator<String> it = bow.termSet().iterator();\n String term = null;\n int index = 0;\n //int tf = 0;\n float tfIdf;\n for (int i = 0; it.hasNext(); i++) {\n //logger.info(i + \" \" + t[i]);\n term = it.next();\n index = termIndex.get(term);\n\n if (index != -1) {\n //tf = bow.getFrequency(term);\n //tfIdf = (float) (log2(tf)) * Iidf[index];\n //tfIdf = (float) bow.augmentedFrequency(term) * Iidf[index];\n tfIdf = (float) bow.tf(term) * Iidf[index];\n //logger.info(term + \" ==> \" + index + \", tf.idf = \" + tf + \"(\" + (log2(tf)) + \") * \" + Iidf[index] + \" = \" + tfIdf);\n vector.add(index, tfIdf);\n\n }\n } // end for\n\n return vector;\n }", "public abstract List<T> readDoc(final Document document);", "public void IndexADocument(String docno, String content) throws IOException {\n\t\tdocid++;\n\t\tdoc2docid.put(docno, docid);\n\t\tdocid2doc.put(docid, docno);\n\n\t\t// Insert every term in this doc into docid2map\n\t\tString[] terms = content.trim().split(\" \");\n\t\tMap<Integer, Integer> docTerm = new HashMap<>();\n\t\tint thisTermid;\n\t\tfor(String term: terms){\n\t\t\t// get termid\n\t\t\tif(term2termid.get(term)!=null) thisTermid = term2termid.get(term);\n\t\t\telse{\n\t\t\t\tthisTermid = ++termid;\n\t\t\t\tterm2termid.put(term, thisTermid);\n\t\t\t}\n\t\t\tdocTerm.put(thisTermid, docTerm.getOrDefault(thisTermid, 0)+1);\n\t\t\t// Merge this term's information into termid2map\n\t\t\tMap<Integer, Integer> temp = termid2map.getOrDefault(thisTermid, new HashMap());\n\t\t\ttemp.put(docid, temp.getOrDefault(docid, 0)+1);\n\t\t\ttermid2map.put(thisTermid, temp);\n\t\t\ttermid2fre.put(thisTermid, termid2fre.getOrDefault(thisTermid, 0)+1);\n\t\t}\n\t\tdocid2map.put(docid, docTerm);\n\n//\t\t// Merge all the terms' information into termid2map\n//\t\tfor(Long tid: docTerm.keySet()){\n//\t\t\tMap<Long, Long> temp = termid2map.getOrDefault(tid, new HashMap());\n//\t\t\ttemp.put(docid,docTerm.get(tid));\n//\t\t\ttermid2map.put(tid, temp);\n//\t\t\t// update this term's frequency\n//\t\t\ttermid2fre.put(tid, termid2fre.getOrDefault(tid,0L)+docTerm.get(tid));\n//\t\t}\n\n\t\t// When termid2map and docid2map is big enough, put it into disk\n\t\tif(docid%blockSize==0){\n\t\t\tWritePostingFile();\n\t\t\tWriteDocFile();\n\t\t}\n\t}", "SwiftScoredSet getTfIdf(String text,ASTNode n,boolean kgram)\n{\n Map<String,Integer> words = null;\n Map<String,Integer> totals = null;\n double tot = 0;\n if (kgram){\n words = buildKgramCounts(text,n);\n totals = kgram_counts;\n tot = total_kdocuments;\n } \n else {\n words = handleDocumentText(text);\n totals = document_counts;\n tot = total_documents;\n }\n double termtot = 1;\n \n for (Integer iv : words.values()) {\n termtot += iv;\n }\n \n SwiftScoredSet rslt = new SwiftScoredSet();\n for (Map.Entry<String,Integer> ent : words.entrySet()) {\n String wd = ent.getKey();\n double ct = ent.getValue();\n Integer docs = totals.get(wd);\n double docct = 0;\n if (docs != null) docct = docs;\n double idf = Math.log(tot/(1+docct));\n double tf = ct/termtot;\n double tfidf = tf*idf;\n rslt.add(wd,tfidf);\n }\n rslt.normalize();\n \n return rslt;\n}", "public Term[] getTerms() { return terms; }", "public static void docWtgArray() {\n int docCount = 0;\n\n while(docCount<totaldocument) {\n List<Double> pass = new ArrayList();\n for(Entry<String,List<Double>> entry : wtgMap.entrySet()) {\n List<Double> docList = new ArrayList();\n docList = entry.getValue();\n double temp = docList.get(docCount);\n pass.add(temp);\n }\n\n double answer = CosineSimilarity(pass,query);\n if(answer >= alpha) {\n DocID.put(docCount,answer);\n }\n docCount++;\n }\n }", "private static Positional_inverted_index posindexCorpus(DocumentCorpus corpus) throws ClassNotFoundException, InstantiationException, IllegalAccessException, FileNotFoundException, IOException {\n\n NewTokenProcessor processor = new NewTokenProcessor();\n Iterable<Document> docs = corpus.getDocuments(); //call registerFileDocumentFactory first?\n\n List<Double> Doc_length = new ArrayList<>();\n Positional_inverted_index index = new Positional_inverted_index();\n\n double token_count = 0;\n\n // Iterate through the documents, and:\n for (Document d : docs) {\n //File f = new File(path + \"\\\\\" + d.getTitle());\n File f = new File(path + \"\\\\\" + d.getFileName().toString());\n double Filesize = f.length();\n //edited by bhavya\n double doc_weight = 0; //first entry in docweights.bin\n double doc_tokens = 0;\n double doc_length = 0;\n HashMap<String, Integer> tftd = new HashMap<>();\n // Tokenize the document's content by constructing an EnglishTokenStream around the document's content.\n Reader reader = d.getContent();\n EnglishTokenStream stream = new EnglishTokenStream(reader); //can access tokens through this stream\n N++;\n // Iterate through the tokens in the document, processing them using a BasicTokenProcessor,\n //\t\tand adding them to the HashSet vocabulary.\n Iterable<String> tokens = stream.getTokens();\n int i = 0;\n\n for (String token : tokens) {\n\n //adding token in index\n List<String> word = new ArrayList<String>();\n word = processor.processToken(token);\n //System.out.println(word.get(0));\n if (word.get(0).matches(\"\")) {\n continue;\n } else {\n\n index.addTerm(word.get(0), i, d.getId());\n\n }\n i = i + 1;\n\n //we check if token already exists in hashmap or not. \n //if it exists, increase its freq by 1 else make a new entry.\n if (tftd.containsKey(word.get(0))) {\n doc_tokens++;\n int count = tftd.get(word.get(0));\n tftd.replace(word.get(0), count + 1);\n } else {\n doc_tokens++;\n// token_count++; //gives total number of tokens.\n tftd.put(word.get(0), 1);\n }\n\n }\n double length = 0;\n double wdt = 0;\n\n double total_tftd = 0;\n for (Map.Entry<String, Integer> entry : tftd.entrySet()) {\n\n wdt = 1 + log(entry.getValue());\n\n length = length + pow(wdt, 2);\n total_tftd = total_tftd + entry.getValue();\n }\n token_count = token_count + doc_tokens;\n doc_weight = pow(length, 0.5);\n double avg_tftd = total_tftd / (double) tftd.size();\n\n Doc_length.add(doc_weight);\n Doc_length.add(avg_tftd);\n Doc_length.add(doc_tokens);\n Doc_length.add(Filesize);\n }\n Doc_length.add(token_count / N);\n\n DiskIndexWriter d = new DiskIndexWriter();\n d.write_doc(path, Doc_length);\n\n return index;\n }", "List<String> tokenize0(String doc) {\n List<String> res = new ArrayList<String>();\n\n for (String s : doc.split(\"\\\\s+\"))\n res.add(s);\n return res;\n }", "@Override\n public void postInserts() \n {\n for(IndexObject i: myIndex.values())\n {\n i.tfidf(documentData);\n }\n }", "void processMultiValue(int numDocs, int[][] outGroupIds);", "public List<Pair<Integer>> extractKeywordsForPlainText(String collectionId, String content, String targetField) {\r\n List<Pair<Integer>> toReturn = new ArrayList<Pair<Integer>>();\r\n if (null == collectionId || null == content || 0 == collectionId.length() || 0 == content.length()) {\r\n setError(\"APIL_0100\", \"argument's not valid.\");\r\n return toReturn;\r\n }\r\n\r\n if (content.length() > MAX_CONTENT_SIZE) {\r\n setError(\"APIL_0153\", \"content size cannot exceed \" + MAX_CONTENT_SIZE + \" characters: \" + content.length());\r\n return toReturn;\r\n }\r\n\r\n String[] paramFields = {\"collection_id\", \"target_field\", \"content\", \"item_delimiter\", \"weight_delimiter\", \"field_delimiter\" };\r\n SocketMessage request = new SocketMessage(\"extractor\", \"plainText\", SocketMessage.PriorityType.EMERGENCY, SocketMessage.TransferType.BI_WAY, \"\",\r\n paramFields);\r\n request.setValue(\"collection_id\", collectionId);\r\n request.setValue(\"target_field\", targetField);\r\n request.setValue(\"content\", content);\r\n request.setValue(\"item_delimiter\", ITEM_DELIMITER);\r\n request.setValue(\"weight_delimiter\", WEIGHT_DELIMITER);\r\n request.setValue(\"field_delimiter\", FIELD_DELIMITER);\r\n\r\n SocketMessage response = handleMessage(request);\r\n if (!isSuccessful(response)) {\r\n if (\"\".equals(response.getErrorCode())) {\r\n setError(\"APIL_0271\", \"keyword extraction (plainText) wasn't successful: coll_id=\" + collectionId);\r\n } else {\r\n wrapError(\"APIL_0271\", \"keyword extraction (plainText) wasn't successful: coll_id=\" + collectionId);\r\n }\r\n } else {\r\n //public static List< Pair<String> > getPairListStr(String obj, String itemDelimiter, String valueDelimiter)\r\n String keywordsString = response.getValue(\"keywords\").trim();\r\n toReturn = Tools.getPairListInt(keywordsString, ITEM_DELIMITER, WEIGHT_DELIMITER);\r\n }\r\n return toReturn;\r\n }", "abstract public TermDocs termDocs(Term t) throws IOException;", "public void map(Document value,\n OutputCollector<String, Pair> output) {\n String content = value.content;\n int count = value.count;\n for (int i = 1; i <= content.length(); i++){\n String subContent = content.substring(0, i);\n output.collect(subContent, new Pair(content, count));\n }\n }", "@Override\n\tpublic String indexData(String db, String filename,\n\t\t\tWeightComputer weightComputer, TextTransformer trans)\n\t\t\tthrows IOException {\n\t\tString cascades_collection=MongoDB.mongoDB.createCollection(db,\"cascades\",\" cascades from \"+filename+\" selon \"+this.toString()+\" avec \"+weightComputer+\" transform par \"+trans);\n\t\t\n\t\t\n\t\t\n\t\tSystem.out.println(\"Indexation \"+filename);\n\t\t//ArrayListStruct<User> ret=new ArrayListStruct<User>();\n\t\tHashMap<String,User> users=new HashMap<String,User>();\n\t\tHashSet<Post> posts=new HashSet<Post>();\n\t\tHashSet<Cascade> cascades=new HashSet<Cascade>();\n\t\t\n\t\tStemmer stemmer=new Stemmer();\n\t\tBufferedReader lecteur=new BufferedReader(new FileReader(filename));\n\t\tBufferedReader lecteurW=new BufferedReader(new FileReader(this.cascadesWeightsFile));\n\t\ttry{\n\t\t\tString ligne;\n\t\t\tint nbl=0;\n\t\t\twhile((ligne=lecteur.readLine())!=null){\n\t\t\t\tnbl++;\n\t\t\t}\n\t\t\tSystem.out.println(nbl+\" lignes\");\n\t\t\tlecteur.close();\n\t\t\tlecteur=new BufferedReader(new FileReader(filename));\n\t\t\tint nb=0;\n\t\t\tint nbc=0;\n\t\t\tint nbinvalides=0;\n\t\t\tlecteur.readLine();\n\t\t\tlecteurW.readLine();\n\t\t\twhile(((ligne=lecteur.readLine())!=null)){ // && (nb<10000)){\n\t\t\t\t\t//System.out.println(ligne); \n\t\t\t\t\t\n\t\t\t\tligne=ligne.replaceAll(\"\\r\", \" \");\n\t\t\t\tligne=ligne.replaceAll(\"\\\\r\", \" \");\n\t\t\t\tligne=ligne.replaceAll(\"\\\\\\\\r\", \" \");\n\t\t\t\tligne=ligne.replaceAll(\"\\n\", \" \");\n\t\t\t\tligne=ligne.replaceAll(\"\\\\n\", \" \");\n\t\t\t\tligne=ligne.replaceAll(\"\\\\\\\\n\", \" \");\n\t\t\t\tligne=ligne.replaceAll(\"\\t\", \" \");\n\t\t\t\tligne=ligne.replaceAll(\"\\\\t\", \" \");\n\t\t\t\tligne=ligne.replaceAll(\"\\\\\\\\t\", \" \");\n\t\t\t\tligne=ligne.replaceAll(\" \", \" \");\n\t\t\t\tligne=ligne.replace(\"^ \", \"\");\n\t\t\t\t\t//System.out.println(ligne);\n\t\t\t\t\tString[] li=ligne.split(\" \");\n\t\t\t\t\tUser user;\n\t\t\t\t\t\n\t\t\t\t\tif (li.length>=2){\n\t\t\t\t\t\t//System.out.println(li[0]+\":\"+li[1]);\n\t\t\t\t\t\tHashMap<String,Post> pc=new HashMap<String,Post>();\n\t\t\t\t\t\tHashMap<String,Long> vusUsers=new HashMap<String,Long>();\n\t\t\t\t\t\tfor(int i=0;i<li.length;i++){\n\t\t\t\t\t\t\tString[] triplet=li[i].split(\",\");\n\t\t\t\t\t\t\tif (users.containsKey(triplet[1])){\n\t\t\t\t\t\t\t\tuser=users.get(triplet[1]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\tuser=User.getUser(triplet[1]);\n\t\t\t\t\t\t\t\tusers.put(triplet[1],user);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tlong t=Long.valueOf(triplet[2])+1;\n\t\t\t\t\t\t\tif(triplet[0].compareTo(\"i\")==0){\n\t\t\t\t\t\t\t\tt=0;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif((!vusUsers.containsKey(user.getName())) || (vusUsers.get(user.getName())<t)){\n\t\t\t\t\t\t\t\tPost p=new Post(\"\",user,t,null);\n\t\t\t\t\t\t\t\tpc.put(user.getName(),p);\n\t\t\t\t\t\t\t\tvusUsers.put(user.getName(),t);\n\t\t\t\t\t\t\t\tposts.add(p);\n\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}\n\t\t\t\t\t\tif(pc.size()>1){\n\t\t\t\t\t\t\tString wl=lecteurW.readLine();\n\t\t\t\t\t\t\tString[] ws=wl.split(\" \");\n\t\t\t\t\t\t\tHashMap<Integer,Double> weights=new HashMap<Integer,Double>();\n\t\t\t\t\t\t\tfor(int i=0;i<ws.length;i++){\n\t\t\t\t\t\t\t\tString[] st=ws[i].split(\",\");\n\t\t\t\t\t\t\t\tweights.put(Integer.parseInt(st[0])+add, Double.valueOf(st[1]));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tnbc++;\n\t\t\t\t\t\t\tCascade c=new ArtificialCascade(nbc,nbc+\"\",new HashSet<Post>(pc.values()),weights);\n\t\t\t\t\t\t\tc.indexInto(db, cascades_collection);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\t\n\t\t\t\t\t\tSystem.out.println(\"ligne invalide :\" + ligne);\n\t\t\t\t\t\tnbinvalides++;\n\t\t\t\t\t\t//break;\n\t\t\t\t\t}\n\t\t\t\t\tnb++;\n\t\t\t\t\tif (nb%100==0){\n\t\t\t\t\t\tSystem.out.println(nb+\"/\"+nbl+\" lignes traitees\");\n\t\t\t\t\t}\n\n\t\t\t}\n\t\t\tSystem.out.println(nbinvalides+\" lignes invalides\");\n\t\t\t\n\t\t\t/*nb=0;\n\t\t\tnbl=posts.size();\n\t\t\tfor(Post post:posts){\n\t\t\t\tpost.indexInto(collection);\n\t\t\t\tif (nb%100==0){\n\t\t\t\t\tSystem.out.println(nb+\"/\"+nbl+\" posts inseres\");\n\t\t\t\t}\n\t\t\t\tnb++;\n\t\t\t}*/\n\t\t\tSystem.out.println(\"Creation indexs\");\n\t\t\tDBCollection col=MongoDB.mongoDB.getCollectionFromDB(db,cascades_collection);\n\t\t\tcol.ensureIndex(new BasicDBObject(\"id\", 1));\n\t\t}\n\t\tfinally{\n\t\t\tlecteur.close();\n\t\t\tlecteurW.close();\n\t\t}\n\t\t\n\t\treturn cascades_collection;\n\t}", "public void setTerms(Term[] terms) { this.terms = terms; }", "public List<IDoc> getDocs();", "public List<IDoc> getDocs();", "public Term[] getTerms(String file){\n\t\tfor (Map.Entry<String, IndexedDoc> set : index.entrySet()){\r\n\t\t\tif (set.getKey()==file){\r\n\t\t\t\treturn set.getValue().getTerms();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "@Override\n\tpublic void docToLists() {\n\t\tnodesToList(document, null, nodes);\n\t}", "public List<String> getFieldVector (String field, KrillCollection collection) {\n collection.setIndex(this);\n \n List fieldValues = new ArrayList<String>();\n String fieldValue;\n\n // Do not return fieldValues for token fields\n if (field.equals(\"tokens\") || field.equals(\"base\")) {\n return fieldValues;\n };\n\n \n try {\n final Filter filter = collection.toFilter();\n\n // Get from filtered index\n if (filter != null) {\n \n // Iterate over all atomic readers and collect occurrences\n for (LeafReaderContext atomic : this.reader().leaves()) {\n\n LeafReader lreader = atomic.reader();\n\n DocIdSet docids = filter.getDocIdSet(atomic, null);\n \n DocIdSetIterator docs = (docids == null) ? null : docids.iterator();\n\n if (docs == null)\n continue;\n \n while (docs.nextDoc() != DocIdSetIterator.NO_MORE_DOCS) {\n fieldValue = lreader.document(docs.docID()).get(field);\n if (fieldValue != null && fieldValue != \"\")\n fieldValues.add(fieldValue);\n };\n \n }\n } else { // Get from unfiltered index\n\n // Iterate over all atomic readers and collect occurrences\n for (LeafReaderContext atomic : this.reader().leaves()) {\n\n LeafReader lreader = atomic.reader();\n Bits live = lreader.getLiveDocs();\n\n for (int i=0; i<lreader.maxDoc(); i++) {\n if (live != null && !live.get(i))\n continue;\n \n Document doc = lreader.document(i);\n fieldValue = doc.get(field);\n if (fieldValue != null && fieldValue != \"\")\n fieldValues.add(fieldValue);\n };\n };\n };\n }\n\n // Something went wrong\n catch (IOException e) {\n log.warn(e.getLocalizedMessage());\n\t\t}\n\n // E.g. reference corpus not found\n catch (QueryException e) {\n log.warn(e.getLocalizedMessage());\n };\n\n return fieldValues;\n }", "private void invertedToDatabase(){\r\n cleFreq = new HashMap<>();\r\n System.out.println(\"Strat collecting\");\r\n Map<String,List<Invertedindex>> collects = collecting();\r\n System.out.println(\"Ending collecting\");\r\n Database.getInstance().invertedIndex(collects);\r\n Database.getInstance().addPoids(cleFreq);\r\n }", "private void addContentToLuceneDoc() {\n\t\t// Finish storing the document in the document store (parts of it may already have been\n\t\t// written because we write in chunks to save memory), retrieve the content id, and store\n\t\t// that in Lucene.\n\t\tint contentId = storeCapturedContent();\n\t\tcurrentLuceneDoc.add(new NumericField(ComplexFieldUtil.fieldName(\"contents\", \"cid\"),\n\t\t\t\tStore.YES, false).setIntValue(contentId));\n\n\t\t// Store the different properties of the complex contents field that were gathered in\n\t\t// lists while parsing.\n\t\tcontentsField.addToLuceneDoc(currentLuceneDoc);\n\t}", "private ArrayList<Document> convertToDocumentsList(ArrayList<WordDocument> list){\n ArrayList<Document> convertedList = new ArrayList<Document>();\n\n for(WordDocument x : list)\n convertedList.add(x.getDocument());\n\n return convertedList;\n }", "private void collect() {\n\n System.out.println(\"Getting IndexReader...\");\n final IndexReader reader = index.reader();\n\n System.out.println(\"Calling forEachDocument()...\");\n index.forEachDocument(new DocTask() {\n\n int docsDone = 0;\n\n final int totalDocs = reader.maxDoc() - reader.numDeletedDocs();\n\n @Override\n public void perform(BlackLabIndex index, int docId) {\n Map<String, String> metadata = new HashMap<>();\n Document luceneDoc = index.luceneDoc(docId);\n for (IndexableField f: luceneDoc.getFields()) {\n // If this is a regular metadata field, not a control field\n if (!f.name().contains(\"#\")) {\n fieldNames.add(f.name());\n if (f.stringValue() != null)\n metadata.put(f.name(), f.stringValue());\n else if (f.numericValue() != null)\n metadata.put(f.name(), f.numericValue().toString());\n }\n }\n values.add(metadata);\n docsDone++;\n if (docsDone % 100 == 0) {\n int perc = docsDone * 100 / totalDocs;\n System.out.println(docsDone + \" docs exported (\" + perc + \"%)...\");\n }\n }\n });\n }", "public Vector mapDocument(BOW bow, boolean b) {\n //logger.info(\"lsm.mapDocument \" + b);\n SparseVector vector = new SparseVector();\n\n Iterator<String> it = bow.termSet().iterator();\n for (int i = 0; it.hasNext(); i++) {\n //logger.info(i + \" \" + t[i]);\n String term = it.next();\n int index = termIndex.get(term);\n\n if (index != -1) {\n int tf = bow.getFrequency(term);\n float tfIdf = (float) (log2(tf));\n if (b) {\n tfIdf *= Iidf[index];\n }\n\n //logger.info(term + \" ==> \" + index + \", tf.idf = \" + tf + \"(\" + (log2(tf)) + \") * \" + Iidf[index] + \" = \" + tfIdf);\n vector.add(index, tfIdf);\n\n }\n } // end for\n\n return vector;\n }", "public void listarDocDaDisciplina(){\r\n for(int i=0;i<docentes.size();i++){\r\n System.out.println(docentes.get(i).toString());\r\n }\r\n }", "public interface DocumentRelatedTermsSearcher {\n List<ScoredTerm> getDocumentRelatedTerms(int docId, String term) throws SearchException;\n}", "int insert(Terms record);", "private Map<String,List<Invertedindex>> collecting() //\r\n {\r\n Map<String,List<Invertedindex>> maps = new TreeMap<>();\r\n for (Core pon:pondred){\r\n for(Map.Entry<String,Double> term:pon.allTerms.entrySet()){\r\n if (maps.containsKey(term.getKey())){\r\n List<Invertedindex> index = maps.get(term.getKey());\r\n index.add(new Invertedindex(pon.m_cle,term.getValue(),pon.getBalise(term.getKey())));\r\n maps.put(term.getKey(), index);\r\n }else {\r\n List<Invertedindex> index = new ArrayList<>();\r\n index.add(new Invertedindex(pon.m_cle,term.getValue(),pon.getBalise(term.getKey())));\r\n maps.put(term.getKey(), index);\r\n }\r\n if(cleFreq.containsKey(pon.m_cle))\r\n cleFreq.put(pon.m_cle,cleFreq.get(pon.m_cle)+term.getValue());\r\n else cleFreq.put(pon.m_cle,term.getValue());\r\n\r\n }\r\n }\r\n return maps;\r\n }", "boolean saveDocument(String termFieldName, String termFieldValue, Document document);", "List<String> tokenize0(String doc) {\r\n List<String> res = new ArrayList<String>();\r\n\r\n for (String s : doc.split(\"\\\\s+\")) {\r\n // implement stemming algorithm if ToStem == true\r\n if (ToStem == true) {\r\n Stemmer st = new Stemmer();\r\n st.add(s.toCharArray(), s.length());\r\n st.stem();\r\n s = st.toString();\r\n }\r\n res.add(s);\r\n }\r\n return res;\r\n }", "void processSingleValue(int numDocs, int[] outGroupIds);", "List<DataTerm> search(String searchTerm);", "@Override\r\n\tboolean parseDoc(String content, int documentID, int invertedIndexTableID) {\r\n\t\tDocumentInfo docInfo = new DocumentInfo();\r\n\t\tdocInfo.docID = documentID;\r\n\r\n\t\tString wordList[] = content.trim().split(\"\\\\s+\");\r\n\t\t\r\n\t\tArrayList<String> nGramMaker = new ArrayList<String>();\r\n\t\tStringBuilder ngramMaker = new StringBuilder();\r\n\t\t\r\n\t\tint ngramCheckIndex = 0;\r\n\t\tint ngramChecker = 0;\r\n\t\tfor (int i = 0; i < wordList.length; i++) {\r\n\t\t\tint postFixChecker = wordList[i].length();\r\n\t\t\tString word = deletePostFix(wordList[i]);\r\n\t\t\tif (word.length() != postFixChecker) {\r\n\t\t\t\t\r\n\t\t\t\tngramChecker++;\r\n\t\t\t\tngramMaker.append(word);\r\n\t\t\t\tnGramMaker.add(word);\r\n\t\t\t\t\r\n\t\t\t\tif(ngramChecker != this.nGramSetting){\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tngramChecker--;\r\n\t\t\t\tif(ngramCheckIndex != 0){\r\n\t\t\t\t\tngramMaker.replace(0, ngramCheckIndex, \"\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\taddHash(docInfo, ngramMaker.toString());\r\n\t\t\t\tngramCheckIndex = nGramMaker.get(0).length();\r\n\t\t\t\tnGramMaker.remove(0);\r\n\t\t\t}\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn DBManager.getInstance().insertBulkToHashTable(docInfo, invertedIndexTableID);\r\n\t\t\r\n\t}", "public HashMap<String, ArrayList<Counter<String>> > makeVectors(HashMap<String, ArrayList< List<String> > > hm) { \n HashMap<String, ArrayList<Counter<String>> > retHM = new HashMap<String, ArrayList<Counter<String>> >();\n for(String ID : hm.keySet() ){\n ArrayList<Counter<String>> tempVectList=new ArrayList<Counter<String>>();\n for(List<String> sentence : hm.get(ID) ){//loop through the list of sentences for that specific ID \n Counter<String> tempVect = new Counter<String>(); \n for(String word : sentence){//loop through the sentence\n tempVect.incrementCount(word,1.0);\n }\n tempVectList.add(tempVect);\n } \n retHM.put(ID,tempVectList);\n }\n return retHM;\n }", "private void setCorpus(){\n URL u = Converter.getURL(docName);\n FeatureMap params = Factory.newFeatureMap();\n params.put(\"sourceUrl\", u);\n params.put(\"markupAware\", true);\n params.put(\"preserveOriginalContent\", false);\n params.put(\"collectRepositioningInfo\", false);\n params.put(\"encoding\",\"windows-1252\");\n Print.prln(\"Creating doc for \" + u);\n Document doc = null;\n try {\n corpus = Factory.newCorpus(\"\");\n doc = (Document)\n Factory.createResource(\"gate.corpora.DocumentImpl\", params);\n } catch (ResourceInstantiationException ex) {\n ex.printStackTrace();\n }\n corpus.add(doc);\n annieController.setCorpus(corpus);\n params.clear();\n }", "List<WdWordDict> selectByExample(WdWordDictExample example);", "private static Map<String, List<List<String>>>[] splitYagoDataIntoDocumentSets(File yagoInputFile) {\r\n\t\tMap<String, List<List<String>>> trainData = new HashMap<String, List<List<String>>>();\r\n\t\tMap<String, List<List<String>>> testaData = new HashMap<String, List<List<String>>>();\r\n\t\tMap<String, List<List<String>>> testbData = new HashMap<String, List<List<String>>>();\r\n\t\t\r\n\t\tBufferedReader reader = FileUtil.getFileReader(yagoInputFile.getAbsolutePath());\r\n\t\ttry {\r\n\t\t\tString documentName = null;\r\n\t\t\tString documentSet = null;\r\n\t\t\tList<List<String>> documentLines = null;\r\n\t\t\tList<String> sentenceLines = null;\r\n\t\t\tString line = null;\r\n\t\t\twhile ((line = reader.readLine()) != null) {\r\n\t\t\t\tif (line.startsWith(\"-DOCSTART-\")) {\r\n\t\t\t\t\tif (documentSet != null) {\r\n\t\t\t\t\t\tif (documentSet.equals(\"train\"))\r\n\t\t\t\t\t\t\ttrainData.put(documentName, documentLines);\r\n\t\t\t\t\t\telse if (documentSet.equals(\"testa\"))\r\n\t\t\t\t\t\t\ttestaData.put(documentName, documentLines);\r\n\t\t\t\t\t\telse if (documentSet.equals(\"testb\"))\r\n\t\t\t\t\t\t\ttestbData.put(documentName, documentLines);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tString docId = line.substring(\"-DOCSTART- (\".length(), line.length() - 1);\r\n\t\t\t\t\tString[] docIdParts = docId.split(\" \");\r\n\t\t\t\t\tdocumentName = docIdParts[0] + \"_\" + docIdParts[1];\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (docIdParts[0].endsWith(\"testa\"))\r\n\t\t\t\t\t\tdocumentSet = \"testa\";\r\n\t\t\t\t\telse if (docIdParts[0].endsWith(\"testb\"))\r\n\t\t\t\t\t\tdocumentSet = \"testb\";\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\tdocumentSet = \"train\";\r\n\t\t\t\t\t\r\n\t\t\t\t\tdocumentLines = new ArrayList<List<String>>();\r\n\t\t\t\t\tsentenceLines = new ArrayList<String>();\r\n\t\t\t\t} else if (line.trim().length() == 0) {\r\n\t\t\t\t\tdocumentLines.add(sentenceLines);\r\n\t\t\t\t\tsentenceLines = new ArrayList<String>();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsentenceLines.add(line);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (documentSet.equals(\"train\"))\r\n\t\t\t\ttrainData.put(documentName, documentLines);\r\n\t\t\telse if (documentSet.equals(\"testa\"))\r\n\t\t\t\ttestaData.put(documentName, documentLines);\r\n\t\t\telse if (documentSet.equals(\"testb\"))\r\n\t\t\t\ttestbData.put(documentName, documentLines);\r\n\t\t} catch (IOException e) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\tMap<String, List<List<String>>>[] returnData = new HashMap[3];\r\n\t\treturnData[0] = trainData;\r\n\t\treturnData[1] = testaData;\r\n\t\treturnData[2] = testbData;\r\n\t\t\r\n\t\treturn returnData;\r\n\t}", "public void init() {\n File file=new File(\"D:\\\\lucene\\\\index\");\n if(file.isDirectory())\n { //否则如果它是一个目录\n File files[] = file.listFiles(); //声明目录下所有的文件 files[];\n for(int i=0;i<files.length;i++)\n { //遍历目录下所有的文件\n files[i].delete(); //把每个文件 用这个方法进行迭代\n }\n }\n String indexPath = \"D:\\\\lucene\\\\index\";\n //String docsPath = \"D:\\\\lucene\\\\data\";\n boolean create = true;\n try\n {\n Session session=factory.openSession();\n String hql = \"from Book\";\n org.hibernate.Query query = session.createQuery(hql);\n List<Book> list=query.list();\n Directory indexDir = FSDirectory.open(Paths.get(\"D:\\\\lucene\\\\index\"));\n Analyzer luceneAnalyzer = new StandardAnalyzer(); //新建一个分词器实例 \n IndexWriterConfig config = new IndexWriterConfig(luceneAnalyzer); \n IndexWriter indexWriter = new IndexWriter(indexDir,config);\n for(int i=0;i<list.size();i++)\n {\n Document document = new Document();\n Field field1 = new StringField(\"id\",list.get(i).getBookid().toString(),Field.Store.YES); \n Field field2 = new StringField(\"bookname\",list.get(i).getBookname(),Field.Store.YES); \n Field field3 = new StringField(\"author\",list.get(i).getAuthor(),Field.Store.YES); \n Field field4 = new StringField(\"category\",list.get(i).getCategory(),Field.Store.YES); \n Field field5 = new StringField(\"price\", Double.toString(list.get(i).getPrice()),Field.Store.YES); \n document.add(field1); \n document.add(field2); \n document.add(field3); \n document.add(field4);\n document.add(field5);\n indexWriter.addDocument(document);\n }\n indexWriter.close();\n }\n catch(IOException e)\n {\n System.out.println(\"error\");\n return;\n }\n }", "public ClsNodeDocument[] GetDocuments (ClsNodeDocument[] searchDocs);", "private Map<String,Map<String,List<String>>> buildDictionary(Document doc){\n\t\t\n\t\tElement root = doc.getDocumentElement();\n\t\t\n\t\t\n\t\tMap<String,Map<String,List<String>>> dictionary = new HashMap<String,Map<String,List<String>>>();\n\t\tthis.termSet = new TreeSet<String>();\n\t\t\n\t\tNodeList termList = doc.getElementsByTagName(\"term\");\n\t\tfor(int i = 0; i < termList.getLength(); i++){\n\t\t\tElement termElement = (Element) termList.item(i);\n\t\t\tElement nameElement = (Element) termElement.getElementsByTagName(\"name\").item(0);\n\t\t\tString name = nameElement.getTextContent();\n\t\t\tthis.termSet.add(name);\n\n\t\t\tMap<String,List<String>> synonymGroup = new HashMap<String,List<String>>();\n\t\t\tsynonymGroup.put(\"exact\", new ArrayList<String>());\n\t\t\tsynonymGroup.put(\"related\", new ArrayList<String>());\n\t\t\tsynonymGroup.put(\"broad\", new ArrayList<String>());\n\t\t\tsynonymGroup.put(\"narrow\", new ArrayList<String>());\n\t\t\t\n\t\t\tNodeList synonyms = termElement.getElementsByTagName(\"synonym\");\n\t\t\tfor(int j=0; j<synonyms.getLength(); j++){\n\t\t\t\tElement synonymElement = (Element) synonyms.item(j);\n\t\t\t\tString synonym = synonymElement.getTextContent();\n\t\t\t\tString scope = synonymElement.getAttribute(\"scope\");\n\t\t\t\t//System.out.println(scope);\n\t\t\t\tList<String> synonymList = (List<String>) synonymGroup.get(scope);\n\t\t\t\t\n\t\t\t\t//System.out.println(synonym);\n\t\t\t\t\n\t\t\t\tsynonymList.add(synonym);\n\t\t\t}\n\t\t\t\n\t\t\tdictionary.put(name,synonymGroup);\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\treturn dictionary;\n\t}", "void eachDoc(Function<List<VocabWord>, Void> func, ExecutorService exec);", "QDataSetTerm createDataSetTerm();", "private HashMap<String, HashSet<String>> convertIndexToMap(IndexReader reader) throws IOException{\n\t\t HashMap<String, HashSet<String>> hmap = new HashMap<String, HashSet<String>>();\n\t\t HashSet<String> docIdSet;\n\t\t \n\t\t for(int i=0; i<reader.numDocs(); i++){\n\t\t\t Fields termVect = reader.getTermVectors(i);\n\n\t\t\t if(termVect == null)\n\t\t\t\t continue;\n\t\t\t \n\t for (String field : termVect) {\n\t \t \n\t Terms terms = termVect.terms(field);\n\t TermsEnum termsEnum = terms.iterator();\n\t Document doc = reader.document(i);\n\t \n\t while(termsEnum.next() != null){\n\t \t BytesRef term = termsEnum.term();\n\t \t String strTerm = term.utf8ToString();\n\t \t \n\t \t if (hmap.containsKey(strTerm)){\n\t \t\t docIdSet = hmap.get(strTerm);\n\t \t\t docIdSet.add(doc.get(\"url\"));\n\t \t } else{\n\t \t\t docIdSet = new HashSet<String>();\n\t \t\t docIdSet.add(doc.get(\"url\"));\n\t \t\t hmap.put(strTerm, docIdSet);\n\t \t }\n\t }\n\t }\n\t\t }\n\t\t \n\t\t return hmap;\n\t}", "public void set_graph() throws ParseException, IOException {\n \tg = new WeightedUndirectedGraph(words.length);\n //g = new WeightedUndirectedGraph(most_important_terms.size());\n \n Directory dir = new SimpleFSDirectory(new File(\".\\\\data\\\\lucene_index_r_r\"));\n Analyzer analyzer = new StandardAnalyzer(LUCENE_41);\n \n // creat a map that stores, for each word (in the cluster), a set of all the documents that contain that word\n HashMap<String,HashSet<Integer>> word_to_docs_map = new HashMap<String,HashSet<Integer>>();\n int n_strings = words.length; \n \n // for each word...\n for (int idx = 0; idx < n_strings; idx++) {\n // query the index with that given word and retrieve all the documents that contains that word\n String query = words[idx]; \n QueryParser parser = new QueryParser(Version.LUCENE_41, \"text\", analyzer); \n Query q = parser.parse(query); \n\n IndexReader reader = DirectoryReader.open(dir);\n IndexSearcher searcher = new IndexSearcher(reader);\n TopDocs docs = searcher.search(q, reader.numDocs());\n ScoreDoc[] hits = docs.scoreDocs;\n \n // update map from word to docs it appears in \n //HashSet<Integer> tmp = null;\n // tmp is the set of all the document ids in which the current word is contained\n HashSet<Integer> tmp = new HashSet<>();\n //word_to_docs_map.put(query, tmp);\n \n // for each document, retrieved from the query\n for(Integer i=0;i<hits.length;i++) {\n Integer docId = hits[i].doc;\n // tmp = word_to_docs_map.get(query); \n // if the document is a document written by an user of interest \n if(indices.contains(docId)) {\n tmp.add(docId);\n }\n //word_to_docs_map.put(query, tmp); \n }\n word_to_docs_map.put(query, tmp);\n\t }\n\t \n\t // add edges: iterate over possible term pairs ...\n\t for(int idx_1 = 0; idx_1 < n_strings - 1; idx_1++) {\n\t \n\t for(int idx_2 = idx_1 + 1 ; idx_2 < n_strings ; idx_2 ++ ) {\n\t \n\t // extract document sets associated with the considered terms \n\t HashSet<Integer> set_a = word_to_docs_map.get(words[idx_1]); \n\t HashSet<Integer> set_b = word_to_docs_map.get(words[idx_2]); \n\t \n\t // compute set intersection \n\t int n = intersectionSize(set_a, set_b);\n\t \n\t // if the terms appear in at least one common document\n\t if(n>0) {\n\t // add edge \n\t g.testAndAdd(idx_1, idx_2 , n); \n\t }\n\t } \n\t }\n\t}", "public void index(List<ParsedDocument> pdocs,int qid) {\n\t\ttry {\n\t\t\tint count = iw.maxDoc()+1;\n\t\t\tDocument doc = null;\n\t\t\tIndexDocument iDoc=null;\n\t\t\tfor (ParsedDocument pdoc : pdocs) {\n\t\t\t\t\n\t\t\t\tiDoc=parseDocument(pdoc);\n\t\t\t\tif(iDoc==null){\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tField queryField = new Field(\"qid\", qid+\"\", Store.YES,\n\t\t\t\t\t\tIndex.NOT_ANALYZED);\n\t\t\t\tField uniqueField = new Field(\"id\", count + \"\", Store.YES,\n\t\t\t\t\t\tIndex.NOT_ANALYZED);\n\t\t\t\tField titleField = new Field(\"title\", iDoc.getTitle(),\n\t\t\t\t\t\tStore.YES, Index.ANALYZED, TermVector.YES);\n\t\t\t\tField bodyField = new Field(\"body\", iDoc.getBody(), Store.YES,\n\t\t\t\t\t\tIndex.ANALYZED, TermVector.YES);\n\t\t\t\tField urlField = new Field(\"url\", iDoc.getUrl(), Store.YES,\n\t\t\t\t\t\tIndex.NOT_ANALYZED);\n\t\t\t\tField anchorField = new Field(\"anchor\", iDoc.getAnchor(), Store.YES,\n\t\t\t\t\t\tIndex.ANALYZED, TermVector.YES);\n\n\t\t\t\tdoc = new Document();\n\t\t\t\tdoc.add(uniqueField);//标示不同的document\n\t\t\t\tdoc.add(queryField);//标示不同的query\n\t\t\t\tdoc.add(titleField);\n\t\t\t\tdoc.add(bodyField);\n\t\t\t\tdoc.add(urlField);\n\t\t\t\tdoc.add(anchorField);\n\t\t\t\t\n\t\t\t\tiw.addDocument(doc);\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\tiw.commit();\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} \n\t}", "private void createDocWords() {\n\t\tArrayList<DocWords> docList=new ArrayList<>();\n\t\ttry {\n\t\t\tBufferedReader in = new BufferedReader(new FileReader(\"E:\\\\graduate\\\\cloud\\\\project\\\\data\\\\docWords.txt\"));\n\t\t\tString line = \"\";\n\t\t\twhile ((line = in.readLine()) != null) {\n\t\t\t\tString parts[] = line.split(\" \");\n\t\t\t\tDocWords docWords=new DocWords();\n\t\t\t\tdocWords.setDocName(parts[0].replace(\".txt\", \"\"));\n\t\t\t\tdocWords.setCount(Float.parseFloat(parts[1]));\n\t\t\t\tdocList.add(docWords);\n\t\t\t}\n\t\t\tin.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tDBUtil.insertDocWords(docList);\n\t}", "protected abstract String listLearnValues();", "public void makeQueryTermList() {\n for (int i = 0; i < this.stemmed_query.size(); i++) {\n boolean added = false;\n String curTerm = this.stemmed_query.get(i);\n for (int j = 0; j < this.query_terms_list.size(); j++) {\n if (this.query_terms_list.get(j).strTerm.compareTo(curTerm) == 0) {\n this.query_terms_list.get(j).timeOccur++;\n added = true;\n break;\n }\n }\n if (added == false) {\n this.query_terms_list.add(new QueryTerm(curTerm));\n }\n }\n }", "public void read(String filename) throws IOException {\n // open the file\n BufferedReader r = new BufferedReader(new FileReader(filename));\n\n // load the number of terms\n int size = Integer.parseInt(r.readLine());\n\n // must divide by load factor (0.75) to not need to rehash\n index = new HashMap((int) (size / .75) + 1);\n\n // temporary variables\n String line;\n StringTokenizer tokens;\n String word;\n HashMap docList;\n String docid;\n int[] fArray;\n int lineNumber = 1;\n\n // while there are more lines in the document\n while ((line = r.readLine()) != null) {\n // increment the line number\n lineNumber++;\n\n // the word is the only thing on the line\n word = line;\n\n // load all documents containign this term\n docList = new HashMap();\n index.put(word, docList);\n\n line = r.readLine();\n while (line != null && !line.equals(\"\")) {\n fArray = new int[1];\n\n docid = line;\n fArray[0] = Integer.parseInt(r.readLine());\n\n docList.put(docid, fArray);\n line = r.readLine();\n }\n }\n\n // close the file\n r.close();\n }", "int[] allDocs();", "public TranscriptionIndexer() throws SQLException, CorruptIndexException, IOException\r\n {\r\n\r\n\r\n IndexWriter writer = null;\r\n Analyzer analyser;\r\n Directory directory;\r\n /**@TODO parameterized location*/\r\n String dest = \"/usr/indexTranscriptions\";\r\n\r\n directory = FSDirectory.getDirectory(dest, true);\r\n analyser = new StandardAnalyzer();\r\n writer = new IndexWriter(directory, analyser, true);\r\n PreparedStatement stmt=null;\r\n Connection j = null;\r\n try {\r\n j=DatabaseWrapper.getConnection();\r\n String query=\"select * from transcription where text!='' and creator>0 order by folio, line\";\r\n stmt=j.prepareStatement(query);\r\n ResultSet rs=stmt.executeQuery();\r\n while(rs.next())\r\n {\r\n int folio=rs.getInt(\"folio\");\r\n int line=rs.getInt(\"line\");\r\n int UID=rs.getInt(\"creator\");\r\n int id=rs.getInt(\"id\");\r\n Transcription t=new Transcription(id);\r\n Document doc = new Document();\r\n Field field;\r\n field = new Field(\"text\", t.getText(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"comment\", t.getComment(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"creator\", \"\" + t.UID, Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"security\", \"\" + \"private\", Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"line\", \"\" + t.getLine(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"page\", \"\" + t.getFolio(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"id\", \"\" + t.getLineID(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"manuscript\", \"\" + new Manuscript(t.getFolio()).getID(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"projectID\", \"\" + t.getProjectID(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n writer.addDocument(doc);\r\n }\r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n if(writer!=null)\r\n {\r\n writer.commit();\r\n \twriter.close();\r\n return;\r\n }\r\n ex.printStackTrace();\r\n }\r\n finally{\r\n DatabaseWrapper.closeDBConnection(j);\r\n DatabaseWrapper.closePreparedStatement(stmt);\r\n }\r\n\r\n writer.commit();\r\n \twriter.close();\r\n}", "public void readDocVector(IndexReader indexReader, String fieldName, int docid) throws IOException {\n\n\t\tTerms vector = indexReader.getTermVector( docid, fieldName ); // Read the document's document vector.\n\n\t\t// You need to use TermsEnum to iterate each entry of the document vector (in alphabetical order).\n\t\tSystem.out.printf( \"%-20s%-10s%-20s\\n\", \"TERM\", \"FREQ\", \"POSITIONS\" );\n\t\tTermsEnum terms = vector.iterator();\n\t\tPostingsEnum positions = null;\n\t\tBytesRef term;\n\t\twhile ( ( term = terms.next() ) != null ) {\n\n\t\t\tString termstr = term.utf8ToString(); // Get the text string of the term.\n\t\t\tlong freq = terms.totalTermFreq(); // Get the frequency of the term in the document.\n\n\t\t\tSystem.out.printf( \"%-20s%-10d\", termstr, freq );\n\n\t\t\t// Lucene's document vector can also provide the position of the terms\n\t\t\t// (in case you stored these information in the index).\n\t\t\t// Here you are getting a PostingsEnum that includes only one document entry, i.e., the current document.\n\t\t\tpositions = terms.postings( positions, PostingsEnum.POSITIONS );\n\t\t\tpositions.nextDoc(); // you still need to move the cursor\n\t\t\t// now accessing the occurrence position of the terms by iteratively calling nextPosition()\n\t\t\tfor ( int i = 0; i < freq; i++ ) {\n\t\t\t\tSystem.out.print( ( i > 0 ? \",\" : \"\" ) + positions.nextPosition() );\n\t\t\t}\n\t\t\tSystem.out.println();\n\n\t\t}\n\t}", "public String [] getAnnotationList(String fieldName, int [] indices);", "ArrayList<Term> getTerms() {\n ArrayList<Term> terms = new ArrayList<>();\n String[] columns = {\"id\", \"name\", \"start_date\", \"end_date\"};\n Cursor cursor = db.query(\"term\", columns, null, null, null, null, null);\n while (cursor.moveToNext()) {\n Term term = new Term();\n term.setId(cursor.getInt(0));\n term.setName(cursor.getString(1));\n term.setStartDate(cursor.getString(2));\n term.setEndDate(cursor.getString(3));\n terms.add(term);\n }\n return terms;\n }", "@Transactional\r\n\tpublic List<CmVocabularyCategory> getCmVocabularyCategorysByField(final String fieldName, final Object value) {\r\n\t\treturn dao.findByField(CmVocabularyCategory.class, fieldName, value, \"modifyTimestamp\", false);\r\n\t}", "java.util.List<java.lang.String> getValuesList();", "List<Pair<String, Value>> fields();", "Set<Document> findDocuments(Map<String, String> fields);", "Set<Keyword> listKeywords();", "public static void main(String[] args) throws Exception \n\t{\n\t\tList<String> stopWords = new ArrayList<String>();\n\t\tstopWords = stopWordsCreation();\n\n\n\t\t\n\t\tHashMap<Integer, String> hmap = new HashMap<Integer, String>();\t//Used in tittle, all terms are unique, and any dups become \" \"\n\t\n\t\t\n\t\tList<String> uniqueTerms = new ArrayList<String>();\n\t\tList<String> allTerms = new ArrayList<String>();\n\t\t\t\t\n\t\t\n\t\tHashMap<Integer, String> hmap2 = new HashMap<Integer, String>();\n\t\tHashMap<Integer, String> allValues = new HashMap<Integer, String>();\n\t\tHashMap<Integer, Double> docNorms = new HashMap<Integer, Double>();\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tMap<Integer, List<String>> postingsFileListAllWords = new HashMap<>();\t\t\n\t\tMap<Integer, List<String>> postingsFileList = new HashMap<>();\n\t\t\n\t\tMap<Integer, List<StringBuilder>> docAndTitles = new HashMap<>();\n\t\tMap<Integer, List<StringBuilder>> docAndAbstract = new HashMap<>();\n\t\tMap<Integer, List<StringBuilder>> docAndAuthors = new HashMap<>();\n\t\t\n\t\t\n\t\tMap<Integer, List<Double>> termWeights = new HashMap<>();\n\t\t\n\t\tList<Integer> docTermCountList = new ArrayList<Integer>();\n\t\t\n\t\tBufferedReader br = null;\n\t\tFileReader fr = null;\n\t\tString sCurrentLine;\n\n\t\tint documentCount = 0;\n\t\tint documentFound = 0;\n\t\tint articleNew = 0;\n\t\tint docTermCount = 0;\n\t\t\n\t\t\n\t\tboolean abstractReached = false;\n\n\t\ttry {\n\t\t\tfr = new FileReader(FILENAME);\n\t\t\tbr = new BufferedReader(fr);\n\n\t\t\t// Continues to get 1 line from document until it reaches the end of EVERY doc\n\t\t\twhile ((sCurrentLine = br.readLine()) != null) \n\t\t\t{\n\t\t\t\t// sCurrentLine now contains the 1 line from the document\n\n\t\t\t\t// Take line and split each word and place them into array\n\t\t\t\tString[] arr = sCurrentLine.split(\" \");\n\n\n\t\t\t\t//Go through the entire array\n\t\t\t\tfor (String ss : arr) \n\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t\t/*\n\t\t\t\t\t * This section takes the array and checks to see if it has reached a new\n\t\t\t\t\t * document or not. If the current line begins with an .I, then it knows that a\n\t\t\t\t\t * document has just started. If it incounters another .I, then it knows that a\n\t\t\t\t\t * new document has started.\n\t\t\t\t\t */\n\t\t\t\t\t//System.out.println(\"Before anything: \"+sCurrentLine);\n\t\t\t\t\tif (arr[0].equals(\".I\")) \n\t\t\t\t\t{\t\t\t\t\t\t\n\t\t\t\t\t\tif (articleNew == 0) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tarticleNew = 1;\n\t\t\t\t\t\t\tdocumentFound = Integer.parseInt(arr[1]);\n\t\t\t\t\t\t} \n\t\t\t\t\t\telse if (articleNew == 1) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tarticleNew = 0;\n\t\t\t\t\t\t\tdocumentFound = Integer.parseInt(arr[1]);\n\t\t\t\t\t\t}\t\t\t\n\t\t\t\t\t\t//System.out.println(documentFound);\n\t\t\t\t\t\t//count++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t/* This section detects that after a document has entered,\n\t\t\t\t\t * it has to gather all the words contained in the title \n\t\t\t\t\t * section.\n\t\t\t\t\t */\n\t\t\t\t\tif (arr[0].equals(\".T\") ) \n\t\t\t\t\t{\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t// Go to line UNDER .T since that is where tittle is located\n\t\t\t\t\t\t//sCurrentLine = br.readLine();\n\t\t\t\t\t\tdocAndTitles.put(documentFound, new ArrayList<StringBuilder>());\n\t\t\t\t\t\t//System.out.println(\"docAndTitles.get(documentCount+1): \" +docAndTitles.get(documentFound));\n\t\t\t\t\t\t//System.out.println(\"Docs and titles: \"+docAndTitles);\n\t\t\t\t\t\tStringBuilder title = new StringBuilder();\n\t\t\t\t\t\t\n\t\t\t\t\t\twhile ( !(sCurrentLine = br.readLine()).matches(\".B|.A|.N|.X|.K|.C\") )\n\t\t\t\t\t\t{\t\t\t\t\n\t\t\t\t\t\t\t/* In this section, there are 2 lists being made. One list\n\t\t\t\t\t\t\t * is for all the unique words in every title in the document (hmap).\n\t\t\t\t\t\t\t * Hmap contains all unique words, and anytime a duplicate word is \n\t\t\t\t\t\t\t * found, it is replaced with an empty space in the map.\n\t\t\t\t\t\t\t * All Values \n\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\t//postingsFileList.put(documentFound - 1, new ArrayList<String>());\n\t\t\t\t\t\t\t//postingsFileList.get(documentFound - 1).add(term2);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//System.out.println(\"current line: \"+sCurrentLine);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tString[] tittle = sCurrentLine.split(\" \");\n\t\t\t\t\t\t\tif (tittle[0].equals(\".W\") )\n\t\t\t\t\t\t\t{\t\t\n\t\t\t\t\t\t\t\tabstractReached = true;\n\t\t\t\t\t\t\t\tbreak;\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\ttitle.append(sCurrentLine);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfor (String tittleWords : tittle)\n\t\t\t\t\t\t\t{\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\ttittleWords = tittleWords.toLowerCase();\n\t\t\t\t\t\t\t\ttittleWords = tittleWords.replaceAll(\"[-&^%'{}*|$+\\\\/\\\\?!<>=.,;_:()\\\\[\\\\]\\\"\\\\d]\", \"\");\n\t\t\t\t\t\t\t\ttittleWords = tittleWords.replaceAll(\"[-&^%'*{}|$+\\\\/\\\\?!<>=.,;_:()\\\\[\\\\]\\\"\\\\d]\", \"\");\n\t\t\t\t\t\t\t\ttittleWords = tittleWords.replaceAll(\"[-&^%'{}*|$+\\\\/\\\\?!<>=.,;_:()\\\\[\\\\]\\\"\\\\d]\", \"\");\n\t\t\t\t\t\t\t\t//System.out.println(tittleWords);\n\t\t\t\t\t\t\t\tif (hmap.containsValue(tittleWords)) \n\t\t\t\t\t\t\t\t{\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\thmap.put(documentCount, \" \");\n\t\t\t\t\t\t\t\t\tallValues.put(documentCount, tittleWords);\n\t\t\t\t\t\t\t\t\tallTerms.add(tittleWords);\n\t\t\t\t\t\t\t\t\tdocumentCount++;\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{\n\t\t\t\t\t\t\t\t\tallTerms.add(tittleWords);\n\t\t\t\t\t\t\t\t\tallValues.put(documentCount, tittleWords);\n\t\t\t\t\t\t\t\t\thmap.put(documentCount, tittleWords);\n\t\t\t\t\t\t\t\t\tif (!(uniqueTerms.contains(tittleWords)))\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tif ((stopWordsSetting && !(stopWords.contains(tittleWords))))\n\t\t\t\t\t\t\t\t\t\t\tuniqueTerms.add(tittleWords);\n\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\tdocumentCount++;\n\t\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//docAndTitles.get(documentCount).add(\" \");\n\t\t\t\t\t\t\ttitle.append(\"\\n\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//System.out.println(\"Title: \"+title);\n\t\t\t\t\t\t//System.out.println(\"docAndTitles.get(documentCount+1): \" +docAndTitles.get(documentFound));\n\t\t\t\t\t\tdocAndTitles.get(documentFound).add(title);\n\t\t\t\t\t\t//System.out.println(\"Done!: \"+ docAndTitles);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tif (arr[0].equals(\".A\") ) \n\t\t\t\t\t{\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t// Go to line UNDER .T since that is where tittle is located\n\t\t\t\t\t\t//sCurrentLine = br.readLine();\n\t\t\t\t\t\tdocAndAuthors.put(documentFound, new ArrayList<StringBuilder>());\n\t\t\t\t\t\t//System.out.println(\"docAndTitles.get(documentCount+1): \" +docAndTitles.get(documentFound));\n\t\t\t\t\t\t//System.out.println(\"Docs and titles: \"+docAndTitles);\n\t\t\t\t\t\tStringBuilder author = new StringBuilder();\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\twhile ( !(sCurrentLine = br.readLine()).matches(\".N|.X|.K|.C\") )\n\t\t\t\t\t\t{\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t/* In this section, there are 2 lists being made. One list\n\t\t\t\t\t\t\t * is for all the unique words in every title in the document (hmap).\n\t\t\t\t\t\t\t * Hmap contains all unique words, and anytime a duplicate word is \n\t\t\t\t\t\t\t * found, it is replaced with an empty space in the map.\n\t\t\t\t\t\t\t * All Values \n\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\t//postingsFileList.put(documentFound - 1, new ArrayList<String>());\n\t\t\t\t\t\t\t//postingsFileList.get(documentFound - 1).add(term2);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//System.out.println(\"current line: \"+sCurrentLine);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tString[] tittle = sCurrentLine.split(\" \");\n\t\t\t\t\t\t\tif (tittle[0].equals(\".W\") )\n\t\t\t\t\t\t\t{\t\t\n\t\t\t\t\t\t\t\tabstractReached = true;\n\t\t\t\t\t\t\t\tbreak;\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\tauthor.append(sCurrentLine);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//docAndTitles.get(documentCount).add(\" \");\n\t\t\t\t\t\t\tauthor.append(\"\\n\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//System.out.println(\"Title: \"+title);\n\t\t\t\t\t\t//System.out.println(\"docAndTitles.get(documentCount+1): \" +docAndTitles.get(documentFound));\n\t\t\t\t\t\tdocAndAuthors.get(documentFound).add(author);\n\t\t\t\t\t\t//System.out.println(\"Done!: \"+ docAndTitles);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t/* Since there may or may not be an asbtract after\n\t\t\t\t\t * the title, we need to check what the next section\n\t\t\t\t\t * is. We know that every doc has a publication date,\n\t\t\t\t\t * so it can end there, but if there is no abstract,\n\t\t\t\t\t * then it will keep scanning until it reaches the publication\n\t\t\t\t\t * date. If abstract is empty (in tests), it will also finish instantly\n\t\t\t\t\t * since it's blank and goes straight to .B (the publishing date).\n\t\t\t\t\t * Works EXACTLY like Title \t\t \n\t\t\t\t\t */\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tif (abstractReached) \n\t\t\t\t\t{\t\n\t\t\t\t\t\t//System.out.println(\"\\n\");\n\t\t\t\t\t\t//System.out.println(\"REACHED ABSTRACT and current line is: \" +sCurrentLine);\n\t\t\t\t\t\tdocAndAbstract.put(documentFound, new ArrayList<StringBuilder>());\n\t\t\t\t\t\tStringBuilder totalAbstract = new StringBuilder();\n\t\t\t\t\t\t\n\t\t\t\t\t\twhile ( !(sCurrentLine = br.readLine()).matches(\".T|.I|.A|.N|.X|.K|.C\") )\n\t\t\t\t\t\t{\t\n\t\t\t\t\t\t\tString[] abstaract = sCurrentLine.split(\" \");\n\t\t\t\t\t\t\tif (abstaract[0].equals(\".B\") )\n\t\t\t\t\t\t\t{\t\t\t\n\t\t\t\t\t\t\t\tabstractReached = false;\n\t\t\t\t\t\t\t\tbreak;\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\ttotalAbstract.append(sCurrentLine);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tString[] misc = sCurrentLine.split(\" \");\n\t\t\t\t\t\t\tfor (String miscWords : misc) \n\t\t\t\t\t\t\t{\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tmiscWords = miscWords.toLowerCase(); \n\t\t\t\t\t\t\t\tmiscWords = miscWords.replaceAll(\"[-&^%'*$+|{}?!\\\\/<\\\\>=.,;_:()\\\\[\\\\]\\\"\\\\d]\", \"\");\n\t\t\t\t\t\t\t\tmiscWords = miscWords.replaceAll(\"[-&^%'*$+|?{}!\\\\/<\\\\>=.,;_:()\\\\[\\\\]\\\"\\\\d]\", \"\");\t\t\n\t\t\t\t\t\t\t\tmiscWords = miscWords.replaceAll(\"[-&^%'*$+|{}?!\\\\/<\\\\>=.,;_:()\\\\[\\\\]\\\"\\\\d]\", \"\");\t\t\n\t\t\t\t\t\t\t\t//System.out.println(miscWords);\n\t\t\t\t\t\t\t\tif (hmap.containsValue(miscWords)) \n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\thmap.put(documentCount, \" \");\n\t\t\t\t\t\t\t\t\tallValues.put(documentCount, miscWords);\n\t\t\t\t\t\t\t\t\tallTerms.add(miscWords);\n\t\t\t\t\t\t\t\t\tdocumentCount++;\n\t\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{\n\t\t\t\t\t\t\t\t\tallTerms.add(miscWords);\n\t\t\t\t\t\t\t\t\thmap.put(documentCount, miscWords);\n\t\t\t\t\t\t\t\t\tallValues.put(documentCount, miscWords);\n\t\t\t\t\t\t\t\t\tif (!(uniqueTerms.contains(miscWords)))\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tif ((stopWordsSetting && !(stopWords.contains(miscWords))))\n\t\t\t\t\t\t\t\t\t\t\tuniqueTerms.add(miscWords);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tdocumentCount++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\t\n\t\t\t\t\t\t\ttotalAbstract.append(\"\\n\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdocAndAbstract.get(documentFound).add(totalAbstract);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\t\n\t\t\t\t\n\t\t\t\t//Once article is found, we enter all of of it's title and abstract terms \n\t\t\t\tif (articleNew == 0) \n\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t\tdocumentFound = documentFound - 1;\n\t\t\t\t\t//System.out.println(\"Words found in Doc: \" + documentFound);\n\t\t\t\t\t//System.out.println(\"Map is\" +allValues);\n\t\t\t\t\tSet set = hmap.entrySet();\n\t\t\t\t\tIterator iterator = set.iterator();\n\n\t\t\t\t\tSet set2 = allValues.entrySet();\n\t\t\t\t\tIterator iterator2 = set2.iterator();\n\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tpostingsFileList.put(documentFound - 1, new ArrayList<String>());\n\t\t\t\t\tpostingsFileListAllWords.put(documentFound - 1, new ArrayList<String>());\n\t\t\t\t\twhile (iterator.hasNext()) {\n\t\t\t\t\t\tMap.Entry mentry = (Map.Entry) iterator.next();\n\t\t\t\t\t\t// (\"key is: \"+ mentry.getKey() + \" & Value is: \" + mentry.getValue());\n\t\t\t\t\t\t// (\"Value is: \" + mentry.getValue());\n\t\t\t\t\t\t// );\n\t\t\t\t\t\tString term = mentry.getValue().toString();\n\t\t\t\t\t\t// //\"This is going to be put in doc3: \"+ (documentFound-1));\n\t\t\t\t\t\tpostingsFileList.get(documentFound - 1).add(term);\n\t\t\t\t\t\t// if ( !((mentry.getValue()).equals(\" \")) )\n\t\t\t\t\t\tdocTermCount++;\n\t\t\t\t\t}\n\t\t\t\t\t// \"BEFORE its put in, this is what it looks like\" + hmap);\n\t\t\t\t\thmap2.putAll(hmap);\n\t\t\t\t\thmap.clear();\n\t\t\t\t\tarticleNew = 1;\n\n\t\t\t\t\tdocTermCountList.add(docTermCount);\n\t\t\t\t\tdocTermCount = 0;\n\n\t\t\t\t\twhile (iterator2.hasNext()) {\n\t\t\t\t\t\tMap.Entry mentry2 = (Map.Entry) iterator2.next();\n\t\t\t\t\t\t// (\"key is: \"+ mentry.getKey() + \" & Value is: \" + mentry.getValue());\n\t\t\t\t\t\t// (\"Value2 is: \" + mentry2.getValue());\n\t\t\t\t\t\t// );\n\t\t\t\t\t\tString term = mentry2.getValue().toString();\n\t\t\t\t\t\t// //\"This is going to be put in doc3: \"+ (documentFound-1));\n\t\t\t\t\t\tpostingsFileListAllWords.get(documentFound - 1).add(term);\n\t\t\t\t\t\t// if ( !((mentry.getValue()).equals(\" \")) )\n\t\t\t\t\t\t// docTermCount++;\n\t\t\t\t\t}\n\n\t\t\t\t\tallValues.clear();\t\t\t\t\t\n\t\t\t\t\tdocumentFound = Integer.parseInt(arr[1]);\n\n\t\t\t\t\t// \"MEANWHILE THESE ARE ALL VALUES\" + postingsFileListAllWords);\n\n\t\t\t\t}\t\t\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t//System.out.println(\"Looking at final doc!\");\n\t\t\t//Final loop for last sets\n\t\t\tSet set = hmap.entrySet();\n\t\t\tIterator iterator = set.iterator();\n\n\t\t\tSet setA = allValues.entrySet();\n\t\t\tIterator iteratorA = setA.iterator();\n\t\t\tpostingsFileList.put(documentFound - 1, new ArrayList<String>());\n\t\t\tpostingsFileListAllWords.put(documentFound - 1, new ArrayList<String>());\n\t\t\twhile (iterator.hasNext()) {\n\t\t\t\tMap.Entry mentry = (Map.Entry) iterator.next();\n\t\t\t\t// (\"key is: \"+ mentry.getKey() + \" & Value is: \" + mentry.getValue());\n\t\t\t\t// (\"Value is: \" + mentry.getValue());\n\t\t\t\t// //);\n\t\t\t\t// if ( !((mentry.getValue()).equals(\" \")) )\n\t\t\t\tString term2 = mentry.getValue().toString();\n\t\t\t\tpostingsFileList.get(documentFound - 1).add(term2);\n\n\t\t\t\tdocTermCount++;\n\t\t\t}\n\t\t\t//System.out.println(\"Done looking at final doc!\");\n\t\t\t\n\t\t\t\n\t\t\t//System.out.println(\"Sorting time!\");\n\t\t\twhile (iteratorA.hasNext()) {\n\t\t\t\tMap.Entry mentry2 = (Map.Entry) iteratorA.next();\n\t\t\t\t// (\"key is: \"+ mentry.getKey() + \" & Value is: \" + mentry.getValue());\n\t\t\t\t// (\"Value2 is: \" + mentry2.getValue());\n\t\t\t\t// //);\n\t\t\t\tString term = mentry2.getValue().toString();\n\t\t\t\t// //\"This is going to be put in doc3: \"+ (documentFound-1));\n\t\t\t\tpostingsFileListAllWords.get(documentFound - 1).add(term);\n\t\t\t\t// if ( !((mentry.getValue()).equals(\" \")) )\n\t\t\t\t// docTermCount++;\n\t\t\t}\n\n\t\t\thmap2.putAll(hmap);\n\t\t\thmap.clear();\n\t\t\tdocTermCountList.add(docTermCount);\n\t\t\tdocTermCount = 0;\n\n\n\t\t\t\n\t\t\n\t\t\t// END OF LOOKING AT ALL DOCS\n\t\t\t\n\t\t\t//System.out.println(\"Docs and titles: \"+docAndTitles);\n\t\t\t\n\t\t\t//System.out.println(\"All terms\" +allTerms);\n\t\t\tString[] sortedArray = allTerms.toArray(new String[0]);\n\t\t\tString[] sortedArrayUnique = uniqueTerms.toArray(new String[0]);\n\t\t\t//System.out.println(Arrays.toString(sortedArray));\n\t\t\t\n\t\t\tArrays.sort(sortedArray);\n\t\t\tArrays.sort(sortedArrayUnique);\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t//Sortings \n\t\t\tSet set3 = hmap2.entrySet();\n\t\t\tIterator iterator3 = set3.iterator();\n\n\t\t\t// Sorting the map\n\t\t\t//System.out.println(\"Before sorting \" +hmap2);\t\t\t\n\t\t\tMap<Integer, String> map = sortByValues(hmap2);\n\t\t\t//System.out.println(\"after sorting \" +map);\n\t\t\t// //\"After Sorting:\");\n\t\t\tSet set2 = map.entrySet();\n\t\t\tIterator iterator2 = set2.iterator();\n\t\t\tint docCount = 1;\n\t\t\twhile (iterator2.hasNext()) {\n\t\t\t\tMap.Entry me2 = (Map.Entry) iterator2.next();\n\t\t\t\t// (me2.getKey() + \": \");\n\t\t\t\t// //me2.getValue());\n\t\t\t}\n\t\t\t\n\t\t\t//System.out.println(\"Done sorting!\");\n\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t//System.out.println(\"Posting starts \");\n\t\t\t//\"THIS IS START OF DICTIONARTY\" \n\t\t\tBufferedWriter bw = null;\n\t\t\tFileWriter fw = null;\n\t\t\t\n\t\t\t\n\t\t\t//System.out.println(\"Start making an array thats big as every doc total \");\n\t\t\tfor (int z = 1; z < documentFound+1; z++)\n\t\t\t{\n\t\t\t\ttermWeights.put(z, new ArrayList<Double>());\n\t\t\t}\n\t\t\t//System.out.println(\"Done making that large array Doc \");\n\t\t\t\n\t\t\t//System.out.println(\"Current Weights: \"+termWeights);\n\t\t\t\n\t\t\t//System.out.println(\"All terms\" +allTerms)\n\t\t\t//System.out.println(Arrays.toString(sortedArray));\n\t\t\t//System.out.println(Arrays.toString(sortedArrayUnique));\n\t\t\t//System.out.println(uniqueTerms);\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t//\tSystem.out.println(\"Posting starts \");\n\t\t\t// \tPOSTING FILE STARTS \n\t\t\ttry {\n\t\t\t\t// Posting File\n\t\t\t\t//System.out.println(\"postingsFileListAllWords: \"+postingsFileListAllWords); //Contains every word including Dups, seperated per doc\n\t\t\t\t//System.out.println(\"postingsFileList: \"+postingsFileList); \t\t //Contains unique words, dups are \" \", seperated per doc\n\t\t\t\t//System.out.println(\"postingsFileListAllWords.size(): \" +postingsFileListAllWords.size()); //Total # of docs \n\t\t\t\t//System.out.println(\"Array size: \"+sortedArrayUnique.length);\n\n\t\t\t\tfw = new FileWriter(POSTING);\n\t\t\t\tbw = new BufferedWriter(fw);\n\t\t\t\tString temp = \" \";\n\t\t\t\tDouble termFreq = 0.0;\n\t\t\t\t// //postingsFileListAllWords);\n\t\t\t\tList<String> finalTermList = new ArrayList<String>();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t\t\t// //postingsFileList.get(i).size());\n\t\t\t\t\tfor (int j = 0; j < sortedArrayUnique.length; ++j)\t\t\t\t\t // go thru each word, CURRENT TERM\n\t\t\t\t\t{\n\t\t\t\t\t\t//System.out.println(\"Term is: \" + sortedArrayUnique[j]);\n\t\t\t\t\t\ttemp = sortedArrayUnique[j];\t\t\t\t\t\n\t\t\t\t\t\tif ((stopWordsSetting && stopWords.contains(temp))) \n\t\t\t\t\t\t{\t\t\t\t\t\t\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (!(finalTermList.contains(temp))) \n\t\t\t\t\t\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\t\n\t\t\t\t\t\t\t//PART TO FIND DOCUMENT FREQ\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tint docCountIDF = 0;\n\t\t\t\t\t\t\t//Start here for dictionary \n\t\t\t\t\t\t\tfor (int totalWords = 0; totalWords < sortedArray.length; totalWords++) \t\t\n\t\t\t\t\t\t\t{\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif (temp.compareTo(\" \") == 0 || (stopWordsSetting && stopWords.contains(temp))) \n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t//EITHER BLANK OR STOPWORD \n\t\t\t\t\t\t\t\t\t//System.out.println(\"fOUND STOP WORD\");\n\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tString temp2 = sortedArray[totalWords];\n\t\t\t\t\t\t\t\t\t//System.out.println(\"Compare: \"+temp+ \" with \" +temp2);\n\t\t\t\t\t\t\t\t\tif (temp.compareTo(temp2) == 0) {\n\t\t\t\t\t\t\t\t\t\t// (temp2+\" \");\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tdocCountIDF++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//System.out.println(\"Total Number: \" +docCountIDF);\n\t\t\t\t\t\t\t//System.out.println(\"documentFound: \" +documentFound);\n\t\t\t\t\t\t\t//System.out.println(\"So its \" + documentFound + \" dividied by \" +docCountIDF);\n\t\t\t\t\t\t\t//docCountIDF = 1;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tdouble idf = (Math.log10(((double)documentFound/(double)docCountIDF)));\n\t\t\t\t\t\t\t//System.out.println(\"Calculated IDF: \"+idf);\n\t\t\t\t\t\t\tif (idf < 0.0)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tidf = 0.0;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//System.out.println(\"IDF is: \" +idf);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//System.out.println(\"Size of doc words: \" + postingsFileListAllWords.size());\n\t\t\t\t\t\t\tfor (int k = 0; k < postingsFileListAllWords.size(); k++) \t\t//Go thru each doc. Since only looking at 1 term, it does it once per doc\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t//System.out.println(\"Current Doc: \" +(k+1));\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\ttermFreq = 1 + (Math.log10(Collections.frequency(postingsFileListAllWords.get(k), temp)));\t\t\t\n\t\t\t\t\t\t\t\t\t//System.out.println(\"Freq is: \" +Collections.frequency(postingsFileListAllWords.get(k), temp));\n\t\t\t\t\t\t\t\t\t//System.out.println(termFreq + \": \" + termFreq.isInfinite());\n\t\t\t\t\t\t\t\t\tif (termFreq.isInfinite() || termFreq <= 0)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\ttermFreq = 0.0;\n\t\t\t\t\t\t\t\t\t}\t\t\t\t\n\t\t\t\t\t\t\t\t\t//System.out.println(\"termFreq :\" +termFreq); \n\t\t\t\t\t\t\t\t\t//System.out.println(\"idf: \" +idf);\n\t\t\t\t\t\t\t\t\ttermWeights.get(k+1).add( (idf*termFreq) );\t\t\t\t\t\t\t\t\t\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\t//System.out.println(\"\");\n\t\t\t\t\t\t\tfinalTermList.add(temp);\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\t\n\t\t\t\t\t\t//System.out.println(\"Current Weights: \"+termWeights);\n\t\t\t\t\t\t\n\t\t\t\t\t\t//FINALCOUNTER\n\t\t\t\t\t\t//System.out.println(\"Done looking at word: \" +j);\n\t\t\t\t\t\t//System.out.println(\"\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//System.out.println(\"Current Weights: \"+termWeights);\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\twhile (true)\n\t\t\t\t {\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"Enter a query: \");\n\t\t\t\t\t\n\t \tScanner scanner = new Scanner(System.in);\n\t \tString enterQuery = scanner.nextLine();\n\t \t\n\t \t\n\t\t\t\t\tList<Double> queryWeights = new ArrayList<Double>();\n\t\t\t\t\t\n\t\t\t\t\t// Query turn\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\tenterQuery = enterQuery.toLowerCase();\t\t\n\t\t\t\t\tenterQuery = enterQuery.replaceAll(\"[-&^%'*$+|{}?!\\\\/<\\\\>=.,;_:()\\\\[\\\\]\\\"]\", \"\");\n\t\t\t\t\t//System.out.println(\"Query is: \" + enterQuery);\n\t\t\t\t\t\n\t\t\t\t\tif (enterQuery.equals(\"exit\"))\n\t\t\t\t\t{\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tString[] queryArray = enterQuery.split(\" \");\n\t\t\t\t\tArrays.sort(queryArray);\n\t\t\t\t\t\n\t\t\t\t\t//Find the query weights for each term in vocab\n\t\t\t\t\tfor (int j = 0; j < sortedArrayUnique.length; ++j)\t\t\t\t\t // go thru each word, CURRENT TERM\n\t\t\t\t\t{\n\t\t\t\t\t\t//System.out.println(\"Term is: \" + sortedArrayUnique[j]);\n\t\t\t\t\t\ttemp = sortedArrayUnique[j];\t\t\t\t\t\n\t\t\t\t\t\tif ((stopWordsSetting && stopWords.contains(temp))) \n\t\t\t\t\t\t{\t\t\t\t\t\t\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\tint docCountDF = 0;\n\t\t\t\t\t\t//Start here for dictionary \n\t\t\t\t\t\tfor (int totalWords = 0; totalWords < queryArray.length; totalWords++) \t\t\n\t\t\t\t\t\t{\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (temp.compareTo(\" \") == 0 || (stopWordsSetting && stopWords.contains(temp))) \n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t//EITHER BLANK OR STOPWORD\n\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tString temp2 = queryArray[totalWords];\n\t\t\t\t\t\t\t\t//System.out.println(\"Compare: \"+temp+ \" with \" +temp2);\n\t\t\t\t\t\t\t\tif (temp.compareTo(temp2) == 0) {\n\t\t\t\t\t\t\t\t\t// (temp2+\" \");\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tdocCountDF++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tDouble queryWeight = 1 + (Math.log10(docCountDF));\n\t\t\t\t\t\tif (queryWeight.isInfinite())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tqueryWeight = 0.0;\n\t\t\t\t\t\t}\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tqueryWeights.add(queryWeight);\n\t\t\t\t\t}\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t//System.out.println(\"Query WEights is: \"+queryWeights);\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t// Finding the norms for DOCS\t\t\t\t\t\n\t\t\t\t\tfor (int norms = 1; norms < documentFound+1; norms++)\n\t\t\t\t\t{\n\t\t\t\t\t\tdouble currentTotal = 0.0;\n\t\t\t\t\t\t\n\t\t\t\t\t\tfor (int weightsPerDoc = 0; weightsPerDoc < termWeights.get(norms).size(); weightsPerDoc++)\n\t\t\t\t\t\t{\t\t\t\t\t\t\n\t\t\t\t\t\t\tdouble square = Math.pow(termWeights.get(norms).get(weightsPerDoc), 2);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//System.out.println(\"Current square: \" + termWeights.get(norms).get(weightsPerDoc));\n\t\t\t\t\t\t\tcurrentTotal = currentTotal + square;\n\t\t\t\t\t\t\t//System.out.println(\"Current total: \" + currentTotal);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//System.out.println(\"About to square root this: \" +currentTotal);\n\t\t\t\t\t\tdouble root = Math.sqrt(currentTotal);\n\t\t\t\t\t\tdocNorms.put(norms, root);\n\t\t\t\t\t}\n\t\t\t\t\t//System.out.println(\"All of the docs norms: \"+docNorms);\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t//Finding the norm for the query\n\t\t\t\t\tdouble currentTotal = 0.0;\t\t\t\t\t\n\t\t\t\t\tfor (int weightsPerDoc = 0; weightsPerDoc < queryWeights.size(); weightsPerDoc++)\n\t\t\t\t\t{\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\tdouble square = Math.pow(queryWeights.get(weightsPerDoc), 2);\n\t\t\t\t\t\tcurrentTotal = currentTotal + square;\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tdouble root = Math.sqrt(currentTotal);\n\t\t\t\t\tdouble queryNorm = root; \t\t\t\t\t\t\n\t\t\t\t\t//System.out.println(\"Query norm \" + queryNorm);\n\t\t\t\t\t\n\t\t\t\t\t//Finding the cosine sim\n\t\t\t\t\t//System.out.println(\"Term Weights \" + termWeights);\n\t\t\t\t\tHashMap<Integer, Double> cosineScore = new HashMap<Integer, Double>();\n\t\t\t\t\tfor (int cosineSim = 1; cosineSim < documentFound+1; cosineSim++)\n\t\t\t\t\t{\n\t\t\t\t\t\tdouble total = 0.0;\n\t\t\t\t\t\tfor (int docTerms = 0; docTerms < termWeights.get(cosineSim).size(); docTerms++)\n\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\tdouble docTermWeight = termWeights.get(cosineSim).get(docTerms);\n\t\t\t\t\t\t\tdouble queryTermWeight = queryWeights.get(docTerms);\n\t\t\t\t\t\t\t//System.out.println(\"queryTermWeight \" + queryTermWeight);\n\t\t\t\t\t\t\t//System.out.println(\"docTermWeight \" + docTermWeight);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\ttotal = total + (docTermWeight*queryTermWeight);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdouble cosineSimScore = 0.0;\n\t\t\t\t\t\tif (!(total == 0.0 || (docNorms.get(cosineSim) * queryNorm) == 0))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcosineSimScore = total / (docNorms.get(cosineSim) * queryNorm);\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\tcosineSimScore = 0.0;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tcosineScore.put(cosineSim, cosineSimScore);\n\t\t\t\t\t}\n\t\t\t\t\tcosineScore = sortByValues2(cosineScore);\t\t\t\t\t\n\t\t\t\t\t//System.out.println(\"This is the cosineScores: \" +cosineScore);\n\t\t\t\t\t\n\t\t\t\t\t//System.out.println(\"docAndTitles: \"+ docAndTitles);\n\t\t\t\t\tint topK = 0;\n\t\t\t\t\tint noValue = 0;\n\t\t\t\t\tfor (Integer name: cosineScore.keySet())\n\t\t\t\t\t{\n\t\t\t\t\t\tif (topK < 50)\n\t\t\t\t\t\t{\t\n\t\t\t\t\t\t\t\n\t\t\t\t String key =name.toString();\n\t\t\t\t //String value = cosineScore.get(name).toString(); \n\t\t\t\t if (!(cosineScore.get(name) <= 0))\n\t\t\t\t {\n\t\t\t\t \tSystem.out.println(\"Doc: \"+key);\t\t\t\t \t\t\t\t\t \t\t\t\t\t \t\n\t\t\t\t \t\n\t\t\t\t \tStringBuilder builder = new StringBuilder();\n\t\t\t\t \tfor (StringBuilder value : docAndTitles.get(name)) {\n\t\t\t\t \t builder.append(value);\n\t\t\t\t \t}\n\t\t\t\t \tString text = builder.toString();\t\t\t\t \t\n\t\t\t\t \t//System.out.println(\"Title:\\n\" +docAndTitles.get(name));\n\t\t\t\t \tSystem.out.println(\"Title: \" +text);\n\t\t\t\t \t\n\t\t\t\t \t\n\t\t\t\t \t\n\t\t\t\t \t\n\t\t\t\t \t\n\t\t\t\t \t//System.out.println(\"Authors:\\n\" +docAndAuthors.get(name));\n\t\t\t\t \t\n\t\t\t\t \tif (docAndAuthors.get(name) == null || docAndAuthors.get(name).toString().equals(\"\"))\n\t\t\t\t \t{\n\t\t\t\t \t\tSystem.out.println(\"Authors: N\\\\A\\n\");\n\t\t\t\t \t}\n\t\t\t\t \telse \n\t\t\t\t \t{\t\t\t\t \t\t\t\t\t\t \t\n\t\t\t\t\t \tStringBuilder builder2 = new StringBuilder();\n\t\t\t\t\t \tfor (StringBuilder value : docAndAuthors.get(name)) {\n\t\t\t\t\t \t builder2.append(value);\n\t\t\t\t\t \t}\n\t\t\t\t\t \tString text2 = builder2.toString();\t\t\t\t \t\n\t\t\t\t\t \t\n\t\t\t\t\t \tSystem.out.println(\"Authors found: \" +text2);\n\t\t\t\t \t}\t\n\t\t\t\t \t\n\t\t\t\t \t\n\t\t\t\t \t/* ABSTRACT \n\t\t\t\t \tif (docAndAbstract.get(name) == null)\n\t\t\t\t \t{\n\t\t\t\t \t\tSystem.out.println(\"Abstract: N\\\\A\\n\");\n\t\t\t\t \t}\n\t\t\t\t \telse \n\t\t\t\t \t{\t\t\t\t \t\t\t\t\t\t \t\n\t\t\t\t\t \tStringBuilder builder2 = new StringBuilder();\n\t\t\t\t\t \tfor (StringBuilder value : docAndAbstract.get(name)) {\n\t\t\t\t\t \t builder2.append(value);\n\t\t\t\t\t \t}\n\t\t\t\t\t \tString text2 = builder2.toString();\t\t\t\t \t\n\t\t\t\t\t \t\n\t\t\t\t\t \tSystem.out.println(\"Abstract: \" +text2);\n\t\t\t\t \t}\t\n\t\t\t\t \t*/\n\t\t\t\t \t\n\t\t\t\t \tSystem.out.println(\"\");\n\t\t\t\t }\n\t\t\t\t else {\n\t\t\t\t \tnoValue++;\n\t\t\t\t }\n\t\t\t\t topK++;\n\t\t\t\t \n\t\t\t\t\t\t}\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (noValue == documentFound)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tSystem.out.println(\"No documents contain query!\");\n\t\t\t\t\t\t}\n\t\t\t\t\t} \n\t\t\t\t\ttopK=0;\n\t\t\t\t\tnoValue = 0;\n\t\t\t\t }\n\t\t\t\t\n\t\t\t} finally {\n\t\t\t\ttry {\n\t\t\t\t\tif (bw != null)\n\t\t\t\t\t\tbw.close();\n\n\t\t\t\t\tif (fw != null)\n\t\t\t\t\t\tfw.close();\n\n\t\t\t\t} catch (IOException ex) {\n\n\t\t\t\t\tex.printStackTrace();\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t\t\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (br != null)\n\t\t\t\t\tbr.close();\n\n\t\t\t\tif (fr != null)\n\t\t\t\t\tfr.close();\n\n\t\t\t} catch (IOException ex) {\n\n\t\t\t\tex.printStackTrace();\n\n\t\t\t}\n\n\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\n\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\tint itemCount = uniqueTerms.size();\n\t\t\t//System.out.println(allValues);\n\t\t\tSystem.out.println(\"Total Terms BEFORE STEMING: \" +itemCount);\n\t\t\tSystem.out.println(\"Total Documents \" + documentFound);\n\t\t\t\t\t\t\n\t\t \n\t\t\t \n\t\t\t \n\t\t\t//END OF MAIN\n\t\t}", "public TermsList getTermsList() {\n\t\treturn termsList;\n\t}", "public void build(DatabaseConsumer s) {\n // define an Iterator over the collection of documents\n Iterator<Integer> e = s.getDocumentList();\n\n // temporary variables\n HashMap currentFL;\n DocConsumer current;\n Iterator f;\n String word;\n\n // for performance stats\n long totalKeywords = 0;\n int documents = 0;\n\n // BUILD THE INDEX\n\n // while there are more documents\n while (e.hasNext()) {\n // load the unique identifier\n int docid = e.next();\n\n // load doc stats\n current = s.getDocumentStatistics(docid);\n\n // decide how to pull out the terms for this document\n\n {\n\t\t\t\t/*if (BuildSettings.useProbCutoff)\n\t\t\t\t\tcurrentFL = current\n\t\t\t\t\t\t\t.mostOccurring(BuildSettings.probabilityCutoff);\n\t\t\t\telse*/\n currentFL = current\n .destructiveMostOccurring(mostSignificantTerms);\n }\n\n // get an Iterator over the terms\n f = currentFL.keySet().iterator();\n\n // while there are more terms\n while (f.hasNext()) {\n word = (String) f.next();\n\n // count the occurrance of this word in the internal data\n // structure\n register(docid, word, ((int[]) currentFL.get(word))[0]);\n totalKeywords++;\n }\n documents++;\n }\n\n // print statistics\n // if (BuildSettings.printAverageKeywords)\n {\n System.out.println(\"Average number of keywords: \"\n + (totalKeywords / (double) documents));\n }\n }", "Document mergeValues(List<Document> documents) throws ResourcesMergingException;", "public ArrayList<Document> getDocumentList(){\n\t\tSession session = HibernateUtils.getSessionFactory().openSession();\n\t\tArrayList<Document> list = new ArrayList<Document>();\n\t\ttry{\n\t\t\tCriteria cr = session.createCriteria(TblDocument.class);\n\t\t\tcr.setResultTransformer(CriteriaSpecification.DISTINCT_ROOT_ENTITY);\n\t\t\tList<TblDocument> documents = cr.list();\n\t\t\tif (documents.size() > 0){\n\t\t\t\tfor (Iterator<TblDocument> iterator = documents.iterator(); iterator.hasNext();){\n\t\t\t\t\tTblDocument tbldocument = iterator.next();\n\t\t\t\t\tDocument document = new Document();\n\t\t\t\t\tdocument.convertFromTable(tbldocument);\n\t\t\t\t\tlist.add(document);\n\t\t\t\t}\n\t\t\t}\n\t\t}catch(HibernateException e){\n\t\t\tSystem.err.println(\"ERROR IN LIST!!!!!!\");\n\t\t\te.printStackTrace();\n\t\t\tthrow new ExceptionInInitializerError(e);\n\t\t}finally{\n\t\t\tsession.close();\n\t\t}\n\t\treturn list;\n\t}", "List<String> tokenize1(String doc) {\n List<String> res = new ArrayList<String>();\n\n for (String s : doc.split(\"[\\\\p{Punct}\\\\s]+\"))\n res.add(s);\n return res;\n }", "public VocabularyTerms() {}", "public static void main(String[] args) throws IOException{\n\t\tint termIndex = 1;\n\t\t\n\t\t// startOffset holds the start offset for each term in\n\t\t// the corpus.\n\t\tlong startOffset = 0;\n\t\t\t\n\t\t// unique_terms is true if there are atleast one more\n\t\t// unique term in corpus.\n\t\tboolean unique_terms = true;\n\t\t\n\t\t\n\t\t//load the stopwords from the HDD\n\t\tString stopwords = getStopWords();\n\t\t\n\t\t// allTokenHash contains all the terms and its termid\n\t\tHashMap<String, Integer> allTermHash = new HashMap<String, Integer>();\n\t\t\n\t\t// catalogHash contains the term and its position in\n\t\t// the inverted list present in the HDD.\n\t\tHashMap<Integer, Multimap> catalogHash = new HashMap<Integer, Multimap>();\n\t\t\n\t\t// finalCatalogHash contains the catalogHash for the invertedIndexHash\n\t\t// present in the HDD.\n\t\tHashMap<Integer, String> finalCatalogHash = new HashMap<Integer, String>();\n\t\t\n\t\t// token1000Hash contains the term and Dblocks for the first 1000\n\t\tHashMap<Integer, Multimap> token1000DocHash = new HashMap<Integer, Multimap>();\n\t\t\n\t\t// documentHash contains the doclength of all the documents in the corpus\n\t\tHashMap<String, String> documentHash = new HashMap<String, String>();\t\n\t\t\n\t\t// id holds the document id corresponding to the docNumber.\n\t\tint id = 1;\n\t\t\n\t\t// until all unique terms are exhausted\n\t\t// pass through the documents and index the terms.\n\t\t//while(unique_terms){\n\t\t\t\n\t\t\tFile folder = new File(\"C:/Naveen/CCS/IR/AP89_DATA/AP_DATA/ap89_collection\");\n\t\t\t//File folder = new File(\"C:/Users/Naveen/Desktop/TestFolder\");\n\t\t\tFile[] listOfFiles = folder.listFiles();\n\t\t\t\n\t\t\t//for each file in the folder \n\t\t\tfor (File file : listOfFiles) {\n\t\t\t if (file.isFile()) {\n\t\t\t \t\n\t\t\t \tString str = file.getPath().replace(\"\\\\\",\"//\");\n\t\t\t \t\n\t\t\t \t\n\t\t\t\t\t//Document doc = new Document();\n\t\t\t //System.out.println(\"\"+str);\n\t\t\t\t\t//variables to keep parse document.\n\t\t\t\t\tint docCount = 0;\n\t\t\t\t\tint docNumber = 0;\n\t\t\t\t\tint endDoc = 0;\n\t\t\t\t\tint textCount = 0;\n\t\t\t\t\tint noText = 0;\n\t\t\t\t\tPath path = Paths.get(str);\n\t\t\t\t\t\n\t\t\t\t\t//Document id and text\n\t\t\t\t\tString docID = null;\n\t\t\t\t\tString docTEXT = null;\n\t\t\t\t\t\n\t\t\t\t\t//Stringbuffer to hold the text of each document\n\t\t\t\t\tStringBuffer text = new StringBuffer();\n\t\t\t\t\t\n\t\t\t\t\tScanner scanner = new Scanner(path);\n\t\t\t\t\twhile(scanner.hasNext()){\n\t\t\t\t\t\tString line = scanner.nextLine();\n\t\t\t\t\t\tif(line.contains(\"<DOC>\")){\n\t\t\t\t\t\t\t++docCount;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(line.contains(\"</DOC>\")){\n\t\t\t\t\t\t\t++endDoc;\n\t\t\t\t\t\t\tdocTEXT = text.toString();\n\t\t\t\t\t\t\t//docTEXT = docTEXT.replaceAll(\"[\\\\n]\",\" \");\n\t\t\t\t\t\t\tSystem.out.println(\"ID: \"+id);\n\t\t\t\t\t\t\t//System.out.println(\"TEXT: \"+docTEXT);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// text with stop words removed\n\t\t\t\t\t\t\tPattern pattern1 = Pattern.compile(\"\\\\b(?:\"+stopwords+\")\\\\b\\\\s*\", Pattern.CASE_INSENSITIVE);\n\t\t\t\t\t\t\tMatcher matcher1 = pattern1.matcher(docTEXT);\n\t\t\t\t\t\t\tdocTEXT = matcher1.replaceAll(\"\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// text with stemming\n\t\t\t\t\t\t\t//docTEXT = stemmer(docTEXT);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tint docLength = 1;\n\t\t\t\t\t\t\t// regex to build the tokens from the document text\n\t\t\t\t\t\t\tPattern pattern = Pattern.compile(\"\\\\w+(\\\\.?\\\\w+)*\");\n\t\t\t\t\t\t\tMatcher matcher = pattern.matcher(docTEXT.toLowerCase());\n\t\t\t\t\t\t\twhile (matcher.find()) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tfor (int i = 0; i < matcher.groupCount(); i++) {\n\t\t\t\t\t\t\t\t\t\n\t\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\t// alltermHash contains term and term id\n\t\t\t\t\t\t\t\t\t// if term is present in the alltermHash\n\t\t\t\t\t\t\t\t\tif(allTermHash.containsKey(matcher.group(i))){\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tint termId = allTermHash.get(matcher.group(i));\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\t\t\t\t\t//if term is present in the token1000Hash\n\t\t\t\t\t\t\t\t\t\t//then update the dblock of the term.\n\t\t\t\t\t\t\t\t\t\tif(token1000DocHash.containsKey(termId)){\n\t\t\t\t\t\t\t\t\t\t\tMultimap<String, String> dBlockUpdate = token1000DocHash.get(termId);\n\t\t\t\t\t\t\t\t\t\t\t//Multimap<Integer, Integer> dBlockUpdate = token1000DocHash.get(matcher.group(i));\n\t\t\t\t\t\t\t\t\t\t\tif(dBlockUpdate.containsKey(id)){\n\t\t\t\t\t\t\t\t\t\t\t\tdBlockUpdate.put(String.valueOf(id), String.valueOf(matcher.start()));\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\t\t\tdBlockUpdate.put(String.valueOf(id), String.valueOf(matcher.start()));\n\t\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\t\t\t\t\t//if term is not present in the token1000hash\n\t\t\t\t\t\t\t\t\t\t//then add the token with its dBlock\n\t\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\t\tMultimap<String, String> dBlockInsert = ArrayListMultimap.create();\n\t\t\t\t\t\t\t\t\t\t\tdBlockInsert.put(String.valueOf(id), String.valueOf(matcher.start()));\n\t\t\t\t\t\t\t\t\t\t\ttoken1000DocHash.put(termId, dBlockInsert);\t\n\t\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\t// if the term is not present I will put the term into allTermHash\n\t\t\t\t\t\t\t\t\t// put corresponding value into the token1000DocHash and increment\n\t\t\t\t\t\t\t\t\t// termIndex\n\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\tallTermHash.put(matcher.group(i),termIndex);\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tMultimap<String, String> dBlockInsert = ArrayListMultimap.create();\n\t\t\t\t\t\t\t\t\t\tdBlockInsert.put(String.valueOf(id), String.valueOf(matcher.start()));\n\t\t\t\t\t\t\t\t\t\ttoken1000DocHash.put(termIndex, dBlockInsert);\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\ttermIndex++;\n\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\tdocLength++;\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\t\tif(id%1000 == 0){\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t// then dump index file to HDD\n\t\t\t\t\t\t\t\t\twriteInvertedIndex(token1000DocHash,\"token1000DocHash\");\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t// update catalog file\n\t\t\t\t\t\t\t\t\t// to populate catalogHash with the offset\n\t\t\t\t\t\t\t\t\tfor(Entry<Integer, Multimap> entry : token1000DocHash.entrySet()){\n\t\t\t\t\t\t\t\t\t\tif(catalogHash.containsKey(entry.getKey())){\n\t\t\t\t\t\t\t\t\t\t\tint len = (entry.getKey()+\":\"+entry.getValue()).length();\n\t\t\t\t\t\t\t\t\t\t\t//String offset = String.valueOf(startOffset)+\":\"+String.valueOf(len);\n\t\t\t\t\t\t\t\t\t\t\tMultimap<String, String> catUpdate = catalogHash.get(entry.getKey());\n\t\t\t\t\t\t\t\t\t\t\tcatUpdate.put(String.valueOf(startOffset), String.valueOf(len));\n\t\t\t\t\t\t\t\t\t\t\tcatalogHash.put(entry.getKey(), catUpdate);\n\t\t\t\t\t\t\t\t\t\t\tstartOffset += len+2;\n\t\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\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\t\tint len = (entry.getKey()+\":\"+entry.getValue()).length();\n\t\t\t\t\t\t\t\t\t\t\t//String offset = String.valueOf(startOffset)+\":\"+String.valueOf(len);\n\t\t\t\t\t\t\t\t\t\t\tMultimap<String, String> catInsert = ArrayListMultimap.create();\n\t\t\t\t\t\t\t\t\t\t\tcatInsert.put(String.valueOf(startOffset), String.valueOf(len));\n\t\t\t\t\t\t\t\t\t\t\tcatalogHash.put(entry.getKey(), catInsert);//entry.getValue());\n\t\t\t\t\t\t\t\t\t\t\tstartOffset += len+2;\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t//clear the token1000DocHash\n\t\t\t\t\t\t\t\t\ttoken1000DocHash.clear();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tdocumentHash.put(docID, \"\"+id+\":\"+docLength);\n\t\t\t\t\t\t\tid++;\n\t\t\t\t\t\t\ttext = new StringBuffer();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(line.contains(\"<DOCNO>\")){\n\t\t\t\t\t\t\t++docNumber;\n\t\t\t\t\t\t\tdocID = line.substring(8, 21);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(line.contains(\"<TEXT>\")){\n\t\t\t\t\t\t\t++textCount;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if((line.contains(\"<DOC>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"</DOC>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"<DOCNO>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"<FILEID>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"<FIRST>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"<SECOND>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"<HEAD>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"</HEAD>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"<BYLINE>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"</BYLINE>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"<UNK>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"</UNK>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"<DATELINE>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"<NOTE>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"</NOTE>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"</TEXT>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"<TEXT>\"))){\n\t\t\t\t\t\t\t ++noText;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(endDoc == docCount - 1){\n\t\t\t\t\t\t\ttext.append(line);\n\t\t\t\t\t\t\ttext.append(\" \");\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 }//end of if - to check if this is a file and parse.\n\t\t\t \n\t\t\t}//end of for loop to load each file\n\t\t\t\n\t\t//}//end of while loop \n\t\t\n\t// write catalogfile to the hdd to check.\n\t\t\t\n\t\t\t// then dump index file to HDD\n\t\t\twriteInvertedIndex(token1000DocHash,\"token1000DocHash\");\n\t\t\t\n\t\t\t// update catalog file\n\t\t\t// to populate catalogHash with the offset\n\t\t\tfor(Entry<Integer, Multimap> entry : token1000DocHash.entrySet()){\n\t\t\t\tif(catalogHash.containsKey(entry.getKey())){\n\t\t\t\t\tint len = (entry.getKey()+\":\"+entry.getValue()).length();\n\t\t\t\t\t//String offset = String.valueOf(startOffset)+\":\"+String.valueOf(len);\n\t\t\t\t\tMultimap<String, String> catUpdate = catalogHash.get(entry.getKey());\n\t\t\t\t\tcatUpdate.put(String.valueOf(startOffset), String.valueOf(len));\n\t\t\t\t\tcatalogHash.put(entry.getKey(), catUpdate);\n\t\t\t\t\tstartOffset += len+2;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tint len = (entry.getKey()+\":\"+entry.getValue()).length();\n\t\t\t\t\t//String offset = String.valueOf(startOffset)+\":\"+String.valueOf(len);\n\t\t\t\t\tMultimap<String, String> catInsert = ArrayListMultimap.create();\n\t\t\t\t\tcatInsert.put(String.valueOf(startOffset), String.valueOf(len));\n\t\t\t\t\tcatalogHash.put(entry.getKey(), catInsert);//entry.getValue());\n\t\t\t\t\tstartOffset += len+2;\n\t\t\t\t\t\n\t\t\t\t}\t\t\t\t\t\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\twriteInvertedIndex(catalogHash,\"catalogHash\");\n\t\t\tprintHashMapSI(allTermHash);\n\t\t\tprintHashMapSS(documentHash);\n\t\t\t\n\t\t\tlong InvIndstartOffset = 0;\n\t\t\t\n\t\t\t//write it to file\n \n\t\t\t//change the finalcatalogHash to the form termid:startoffset:length\n\t\t\tfor (Integer name: catalogHash.keySet()){\n\t String key = name.toString();\n\t String value = catalogHash.get(name).toString(); \n\t //System.out.println(key + \" \" + value); \n\t String finalTermIndex = genInvertedIndex(key, value);\n\t finalTermIndex = key+\":\"+finalTermIndex;\n\t int indexLength = finalTermIndex.length();\n\t \n\t \n\t PrintWriter writer = new PrintWriter(new BufferedWriter\n\t \t\t(new FileWriter(\"C:/Users/Naveen/Desktop/TestRuns/LastRun/InvertedIndex\", true)));\n\t writer.println(finalTermIndex);\n\t writer.close();\n\t \n\t //update the finalcatalogHash\n\t //Multimap<String, String> catInsert = ArrayListMultimap.create();\n\t\t\t\t//catInsert.put(String.valueOf(InvIndstartOffset), String.valueOf(indexLength));\n\t\t\t\tfinalCatalogHash.put(name, String.valueOf(InvIndstartOffset)+\":\"+String.valueOf(indexLength));//entry.getValue());\n\t\t\t\tInvIndstartOffset += indexLength+2;\n\t \n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tprintHashMapIS(finalCatalogHash);\n\t\t\t\n\t}", "void genIDFData(String vocabFile, String outFile) throws Exception {\n List<String> lines = FileUtils.readLines(new File(vocabFile), Charset.defaultCharset());\n BufferedWriter bw = new BufferedWriter(new FileWriter(outFile));\n int N = reader.numDocs();\n for (String line: lines) {\n String word = TrecDocIndexer.analyze(indexer.getAnalyzer(), line).trim();\n int df = reader.docFreq(new Term(TrecDocIndexer.FIELD_ANALYZED_CONTENT, word));\n bw.write(line.trim() + \"\\t\");\n bw.write(String.valueOf(Math.log(N/(double)df)));\n bw.newLine();\n }\n bw.close();\n }", "protected void parseTermData()\n {\n for (int i = 0; i < data.length; i++)\n {\n data[i] = Cdata[i];\n }\n }", "@Override\n\t\t\tpublic void apply(Document arg0) {\n\t\t\t\tarray.add(arg0);\n\t\t\t}", "@Override\n\t\t\tpublic void apply(Document arg0) {\n\t\t\t\tarray.add(arg0);\n\t\t\t}", "@Override\n\t\t\tpublic void apply(Document arg0) {\n\t\t\t\tarray.add(arg0);\n\t\t\t}", "@Override\n\t\t\tpublic void apply(Document arg0) {\n\t\t\t\tarray.add(arg0);\n\t\t\t}", "@Override\n\t\t\tpublic void apply(Document arg0) {\n\t\t\t\tarray.add(arg0);\n\t\t\t}", "@Override\n\t\t\tpublic void apply(Document arg0) {\n\t\t\t\tarray.add(arg0);\n\t\t\t}", "public abstract List toNameValueList();", "List getValues();", "@Override\n public void map(Chunk cs[]) {\n _vocabHM = VOCABHM;\n\n for (Chunk chk : cs) if (chk instanceof CStrChunk) {\n ValueStringCount tmp = new ValueStringCount();\n for (int row = 0; row < chk._len; row++) {\n chk.atStr(tmp, row);\n ValueStringCount tmp2 = VOCABHM.get(tmp);\n if (tmp2 == null) {\n VOCABHM.put(tmp, tmp);\n tmp = new ValueStringCount();\n } else tmp2.inc();\n }\n } // silently ignores other column types\n }", "Collection<?> idValues();", "Terms selectByPrimaryKey(Integer id);", "List<DocPatRelation> selectRelationPatInfoByDocId(String docId);", "public String prepareOutput(ArrayList<DocTermList> doc_term_lists){\n double handling_time = (double)(System.currentTimeMillis() - start_time)/1000; \n Output output = new Output(handling_time, doc_term_lists.size());\n \n for(int i=start_index; i<Math.min(end_index,doc_term_lists.size());i++){\n int doc_id = Integer.valueOf(doc_term_lists.get(i).docID);\n String title = ServerThread.doc_titles[doc_id];\n String url = ServerThread.doc_urls[doc_id];\n double page_rank = ServerThread.page_rank[doc_id];\n double relevant_score;\n if (model.equals(\"LANGUAGE\")){\n relevant_score = doc_term_lists.get(i).final_score;\n }\n else {\n relevant_score = doc_term_lists.get(i).relevant_rank;\n }\n \n \n OutputDoc output_doc = new OutputDoc(doc_id, title, url, relevant_score, page_rank);\n output.output_doc_list.add(output_doc);\n } \n Gson gson = new Gson();\n String final_result = gson.toJson(output);\n //System.out.println(final_result);\n return final_result;\n }", "public List getTermList() {\n\t\tif (termList == null) {\n\t\t\ttermList = new ArrayList();\n\t\t\tSet termSet = getTermMap().keySet();\n\t\t\tfor (Iterator i = termSet.iterator(); i.hasNext();) {\n\t\t\t\ttermList.add((String) i.next());\n\t\t\t}\n\t\t\tCollections.sort(termList);\n\t\t}\n\t\treturn termList;\n\t}" ]
[ "0.601041", "0.5590079", "0.55719167", "0.5558505", "0.55252033", "0.54041564", "0.52908623", "0.5260136", "0.51696306", "0.5155666", "0.51518434", "0.51398706", "0.51394737", "0.5096705", "0.5014813", "0.4963761", "0.49159077", "0.49058074", "0.49038318", "0.4899649", "0.486725", "0.48524123", "0.48414034", "0.48351032", "0.48324117", "0.4829146", "0.47870862", "0.47832954", "0.47824317", "0.47814155", "0.4780154", "0.47706628", "0.47706628", "0.476597", "0.4754421", "0.4753339", "0.47441822", "0.47396663", "0.47356158", "0.47169486", "0.47119117", "0.47076294", "0.4693877", "0.46839806", "0.46789825", "0.46722794", "0.46708208", "0.4670759", "0.4665217", "0.4651159", "0.463722", "0.4627998", "0.46189886", "0.4613757", "0.46051368", "0.4589309", "0.45841634", "0.4583336", "0.4564082", "0.45637748", "0.45460275", "0.4542371", "0.45403698", "0.45358643", "0.45296207", "0.45221823", "0.45209372", "0.45203894", "0.45182055", "0.45104203", "0.4505398", "0.45026687", "0.4495165", "0.4490614", "0.4484005", "0.44808236", "0.44799897", "0.44768298", "0.44751355", "0.44745213", "0.44640124", "0.44622633", "0.44622195", "0.44516778", "0.44458336", "0.44448158", "0.44440404", "0.44440404", "0.44440404", "0.44440404", "0.44440404", "0.44440404", "0.44399232", "0.44396013", "0.44394383", "0.4432845", "0.4430672", "0.44244832", "0.44233125", "0.442259" ]
0.5376574
6
Convenience constructor, which shows offset and character output, with nonprinting and nonASCII characters replaced by spaces.
public HexDumpOutputStream(PrintWriter out) { this(out, ' '); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void show() {\n\t\tSystem.out.println(\"´ó¿ãñÃ\");\n\t}", "public static void main(String[] args) {\n //sout[TAB KEY] -> println\n String str1 = \"J\"; // 암시적으로 객체가 생성된 String\n char ch1 = 'A'; // ''한 문자를 저장하기 위한 char\n System.out.println(\"문자열 : \" +str1);\n System.out.println(\"문자 : \" +ch1);\n \n \n char ch3 = \"\\u0042\";\n }", "public void displayCharacter() {\n System.out.println(\"**************************\");\n System.out.println(p.showDetails());\n System.out.println(\"**************************\"+\"\\n\");\n\n }", "public String toString()\r\n/* 94: */ {\r\n/* 95:110 */ return new String(this.chars, 0, this.pos);\r\n/* 96: */ }", "public static void main(String[] args) {\n\t\tchar aa = '\\u0000';\r\n\t\tchar a = '\\u0041';\r\n\t\tchar b = '\\u0042';\r\n\t\tchar c = '\\u0043';\r\n\t\tchar d = '\\u0044';\r\n\t\tchar e = '\\u0045';\r\n\t\tchar f = '\\u0046';\r\n\t\tchar g = '\\u0047';\r\n\t\tchar h = '\\u0048';\r\n\t\tchar i = '\\u0049';\r\n\t\tchar j = '\\u004A';\r\n\t\tchar k = '\\u004B';\r\n\t\tchar l = '\\u004C';\r\n\t\tchar m = '\\u004D';\r\n\t\tchar n = '\\u004E';\r\n\t\tchar o = '\\u004F';\r\n\t\tchar p = '\\u0051';\r\n\t\tchar q = '\\u0051';\r\n\t\tchar r = '\\u0052';\r\n\t\tchar s = '\\u0053';\r\n\t\tchar t = '\\u0054';\r\n\t\tchar u = '\\u0055';\r\n\t\tchar v = '\\u0056';\r\n\t\tchar w = '\\u0057';\r\n\t\tchar x = '\\u0058';\r\n\t\tchar y = '\\u0059';\r\n\t\tchar z = '\\u0060';\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tSystem.out.println(+i+\"\"+aa+\"\"+w+\"\"+i+\"\"+s+\"\"+h+\"\"+aa+\"\"+t+\"\"+o+\"\"+aa+\"\"+p+\"\"+e+\"\"+r+\"\"+i+\"\"+s+\"\"+h);\r\n\t}", "@Override\n public String toString() {\n return \" at \" + this.index + \" [character \" + this.character + \" line \" + this.line + \"]\";\n }", "public void print() {\n System.out.print(\"\\033[H\\033[2J\");\n for(int y = 0; y < this.height; y++) {\n for (int x = 0; x < this.width; x++) {\n ColoredCharacter character = characterLocations.get(new Coordinate(x , y));\n if (character == null) {\n System.out.print(\" \");\n } else {\n System.out.print(character);\n }\n }\n System.out.print(\"\\n\");\n }\n }", "@Override\n\tpublic void show() {\n\t\tSystem.out.println(\"´óTÐô\");\n\t}", "public void printAllCharacters() {\n System.out.print(EXISTING_CHARACTERS);\n foundedCharacter.forEach(character -> System.out.printf(CHARACTER_PRINT_PATTERN, character));\n System.out.println();\n }", "static void printSpaces()\n{ int i;\n for (i=0;i<sangria;i++)\n\t System.out.print(\" \");\n}", "public BibFileFormatter() {\n this(\" \");\n }", "private static void displayXCode() {\n if (dvm.getStartingLine() < 0){\n System.out.println(\"====\"+dvm.getCurrentFunction().toUpperCase()+\"====\");\n }else{\n for (int i = dvm.getStartingLine(); i <= dvm.getEndingLine(); i++) {\n if (dvm.isLineABreakPoint(i)){\n //NOTE: (char)249 is extended ascii for a little solid square.\n //I'm sorry if it comes out as something else on your machine\n //I do not know how (or if its possible) to check if the machine\n //that will run this program supports extended ascii. If it doesnt\n //It should just show up as an empty box, which is acceptable\n //For my purposes as well.\n System.out.print((char)249);\n }else\n System.out.print(\" \");\n\n if (i == dvm.getCurrentLine())\n System.out.println(String.format(\"%1$4s %2$s\", i + \")\", dvm.getLineOfSourceCode(i)+ \" <-----------\"));\n else\n System.out.println(String.format(\"%1$4s %2$s\", i + \")\", dvm.getLineOfSourceCode(i)));\n }\n }\n }", "public FakeStandardOutput() throws UnsupportedEncodingException {\r\n super(new StringOutputStream(), true, \"UTF8\");\r\n innerStream = (StringOutputStream) super.out;\r\n }", "String charWrite();", "public CharStringOptionInspector() {\n this((CharTypeInfo) TypeInfoFactory.charTypeInfo);\n }", "public String memoryDisplayHex()\n {\n int pos = startingPos;\n String ret = \"\";\n while(pos <= endingPos)\n {\n String instruction = mem.getFourBytes(pos);\n ret += \"0x\"+Integer.toHexString(pos) + \": \" + instruction.substring(0,4) + \" \" + instruction.substring(4,8)+\"\\n\";\n pos += 4;\n }\n return ret;\n }", "@Override\n public String toString() {\n return \"\" + character;\n }", "private String getCharacterString()\n {\n String returnString = \"Characters:\\n\\t\";\n Set<String> keys = characters.keySet();\n if(characters.size() <= 0) {\n returnString += \"[None]\";\n return returnString;\n }\n for(String character : keys) {\n returnString += \" [\" + character + \"]\";\n }\n return returnString;\n }", "static void MichelMethod() {\n String CSI = \"\\u001B[\";\n System.out.print(CSI + \"32\" + \"m\");\n\n System.out.println(\"This is the group U calculator.\");\n System.out.println(\"Thanks for your preference!\");\n System.out.println(CSI + \"m\");\n\n }", "public Indent()\n {\n this(\" \", 0);\n }", "public static void main(String[] args) {\n\t\tSystem.out.print(\"\\u250C\\u252C\\u2510\\n\");\r\n\t\tSystem.out.print(\"\\u251C\\u253C\\u2524\\n\");\r\n\t\tSystem.out.print(\"\\u2514\\u2534\\u2518\");\r\n\t}", "public void display()\n {\n System.out.println(�\\n The elements are�);\n for(int i=0; i<n; i++)\n System.out.println(� �+a[i]);\n }", "public char show() {\n\t\treturn 'S';\n\t}", "public static void main (String[] args) {\n System.out.printf (\"%s%20s%s\\n\",\"\\033[42m\",\"\",\"\\033[40m\");\n System.out.printf (\"%s%20s%s\\n\",\"\\033[42m\",\"\",\"\\033[40m\");\n System.out.printf (\"%s%20s%s\\n\",\"\\033[107m\",\"\",\"\\033[40m\");\n System.out.printf (\"%s%20s%s\\n\",\"\\033[107m\\033[90m\",\"ANDALUCÍA \",\"\\033[40m\");\n //System.out.printf (\"%s%20s%s\\n\",\"\\033[107m\",\"ANDALUCÍA \",\"\\033[40m\");\n System.out.printf (\"%s%20s%s\\n\",\"\\033[107m\",\"\",\"\\033[40m\");\n System.out.printf (\"%s%20s%s\\n\",\"\\033[42m\",\"\",\"\\033[40m\");\n System.out.printf (\"%s%20s%s\\n\",\"\\033[42m\",\"\",\"\\033[40m\"); \n \n \n }", "public PrintStreamCommandOutput()\n {\n this( System.out );\n }", "@Override\n public void printable()\n {\n\tfor (int i = 0; i < width; i++)\n\t{\n\t for (int k = 0; k < length; k++)\n\t {\n\t\tif (k == 0 || k == length - 1)\n\t\t System.out.print(\"O \");\n\t\telse if (i == 0 || i == width - 1)\n\t\t System.out.print(\"O \");\n\t\telse\n\t\t System.out.print(\" \");\n\t }\n\n\t System.out.println();\n\t}\n }", "private AsciiUtils() {\r\n\t}", "public static void main(String[] args) {\n StringBuffer name = new StringBuffer(\"Abdulazeez Abdulazeez \");\n System.out.println(\"String Buffer of my name \" +name);\n // Supposing I need to add my middle name as an abbr.\n // I'll append it witht the .appendCodePoint() method.\n name.appendCodePoint(65);\n System.out.println(\"My full name after now: \" +name);\n }", "private void _writeString(char[] text, int offset, int len)\n/* */ throws IOException\n/* */ {\n/* 1049 */ if (this._characterEscapes != null) {\n/* 1050 */ _writeStringCustom(text, offset, len);\n/* 1051 */ return;\n/* */ }\n/* 1053 */ if (this._maximumNonEscapedChar != 0) {\n/* 1054 */ _writeStringASCII(text, offset, len, this._maximumNonEscapedChar);\n/* 1055 */ return;\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 1062 */ len += offset;\n/* 1063 */ int[] escCodes = this._outputEscapes;\n/* 1064 */ int escLen = escCodes.length;\n/* 1065 */ while (offset < len) {\n/* 1066 */ int start = offset;\n/* */ for (;;)\n/* */ {\n/* 1069 */ char c = text[offset];\n/* 1070 */ if ((c < escLen) && (escCodes[c] != 0)) {\n/* */ break;\n/* */ }\n/* 1073 */ offset++; if (offset >= len) {\n/* */ break;\n/* */ }\n/* */ }\n/* */ \n/* */ \n/* 1079 */ int newAmount = offset - start;\n/* 1080 */ if (newAmount < 32)\n/* */ {\n/* 1082 */ if (this._outputTail + newAmount > this._outputEnd) {\n/* 1083 */ _flushBuffer();\n/* */ }\n/* 1085 */ if (newAmount > 0) {\n/* 1086 */ System.arraycopy(text, start, this._outputBuffer, this._outputTail, newAmount);\n/* 1087 */ this._outputTail += newAmount;\n/* */ }\n/* */ } else {\n/* 1090 */ _flushBuffer();\n/* 1091 */ this._writer.write(text, start, newAmount);\n/* */ }\n/* */ \n/* 1094 */ if (offset >= len) {\n/* */ break;\n/* */ }\n/* */ \n/* 1098 */ char c = text[(offset++)];\n/* 1099 */ _appendCharacterEscape(c, escCodes[c]);\n/* */ }\n/* */ }", "public void setNChar()\n/* */ {\n/* 1168 */ this.isNChar = true;\n/* */ }", "public void spaces() {\n System.out.println(\"\");\n System.out.println(\"\");\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(\"\\u265A\");\n\t\tSystem.out.println(\"\\u265B\");\n\t\t\n\t\tSystem.out.println(\"\\u264A\");\n\t\tSystem.out.println(\"\\u264B\");\n\t}", "public static void main(String[] args) {\n\t\t\tSystem.out.println(\"14CM0132\\n山出 達也\");\n\t\t\t\n\t}", "public Character() {\n this(null, null, null);\n }", "@Override\n public void println ()\n {\n if (text != null)\n {\n text.append (Out.NL);\n col = 0;\n }\n else\n super.println ();\n }", "private AppendableCharSequence(char[] chars)\r\n/* 20: */ {\r\n/* 21: 33 */ this.chars = chars;\r\n/* 22: 34 */ this.pos = chars.length;\r\n/* 23: */ }", "public CharCharMap() {\n this(DEFAULT_INITIAL_SIZE, DEFAULT_LOAD_FACTOR);\n }", "private static Text createOffset(int line) {\n String offset = Integer.toHexString(line * 16);\n StringBuilder stringBuilder = new StringBuilder();\n for (int j = 0; j < (8 - offset.length()); j++) {\n stringBuilder.append(0);\n }\n stringBuilder.append(offset).append(' ');\n Text result = new Text(stringBuilder.toString());\n //noinspection HardCodedStringLiteral\n result.getStyleClass().add(\"normal\");\n return result;\n }", "SpacesInvaders_recupererEspaceJeuDansChaineASCII createSpacesInvaders_recupererEspaceJeuDansChaineASCII();", "public static void main(String[] args) throws IOException {\n InputStream bS = new ByteArrayInputStream(\"Ы\".getBytes());\n int b = 0;\n while ((b = bS.read()) != -1)\n System.out.print(b + \" \");\n System.out.println(\"\\n\");\n\n for (byte c : \"Ы\".getBytes())\n System.out.print((c^-1 << 8) + \" \");\n System.out.println(\"\\n\");\n\n String s = \"Ы\";\n byte[] b1 = s.getBytes();\n for (int i = 0; i < b1.length; i++ ) {\n System.out.print(((int) b1[i] ^ -1 << 8) + \" \");\n }\n Writer writer = new OutputStreamWriter(System.out, StandardCharsets.US_ASCII);\n writer.write(\"Ч\");\n writer.close();\n }", "public static void main(String[] args) {\nSystem.out.println(\"xin chào linh\");\n\n\n}", "Dog(char c) {\n\t\tSystem.out.println(\"Arf!\");\n\t}", "MyChar() {\n\t\tmyChar = '0';\n\t}", "protected TextLog() {\n super();\n _indenters = new TotalMap<Thread, Indenter>(MAKE_INDENTER, true);\n }", "public AsciiDataEncoder() {\n\t}", "@Override\n\tpublic void cry() \n\t{\n\t\tSystem.out.println(\"喵喵喵\");\n\t\t\n\t}", "private static Text createHeader() {\n StringBuilder stringBuilder = new StringBuilder();\n //noinspection HardCodedStringLiteral\n stringBuilder.append(\"Offset \");\n for (int i = 0; i < 16; i++) {\n stringBuilder.append(\" 0\");\n stringBuilder.append(Integer.toHexString(i));\n }\n stringBuilder.append(System.lineSeparator()).append(System.lineSeparator());\n Text result = new Text(stringBuilder.toString());\n //noinspection HardCodedStringLiteral\n result.getStyleClass().add(\"normal\");\n return result;\n }", "@Override\n public void writeSpace(char[] text, int offset, int length)\n throws XMLStreamException\n {\n writeRaw(text, offset, length);\n }", "@Override\n\t\tpublic char[] getPrintChars() {\n\t\t\tif(this.color == RedBlackTree.BLACK){\n\t\t\t\tString intString = data.toString()+\"(B)\";\n\t\t\t\treturn intString.toCharArray();\n\t\t\t\t\n\t\t\t}else{\n\t\t\t\tString intString = data.toString()+\"(R)\";\n\t\t\t\treturn intString.toCharArray();\n\t\t\t}\n\t\t\t\n\t\t}", "public void print(char someChar) {\r\n print(someChar + \"\");\r\n }", "public static void main(String[] args) {\n char[] cadeiaCaracter = {'B','E','N','G','I','L'};\n String cadeiaChar = new String(cadeiaCaracter);\n System.out.println(cadeiaChar);\n //Criar string a partir de intervalo de cadeias de caractere\n char[] abcdef = {'A','B','C','D','E','F'};\n String abc = new String(abcdef, 0,3);\n System.out.println(abc);\n //Array de byte, cada byte representa um caractere da tabela ascii\n byte[] ascii = {65,66,67,68,69};\n String abcde = new String(ascii);\n System.out.println(abcde);\n String cde = new String(ascii,1,3);\n System.out.println(cde);\n //Atribuição sem o new\n String let = \"Letícia\";\n String lettis = \"Letícia\";\n System.out.println(let);\n }", "public String toOutputString()\n\t{\n\t\tStringBuffer buf = new StringBuffer();\n\t\tfor (Entry<Object, Object> entry : this.entrySet())\n\t\t\tbuf.append(String.format(\"%s=%s%c\",\n\t\t\t\t\tentry.getKey(), entry.getValue(), 12));\n\t\treturn buf.toString();\n\t}", "void addSpaces() {\n\t\tSystem.out.print(\" \");\n\t\tfor (int j = 0; j < 3; j++)\n\t\t\tSystem.out.print(\"| \");\n\t\tSystem.out.println(\"|\");\n\t}", "public String printCharStack() {\r\n\t\t String elements = \"<\";\r\n\t\t \r\n\t\tfor(int i = 0; i < count; i++) {\r\n\t\t\telements += \" \" + (char)array[i];\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\telements += \">\";\r\n\t\t\treturn elements;\r\n\t }", "public void displayBoard() {\n System.out.printf(\"%20s\",\"\"); // to add spacing\n for(int i = 0; i < space[0].length; i++) //Put labels for number axis\n {\n System.out.printf(\"%4d\",i+1);\n }\n System.out.println();\n for(int row = 0; row < this.space.length; row++) { //Put letter labels and appropriate coordinate values\n System.out.print(\" \"+ (char)(row+'A') + \"|\");\n for (String emblem: this.space[row]) //coordinate values\n System.out.print(emblem + \" \");\n System.out.println();\n }\n }", "public void outputActualIndentation() {\n\t\tfor (int steps = 1; steps <= indentLevel; steps++) {\n\t\t\toutputJALPrintStream.print(\" \");\n\t\t}\n\t\tif (showMarkerFlag) {\n\t\t\toutputJALPrintStream.print(\"|\");\n\t\t}\n\t}", "@Override\n public String toString() {\n return columnToChar(c1) + \"\" + (8 - r1) + columnToChar(c2) + \"\" + (8 - r2);\n }", "public static void main(String[] args) {\n\n\n\n\n\n System.out.println((char) ('a' - 32));\n }", "public Dumpster(char symbol, int row, int column) {\n\t\tsuper(symbol, row, column);\n\t}", "public void print() {\n // char letter = (char)\n // (this.registers.get(this.registerPointer).intValue());\n char letter = (char) this.registers[this.registerPointer];\n this.intOutput.add(this.registers[this.registerPointer]);\n // System.out.println(\"print: \" + this.registers[this.registerPointer]);\n this.output.add(Character.toString(letter));\n }", "public Letter(char unicode) {\n this(NO_TYPE, \"\", unicode, NULL_CHARACTER);\n }", "private FormattedTextEncoder() {\r\n\t\tsuper();\r\n\t}", "public AsciiPoint(int x, int y) {\n this.x = x;\n this.y = y;\n }", "protected final String space(int n) {\n StringBuffer buf = new StringBuffer(0);\n for (int i = 0; i < n; i++) {\n buf.append(\" \");\n }\n return buf.toString();\n }", "public String print(){\r\n\t\treturn String.format(\"%9d\\t%-5s\\t\\t%-3d\\t\\t%-15s\",\r\n\t\t\t\tthis.trackNumber, \r\n\t\t\t\tthis.engineNumber, \r\n\t\t\t\tthis.numRailCars, \r\n\t\t\t\tthis.destCity);\r\n\t\t}", "@AutoEscape\n\tpublic String getStd();", "public Character(int x, int y, String s)\n\t{\n\t\txCoord = x;\n\t\tyCoord = y;\n\t\tappearance = s;\n\t}", "private ConfigurationHTMLPrinter printIndent() {\n for (int i=0; i<indent; i++) sb.append(\" \");\n return this;\n }", "@Override\n public void convertCharacter(char character, StringBuilder outputTextBuilder) {\n }", "public Display()\n {\n phrase = \"0\";\n screen = new char[1];\n }", "public static void main(String[] args) {\n\t\tchar ch1 = '헐';\n\t\tchar ch2 = '확';\n\t\tSystem.out.println(ch1 + \" \" + ch2);\n\t\t\n\t\tchar ch3 = 0xD5D0;\n\t\tchar ch4 = 0xD655;\n\t\tSystem.out.println(ch3 + \" \" + ch4);\n\t\t\n\t\tchar ch5 = 54736;\n\t\tchar ch6 = 54869;\n\t\tSystem.out.println(ch5 + \" \" + ch6);\n\t}", "public static void win(){\n System.out.println(\"\\n\" + getAnsiGreen() +\n \"██╗░░░██╗░█████╗░██╗░░░██╗░░░░██╗░░░░░░░██╗░█████╗░███╗░░██╗░░░\\n\" +\n \"╚██╗░██╔╝██╔══██╗██║░░░██║░░░░██║░░██╗░░██║██╔══██╗████╗░██║░░░\\n\" +\n \"░╚████╔╝░██║░░██║██║░░░██║░░░░╚██╗████╗██╔╝██║░░██║██╔██╗██║░░░\\n\" +\n \"░░╚██╔╝░░██║░░██║██║░░░██║░░░░░████╔═████║░██║░░██║██║╚████║░░░\\n\" +\n \"░░░██║░░░╚█████╔╝╚██████╔╝░░░░░╚██╔╝░╚██╔╝░╚█████╔╝██║░╚███║██╗\\n\" +\n \"░░░╚═╝░░░░╚════╝░░╚═════╝░░░░░░░╚═╝░░░╚═╝░░░╚════╝░╚═╝░░╚══╝╚═╝\\n\" +\n \"\\n\" +\n \"░█████╗░░█████╗░███╗░░██╗░██████╗░██████╗░░█████╗░████████╗░██████╗██╗██╗\\n\" +\n \"██╔══██╗██╔══██╗████╗░██║██╔════╝░██╔══██╗██╔══██╗╚══██╔══╝██╔════╝██║██║\\n\" +\n \"██║░░╚═╝██║░░██║██╔██╗██║██║░░██╗░██████╔╝███████║░░░██║░░░╚█████╗░██║██║\\n\" +\n \"██║░░██╗██║░░██║██║╚████║██║░░╚██╗██╔══██╗██╔══██║░░░██║░░░░╚═══██╗╚═╝╚═╝\\n\" +\n \"╚█████╔╝╚█████╔╝██║░╚███║╚██████╔╝██║░░██║██║░░██║░░░██║░░░██████╔╝██╗██╗\\n\" +\n \"░╚════╝░░╚════╝░╚═╝░░╚══╝░╚═════╝░╚═╝░░╚═╝╚═╝░░╚═╝░░░╚═╝░░░╚═════╝░╚═╝╚═╝\" + getAnsiReset());\n\n try {\n TimeUnit.SECONDS.sleep(1);\n System.out.println(\"You feel movement in your belly...\");\n startNewOrQuitGame();\n } catch (InterruptedException e) {\n System.out.println(\"Something wrong with the Game!!!\");\n }\n }", "public static void main(String[] args) {\n char ch1 = '1';\n char ch2 = 'Z';\n int numberPerLine = 10;\n //Peredajem dani metody\n printChars(ch1, ch2, numberPerLine);\n }", "public static void main(String[] args) {\n char myChar = '\\u00A9';\n System.out.println(\"Unicode is : \" + myChar);\n char myReg = '\\u00AE';\n System.out.println(\"Unicode for regiter : \" + myReg);\n }", "public StdOutWriter ()\n {\n super (System.out, true);\n }", "CharacterTarget put(char[] symbols, int from, int to) throws PrintingException;", "public static void spaces() {\r\n // prints 13 spaces\r\n for (int space = 0; space < 15; space++) {\r\n System.out.println(\"\");\r\n }\r\n\r\n }", "CharacterTarget put(char[] symbols) throws PrintingException;", "@Override\n\tpublic String Pretty_Prints() {\n\t\treturn \"!=\";\n\t}", "private void space() {\n if (wereTokens && !spaceSuppressed) {\n out.print(' ');\n }\n }", "@Override\n\tprotected void display(Coordination c) {\n\t\tSystem.out.println(\"白棋,颜色是:\" + color + \"位置是:\" + c.getX() + \"--\" + c.getY());\n\t}", "public String toString()\n\t\t{\n\t\t\treturn name + \"\\t\" + characterName;\n\t\t}", "public Indent(int level)\n {\n this(\" \", level);\n }", "@Override\n\tpublic String getCharacterRepresentation() {\n\t\treturn \"T\";\n\t}", "public ASCIIOutputStream(OutputStream out) {\n super(out);\n }", "@AutoEscape\n\tpublic String getDisplay();", "public int getCharPos(){\n return charPos;\n }", "public static void main(String[] args) {\n System.out.println(\"你是个傻逼\");\n System.out.println(\"1\" + \"2\");\n System.out.println(\"hah\");\n System.out.println(\"hl;l\");\n System.out.println(\"hhas\");\n }", "public String print(){\r\n\t\t\r\n\t\treturn String.format(\"%9d\\t%-5s\\t\\t%-3d\\t\\t%-15s\",\r\n\t\t\t\tthis.engineNumber, \r\n\t\t\t\tthis.companyName, \r\n\t\t\t\tthis.numberOfRailCars, \r\n\t\t\t\tthis.destinationCity);\r\n\t}", "public void printBoard() {\r\n // Print column numbers.\r\n System.out.print(\" \");\r\n for (int i = 0; i < BOARD_SIZE; i++) {\r\n System.out.printf(\" %d \", i+1);\r\n }\r\n System.out.println(\"\\n\");\r\n\r\n\r\n for (int i = 0; i < BOARD_SIZE; i++) {\r\n System.out.printf(\"%c %c \", 'A' + i, board[i][0].mark);\r\n\r\n for (int j = 1; j < BOARD_SIZE; j++) {\r\n System.out.printf(\"| %c \", board[i][j].mark);\r\n }\r\n\r\n System.out.println(\"\");\r\n\r\n if (i < BOARD_SIZE - 1) {\r\n System.out.print(\" \");\r\n for (int k = 1; k < BOARD_SIZE * 3 + BOARD_SIZE; k++) {\r\n System.out.print(\"-\");\r\n }\r\n System.out.println(\"\");\r\n }\r\n }\r\n System.out.println(\"\");\r\n }", "public OutputConsole() {\n initComponents();\n setSize (1520, 750);\n }", "public SingleChar(char c) {\n super(SOME, NONE);\n this.c = c;\n }", "public static void main(String[] args) \n\t{\n\t\t\n\t\tfor(int i=0;i<=127;i++)\n\t\t{\n\t\t\tSystem.out.printf(\"%d : %c \\n \" ,i,i);\n\t\t}\n\t}", "public static void main(String[] args) {\n System.out.println(\"H\\na\\nl\\nu\\nk\");\n\n }", "static ConsoleCharStream getInstance() {\n if (_i == null)\n _i = new ConsoleCharStream();\n return _i;\n }", "private void _writeStringASCII(int len, int maxNonEscaped)\n/* */ throws IOException, JsonGenerationException\n/* */ {\n/* 1117 */ int end = this._outputTail + len;\n/* 1118 */ int[] escCodes = this._outputEscapes;\n/* 1119 */ int escLimit = Math.min(escCodes.length, maxNonEscaped + 1);\n/* 1120 */ int escCode = 0;\n/* */ \n/* */ \n/* 1123 */ while (this._outputTail < end)\n/* */ {\n/* */ char c;\n/* */ do\n/* */ {\n/* 1128 */ c = this._outputBuffer[this._outputTail];\n/* 1129 */ if (c < escLimit) {\n/* 1130 */ escCode = escCodes[c];\n/* 1131 */ if (escCode != 0) {\n/* */ break;\n/* */ }\n/* 1134 */ } else if (c > maxNonEscaped) {\n/* 1135 */ escCode = -1;\n/* 1136 */ break;\n/* */ }\n/* 1138 */ } while (++this._outputTail < end);\n/* 1139 */ break;\n/* */ \n/* */ \n/* 1142 */ int flushLen = this._outputTail - this._outputHead;\n/* 1143 */ if (flushLen > 0) {\n/* 1144 */ this._writer.write(this._outputBuffer, this._outputHead, flushLen);\n/* */ }\n/* 1146 */ this._outputTail += 1;\n/* 1147 */ _prependOrWriteCharacterEscape(c, escCode);\n/* */ }\n/* */ }", "public Character()\n\t{\n\t\tthis(450,810);\n\t}", "void NCRtoHex()\r\n\t{\r\n\t\tfinal String[] NCRChar = {\"&#128;\", \"&#129;\", \"&#130;\", \"&#131;\",\r\n\t\t\t\t\"&#132;\", \"&#133;\", \"&#134;\", \"&#135;\", \"&#136;\", \"&#137;\",\r\n\t\t\t\t\"&#138;\", \"&#139;\", \"&#140;\", \"&#141;\", \"&#142;\", \"&#143;\",\r\n\t\t\t\t\"&#144;\", \"&#145;\", \"&#146;\", \"&#147;\", \"&#148;\", \"&#149;\",\r\n\t\t\t\t\"&#150;\", \"&#151;\", \"&#152;\", \"&#153;\", \"&#154;\", \"&#155;\",\r\n\t\t\t\t\"&#156;\", \"&#157;\", \"&#158;\", \"&#159;\", \"&#160;\", \"&#161;\",\r\n\t\t\t\t\"&#162;\", \"&#163;\", \"&#164;\", \"&#165;\", \"&#166;\", \"&#167;\",\r\n\t\t\t\t\"&#168;\", \"&#169;\", \"&#170;\", \"&#171;\", \"&#172;\", \"&#173;\",\r\n\t\t\t\t\"&#174;\", \"&#175;\", \"&#176;\", \"&#177;\", \"&#178;\", \"&#179;\",\r\n\t\t\t\t\"&#180;\", \"&#181;\", \"&#182;\", \"&#183;\", \"&#184;\", \"&#185;\",\r\n\t\t\t\t\"&#186;\", \"&#187;\", \"&#188;\", \"&#189;\", \"&#190;\", \"&#191;\",\r\n\t\t\t\t\"&#192;\", \"&#193;\", \"&#194;\", \"&#195;\", \"&#196;\", \"&#197;\",\r\n\t\t\t\t\"&#198;\", \"&#199;\", \"&#200;\", \"&#201;\", \"&#202;\", \"&#203;\",\r\n\t\t\t\t\"&#204;\", \"&#205;\", \"&#206;\", \"&#207;\", \"&#208;\", \"&#209;\",\r\n\t\t\t\t\"&#210;\", \"&#211;\", \"&#212;\", \"&#213;\", \"&#214;\", \"&#215;\",\r\n\t\t\t\t\"&#216;\", \"&#217;\", \"&#218;\", \"&#219;\", \"&#220;\", \"&#221;\",\r\n\t\t\t\t\"&#222;\", \"&#223;\", \"&#224;\", \"&#225;\", \"&#226;\", \"&#227;\",\r\n\t\t\t\t\"&#228;\", \"&#229;\", \"&#230;\", \"&#231;\", \"&#232;\", \"&#233;\",\r\n\t\t\t\t\"&#234;\", \"&#235;\", \"&#236;\", \"&#237;\", \"&#238;\", \"&#239;\",\r\n\t\t\t\t\"&#240;\", \"&#241;\", \"&#242;\", \"&#243;\", \"&#244;\", \"&#245;\",\r\n\t\t\t\t\"&#246;\", \"&#247;\", \"&#248;\", \"&#249;\", \"&#250;\", \"&#251;\",\r\n\t\t\t\t\"&#252;\", \"&#253;\", \"&#254;\", \"&#255;\"};\r\n\t\tfinal String[] ansiChar = {\"\\u0080\", \"\\u0081\", \"\\u0082\", \"\\u0083\",\r\n\t\t\t\t\"\\u0084\", \"\\u0085\", \"\\u0086\", \"\\u0087\", \"\\u0088\", \"\\u0089\",\r\n\t\t\t\t\"\\u008A\", \"\\u008B\", \"\\u008C\", \"\\u008D\", \"\\u008E\", \"\\u008F\",\r\n\t\t\t\t\"\\u0090\", \"\\u0091\", \"\\u0092\", \"\\u0093\", \"\\u0094\", \"\\u0095\",\r\n\t\t\t\t\"\\u0096\", \"\\u0097\", \"\\u0098\", \"\\u0099\", \"\\u009A\", \"\\u009B\",\r\n\t\t\t\t\"\\u009C\", \"\\u009D\", \"\\u009E\", \"\\u009F\", \"\\u00A0\", \"\\u00A1\",\r\n\t\t\t\t\"\\u00A2\", \"\\u00A3\", \"\\u00A4\", \"\\u00A5\", \"\\u00A6\", \"\\u00A7\",\r\n\t\t\t\t\"\\u00A8\", \"\\u00A9\", \"\\u00AA\", \"\\u00AB\", \"\\u00AC\", \"\\u00AD\",\r\n\t\t\t\t\"\\u00AE\", \"\\u00AF\", \"\\u00B0\", \"\\u00B1\", \"\\u00B2\", \"\\u00B3\",\r\n\t\t\t\t\"\\u00B4\", \"\\u00B5\", \"\\u00B6\", \"\\u00B7\", \"\\u00B8\", \"\\u00B9\",\r\n\t\t\t\t\"\\u00BA\", \"\\u00BB\", \"\\u00BC\", \"\\u00BD\", \"\\u00BE\", \"\\u00BF\",\r\n\t\t\t\t\"\\u00C0\", \"\\u00C1\", \"\\u00C2\", \"\\u00C3\", \"\\u00C4\", \"\\u00C5\",\r\n\t\t\t\t\"\\u00C6\", \"\\u00C7\", \"\\u00C8\", \"\\u00C9\", \"\\u00CA\", \"\\u00CB\",\r\n\t\t\t\t\"\\u00CC\", \"\\u00CD\", \"\\u00CE\", \"\\u00CF\", \"\\u00D0\", \"\\u00D1\",\r\n\t\t\t\t\"\\u00D2\", \"\\u00D3\", \"\\u00D4\", \"\\u00D5\", \"\\u00D6\", \"\\u00D7\",\r\n\t\t\t\t\"\\u00D8\", \"\\u00D9\", \"\\u00DA\", \"\\u00DB\", \"\\u00DC\", \"\\u00DD\",\r\n\t\t\t\t\"\\u00DE\", \"\\u00DF\", \"\\u00E0\", \"\\u00E1\", \"\\u00E2\", \"\\u00E3\",\r\n\t\t\t\t\"\\u00E4\", \"\\u00E5\", \"\\u00E6\", \"\\u00E7\", \"\\u00E8\", \"\\u00E9\",\r\n\t\t\t\t\"\\u00EA\", \"\\u00EB\", \"\\u00EC\", \"\\u00ED\", \"\\u00EE\", \"\\u00EF\",\r\n\t\t\t\t\"\\u00F0\", \"\\u00F1\", \"\\u00F2\", \"\\u00F3\", \"\\u00F4\", \"\\u00F5\",\r\n\t\t\t\t\"\\u00F6\", \"\\u00F7\", \"\\u00F8\", \"\\u00F9\", \"\\u00FA\", \"\\u00FB\",\r\n\t\t\t\t\"\\u00FC\", \"\\u00FD\", \"\\u00FE\", \"\\u00FF\"};\r\n\r\n\t\tstr = replaceString(str, NCRChar, ansiChar);\r\n\t}", "public interface Escaper {\n\n /**\n * Escape one character, returning an escaped version of it if one is\n * needed, and otherwise returning null.\n *\n * @param c A character\n * @return A character sequence to replace the character with, or null if no\n * escaping is needed\n */\n CharSequence escape(char c);\n\n /**\n * Returns an escaped version of the input character sequence using this\n * Escaper.\n *\n * @param input The input\n * @return The escaped version of it\n */\n default String escape(CharSequence input) {\n return Strings.escape(input, this);\n }\n\n /**\n * Escape a character with contextual information about the current position\n * and the preceding character (will be 0 on the first character); a few\n * escapers that respond to things like delimiters and camel casing make use\n * of this; the default is simply to call <code>escape(c)</code>\n *\n * @param c The character to escape\n * @param index The index of the character within the string\n * @param of The total number of characters in this string\n * @param prev The preceding character\n * @return A CharSequence if the character cannot be used as-is, or null if\n * it can\n */\n default CharSequence escape(char c, int index, int of, char prev) {\n return escape(c);\n }\n\n /**\n * For use when logging a badly encoded string. Converts unencodable\n * characters to hex and ISO control characters to hex or their standard\n * escaped Java string representation if there is one (e.g. 0x05 ->\n * \"&lt;0x05&gt;\" but \\n -> \"\\n\").\n *\n * @param cs The character set.\n * @return A string representation that does not include raw unencodable or\n * control characters.\n */\n static Escaper escapeUnencodableAndControlCharacters(Charset cs) {\n CharsetEncoder enc = cs.newEncoder();\n return c -> {\n switch (c) {\n case '\\t':\n return \"\\\\t\";\n case '\\r':\n return \"\\\\r\";\n case '\\n':\n return \"\\\\n\";\n }\n if (!enc.canEncode(c) || Character.isISOControl(c)) {\n return \"<0x\" + Strings.toHex(c) + \">\";\n }\n return null;\n };\n }\n\n /**\n * Returns an escaper which does not escape the specified character, but\n * otherwise behaves the same as its parent.\n *\n * @param c A character\n * @return a new escaper\n */\n default Escaper ignoring(char c) {\n return c1 -> {\n if (c1 == c) {\n return null;\n }\n return this.escape(c);\n };\n }\n\n /**\n * Combine this escaper with another, such that the passed escaper is used\n * only on characters this escaper did not escape.\n *\n * @param other Another escaper\n * @return A new escaper\n */\n default Escaper and(Escaper other) {\n return new Escaper() {\n @Override\n public CharSequence escape(char c) {\n CharSequence result = Escaper.this.escape(c);\n return result == null ? other.escape(c) : result;\n }\n\n @Override\n public CharSequence escape(char c, int index, int of, char prev) {\n CharSequence result = Escaper.this.escape(c, index, of, prev);\n return result == null ? other.escape(c, index, of, prev) : result;\n }\n };\n }\n\n /**\n * Returns a new escaper which will also escape the passed character by\n * prefixing it with \\ in output.\n *\n * @param c A character\n * @return A new escaper\n */\n default Escaper escaping(char c) {\n return and((char c1) -> {\n if (c1 == c) {\n return \"\\\\\" + c;\n }\n return null;\n });\n }\n\n /**\n * Adds the behavior of escaping \" characters.\n *\n * @return A new escaper\n */\n default Escaper escapeDoubleQuotes() {\n return and((char c) -> {\n if (c == '\"') {\n return \"\\\\\\\"\";\n }\n return null;\n });\n }\n\n /**\n * Adds the behavior of escaping ' characters.\n *\n * @return A new escaper\n */\n default Escaper escapeSingleQuotes() {\n return and((char c) -> {\n if (c == '\"') {\n return \"\\\\\\\"\";\n }\n return null;\n });\n }\n\n /**\n * Converts some text incorporating symbols into a legal Java identifier,\n * separating symbol names and spaces in unicode character names with\n * underscores. Uses programmer-friendly character names for commonly used\n * characters (e.g. \\ is \"Backslash\" instead of the unicode name \"reverse\n * solidus\" (!). Useful when you have some text that needs to be converted\n * into a variable name in generated code and be recognizable as what it\n * refers to.\n */\n public static Escaper JAVA_IDENTIFIER_DELIMITED = new SymbolEscaper(true);\n\n /**\n * Converts some text incorporating symbols into a legal Java identifier,\n * separating symbol names and spaces using casing. Uses programmer-friendly\n * character names for commonly used characters (e.g. \\ is \"Backslash\"\n * instead of the unicode name \"reverse solidus\" (!). Useful when you have\n * some text that needs to be converted into a variable name in generated\n * code and be recognizable as what it refers to.\n */\n public static Escaper JAVA_IDENTIFIER_CAMEL_CASE = new SymbolEscaper(false);\n\n /**\n * Escapes double quotes, ampersands, less-than and greater-than to their\n * SGML entities.\n */\n public static Escaper BASIC_HTML = c -> {\n switch (c) {\n case '\"':\n return \"&quot;\";\n case '\\'':\n return \"&apos;\";\n case '&':\n return \"&amp;\";\n case '<':\n return \"&lt;\";\n case '>':\n return \"&gt;\";\n case '©':\n return \"&copy;\";\n case '®':\n return \"&reg;\";\n case '\\u2122':\n return \"&trade;\";\n case '¢':\n return \"&cent;\";\n case '£':\n return \"&pound;\";\n case '¥':\n return \"&yen;\";\n case '€':\n return \"&euro;\";\n default:\n return null;\n }\n };\n\n /**\n * Escapes the usual HTML to SGML entities, plus escaping @, { and }, which\n * can otherwise result in javadoc build failures if they appear in code\n * samples.\n */\n public static Escaper JAVADOC_CODE_SAMPLE = c -> {\n switch (c) {\n case '@':\n return \"&#064;\";\n case '{':\n return \"&#123;\";\n case '}':\n return \"&#125;\";\n case '\"':\n return \"&quot;\";\n case '\\'':\n return \"&apos;\";\n case '&':\n return \"&amp;\";\n case '<':\n return \"&lt;\";\n case '>':\n return \"&gt;\";\n case '©':\n return \"&copy;\";\n case '®':\n return \"&reg;\";\n case '\\u2122':\n return \"&trade;\";\n case '¢':\n return \"&cent;\";\n case '£':\n return \"&pound;\";\n case '¥':\n return \"&yen;\";\n case '€':\n return \"&euro;\";\n default:\n return null;\n }\n };\n\n /**\n * Escapes double quotes, ampersands, less-than and greater-than to their\n * SGML entities, and replaces \\n with &lt;br&gt;.\n */\n public static Escaper HTML_WITH_LINE_BREAKS = c -> {\n CharSequence result = BASIC_HTML.escape(c);\n if (result == null) {\n switch (c) {\n case '\\r':\n result = \"\";\n break;\n case '\\n':\n result = \"<br>\";\n }\n }\n return result;\n };\n\n /**\n * Replaces \\n, \\r, \\t and \\b with literal strings starting with \\.\n */\n public static Escaper NEWLINES_AND_OTHER_WHITESPACE = c -> {\n switch (c) {\n case '\\n':\n return \"\\\\n\";\n case '\\t':\n return \"\\\\t\";\n case '\\r':\n return \"\\\\r\";\n case '\\b':\n return \"\\\\b\";\n default:\n return null;\n }\n };\n\n /**\n * Escapes the standard characters which must be escaped for generating\n * valid lines of code in Java or Javascript - \\n, \\r, \\t, \\b, \\f and \\.\n * Does <i>not</i> escape quote characters (this may differ based on the\n * target language) - call escapeSingleQuotes() or escapeDoubleQuotes() to\n * create a wrapper around this escaper which does that.\n */\n public static Escaper CONTROL_CHARACTERS = c -> {\n switch (c) {\n case '\\n':\n return \"\\\\n\";\n case '\\r':\n return \"\\\\r\";\n case '\\t':\n return \"\\\\t\";\n case '\\b':\n return \"\\\\b\";\n case '\\f':\n return \"\\\\f\";\n case '\\\\':\n return \"\\\\\\\\\";\n default:\n return null;\n }\n };\n\n /**\n * Omits characters which are neither letters nor digits - useful for\n * hash-matching text that may have varying amounts of whitespace or other\n * non-semantic formatting differences.\n */\n public static Escaper OMIT_NON_WORD_CHARACTERS = c -> {\n return !Character.isDigit(c) && !Character.isLetter(c) ? \"\"\n : Character.toString(c);\n };\n}", "public TextArea()\n {\n super(AreaId.TEXT, new AsciiByteFormatter());\n }", "public PyShadowString() {\n\t\tthis(Py.EmptyString, Py.EmptyString);\n\t}" ]
[ "0.60837376", "0.5888526", "0.5767915", "0.5686571", "0.5604171", "0.5601157", "0.55892545", "0.5516212", "0.54882634", "0.54464614", "0.54452384", "0.54421014", "0.5441248", "0.54089195", "0.5401454", "0.539699", "0.5379037", "0.53723145", "0.53682405", "0.5336638", "0.53287286", "0.53059953", "0.53007287", "0.5277099", "0.52715087", "0.52296454", "0.5209404", "0.52023894", "0.5199666", "0.51737404", "0.5165415", "0.516509", "0.5140796", "0.51278317", "0.5104027", "0.508826", "0.5076506", "0.5068947", "0.50608116", "0.50566876", "0.50561607", "0.5048314", "0.5037584", "0.503102", "0.50272936", "0.50246316", "0.50098324", "0.5000057", "0.4989483", "0.49829996", "0.49806622", "0.49649522", "0.49648333", "0.4959889", "0.494742", "0.49394798", "0.49375618", "0.49255717", "0.49239144", "0.4919666", "0.4913568", "0.49110168", "0.4908286", "0.48996267", "0.48922756", "0.48901567", "0.4889199", "0.48883787", "0.48882228", "0.48877144", "0.48871234", "0.4882853", "0.4878418", "0.4875341", "0.4872969", "0.48712948", "0.48710263", "0.4870263", "0.48611498", "0.48539004", "0.48532775", "0.48503283", "0.48496187", "0.48434538", "0.48428348", "0.48425305", "0.4827289", "0.4815869", "0.48108935", "0.48085278", "0.48060492", "0.48027545", "0.48017502", "0.47846442", "0.47827637", "0.47699967", "0.4769679", "0.4768102", "0.47678265", "0.47588652", "0.47554833" ]
0.0
-1
Implementation of OutputStream Closes the underlying Writer.
@Override public void close() throws IOException { _out.close(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void close()\n throws IOException\n {\n outstream.close();\n }", "public void close() {\n if (this.out == null) {\n return;\n }\n try {\n this.out.flush();\n this.out.close();\n this.out = null;\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@NotNull OutputStream openOutputStream() throws IOException;", "public void shutdown() {\n try {\n this.writer.close();\n } catch (IOException e) {\n log.warn(i18n.getString(\"problemCloseOutput\", e), e);\n }\n }", "public static void closeOutputStream(OutputStream outputStream) throws Exception {\n\tif (null != outputStream) {\n\t outputStream.close();\n\t}\n }", "public void close() {\n try { out.flush(); } catch (Exception e) {}; // just to be sure\n \n cleanup();\n }", "private void closeOutputStream() {\n\t\tPrintStreamManagement.closeOutputStream();\n\t}", "@Override\n\t\tpublic void close() throws IOException {\n\t\t\tout.close();\n\t\t}", "public void close() {\n try {\n out.close();\n } catch (java.io.IOException ioe) {\n }\n ;\n }", "public void close() throws IOException {\n\t\tout.flush();\n\t\tout.close();\n\t}", "public static void close(OutputStream out) {\n\t\ttry {\n\t\t\tout.close();\n\t\t} catch (Exception exp) {\n\t\t\tthrow new RuntimeException(exp);\n\t\t}\n\t}", "public OutputStream openOutputStream() throws IOException {\n\n\tthrow new IllegalArgumentException(\"Not supported\");\n }", "public void close() {\n this.output.flush();\n this.output.close();\n }", "public synchronized void close() throws IOException {\n\t\t\tfinish();\n\t\t\tout.close();\n\t\t}", "protected void close()\n {\n out.close();\n }", "public static void closeOutputStream(OutputStream outputStream) {\n\n try {\n\n if (outputStream != null) {\n outputStream.close();\n }\n\n } catch (Exception e) {\n logger.error(e);\n } finally {\n outputStream = null;\n }\n\n }", "public void close() throws IOException\n {\n writer.close();\n }", "public void closeStream() {\n output.close();\n input.close();\n }", "protected void close() {\n\t\tif(sOutput != null) {\n\t\t\ttry {\n\t\t\t\tsOutput.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.err.println(\"error closing output stream\");\n\t\t\t}\n\t\t\t\n\t\t\tsOutput = null;\n\t\t}\n\t}", "@Override\n public void close() {\n try {\n out.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public static void close( OutputStream outs )\n {\n if ( outs != null )\n {\n try\n {\n outs.close();\n }\n catch ( IOException e )\n {\n log.error( \"Error closing output stream: \" + outs, e );\n }\n }\n }", "public OutputStream openOutputStream() throws IOException {\n return new FileOutputStream(this);\n }", "public void close() throws IOException {\r\n writer.close();\r\n }", "@Override\n public void cleanup() throws Exception {\n outputStream.close();\n }", "public OutputStream getOutputStream() throws IOException;", "protected void shutdownOutput() throws IOException\n {\n if (fd == null) {\n throw new IOException(\"socket not created\");\n }\n\n try {\n Os.shutdown(fd, OsConstants.SHUT_WR);\n } catch (ErrnoException e) {\n throw e.rethrowAsIOException();\n }\n }", "public static void end()\n {\n if(out!=null) {\n out.println(\"close \" + name);\n out.flush();\n }\n }", "public void close(){\n\t\ttry {\n\t\t\tout.close();\n\t\t\tout = null;\n\t\t}\n\t\tcatch (IOException e){\n\t\t\tSystem.out.println(\"Problem closing file.\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "public void closeWriter() throws IOException{\n if(isOpen){\n dataWriter.close();\n }\n }", "public void close() throws IOException {\n\t\tif (keyClass != null) {\n\t\t keySerializer.close();\n\t\t valueSerializer.close();\n\t\t}\n\n\t\t// Write EOF_MARKER for key/value length\n\t\tWritableUtils.writeVInt(out, EOF_MARKER);\n\t\tWritableUtils.writeVInt(out, EOF_MARKER);\n\t\tdecompressedBytesWritten += 2 * WritableUtils.getVIntSize(EOF_MARKER);\n \n\t\t//Flush the stream\n\t\tout.flush();\n \n\t\tif (compressOutput) {\n\t\t // Flush\n\t\t compressedOut.finish();\n\t\t compressedOut.resetState();\n\t\t}\n \n\t\t// Close the underlying stream iff we own it...\n\t\tif (ownOutputStream) {\n\t\t out.close();\n\t\t}\n\t\telse {\n\t\t // Write the checksum\n\t\t checksumOut.finish();\n\t\t}\n\n\t\tcompressedBytesWritten = rawOut.getPos() - start;\n\n\t\tif (compressOutput) {\n\t\t // Return back the compressor\n\t\t CodecPool.returnCompressor(compressor);\n\t\t compressor = null;\n\t\t}\n\n\t\tout = null;\n\t\tif(writtenRecordsCounter != null) {\n\t\t writtenRecordsCounter.increment(numRecordsWritten);\n\t\t}\n\t }", "public void close() {\n this.output = null;\n }", "public void close()\r\n\t\tthrows IOException\r\n\t{\r\n\t\tif (out != null)\r\n\t\t\tout.close();\r\n\r\n\t\tif (rnd != null)\r\n\t\t\trnd.close();\r\n\t}", "public static void closeOutputStream(OutputStream outputStream) throws ShellException {\r\n\t\tif (outputStream != System.out && outputStream != null) {\r\n\t\t\ttry {\r\n\t\t\t\toutputStream.close();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tthrow new ShellException(e);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void writeTo(OutputStream arg0) throws IOException {\n\t\t\r\n\t}", "@Override\n\t public synchronized void close() throws IOException {\n\t\tout.close();\n\t\topen = false;\n\t }", "public void finish( OutputStream stream ) throws IOException\n {\n }", "@Override\n public void close() throws IOException {\n try\n {\n if (outputStream != null)\n {\n outputStream.flush();\n outputStream.close();\n }\n if (workbook != null)\n {\n workbook.dispose();\n workbook.close();\n }\n }\n catch (IOException e)\n {\n throw new IOException(e);\n }\n }", "public OutputStream getOutputStream();", "public void close() throws Exception{\r\n\tout.close();\r\n}", "@Override\n public void close() {\n backingIterator.close();\n outputBuffer.close();\n isClosed = true;\n }", "public void close() {\n if (numDigits > 0)\n flush();\n try {\n output.close();\n } catch (IOException e) {\n throw new RuntimeException(e.toString());\n }\n }", "public void close() throws IOException\n {\n try\n {\n flush();\n }\n catch (IOException ignored)\n {\n // ignore\n }\n getStream().close();\n }", "public abstract void writeToStream(java.io.DataOutputStream output) throws java.io.IOException;", "public OutputStream createOutputStream() throws IOException\n {\n return stream.createOutputStream();\n }", "public void write(OutputStream arg0) throws IOException {\n\n\t}", "void flushToOutputStream(OutputStream outputStream) throws IOException;", "@Override\n public void onClose() {\n logger.info(\"Closing {} streams for file {}\", this.getTransferType(), this.getResource().file);\n try {\n if (inputChannel != null) {\n inputChannel.close();\n inputChannel = null;\n inputBuffer.clear();\n inputBuffer = null;\n }\n if (outputStream != null) {\n outputStream.close();\n outputStream = null;\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\n public void close() {\n LOG.info(\"Closing stream writer:\" + streamName);\n shutdown();\n try {\n awaitTermination(1, TimeUnit.MINUTES);\n } catch (InterruptedException ignored) {\n }\n }", "public abstract void write(PrintWriter out)\n throws IOException;", "public void close() throws IOException {\n write(\"\\n\");\n writer.close();\n }", "OutputStream getOutputStream() throws IOException;", "public void shutdownOutput()\n throws IOException\n {\n throw new UnsupportedOperationException(\n \"The method shutdownOutput() is not supported in SSLSocket\");\n }", "protected HttpRequest closeOutput() throws IOException {\n block6: {\n if (this.output == null) {\n return this;\n }\n if (this.multipart) {\n this.output.write(\"\\r\\n--00content0boundary00--\\r\\n\");\n }\n if (this.ignoreCloseExceptions) {\n this.output.close();\n ** GOTO lbl13\n } else {\n this.output.close();\n }\n break block6;\n catch (IOException var1_1) {}\n }\n this.output = null;\n return this;\n }", "public void close() {\n try {\n socket.close();\n outputStream.close();\n inputStream.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public OutputStream openOutputStream() throws IOException {\n // TODO: this mode is not set yet.\n // \tif ((parent.mode & Connector.WRITE) == 0)\n // \t\tthrow new IOException(\"read-only connection\");\n ensureOpen();\n ensureNotDone();\n\n if (outputStreamOpened)\n throw new IOException(\"no more output streams available\");\n\n if (privateOutput == null) {\n // there are 3 bytes operation headers and 3 bytes body headers //\n privateOutput = new PrivateOutputStream(this, maxPacketSize - 6);\n }\n\n outputStreamOpened = true;\n\n return privateOutput;\n }", "int writeTo(OutputStream out) throws IOException;", "public OutputStream openOutputStream() throws IOException {\n return response.getOutputStream();\n }", "public void close() throws IOException {\n FileOutputStream out = new FileOutputStream(fileName);\n wb.write(out);\n\n out.close();\n wb.close();\n }", "public void close() throws IOException {\n\t\tthis.finish();\n\t\tthis.buffer.close();\n\t\t}", "protected abstract OutputStream getStream() throws IOException;", "@Override\n\tpublic void write(OutStream outStream) {\n\t}", "public OutputStream getOutputStream() throws java.io.IOException, SecurityException {\n return new FileOutputStream(_file);\n }", "void write(Writer out) throws IOException;", "public OutputStreamWriter(final x10.core.io.OutputStream out) {\n this((java.lang.System[]) null);\n x10$io$OutputStreamWriter$$init$S(out);\n }", "public void close ()\n {\n StreamHelper.flush (this);\n StreamHelper.close (m_aOS);\n m_aOS = null;\n }", "@TestMethod(\"testClose\")\n public void close() throws IOException {\n writer.close();\n }", "protected static void close(InputStream iStream, OutputStream oStream) throws\r\n IOException {\r\n try {\r\n if (iStream != null) {\r\n iStream.close();\r\n }\r\n }\r\n finally {\r\n if (oStream != null) {\r\n oStream.close();\r\n }\r\n }\r\n }", "public OutputStreamWriter(OutputStream os) {\n out = Helper.getStreamWriter(os);\n }", "public void close() throws IOException;", "public void close() throws IOException;", "public void close() throws IOException;", "public void close() throws IOException;", "public void close() throws IOException;", "public void close() throws IOException;", "public void close() throws IOException;", "public void close() throws IOException;", "@Override\r\n public void close() throws IOException {\r\n IOException ioException = null;\r\n for (WriterInfo writerInfo : mWriters) {\r\n try {\r\n Writer writer = writerInfo.getWriter();\r\n if (writerInfo.getOwned()) {\r\n writer.close();\r\n } else {\r\n writer.flush();\r\n }\r\n } catch(IOException ioex) {\r\n ioException = ioex;\r\n }\r\n }\r\n if (ioException != null) {\r\n throw ioException;\r\n }\r\n }", "public OutputStream createOutputStream() throws IOException {\n/* 213 */ return this.stream.createOutputStream();\n/* */ }", "public void close() throws IOException {\n\t\tistream.close();\n\t\tostream.close();\n\t\tsocket.close();\n\t}", "public OutputStream openOutputStream(String path) throws SystemException;", "protected void close() {\n\t\tthis.writer.stop();\n\t\tsynchronized (this.writer.writer) {\n\t\t\twhile (!this.writer.isFinished()) {\n\t\t\t\ttry {\n\t\t\t\t\tthis.writer.writer.wait();\n\t\t\t\t}\n\t\t\t\tcatch (InterruptedException e) {\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\ttry {\n\t\t\tthis.btc.close();\n\t\t}\n\t\tcatch (IOException e) {\n\t\t}\n\n\t\tthis.closed = true;\n\t}", "public OutputStream getOutputStream() throws MorseException {\n\t\treturn null;\r\n\t}", "@Override\n public void destroy() {\n if (fileWriter != null) {\n try {\n fileWriter.close();\n } catch (IOException e) {\n }\n }\n }", "@Override\n public void close(){\n outObject = \"close-\";\n try {\n out.writeObject(outObject);\n } catch (IOException ex) {\n }\n }", "private void close() {\n try {\n if (reader != null) {\n this.reader.close();\n }\n if (writer != null) {\n this.writer.close();\n }\n }\n catch (IOException e) {\n log.error(e);\n log.debug(Constants.STREAM_IS_CLOSED);\n }\n }", "public final OutputStream getOutputStream() {\n return outputStream;\n }", "@Override\n public void close() throws IOException {\n inputMessageStream.close();\n outputMessageStream.close();\n socket.close();\n }", "protected void closeStream ()\n {\n stream.close ();\n }", "public void closeFile() throws IOException {\n finstream.close();\n writer.close();\n }", "public void close(){\r\n\t\tif(managedOutputSocket != null) managedOutputSocket.close();\r\n\t\tmanagedOutputSocket = null;\r\n\t\tsuper.close();\r\n\t}", "public OutputStream getOutputStream() {\n return new BufferedOutputStream(new OutputStream() {\n public void write(int b) throws IOException {\n _combinedOutputStream.write(b);\n }\n public void flush() throws IOException {\n _combinedOutputStream.flush();\n }\n public void close() throws IOException {\n _combinedOutputStream.close();\n }\n });\n }", "public void close() throws DukeException {\n try {\n this.writer.close();\n } catch (IOException e) {\n throw Ui.ioException(e);\n }\n }", "public void close() throws IOException {\n open = false;\n stream.close();\n }", "private void close() {\n\t\tif (socketChannel != null) {\n\t\t\ttry {\n\t\t\t\tif (in != null) {\n\t\t\t\t\tin.close();\n\t\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t\tlog.log(Level.SEVERE, \"Close in stream \", e);\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tif (out != null) {\n\t\t\t\t\tout.close();\n\t\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t\tlog.log(Level.SEVERE, \"Close out stream \", e);\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tsocketChannel.close();\n\t\t\t} catch (IOException ex) {\n\t\t\t\tlog.log(Level.SEVERE, \"Can't close socket channel\", ex);\n\t\t\t}\n\n\t\t}\n\t\t//Defender.stopConnection();\n\t}", "@Override\n void close() throws IOException{\n System.out.print(\"Close\");\n \n }", "public OutputStream getOutputStream() {\n\t\treturn outputStream;\n\t}", "@Override\n public OutputStream openOutputFile(String pathname) throws IOException {\n return new FileOutputStream(pathname);\n }", "public OutputStream getOutputStream()\n\t{\n\t\treturn null;\n\t}", "public static void endWrite()\r\n\t{\r\n\t\r\n\t}", "public OutputStream getOutputStream() {\n return this.outputStream;\n }" ]
[ "0.69100875", "0.6745192", "0.6641541", "0.6635623", "0.6622578", "0.6560901", "0.6523129", "0.65044713", "0.6480884", "0.6451924", "0.64491916", "0.63653505", "0.634487", "0.63094443", "0.62546", "0.6245072", "0.61874175", "0.615007", "0.6141842", "0.61193573", "0.6106187", "0.61001897", "0.6100023", "0.6078657", "0.60678464", "0.6020225", "0.60088587", "0.5998742", "0.59561163", "0.59463364", "0.5931627", "0.59260833", "0.5917725", "0.59109104", "0.58937085", "0.58459145", "0.5828222", "0.5797827", "0.57812715", "0.57568675", "0.573946", "0.57076037", "0.56233126", "0.56136125", "0.55938345", "0.55875146", "0.5539195", "0.5505777", "0.5497886", "0.54958487", "0.54907376", "0.5490133", "0.5487132", "0.5480693", "0.54769737", "0.54696316", "0.5468104", "0.545641", "0.5447587", "0.54420084", "0.5433672", "0.543067", "0.54143506", "0.5396076", "0.5395596", "0.5381031", "0.5377923", "0.53774565", "0.5376534", "0.5376534", "0.5376534", "0.5376534", "0.5376534", "0.5376534", "0.5376534", "0.5376534", "0.5366625", "0.5361878", "0.5359703", "0.53552157", "0.5354395", "0.5351547", "0.5316215", "0.5313324", "0.5307597", "0.53063405", "0.5270818", "0.5253029", "0.52498275", "0.5234128", "0.52339494", "0.52311265", "0.5223919", "0.5218576", "0.52130866", "0.52113855", "0.5202044", "0.51898324", "0.51898277", "0.5185195" ]
0.664946
2
gives you pizza`s name
public String getName() { return name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic Pizza getPizzaByName(String pizzaName) {\n\t\treturn mongoTemplate.findOne(Query.query(Criteria.where(\"name\").in(pizzaName)), Pizza.class);\n\t}", "public String getMealName() {\n return name.getText().toString();\n }", "public Pizza getPizza() {\n return this.pizzaType;\n }", "public String getFoodName() {\n return foodName;\n }", "@Override\n public String toString() {\n return String.format(\"Pizza %s, prezzo %f€\", this.gusto, this.prezzo);\n }", "public Pizza orderPizza(String type) {\n //hier wird Factory methode aufgerufen/ Code ändert sich öfters\n Pizza pizza = createPizza(type);\n\n if (pizza != null){\n System.out.printf(\"Making a \" + pizza.getName() + \"---------\");\n pizza.prepare();\n pizza.bake();\n pizza.cut();\n pizza.box();\n }\n\n return pizza;\n }", "@Override\n public String getDescription() {\n\t return \"Mexican Pizza\";\n }", "@Override\n\tpublic String getName() {\n\t\treturn \"Cold Coffee\";\n\t}", "public String formatedMenuOrderByName(){\n Random random = new Random();\n int randomIndex = random.nextInt(Pizza.values().length);\n Pizza pizzaOfTheDay = Pizza.values()[randomIndex];\n\n return Arrays.stream(Pizza.values())\n .sorted(comparing(Pizza::getName))\n .map(pizza -> String.format(\n \"%15s (%-90s) %5s %4s - %5.2f zł %1s\",\n pizza.getName(),\n pizza.getIngredients().stream().map(Ingredient::getName).collect(Collectors.joining(\", \")),\n pizza.getIngredients().stream().anyMatch(Ingredient::isSpicy) ? \"ostra\" : \"\",\n pizza.getIngredients().stream().noneMatch(Ingredient::isMeat) ? \"wege\" : \"\",\n pizza.equals(pizzaOfTheDay) ? (double) calculatePizzaPrice(pizza) * 0.5 : (double) calculatePizzaPrice(pizza),\n pizza.equals(pizzaOfTheDay) ? \"*\" : \"\"\n ))\n// .sorted(Comparator.comparing(pizza -> pizza.trim()))\n .collect(Collectors.joining(\"\\n\"));\n }", "@Override\n\tpublic String name() {\n\t\treturn \"Chicken Burger\";\n\t}", "public Pizza(String _name, ArrayList<String> _toppings){\n this.name = _name;\n this.toppings = _toppings;\n }", "@Override\r\n\tpublic String foodName() {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic String getDesc() {\n\t\treturn pizza.getDesc()+\" , RomaTomatoes(12.88)\";\r\n\t}", "String getDepotname();", "public String toString() {\n return (\"A \" + pizzaSize + \" pizza with \" + cheeseToppings + \" cheese topping(s), \" + pepperoniToppings +\n \" pepperoni topping(s), and \" + veggieToppings + \" veggie topping(s) costs $\" + calcCost());\n }", "String getPName();", "public String showName(){\r\n\t\tSystem.out.println(\"This is a \" + name);\r\n\t\treturn name;}", "@Override\r\n\tpublic String getFood() {\n\t\treturn \"banana\";\r\n\t}", "public String toString()\r\n {\r\n return super.toString() + \"\\nPrice: $\" + this.pizzaPrice();\r\n }", "public Pizza(){\n this.name = \"Plain Pizza\";\n this.toppings = new ArrayList<String>(Arrays.asList(\"Olive\", \"Cheese\"));\n }", "@Override\n public String getName()\n {\n if (amount > 1)\n {\n return amount + \" Nickles\";\n }\n else\n {\n return amount + \" Nickle\";\n }\n }", "public String getPetName();", "public String getPotionName()\r\n/* 119: */ {\r\n/* 120:121 */ return Potion.potionList[this.id].getName();\r\n/* 121: */ }", "String getName() ;", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();" ]
[ "0.7370362", "0.6783135", "0.67016006", "0.6653925", "0.66171885", "0.66089475", "0.6591075", "0.656738", "0.64802355", "0.6468457", "0.6417147", "0.6401355", "0.63927996", "0.6389028", "0.6340251", "0.62600666", "0.6244473", "0.6209122", "0.6199158", "0.6185966", "0.61383265", "0.61374784", "0.613214", "0.6128268", "0.6127098", "0.6127098", "0.6127098", "0.6127098", "0.6127098", "0.6127098", "0.6127098", "0.6127098", "0.6127098", "0.6127098", "0.6127098", "0.6127098", "0.6127098", "0.6127098", "0.6127098", "0.6127098", "0.6127098", "0.6127098", "0.6127098", "0.6127098", "0.6127098", "0.6127098", "0.6127098", "0.6127098", "0.6127098", "0.6127098", "0.6127098", "0.6127098", "0.6127098", "0.6127098", "0.6127098", "0.6127098", "0.6127098", "0.6127098", "0.6127098", "0.6127098", "0.6127098", "0.6127098", "0.6127098", "0.6127098", "0.6127098", "0.6127098", "0.6127098", "0.6127098", "0.6127098", "0.6127098", "0.6127098", "0.6127098", "0.6127098", "0.6127098", "0.6127098", "0.6127098", "0.6127098", "0.6127098", "0.6127098", "0.6127098", "0.6127098", "0.6127098", "0.6127098", "0.6127098", "0.6127098", "0.6127098", "0.6127098", "0.6127098", "0.6127098", "0.6127098", "0.6127098", "0.6127098", "0.6127098", "0.6127098", "0.6127098", "0.6127098", "0.6127098", "0.6127098", "0.6127098", "0.6127098", "0.6127098" ]
0.0
-1
return true if all strings in focusedState are false otherwise, return true if at least one of them is true
public static boolean isAllFalse (String[] focusedState) { for(String s:focusedState) { boolean focused = Boolean.parseBoolean(s); if (focused) return false; //not all are false } return true; // all are false }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasState();", "boolean hasState();", "boolean hasState();", "boolean hasState();", "boolean hasState();", "boolean hasState();", "boolean hasState();", "boolean hasState();", "private static boolean validState(String state) {\n\t\tfor (String goodState : validStates) {\n\t\t\tif (goodState.equalsIgnoreCase(state)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "boolean isFocused() {\n\t\tif (state != State.ROTATE)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "private boolean containState(String state) {\r\n for (int i = 0; i < this.visitedList.size(); i++) {\r\n if (state.equals(this.visitedList.get(i))) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }", "boolean isSetState();", "boolean hasStablesSelected();", "private boolean validateInputs(){\n if(jrTakeTest.isSelected()==false && jrViewScores.isSelected()==false && jrChangePassword.isSelected()==false)\n return false;\n return true;\n}", "boolean hasHasState();", "public final boolean isStateful() {\n ColorStateList colorStateList;\n ColorStateList colorStateList2 = this.mCollapsedTextColor;\n return (colorStateList2 != null && colorStateList2.isStateful()) || ((colorStateList = this.mExpandedTextColor) != null && colorStateList.isStateful());\n }", "boolean isDrawState()\n\t{\n\t\treturn !state.contains(0);\n\t}", "public boolean isSetState()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(STATE$8) != 0;\r\n }\r\n }", "private boolean isAllTrue(HashMap<Integer, Boolean> messages)\r\n {\r\n // Iterate through each value for each key in the map.\r\n for(boolean value : messages.values())\r\n {\r\n // If a value is false, then return false.\r\n if(!value)\r\n {\r\n return false;\r\n }\r\n }\r\n // If all values are true, then return true.\r\n return true;\r\n }", "private boolean fieldsAreFilled(){\n return !textboxName.isEnabled() && !textboxInitialValue.isEnabled();\n }", "public static boolean anyDirty ()\n {\n for (Boolean b : _dirty.values()) {\n if (Boolean.TRUE.equals(b)) {\n return true;\n }\n }\n return false;\n }", "public static boolean isValidState(String state) {\n\n\t\tboolean valid = true;\n\n\t\tif (StringUtils.isBlank(state)) {\n\t\t\tvalid = false;\n\t\t}\n\n\t\tif (StringUtils.containsAny(state, new char[] { ' ', '\\t' })) {\n\t\t\tvalid = false;\n\t\t}\n\n\t\treturn valid;\n\t}", "private boolean isGoodState() {\n\t resetMask();\n\t checkHorizontal();\n\t checkVertical();\n\n\t for(int i = 0; i < maskArray.length; i++){\n\t for (int j = 0; j < maskArray[i].length; j++){\n\n\t if (maskArray[i][j] == 1){\n\t return false;\n\t }\n\n\t }\n\t }\n\n\t return true;\n }", "private boolean hasChanges() {\n for (Map.Entry<EditText, Integer> e : mPrefKeys.entrySet()) {\n String field = e.getKey().getText().toString();\n String pref = Pref.get(this, e.getValue()).replace(Data.DEACTIVATED_MARKER, \"\");\n if (!field.equals(pref))\n return true;\n }\n return false;\n }", "boolean isSetStraight();", "@SuppressWarnings(\"unused\")\n\tprivate boolean wasAnyButtonPressed() {\n\t\tfor (ArcadeButton button : buttons) {\n\t\t\tif (button.getPressCounter() > 0) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "private boolean isAllInputValid() {\n for (Map.Entry<EditText, Validator> e : mValidators.entrySet()) {\n if (e.getKey().isEnabled()) {\n if (!e.getValue().test(e.getKey().getText().toString()))\n return false;\n }\n }\n return true;\n }", "private boolean isComplete() {\n for (boolean b : bitfield) {\n if (!b) {\n return false;\n }\n }\n return true;\n }", "public boolean isSetState() {\n return this.state != null;\n }", "public boolean isSetState() {\n return this.state != null;\n }", "boolean isFocusBracketingPref();", "public boolean isStateActive(State state) {\n\t\tswitch (state) {\n\t\t\tcase main_region_digitalwatch :\n\t\t\t\treturn stateVector[0].ordinal() >= State.main_region_digitalwatch\n\t\t\t\t\t\t.ordinal()\n\t\t\t\t\t\t&& stateVector[0].ordinal() <= State.main_region_digitalwatch_Display_glowing_GlowDelay\n\t\t\t\t\t\t\t\t.ordinal();\n\t\t\tcase main_region_digitalwatch_Time_counting_Counting :\n\t\t\t\treturn stateVector[0] == State.main_region_digitalwatch_Time_counting_Counting;\n\t\t\tcase main_region_digitalwatch_Display_refreshing_RefreshingTime :\n\t\t\t\treturn stateVector[1].ordinal() >= State.main_region_digitalwatch_Display_refreshing_RefreshingTime\n\t\t\t\t\t\t.ordinal()\n\t\t\t\t\t\t&& stateVector[1].ordinal() <= State.main_region_digitalwatch_Display_refreshing_RefreshingTime_timeView_hideAlarm\n\t\t\t\t\t\t\t\t.ordinal();\n\t\t\tcase main_region_digitalwatch_Display_refreshing_RefreshingTime_timeView_showAlarm :\n\t\t\t\treturn stateVector[1] == State.main_region_digitalwatch_Display_refreshing_RefreshingTime_timeView_showAlarm;\n\t\t\tcase main_region_digitalwatch_Display_refreshing_RefreshingTime_timeView_hideAlarm :\n\t\t\t\treturn stateVector[1] == State.main_region_digitalwatch_Display_refreshing_RefreshingTime_timeView_hideAlarm;\n\t\t\tcase main_region_digitalwatch_Display_refreshing_RefreshingChrono :\n\t\t\t\treturn stateVector[1] == State.main_region_digitalwatch_Display_refreshing_RefreshingChrono;\n\t\t\tcase main_region_digitalwatch_Display_chrono_countingChrono :\n\t\t\t\treturn stateVector[2] == State.main_region_digitalwatch_Display_chrono_countingChrono;\n\t\t\tcase main_region_digitalwatch_Display_chrono_ChoroStart :\n\t\t\t\treturn stateVector[2] == State.main_region_digitalwatch_Display_chrono_ChoroStart;\n\t\t\tcase main_region_digitalwatch_Display_glowing_GlowOff :\n\t\t\t\treturn stateVector[3] == State.main_region_digitalwatch_Display_glowing_GlowOff;\n\t\t\tcase main_region_digitalwatch_Display_glowing_GlowOn :\n\t\t\t\treturn stateVector[3] == State.main_region_digitalwatch_Display_glowing_GlowOn;\n\t\t\tcase main_region_digitalwatch_Display_glowing_GlowDelay :\n\t\t\t\treturn stateVector[3] == State.main_region_digitalwatch_Display_glowing_GlowDelay;\n\t\t\tdefault :\n\t\t\t\treturn false;\n\t\t}\n\t}", "private boolean sameTeamCheck(char state)\r\n {\r\n if((state == 'b' && isHuman) || (state == 'p' && !isHuman))\r\n return true;\r\n return false;\r\n }", "boolean isTestAlwaysFocus();", "boolean isKeywordExact() {\n return exactRadioButton.isSelected();\n }", "private boolean checkAllFields() {\n formValues.clear();\n\n if (genderRadio != null) {\n RadioButton gender = (RadioButton) findViewById(genderRadio.getCheckedRadioButtonId());\n formValues.add(gender.getText().toString());\n }\n\n boolean shouldPassToActivity = true;\n for (Map.Entry<EditText, Boolean> entry : map.entrySet()) {\n if (!checkFieldColor(entry.getKey(), entry.getValue())) shouldPassToActivity = false;\n if (shouldPassToActivity) formValues.add(entry.getKey().getText().toString());\n }\n\n return shouldPassToActivity;\n }", "private boolean checkIfAllFieldsAreFilled(EditText[] editTexts) {\n\n boolean allFilled = true;\n\n for (EditText currentField : editTexts) {\n\n if (currentField.getText().toString().length() <= 0) {\n currentField.setBackground(ContextCompat.getDrawable(Objects.requireNonNull(getContext()), R.drawable.rounded_blue_edittext));\n allFilled = false;\n }\n\n }\n\n return allFilled;\n\n }", "boolean hasFocus() {\n\t\t\tif (text == null || text.isDisposed()) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn text.getShell().isFocusControl() || text.isFocusControl();\n\t\t}", "private boolean contain(Estado state, List<Estado> states) {\n\t\tfor (Estado valid : states) {\n\t\t\tif (valid.getValue() == state.getValue()) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public boolean check(){\n for(TextField texts:textFields){\n if(texts.getText().isEmpty()){\n return false;\n }\n }\n return true;\n }", "public boolean isSetState()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().find_attribute_user(STATE$14) != null;\r\n }\r\n }", "private boolean testFocusability(Component aComponent) {\n return focused.contains(aComponent);\n }", "private boolean hasUniqueState()\n {\n return (getExternalArcState() == getMiddleArcState() && getExternalArcState() == getInternalArcState() && getExternalArcState() == getCircleState());\n }", "public boolean isFocus() {\n\t\tif(lfocus.getText().equals(\"取消关注\"))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\tlfocus.setText(\"取消关注\");\n\t\treturn false;\n\t}", "public boolean hasState() {\n return fieldSetFlags()[3];\n }", "public boolean hasState() {\n return fieldSetFlags()[3];\n }", "private boolean isAllIngredientOk(ArrayList<Boolean> listOfBool) {\n if (listOfBool.isEmpty() || listOfBool.contains(false))\n return false;\n return true;\n }", "private boolean checkIfAllFieldsAreFilled(EditText[] editTexts) {\n\n boolean allFieldsAreFilled = true;\n\n for (EditText currentField : editTexts) {\n\n if (currentField.getText().toString().length() <= 0) {\n currentField.setBackground(ContextCompat.getDrawable(Objects.requireNonNull(this), R.drawable.rounded_blue_edittext));\n allFieldsAreFilled = false;\n }\n\n }\n\n return allFieldsAreFilled;\n\n }", "private boolean isBoardFull() {\n for (int i = 0; i < 3; i++) {\n for (int j = 0; j < 3; j++) {\n if (boardState[i][j] != 'X' && boardState[i][j] != 'O') {\n return false; \n }\n }\n }\n return true; \n }", "public boolean isWindowStateAllowed(WindowState state) {\n String[] supportedStates = Config.getParameters().getStrings(\"supported.windowstate\");\n for (String element : supportedStates) {\n if (element.equalsIgnoreCase(state.toString())) {\n return true;\n }\n }\n return false;\n }", "private static boolean isWin()\n {\n boolean win = true;\n for(Ship[] k:map)\n {\n for(Ship o:k)\n {\n if(o.getState()==1)\n win=false;\n }\n }\n return win;\n }", "private boolean isAllCardsPicked(){\n\t\t\n\t\tboolean isCardsPicked = true;\n\t\tfor ( int i = 0; i < pickedCards.length; i++ ){\n\t\t\tif(!pickedCards[i]) {\n\t\t\t\tisCardsPicked = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn isCardsPicked;\n\t}", "private boolean isAllCardsPicked(){\n\t\t\n\t\tboolean isCardsPicked = true;\n\t\tfor ( int i = 0; i < pickedCards.length; i++ ){\n\t\t\tif(!pickedCards[i]) {\n\t\t\t\tisCardsPicked = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn isCardsPicked;\n\t}", "public boolean chatFocused(){\n\t\tTextField tf = nifty.getScreen(\"hud\").findNiftyControl(\"chatText\",TextField.class);\n\t\treturn tf.hasFocus();\n\t}", "public boolean hasFocus() {\n\t\tif (!isValid()) {\n\t\t\treturn false;\n\t\t}\n\t\tif (getShell().isFocusControl() || proposalTable.isFocusControl()) {\n\t\t\treturn true;\n\t\t}\n\t\tif (infoPopup != null && infoPopup.hasFocus()) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean getKeyState(InputKey key) {\n Boolean state = keyStates.get(key);\n return state != null && state;\n }", "public boolean strictMatches() { return strict_matches_cbmi.isSelected(); }", "boolean hasIsInputTo();", "default boolean isRepeatState() {\n return isRepeatState(FULL_EQUAL);\n }", "public boolean winState() {\n\t\treturn this.numTargets == this.onTargets;\n\t}", "public final boolean IsSatisfy() {\r\n List<State> states = this.SAT(this._expression);\r\n for(State state : states)\r\n \t{\r\n \t\tif (state.StateName.equals(this._state.StateName)) {\r\n \t\t\treturn true;\r\n \t} \r\n \r\n }\r\n return false;\r\n }", "boolean arrCompleted(Boolean[] boolarray) {\n for (int i=0; i < boolarray.length; i++) {\n if (boolarray[i] == false) {\n return false;\n }\n }\n return true;\n }", "boolean isSetMultiple();", "boolean hasIronSelected();", "private boolean checkIfChanged() {\n //get everything\n if ((!fname.getText().toString().equals(prefs.getString(\"fname\", null))\n || (!lname.getText().toString().equals(prefs.getString(\"lname\", null)))\n || (!email.getText().toString().equals(prefs.getString(\"email\", null)))\n || (!password.getText().toString().equals(prefs.getString(\"password\", null)))\n || (!(spinner_curr.getSelectedItemPosition() == (prefs.getInt(\"curr\", 0))))\n || (!(spinner_stock.getSelectedItemPosition() == (prefs.getInt(\"stock\", 0)))))) {\n return true;\n }\n return false;\n }", "private boolean checkWfState(String view_name, String objid)\n {\n ASPManager mgr = getASPManager();\n ASPContext ctx = mgr.getASPContext();\n String objid_ = (String)ctx.findGlobalObject(prefix_wf_ob_dr + view_name);\n if (\"ALL\".equals(objid_))\n return true;\n \n if (!mgr.isEmpty(objid) && objid.equals(objid_))\n return true;\n \n return false;\n }", "public boolean isAllScreenInputValid() throws BusinessRuleException {\n\t\tif ((\"EUR\".equalsIgnoreCase(Version.CURRENT_REGION))) {\n\t\t\treturn isAddressLine1Valid() && isAddressLine2Valid() && isZipCodeValid() && isCityValid()\n\t\t\t//Remove isStateValide for Europe\n\t\t\t//&& isStateValid() && isPhone1Valid() && isPhoneType1Valid() && isPhone2Valid()\n\t\t\t&& isPhone1Valid() && isPhoneType1Valid() && isPhone2Valid()\n\t\t\t&& isPhoneType2Valid() && isPhone3Valid() && isPhoneType3Valid();\n\t\t} else {\t\t\n\t\t\treturn isAddressLine1Valid() && isAddressLine2Valid() && isZipCodeValid() \n\t\t\t&& isCityValid() && isStateValid() && isPhone1Valid() && isPhoneType1Valid() \n\t\t\t&& isPhone2Valid() && isPhoneType2Valid() && isPhone3Valid() && isPhoneType3Valid();\n\t\t}\n\t}", "public boolean isTextListFocused() {\n\t\treturn jpIntroduceNameList.isRequestFocusEnabled();\n\t}", "public boolean isWordGuessed() {\n\t for(Letter l : letters) {\n\t if(!l.getStatus())\n\t return false;\n\t }\n\t this.displayedWord.setStatus(true);\n\t return true;\n\t}", "public final boolean mo5379l() {\n RecyclerView recyclerView = this.f9709b;\n return recyclerView != null && recyclerView.hasFocus();\n }", "Collection<? extends String> getHasState();", "boolean isKeywordRegex() {\n return regexRadioButton.isSelected();\n }", "public boolean inExplored(int[] state)\n\t{\n\t\tfor (int i = 0; i < this.explored.size(); i++) {\n\t\t\tint[] curr = this.explored.get(i);\n\n\t\t\tif ((curr[0] == state[0]) && (curr[1] == state[1])) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}", "private boolean verifyMessagePresence(){\n boolean overallResult = true;\n \n for(int ii = 0; ii < 3; ii = ii +1){\n if(121 == getHidden(ii)){\n overallResult = true;\n }else{\n overallResult = false;\n }\n }\n \n return overallResult;\n }", "boolean isInputValid(){\n\t\tString ac = edAccount.getText().toString();\n\t\tString pwd = edPassword.getText().toString();\n\t\tboolean isAccEmpty = StringUtil.isNullOrEmpty(ac);\n\t\tboolean isPwdEmpty = StringUtil.isNullOrEmpty(pwd);\n\t\tif(isAccEmpty){\n\t\t\tedAccount.requestFocus();\n\t\t}else if(isPwdEmpty){\n\t\t\tedPassword.requestFocus();\n\t\t}\n\t\treturn !( isAccEmpty|| isPwdEmpty);\n\t}", "public boolean checkState(){\r\n boolean checkZero = false;\r\n for (int i = 0; i<puzzleSize; i++){\r\n for (int j = 0; j<puzzleSize; j++){\r\n if (this.state[i][j] == 0)\r\n checkZero = true;\r\n if ( (this.state[i][j]<0) || (this.state[i][j]>maxValue)){\r\n System.out.println(\"Value greater than \" + maxValue + \" found.\");\r\n return false;\r\n }\r\n for (int k = 0; k<puzzleSize; k++){\r\n for (int l = 0; l<puzzleSize; l++){\r\n if ( (this.state[i][j] == this.state[k][l])&&( (i!=k) || (j!=l))){\r\n System.out.println(\"State contained duplicate value(s).\");\r\n return false;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n if (!checkZero)\r\n System.out.println(\"State did not contain an empty space. Denote an empty space with a 0.\");\r\n return checkZero;\r\n }", "protected void checkState() {\n\t\tboolean valid = true;\n\t\tinvalidFieldEditor = null;\n\t\t// The state can only be set to true if all\n\t\t// field editors contain a valid value. So we must check them all\n\t\tif (fields != null) {\n\t\t\tint size = fields.size();\n\t\t\tfor (int i = 0; i < size; i++) {\n\t\t\t\tFieldEditor editor = fields.get(i);\n\t\t\t\tvalid = valid && editor.isValid();\n\t\t\t\tif (!valid) {\n\t\t\t\t\tinvalidFieldEditor = editor;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tsetValid(valid);\n\t}", "public boolean allDaysSelected() {\n return selectedDays.size() == 7;\n }", "public boolean allDaysSelected() {\n return selectedDays.size() == 7;\n }", "private boolean isAllFieldsAreFull(){\n\t\tboolean lack = true;\n\t\tif (userNameField.getText().equals(\"\")) {\n\t\t\tlackUserNameLabel.setVisible(true);\t\t\t\t\n\t\t\tlack = false;\n\t\t}\n\t\tif (userLastNameField.getText().equals(\"\")) {\n\t\t\tlackUserLastNameLabel.setVisible(true);\n\t\t\tlack = false;\n\t\t}\n\t\tif (userLoginField.getText().equals(\"\")) {\n\t\t\tlackUserLoginLabel.setText(\"to pole nie może być puste\");\n\t\t\tlackUserLoginLabel.setVisible(true);\n\t\t\tlack = false;\n\t\t}\n\t\t\n\t\tif (userPermissionsBox.getSelectionModel().getSelectedIndex() <= -1) {\n\t\t\tlackUserPermissionsLabel.setVisible(true);\n\t\t\tlack = false;\n\t\t}\n\t\t\n\t\tif ((newUser) || (changePassword)){\n\t\t\tif (userPasswordField.getText().equals(\"\")) {\n\t\t\t\tlackUserPasswordLabel.setVisible(true);\n\t\t\t\tlack = false;\n\t\t\t}\n\t\t\tif (userConfirmPasswordField.getText().equals(\"\")) {\n\t\t\t\tlackUserConfirmPasswordLabel.setText(\"to pole nie może być puste\");\n\t\t\t\tlackUserConfirmPasswordLabel.setVisible(true);\n\t\t\t\tlack = false;\n\t\t\t}\n\t\t}\n\t\treturn lack;\n\t}", "boolean getCheckState();", "public boolean isGoalState() {\n boolean isGoal = false;\r\n if(currjug1 == goal || currjug2 == goal)\r\n isGoal = true;\r\n return isGoal;\r\n }", "private boolean check()\n\t{\n\t\tComponent[] comp = contentPanel.getComponents();\n\t\tint check=0;\n\t\tfor(Component c:comp)\n\t\t{\n\t\t\tif(c instanceof JTextField)\n\t\t\t{\n\t\t\t\tif(((JTextField)c).getText().trim().equals(\"\"))\n\t\t\t\t\tcheck++;\n\t\t\t}\n\t\t\t\t\n\t\t}\n\t\t\n\t\treturn check==0 ? true : false;\n\t}", "private static Boolean isFilled() \n\t{\n\t\tfor(Cells[] cellList : board)\n\t\t{\n\t\t\tfor(Cells cell : cellList)\n\t\t\t{\n\t\t\t\tif(cell==Cells.VOID)\n\t\t\t\t{\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "@Override\n public boolean isDirty() {\n\n boolean dirty = false ;\n String tmp = null ;\n\n if( this.useProxy != super.useProxyCB.isSelected() ) {\n dirty = true ;\n }\n if( !dirty ) {\n tmp = super.proxyHostTF.getText() ;\n dirty = !UIHelper.isEqual( this.proxyHost, tmp ) ;\n }\n if( !dirty ) {\n tmp = super.proxyPortTF.getText() ;\n dirty = !UIHelper.isEqual( String.valueOf( this.proxyPort ), tmp ) ;\n }\n if( !dirty ) {\n if( this.useAuth != super.useProxyAuthCB.isSelected() ) {\n dirty = true ;\n }\n }\n if( !dirty ) {\n tmp = super.userIdTF.getText() ;\n dirty = !UIHelper.isEqual( this.userName, tmp ) ;\n }\n if( !dirty ) {\n tmp = new String( super.passwordTF.getPassword() ) ;\n dirty = !UIHelper.isEqual( String.valueOf( this.password ), tmp ) ;\n }\n\n return dirty ;\n }", "public boolean isSetBold()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(BOLD$4) != 0;\n }\n }", "private boolean isAllRevealed() {\n for (int row = 0; row < minefield.getRows(); row++) {\n for (int col = 0; col < minefield.getCols(); col++) {\n if (!isRevealed(getTd(row, col))\n && !minefield.isMine(row, col)) {\n return false;\n }\n }\n }\n return true;\n }", "private boolean checkMultiplePlaneEdit(){\r\n\t\tboolean flag=false;\r\n\t\tfor(UiAirplaneModel model:uiAirplaneModel.getAirplaneList()){\r\n\t\t\tif(model.isInputDisplayItem()){\r\n\t\t\t\tflag=true;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn flag;\r\n\t}", "boolean hasActive();", "private boolean checkSetOfFeatures() {\n\t\t\n\t\tif ((sentimentRelatedFeatures.isSelected() && numberOfSentimentRelatedFeatures==0) ||\n\t\t\t(punctuationFeatures.isSelected() && numberOfPunctuationFeatures==0) ||\n\t\t\t(stylisticFeatures.isSelected() && numberOfStylisticFeatures==0) ||\n\t\t\t(semanticFeatures.isSelected() && numberOfSemanticFeatures==0) ||\n\t\t\t(unigramFeatures.isSelected() && numberOfUnigramFeatures==0) ||\n\t\t\t(topWordsFeatures.isSelected() && numberOfTopWordsFeatures==0) ||\n\t\t\t(patternFeatures.isSelected() && numberOfPatternFeatures==0))\n\t\t\t\n\t\t\t{\n\t\t\tboolean test = ConfirmBox.display(\"Attention\", \"You have chosen to use one or more set(s) of features, however you have not set the corresponding parameters yet. Are you sure you want to continue?\");\n\t\t\tif (test==false) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif ((!sentimentRelatedFeatures.isSelected() && numberOfSentimentRelatedFeatures!=0) ||\n\t\t\t(!punctuationFeatures.isSelected() && numberOfPunctuationFeatures!=0) ||\n\t\t\t(!stylisticFeatures.isSelected() && numberOfStylisticFeatures!=0) ||\n\t\t\t(!semanticFeatures.isSelected() && numberOfSemanticFeatures!=0) ||\n\t\t\t(!unigramFeatures.isSelected() && numberOfUnigramFeatures!=0) ||\n\t\t\t(!topWordsFeatures.isSelected() && numberOfTopWordsFeatures!=0) ||\n\t\t\t(!patternFeatures.isSelected() && numberOfPatternFeatures!=0))\n\t\t\t\t\n\t\t\t\t{\n\t\t\t\tboolean test = ConfirmBox.display(\"Attention\", \"You have customized one or more set(s) of features, however you have not selected this (these) set(s) to be extracted. Are you sure you want to continue?\");\n\t\t\t\tif (test==false) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\n\t\treturn true;\n\t\t\n\t}", "public boolean isAnswered() {\n\t\tfor (boolean b : this.checked) {\n\t\t\tif (b)\n\t\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean isFilled() {\n return(!this.getText().trim().equals(\"\"));\n }", "@Override\r\n\tpublic boolean isFocused() {\n\t\treturn false;\r\n\t}", "private boolean validatePlayerSettings(){\n if(playerAmount > 0) return true; //TODO: entfernen\n HashSet<Integer> hash = new HashSet<>();\n\n // check if alle colors different\n if (hash.add(P1color.getSelectedIndex()) && hash.add(P2color.getSelectedIndex()) && hash.add(P3color.getSelectedIndex())\n && hash.add(P4color.getSelectedIndex()) && hash.add(P5color.getSelectedIndex()) && hash.add(P6color.getSelectedIndex())){\n\n // check if all names different\n hash.clear();\n HashSet<String> hash2 = new HashSet<>();\n if (hash2.add(P1text.getText()) && hash2.add(P2text.getText()) && hash2.add(P3text.getText())\n && hash2.add(P4text.getText()) && hash2.add(P5text.getText()) && hash2.add(P6text.getText())){\n\n // check if all names are not empty\n hash2.clear();\n if (P1text.getText() != \"\" && P2text.getText() != \"\" && P3text.getText() != \"\" && P4text.getText() != \"\"\n && P5text.getText() != \"\" && P6text.getText() != \"\"){\n\n return true;\n }\n }\n }\n return false;\n }", "boolean hasCurrentStateTime();", "private boolean allCellsCorrect() {\n for (int i = 0;i < btArray.length;i++) {\n for (int j = 0;j < btArray[0].length;j++) {\n int cellState = mainField.getCellState(i,j);\n // if the cell has a mine\n if (mainField.getValue(i,j) == -1) {\n // tests to see if it isn't marked\n if (cellState != mainField.MARKED) {\n // returns false if it isn't, because it should be marked if the game is complete\n return false;\n }\n }\n // if it isn't a mine\n else {\n // tests to see if the cell is marked\n if (cellState == mainField.MARKED) {\n // returns false, because this nonmine cell should not be marked if the game is complete\n return false;\n }\n }\n }\n }\n return true;\n }", "private boolean fieldsFilled(){\n return !editTextEmail.getText().toString().isEmpty() &&\n !editTextPassword.getText().toString().isEmpty();\n }", "@Override\n public boolean hasTooltip() {\n AbstractComponentState state = getState();\n if (state.description != null && !state.description.equals(\"\")) {\n return true;\n } else if (state.errorMessage != null && !state.errorMessage.equals(\"\")) {\n return true;\n } else {\n return false;\n }\n }", "protected boolean isAllRequiredTxtFieldsFilled() {\r\n JTextField[] txtFields = {\r\n txtFieldFirstName, txtFieldLastName,\r\n txtFieldDateOfBirth, txtFieldIBAN,\r\n txtFieldState, txtFieldHouseNumber,\r\n txtFieldPostcode, txtFieldLocation,\r\n txtFieldCountry, txtFieldState\r\n };\r\n\r\n for (JTextField txtField : txtFields) {\r\n if (txtField.getText().equals(\"\")) {\r\n return false;\r\n }\r\n }\r\n\r\n return true;\r\n }", "private boolean checkWord() {\n \tboolean bl = false;\n \tfor (int i = 0; i < word.length(); i++) {\n \t\tif (letter == word.charAt(i) && list[i] != true) {\n \t\t\tlist[i] = true;\n \t\t\tnumberOfSymbols++;\n \t\t\tbl = true;\n \t\t}\n \t}\n \treturn bl;\n }" ]
[ "0.61770177", "0.61770177", "0.61770177", "0.61770177", "0.61770177", "0.61770177", "0.61770177", "0.61770177", "0.6139929", "0.60596544", "0.60445964", "0.59783727", "0.5934124", "0.5922894", "0.5808953", "0.5803094", "0.57968545", "0.5795868", "0.5781139", "0.57705843", "0.5765537", "0.57429177", "0.573698", "0.57140136", "0.5709462", "0.56871766", "0.56816", "0.56636196", "0.5638651", "0.5638651", "0.5635183", "0.56304747", "0.5624718", "0.56246966", "0.56065387", "0.56023526", "0.5596457", "0.55735177", "0.55705976", "0.556148", "0.55596125", "0.55504084", "0.555018", "0.5550074", "0.55345243", "0.55345243", "0.5529518", "0.5511265", "0.55109745", "0.5504181", "0.5498849", "0.5488745", "0.5488745", "0.54883724", "0.5487518", "0.54836786", "0.5475984", "0.54593074", "0.54476243", "0.54465383", "0.54320365", "0.5431916", "0.54264617", "0.5425829", "0.54018444", "0.53971404", "0.53904337", "0.538764", "0.53848904", "0.53821814", "0.5380286", "0.5377665", "0.53362375", "0.53337973", "0.53242314", "0.5320321", "0.53161216", "0.53096503", "0.53096503", "0.53086853", "0.53043073", "0.5295503", "0.5294168", "0.5286087", "0.52777135", "0.52725345", "0.5267868", "0.52672917", "0.52625626", "0.5246458", "0.5245332", "0.52417326", "0.52407604", "0.5233031", "0.5232577", "0.52288544", "0.52249014", "0.5223251", "0.52229017", "0.5219611" ]
0.76273525
0
Created by adamlee on 2015/8/21.
public interface ViewAttacher<V extends View> { void attachView(V v); void detachView(V v); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "private void poetries() {\n\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n\tprotected void interr() {\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void mo38117a() {\n }", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "private void init() {\n\n\t}", "@Override\n public void init() {\n }", "private void kk12() {\n\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n void init() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "protected boolean func_70814_o() { return true; }", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "private void m50366E() {\n }", "@Override\n protected void initialize() \n {\n \n }", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "private void strin() {\n\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\n public void init() {}", "@Override\n protected void init() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\r\n\tpublic void init() {}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tpublic void init() {\n\t}", "@Override\n\tpublic void init()\n\t{\n\n\t}", "@Override\n public void initialize() { \n }", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n public int describeContents() { return 0; }", "private void init() {\n\n\n\n }", "@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}", "public void mo21877s() {\n }", "public void mo6081a() {\n }", "public void mo55254a() {\n }", "Constructor() {\r\n\t\t \r\n\t }", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}" ]
[ "0.6176907", "0.6012124", "0.6007512", "0.5988195", "0.5873079", "0.5873079", "0.58451885", "0.5831213", "0.5779359", "0.5769865", "0.57649106", "0.5751498", "0.5738817", "0.57383794", "0.57197315", "0.57055146", "0.5690721", "0.5687197", "0.5667153", "0.5666741", "0.56559503", "0.56400794", "0.56400794", "0.56400794", "0.56400794", "0.56400794", "0.563831", "0.5631697", "0.5630025", "0.5622525", "0.56156784", "0.56071913", "0.55961406", "0.5577327", "0.5577327", "0.5561191", "0.5560035", "0.5551922", "0.5550944", "0.55480075", "0.55468905", "0.55468905", "0.553368", "0.5531825", "0.5525997", "0.5525997", "0.5525997", "0.5515723", "0.55140245", "0.5513881", "0.5510836", "0.55002487", "0.55002487", "0.5499804", "0.5496713", "0.54928017", "0.54917693", "0.54917693", "0.54917693", "0.54917693", "0.54917693", "0.54917693", "0.5490372", "0.5490372", "0.5490372", "0.548928", "0.5473992", "0.5463205", "0.54623646", "0.54607075", "0.54607075", "0.54607075", "0.5447404", "0.5443921", "0.54404974", "0.543895", "0.543895", "0.543895", "0.543895", "0.543895", "0.543895", "0.543895", "0.5414559", "0.54142195", "0.5411352", "0.54054284", "0.54037875", "0.5403473", "0.5399614", "0.53900725", "0.5386098", "0.5369301", "0.5354503", "0.5350309", "0.5345589", "0.53357965", "0.53299844", "0.53298503", "0.5326111", "0.5326111", "0.5314198" ]
0.0
-1
BHung find trans By Id
Transaction findTransactionById(Long id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Transaction getById(String id) throws Exception;", "Transaction get(String id) throws Exception;", "Transaction getTransctionByTxId(String txId);", "public Optional<Transaction> findTransactionById(int id);", "public Transaction getTransactionById(Integer id) throws MiddlewareQueryException;", "@Override\n\tpublic WxOrderTrans selectOrderTrans(Integer id) {\n\t\treturn orderMapper.selectOrderTrans(id);\n\t}", "@GetMapping(\"/rest/{id}\")\n\t\tpublic @ResponseBody Optional<Transaction> findTranscationRest(@PathVariable(\"id\") Long transactionId) {\n\t\t\tUserDetails user = (UserDetails) SecurityContextHolder.getContext()\n\t\t\t\t\t.getAuthentication().getPrincipal();\n\t\t\tString username = user.getUsername();\n\t\t\tUser currentUser = userRepo.findByUsername(username);\n\t\t\tList<Transaction> transactions = traRepo.findByUser(currentUser);\n\t\t\tfor(int i = 0; i < transactions.size(); i++) {\n\t\t\t\tif(transactions.get(i).getId() == transactionId) {\n\t\t\t\t\ttransactionId = transactions.get(i).getId();\n\t\t\t\t\treturn traRepo.findById(transactionId);\n\t\t\t\t\t\n\t\t\t\t} \n\t\t\t}\n\t\t\treturn Optional.empty();\n\t\t}", "Transaction selectByPrimaryKey(Long id);", "public void findbyid() throws Exception {\n try {\n Con_contadorDAO con_contadorDAO = getCon_contadorDAO();\n List<Con_contadorT> listTemp = con_contadorDAO.getByPK( con_contadorT);\n\n con_contadorT= listTemp.size()>0?listTemp.get(0):new Con_contadorT();\n \n } catch (Exception e) {\n e.printStackTrace();\n setMsg(\"Falha ao realizar consulta!\");\t\n } finally {\n\tclose();\n }\n }", "@Override\n\tpublic Transaction findTransactionById(int id) {\n\t\treturn null;\n\t}", "@Override\n\t\tpublic AccountTransaction findById(int id) {\n\t\t\treturn null;\n\t\t}", "BusinessTransaction get(String tenantId, String id);", "public Transaction getTransaction(int id){\n return accSystem.get(id);\n }", "public Account getAccountByID(int id)//This function is for getting account for transfering amount\r\n {\r\n return this.ac.stream().filter(ac1 -> ac1.getAccId()==id).findFirst().orElse(null);\r\n }", "CmstTransfdevice selectByPrimaryKey(String objId);", "@GetMapping(\"/{id}\")\n\tpublic Transaction getTransactionById(@PathVariable Long id) {\n\t\tTransaction transaction = null;\n\t\t\n\t\ttry {\n\t\t\ttransaction = transactionService.getTransactionById(id);\n\t\t}\n\t\tcatch (TransactionNotFoundException e) {\n\t\t\tthrow new TransactionNotFoundException(id);\n\t\t}\n\t\tcatch (UserDoesNotOwnResourceException e) {\n\t\t\tthrow new UserDoesNotOwnResourceException();\n\t\t}\n\t\t\n\t\treturn transaction;\n\t}", "@Override\r\n\t@Transactional\r\n\tpublic eventuales findById(Integer id) {\n\t\treturn dao.findById(id).get();\r\n\t}", "Tourst selectByPrimaryKey(String id);", "PaymentTrade selectByPrimaryKey(String id);", "Contract findById(int id);", "public Transaction getTransactionById(int id) throws SQLException {\n String sql = \"SELECT * FROM LabStore.Transaction_Detail WHERE id = ?\";\n Transaction transaction = new Transaction();\n\n try (Connection conn = database.getConnection();\n PreparedStatement preStmt = conn.prepareStatement(sql)) {\n preStmt.setInt(1, id);\n try (ResultSet rs = preStmt.executeQuery()) {\n while (rs.next()) {\n transaction.setId(id);\n transaction.setUser(userDbManager.getUser(rs.getInt(\"uId\")));\n transaction.setPurchaseDetail(purchaseDetailDbManager\n .getPurchaseDetailById(rs.getInt(\"pdId\")));\n transaction.setCount(rs.getInt(\"count\"));\n transaction.setTime(rs.getTimestamp(\"time\"));\n }\n }\n }\n\n return transaction;\n }", "public Trasllat getById(Long id) throws InfrastructureException {\r\n\t\tTrasllat trasllat;\r\n\t\ttry {\r\n\t\t\tlogger.debug(\"getById ini\");\r\n\t\t\ttrasllat = (Trasllat)getHibernateTemplate().load(Trasllat.class, id);\t\t\t\r\n\t\t} catch (HibernateException ex) {\r\n\t\t\tlogger.error(\"getById failed\", ex);\r\n\t\t\tthrow new InfrastructureException(ex);\r\n\t\t}\r\n\t\tlogger.debug(\"getById fin\");\r\n\t\treturn trasllat;\r\n\t}", "T findById(ID id) ;", "@Override\n public Venda Buscar(int id) {\n Venda v;\n\n v = em.find(Venda.class, id);\n\n// transaction.commit();\n return v;\n }", "NjOrderWork2 selectByPrimaryKey(String id);", "public static ClientGateway findByID(int id)\n {\n Session s = NewHibernateUtil.getSessionFactory().openSession();\n Transaction tx = null;\n try{\n tx = s.beginTransaction();\n List clients = s.createQuery(\"FROM ClientGateway\").list(); \n System.out.println(\"ceva\");\n for (Iterator iterator = clients.iterator(); iterator.hasNext();)\n {\n ClientGateway client; \n client = (ClientGateway) iterator.next();\n if(client.getCid() == id) return client;\n }\n tx.commit();\n }catch (HibernateException e) {\n if (tx!=null) tx.rollback();\n }finally {\n s.close(); \n }\n return null;\n }", "@RequestMapping(value = \"/translations/{id}\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<Translation> getTranslation(@PathVariable Long id) {\n log.debug(\"REST request to get Translation : {}\", id);\n Translation translation = translationRepository.findOne(id);\n return Optional.ofNullable(translation)\n .map(result -> new ResponseEntity<>(\n result,\n HttpStatus.OK))\n .orElse(new ResponseEntity<>(HttpStatus.NOT_FOUND));\n }", "DangerMerchant selectByPrimaryKey(Integer id);", "public void findbyid() throws Exception {\n try {\n Ume_unidade_medidaDAO ume_unidade_medidaDAO = getUme_unidade_medidaDAO();\n List<Ume_unidade_medidaT> listTemp = ume_unidade_medidaDAO.getByPK( ume_unidade_medidaT);\t \n\n ume_unidade_medidaT= listTemp.size()>0?listTemp.get(0):new Ume_unidade_medidaT();\n \n } catch (Exception e) {\n e.printStackTrace();\n setMsg(\"Falha ao realizar consulta!\");\t\n } finally {\n\tclose();\n }\n }", "@Transactional(readOnly = true) \n public Tbc_fazenda findOne(Long id) {\n log.debug(\"Request to get Tbc_fazenda : {}\", id);\n Tbc_fazenda tbc_fazenda = tbc_fazendaRepository.findOne(id);\n return tbc_fazenda;\n }", "@Override\n\tpublic Optional<Translator> findById(UUID id) {\n\t\treturn findById(id);\n\t}", "@GET\n @Path(\"{id}\")\n @Produces(\"application/hal+json\")\n public Response get(@PathParam(\"regNo\") String regNo, @PathParam(\"accountNo\") String accountNo, @PathParam(\"id\") String id) {\n Optional<Transaction> transaction = admin.findTransaction(regNo, accountNo, id);\n if (transaction.isPresent()) {\n CacheControl cc = new CacheControl();\n cc.setMaxAge(24 * 60 * 60);\n return Response.ok(entityBuilder.buildTransactionJson(transaction.get(), uriInfo)).cacheControl(cc).build();\n } else {\n return Response.status(Response.Status.NOT_FOUND).build();\n }\n }", "TempletLink selectByPrimaryKey(String id);", "@Override\n public int getTotalBarangById(String idTransaksi) {\n int totalBarang = 0;\n\n try {\n String query = \"SELECT SUM(b.jml_barang) AS \\\"total_barang\\\" FROM transaksi a INNER JOIN detail_transaksi b ON a.id = b.id_transaksi\";\n query += \" WHERE a.id = ?\";\n\n PreparedStatement ps = Koneksi().prepareStatement(query);\n ps.setString(1, idTransaksi);\n ResultSet rs = ps.executeQuery();\n\n if (rs.next()) {\n totalBarang = rs.getInt(1);\n }\n } catch (SQLException se) {\n se.printStackTrace();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n return totalBarang;\n }", "@Override\n //@Transactional(readOnly = true)\n public ProjectTransactionRecordDTO findOne(Long id) {\n log.debug(\"Request to get ProjectTransactionRecord : {}\", id);\n ProjectTransactionRecord projectTransactionRecord = projectTransactionRecordRepository.findOne(id);\n return projectTransactionRecordMapper.toDto(projectTransactionRecord);\n }", "public Buku findById(Integer idBuku) throws SQLException {\n\r\n KoneksiDatabase koneksiDB = new KoneksiDatabase();\r\n DataSource dataSource = koneksiDB.getDataSource();\r\n Connection koneksi = dataSource.getConnection();\r\n\r\n String sql = \"select id,judul_buku,tahun_terbit,pengarang,jumlah_buku from perpus.buku where id = ?\";\r\n PreparedStatement statement = koneksi.prepareStatement(sql);\r\n statement.setInt(1, idBuku);\r\n ResultSet resultSet = statement.executeQuery();\r\n Buku buku = new Buku();\r\n\r\n if (resultSet.next()) {\r\n// System.out.println(resultSet.getInt(\"id\"));\r\n //mengambil data dari database\r\n\r\n buku.setId(resultSet.getInt(\"id\"));\r\n buku.setJudulBuku(resultSet.getString(\"judul_buku\"));\r\n buku.setTahunTerbit(resultSet.getInt(\"tahun_terbit\"));\r\n buku.setPengarang(resultSet.getString(\"pengarang\"));\r\n buku.setJumlahBuku(resultSet.getInt(\"jumlah_buku\"));\r\n\r\n// listBuku.add(buku); //menyimpan ke variabel listBuku\r\n }\r\n\r\n resultSet.close();\r\n statement.close();\r\n koneksi.close();\r\n\r\n return buku;\r\n }", "@Override\n\tpublic Translator findByIdAndDeletedAt(UUID id, Timestamp isDelete) {\n\t\treturn findByIdAndDeletedAt(id, isDelete);\n\t}", "Caiwu selectByPrimaryKey(Integer id);", "Ltsprojectpo selectByPrimaryKey(Long id);", "public TransactionItem find(Long id) {\n return (TransactionItem)find(TransactionItem.class, id);\n }", "public Trasllat findByTraza(Long idTraza) throws InfrastructureException {\r\n\t\tList col;\r\n\t\tTrasllat trasllat = null;\r\n\t\ttry {\r\n\t\t\tlogger.debug(\"findByTraza ini\");\r\n\t\t\tString q = \"from Trasllat as tdi where tdi.traza.id=\"+idTraza;\r\n\t\t\tcol = getHibernateTemplate().find(q);\r\n\t\t\tif(col!= null && col.size()>0){\r\n\t\t\t\ttrasllat = (Trasllat)col.get(0);\r\n\t\t\t}\r\n\t\t} catch (HibernateException ex) {\r\n\t\t\tlogger.error(\"findByTraza failed\", ex);\r\n\t\t\tthrow new InfrastructureException(ex);\r\n\t\t}\r\n\t\tlogger.debug(\"findByTraza fin\");\r\n\t\treturn trasllat;\r\n\t}", "@Transactional(readOnly = true)\n DataRistorante getByID(String id);", "R_dept_trade selectByPrimaryKey(Integer id);", "@Transactional(readOnly = true)\n public Optional<OrderTransactionDTO> findOne(Long id) {\n log.debug(\"Request to get OrderTransaction : {}\", id);\n return orderTransactionRepository.findById(id)\n .map(orderTransactionMapper::toDto);\n }", "Payment selectByPrimaryKey(Long id);", "GoodsPo selectByPrimaryKey(Long id);", "public List<TransExtAttr> getByTransID(String transid);", "@Override\r\n public Assunto buscarId(int id) {\r\n EntityManager em = PersistenceUtil.getEntityManager();\r\n Query query = em.createQuery(\"SELECT a FROM Assunto a WHERE a.id =:id\");\r\n query.setParameter(\"id\", id);\r\n \r\n List<Assunto> assunto = query.getResultList();\r\n if(assunto != null && assunto.size() > 0)\r\n return assunto.get(0);\r\n return null;\r\n }", "@Override\n\tpublic TransferCompra detalleCompra(int id) {\n\t\t\n\t\t//Creamos la Transaccion\n\t\tTransactionManager.getInstance().nuevaTransaccion();\n\t\tTransactionManager.getInstance().getTransaccion().start();\n\t\t\n\t\t//Hacemos Commit \n\t\tTransferCompra t = FactoriaDAO.getInstance().createDAOCompra().searchId(id);\n\t\tTransactionManager.getInstance().getTransaccion().commit();\n\t\t\n\t\t//Finalmente cerramos la Transaccion\n\t\tTransactionManager.getInstance().eliminaTransaccion();\n\t\treturn t;\n\t}", "public TransactionObj getTransaction(String sID){\n\t\treturn hmTransaction.get(sID);\n\t}", "public Conge find( Integer idConge ) ;", "@Override\n public long getTotalHargaById(String idTransaksi) {\n long totalHarga = 0;\n\n try {\n String query = \"SELECT SUM(b.jml_barang * c.harga) AS \\\"Total Harga\\\" FROM transaksi a INNER JOIN detail_transaksi b ON a.id = b.id_transaksi LEFT JOIN barang c ON b.id_barang = c.id\";\n query += \" WHERE a.id = ?\";\n\n PreparedStatement ps = Koneksi().prepareStatement(query);\n ps.setString(1, idTransaksi);\n ResultSet rs = ps.executeQuery();\n\n if (rs.next()) {\n totalHarga = rs.getInt(1);\n }\n } catch (SQLException se) {\n se.printStackTrace();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n return totalHarga;\n }", "DetalleVenta buscarDetalleVentaPorId(Long id) throws Exception;", "public ApplyInvite findById(Object id);", "public Order findOne(Integer id) {\r\n\t\tlog.info(\"Request to finde Order : \" + id);\r\n\t\treturn orders.stream().filter(order -> order.getOrderId().equals(id)).findFirst().get();\r\n\t}", "CE findById(ID id);", "@Override\r\n\t@Transactional\r\n\tpublic FmtEstado list(Long id){\r\n\t\ttry{\r\n\t\t\tString sql = \"select \"+FmtEstado.getColumnNames()\r\n\t\t\t\t\t + \"from FMT_ESTADO \"\r\n\t\t\t\t\t + \"where estacons = :id \";\r\n\t\t\t\t\t\t\r\n\t\t\tQuery query = getSession().createSQLQuery(sql)\r\n\t\t\t\t\t\t .addEntity(FmtEstado.class)\t\t\t\t\t\r\n\t\t\t\t\t .setParameter(\"id\", id);\r\n\t\t\treturn (FmtEstado)query.uniqueResult();\r\n\t\t}catch(Exception e){\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "WayShopCateRoot selectByPrimaryKey(Integer id);", "CGcontractCredit selectByPrimaryKey(Integer id);", "PayLogInfoPo selectByPrimaryKey(Long id);", "public Usuario getUsuarioByID (int idUsuario) {\n Usuario usuario = null;\n Transaction trns = null;\n Session session = HibernateUtil.getSessionFactory().openSession();\n try {\n trns = session.beginTransaction();\n String queryString = \"from Usuario where id_usuario = :idToFind\";\n Query query = session.createQuery(queryString);\n query.setInteger(\"idToFind\", idUsuario);\n usuario = (Usuario) query.uniqueResult();\n } catch (RuntimeException e){\n e.printStackTrace();\n } finally {\n session.flush();\n session.close();\n } \n\n return usuario;\n }", "EtpBase selectByPrimaryKey(String id);", "public SfMaterialsTransfer selectByPrimaryKey(BigDecimal transferId) {\n // TCJLODO Auto-generated method stub\r\n return (SfMaterialsTransfer) getSqlMapClientTemplate().queryForObject(\"com.ufgov.zc.server.sf.dao.SfMaterialsTransferMapper.selectByPrimaryKey\",\r\n transferId);\r\n }", "RespuestaRest<ParqueaderoEntidad> consultar(String id);", "public static ru.terralink.mvideo.sap.Orders find(long id)\n {\n String intervalName = null;\n if(com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.isEnabled)\n {\n intervalName = \"Orders.find()\";\n com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.getInstance().startInterval(intervalName, com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.PersistenceRead);\n }\n try\n {\n Object[] keys = new Object[]{id};\n return (ru.terralink.mvideo.sap.Orders)(DELEGATE.findEntityWithKeys(keys));\n }\n finally\n {\n if(com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.isEnabled)\n {\n com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.getInstance().stopInterval(intervalName);\n }\n }\n }", "@Override\n\tpublic Translator getOne(UUID id) {\n\t\treturn null;\n\t}", "List<Workflow> findByIdTask( int nIdTask );", "T getById(PK id);", "@Transactional(readOnly = true)\n public List<RoworderDTO> findBySOrderId(Long id) {\n\n Object[] plop=roworderRepository.findAll().stream()\n .map(roworderMapper::toDto).toArray();\n ArrayList<RoworderDTO> sorders= new ArrayList<RoworderDTO>();\n log.debug(\"findBySOrderId id : {}\",id);\n log.debug(\"findBySOrderId plop.length : {}\",plop.length);\n for (int i=0;i< plop.length;i++){\n log.debug(\"findBySOrderId plop[i].id : {}\",plop.length);\n log.debug(\"findBySOrderId plop[i].orderid : {}\",((RoworderDTO)plop[i]).getSorderId());\n log.debug(\"findBySOrderId plop[i].tostring : {}\",((RoworderDTO)plop[i]).toString());\n log.debug(\"findBySOrderId if : {}\",id.equals(((RoworderDTO)plop[i]).getSorderId()));\n if(id.equals(((RoworderDTO)plop[i]).getSorderId())){\n log.debug(\"plop : {}\",(RoworderDTO) plop[i]);\n sorders.add((RoworderDTO) plop[i]);\n }\n }\n return sorders;\n }", "Order getByID(String id);", "BusinessRepayment selectByPrimaryKey(String id);", "public static Comentario buscar(Integer id)\n {\n String idComentario = id.toString();\n Session sessionRecheio;\n sessionRecheio = HibernateUtil.getSession();\n Transaction tr = sessionRecheio.beginTransaction();\n String hql = \"from Comentario where u.id='\"+idComentario+\"'\";\n Comentario comentario = (Comentario)sessionRecheio.createQuery(hql).uniqueResult();\n tr.commit();\n return comentario;\n }", "public <T> PersistableDataObject<T> queryById(final Serializable id) {\n PersistableDataObject<T> retVal = txTemplate\n .execute(new TransactionCallback<PersistableDataObject<T>>() {\n @Override\n @SuppressWarnings(\"unchecked\")\n public PersistableDataObject<T> doInTransaction(\n TransactionStatus status) {\n return (PersistableDataObject<T>) getHibernateTemplate()\n .get(daoClass, id);\n }\n });\n return retVal;\n }", "Abum selectByPrimaryKey(String id);", "@Override\n\tpublic Langues find(int id) {\n\t\tLangues langue = new Langues();\n\t\tString query = \"SELECT * FROM langues WHERE ID = ? \";\n\t\ttry {\n\t\t\tjava.sql.PreparedStatement statement = this.connect.prepareStatement(query);\n\t\t\tstatement.setInt(1, id);\n\t\t\tResultSet result = statement.executeQuery();\n\n\t\t\tif (result.first()) {\n\t\t\t\t\n\t\t\t\tlangue = new Langues(id, result.getString(\"Langue\"),result.getString(\"Iso6391\"));\n\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn langue;\n\t}", "public T find(int id) {\n\t \treturn getEntityManager().find(getEntityClass(), id);\n\t }", "public void findbyid() throws Exception {\n try {\n IPi_per_intDAO pi_per_intDAO = getPi_per_intDAO();\n List<Pi_per_intT> listTemp = pi_per_intDAO.getByPK(pi_per_intT);\n\n pi_per_intT = listTemp.size() > 0 ? listTemp.get(0) : new Pi_per_intT();\n\n } catch (Exception e) {\n easyLogger.error(e.getMessage(), e);\n setMsg(ERROR, \"Falha ao realizar consulta!\");\n } finally {\n close();\n }\n }", "public Treatment consultarTratamiento(int id){\n Treatment tratamiento = null;\n String[] campos = {\"_id\",\"fecha\",\"tipoTratamiento\",\"hora\"};\n String[] args = {Integer.toString(id)};\n Cursor c = db.query(\"tratamiento\",campos,\"_id=?\",args,null,null,null);\n if(c.moveToFirst()){\n\n do{\n tratamiento = new Treatment(c.getInt(0),c.getString(1),c.getString(2));\n tratamiento.setHora(c.getString(3));\n }while(c.moveToNext());\n\n }\n return tratamiento;\n }", "public Voto find(int id ) { \n\t\treturn em.find(Voto.class, id);\n\t}", "@Transactional\n public CourseDTO findById(int id) {\n return courseMapper.mapFromCoursetoCourseDTO(courseDAO.findById(id).get());\n }", "public TransferCompra iniciarCompra(int id){\n\t\t\n\t\t//Creamos una nueva transacción y la iniciamos.\n\t\tTransactionManager.getInstance().nuevaTransaccion();\n\t\tTransactionManager.getInstance().getTransaccion().start();\n\t\t\n\t\t//Montamos los Transfer\n\t\tTransferCompra tCompra = null;\n\t\tTransferCliente tCliente = FactoriaDAO.getInstance().createDAOCliente().searchId(id);\n\t\t\n\t\t//Si existe el cliente y esta activo\n\t\tif(tCliente != null && tCliente.getActivo())\n\t\t\ttCompra = new TransferCompra((int)tCliente.getId(), 0, true);\n\t\t\n\t\t//Finalmente cerramos la transación\n\t\tTransactionManager.getInstance().eliminaTransaccion();\n\t\t\n\t\treturn tCompra;\n\t}", "public CleaningTransaction findByItemId(Long id);", "@Override\n public Menu findByLocale(int idLocale) {\n Menu ret;\n String selectQuery = \"SELECT V FROM Menu V WHERE V.idLocale = ?1 \";\n Query searchById = em.createQuery(selectQuery);\n searchById.setParameter(1, idLocale);\n try{\n ret = (Menu) searchById.getSingleResult();\n }\n catch (Exception e){\n System.out.println(\"[Menu Facade] errore, nessun menu trovato per il locale\");\n ret = null;\n }\n return ret;\n }", "public Ruta findByPrimaryKey(int idRuta) throws RutaDaoException;", "TCpySpouse selectByPrimaryKey(Integer id);", "Movimiento selectByPrimaryKey(Integer idMovCta);", "public <T> PersistableDataObject<T> queryById(final PluginDataObject id) {\n PersistableDataObject<T> retVal = txTemplate\n .execute(new TransactionCallback<PersistableDataObject<T>>() {\n @Override\n @SuppressWarnings(\"unchecked\")\n public PersistableDataObject<T> doInTransaction(\n TransactionStatus status) {\n DetachedCriteria criteria = DetachedCriteria.forClass(\n id.getClass())\n .add(Property.forName(\"dataURI\").eq(\n id.getDataURI()));\n List<?> list = getHibernateTemplate().findByCriteria(\n criteria);\n if (list.size() > 0) {\n return (PluginDataObject) list.get(0);\n } else {\n return null;\n }\n }\n });\n return retVal;\n }", "@Override\n @Transactional(readOnly = true)\n public SintomaDTO findOne(Long id) {\n log.debug(\"Request to get Sintoma : {}\", id);\n Sintoma sintoma = sintomaRepository.findOne(id);\n return sintomaMapper.toDto(sintoma);\n }", "public IncomingReport find(Integer id) throws DAOException;", "public T getReultById(int id){\n return result_now.get(id);\n }", "MessageRelation selectByPrimaryKey(Long id);", "public Invoice findById(long id);", "public String getTransId() {\n\t\treturn transId;\n\t}", "Prueba selectByPrimaryKey(Integer id);", "NjProductTaticsRelation selectByPrimaryKey(String id);", "ChannelAli selectByPrimaryKey(Integer id);", "IntegralExchange selectByPrimaryKey(Integer id);", "Account selectByPrimaryKey(String id);", "O obtener(PK id) throws DAOException;", "@Override\n\tpublic Web_trainee findTraineeById(int id) {\n\t\treturn getByKey(id);\n\t}" ]
[ "0.7214188", "0.6867634", "0.67671573", "0.6649355", "0.66316843", "0.6482866", "0.64682555", "0.643216", "0.63841844", "0.6354201", "0.62976706", "0.62843823", "0.6277114", "0.6216854", "0.6158842", "0.6151864", "0.6150822", "0.60969746", "0.60781", "0.60388196", "0.6026732", "0.6025039", "0.5995751", "0.59905684", "0.59895074", "0.59601825", "0.5950029", "0.5949807", "0.5931809", "0.5927157", "0.59155416", "0.58998615", "0.58833915", "0.58808684", "0.58707327", "0.5863779", "0.5858444", "0.58432996", "0.5832696", "0.58324116", "0.58321023", "0.5830092", "0.5827676", "0.58175194", "0.57962865", "0.5784689", "0.57833594", "0.57753104", "0.57737947", "0.57698685", "0.57682425", "0.5765159", "0.5764246", "0.57599187", "0.5756284", "0.57514596", "0.5750088", "0.57488245", "0.574406", "0.57385415", "0.57362497", "0.57348996", "0.57229173", "0.5721498", "0.5720762", "0.5704413", "0.57041234", "0.5699569", "0.5696185", "0.56950945", "0.5680606", "0.56723005", "0.5664681", "0.56616724", "0.5659217", "0.5654787", "0.5653156", "0.56477237", "0.56381094", "0.5635981", "0.5634117", "0.5634071", "0.562576", "0.56248844", "0.5622082", "0.562122", "0.5606166", "0.56010103", "0.5600563", "0.55867225", "0.5581539", "0.55804425", "0.5579252", "0.55766124", "0.55761236", "0.556753", "0.5566415", "0.55662507", "0.5554036", "0.5547716" ]
0.678242
2
CREATE BY ANH DUC
List<Account> findAll();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int createTable(HbaseObj t);", "private void processCreate() throws HsqlException {\n\n boolean unique = false;\n int tableType;\n boolean isTempTable = false;\n String token;\n\n session.checkAdmin();\n session.checkDDLWrite();\n session.setScripting(true);\n\n if (tokenizer.isGetThis(Token.T_GLOBAL)) {\n tokenizer.getThis(Token.T_TEMPORARY);\n\n isTempTable = true;\n } else if (tokenizer.isGetThis(Token.T_TEMP)) {\n isTempTable = true;\n } else if (tokenizer.isGetThis(Token.T_TEMPORARY)) {\n isTempTable = true;\n }\n\n token = tokenizer.getSimpleToken();\n\n switch (Token.get(token)) {\n\n // table\n case Token.MEMORY :\n tokenizer.getThis(Token.T_TABLE);\n case Token.TABLE :\n tableType = isTempTable ? Table.TEMP_TABLE\n : database.getDefaultTableType();\n\n processCreateTable(tableType);\n\n return;\n\n case Token.CACHED :\n if (isTempTable) {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n\n tokenizer.getThis(Token.T_TABLE);\n processCreateTable(Table.CACHED_TABLE);\n\n return;\n\n case Token.TEXT :\n if (isTempTable) {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n\n tokenizer.getThis(Token.T_TABLE);\n processCreateTable(Table.TEXT_TABLE);\n\n return;\n\n default :\n if (isTempTable) {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n }\n\n switch (Token.get(token)) {\n\n // other objects\n case Token.ALIAS :\n processCreateAlias();\n break;\n\n case Token.SEQUENCE :\n processCreateSequence();\n break;\n\n case Token.SCHEMA :\n session.setScripting(false);\n processCreateSchema();\n break;\n\n case Token.TRIGGER :\n processCreateTrigger();\n break;\n\n case Token.USER :\n processCreateUser();\n break;\n\n case Token.ROLE :\n database.getGranteeManager().addRole(getUserIdentifier());\n break;\n\n case Token.VIEW :\n processCreateView();\n break;\n\n // index\n case Token.UNIQUE :\n unique = true;\n\n tokenizer.getThis(Token.T_INDEX);\n\n //fall thru\n case Token.INDEX :\n processCreateIndex(unique);\n break;\n\n default : {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n }\n }", "void create(DataTableDef def) throws IOException;", "CreationData creationData();", "protected abstract D createData();", "FromTable createFromTable();", "public void create() {\n\t\t\n\t}", "public void create() {\n\t\t\tdb.execSQL(AGENCYDB_CREATE+\".separete,.import agency.txt agency\");\n\t\t\tdb.execSQL(STOPSDB_CREATE+\".separete,.import stop_times.txt stop_times\");\n\t\t\t\n\t\t\t// Add 2 agencies for testing\n\t\t\t\n\t\t\t\n\t\t\tdb.setVersion(DATABASE_VERSION);\n\t\t}", "HdbdtiModel createHdbdtiModel();", "HdbSequenceElements createHdbSequenceElements();", "DD createDD();", "TD createTD();", "public String createTable(){\r\n return \"CREATE TABLE Doctor \" +\r\n \"(idDoctor decimal primary key, \" +\r\n \"firstNameDoctor char(14), \" +\r\n \"lastNameDoctor char(14), \" +\r\n \"costPerVisit integer,\" +\r\n \"qualification varchar(32))\";\r\n }", "private void createCDAccountsTable() {\n\t\ttry {\n\t\t\tStatement stmt = this.conn.createStatement();\n\t\t\tstmt.executeUpdate(\"CREATE TABLE cdAccounts \"\n\t\t\t\t\t+ \"(id BIGINT GENERATED ALWAYS AS IDENTITY ( START WITH 3000000001, INCREMENT BY 1 ), \" + \"owner INT, \"\n\t\t\t\t\t+ \"term INT, \" + \"balance DOUBLE, \" + \"intRate DOUBLE, \"\n\t\t\t\t\t+ \"timeCreated BIGINT, \" + \"lastPaidInterest DOUBLE, \"\n\t\t\t\t\t+ \"dateOfLastPaidInterest BIGINT)\");\n\t\t\tconn.commit();\n\t\t\tSystem.out.println(\"Created table cdAccounts\");\n\t\t} catch (SQLException sqle) {\n\t\t\tSystem.err.println(\"Creation of cdAccounts table FAILED\");\n\t\t\tSystem.err.println(sqle);\n\t\t}\n\t}", "public void createDienst()\n\t{\n\t\twriteDb(\"INSERT INTO dienstleistung (Bezeichnung, Preis)\" + \"VALUES('\" + typ + \"', '\" + preis +\"')\", getWriteCon());\n\t\tcommitDbConnection(getWriteCon());\n\t}", "public void create(){}", "@Override\n\tpublic String createTable() {\n\t\t\t\treturn \"CREATE TABLE history_table_view(id number(8) primary key not null ,sqltext text, pointid varchar2(1024), type varchar2(100))\";\n\t}", "public static void createTable() {\n\n // Create statement\n Statement statement = null;\n try {\n statement = Database.getDatabase().getConnection().createStatement();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n // Attempt to create table\n try {\n statement.execute(\n \"CREATE TABLE \" + Constants.SANITATION_TABLE + \"(\" +\n \"requestID INT PRIMARY KEY GENERATED ALWAYS AS IDENTITY (START WITH 1, INCREMENT BY 1),\" +\n \"nodeID VARCHAR(100) References \" + Constants.LOCATION_TABLE + \" (nodeID), \" +\n \"priority VARCHAR(10), \" +\n \"status VARCHAR(100), \" +\n \"description VARCHAR(100), \" +\n \"requesterID INT REFERENCES \" + Constants.USERS_TABLE + \"(userID), \" +\n \"requestTime TIMESTAMP, \" +\n \"servicerID INT REFERENCES \" + Constants.USERS_TABLE + \"(userID), \" +\n \"claimedTime TIMESTAMP, \" +\n \"completedTime TIMESTAMP, \" +\n \"CONSTRAINT priority_enum CHECK (priority in ('LOW', 'MEDIUM', 'HIGH')), \" +\n \"CONSTRAINT status_enum CHECK (status in ('INCOMPLETE', 'COMPLETE')))\"\n );\n } catch (SQLException | NullPointerException e) {\n e.printStackTrace();\n }\n }", "BTable createBTable();", "@Override\r\n\tpublic void create() {\n\t\t\r\n\t}", "@Override\n\tpublic void create() {\n\t\t\n\t}", "public abstract Anuncio creaAnuncioTematico();", "long createDatabase(long actor, String nameToDisplay, long proteinDBType, long sizeInBytes, boolean bPublic, boolean bReversed, ExperimentCategory category);", "TABLE createTABLE();", "private void processCreateTable(int type) throws HsqlException {\n\n String token = tokenizer.getName();\n HsqlName schemaname =\n session.getSchemaHsqlNameForWrite(tokenizer.getLongNameFirst());\n\n database.schemaManager.checkUserTableNotExists(session, token,\n schemaname.name);\n\n boolean isnamequoted = tokenizer.wasQuotedIdentifier();\n int[] pkCols = null;\n int colIndex = 0;\n boolean constraint = false;\n Table t = newTable(type, token, isnamequoted, schemaname);\n\n tokenizer.getThis(Token.T_OPENBRACKET);\n\n while (true) {\n token = tokenizer.getString();\n\n switch (Token.get(token)) {\n\n case Token.CONSTRAINT :\n case Token.PRIMARY :\n case Token.FOREIGN :\n case Token.UNIQUE :\n case Token.CHECK :\n\n // fredt@users : check for quoted reserved words used as column names\n constraint = !tokenizer.wasQuotedIdentifier()\n && !tokenizer.wasLongName();\n }\n\n tokenizer.back();\n\n if (constraint) {\n break;\n }\n\n Column newcolumn = processCreateColumn();\n\n t.addColumn(newcolumn);\n\n if (newcolumn.isPrimaryKey()) {\n Trace.check(pkCols == null, Trace.SECOND_PRIMARY_KEY,\n newcolumn.columnName.name);\n\n pkCols = new int[]{ colIndex };\n }\n\n token = tokenizer.getSimpleToken();\n\n if (token.equals(Token.T_COMMA)) {\n colIndex++;\n\n continue;\n }\n\n if (token.equals(Token.T_CLOSEBRACKET)) {\n break;\n }\n\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n\n HsqlArrayList tempConstraints = processCreateConstraints(t,\n constraint, pkCols);\n\n if (tokenizer.isGetThis(Token.T_ON)) {\n if (!t.isTemp) {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, Token.T_ON);\n }\n\n tokenizer.getThis(Token.T_COMMIT);\n\n token = tokenizer.getSimpleToken();\n\n if (token.equals(Token.T_DELETE)) {}\n else if (token.equals(Token.T_PRESERVE)) {\n t.onCommitPreserve = true;\n } else {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n\n tokenizer.getThis(Token.T_ROWS);\n }\n\n try {\n session.commit();\n\n Constraint primaryConst = (Constraint) tempConstraints.get(0);\n\n t.createPrimaryKey(null, primaryConst.core.mainColArray, true);\n\n if (primaryConst.core.mainColArray != null) {\n if (primaryConst.constName == null) {\n primaryConst.constName = t.makeSysPKName();\n }\n\n Constraint newconstraint =\n new Constraint(primaryConst.constName, t,\n t.getPrimaryIndex(),\n Constraint.PRIMARY_KEY);\n\n t.addConstraint(newconstraint);\n database.schemaManager.registerConstraintName(\n primaryConst.constName.name, t.getName());\n }\n\n for (int i = 1; i < tempConstraints.size(); i++) {\n Constraint tempConst = (Constraint) tempConstraints.get(i);\n\n if (tempConst.constType == Constraint.UNIQUE) {\n TableWorks tableWorks = new TableWorks(session, t);\n\n tableWorks.createUniqueConstraint(\n tempConst.core.mainColArray, tempConst.constName);\n\n t = tableWorks.getTable();\n }\n\n if (tempConst.constType == Constraint.FOREIGN_KEY) {\n TableWorks tableWorks = new TableWorks(session, t);\n\n tableWorks.createForeignKey(tempConst.core.mainColArray,\n tempConst.core.refColArray,\n tempConst.constName,\n tempConst.core.refTable,\n tempConst.core.deleteAction,\n tempConst.core.updateAction);\n\n t = tableWorks.getTable();\n }\n\n if (tempConst.constType == Constraint.CHECK) {\n TableWorks tableWorks = new TableWorks(session, t);\n\n tableWorks.createCheckConstraint(tempConst,\n tempConst.constName);\n\n t = tableWorks.getTable();\n }\n }\n\n database.schemaManager.linkTable(t);\n } catch (HsqlException e) {\n\n// fredt@users 20020225 - comment\n// if a HsqlException is thrown while creating table, any foreign key that has\n// been created leaves it modification to the expTable in place\n// need to undo those modifications. This should not happen in practice.\n database.schemaManager.removeExportedKeys(t);\n database.schemaManager.removeIndexNames(t.tableName);\n database.schemaManager.removeConstraintNames(t.tableName);\n\n throw e;\n }\n }", "@Override\n\tpublic void create() {\n\n\t}", "public void testCreateTable() {\n LOG.info(\"Entering testCreateTable.\");\n\n // Specify the table descriptor.\n HTableDescriptor htd = new HTableDescriptor(tableName);\n\n // Set the column family name to info.\n HColumnDescriptor hcd = new HColumnDescriptor(\"info\");\n\n // Set data encoding methods,HBase provides DIFF,FAST_DIFF,PREFIX\n // and PREFIX_TREE\n hcd.setDataBlockEncoding(DataBlockEncoding.FAST_DIFF);\n\n // Set compression methods, HBase provides two default compression\n // methods:GZ and SNAPPY\n // GZ has the highest compression rate,but low compression and\n // decompression effeciency,fit for cold data\n // SNAPPY has low compression rate, but high compression and\n // decompression effeciency,fit for hot data.\n // it is advised to use SANPPY\n hcd.setCompressionType(Compression.Algorithm.SNAPPY);\n\n htd.addFamily(hcd);\n\n Admin admin = null;\n try {\n // Instantiate an Admin object.\n admin = conn.getAdmin();\n if (!admin.tableExists(tableName)) {\n LOG.info(\"Creating table...\");\n admin.createTable(htd);\n LOG.info(admin.getClusterStatus());\n LOG.info(admin.listNamespaceDescriptors());\n LOG.info(\"Table created successfully.\");\n } else {\n LOG.warn(\"table already exists\");\n }\n } catch (IOException e) {\n LOG.error(\"Create table failed.\");\n } finally {\n if (admin != null) {\n try {\n // Close the Admin object.\n admin.close();\n } catch (IOException e) {\n LOG.error(\"Failed to close admin \", e);\n }\n }\n }\n LOG.info(\"Exiting testCreateTable.\");\n }", "public CreateData() {\n\t\t\n\t\t// TODO Auto-generated constructor stub\n\t}", "boolean createTable();", "@Override\r\n public Db_db createTable (Db_table table)\r\n {\r\n Db_db db = null;\r\n String query = \"CREATE TABLE IF NOT EXISTS \"+ table.getName() + \" (\"; \r\n String primaryKeyName = null;\r\n Set<Map.Entry<String, Db_tableColumn>> tableEntries;\r\n List<String> listOfUniqueKey = Lists.newArrayList();\r\n \r\n if(curConnection_ != null)\r\n {\r\n try\r\n {\r\n tableEntries = table.getEntrySet();\r\n for(Map.Entry<String, Db_tableColumn> entry: tableEntries)\r\n {\r\n Db_tableColumn entryContent = entry.getValue();\r\n \r\n if(entryContent.isPrimary() && primaryKeyName == null)\r\n {\r\n primaryKeyName = entryContent.getName();\r\n }\r\n else if(entryContent.isPrimary() && primaryKeyName != null)\r\n {\r\n throw new NumberFormatException();\r\n }\r\n \r\n if(itsAttributeMapper_ == null)\r\n {\r\n throw new NumberFormatException();\r\n }\r\n \r\n if(entryContent.isUnique())\r\n {\r\n listOfUniqueKey.add(entryContent.getName());\r\n }\r\n \r\n String mappedAttribute = this.itsAttributeMapper_.MapAttribute(entryContent.getAttributeName());\r\n if(entryContent.getAttribute().isEnum())\r\n {\r\n mappedAttribute += entryContent.getAttribute().buildEnumValueListString();\r\n }\r\n query += entryContent.getName() + \" \" + mappedAttribute \r\n + (entryContent.isAutoIncreasmnet()?\" AUTO_INCREMENT \":\" \")\r\n + (entryContent.isUnique()?\" UNIQUE, \": \", \");\r\n }\r\n \r\n query += \"PRIMARY KEY (\" + primaryKeyName + \"));\";\r\n try (Statement sm = curConnection_.createStatement()) {\r\n sm.executeUpdate(query);\r\n db = this.curDb_;\r\n }\r\n \r\n }catch(NumberFormatException e){System.out.print(e);}\r\n catch(SQLException e){System.out.print(query);this.CurConnectionFailed();}\r\n }\r\n return db;\r\n }", "public Hoppy insert(Hoppy hoppy, IdGenerateService<Long> idGenerateService) throws DataAccessException;", "interface WithCreate extends\n SqlElasticPoolOperations.DefinitionStages.WithDatabaseDtuMin,\n SqlElasticPoolOperations.DefinitionStages.WithDatabaseDtuMax,\n SqlElasticPoolOperations.DefinitionStages.WithDtu,\n SqlElasticPoolOperations.DefinitionStages.WithStorageCapacity,\n SqlElasticPoolOperations.DefinitionStages.WithDatabase,\n Resource.DefinitionWithTags<SqlElasticPoolOperations.DefinitionStages.WithCreate>,\n Creatable<SqlElasticPool> {\n }", "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:49.404 -0500\", hash_original_method = \"CD5C82C799E78C74801FDB521CEE7324\", hash_generated_method = \"CD5C82C799E78C74801FDB521CEE7324\")\n \nContext ()\n {\n copyTables();\n }", "OrTable createOrTable();", "public abstract void create();", "DT createDT();", "@Override\n public void createSchema(Properties props)\n {\n Statement statement;\n try\n {\n statement = connection.createStatement();\n \n //Drop Indexes\n dropIndex(statement, \"CONFFRIENDSHIP_INVITEEID\", \"CONFFRIENDSHIP\");\n dropIndex(statement, \"CONFFRIENDSHIP_INVITERID\", \"CONFFRIENDSHIP\");\n dropIndex(statement, \"PENDFRIENDSHIP_INVITEEID\", \"PENDFRIENDSHIP\");\n dropIndex(statement, \"PENDFRIENDSHIP_INVITERID\", \"PENDFRIENDSHIP\");\n dropIndex(statement, \"MANIPULATION_RID\", \"MANIPULATION\");\n dropIndex(statement, \"MANIPULATION_CREATORID\", \"MANIPULATION\");\n dropIndex(statement, \"RESOURCES_WALLUSERID\", \"RESOURCES\");\n dropIndex(statement, \"RESOURCE_CREATORID\", \"RESOURCES\");\n \n //Drop Tables\n dropTable(statement, \"CONFFRIENDSHIP\");\n dropTable(statement, \"PENDFRIENDSHIP\");\n dropTable(statement, \"MANIPULATION\");\n dropTable(statement, \"RESOURCES\");\n dropTable(statement, \"USERS\");\n \n //Create Tables\n statement.executeUpdate(\"CREATE TABLE CONFFRIENDSHIP \" + \"(INVITERID INTEGER NOT NULL, \" + \"INVITEEID INTEGER NOT NULL, \" + \"PRIMARY KEY (INVITERID, INVITEEID))\");\n statement.executeUpdate(\"CREATE TABLE PENDFRIENDSHIP \" + \"(INVITERID INTEGER NOT NULL, \" + \"INVITEEID INTEGER NOT NULL, \" + \"PRIMARY KEY (INVITERID, INVITEEID))\");\n statement.executeUpdate(\"CREATE TABLE MANIPULATION \" + \"(MID INTEGER NOT NULL, \" + \"MODIFIERID INTEGER NOT NULL, \" + \"RID INTEGER NOT NULL, \" + \"CREATORID INTEGER NOT NULL, \" + \"TIMESTAMP VARCHAR(200), \" + \"TYPE VARCHAR(200), \" + \"CONTENT VARCHAR(200), \" + \"PRIMARY KEY (MID,RID))\");\n statement.executeUpdate(\"CREATE TABLE RESOURCES \" + \"(RID INTEGER NOT NULL , \" + \"CREATORID INTEGER NOT NULL, \" + \"WALLUSERID INTEGER NOT NULL, \" + \"TYPE VARCHAR(200), \" + \"BODY VARCHAR(200), \" + \"DOC VARCHAR(200), \" + \"PRIMARY KEY (RID))\");\n statement.executeUpdate(\"CREATE TABLE USERS \" + \"(USERID INTEGER NOT NULL , \" + \"USERNAME VARCHAR(200), \" + \"PW VARCHAR(200), \" + \"FNAME VARCHAR(200), \" + \"LNAME VARCHAR(200), \" + \"GENDER VARCHAR(200),\" + \"DOB VARCHAR(200), \" + \"JDATE VARCHAR(200), \" + \"LDATE VARCHAR(200), \" + \"ADDRESS VARCHAR(200),\" + \"EMAIL VARCHAR(200), \" + \"TEL VARCHAR(200), \" + \"PRIMARY KEY (USERID))\");\n \n //Add Foreign Keys\n statement.executeUpdate(\"ALTER TABLE CONFFRIENDSHIP \" + \"ADD CONSTRAINT CONFFRIENDSHIP_USERS_FK1 FOREIGN KEY (INVITERID)\" + \"REFERENCES USERS (USERID) ON DELETE CASCADE\");\n statement.executeUpdate(\"ALTER TABLE CONFFRIENDSHIP \" + \"ADD CONSTRAINT CONFFRIENDSHIP_USERS_FK2 FOREIGN KEY (INVITEEID)\" + \"REFERENCES USERS (USERID) ON DELETE NO ACTION\");\n statement.executeUpdate(\"ALTER TABLE PENDFRIENDSHIP \" + \"ADD CONSTRAINT PENDFRIENDSHIP_USERS_FK1 FOREIGN KEY (INVITERID)\" + \"REFERENCES USERS (USERID) ON DELETE CASCADE\");\n statement.executeUpdate(\"ALTER TABLE PENDFRIENDSHIP \" + \"ADD CONSTRAINT PENDFRIENDSHIP_USERS_FK2 FOREIGN KEY (INVITEEID)\" + \"REFERENCES USERS (USERID) ON DELETE NO ACTION\");\n statement.executeUpdate(\"ALTER TABLE MANIPULATION \" + \"ADD CONSTRAINT MANIPULATION_RESOURCES_FK1 FOREIGN KEY (RID)\" + \"REFERENCES RESOURCES (RID) ON DELETE CASCADE\");\n statement.executeUpdate(\"ALTER TABLE MANIPULATION \" + \"ADD CONSTRAINT MANIPULATION_USERS_FK1 FOREIGN KEY (CREATORID)\" + \"REFERENCES USERS (USERID) ON DELETE NO ACTION\");\n statement.executeUpdate(\"ALTER TABLE MANIPULATION \" + \"ADD CONSTRAINT MANIPULATION_USERS_FK2 FOREIGN KEY (MODIFIERID)\" + \"REFERENCES USERS (USERID) ON DELETE NO ACTION\");\n statement.executeUpdate(\"ALTER TABLE RESOURCES \" + \"ADD CONSTRAINT RESOURCES_USERS_FK1 FOREIGN KEY (CREATORID)\" + \"REFERENCES USERS (USERID) ON DELETE CASCADE\");\n statement.executeUpdate(\"ALTER TABLE RESOURCES \" + \"ADD CONSTRAINT RESOURCES_USERS_FK2 FOREIGN KEY (WALLUSERID)\" + \"REFERENCES USERS (USERID) ON DELETE NO ACTION\");\n \n //Create Indexes\n buildIndexes(null);\n }\n catch (SQLException ex)\n {\n Logger.getLogger(WindowsAzureClientInit.class.getName()).log(Level.SEVERE, null, ex);\n System.out.println(\"Error in creating schema!\");\n }\n }", "public void createTable() throws LRException\n\t{\n\t\tgetBackground();\n\t\tDataHRecordData myData=(DataHRecordData)getData();\n\t\t// Create a new (empty) record\n\t\tcreate(new Hashtable(),myData);\n\t\tif (myData.record==null) throw new LRException(DataRMessages.nullRecord(getName()));\n\t\ttry\n\t\t{\n\t\t\tbackground.newTransaction();\n\t\t\tmyData.record.createNewTable(background.getClient(),true);\n\t\t}\n\t\tcatch (LDBException e) { setStatus(e); }\n\t}", "public boolean createTable(String input) throws IOException{\n\t\tString orgQuery = input;\n\t\torgQuery = orgQuery.trim();\n\t\tString query = input.toLowerCase().trim();\n\t\tboolean queryFailed = false;\n\t\t//Schema Instance \n\t\tSchema currentSchema = Schema.getSchemaInstance();\n\t\tString currentSchemaName = currentSchema.getCurrentSchema();\n\n\t\t//TableSchemaManager Instance\n\t\tTableSchemaManager currentTableSchemaManager = TableSchemaManager.getTableSchemaManagerInstance();\n\n\t\t//Extracting Table name\n\t\ttableName = orgQuery.substring(query.indexOf(\"table \")+6,query.indexOf(\"(\")).trim();\n\n\t\t//Updating SCHEMA.TABLE.TBL\n\t\tif(updateInformationSchemaTable()){\n\t\t\tqueryFailed = true;\n\t\t\treturn queryFailed;\n\t\t}\n\n\t\t//Extracting Table contents\n\t\tString tableContentsWithQuotes = orgQuery.substring(orgQuery.indexOf(\"(\")+1,orgQuery.length());\n\t\tString tableContents = tableContentsWithQuotes.replace(\"))\", \")\");\n\t\ttableContents = tableContents.trim();\n\n\t\tTableSchemaManager.ordinalMap = new TreeMap<Integer,List<String>>();\n\t\tTableSchemaManager.tableMap = new TreeMap<String,TreeMap<Integer,List<String>>>();\n\t\t\n\t\t//Creating n instances of Table helper\n\t\tString[] createTableContents = tableContents.split(\"\\\\,\"); \n\t\tnoOfColumns = createTableContents.length;\n\t\tCreateTableHelper[] th = new CreateTableHelper[noOfColumns];\n\n\t\t\n\t\t//Handles single row of Create Table \n\t\tfor(int item = 0; item < noOfColumns ; item++){\n\t\t\tth[item] = new CreateTableHelper(); \n\t\t\t//To remove any leading or trailing spaces\n\t\t\tcreateTableContents[item] = createTableContents[item].trim();\n\t\t\tString columnName = createTableContents[item].substring(0, createTableContents[item].indexOf(\" \"));\n\t\t\tth[item].setColumnName(columnName);\n\n\t\t\t//Setting Primary Key\n\t\t\tString primaryKeyExp = \"(.*)[pP][rR][iI][mM][aA][rR][yY](.*)\";\n\t\t\tif (createTableContents[item].matches(primaryKeyExp))\n\t\t\t\tth[item].setPrimaryKey(true);\n\t\t\telse\n\t\t\t\tth[item].setPrimaryKey(false);\n\n\t\t\t//Setting Null Value\t\n\t\t\tString notNullExp = \"(.*)[nN][uU][lL][lL](.*)\";\n\t\t\tif (createTableContents[item].matches(notNullExp))\n\t\t\t\tth[item].setNull(true);\n\t\t\telse\n\t\t\t\tth[item].setNull(false);\n\n\t\t\t//Extracting data types \n\t\t\t//BYTE\n\t\t\tString byteExp = \"(.*)[bB][yY][tT][eE](.*)\";\n\t\t\tif (createTableContents[item].matches(byteExp)){\n\t\t\t\tth[item].setDataType(\"BYTE\");\n\t\t\t}\n\t\t\t//SHORT\n\t\t\tString shortExp = \"(.*)[sS][hH][oO][rR][tT](.*)\";\n\t\t\tif (createTableContents[item].matches(shortExp)){\n\t\t\t\tth[item].setDataType(\"SHORT\");\n\t\t\t}\n\t\t\t//INT\n\t\t\tString intExp = \"(.*)[iI][nN][tT](.*)\";\n\t\t\tif (createTableContents[item].matches(intExp)){\n\t\t\t\tth[item].setDataType(\"INT\");\n\t\t\t}\n\t\t\t//LONG\n\t\t\tString longExp = \"(.*)[lL][oO][nN][gG](.*)\";\n\t\t\tif (createTableContents[item].matches(longExp)){\n\t\t\t\tth[item].setDataType(\"LONG\");\n\t\t\t}\n\t\t\t//CHAR\n\t\t\tString charExp = \"(.*)[cC][hH][aA][rR](.*)\";\n\t\t\tif (createTableContents[item].matches(charExp)){\n\t\t\t\tString size = createTableContents[item].substring(createTableContents[item].indexOf(\"(\")+1, createTableContents[item].indexOf(\")\"));\n\t\t\t\tth[item].setDataType(\"CHAR(\" + size + \")\");\n\t\t\t}\n\t\t\t//VARCHAR\n\t\t\tString varcharExp = \"(.*)[vV][aA][rR][cC][hH][aA][rR](.*)\";\n\t\t\tif (createTableContents[item].matches(varcharExp)){\n\t\t\t\tString size = createTableContents[item].substring(createTableContents[item].indexOf(\"(\")+1, createTableContents[item].indexOf(\")\"));\n\t\t\t\tth[item].setDataType(\"VARCHAR(\" + size + \")\");\n\t\t\t}\n\t\t\t//FLOAT\n\t\t\tString floatExp = \"(.*)[fF][lL][oO][aA][tT](.*)\";\n\t\t\tif (createTableContents[item].matches(floatExp)){\n\t\t\t\tth[item].setDataType(\"FLOAT\");\t\t\t\t\n\t\t\t}\n\t\t\t//DOUBLE\n\t\t\tString doubleExp = \"(.*)[dD][oO][uU][bB][lL][eE](.*)\";\n\t\t\tif (createTableContents[item].matches(doubleExp)){\n\t\t\t\tth[item].setDataType(\"DOUBLE\");\n\t\t\t}\n\t\t\t//DATETIME\n\t\t\tString dateTimeExp = \"(.*)[dD][aA][tT][eE][tT][iI][mM][eE](.*)\";\n\t\t\tif (createTableContents[item].matches(dateTimeExp)){\n\t\t\t\tth[item].setDataType(\"DATETIME\");\n\t\t\t}\n\t\t\t//DATE\n\t\t\tString dateExp = \"(.*)[dD][aA][tT][eE](.*)\";\n\t\t\tif (createTableContents[item].matches(dateExp)){\n\t\t\t\tth[item].setDataType(\"DATE\");\n\t\t\t}\n\n\t\t\tcurrentTableSchemaManager.newTableSchema(\n\t\t\t\t\ttableName,\n\t\t\t\t\titem,\n\t\t\t\t\tth[item].getColumnName(),\n\t\t\t\t\tth[item].getDataType(),\n\t\t\t\t\tth[item].isNull(),\n\t\t\t\t\tth[item].isPrimaryKey()\n\t\t\t\t\t);\n\n\t\t\t//Updating SCHEMA.COLUMNS.TBL\n\t\t\tupdateInformationSchemaColumn(\n\t\t\t\t\tth[item].getColumnName(),\n\t\t\t\t\titem,\n\t\t\t\t\tth[item].getDataType(),\n\t\t\t\t\tth[item].isNull(),\n\t\t\t\t\tth[item].isPrimaryKey()\n\t\t\t\t\t);\n\t\t\t//Create tables to insert index\n\t\t\tString newTableIndexName = currentSchemaName + \".\" + tableName + \".\" +th[item].getColumnName()+ \".tbl.ndx\";\n\t\t\tRandomAccessFile newTableIndexFile = new RandomAccessFile(newTableIndexName, \"rw\");\n\t\t\tnewTableIndexFile.close();\n\n\t\t}\n\n\t\tTableSchemaManager.tableMap.put(tableName, TableSchemaManager.ordinalMap);\n\t\tcurrentTableSchemaManager.updateTableSchema(currentSchemaName,tableName);\n\t\t\n\t\t//Create tables to insert data \n\t\tString newTableDataName = currentSchemaName + \".\" + tableName + \".tbl\";\n\t\tRandomAccessFile newTableDataFile = new RandomAccessFile(newTableDataName, \"rw\");\n\t\tnewTableDataFile.close();\n\t\treturn queryFailed;\n\t}", "public String createDSIndex(String dsID, String dschemaID, String attriName);", "private void createStressTestControlTable() {\n Column runId = new Column(\"RUN_ID\");\n runId.setMappedType(\"INTEGER\");\n runId.setPrimaryKey(true);\n runId.setRequired(true);\n Column clientCommitSleepMs = new Column(\"CLIENT_COMMIT_SLEEP_MS\");\n clientCommitSleepMs.setMappedType(\"BIGINT\");\n Column clientCommitRows = new Column(\"CLIENT_COMMIT_ROWS\");\n clientCommitRows.setMappedType(\"BIGINT\");\n Column serverCommitSleepMs = new Column(\"SERVER_COMMIT_SLEEP_MS\");\n serverCommitSleepMs.setMappedType(\"BIGINT\");\n Column serverCommitRows = new Column(\"SERVER_COMMIT_ROWS\");\n serverCommitRows.setMappedType(\"BIGINT\");\n Column payloadColumns = new Column(\"PAYLOAD_COLUMNS\");\n payloadColumns.setMappedType(\"INTEGER\");\n Column initialSeedSize = new Column(\"INITIAL_SEED_SIZE\");\n initialSeedSize.setMappedType(\"BIGINT\");\n Column duration = new Column(\"DURATION_MINUTES\");\n duration.setMappedType(\"BIGINT\");\n\n Table table = new Table(STRESS_TEST_CONTROL, runId, clientCommitSleepMs, clientCommitRows, serverCommitSleepMs, serverCommitRows,\n payloadColumns, initialSeedSize, duration);\n engine.getDatabasePlatform().createTables(true, true, table);\n }", "@Override\r\n\tpublic void create() {\n\r\n\t}", "Statement createStatement();", "Statement createStatement();", "Statement createStatement();", "public void doCreateTable();", "@Override\n public Pipe execute(DBMS engine) throws DBxicException {\n engine.storManager.createTable(table);\n engine.catalog.saveCatalog();\n return new MessageThroughPipe(\"Table \" + table.getName() + \" successfully created\");\n }", "@Override\n public void setUp() throws SQLException {\n connection.createStatement().executeUpdate(\n \"CREATE TABLE IF NOT EXISTS \\\"ENTRY\\\" (\" +\n \"\\\"SHARED_ID\\\" SERIAL PRIMARY KEY, \" +\n \"\\\"TYPE\\\" VARCHAR, \" +\n \"\\\"VERSION\\\" INTEGER DEFAULT 1)\");\n\n connection.createStatement().executeUpdate(\n \"CREATE TABLE IF NOT EXISTS \\\"FIELD\\\" (\" +\n \"\\\"ENTRY_SHARED_ID\\\" INTEGER REFERENCES \\\"ENTRY\\\"(\\\"SHARED_ID\\\") ON DELETE CASCADE, \" +\n \"\\\"NAME\\\" VARCHAR, \" +\n \"\\\"VALUE\\\" TEXT)\");\n\n connection.createStatement().executeUpdate(\n \"CREATE TABLE IF NOT EXISTS \\\"METADATA\\\" (\"\n + \"\\\"KEY\\\" VARCHAR,\"\n + \"\\\"VALUE\\\" TEXT)\");\n }", "private void m14053d() {\n try {\n File file = new File(f18051l);\n File file2 = new File(f18052m);\n if (!file.exists()) {\n file.mkdirs();\n }\n if (!file2.exists()) {\n file2.createNewFile();\n }\n if (file2.exists()) {\n SQLiteDatabase openOrCreateDatabase = SQLiteDatabase.openOrCreateDatabase(file2, null);\n openOrCreateDatabase.execSQL(\"CREATE TABLE IF NOT EXISTS bdcltb09(id CHAR(40) PRIMARY KEY,time DOUBLE,tag DOUBLE, type DOUBLE , ac INT);\");\n openOrCreateDatabase.execSQL(\"CREATE TABLE IF NOT EXISTS wof(id CHAR(15) PRIMARY KEY,mktime DOUBLE,time DOUBLE, ac INT, bc INT, cc INT);\");\n openOrCreateDatabase.setVersion(1);\n openOrCreateDatabase.close();\n }\n this.f18053a = true;\n } catch (Exception e) {\n }\n }", "interface WithDtu {\n /**\n * Sets the total shared DTU for the SQL Azure Database Elastic Pool.\n *\n * @param dtu total shared DTU for the SQL Azure Database Elastic Pool\n * @return The next stage of the definition.\n */\n @Deprecated\n SqlElasticPoolOperations.DefinitionStages.WithCreate withDtu(int dtu);\n }", "@POST\n @Produces({\"application/json\"})\n public String createDb() throws WebApplicationException {\n HibernateEntityManager emAdm = PersistenceManager.getInstance().getEntityManagerAdmin();\n SQLQuery qCreate = emAdm.getSession().createSQLQuery(\"CREATE DATABASE test_jeff template=postgis\");\n try{\n qCreate.executeUpdate();\n }catch(SQLGrammarException e){\n System.out.println(\"Error !!\" + e.getSQLException());\n emAdm.close();\n return e.getSQLException().getLocalizedMessage();\n }\n emAdm.close();\n Map properties = new HashMap();\n //change the connection string to the new db\n properties.put(\"hibernate.connection.url\", \"jdbc:postgresql_postGIS://192.168.12.36:5432/test_jeff\");\n EntityManagerFactory emf = Persistence.createEntityManagerFactory(\"dataPU\", properties); \n return \"Yeah\";\n }", "public abstract void createTables() throws DataServiceException;", "@Override\n\tpublic void create () {\n\n\t}", "@Test\n public void shouldCreateEpiDataGathering() {\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(0));\n\n Case caze = TestEntityCreator.createCase();\n TestEntityCreator.createEpiDataGathering(caze);\n\n // Assure that the burial has been successfully created\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(1));\n }", "Udt createUdt();", "OperacionColeccion createOperacionColeccion();", "public void create(AttributeList attributeList)\n {\n\n super.create(attributeList); \n \n OADBTransaction transaction = getOADBTransaction();\n \n // DEFAULT: supplier id is obtained from the table's sequence\n Number supplierId = transaction.getSequenceValue(\"FWK_TBX_SUPPLIERS_S\");\n setSupplierId(supplierId);\n\n // DEFAULT: start date should be set to sysdate\n setStartDate(transaction.getCurrentDBDate());\n\n \n }", "Definition createDefinition();", "H1 createH1();", "private static void createDatabase(String restrictedUser) throws ArcException {\n\t\tGenericPreparedStatementBuilder query;\n\n\t\t// clean database\n\t\tquery = new GenericPreparedStatementBuilder();\n\t\tquery.append(\"DROP SCHEMA IF EXISTS \" + DataObjectService.ARC_METADATA_SCHEMA + \" CASCADE;\");\n\t\tquery.append(\"DROP SCHEMA IF EXISTS \" + testSandbox1 + \" CASCADE;\");\n\t\tquery.append(\"DROP SCHEMA IF EXISTS public CASCADE;\");\n\t\tUtilitaireDao.get(0).executeRequest(c, query);\n\t\t\n\t\tBddPatcher patcher=new BddPatcher();\n\t\tpatcher.getProperties().setGitCommitId(newVersion);\n\t\tpatcher.getProperties().setDatabaseRestrictedUsername(userWithRestrictedRights);\n\n\t\t// metadata schema creation\n\t\tpatcher.bddScript(c);\n\t\t// sandbox schema creation\n\t\tpatcher.bddScript(c, testSandbox1, testSandbox2, testSandbox8);\n\t\t\n\t}", "Operacion createOperacion();", "private synchronized String processCreate(String query) {\r\n\t\tString[] valuesCommand = query.split(\" \");\r\n\t\tif ( valuesCommand.length != 3 )\r\n\t\t\treturn \"ERROR Bad syntaxe command CREATE - Usage : CREATE id initial_solde\";\r\n\t\tString id = valuesCommand[1];\r\n\t\tif ( this.bank.existAccount(id) ) {\r\n\t\t\treturn \"ERROR Account alwready exist\";\r\n\t\t}\r\n\t\tdouble number = Double.valueOf(valuesCommand[2]);\r\n\t\tthis.bank.createAccount(id, number);\r\n\t\treturn \"OK \" + this.bank.getLastOperation(id);\r\n\t}", "public void createNewSchema() throws SQLException {\n ResultSet resultSet = databaseStatement.executeQuery(\"select count(datname) from pg_database\");\n int uniqueID = 0;\n if(resultSet.next()) {\n uniqueID = resultSet.getInt(1);\n }\n if(uniqueID != 0) {\n uniqueID++;\n databaseStatement.executeQuery(\"CREATE DATABASE OSM\"+uniqueID+\";\");\n }\n }", "int insert(Lbt72TesuryoSumDPkey record);", "@Test(timeout = 4000)\n public void test124() throws Throwable {\n DefaultDBTable defaultDBTable0 = new DefaultDBTable();\n MockPrintWriter mockPrintWriter0 = new MockPrintWriter(\"Illegal column type format: \");\n String[] stringArray0 = new String[9];\n DBUniqueConstraint dBUniqueConstraint0 = new DBUniqueConstraint(defaultDBTable0, \"66i,cw\", true, stringArray0);\n NameSpec nameSpec0 = NameSpec.ALWAYS;\n SQLUtil.renderCreateTable(defaultDBTable0, true, nameSpec0, mockPrintWriter0);\n assertEquals(\"table\", defaultDBTable0.getObjectType());\n }", "int insert(NjProductTaticsRelation record);", "public de.uni_koblenz.jgralabtest.schemas.gretl.pddsl.Chassis createChassis();", "int insert(Disease record);", "private void creates() {\n \tDBPeer.fetchTableColumns();\n \tDBPeer.fetchTableRows();\n \tDBPeer.fetchTableIndexes();\n \t\n for (int i = 0; i < creates.size(); i++) {\n creates.get(i).init();\n }\n \n DBPeer.updateTableColumns();\n DBPeer.updateTableRows();\n DBPeer.updateTableIndexes();\n }", "InstAssignIndex createInstAssignIndex();", "WithCreate withCreationData(CreationData creationData);", "@Before\n public void createAndFillTable() {\n try {\n DBhandler dBhandler = new DBhandler(h2DbConnection);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "DataCfgTableInfo createTableIfNotExists(String dataCfgOid);", "H2 createH2();", "int insert(Lbm83ChohyokanriPkey record);", "HdbSequenceModel createHdbSequenceModel();", "DL createDL();", "For createFor();", "public org.oep.cmon.dao.tlct.model.DanhMucGiayTo create(long id);", "private Builder() {\n super(org.apache.gora.cascading.test.storage.TestRow.SCHEMA$);\n }", "public void createExempleDirect(ExempleDirect exempleDirect) throws DaoException;", "int insertSelective(NjProductTaticsRelation record);", "BIG createBIG();", "private void CreateDataIngestors() throws isisicatclient.IcatException_Exception {\n Grouping dataIngestors = new Grouping();\r\n dataIngestors.name = \"DataIngestors\";\r\n dataIngestors.id = port.create(sessionId, dataIngestors);\r\n dataIngestors = (Grouping) port.search(sessionId, \"Grouping[name='DataIngestors']\").get(0);\r\n\r\n List<String> ingestorTables = port.getEntityNames();\r\n\r\n ingestorTables.remove(\"Facility\");\r\n\r\n List<EntityBaseBean> ingestorRules = new ArrayList<>();\r\n for (String table : ingestorTables) {\r\n Rule rule = new Rule();\r\n rule.grouping = dataIngestors;\r\n rule.crudFlags = \"CRUD\"; //no delete permission for ingestors\r\n rule.what = table;\r\n ingestorRules.add(rule);\r\n }\r\n port.createMany(sessionId, ingestorRules);\r\n }", "H4 createH4();", "int insert(OrgIntegralDeductRule record);", "public void createDataTable() {\r\n Log.d(TAG, \"creating table\");\r\n String queryStr = \"\";\r\n String[] colNames = {Constants.COLUMN_NAME_ACC_X, Constants.COLUMN_NAME_ACC_Y, Constants.COLUMN_NAME_ACC_Z};\r\n queryStr += \"create table if not exists \" + Constants.TABLE_NAME;\r\n queryStr += \" ( id INTEGER PRIMARY KEY AUTOINCREMENT, \";\r\n for (int i = 1; i <= 50; i++) {\r\n for (int j = 0; j < 3; j++)\r\n queryStr += colNames[j] + \"_\" + i + \" real, \";\r\n }\r\n queryStr += Constants.COLUMN_NAME_ACTIVITY + \" text );\";\r\n execute(queryStr);\r\n Log.d(TAG, \"created table\");\r\n try {\r\n ContentValues values = new ContentValues();\r\n values.put(\"id\", 0);\r\n insertRowInTable(Constants.TABLE_NAME, values);\r\n Log.d(TAG,\"created hist table\");\r\n }catch (Exception e){\r\n Log.d(TAG,Constants.TABLE_NAME + \" table already exists\");\r\n }\r\n }", "public static void main(String[] args) {\n\t\tCreateTable createTable = new CreateTable();\n\n\t\tCity city = new City();\n\t\tcity.setId(1);\n\t\tcreateTable.execute(city);\n\n\t\tProvince province = new Province();\n\t\tprovince.setId(1);\n\t\tcreateTable.execute(province);\n\n\t\tTown town = new Town();\n\t\ttown.setId(1);\n\t\tcreateTable.execute(town);\n\n\t\tDetail detail = new Detail();\n\t\tdetail.setId(1);\n\t\tcreateTable.execute(detail);\n\n\t\tOrder order = new Order();\n\t\torder.setId(1);\n\t\tcreateTable.execute(order);\n\n\t\tBrand2 brand2 = new Brand2();\n\t\tbrand2.setId(1);\n\t\tcreateTable.execute(brand2);\n\n\t\tColor color = new Color();\n\t\tcolor.setId(1);\n\t\tcreateTable.execute(color);\n\n\t\tFeature feature = new Feature();\n\t\tfeature.setId(1);\n\t\tcreateTable.execute(feature);\n\n\t\tImg img = new Img();\n\t\timg.setId(1);\n\t\tcreateTable.execute(img);\n\n\t\tSku sku = new Sku();\n\t\tsku.setId(1);\n\t\tcreateTable.execute(sku);\n\n\t\tType type = new Type();\n\t\ttype.setId(1);\n\t\tcreateTable.execute(type);\n\n\t\tAddr addr = new Addr();\n\t\taddr.setId(1);\n\t\tcreateTable.execute(addr);\n\t\tcreateTable.execute(new Buyer());\n\n\t\t// 商品编号 商品名称 图片 新品 热卖 推荐 上下架 操作选项\n\t\tProduct product = new Product();\n\t\tproduct.setId(001);\n\t\tproduct.setNo(UUID.randomUUID().toString());\n\t\tproduct.setName(\"依琦莲2014瑜伽服套装新款 瑜珈健身服三件套 广场舞蹈服装 女瑜伽服送胸垫 长袖紫色\");\n\t\tproduct.setWeight(56.00);\n\t\tproduct.setIsNew(1); // 1是 0否\n\t\tproduct.setIsHot(1);\n\t\tproduct.setCreateTime(new Date());\n\t\tproduct.setCheckUserId(\"\");\n\t\tproduct.setCheckTime(new Date());\n\t\tproduct.setCreateUserId(\"\");\n\t\tproduct.setIsShow(1);\n\t\tproduct.setIsDel(1);\n\t\tproduct.setTypeId(1);\n\t\tproduct.setBrandId(1);\n\t\tproduct.setKeywords(\"\");\n\t\tproduct.setSales(36);\n\t\tproduct.setDescription(\"不是东西\");\n\t\tproduct.setPackageList(\"\");\n\t\tproduct.setFeature(\"头角狰狞\");\n\t\tproduct.setColor(\"blue\");\n\t\tproduct.setSize(\"L\"); // S,L,XXL\n\t\tcreateTable.execute(product);\n\n\t\t// insert into\n\t\t// Product(id,no,name,weight,isNew,isHot,sales,description,feature,size)value(1,\"11xzc3568\",\"依琦莲2014瑜伽服套装新款女瑜伽服送胸垫\n\t\t// 长袖紫色\",36.12,1,1,110,\"不是东西\",\"头角狰狞\",\"blue\",\"L\");\n\n\t\tEmployee employee = new Employee();\n\t\temployee.setId(1);\n\t\tcreateTable.execute(employee);\n\n\t}", "Vaisseau_ordonneeLaPlusHaute createVaisseau_ordonneeLaPlusHaute();", "private void createCheckingAccountsTable() {\n\t\ttry {\n\t\t\tStatement stmt = this.conn.createStatement();\n\t\t\tstmt.executeUpdate(\"CREATE TABLE checkingAccounts \"\n\t\t\t\t\t+ \"(id BIGINT GENERATED ALWAYS AS IDENTITY ( START WITH 1000000001, INCREMENT BY 1 ), \" + \"owner INT, \"\n\t\t\t\t\t+ \"balance DOUBLE, \" + \"intRate DOUBLE, \"\n\t\t\t\t\t+ \"timeCreated BIGINT, \" + \"lastPaidInterest DOUBLE, \"\n\t\t\t\t\t+ \"dateOfLastPaidInterest BIGINT)\");\n\t\t\tconn.commit();\n\t\t\tSystem.out.println(\"Created table checkingAccounts\");\n\t\t} catch (SQLException sqle) {\n\t\t\tSystem.err.println(\"Creation of checkingAccounts table FAILED\");\n\t\t\tSystem.err.println(sqle);\n\t\t}\n\t}", "@Ignore\n @Test\n public void testCreateIndex() {\n System.out.println(\"createIndex\");\n Util.commonServiceIPs=\"127.0.0.1\";\n \n EntityManager em=Util.getEntityManagerFactory(100).createEntityManager();\n EntityManager platformEm = Util.getPlatformEntityManagerFactory().createEntityManager();\n \n Client client = ESUtil.getClient(em,platformEm,1,false);\n \n RuntimeContext.dataobjectTypes = Util.getDataobjectTypes();\n String indexName = \"test000000\";\n try {\n ESUtil.createIndex(platformEm, client, indexName, true);\n }\n catch(Exception e)\n {\n \n }\n \n\n }", "public void createVirtualTable(){\n\n\t\t\n\t\tif(DBHandler.getConnection()==null){\n\t\t\treturn;\n\t\t}\n\n\t\tif(DBHandler.tableExists(name())){\n\t\t\treturn;\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tStatement s = DBHandler.getConnection().createStatement();\n\t\t\ts.execute(\"create virtual table \"+name()+\" using fts4(\"+struct()+\")\");\n\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\tMainFrame.print(e.getMessage());\n\t\t}\n\t}", "public int create (Section section) throws DataAccessException;", "protected abstract void createAttributes();", "private MetaSparqlRequest createInsertMT1() {\n\t\tString sparqlStr = \"\"+\n\t\t\t\t\"PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>\\r\\n\" + \n\t\t\t\t\"PREFIX ub: \"+_ontology+\"\\r\\n\" + \n\t\t\t\t\"INSERT DATA { GRAPH \"+_graph+\" { \"+\n\t\t\t\tbuilderBindInsert\n\t\t\t\t+\" } }\";\n\t\t\n\t\tSparqlObj sparql= new SparqlObj(sparqlStr) ;\n\t\tEndPoint endPointHost= new EndPoint(_protocol,_host,_port,\"/update\");\n\t\tMetaSparqlRequest msr = new MetaSparqlRequest(new SparqlRequest(sparql,endPointHost));\n\t\tmsr.setTripleInsert(createTripleBaseMT1());\n\t\treturn msr;\n\t}", "public void createTables(){\n Map<String, String> name_type_map = new HashMap<>();\n List<String> primaryKey = new ArrayList<>();\n try {\n name_type_map.put(KEY_SINK_NAME, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_SINK_ADDRESS, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_SINK_DETAIL, MyDatabase.TYPE_VARCHAR);\n primaryKey.add(KEY_SINK_ADDRESS);\n myDatabase.createTable(TABLE_SINK, name_type_map, primaryKey, null);\n }catch (MySQLException e){ //数据表已存在\n e.print();\n }\n try {\n name_type_map.clear();\n name_type_map.put(KEY_NODE_NAME, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_PARENT, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_DETAIL, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_ADDRESS,MyDatabase.TYPE_VARCHAR);\n primaryKey.clear();\n primaryKey.add(KEY_NODE_PARENT);\n primaryKey.add(KEY_NODE_ADDRESS);\n myDatabase.createTable(TABLE_NODE, name_type_map, primaryKey, null);\n }catch (MySQLException e){\n e.print();\n }\n\n try {\n name_type_map.clear();\n name_type_map.put(KEY_NODE_ADDRESS, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_PARENT, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_DATA_TIME, MyDatabase.TYPE_TIMESTAMP);\n name_type_map.put(KEY_DATA_VAL, MyDatabase.TYPE_FLOAT);\n primaryKey.clear();\n primaryKey.add(KEY_DATA_TIME);\n primaryKey.add(KEY_NODE_ADDRESS);\n primaryKey.add(KEY_NODE_PARENT);\n myDatabase.createTable(TABLE_DATA, name_type_map, primaryKey, null);\n }catch (MySQLException e) {\n e.print();\n }\n }", "int insert(ec_environment record);", "public void setup() throws SQLException {\n // Create ACARS table\n final String createTableSQL = \"CREATE TABLE IF NOT EXISTS ACARS (\"\n + \"date DATE, time TIME, frequency CHAR(7), \"\n + \"registration VARCHAR(7), flight CHAR(6), \"\n + \"mode CHAR, label CHAR(2), blockId CHAR, msgId CHAR(4), \"\n + \"text VARCHAR(255), \"\n + \"PRIMARY KEY (date, registration, flight, mode, label, blockId, msgId), \"\n + \"INDEX datetime_idx (date, time), \"\n + \"INDEX registration_idx (registration), \"\n + \"INDEX flight_idx (flight)\"\n + \")\";\n\n final Statement createTableStmt = connection.createStatement();\n createTableStmt.execute(createTableSQL);\n }", "TableInstance createTableInstance();", "private String createTableSQL()\n\t{\n\t\tStringBuffer str = new StringBuffer();\n\n\t\t// Keep track of the list of fields\n\t\tList<String> listFields = new ArrayList<String>();\n\n\t\t// Table command\n\t\tstr.append(\"CREATE TABLE \" + getFullPath() + \"( \");\n\t\tstr.append(createStandardGZFields());\n\n\t\t// Loop through all InputFields\n\t\tfor (InputFieldSet fieldSet : function.getInputFieldSets())\n\t\t{\n\t\t\tfor (InputField inputField : fieldSet.getInputFields())\n\t\t\t{\n\t\t\t\t// Phase 2 does not support repeating fields being journalled\n\t\t\t\tif (!Field.isRepeating(inputField))\n\t\t\t\t{\n\t\t\t\t\t// Field\n\t\t\t\t\tString fieldName = SQLToolbox.cvtToSQLFieldName(inputField.getId());\n\n\t\t\t\t\t// add if not yet existing\n\t\t\t\t\tif (listFields.indexOf(fieldName) == -1)\n\t\t\t\t\t{\n\t\t\t\t\t\tstr.append(\", \");\n\t\t\t\t\t\tString fieldDataType = inputField.getDataType();\n\t\t\t\t\t\tString fieldType = SQLToolbox.cvtToSQLFieldType(fieldDataType, inputField.getSize(), inputField\n\t\t\t\t\t\t\t\t\t\t.getDecimals());\n\t\t\t\t\t\tString fieldDefault = SQLToolbox.cvtToSQLDefault(fieldDataType);\n\t\t\t\t\t\tstr.append(fieldName + \" \" + fieldType + \" \" + \" not null default \" + fieldDefault);\n\t\t\t\t\t\tlistFields.add(fieldName);\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// End\n\t\tstr.append(\" ) \");\n\t\t// RCDFMT \" + getJournalRcdName());\n\n\t\treturn str.toString();\n\t}", "public org.oep.cmon.dao.dvc.model.ThuTuc2GiayTo create(long id);" ]
[ "0.6137034", "0.6020893", "0.5953024", "0.5871004", "0.58520657", "0.5824135", "0.5783128", "0.5781292", "0.5779935", "0.5768486", "0.57018137", "0.569296", "0.5677845", "0.566757", "0.56516117", "0.5639093", "0.56084186", "0.5601316", "0.55988264", "0.5587084", "0.5586368", "0.5579563", "0.55671966", "0.5562383", "0.55537105", "0.55511224", "0.5550222", "0.5547236", "0.55009055", "0.54889506", "0.5482187", "0.54807544", "0.5465443", "0.5454913", "0.54468626", "0.5434606", "0.5426381", "0.54197514", "0.5414243", "0.54073745", "0.5402808", "0.5390703", "0.5390526", "0.5390526", "0.5390526", "0.538945", "0.53878444", "0.53796816", "0.5375914", "0.53748345", "0.53730184", "0.5365049", "0.5364833", "0.5364805", "0.536257", "0.5361029", "0.5360632", "0.53598887", "0.5350994", "0.5339128", "0.5338244", "0.53296435", "0.5321595", "0.5320979", "0.53194505", "0.5318698", "0.5313326", "0.53126156", "0.53099495", "0.5306004", "0.5300889", "0.5293614", "0.529321", "0.52883255", "0.5281361", "0.5281042", "0.527843", "0.5270345", "0.526982", "0.52697945", "0.52608657", "0.5259804", "0.52563196", "0.5249798", "0.5247741", "0.5239433", "0.5224713", "0.5224455", "0.5222238", "0.5221105", "0.521778", "0.5213034", "0.5211071", "0.52098143", "0.5208245", "0.5207931", "0.52069414", "0.5205663", "0.52015704", "0.5196995", "0.5195414" ]
0.0
-1
CREATE BY ANH DUC
Page<AccountDTO> findAllAccount(Pageable pageable);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int createTable(HbaseObj t);", "private void processCreate() throws HsqlException {\n\n boolean unique = false;\n int tableType;\n boolean isTempTable = false;\n String token;\n\n session.checkAdmin();\n session.checkDDLWrite();\n session.setScripting(true);\n\n if (tokenizer.isGetThis(Token.T_GLOBAL)) {\n tokenizer.getThis(Token.T_TEMPORARY);\n\n isTempTable = true;\n } else if (tokenizer.isGetThis(Token.T_TEMP)) {\n isTempTable = true;\n } else if (tokenizer.isGetThis(Token.T_TEMPORARY)) {\n isTempTable = true;\n }\n\n token = tokenizer.getSimpleToken();\n\n switch (Token.get(token)) {\n\n // table\n case Token.MEMORY :\n tokenizer.getThis(Token.T_TABLE);\n case Token.TABLE :\n tableType = isTempTable ? Table.TEMP_TABLE\n : database.getDefaultTableType();\n\n processCreateTable(tableType);\n\n return;\n\n case Token.CACHED :\n if (isTempTable) {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n\n tokenizer.getThis(Token.T_TABLE);\n processCreateTable(Table.CACHED_TABLE);\n\n return;\n\n case Token.TEXT :\n if (isTempTable) {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n\n tokenizer.getThis(Token.T_TABLE);\n processCreateTable(Table.TEXT_TABLE);\n\n return;\n\n default :\n if (isTempTable) {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n }\n\n switch (Token.get(token)) {\n\n // other objects\n case Token.ALIAS :\n processCreateAlias();\n break;\n\n case Token.SEQUENCE :\n processCreateSequence();\n break;\n\n case Token.SCHEMA :\n session.setScripting(false);\n processCreateSchema();\n break;\n\n case Token.TRIGGER :\n processCreateTrigger();\n break;\n\n case Token.USER :\n processCreateUser();\n break;\n\n case Token.ROLE :\n database.getGranteeManager().addRole(getUserIdentifier());\n break;\n\n case Token.VIEW :\n processCreateView();\n break;\n\n // index\n case Token.UNIQUE :\n unique = true;\n\n tokenizer.getThis(Token.T_INDEX);\n\n //fall thru\n case Token.INDEX :\n processCreateIndex(unique);\n break;\n\n default : {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n }\n }", "void create(DataTableDef def) throws IOException;", "CreationData creationData();", "protected abstract D createData();", "FromTable createFromTable();", "public void create() {\n\t\t\n\t}", "public void create() {\n\t\t\tdb.execSQL(AGENCYDB_CREATE+\".separete,.import agency.txt agency\");\n\t\t\tdb.execSQL(STOPSDB_CREATE+\".separete,.import stop_times.txt stop_times\");\n\t\t\t\n\t\t\t// Add 2 agencies for testing\n\t\t\t\n\t\t\t\n\t\t\tdb.setVersion(DATABASE_VERSION);\n\t\t}", "HdbdtiModel createHdbdtiModel();", "HdbSequenceElements createHdbSequenceElements();", "DD createDD();", "TD createTD();", "public String createTable(){\r\n return \"CREATE TABLE Doctor \" +\r\n \"(idDoctor decimal primary key, \" +\r\n \"firstNameDoctor char(14), \" +\r\n \"lastNameDoctor char(14), \" +\r\n \"costPerVisit integer,\" +\r\n \"qualification varchar(32))\";\r\n }", "private void createCDAccountsTable() {\n\t\ttry {\n\t\t\tStatement stmt = this.conn.createStatement();\n\t\t\tstmt.executeUpdate(\"CREATE TABLE cdAccounts \"\n\t\t\t\t\t+ \"(id BIGINT GENERATED ALWAYS AS IDENTITY ( START WITH 3000000001, INCREMENT BY 1 ), \" + \"owner INT, \"\n\t\t\t\t\t+ \"term INT, \" + \"balance DOUBLE, \" + \"intRate DOUBLE, \"\n\t\t\t\t\t+ \"timeCreated BIGINT, \" + \"lastPaidInterest DOUBLE, \"\n\t\t\t\t\t+ \"dateOfLastPaidInterest BIGINT)\");\n\t\t\tconn.commit();\n\t\t\tSystem.out.println(\"Created table cdAccounts\");\n\t\t} catch (SQLException sqle) {\n\t\t\tSystem.err.println(\"Creation of cdAccounts table FAILED\");\n\t\t\tSystem.err.println(sqle);\n\t\t}\n\t}", "public void createDienst()\n\t{\n\t\twriteDb(\"INSERT INTO dienstleistung (Bezeichnung, Preis)\" + \"VALUES('\" + typ + \"', '\" + preis +\"')\", getWriteCon());\n\t\tcommitDbConnection(getWriteCon());\n\t}", "public void create(){}", "@Override\n\tpublic String createTable() {\n\t\t\t\treturn \"CREATE TABLE history_table_view(id number(8) primary key not null ,sqltext text, pointid varchar2(1024), type varchar2(100))\";\n\t}", "public static void createTable() {\n\n // Create statement\n Statement statement = null;\n try {\n statement = Database.getDatabase().getConnection().createStatement();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n // Attempt to create table\n try {\n statement.execute(\n \"CREATE TABLE \" + Constants.SANITATION_TABLE + \"(\" +\n \"requestID INT PRIMARY KEY GENERATED ALWAYS AS IDENTITY (START WITH 1, INCREMENT BY 1),\" +\n \"nodeID VARCHAR(100) References \" + Constants.LOCATION_TABLE + \" (nodeID), \" +\n \"priority VARCHAR(10), \" +\n \"status VARCHAR(100), \" +\n \"description VARCHAR(100), \" +\n \"requesterID INT REFERENCES \" + Constants.USERS_TABLE + \"(userID), \" +\n \"requestTime TIMESTAMP, \" +\n \"servicerID INT REFERENCES \" + Constants.USERS_TABLE + \"(userID), \" +\n \"claimedTime TIMESTAMP, \" +\n \"completedTime TIMESTAMP, \" +\n \"CONSTRAINT priority_enum CHECK (priority in ('LOW', 'MEDIUM', 'HIGH')), \" +\n \"CONSTRAINT status_enum CHECK (status in ('INCOMPLETE', 'COMPLETE')))\"\n );\n } catch (SQLException | NullPointerException e) {\n e.printStackTrace();\n }\n }", "BTable createBTable();", "@Override\r\n\tpublic void create() {\n\t\t\r\n\t}", "@Override\n\tpublic void create() {\n\t\t\n\t}", "public abstract Anuncio creaAnuncioTematico();", "long createDatabase(long actor, String nameToDisplay, long proteinDBType, long sizeInBytes, boolean bPublic, boolean bReversed, ExperimentCategory category);", "TABLE createTABLE();", "private void processCreateTable(int type) throws HsqlException {\n\n String token = tokenizer.getName();\n HsqlName schemaname =\n session.getSchemaHsqlNameForWrite(tokenizer.getLongNameFirst());\n\n database.schemaManager.checkUserTableNotExists(session, token,\n schemaname.name);\n\n boolean isnamequoted = tokenizer.wasQuotedIdentifier();\n int[] pkCols = null;\n int colIndex = 0;\n boolean constraint = false;\n Table t = newTable(type, token, isnamequoted, schemaname);\n\n tokenizer.getThis(Token.T_OPENBRACKET);\n\n while (true) {\n token = tokenizer.getString();\n\n switch (Token.get(token)) {\n\n case Token.CONSTRAINT :\n case Token.PRIMARY :\n case Token.FOREIGN :\n case Token.UNIQUE :\n case Token.CHECK :\n\n // fredt@users : check for quoted reserved words used as column names\n constraint = !tokenizer.wasQuotedIdentifier()\n && !tokenizer.wasLongName();\n }\n\n tokenizer.back();\n\n if (constraint) {\n break;\n }\n\n Column newcolumn = processCreateColumn();\n\n t.addColumn(newcolumn);\n\n if (newcolumn.isPrimaryKey()) {\n Trace.check(pkCols == null, Trace.SECOND_PRIMARY_KEY,\n newcolumn.columnName.name);\n\n pkCols = new int[]{ colIndex };\n }\n\n token = tokenizer.getSimpleToken();\n\n if (token.equals(Token.T_COMMA)) {\n colIndex++;\n\n continue;\n }\n\n if (token.equals(Token.T_CLOSEBRACKET)) {\n break;\n }\n\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n\n HsqlArrayList tempConstraints = processCreateConstraints(t,\n constraint, pkCols);\n\n if (tokenizer.isGetThis(Token.T_ON)) {\n if (!t.isTemp) {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, Token.T_ON);\n }\n\n tokenizer.getThis(Token.T_COMMIT);\n\n token = tokenizer.getSimpleToken();\n\n if (token.equals(Token.T_DELETE)) {}\n else if (token.equals(Token.T_PRESERVE)) {\n t.onCommitPreserve = true;\n } else {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n\n tokenizer.getThis(Token.T_ROWS);\n }\n\n try {\n session.commit();\n\n Constraint primaryConst = (Constraint) tempConstraints.get(0);\n\n t.createPrimaryKey(null, primaryConst.core.mainColArray, true);\n\n if (primaryConst.core.mainColArray != null) {\n if (primaryConst.constName == null) {\n primaryConst.constName = t.makeSysPKName();\n }\n\n Constraint newconstraint =\n new Constraint(primaryConst.constName, t,\n t.getPrimaryIndex(),\n Constraint.PRIMARY_KEY);\n\n t.addConstraint(newconstraint);\n database.schemaManager.registerConstraintName(\n primaryConst.constName.name, t.getName());\n }\n\n for (int i = 1; i < tempConstraints.size(); i++) {\n Constraint tempConst = (Constraint) tempConstraints.get(i);\n\n if (tempConst.constType == Constraint.UNIQUE) {\n TableWorks tableWorks = new TableWorks(session, t);\n\n tableWorks.createUniqueConstraint(\n tempConst.core.mainColArray, tempConst.constName);\n\n t = tableWorks.getTable();\n }\n\n if (tempConst.constType == Constraint.FOREIGN_KEY) {\n TableWorks tableWorks = new TableWorks(session, t);\n\n tableWorks.createForeignKey(tempConst.core.mainColArray,\n tempConst.core.refColArray,\n tempConst.constName,\n tempConst.core.refTable,\n tempConst.core.deleteAction,\n tempConst.core.updateAction);\n\n t = tableWorks.getTable();\n }\n\n if (tempConst.constType == Constraint.CHECK) {\n TableWorks tableWorks = new TableWorks(session, t);\n\n tableWorks.createCheckConstraint(tempConst,\n tempConst.constName);\n\n t = tableWorks.getTable();\n }\n }\n\n database.schemaManager.linkTable(t);\n } catch (HsqlException e) {\n\n// fredt@users 20020225 - comment\n// if a HsqlException is thrown while creating table, any foreign key that has\n// been created leaves it modification to the expTable in place\n// need to undo those modifications. This should not happen in practice.\n database.schemaManager.removeExportedKeys(t);\n database.schemaManager.removeIndexNames(t.tableName);\n database.schemaManager.removeConstraintNames(t.tableName);\n\n throw e;\n }\n }", "@Override\n\tpublic void create() {\n\n\t}", "public void testCreateTable() {\n LOG.info(\"Entering testCreateTable.\");\n\n // Specify the table descriptor.\n HTableDescriptor htd = new HTableDescriptor(tableName);\n\n // Set the column family name to info.\n HColumnDescriptor hcd = new HColumnDescriptor(\"info\");\n\n // Set data encoding methods,HBase provides DIFF,FAST_DIFF,PREFIX\n // and PREFIX_TREE\n hcd.setDataBlockEncoding(DataBlockEncoding.FAST_DIFF);\n\n // Set compression methods, HBase provides two default compression\n // methods:GZ and SNAPPY\n // GZ has the highest compression rate,but low compression and\n // decompression effeciency,fit for cold data\n // SNAPPY has low compression rate, but high compression and\n // decompression effeciency,fit for hot data.\n // it is advised to use SANPPY\n hcd.setCompressionType(Compression.Algorithm.SNAPPY);\n\n htd.addFamily(hcd);\n\n Admin admin = null;\n try {\n // Instantiate an Admin object.\n admin = conn.getAdmin();\n if (!admin.tableExists(tableName)) {\n LOG.info(\"Creating table...\");\n admin.createTable(htd);\n LOG.info(admin.getClusterStatus());\n LOG.info(admin.listNamespaceDescriptors());\n LOG.info(\"Table created successfully.\");\n } else {\n LOG.warn(\"table already exists\");\n }\n } catch (IOException e) {\n LOG.error(\"Create table failed.\");\n } finally {\n if (admin != null) {\n try {\n // Close the Admin object.\n admin.close();\n } catch (IOException e) {\n LOG.error(\"Failed to close admin \", e);\n }\n }\n }\n LOG.info(\"Exiting testCreateTable.\");\n }", "public CreateData() {\n\t\t\n\t\t// TODO Auto-generated constructor stub\n\t}", "boolean createTable();", "@Override\r\n public Db_db createTable (Db_table table)\r\n {\r\n Db_db db = null;\r\n String query = \"CREATE TABLE IF NOT EXISTS \"+ table.getName() + \" (\"; \r\n String primaryKeyName = null;\r\n Set<Map.Entry<String, Db_tableColumn>> tableEntries;\r\n List<String> listOfUniqueKey = Lists.newArrayList();\r\n \r\n if(curConnection_ != null)\r\n {\r\n try\r\n {\r\n tableEntries = table.getEntrySet();\r\n for(Map.Entry<String, Db_tableColumn> entry: tableEntries)\r\n {\r\n Db_tableColumn entryContent = entry.getValue();\r\n \r\n if(entryContent.isPrimary() && primaryKeyName == null)\r\n {\r\n primaryKeyName = entryContent.getName();\r\n }\r\n else if(entryContent.isPrimary() && primaryKeyName != null)\r\n {\r\n throw new NumberFormatException();\r\n }\r\n \r\n if(itsAttributeMapper_ == null)\r\n {\r\n throw new NumberFormatException();\r\n }\r\n \r\n if(entryContent.isUnique())\r\n {\r\n listOfUniqueKey.add(entryContent.getName());\r\n }\r\n \r\n String mappedAttribute = this.itsAttributeMapper_.MapAttribute(entryContent.getAttributeName());\r\n if(entryContent.getAttribute().isEnum())\r\n {\r\n mappedAttribute += entryContent.getAttribute().buildEnumValueListString();\r\n }\r\n query += entryContent.getName() + \" \" + mappedAttribute \r\n + (entryContent.isAutoIncreasmnet()?\" AUTO_INCREMENT \":\" \")\r\n + (entryContent.isUnique()?\" UNIQUE, \": \", \");\r\n }\r\n \r\n query += \"PRIMARY KEY (\" + primaryKeyName + \"));\";\r\n try (Statement sm = curConnection_.createStatement()) {\r\n sm.executeUpdate(query);\r\n db = this.curDb_;\r\n }\r\n \r\n }catch(NumberFormatException e){System.out.print(e);}\r\n catch(SQLException e){System.out.print(query);this.CurConnectionFailed();}\r\n }\r\n return db;\r\n }", "public Hoppy insert(Hoppy hoppy, IdGenerateService<Long> idGenerateService) throws DataAccessException;", "interface WithCreate extends\n SqlElasticPoolOperations.DefinitionStages.WithDatabaseDtuMin,\n SqlElasticPoolOperations.DefinitionStages.WithDatabaseDtuMax,\n SqlElasticPoolOperations.DefinitionStages.WithDtu,\n SqlElasticPoolOperations.DefinitionStages.WithStorageCapacity,\n SqlElasticPoolOperations.DefinitionStages.WithDatabase,\n Resource.DefinitionWithTags<SqlElasticPoolOperations.DefinitionStages.WithCreate>,\n Creatable<SqlElasticPool> {\n }", "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:49.404 -0500\", hash_original_method = \"CD5C82C799E78C74801FDB521CEE7324\", hash_generated_method = \"CD5C82C799E78C74801FDB521CEE7324\")\n \nContext ()\n {\n copyTables();\n }", "OrTable createOrTable();", "public abstract void create();", "DT createDT();", "@Override\n public void createSchema(Properties props)\n {\n Statement statement;\n try\n {\n statement = connection.createStatement();\n \n //Drop Indexes\n dropIndex(statement, \"CONFFRIENDSHIP_INVITEEID\", \"CONFFRIENDSHIP\");\n dropIndex(statement, \"CONFFRIENDSHIP_INVITERID\", \"CONFFRIENDSHIP\");\n dropIndex(statement, \"PENDFRIENDSHIP_INVITEEID\", \"PENDFRIENDSHIP\");\n dropIndex(statement, \"PENDFRIENDSHIP_INVITERID\", \"PENDFRIENDSHIP\");\n dropIndex(statement, \"MANIPULATION_RID\", \"MANIPULATION\");\n dropIndex(statement, \"MANIPULATION_CREATORID\", \"MANIPULATION\");\n dropIndex(statement, \"RESOURCES_WALLUSERID\", \"RESOURCES\");\n dropIndex(statement, \"RESOURCE_CREATORID\", \"RESOURCES\");\n \n //Drop Tables\n dropTable(statement, \"CONFFRIENDSHIP\");\n dropTable(statement, \"PENDFRIENDSHIP\");\n dropTable(statement, \"MANIPULATION\");\n dropTable(statement, \"RESOURCES\");\n dropTable(statement, \"USERS\");\n \n //Create Tables\n statement.executeUpdate(\"CREATE TABLE CONFFRIENDSHIP \" + \"(INVITERID INTEGER NOT NULL, \" + \"INVITEEID INTEGER NOT NULL, \" + \"PRIMARY KEY (INVITERID, INVITEEID))\");\n statement.executeUpdate(\"CREATE TABLE PENDFRIENDSHIP \" + \"(INVITERID INTEGER NOT NULL, \" + \"INVITEEID INTEGER NOT NULL, \" + \"PRIMARY KEY (INVITERID, INVITEEID))\");\n statement.executeUpdate(\"CREATE TABLE MANIPULATION \" + \"(MID INTEGER NOT NULL, \" + \"MODIFIERID INTEGER NOT NULL, \" + \"RID INTEGER NOT NULL, \" + \"CREATORID INTEGER NOT NULL, \" + \"TIMESTAMP VARCHAR(200), \" + \"TYPE VARCHAR(200), \" + \"CONTENT VARCHAR(200), \" + \"PRIMARY KEY (MID,RID))\");\n statement.executeUpdate(\"CREATE TABLE RESOURCES \" + \"(RID INTEGER NOT NULL , \" + \"CREATORID INTEGER NOT NULL, \" + \"WALLUSERID INTEGER NOT NULL, \" + \"TYPE VARCHAR(200), \" + \"BODY VARCHAR(200), \" + \"DOC VARCHAR(200), \" + \"PRIMARY KEY (RID))\");\n statement.executeUpdate(\"CREATE TABLE USERS \" + \"(USERID INTEGER NOT NULL , \" + \"USERNAME VARCHAR(200), \" + \"PW VARCHAR(200), \" + \"FNAME VARCHAR(200), \" + \"LNAME VARCHAR(200), \" + \"GENDER VARCHAR(200),\" + \"DOB VARCHAR(200), \" + \"JDATE VARCHAR(200), \" + \"LDATE VARCHAR(200), \" + \"ADDRESS VARCHAR(200),\" + \"EMAIL VARCHAR(200), \" + \"TEL VARCHAR(200), \" + \"PRIMARY KEY (USERID))\");\n \n //Add Foreign Keys\n statement.executeUpdate(\"ALTER TABLE CONFFRIENDSHIP \" + \"ADD CONSTRAINT CONFFRIENDSHIP_USERS_FK1 FOREIGN KEY (INVITERID)\" + \"REFERENCES USERS (USERID) ON DELETE CASCADE\");\n statement.executeUpdate(\"ALTER TABLE CONFFRIENDSHIP \" + \"ADD CONSTRAINT CONFFRIENDSHIP_USERS_FK2 FOREIGN KEY (INVITEEID)\" + \"REFERENCES USERS (USERID) ON DELETE NO ACTION\");\n statement.executeUpdate(\"ALTER TABLE PENDFRIENDSHIP \" + \"ADD CONSTRAINT PENDFRIENDSHIP_USERS_FK1 FOREIGN KEY (INVITERID)\" + \"REFERENCES USERS (USERID) ON DELETE CASCADE\");\n statement.executeUpdate(\"ALTER TABLE PENDFRIENDSHIP \" + \"ADD CONSTRAINT PENDFRIENDSHIP_USERS_FK2 FOREIGN KEY (INVITEEID)\" + \"REFERENCES USERS (USERID) ON DELETE NO ACTION\");\n statement.executeUpdate(\"ALTER TABLE MANIPULATION \" + \"ADD CONSTRAINT MANIPULATION_RESOURCES_FK1 FOREIGN KEY (RID)\" + \"REFERENCES RESOURCES (RID) ON DELETE CASCADE\");\n statement.executeUpdate(\"ALTER TABLE MANIPULATION \" + \"ADD CONSTRAINT MANIPULATION_USERS_FK1 FOREIGN KEY (CREATORID)\" + \"REFERENCES USERS (USERID) ON DELETE NO ACTION\");\n statement.executeUpdate(\"ALTER TABLE MANIPULATION \" + \"ADD CONSTRAINT MANIPULATION_USERS_FK2 FOREIGN KEY (MODIFIERID)\" + \"REFERENCES USERS (USERID) ON DELETE NO ACTION\");\n statement.executeUpdate(\"ALTER TABLE RESOURCES \" + \"ADD CONSTRAINT RESOURCES_USERS_FK1 FOREIGN KEY (CREATORID)\" + \"REFERENCES USERS (USERID) ON DELETE CASCADE\");\n statement.executeUpdate(\"ALTER TABLE RESOURCES \" + \"ADD CONSTRAINT RESOURCES_USERS_FK2 FOREIGN KEY (WALLUSERID)\" + \"REFERENCES USERS (USERID) ON DELETE NO ACTION\");\n \n //Create Indexes\n buildIndexes(null);\n }\n catch (SQLException ex)\n {\n Logger.getLogger(WindowsAzureClientInit.class.getName()).log(Level.SEVERE, null, ex);\n System.out.println(\"Error in creating schema!\");\n }\n }", "public void createTable() throws LRException\n\t{\n\t\tgetBackground();\n\t\tDataHRecordData myData=(DataHRecordData)getData();\n\t\t// Create a new (empty) record\n\t\tcreate(new Hashtable(),myData);\n\t\tif (myData.record==null) throw new LRException(DataRMessages.nullRecord(getName()));\n\t\ttry\n\t\t{\n\t\t\tbackground.newTransaction();\n\t\t\tmyData.record.createNewTable(background.getClient(),true);\n\t\t}\n\t\tcatch (LDBException e) { setStatus(e); }\n\t}", "public boolean createTable(String input) throws IOException{\n\t\tString orgQuery = input;\n\t\torgQuery = orgQuery.trim();\n\t\tString query = input.toLowerCase().trim();\n\t\tboolean queryFailed = false;\n\t\t//Schema Instance \n\t\tSchema currentSchema = Schema.getSchemaInstance();\n\t\tString currentSchemaName = currentSchema.getCurrentSchema();\n\n\t\t//TableSchemaManager Instance\n\t\tTableSchemaManager currentTableSchemaManager = TableSchemaManager.getTableSchemaManagerInstance();\n\n\t\t//Extracting Table name\n\t\ttableName = orgQuery.substring(query.indexOf(\"table \")+6,query.indexOf(\"(\")).trim();\n\n\t\t//Updating SCHEMA.TABLE.TBL\n\t\tif(updateInformationSchemaTable()){\n\t\t\tqueryFailed = true;\n\t\t\treturn queryFailed;\n\t\t}\n\n\t\t//Extracting Table contents\n\t\tString tableContentsWithQuotes = orgQuery.substring(orgQuery.indexOf(\"(\")+1,orgQuery.length());\n\t\tString tableContents = tableContentsWithQuotes.replace(\"))\", \")\");\n\t\ttableContents = tableContents.trim();\n\n\t\tTableSchemaManager.ordinalMap = new TreeMap<Integer,List<String>>();\n\t\tTableSchemaManager.tableMap = new TreeMap<String,TreeMap<Integer,List<String>>>();\n\t\t\n\t\t//Creating n instances of Table helper\n\t\tString[] createTableContents = tableContents.split(\"\\\\,\"); \n\t\tnoOfColumns = createTableContents.length;\n\t\tCreateTableHelper[] th = new CreateTableHelper[noOfColumns];\n\n\t\t\n\t\t//Handles single row of Create Table \n\t\tfor(int item = 0; item < noOfColumns ; item++){\n\t\t\tth[item] = new CreateTableHelper(); \n\t\t\t//To remove any leading or trailing spaces\n\t\t\tcreateTableContents[item] = createTableContents[item].trim();\n\t\t\tString columnName = createTableContents[item].substring(0, createTableContents[item].indexOf(\" \"));\n\t\t\tth[item].setColumnName(columnName);\n\n\t\t\t//Setting Primary Key\n\t\t\tString primaryKeyExp = \"(.*)[pP][rR][iI][mM][aA][rR][yY](.*)\";\n\t\t\tif (createTableContents[item].matches(primaryKeyExp))\n\t\t\t\tth[item].setPrimaryKey(true);\n\t\t\telse\n\t\t\t\tth[item].setPrimaryKey(false);\n\n\t\t\t//Setting Null Value\t\n\t\t\tString notNullExp = \"(.*)[nN][uU][lL][lL](.*)\";\n\t\t\tif (createTableContents[item].matches(notNullExp))\n\t\t\t\tth[item].setNull(true);\n\t\t\telse\n\t\t\t\tth[item].setNull(false);\n\n\t\t\t//Extracting data types \n\t\t\t//BYTE\n\t\t\tString byteExp = \"(.*)[bB][yY][tT][eE](.*)\";\n\t\t\tif (createTableContents[item].matches(byteExp)){\n\t\t\t\tth[item].setDataType(\"BYTE\");\n\t\t\t}\n\t\t\t//SHORT\n\t\t\tString shortExp = \"(.*)[sS][hH][oO][rR][tT](.*)\";\n\t\t\tif (createTableContents[item].matches(shortExp)){\n\t\t\t\tth[item].setDataType(\"SHORT\");\n\t\t\t}\n\t\t\t//INT\n\t\t\tString intExp = \"(.*)[iI][nN][tT](.*)\";\n\t\t\tif (createTableContents[item].matches(intExp)){\n\t\t\t\tth[item].setDataType(\"INT\");\n\t\t\t}\n\t\t\t//LONG\n\t\t\tString longExp = \"(.*)[lL][oO][nN][gG](.*)\";\n\t\t\tif (createTableContents[item].matches(longExp)){\n\t\t\t\tth[item].setDataType(\"LONG\");\n\t\t\t}\n\t\t\t//CHAR\n\t\t\tString charExp = \"(.*)[cC][hH][aA][rR](.*)\";\n\t\t\tif (createTableContents[item].matches(charExp)){\n\t\t\t\tString size = createTableContents[item].substring(createTableContents[item].indexOf(\"(\")+1, createTableContents[item].indexOf(\")\"));\n\t\t\t\tth[item].setDataType(\"CHAR(\" + size + \")\");\n\t\t\t}\n\t\t\t//VARCHAR\n\t\t\tString varcharExp = \"(.*)[vV][aA][rR][cC][hH][aA][rR](.*)\";\n\t\t\tif (createTableContents[item].matches(varcharExp)){\n\t\t\t\tString size = createTableContents[item].substring(createTableContents[item].indexOf(\"(\")+1, createTableContents[item].indexOf(\")\"));\n\t\t\t\tth[item].setDataType(\"VARCHAR(\" + size + \")\");\n\t\t\t}\n\t\t\t//FLOAT\n\t\t\tString floatExp = \"(.*)[fF][lL][oO][aA][tT](.*)\";\n\t\t\tif (createTableContents[item].matches(floatExp)){\n\t\t\t\tth[item].setDataType(\"FLOAT\");\t\t\t\t\n\t\t\t}\n\t\t\t//DOUBLE\n\t\t\tString doubleExp = \"(.*)[dD][oO][uU][bB][lL][eE](.*)\";\n\t\t\tif (createTableContents[item].matches(doubleExp)){\n\t\t\t\tth[item].setDataType(\"DOUBLE\");\n\t\t\t}\n\t\t\t//DATETIME\n\t\t\tString dateTimeExp = \"(.*)[dD][aA][tT][eE][tT][iI][mM][eE](.*)\";\n\t\t\tif (createTableContents[item].matches(dateTimeExp)){\n\t\t\t\tth[item].setDataType(\"DATETIME\");\n\t\t\t}\n\t\t\t//DATE\n\t\t\tString dateExp = \"(.*)[dD][aA][tT][eE](.*)\";\n\t\t\tif (createTableContents[item].matches(dateExp)){\n\t\t\t\tth[item].setDataType(\"DATE\");\n\t\t\t}\n\n\t\t\tcurrentTableSchemaManager.newTableSchema(\n\t\t\t\t\ttableName,\n\t\t\t\t\titem,\n\t\t\t\t\tth[item].getColumnName(),\n\t\t\t\t\tth[item].getDataType(),\n\t\t\t\t\tth[item].isNull(),\n\t\t\t\t\tth[item].isPrimaryKey()\n\t\t\t\t\t);\n\n\t\t\t//Updating SCHEMA.COLUMNS.TBL\n\t\t\tupdateInformationSchemaColumn(\n\t\t\t\t\tth[item].getColumnName(),\n\t\t\t\t\titem,\n\t\t\t\t\tth[item].getDataType(),\n\t\t\t\t\tth[item].isNull(),\n\t\t\t\t\tth[item].isPrimaryKey()\n\t\t\t\t\t);\n\t\t\t//Create tables to insert index\n\t\t\tString newTableIndexName = currentSchemaName + \".\" + tableName + \".\" +th[item].getColumnName()+ \".tbl.ndx\";\n\t\t\tRandomAccessFile newTableIndexFile = new RandomAccessFile(newTableIndexName, \"rw\");\n\t\t\tnewTableIndexFile.close();\n\n\t\t}\n\n\t\tTableSchemaManager.tableMap.put(tableName, TableSchemaManager.ordinalMap);\n\t\tcurrentTableSchemaManager.updateTableSchema(currentSchemaName,tableName);\n\t\t\n\t\t//Create tables to insert data \n\t\tString newTableDataName = currentSchemaName + \".\" + tableName + \".tbl\";\n\t\tRandomAccessFile newTableDataFile = new RandomAccessFile(newTableDataName, \"rw\");\n\t\tnewTableDataFile.close();\n\t\treturn queryFailed;\n\t}", "public String createDSIndex(String dsID, String dschemaID, String attriName);", "private void createStressTestControlTable() {\n Column runId = new Column(\"RUN_ID\");\n runId.setMappedType(\"INTEGER\");\n runId.setPrimaryKey(true);\n runId.setRequired(true);\n Column clientCommitSleepMs = new Column(\"CLIENT_COMMIT_SLEEP_MS\");\n clientCommitSleepMs.setMappedType(\"BIGINT\");\n Column clientCommitRows = new Column(\"CLIENT_COMMIT_ROWS\");\n clientCommitRows.setMappedType(\"BIGINT\");\n Column serverCommitSleepMs = new Column(\"SERVER_COMMIT_SLEEP_MS\");\n serverCommitSleepMs.setMappedType(\"BIGINT\");\n Column serverCommitRows = new Column(\"SERVER_COMMIT_ROWS\");\n serverCommitRows.setMappedType(\"BIGINT\");\n Column payloadColumns = new Column(\"PAYLOAD_COLUMNS\");\n payloadColumns.setMappedType(\"INTEGER\");\n Column initialSeedSize = new Column(\"INITIAL_SEED_SIZE\");\n initialSeedSize.setMappedType(\"BIGINT\");\n Column duration = new Column(\"DURATION_MINUTES\");\n duration.setMappedType(\"BIGINT\");\n\n Table table = new Table(STRESS_TEST_CONTROL, runId, clientCommitSleepMs, clientCommitRows, serverCommitSleepMs, serverCommitRows,\n payloadColumns, initialSeedSize, duration);\n engine.getDatabasePlatform().createTables(true, true, table);\n }", "@Override\r\n\tpublic void create() {\n\r\n\t}", "Statement createStatement();", "Statement createStatement();", "Statement createStatement();", "public void doCreateTable();", "@Override\n public Pipe execute(DBMS engine) throws DBxicException {\n engine.storManager.createTable(table);\n engine.catalog.saveCatalog();\n return new MessageThroughPipe(\"Table \" + table.getName() + \" successfully created\");\n }", "@Override\n public void setUp() throws SQLException {\n connection.createStatement().executeUpdate(\n \"CREATE TABLE IF NOT EXISTS \\\"ENTRY\\\" (\" +\n \"\\\"SHARED_ID\\\" SERIAL PRIMARY KEY, \" +\n \"\\\"TYPE\\\" VARCHAR, \" +\n \"\\\"VERSION\\\" INTEGER DEFAULT 1)\");\n\n connection.createStatement().executeUpdate(\n \"CREATE TABLE IF NOT EXISTS \\\"FIELD\\\" (\" +\n \"\\\"ENTRY_SHARED_ID\\\" INTEGER REFERENCES \\\"ENTRY\\\"(\\\"SHARED_ID\\\") ON DELETE CASCADE, \" +\n \"\\\"NAME\\\" VARCHAR, \" +\n \"\\\"VALUE\\\" TEXT)\");\n\n connection.createStatement().executeUpdate(\n \"CREATE TABLE IF NOT EXISTS \\\"METADATA\\\" (\"\n + \"\\\"KEY\\\" VARCHAR,\"\n + \"\\\"VALUE\\\" TEXT)\");\n }", "private void m14053d() {\n try {\n File file = new File(f18051l);\n File file2 = new File(f18052m);\n if (!file.exists()) {\n file.mkdirs();\n }\n if (!file2.exists()) {\n file2.createNewFile();\n }\n if (file2.exists()) {\n SQLiteDatabase openOrCreateDatabase = SQLiteDatabase.openOrCreateDatabase(file2, null);\n openOrCreateDatabase.execSQL(\"CREATE TABLE IF NOT EXISTS bdcltb09(id CHAR(40) PRIMARY KEY,time DOUBLE,tag DOUBLE, type DOUBLE , ac INT);\");\n openOrCreateDatabase.execSQL(\"CREATE TABLE IF NOT EXISTS wof(id CHAR(15) PRIMARY KEY,mktime DOUBLE,time DOUBLE, ac INT, bc INT, cc INT);\");\n openOrCreateDatabase.setVersion(1);\n openOrCreateDatabase.close();\n }\n this.f18053a = true;\n } catch (Exception e) {\n }\n }", "interface WithDtu {\n /**\n * Sets the total shared DTU for the SQL Azure Database Elastic Pool.\n *\n * @param dtu total shared DTU for the SQL Azure Database Elastic Pool\n * @return The next stage of the definition.\n */\n @Deprecated\n SqlElasticPoolOperations.DefinitionStages.WithCreate withDtu(int dtu);\n }", "@POST\n @Produces({\"application/json\"})\n public String createDb() throws WebApplicationException {\n HibernateEntityManager emAdm = PersistenceManager.getInstance().getEntityManagerAdmin();\n SQLQuery qCreate = emAdm.getSession().createSQLQuery(\"CREATE DATABASE test_jeff template=postgis\");\n try{\n qCreate.executeUpdate();\n }catch(SQLGrammarException e){\n System.out.println(\"Error !!\" + e.getSQLException());\n emAdm.close();\n return e.getSQLException().getLocalizedMessage();\n }\n emAdm.close();\n Map properties = new HashMap();\n //change the connection string to the new db\n properties.put(\"hibernate.connection.url\", \"jdbc:postgresql_postGIS://192.168.12.36:5432/test_jeff\");\n EntityManagerFactory emf = Persistence.createEntityManagerFactory(\"dataPU\", properties); \n return \"Yeah\";\n }", "public abstract void createTables() throws DataServiceException;", "@Override\n\tpublic void create () {\n\n\t}", "@Test\n public void shouldCreateEpiDataGathering() {\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(0));\n\n Case caze = TestEntityCreator.createCase();\n TestEntityCreator.createEpiDataGathering(caze);\n\n // Assure that the burial has been successfully created\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(1));\n }", "Udt createUdt();", "OperacionColeccion createOperacionColeccion();", "public void create(AttributeList attributeList)\n {\n\n super.create(attributeList); \n \n OADBTransaction transaction = getOADBTransaction();\n \n // DEFAULT: supplier id is obtained from the table's sequence\n Number supplierId = transaction.getSequenceValue(\"FWK_TBX_SUPPLIERS_S\");\n setSupplierId(supplierId);\n\n // DEFAULT: start date should be set to sysdate\n setStartDate(transaction.getCurrentDBDate());\n\n \n }", "Definition createDefinition();", "H1 createH1();", "private static void createDatabase(String restrictedUser) throws ArcException {\n\t\tGenericPreparedStatementBuilder query;\n\n\t\t// clean database\n\t\tquery = new GenericPreparedStatementBuilder();\n\t\tquery.append(\"DROP SCHEMA IF EXISTS \" + DataObjectService.ARC_METADATA_SCHEMA + \" CASCADE;\");\n\t\tquery.append(\"DROP SCHEMA IF EXISTS \" + testSandbox1 + \" CASCADE;\");\n\t\tquery.append(\"DROP SCHEMA IF EXISTS public CASCADE;\");\n\t\tUtilitaireDao.get(0).executeRequest(c, query);\n\t\t\n\t\tBddPatcher patcher=new BddPatcher();\n\t\tpatcher.getProperties().setGitCommitId(newVersion);\n\t\tpatcher.getProperties().setDatabaseRestrictedUsername(userWithRestrictedRights);\n\n\t\t// metadata schema creation\n\t\tpatcher.bddScript(c);\n\t\t// sandbox schema creation\n\t\tpatcher.bddScript(c, testSandbox1, testSandbox2, testSandbox8);\n\t\t\n\t}", "Operacion createOperacion();", "private synchronized String processCreate(String query) {\r\n\t\tString[] valuesCommand = query.split(\" \");\r\n\t\tif ( valuesCommand.length != 3 )\r\n\t\t\treturn \"ERROR Bad syntaxe command CREATE - Usage : CREATE id initial_solde\";\r\n\t\tString id = valuesCommand[1];\r\n\t\tif ( this.bank.existAccount(id) ) {\r\n\t\t\treturn \"ERROR Account alwready exist\";\r\n\t\t}\r\n\t\tdouble number = Double.valueOf(valuesCommand[2]);\r\n\t\tthis.bank.createAccount(id, number);\r\n\t\treturn \"OK \" + this.bank.getLastOperation(id);\r\n\t}", "public void createNewSchema() throws SQLException {\n ResultSet resultSet = databaseStatement.executeQuery(\"select count(datname) from pg_database\");\n int uniqueID = 0;\n if(resultSet.next()) {\n uniqueID = resultSet.getInt(1);\n }\n if(uniqueID != 0) {\n uniqueID++;\n databaseStatement.executeQuery(\"CREATE DATABASE OSM\"+uniqueID+\";\");\n }\n }", "int insert(Lbt72TesuryoSumDPkey record);", "@Test(timeout = 4000)\n public void test124() throws Throwable {\n DefaultDBTable defaultDBTable0 = new DefaultDBTable();\n MockPrintWriter mockPrintWriter0 = new MockPrintWriter(\"Illegal column type format: \");\n String[] stringArray0 = new String[9];\n DBUniqueConstraint dBUniqueConstraint0 = new DBUniqueConstraint(defaultDBTable0, \"66i,cw\", true, stringArray0);\n NameSpec nameSpec0 = NameSpec.ALWAYS;\n SQLUtil.renderCreateTable(defaultDBTable0, true, nameSpec0, mockPrintWriter0);\n assertEquals(\"table\", defaultDBTable0.getObjectType());\n }", "int insert(NjProductTaticsRelation record);", "public de.uni_koblenz.jgralabtest.schemas.gretl.pddsl.Chassis createChassis();", "int insert(Disease record);", "private void creates() {\n \tDBPeer.fetchTableColumns();\n \tDBPeer.fetchTableRows();\n \tDBPeer.fetchTableIndexes();\n \t\n for (int i = 0; i < creates.size(); i++) {\n creates.get(i).init();\n }\n \n DBPeer.updateTableColumns();\n DBPeer.updateTableRows();\n DBPeer.updateTableIndexes();\n }", "InstAssignIndex createInstAssignIndex();", "WithCreate withCreationData(CreationData creationData);", "@Before\n public void createAndFillTable() {\n try {\n DBhandler dBhandler = new DBhandler(h2DbConnection);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "DataCfgTableInfo createTableIfNotExists(String dataCfgOid);", "H2 createH2();", "int insert(Lbm83ChohyokanriPkey record);", "HdbSequenceModel createHdbSequenceModel();", "DL createDL();", "For createFor();", "public org.oep.cmon.dao.tlct.model.DanhMucGiayTo create(long id);", "private Builder() {\n super(org.apache.gora.cascading.test.storage.TestRow.SCHEMA$);\n }", "public void createExempleDirect(ExempleDirect exempleDirect) throws DaoException;", "int insertSelective(NjProductTaticsRelation record);", "BIG createBIG();", "private void CreateDataIngestors() throws isisicatclient.IcatException_Exception {\n Grouping dataIngestors = new Grouping();\r\n dataIngestors.name = \"DataIngestors\";\r\n dataIngestors.id = port.create(sessionId, dataIngestors);\r\n dataIngestors = (Grouping) port.search(sessionId, \"Grouping[name='DataIngestors']\").get(0);\r\n\r\n List<String> ingestorTables = port.getEntityNames();\r\n\r\n ingestorTables.remove(\"Facility\");\r\n\r\n List<EntityBaseBean> ingestorRules = new ArrayList<>();\r\n for (String table : ingestorTables) {\r\n Rule rule = new Rule();\r\n rule.grouping = dataIngestors;\r\n rule.crudFlags = \"CRUD\"; //no delete permission for ingestors\r\n rule.what = table;\r\n ingestorRules.add(rule);\r\n }\r\n port.createMany(sessionId, ingestorRules);\r\n }", "H4 createH4();", "int insert(OrgIntegralDeductRule record);", "public void createDataTable() {\r\n Log.d(TAG, \"creating table\");\r\n String queryStr = \"\";\r\n String[] colNames = {Constants.COLUMN_NAME_ACC_X, Constants.COLUMN_NAME_ACC_Y, Constants.COLUMN_NAME_ACC_Z};\r\n queryStr += \"create table if not exists \" + Constants.TABLE_NAME;\r\n queryStr += \" ( id INTEGER PRIMARY KEY AUTOINCREMENT, \";\r\n for (int i = 1; i <= 50; i++) {\r\n for (int j = 0; j < 3; j++)\r\n queryStr += colNames[j] + \"_\" + i + \" real, \";\r\n }\r\n queryStr += Constants.COLUMN_NAME_ACTIVITY + \" text );\";\r\n execute(queryStr);\r\n Log.d(TAG, \"created table\");\r\n try {\r\n ContentValues values = new ContentValues();\r\n values.put(\"id\", 0);\r\n insertRowInTable(Constants.TABLE_NAME, values);\r\n Log.d(TAG,\"created hist table\");\r\n }catch (Exception e){\r\n Log.d(TAG,Constants.TABLE_NAME + \" table already exists\");\r\n }\r\n }", "public static void main(String[] args) {\n\t\tCreateTable createTable = new CreateTable();\n\n\t\tCity city = new City();\n\t\tcity.setId(1);\n\t\tcreateTable.execute(city);\n\n\t\tProvince province = new Province();\n\t\tprovince.setId(1);\n\t\tcreateTable.execute(province);\n\n\t\tTown town = new Town();\n\t\ttown.setId(1);\n\t\tcreateTable.execute(town);\n\n\t\tDetail detail = new Detail();\n\t\tdetail.setId(1);\n\t\tcreateTable.execute(detail);\n\n\t\tOrder order = new Order();\n\t\torder.setId(1);\n\t\tcreateTable.execute(order);\n\n\t\tBrand2 brand2 = new Brand2();\n\t\tbrand2.setId(1);\n\t\tcreateTable.execute(brand2);\n\n\t\tColor color = new Color();\n\t\tcolor.setId(1);\n\t\tcreateTable.execute(color);\n\n\t\tFeature feature = new Feature();\n\t\tfeature.setId(1);\n\t\tcreateTable.execute(feature);\n\n\t\tImg img = new Img();\n\t\timg.setId(1);\n\t\tcreateTable.execute(img);\n\n\t\tSku sku = new Sku();\n\t\tsku.setId(1);\n\t\tcreateTable.execute(sku);\n\n\t\tType type = new Type();\n\t\ttype.setId(1);\n\t\tcreateTable.execute(type);\n\n\t\tAddr addr = new Addr();\n\t\taddr.setId(1);\n\t\tcreateTable.execute(addr);\n\t\tcreateTable.execute(new Buyer());\n\n\t\t// 商品编号 商品名称 图片 新品 热卖 推荐 上下架 操作选项\n\t\tProduct product = new Product();\n\t\tproduct.setId(001);\n\t\tproduct.setNo(UUID.randomUUID().toString());\n\t\tproduct.setName(\"依琦莲2014瑜伽服套装新款 瑜珈健身服三件套 广场舞蹈服装 女瑜伽服送胸垫 长袖紫色\");\n\t\tproduct.setWeight(56.00);\n\t\tproduct.setIsNew(1); // 1是 0否\n\t\tproduct.setIsHot(1);\n\t\tproduct.setCreateTime(new Date());\n\t\tproduct.setCheckUserId(\"\");\n\t\tproduct.setCheckTime(new Date());\n\t\tproduct.setCreateUserId(\"\");\n\t\tproduct.setIsShow(1);\n\t\tproduct.setIsDel(1);\n\t\tproduct.setTypeId(1);\n\t\tproduct.setBrandId(1);\n\t\tproduct.setKeywords(\"\");\n\t\tproduct.setSales(36);\n\t\tproduct.setDescription(\"不是东西\");\n\t\tproduct.setPackageList(\"\");\n\t\tproduct.setFeature(\"头角狰狞\");\n\t\tproduct.setColor(\"blue\");\n\t\tproduct.setSize(\"L\"); // S,L,XXL\n\t\tcreateTable.execute(product);\n\n\t\t// insert into\n\t\t// Product(id,no,name,weight,isNew,isHot,sales,description,feature,size)value(1,\"11xzc3568\",\"依琦莲2014瑜伽服套装新款女瑜伽服送胸垫\n\t\t// 长袖紫色\",36.12,1,1,110,\"不是东西\",\"头角狰狞\",\"blue\",\"L\");\n\n\t\tEmployee employee = new Employee();\n\t\temployee.setId(1);\n\t\tcreateTable.execute(employee);\n\n\t}", "Vaisseau_ordonneeLaPlusHaute createVaisseau_ordonneeLaPlusHaute();", "private void createCheckingAccountsTable() {\n\t\ttry {\n\t\t\tStatement stmt = this.conn.createStatement();\n\t\t\tstmt.executeUpdate(\"CREATE TABLE checkingAccounts \"\n\t\t\t\t\t+ \"(id BIGINT GENERATED ALWAYS AS IDENTITY ( START WITH 1000000001, INCREMENT BY 1 ), \" + \"owner INT, \"\n\t\t\t\t\t+ \"balance DOUBLE, \" + \"intRate DOUBLE, \"\n\t\t\t\t\t+ \"timeCreated BIGINT, \" + \"lastPaidInterest DOUBLE, \"\n\t\t\t\t\t+ \"dateOfLastPaidInterest BIGINT)\");\n\t\t\tconn.commit();\n\t\t\tSystem.out.println(\"Created table checkingAccounts\");\n\t\t} catch (SQLException sqle) {\n\t\t\tSystem.err.println(\"Creation of checkingAccounts table FAILED\");\n\t\t\tSystem.err.println(sqle);\n\t\t}\n\t}", "@Ignore\n @Test\n public void testCreateIndex() {\n System.out.println(\"createIndex\");\n Util.commonServiceIPs=\"127.0.0.1\";\n \n EntityManager em=Util.getEntityManagerFactory(100).createEntityManager();\n EntityManager platformEm = Util.getPlatformEntityManagerFactory().createEntityManager();\n \n Client client = ESUtil.getClient(em,platformEm,1,false);\n \n RuntimeContext.dataobjectTypes = Util.getDataobjectTypes();\n String indexName = \"test000000\";\n try {\n ESUtil.createIndex(platformEm, client, indexName, true);\n }\n catch(Exception e)\n {\n \n }\n \n\n }", "public void createVirtualTable(){\n\n\t\t\n\t\tif(DBHandler.getConnection()==null){\n\t\t\treturn;\n\t\t}\n\n\t\tif(DBHandler.tableExists(name())){\n\t\t\treturn;\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tStatement s = DBHandler.getConnection().createStatement();\n\t\t\ts.execute(\"create virtual table \"+name()+\" using fts4(\"+struct()+\")\");\n\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\tMainFrame.print(e.getMessage());\n\t\t}\n\t}", "public int create (Section section) throws DataAccessException;", "protected abstract void createAttributes();", "private MetaSparqlRequest createInsertMT1() {\n\t\tString sparqlStr = \"\"+\n\t\t\t\t\"PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>\\r\\n\" + \n\t\t\t\t\"PREFIX ub: \"+_ontology+\"\\r\\n\" + \n\t\t\t\t\"INSERT DATA { GRAPH \"+_graph+\" { \"+\n\t\t\t\tbuilderBindInsert\n\t\t\t\t+\" } }\";\n\t\t\n\t\tSparqlObj sparql= new SparqlObj(sparqlStr) ;\n\t\tEndPoint endPointHost= new EndPoint(_protocol,_host,_port,\"/update\");\n\t\tMetaSparqlRequest msr = new MetaSparqlRequest(new SparqlRequest(sparql,endPointHost));\n\t\tmsr.setTripleInsert(createTripleBaseMT1());\n\t\treturn msr;\n\t}", "public void createTables(){\n Map<String, String> name_type_map = new HashMap<>();\n List<String> primaryKey = new ArrayList<>();\n try {\n name_type_map.put(KEY_SINK_NAME, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_SINK_ADDRESS, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_SINK_DETAIL, MyDatabase.TYPE_VARCHAR);\n primaryKey.add(KEY_SINK_ADDRESS);\n myDatabase.createTable(TABLE_SINK, name_type_map, primaryKey, null);\n }catch (MySQLException e){ //数据表已存在\n e.print();\n }\n try {\n name_type_map.clear();\n name_type_map.put(KEY_NODE_NAME, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_PARENT, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_DETAIL, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_ADDRESS,MyDatabase.TYPE_VARCHAR);\n primaryKey.clear();\n primaryKey.add(KEY_NODE_PARENT);\n primaryKey.add(KEY_NODE_ADDRESS);\n myDatabase.createTable(TABLE_NODE, name_type_map, primaryKey, null);\n }catch (MySQLException e){\n e.print();\n }\n\n try {\n name_type_map.clear();\n name_type_map.put(KEY_NODE_ADDRESS, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_PARENT, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_DATA_TIME, MyDatabase.TYPE_TIMESTAMP);\n name_type_map.put(KEY_DATA_VAL, MyDatabase.TYPE_FLOAT);\n primaryKey.clear();\n primaryKey.add(KEY_DATA_TIME);\n primaryKey.add(KEY_NODE_ADDRESS);\n primaryKey.add(KEY_NODE_PARENT);\n myDatabase.createTable(TABLE_DATA, name_type_map, primaryKey, null);\n }catch (MySQLException e) {\n e.print();\n }\n }", "int insert(ec_environment record);", "public void setup() throws SQLException {\n // Create ACARS table\n final String createTableSQL = \"CREATE TABLE IF NOT EXISTS ACARS (\"\n + \"date DATE, time TIME, frequency CHAR(7), \"\n + \"registration VARCHAR(7), flight CHAR(6), \"\n + \"mode CHAR, label CHAR(2), blockId CHAR, msgId CHAR(4), \"\n + \"text VARCHAR(255), \"\n + \"PRIMARY KEY (date, registration, flight, mode, label, blockId, msgId), \"\n + \"INDEX datetime_idx (date, time), \"\n + \"INDEX registration_idx (registration), \"\n + \"INDEX flight_idx (flight)\"\n + \")\";\n\n final Statement createTableStmt = connection.createStatement();\n createTableStmt.execute(createTableSQL);\n }", "TableInstance createTableInstance();", "private String createTableSQL()\n\t{\n\t\tStringBuffer str = new StringBuffer();\n\n\t\t// Keep track of the list of fields\n\t\tList<String> listFields = new ArrayList<String>();\n\n\t\t// Table command\n\t\tstr.append(\"CREATE TABLE \" + getFullPath() + \"( \");\n\t\tstr.append(createStandardGZFields());\n\n\t\t// Loop through all InputFields\n\t\tfor (InputFieldSet fieldSet : function.getInputFieldSets())\n\t\t{\n\t\t\tfor (InputField inputField : fieldSet.getInputFields())\n\t\t\t{\n\t\t\t\t// Phase 2 does not support repeating fields being journalled\n\t\t\t\tif (!Field.isRepeating(inputField))\n\t\t\t\t{\n\t\t\t\t\t// Field\n\t\t\t\t\tString fieldName = SQLToolbox.cvtToSQLFieldName(inputField.getId());\n\n\t\t\t\t\t// add if not yet existing\n\t\t\t\t\tif (listFields.indexOf(fieldName) == -1)\n\t\t\t\t\t{\n\t\t\t\t\t\tstr.append(\", \");\n\t\t\t\t\t\tString fieldDataType = inputField.getDataType();\n\t\t\t\t\t\tString fieldType = SQLToolbox.cvtToSQLFieldType(fieldDataType, inputField.getSize(), inputField\n\t\t\t\t\t\t\t\t\t\t.getDecimals());\n\t\t\t\t\t\tString fieldDefault = SQLToolbox.cvtToSQLDefault(fieldDataType);\n\t\t\t\t\t\tstr.append(fieldName + \" \" + fieldType + \" \" + \" not null default \" + fieldDefault);\n\t\t\t\t\t\tlistFields.add(fieldName);\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// End\n\t\tstr.append(\" ) \");\n\t\t// RCDFMT \" + getJournalRcdName());\n\n\t\treturn str.toString();\n\t}", "public org.oep.cmon.dao.dvc.model.ThuTuc2GiayTo create(long id);" ]
[ "0.6137034", "0.6020893", "0.5953024", "0.5871004", "0.58520657", "0.5824135", "0.5783128", "0.5781292", "0.5779935", "0.5768486", "0.57018137", "0.569296", "0.5677845", "0.566757", "0.56516117", "0.5639093", "0.56084186", "0.5601316", "0.55988264", "0.5587084", "0.5586368", "0.5579563", "0.55671966", "0.5562383", "0.55537105", "0.55511224", "0.5550222", "0.5547236", "0.55009055", "0.54889506", "0.5482187", "0.54807544", "0.5465443", "0.5454913", "0.54468626", "0.5434606", "0.5426381", "0.54197514", "0.5414243", "0.54073745", "0.5402808", "0.5390703", "0.5390526", "0.5390526", "0.5390526", "0.538945", "0.53878444", "0.53796816", "0.5375914", "0.53748345", "0.53730184", "0.5365049", "0.5364833", "0.5364805", "0.536257", "0.5361029", "0.5360632", "0.53598887", "0.5350994", "0.5339128", "0.5338244", "0.53296435", "0.5321595", "0.5320979", "0.53194505", "0.5318698", "0.5313326", "0.53126156", "0.53099495", "0.5306004", "0.5300889", "0.5293614", "0.529321", "0.52883255", "0.5281361", "0.5281042", "0.527843", "0.5270345", "0.526982", "0.52697945", "0.52608657", "0.5259804", "0.52563196", "0.5249798", "0.5247741", "0.5239433", "0.5224713", "0.5224455", "0.5222238", "0.5221105", "0.521778", "0.5213034", "0.5211071", "0.52098143", "0.5208245", "0.5207931", "0.52069414", "0.5205663", "0.52015704", "0.5196995", "0.5195414" ]
0.0
-1
CREATE BY ANH DUC
Optional<Account> findById(Long id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int createTable(HbaseObj t);", "private void processCreate() throws HsqlException {\n\n boolean unique = false;\n int tableType;\n boolean isTempTable = false;\n String token;\n\n session.checkAdmin();\n session.checkDDLWrite();\n session.setScripting(true);\n\n if (tokenizer.isGetThis(Token.T_GLOBAL)) {\n tokenizer.getThis(Token.T_TEMPORARY);\n\n isTempTable = true;\n } else if (tokenizer.isGetThis(Token.T_TEMP)) {\n isTempTable = true;\n } else if (tokenizer.isGetThis(Token.T_TEMPORARY)) {\n isTempTable = true;\n }\n\n token = tokenizer.getSimpleToken();\n\n switch (Token.get(token)) {\n\n // table\n case Token.MEMORY :\n tokenizer.getThis(Token.T_TABLE);\n case Token.TABLE :\n tableType = isTempTable ? Table.TEMP_TABLE\n : database.getDefaultTableType();\n\n processCreateTable(tableType);\n\n return;\n\n case Token.CACHED :\n if (isTempTable) {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n\n tokenizer.getThis(Token.T_TABLE);\n processCreateTable(Table.CACHED_TABLE);\n\n return;\n\n case Token.TEXT :\n if (isTempTable) {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n\n tokenizer.getThis(Token.T_TABLE);\n processCreateTable(Table.TEXT_TABLE);\n\n return;\n\n default :\n if (isTempTable) {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n }\n\n switch (Token.get(token)) {\n\n // other objects\n case Token.ALIAS :\n processCreateAlias();\n break;\n\n case Token.SEQUENCE :\n processCreateSequence();\n break;\n\n case Token.SCHEMA :\n session.setScripting(false);\n processCreateSchema();\n break;\n\n case Token.TRIGGER :\n processCreateTrigger();\n break;\n\n case Token.USER :\n processCreateUser();\n break;\n\n case Token.ROLE :\n database.getGranteeManager().addRole(getUserIdentifier());\n break;\n\n case Token.VIEW :\n processCreateView();\n break;\n\n // index\n case Token.UNIQUE :\n unique = true;\n\n tokenizer.getThis(Token.T_INDEX);\n\n //fall thru\n case Token.INDEX :\n processCreateIndex(unique);\n break;\n\n default : {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n }\n }", "void create(DataTableDef def) throws IOException;", "CreationData creationData();", "protected abstract D createData();", "FromTable createFromTable();", "public void create() {\n\t\t\n\t}", "public void create() {\n\t\t\tdb.execSQL(AGENCYDB_CREATE+\".separete,.import agency.txt agency\");\n\t\t\tdb.execSQL(STOPSDB_CREATE+\".separete,.import stop_times.txt stop_times\");\n\t\t\t\n\t\t\t// Add 2 agencies for testing\n\t\t\t\n\t\t\t\n\t\t\tdb.setVersion(DATABASE_VERSION);\n\t\t}", "HdbdtiModel createHdbdtiModel();", "HdbSequenceElements createHdbSequenceElements();", "DD createDD();", "TD createTD();", "public String createTable(){\r\n return \"CREATE TABLE Doctor \" +\r\n \"(idDoctor decimal primary key, \" +\r\n \"firstNameDoctor char(14), \" +\r\n \"lastNameDoctor char(14), \" +\r\n \"costPerVisit integer,\" +\r\n \"qualification varchar(32))\";\r\n }", "private void createCDAccountsTable() {\n\t\ttry {\n\t\t\tStatement stmt = this.conn.createStatement();\n\t\t\tstmt.executeUpdate(\"CREATE TABLE cdAccounts \"\n\t\t\t\t\t+ \"(id BIGINT GENERATED ALWAYS AS IDENTITY ( START WITH 3000000001, INCREMENT BY 1 ), \" + \"owner INT, \"\n\t\t\t\t\t+ \"term INT, \" + \"balance DOUBLE, \" + \"intRate DOUBLE, \"\n\t\t\t\t\t+ \"timeCreated BIGINT, \" + \"lastPaidInterest DOUBLE, \"\n\t\t\t\t\t+ \"dateOfLastPaidInterest BIGINT)\");\n\t\t\tconn.commit();\n\t\t\tSystem.out.println(\"Created table cdAccounts\");\n\t\t} catch (SQLException sqle) {\n\t\t\tSystem.err.println(\"Creation of cdAccounts table FAILED\");\n\t\t\tSystem.err.println(sqle);\n\t\t}\n\t}", "public void createDienst()\n\t{\n\t\twriteDb(\"INSERT INTO dienstleistung (Bezeichnung, Preis)\" + \"VALUES('\" + typ + \"', '\" + preis +\"')\", getWriteCon());\n\t\tcommitDbConnection(getWriteCon());\n\t}", "public void create(){}", "@Override\n\tpublic String createTable() {\n\t\t\t\treturn \"CREATE TABLE history_table_view(id number(8) primary key not null ,sqltext text, pointid varchar2(1024), type varchar2(100))\";\n\t}", "public static void createTable() {\n\n // Create statement\n Statement statement = null;\n try {\n statement = Database.getDatabase().getConnection().createStatement();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n // Attempt to create table\n try {\n statement.execute(\n \"CREATE TABLE \" + Constants.SANITATION_TABLE + \"(\" +\n \"requestID INT PRIMARY KEY GENERATED ALWAYS AS IDENTITY (START WITH 1, INCREMENT BY 1),\" +\n \"nodeID VARCHAR(100) References \" + Constants.LOCATION_TABLE + \" (nodeID), \" +\n \"priority VARCHAR(10), \" +\n \"status VARCHAR(100), \" +\n \"description VARCHAR(100), \" +\n \"requesterID INT REFERENCES \" + Constants.USERS_TABLE + \"(userID), \" +\n \"requestTime TIMESTAMP, \" +\n \"servicerID INT REFERENCES \" + Constants.USERS_TABLE + \"(userID), \" +\n \"claimedTime TIMESTAMP, \" +\n \"completedTime TIMESTAMP, \" +\n \"CONSTRAINT priority_enum CHECK (priority in ('LOW', 'MEDIUM', 'HIGH')), \" +\n \"CONSTRAINT status_enum CHECK (status in ('INCOMPLETE', 'COMPLETE')))\"\n );\n } catch (SQLException | NullPointerException e) {\n e.printStackTrace();\n }\n }", "BTable createBTable();", "@Override\r\n\tpublic void create() {\n\t\t\r\n\t}", "@Override\n\tpublic void create() {\n\t\t\n\t}", "public abstract Anuncio creaAnuncioTematico();", "long createDatabase(long actor, String nameToDisplay, long proteinDBType, long sizeInBytes, boolean bPublic, boolean bReversed, ExperimentCategory category);", "TABLE createTABLE();", "private void processCreateTable(int type) throws HsqlException {\n\n String token = tokenizer.getName();\n HsqlName schemaname =\n session.getSchemaHsqlNameForWrite(tokenizer.getLongNameFirst());\n\n database.schemaManager.checkUserTableNotExists(session, token,\n schemaname.name);\n\n boolean isnamequoted = tokenizer.wasQuotedIdentifier();\n int[] pkCols = null;\n int colIndex = 0;\n boolean constraint = false;\n Table t = newTable(type, token, isnamequoted, schemaname);\n\n tokenizer.getThis(Token.T_OPENBRACKET);\n\n while (true) {\n token = tokenizer.getString();\n\n switch (Token.get(token)) {\n\n case Token.CONSTRAINT :\n case Token.PRIMARY :\n case Token.FOREIGN :\n case Token.UNIQUE :\n case Token.CHECK :\n\n // fredt@users : check for quoted reserved words used as column names\n constraint = !tokenizer.wasQuotedIdentifier()\n && !tokenizer.wasLongName();\n }\n\n tokenizer.back();\n\n if (constraint) {\n break;\n }\n\n Column newcolumn = processCreateColumn();\n\n t.addColumn(newcolumn);\n\n if (newcolumn.isPrimaryKey()) {\n Trace.check(pkCols == null, Trace.SECOND_PRIMARY_KEY,\n newcolumn.columnName.name);\n\n pkCols = new int[]{ colIndex };\n }\n\n token = tokenizer.getSimpleToken();\n\n if (token.equals(Token.T_COMMA)) {\n colIndex++;\n\n continue;\n }\n\n if (token.equals(Token.T_CLOSEBRACKET)) {\n break;\n }\n\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n\n HsqlArrayList tempConstraints = processCreateConstraints(t,\n constraint, pkCols);\n\n if (tokenizer.isGetThis(Token.T_ON)) {\n if (!t.isTemp) {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, Token.T_ON);\n }\n\n tokenizer.getThis(Token.T_COMMIT);\n\n token = tokenizer.getSimpleToken();\n\n if (token.equals(Token.T_DELETE)) {}\n else if (token.equals(Token.T_PRESERVE)) {\n t.onCommitPreserve = true;\n } else {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n\n tokenizer.getThis(Token.T_ROWS);\n }\n\n try {\n session.commit();\n\n Constraint primaryConst = (Constraint) tempConstraints.get(0);\n\n t.createPrimaryKey(null, primaryConst.core.mainColArray, true);\n\n if (primaryConst.core.mainColArray != null) {\n if (primaryConst.constName == null) {\n primaryConst.constName = t.makeSysPKName();\n }\n\n Constraint newconstraint =\n new Constraint(primaryConst.constName, t,\n t.getPrimaryIndex(),\n Constraint.PRIMARY_KEY);\n\n t.addConstraint(newconstraint);\n database.schemaManager.registerConstraintName(\n primaryConst.constName.name, t.getName());\n }\n\n for (int i = 1; i < tempConstraints.size(); i++) {\n Constraint tempConst = (Constraint) tempConstraints.get(i);\n\n if (tempConst.constType == Constraint.UNIQUE) {\n TableWorks tableWorks = new TableWorks(session, t);\n\n tableWorks.createUniqueConstraint(\n tempConst.core.mainColArray, tempConst.constName);\n\n t = tableWorks.getTable();\n }\n\n if (tempConst.constType == Constraint.FOREIGN_KEY) {\n TableWorks tableWorks = new TableWorks(session, t);\n\n tableWorks.createForeignKey(tempConst.core.mainColArray,\n tempConst.core.refColArray,\n tempConst.constName,\n tempConst.core.refTable,\n tempConst.core.deleteAction,\n tempConst.core.updateAction);\n\n t = tableWorks.getTable();\n }\n\n if (tempConst.constType == Constraint.CHECK) {\n TableWorks tableWorks = new TableWorks(session, t);\n\n tableWorks.createCheckConstraint(tempConst,\n tempConst.constName);\n\n t = tableWorks.getTable();\n }\n }\n\n database.schemaManager.linkTable(t);\n } catch (HsqlException e) {\n\n// fredt@users 20020225 - comment\n// if a HsqlException is thrown while creating table, any foreign key that has\n// been created leaves it modification to the expTable in place\n// need to undo those modifications. This should not happen in practice.\n database.schemaManager.removeExportedKeys(t);\n database.schemaManager.removeIndexNames(t.tableName);\n database.schemaManager.removeConstraintNames(t.tableName);\n\n throw e;\n }\n }", "@Override\n\tpublic void create() {\n\n\t}", "public void testCreateTable() {\n LOG.info(\"Entering testCreateTable.\");\n\n // Specify the table descriptor.\n HTableDescriptor htd = new HTableDescriptor(tableName);\n\n // Set the column family name to info.\n HColumnDescriptor hcd = new HColumnDescriptor(\"info\");\n\n // Set data encoding methods,HBase provides DIFF,FAST_DIFF,PREFIX\n // and PREFIX_TREE\n hcd.setDataBlockEncoding(DataBlockEncoding.FAST_DIFF);\n\n // Set compression methods, HBase provides two default compression\n // methods:GZ and SNAPPY\n // GZ has the highest compression rate,but low compression and\n // decompression effeciency,fit for cold data\n // SNAPPY has low compression rate, but high compression and\n // decompression effeciency,fit for hot data.\n // it is advised to use SANPPY\n hcd.setCompressionType(Compression.Algorithm.SNAPPY);\n\n htd.addFamily(hcd);\n\n Admin admin = null;\n try {\n // Instantiate an Admin object.\n admin = conn.getAdmin();\n if (!admin.tableExists(tableName)) {\n LOG.info(\"Creating table...\");\n admin.createTable(htd);\n LOG.info(admin.getClusterStatus());\n LOG.info(admin.listNamespaceDescriptors());\n LOG.info(\"Table created successfully.\");\n } else {\n LOG.warn(\"table already exists\");\n }\n } catch (IOException e) {\n LOG.error(\"Create table failed.\");\n } finally {\n if (admin != null) {\n try {\n // Close the Admin object.\n admin.close();\n } catch (IOException e) {\n LOG.error(\"Failed to close admin \", e);\n }\n }\n }\n LOG.info(\"Exiting testCreateTable.\");\n }", "public CreateData() {\n\t\t\n\t\t// TODO Auto-generated constructor stub\n\t}", "boolean createTable();", "@Override\r\n public Db_db createTable (Db_table table)\r\n {\r\n Db_db db = null;\r\n String query = \"CREATE TABLE IF NOT EXISTS \"+ table.getName() + \" (\"; \r\n String primaryKeyName = null;\r\n Set<Map.Entry<String, Db_tableColumn>> tableEntries;\r\n List<String> listOfUniqueKey = Lists.newArrayList();\r\n \r\n if(curConnection_ != null)\r\n {\r\n try\r\n {\r\n tableEntries = table.getEntrySet();\r\n for(Map.Entry<String, Db_tableColumn> entry: tableEntries)\r\n {\r\n Db_tableColumn entryContent = entry.getValue();\r\n \r\n if(entryContent.isPrimary() && primaryKeyName == null)\r\n {\r\n primaryKeyName = entryContent.getName();\r\n }\r\n else if(entryContent.isPrimary() && primaryKeyName != null)\r\n {\r\n throw new NumberFormatException();\r\n }\r\n \r\n if(itsAttributeMapper_ == null)\r\n {\r\n throw new NumberFormatException();\r\n }\r\n \r\n if(entryContent.isUnique())\r\n {\r\n listOfUniqueKey.add(entryContent.getName());\r\n }\r\n \r\n String mappedAttribute = this.itsAttributeMapper_.MapAttribute(entryContent.getAttributeName());\r\n if(entryContent.getAttribute().isEnum())\r\n {\r\n mappedAttribute += entryContent.getAttribute().buildEnumValueListString();\r\n }\r\n query += entryContent.getName() + \" \" + mappedAttribute \r\n + (entryContent.isAutoIncreasmnet()?\" AUTO_INCREMENT \":\" \")\r\n + (entryContent.isUnique()?\" UNIQUE, \": \", \");\r\n }\r\n \r\n query += \"PRIMARY KEY (\" + primaryKeyName + \"));\";\r\n try (Statement sm = curConnection_.createStatement()) {\r\n sm.executeUpdate(query);\r\n db = this.curDb_;\r\n }\r\n \r\n }catch(NumberFormatException e){System.out.print(e);}\r\n catch(SQLException e){System.out.print(query);this.CurConnectionFailed();}\r\n }\r\n return db;\r\n }", "public Hoppy insert(Hoppy hoppy, IdGenerateService<Long> idGenerateService) throws DataAccessException;", "interface WithCreate extends\n SqlElasticPoolOperations.DefinitionStages.WithDatabaseDtuMin,\n SqlElasticPoolOperations.DefinitionStages.WithDatabaseDtuMax,\n SqlElasticPoolOperations.DefinitionStages.WithDtu,\n SqlElasticPoolOperations.DefinitionStages.WithStorageCapacity,\n SqlElasticPoolOperations.DefinitionStages.WithDatabase,\n Resource.DefinitionWithTags<SqlElasticPoolOperations.DefinitionStages.WithCreate>,\n Creatable<SqlElasticPool> {\n }", "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:49.404 -0500\", hash_original_method = \"CD5C82C799E78C74801FDB521CEE7324\", hash_generated_method = \"CD5C82C799E78C74801FDB521CEE7324\")\n \nContext ()\n {\n copyTables();\n }", "OrTable createOrTable();", "public abstract void create();", "DT createDT();", "@Override\n public void createSchema(Properties props)\n {\n Statement statement;\n try\n {\n statement = connection.createStatement();\n \n //Drop Indexes\n dropIndex(statement, \"CONFFRIENDSHIP_INVITEEID\", \"CONFFRIENDSHIP\");\n dropIndex(statement, \"CONFFRIENDSHIP_INVITERID\", \"CONFFRIENDSHIP\");\n dropIndex(statement, \"PENDFRIENDSHIP_INVITEEID\", \"PENDFRIENDSHIP\");\n dropIndex(statement, \"PENDFRIENDSHIP_INVITERID\", \"PENDFRIENDSHIP\");\n dropIndex(statement, \"MANIPULATION_RID\", \"MANIPULATION\");\n dropIndex(statement, \"MANIPULATION_CREATORID\", \"MANIPULATION\");\n dropIndex(statement, \"RESOURCES_WALLUSERID\", \"RESOURCES\");\n dropIndex(statement, \"RESOURCE_CREATORID\", \"RESOURCES\");\n \n //Drop Tables\n dropTable(statement, \"CONFFRIENDSHIP\");\n dropTable(statement, \"PENDFRIENDSHIP\");\n dropTable(statement, \"MANIPULATION\");\n dropTable(statement, \"RESOURCES\");\n dropTable(statement, \"USERS\");\n \n //Create Tables\n statement.executeUpdate(\"CREATE TABLE CONFFRIENDSHIP \" + \"(INVITERID INTEGER NOT NULL, \" + \"INVITEEID INTEGER NOT NULL, \" + \"PRIMARY KEY (INVITERID, INVITEEID))\");\n statement.executeUpdate(\"CREATE TABLE PENDFRIENDSHIP \" + \"(INVITERID INTEGER NOT NULL, \" + \"INVITEEID INTEGER NOT NULL, \" + \"PRIMARY KEY (INVITERID, INVITEEID))\");\n statement.executeUpdate(\"CREATE TABLE MANIPULATION \" + \"(MID INTEGER NOT NULL, \" + \"MODIFIERID INTEGER NOT NULL, \" + \"RID INTEGER NOT NULL, \" + \"CREATORID INTEGER NOT NULL, \" + \"TIMESTAMP VARCHAR(200), \" + \"TYPE VARCHAR(200), \" + \"CONTENT VARCHAR(200), \" + \"PRIMARY KEY (MID,RID))\");\n statement.executeUpdate(\"CREATE TABLE RESOURCES \" + \"(RID INTEGER NOT NULL , \" + \"CREATORID INTEGER NOT NULL, \" + \"WALLUSERID INTEGER NOT NULL, \" + \"TYPE VARCHAR(200), \" + \"BODY VARCHAR(200), \" + \"DOC VARCHAR(200), \" + \"PRIMARY KEY (RID))\");\n statement.executeUpdate(\"CREATE TABLE USERS \" + \"(USERID INTEGER NOT NULL , \" + \"USERNAME VARCHAR(200), \" + \"PW VARCHAR(200), \" + \"FNAME VARCHAR(200), \" + \"LNAME VARCHAR(200), \" + \"GENDER VARCHAR(200),\" + \"DOB VARCHAR(200), \" + \"JDATE VARCHAR(200), \" + \"LDATE VARCHAR(200), \" + \"ADDRESS VARCHAR(200),\" + \"EMAIL VARCHAR(200), \" + \"TEL VARCHAR(200), \" + \"PRIMARY KEY (USERID))\");\n \n //Add Foreign Keys\n statement.executeUpdate(\"ALTER TABLE CONFFRIENDSHIP \" + \"ADD CONSTRAINT CONFFRIENDSHIP_USERS_FK1 FOREIGN KEY (INVITERID)\" + \"REFERENCES USERS (USERID) ON DELETE CASCADE\");\n statement.executeUpdate(\"ALTER TABLE CONFFRIENDSHIP \" + \"ADD CONSTRAINT CONFFRIENDSHIP_USERS_FK2 FOREIGN KEY (INVITEEID)\" + \"REFERENCES USERS (USERID) ON DELETE NO ACTION\");\n statement.executeUpdate(\"ALTER TABLE PENDFRIENDSHIP \" + \"ADD CONSTRAINT PENDFRIENDSHIP_USERS_FK1 FOREIGN KEY (INVITERID)\" + \"REFERENCES USERS (USERID) ON DELETE CASCADE\");\n statement.executeUpdate(\"ALTER TABLE PENDFRIENDSHIP \" + \"ADD CONSTRAINT PENDFRIENDSHIP_USERS_FK2 FOREIGN KEY (INVITEEID)\" + \"REFERENCES USERS (USERID) ON DELETE NO ACTION\");\n statement.executeUpdate(\"ALTER TABLE MANIPULATION \" + \"ADD CONSTRAINT MANIPULATION_RESOURCES_FK1 FOREIGN KEY (RID)\" + \"REFERENCES RESOURCES (RID) ON DELETE CASCADE\");\n statement.executeUpdate(\"ALTER TABLE MANIPULATION \" + \"ADD CONSTRAINT MANIPULATION_USERS_FK1 FOREIGN KEY (CREATORID)\" + \"REFERENCES USERS (USERID) ON DELETE NO ACTION\");\n statement.executeUpdate(\"ALTER TABLE MANIPULATION \" + \"ADD CONSTRAINT MANIPULATION_USERS_FK2 FOREIGN KEY (MODIFIERID)\" + \"REFERENCES USERS (USERID) ON DELETE NO ACTION\");\n statement.executeUpdate(\"ALTER TABLE RESOURCES \" + \"ADD CONSTRAINT RESOURCES_USERS_FK1 FOREIGN KEY (CREATORID)\" + \"REFERENCES USERS (USERID) ON DELETE CASCADE\");\n statement.executeUpdate(\"ALTER TABLE RESOURCES \" + \"ADD CONSTRAINT RESOURCES_USERS_FK2 FOREIGN KEY (WALLUSERID)\" + \"REFERENCES USERS (USERID) ON DELETE NO ACTION\");\n \n //Create Indexes\n buildIndexes(null);\n }\n catch (SQLException ex)\n {\n Logger.getLogger(WindowsAzureClientInit.class.getName()).log(Level.SEVERE, null, ex);\n System.out.println(\"Error in creating schema!\");\n }\n }", "public void createTable() throws LRException\n\t{\n\t\tgetBackground();\n\t\tDataHRecordData myData=(DataHRecordData)getData();\n\t\t// Create a new (empty) record\n\t\tcreate(new Hashtable(),myData);\n\t\tif (myData.record==null) throw new LRException(DataRMessages.nullRecord(getName()));\n\t\ttry\n\t\t{\n\t\t\tbackground.newTransaction();\n\t\t\tmyData.record.createNewTable(background.getClient(),true);\n\t\t}\n\t\tcatch (LDBException e) { setStatus(e); }\n\t}", "public boolean createTable(String input) throws IOException{\n\t\tString orgQuery = input;\n\t\torgQuery = orgQuery.trim();\n\t\tString query = input.toLowerCase().trim();\n\t\tboolean queryFailed = false;\n\t\t//Schema Instance \n\t\tSchema currentSchema = Schema.getSchemaInstance();\n\t\tString currentSchemaName = currentSchema.getCurrentSchema();\n\n\t\t//TableSchemaManager Instance\n\t\tTableSchemaManager currentTableSchemaManager = TableSchemaManager.getTableSchemaManagerInstance();\n\n\t\t//Extracting Table name\n\t\ttableName = orgQuery.substring(query.indexOf(\"table \")+6,query.indexOf(\"(\")).trim();\n\n\t\t//Updating SCHEMA.TABLE.TBL\n\t\tif(updateInformationSchemaTable()){\n\t\t\tqueryFailed = true;\n\t\t\treturn queryFailed;\n\t\t}\n\n\t\t//Extracting Table contents\n\t\tString tableContentsWithQuotes = orgQuery.substring(orgQuery.indexOf(\"(\")+1,orgQuery.length());\n\t\tString tableContents = tableContentsWithQuotes.replace(\"))\", \")\");\n\t\ttableContents = tableContents.trim();\n\n\t\tTableSchemaManager.ordinalMap = new TreeMap<Integer,List<String>>();\n\t\tTableSchemaManager.tableMap = new TreeMap<String,TreeMap<Integer,List<String>>>();\n\t\t\n\t\t//Creating n instances of Table helper\n\t\tString[] createTableContents = tableContents.split(\"\\\\,\"); \n\t\tnoOfColumns = createTableContents.length;\n\t\tCreateTableHelper[] th = new CreateTableHelper[noOfColumns];\n\n\t\t\n\t\t//Handles single row of Create Table \n\t\tfor(int item = 0; item < noOfColumns ; item++){\n\t\t\tth[item] = new CreateTableHelper(); \n\t\t\t//To remove any leading or trailing spaces\n\t\t\tcreateTableContents[item] = createTableContents[item].trim();\n\t\t\tString columnName = createTableContents[item].substring(0, createTableContents[item].indexOf(\" \"));\n\t\t\tth[item].setColumnName(columnName);\n\n\t\t\t//Setting Primary Key\n\t\t\tString primaryKeyExp = \"(.*)[pP][rR][iI][mM][aA][rR][yY](.*)\";\n\t\t\tif (createTableContents[item].matches(primaryKeyExp))\n\t\t\t\tth[item].setPrimaryKey(true);\n\t\t\telse\n\t\t\t\tth[item].setPrimaryKey(false);\n\n\t\t\t//Setting Null Value\t\n\t\t\tString notNullExp = \"(.*)[nN][uU][lL][lL](.*)\";\n\t\t\tif (createTableContents[item].matches(notNullExp))\n\t\t\t\tth[item].setNull(true);\n\t\t\telse\n\t\t\t\tth[item].setNull(false);\n\n\t\t\t//Extracting data types \n\t\t\t//BYTE\n\t\t\tString byteExp = \"(.*)[bB][yY][tT][eE](.*)\";\n\t\t\tif (createTableContents[item].matches(byteExp)){\n\t\t\t\tth[item].setDataType(\"BYTE\");\n\t\t\t}\n\t\t\t//SHORT\n\t\t\tString shortExp = \"(.*)[sS][hH][oO][rR][tT](.*)\";\n\t\t\tif (createTableContents[item].matches(shortExp)){\n\t\t\t\tth[item].setDataType(\"SHORT\");\n\t\t\t}\n\t\t\t//INT\n\t\t\tString intExp = \"(.*)[iI][nN][tT](.*)\";\n\t\t\tif (createTableContents[item].matches(intExp)){\n\t\t\t\tth[item].setDataType(\"INT\");\n\t\t\t}\n\t\t\t//LONG\n\t\t\tString longExp = \"(.*)[lL][oO][nN][gG](.*)\";\n\t\t\tif (createTableContents[item].matches(longExp)){\n\t\t\t\tth[item].setDataType(\"LONG\");\n\t\t\t}\n\t\t\t//CHAR\n\t\t\tString charExp = \"(.*)[cC][hH][aA][rR](.*)\";\n\t\t\tif (createTableContents[item].matches(charExp)){\n\t\t\t\tString size = createTableContents[item].substring(createTableContents[item].indexOf(\"(\")+1, createTableContents[item].indexOf(\")\"));\n\t\t\t\tth[item].setDataType(\"CHAR(\" + size + \")\");\n\t\t\t}\n\t\t\t//VARCHAR\n\t\t\tString varcharExp = \"(.*)[vV][aA][rR][cC][hH][aA][rR](.*)\";\n\t\t\tif (createTableContents[item].matches(varcharExp)){\n\t\t\t\tString size = createTableContents[item].substring(createTableContents[item].indexOf(\"(\")+1, createTableContents[item].indexOf(\")\"));\n\t\t\t\tth[item].setDataType(\"VARCHAR(\" + size + \")\");\n\t\t\t}\n\t\t\t//FLOAT\n\t\t\tString floatExp = \"(.*)[fF][lL][oO][aA][tT](.*)\";\n\t\t\tif (createTableContents[item].matches(floatExp)){\n\t\t\t\tth[item].setDataType(\"FLOAT\");\t\t\t\t\n\t\t\t}\n\t\t\t//DOUBLE\n\t\t\tString doubleExp = \"(.*)[dD][oO][uU][bB][lL][eE](.*)\";\n\t\t\tif (createTableContents[item].matches(doubleExp)){\n\t\t\t\tth[item].setDataType(\"DOUBLE\");\n\t\t\t}\n\t\t\t//DATETIME\n\t\t\tString dateTimeExp = \"(.*)[dD][aA][tT][eE][tT][iI][mM][eE](.*)\";\n\t\t\tif (createTableContents[item].matches(dateTimeExp)){\n\t\t\t\tth[item].setDataType(\"DATETIME\");\n\t\t\t}\n\t\t\t//DATE\n\t\t\tString dateExp = \"(.*)[dD][aA][tT][eE](.*)\";\n\t\t\tif (createTableContents[item].matches(dateExp)){\n\t\t\t\tth[item].setDataType(\"DATE\");\n\t\t\t}\n\n\t\t\tcurrentTableSchemaManager.newTableSchema(\n\t\t\t\t\ttableName,\n\t\t\t\t\titem,\n\t\t\t\t\tth[item].getColumnName(),\n\t\t\t\t\tth[item].getDataType(),\n\t\t\t\t\tth[item].isNull(),\n\t\t\t\t\tth[item].isPrimaryKey()\n\t\t\t\t\t);\n\n\t\t\t//Updating SCHEMA.COLUMNS.TBL\n\t\t\tupdateInformationSchemaColumn(\n\t\t\t\t\tth[item].getColumnName(),\n\t\t\t\t\titem,\n\t\t\t\t\tth[item].getDataType(),\n\t\t\t\t\tth[item].isNull(),\n\t\t\t\t\tth[item].isPrimaryKey()\n\t\t\t\t\t);\n\t\t\t//Create tables to insert index\n\t\t\tString newTableIndexName = currentSchemaName + \".\" + tableName + \".\" +th[item].getColumnName()+ \".tbl.ndx\";\n\t\t\tRandomAccessFile newTableIndexFile = new RandomAccessFile(newTableIndexName, \"rw\");\n\t\t\tnewTableIndexFile.close();\n\n\t\t}\n\n\t\tTableSchemaManager.tableMap.put(tableName, TableSchemaManager.ordinalMap);\n\t\tcurrentTableSchemaManager.updateTableSchema(currentSchemaName,tableName);\n\t\t\n\t\t//Create tables to insert data \n\t\tString newTableDataName = currentSchemaName + \".\" + tableName + \".tbl\";\n\t\tRandomAccessFile newTableDataFile = new RandomAccessFile(newTableDataName, \"rw\");\n\t\tnewTableDataFile.close();\n\t\treturn queryFailed;\n\t}", "public String createDSIndex(String dsID, String dschemaID, String attriName);", "private void createStressTestControlTable() {\n Column runId = new Column(\"RUN_ID\");\n runId.setMappedType(\"INTEGER\");\n runId.setPrimaryKey(true);\n runId.setRequired(true);\n Column clientCommitSleepMs = new Column(\"CLIENT_COMMIT_SLEEP_MS\");\n clientCommitSleepMs.setMappedType(\"BIGINT\");\n Column clientCommitRows = new Column(\"CLIENT_COMMIT_ROWS\");\n clientCommitRows.setMappedType(\"BIGINT\");\n Column serverCommitSleepMs = new Column(\"SERVER_COMMIT_SLEEP_MS\");\n serverCommitSleepMs.setMappedType(\"BIGINT\");\n Column serverCommitRows = new Column(\"SERVER_COMMIT_ROWS\");\n serverCommitRows.setMappedType(\"BIGINT\");\n Column payloadColumns = new Column(\"PAYLOAD_COLUMNS\");\n payloadColumns.setMappedType(\"INTEGER\");\n Column initialSeedSize = new Column(\"INITIAL_SEED_SIZE\");\n initialSeedSize.setMappedType(\"BIGINT\");\n Column duration = new Column(\"DURATION_MINUTES\");\n duration.setMappedType(\"BIGINT\");\n\n Table table = new Table(STRESS_TEST_CONTROL, runId, clientCommitSleepMs, clientCommitRows, serverCommitSleepMs, serverCommitRows,\n payloadColumns, initialSeedSize, duration);\n engine.getDatabasePlatform().createTables(true, true, table);\n }", "@Override\r\n\tpublic void create() {\n\r\n\t}", "Statement createStatement();", "Statement createStatement();", "Statement createStatement();", "public void doCreateTable();", "@Override\n public Pipe execute(DBMS engine) throws DBxicException {\n engine.storManager.createTable(table);\n engine.catalog.saveCatalog();\n return new MessageThroughPipe(\"Table \" + table.getName() + \" successfully created\");\n }", "@Override\n public void setUp() throws SQLException {\n connection.createStatement().executeUpdate(\n \"CREATE TABLE IF NOT EXISTS \\\"ENTRY\\\" (\" +\n \"\\\"SHARED_ID\\\" SERIAL PRIMARY KEY, \" +\n \"\\\"TYPE\\\" VARCHAR, \" +\n \"\\\"VERSION\\\" INTEGER DEFAULT 1)\");\n\n connection.createStatement().executeUpdate(\n \"CREATE TABLE IF NOT EXISTS \\\"FIELD\\\" (\" +\n \"\\\"ENTRY_SHARED_ID\\\" INTEGER REFERENCES \\\"ENTRY\\\"(\\\"SHARED_ID\\\") ON DELETE CASCADE, \" +\n \"\\\"NAME\\\" VARCHAR, \" +\n \"\\\"VALUE\\\" TEXT)\");\n\n connection.createStatement().executeUpdate(\n \"CREATE TABLE IF NOT EXISTS \\\"METADATA\\\" (\"\n + \"\\\"KEY\\\" VARCHAR,\"\n + \"\\\"VALUE\\\" TEXT)\");\n }", "private void m14053d() {\n try {\n File file = new File(f18051l);\n File file2 = new File(f18052m);\n if (!file.exists()) {\n file.mkdirs();\n }\n if (!file2.exists()) {\n file2.createNewFile();\n }\n if (file2.exists()) {\n SQLiteDatabase openOrCreateDatabase = SQLiteDatabase.openOrCreateDatabase(file2, null);\n openOrCreateDatabase.execSQL(\"CREATE TABLE IF NOT EXISTS bdcltb09(id CHAR(40) PRIMARY KEY,time DOUBLE,tag DOUBLE, type DOUBLE , ac INT);\");\n openOrCreateDatabase.execSQL(\"CREATE TABLE IF NOT EXISTS wof(id CHAR(15) PRIMARY KEY,mktime DOUBLE,time DOUBLE, ac INT, bc INT, cc INT);\");\n openOrCreateDatabase.setVersion(1);\n openOrCreateDatabase.close();\n }\n this.f18053a = true;\n } catch (Exception e) {\n }\n }", "interface WithDtu {\n /**\n * Sets the total shared DTU for the SQL Azure Database Elastic Pool.\n *\n * @param dtu total shared DTU for the SQL Azure Database Elastic Pool\n * @return The next stage of the definition.\n */\n @Deprecated\n SqlElasticPoolOperations.DefinitionStages.WithCreate withDtu(int dtu);\n }", "@POST\n @Produces({\"application/json\"})\n public String createDb() throws WebApplicationException {\n HibernateEntityManager emAdm = PersistenceManager.getInstance().getEntityManagerAdmin();\n SQLQuery qCreate = emAdm.getSession().createSQLQuery(\"CREATE DATABASE test_jeff template=postgis\");\n try{\n qCreate.executeUpdate();\n }catch(SQLGrammarException e){\n System.out.println(\"Error !!\" + e.getSQLException());\n emAdm.close();\n return e.getSQLException().getLocalizedMessage();\n }\n emAdm.close();\n Map properties = new HashMap();\n //change the connection string to the new db\n properties.put(\"hibernate.connection.url\", \"jdbc:postgresql_postGIS://192.168.12.36:5432/test_jeff\");\n EntityManagerFactory emf = Persistence.createEntityManagerFactory(\"dataPU\", properties); \n return \"Yeah\";\n }", "public abstract void createTables() throws DataServiceException;", "@Override\n\tpublic void create () {\n\n\t}", "@Test\n public void shouldCreateEpiDataGathering() {\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(0));\n\n Case caze = TestEntityCreator.createCase();\n TestEntityCreator.createEpiDataGathering(caze);\n\n // Assure that the burial has been successfully created\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(1));\n }", "Udt createUdt();", "OperacionColeccion createOperacionColeccion();", "public void create(AttributeList attributeList)\n {\n\n super.create(attributeList); \n \n OADBTransaction transaction = getOADBTransaction();\n \n // DEFAULT: supplier id is obtained from the table's sequence\n Number supplierId = transaction.getSequenceValue(\"FWK_TBX_SUPPLIERS_S\");\n setSupplierId(supplierId);\n\n // DEFAULT: start date should be set to sysdate\n setStartDate(transaction.getCurrentDBDate());\n\n \n }", "Definition createDefinition();", "H1 createH1();", "private static void createDatabase(String restrictedUser) throws ArcException {\n\t\tGenericPreparedStatementBuilder query;\n\n\t\t// clean database\n\t\tquery = new GenericPreparedStatementBuilder();\n\t\tquery.append(\"DROP SCHEMA IF EXISTS \" + DataObjectService.ARC_METADATA_SCHEMA + \" CASCADE;\");\n\t\tquery.append(\"DROP SCHEMA IF EXISTS \" + testSandbox1 + \" CASCADE;\");\n\t\tquery.append(\"DROP SCHEMA IF EXISTS public CASCADE;\");\n\t\tUtilitaireDao.get(0).executeRequest(c, query);\n\t\t\n\t\tBddPatcher patcher=new BddPatcher();\n\t\tpatcher.getProperties().setGitCommitId(newVersion);\n\t\tpatcher.getProperties().setDatabaseRestrictedUsername(userWithRestrictedRights);\n\n\t\t// metadata schema creation\n\t\tpatcher.bddScript(c);\n\t\t// sandbox schema creation\n\t\tpatcher.bddScript(c, testSandbox1, testSandbox2, testSandbox8);\n\t\t\n\t}", "Operacion createOperacion();", "private synchronized String processCreate(String query) {\r\n\t\tString[] valuesCommand = query.split(\" \");\r\n\t\tif ( valuesCommand.length != 3 )\r\n\t\t\treturn \"ERROR Bad syntaxe command CREATE - Usage : CREATE id initial_solde\";\r\n\t\tString id = valuesCommand[1];\r\n\t\tif ( this.bank.existAccount(id) ) {\r\n\t\t\treturn \"ERROR Account alwready exist\";\r\n\t\t}\r\n\t\tdouble number = Double.valueOf(valuesCommand[2]);\r\n\t\tthis.bank.createAccount(id, number);\r\n\t\treturn \"OK \" + this.bank.getLastOperation(id);\r\n\t}", "public void createNewSchema() throws SQLException {\n ResultSet resultSet = databaseStatement.executeQuery(\"select count(datname) from pg_database\");\n int uniqueID = 0;\n if(resultSet.next()) {\n uniqueID = resultSet.getInt(1);\n }\n if(uniqueID != 0) {\n uniqueID++;\n databaseStatement.executeQuery(\"CREATE DATABASE OSM\"+uniqueID+\";\");\n }\n }", "int insert(Lbt72TesuryoSumDPkey record);", "@Test(timeout = 4000)\n public void test124() throws Throwable {\n DefaultDBTable defaultDBTable0 = new DefaultDBTable();\n MockPrintWriter mockPrintWriter0 = new MockPrintWriter(\"Illegal column type format: \");\n String[] stringArray0 = new String[9];\n DBUniqueConstraint dBUniqueConstraint0 = new DBUniqueConstraint(defaultDBTable0, \"66i,cw\", true, stringArray0);\n NameSpec nameSpec0 = NameSpec.ALWAYS;\n SQLUtil.renderCreateTable(defaultDBTable0, true, nameSpec0, mockPrintWriter0);\n assertEquals(\"table\", defaultDBTable0.getObjectType());\n }", "int insert(NjProductTaticsRelation record);", "public de.uni_koblenz.jgralabtest.schemas.gretl.pddsl.Chassis createChassis();", "int insert(Disease record);", "private void creates() {\n \tDBPeer.fetchTableColumns();\n \tDBPeer.fetchTableRows();\n \tDBPeer.fetchTableIndexes();\n \t\n for (int i = 0; i < creates.size(); i++) {\n creates.get(i).init();\n }\n \n DBPeer.updateTableColumns();\n DBPeer.updateTableRows();\n DBPeer.updateTableIndexes();\n }", "InstAssignIndex createInstAssignIndex();", "WithCreate withCreationData(CreationData creationData);", "@Before\n public void createAndFillTable() {\n try {\n DBhandler dBhandler = new DBhandler(h2DbConnection);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "DataCfgTableInfo createTableIfNotExists(String dataCfgOid);", "H2 createH2();", "int insert(Lbm83ChohyokanriPkey record);", "HdbSequenceModel createHdbSequenceModel();", "DL createDL();", "For createFor();", "public org.oep.cmon.dao.tlct.model.DanhMucGiayTo create(long id);", "private Builder() {\n super(org.apache.gora.cascading.test.storage.TestRow.SCHEMA$);\n }", "public void createExempleDirect(ExempleDirect exempleDirect) throws DaoException;", "int insertSelective(NjProductTaticsRelation record);", "BIG createBIG();", "private void CreateDataIngestors() throws isisicatclient.IcatException_Exception {\n Grouping dataIngestors = new Grouping();\r\n dataIngestors.name = \"DataIngestors\";\r\n dataIngestors.id = port.create(sessionId, dataIngestors);\r\n dataIngestors = (Grouping) port.search(sessionId, \"Grouping[name='DataIngestors']\").get(0);\r\n\r\n List<String> ingestorTables = port.getEntityNames();\r\n\r\n ingestorTables.remove(\"Facility\");\r\n\r\n List<EntityBaseBean> ingestorRules = new ArrayList<>();\r\n for (String table : ingestorTables) {\r\n Rule rule = new Rule();\r\n rule.grouping = dataIngestors;\r\n rule.crudFlags = \"CRUD\"; //no delete permission for ingestors\r\n rule.what = table;\r\n ingestorRules.add(rule);\r\n }\r\n port.createMany(sessionId, ingestorRules);\r\n }", "H4 createH4();", "int insert(OrgIntegralDeductRule record);", "public void createDataTable() {\r\n Log.d(TAG, \"creating table\");\r\n String queryStr = \"\";\r\n String[] colNames = {Constants.COLUMN_NAME_ACC_X, Constants.COLUMN_NAME_ACC_Y, Constants.COLUMN_NAME_ACC_Z};\r\n queryStr += \"create table if not exists \" + Constants.TABLE_NAME;\r\n queryStr += \" ( id INTEGER PRIMARY KEY AUTOINCREMENT, \";\r\n for (int i = 1; i <= 50; i++) {\r\n for (int j = 0; j < 3; j++)\r\n queryStr += colNames[j] + \"_\" + i + \" real, \";\r\n }\r\n queryStr += Constants.COLUMN_NAME_ACTIVITY + \" text );\";\r\n execute(queryStr);\r\n Log.d(TAG, \"created table\");\r\n try {\r\n ContentValues values = new ContentValues();\r\n values.put(\"id\", 0);\r\n insertRowInTable(Constants.TABLE_NAME, values);\r\n Log.d(TAG,\"created hist table\");\r\n }catch (Exception e){\r\n Log.d(TAG,Constants.TABLE_NAME + \" table already exists\");\r\n }\r\n }", "public static void main(String[] args) {\n\t\tCreateTable createTable = new CreateTable();\n\n\t\tCity city = new City();\n\t\tcity.setId(1);\n\t\tcreateTable.execute(city);\n\n\t\tProvince province = new Province();\n\t\tprovince.setId(1);\n\t\tcreateTable.execute(province);\n\n\t\tTown town = new Town();\n\t\ttown.setId(1);\n\t\tcreateTable.execute(town);\n\n\t\tDetail detail = new Detail();\n\t\tdetail.setId(1);\n\t\tcreateTable.execute(detail);\n\n\t\tOrder order = new Order();\n\t\torder.setId(1);\n\t\tcreateTable.execute(order);\n\n\t\tBrand2 brand2 = new Brand2();\n\t\tbrand2.setId(1);\n\t\tcreateTable.execute(brand2);\n\n\t\tColor color = new Color();\n\t\tcolor.setId(1);\n\t\tcreateTable.execute(color);\n\n\t\tFeature feature = new Feature();\n\t\tfeature.setId(1);\n\t\tcreateTable.execute(feature);\n\n\t\tImg img = new Img();\n\t\timg.setId(1);\n\t\tcreateTable.execute(img);\n\n\t\tSku sku = new Sku();\n\t\tsku.setId(1);\n\t\tcreateTable.execute(sku);\n\n\t\tType type = new Type();\n\t\ttype.setId(1);\n\t\tcreateTable.execute(type);\n\n\t\tAddr addr = new Addr();\n\t\taddr.setId(1);\n\t\tcreateTable.execute(addr);\n\t\tcreateTable.execute(new Buyer());\n\n\t\t// 商品编号 商品名称 图片 新品 热卖 推荐 上下架 操作选项\n\t\tProduct product = new Product();\n\t\tproduct.setId(001);\n\t\tproduct.setNo(UUID.randomUUID().toString());\n\t\tproduct.setName(\"依琦莲2014瑜伽服套装新款 瑜珈健身服三件套 广场舞蹈服装 女瑜伽服送胸垫 长袖紫色\");\n\t\tproduct.setWeight(56.00);\n\t\tproduct.setIsNew(1); // 1是 0否\n\t\tproduct.setIsHot(1);\n\t\tproduct.setCreateTime(new Date());\n\t\tproduct.setCheckUserId(\"\");\n\t\tproduct.setCheckTime(new Date());\n\t\tproduct.setCreateUserId(\"\");\n\t\tproduct.setIsShow(1);\n\t\tproduct.setIsDel(1);\n\t\tproduct.setTypeId(1);\n\t\tproduct.setBrandId(1);\n\t\tproduct.setKeywords(\"\");\n\t\tproduct.setSales(36);\n\t\tproduct.setDescription(\"不是东西\");\n\t\tproduct.setPackageList(\"\");\n\t\tproduct.setFeature(\"头角狰狞\");\n\t\tproduct.setColor(\"blue\");\n\t\tproduct.setSize(\"L\"); // S,L,XXL\n\t\tcreateTable.execute(product);\n\n\t\t// insert into\n\t\t// Product(id,no,name,weight,isNew,isHot,sales,description,feature,size)value(1,\"11xzc3568\",\"依琦莲2014瑜伽服套装新款女瑜伽服送胸垫\n\t\t// 长袖紫色\",36.12,1,1,110,\"不是东西\",\"头角狰狞\",\"blue\",\"L\");\n\n\t\tEmployee employee = new Employee();\n\t\temployee.setId(1);\n\t\tcreateTable.execute(employee);\n\n\t}", "Vaisseau_ordonneeLaPlusHaute createVaisseau_ordonneeLaPlusHaute();", "private void createCheckingAccountsTable() {\n\t\ttry {\n\t\t\tStatement stmt = this.conn.createStatement();\n\t\t\tstmt.executeUpdate(\"CREATE TABLE checkingAccounts \"\n\t\t\t\t\t+ \"(id BIGINT GENERATED ALWAYS AS IDENTITY ( START WITH 1000000001, INCREMENT BY 1 ), \" + \"owner INT, \"\n\t\t\t\t\t+ \"balance DOUBLE, \" + \"intRate DOUBLE, \"\n\t\t\t\t\t+ \"timeCreated BIGINT, \" + \"lastPaidInterest DOUBLE, \"\n\t\t\t\t\t+ \"dateOfLastPaidInterest BIGINT)\");\n\t\t\tconn.commit();\n\t\t\tSystem.out.println(\"Created table checkingAccounts\");\n\t\t} catch (SQLException sqle) {\n\t\t\tSystem.err.println(\"Creation of checkingAccounts table FAILED\");\n\t\t\tSystem.err.println(sqle);\n\t\t}\n\t}", "@Ignore\n @Test\n public void testCreateIndex() {\n System.out.println(\"createIndex\");\n Util.commonServiceIPs=\"127.0.0.1\";\n \n EntityManager em=Util.getEntityManagerFactory(100).createEntityManager();\n EntityManager platformEm = Util.getPlatformEntityManagerFactory().createEntityManager();\n \n Client client = ESUtil.getClient(em,platformEm,1,false);\n \n RuntimeContext.dataobjectTypes = Util.getDataobjectTypes();\n String indexName = \"test000000\";\n try {\n ESUtil.createIndex(platformEm, client, indexName, true);\n }\n catch(Exception e)\n {\n \n }\n \n\n }", "public void createVirtualTable(){\n\n\t\t\n\t\tif(DBHandler.getConnection()==null){\n\t\t\treturn;\n\t\t}\n\n\t\tif(DBHandler.tableExists(name())){\n\t\t\treturn;\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tStatement s = DBHandler.getConnection().createStatement();\n\t\t\ts.execute(\"create virtual table \"+name()+\" using fts4(\"+struct()+\")\");\n\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\tMainFrame.print(e.getMessage());\n\t\t}\n\t}", "public int create (Section section) throws DataAccessException;", "protected abstract void createAttributes();", "private MetaSparqlRequest createInsertMT1() {\n\t\tString sparqlStr = \"\"+\n\t\t\t\t\"PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>\\r\\n\" + \n\t\t\t\t\"PREFIX ub: \"+_ontology+\"\\r\\n\" + \n\t\t\t\t\"INSERT DATA { GRAPH \"+_graph+\" { \"+\n\t\t\t\tbuilderBindInsert\n\t\t\t\t+\" } }\";\n\t\t\n\t\tSparqlObj sparql= new SparqlObj(sparqlStr) ;\n\t\tEndPoint endPointHost= new EndPoint(_protocol,_host,_port,\"/update\");\n\t\tMetaSparqlRequest msr = new MetaSparqlRequest(new SparqlRequest(sparql,endPointHost));\n\t\tmsr.setTripleInsert(createTripleBaseMT1());\n\t\treturn msr;\n\t}", "public void createTables(){\n Map<String, String> name_type_map = new HashMap<>();\n List<String> primaryKey = new ArrayList<>();\n try {\n name_type_map.put(KEY_SINK_NAME, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_SINK_ADDRESS, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_SINK_DETAIL, MyDatabase.TYPE_VARCHAR);\n primaryKey.add(KEY_SINK_ADDRESS);\n myDatabase.createTable(TABLE_SINK, name_type_map, primaryKey, null);\n }catch (MySQLException e){ //数据表已存在\n e.print();\n }\n try {\n name_type_map.clear();\n name_type_map.put(KEY_NODE_NAME, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_PARENT, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_DETAIL, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_ADDRESS,MyDatabase.TYPE_VARCHAR);\n primaryKey.clear();\n primaryKey.add(KEY_NODE_PARENT);\n primaryKey.add(KEY_NODE_ADDRESS);\n myDatabase.createTable(TABLE_NODE, name_type_map, primaryKey, null);\n }catch (MySQLException e){\n e.print();\n }\n\n try {\n name_type_map.clear();\n name_type_map.put(KEY_NODE_ADDRESS, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_PARENT, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_DATA_TIME, MyDatabase.TYPE_TIMESTAMP);\n name_type_map.put(KEY_DATA_VAL, MyDatabase.TYPE_FLOAT);\n primaryKey.clear();\n primaryKey.add(KEY_DATA_TIME);\n primaryKey.add(KEY_NODE_ADDRESS);\n primaryKey.add(KEY_NODE_PARENT);\n myDatabase.createTable(TABLE_DATA, name_type_map, primaryKey, null);\n }catch (MySQLException e) {\n e.print();\n }\n }", "int insert(ec_environment record);", "public void setup() throws SQLException {\n // Create ACARS table\n final String createTableSQL = \"CREATE TABLE IF NOT EXISTS ACARS (\"\n + \"date DATE, time TIME, frequency CHAR(7), \"\n + \"registration VARCHAR(7), flight CHAR(6), \"\n + \"mode CHAR, label CHAR(2), blockId CHAR, msgId CHAR(4), \"\n + \"text VARCHAR(255), \"\n + \"PRIMARY KEY (date, registration, flight, mode, label, blockId, msgId), \"\n + \"INDEX datetime_idx (date, time), \"\n + \"INDEX registration_idx (registration), \"\n + \"INDEX flight_idx (flight)\"\n + \")\";\n\n final Statement createTableStmt = connection.createStatement();\n createTableStmt.execute(createTableSQL);\n }", "TableInstance createTableInstance();", "private String createTableSQL()\n\t{\n\t\tStringBuffer str = new StringBuffer();\n\n\t\t// Keep track of the list of fields\n\t\tList<String> listFields = new ArrayList<String>();\n\n\t\t// Table command\n\t\tstr.append(\"CREATE TABLE \" + getFullPath() + \"( \");\n\t\tstr.append(createStandardGZFields());\n\n\t\t// Loop through all InputFields\n\t\tfor (InputFieldSet fieldSet : function.getInputFieldSets())\n\t\t{\n\t\t\tfor (InputField inputField : fieldSet.getInputFields())\n\t\t\t{\n\t\t\t\t// Phase 2 does not support repeating fields being journalled\n\t\t\t\tif (!Field.isRepeating(inputField))\n\t\t\t\t{\n\t\t\t\t\t// Field\n\t\t\t\t\tString fieldName = SQLToolbox.cvtToSQLFieldName(inputField.getId());\n\n\t\t\t\t\t// add if not yet existing\n\t\t\t\t\tif (listFields.indexOf(fieldName) == -1)\n\t\t\t\t\t{\n\t\t\t\t\t\tstr.append(\", \");\n\t\t\t\t\t\tString fieldDataType = inputField.getDataType();\n\t\t\t\t\t\tString fieldType = SQLToolbox.cvtToSQLFieldType(fieldDataType, inputField.getSize(), inputField\n\t\t\t\t\t\t\t\t\t\t.getDecimals());\n\t\t\t\t\t\tString fieldDefault = SQLToolbox.cvtToSQLDefault(fieldDataType);\n\t\t\t\t\t\tstr.append(fieldName + \" \" + fieldType + \" \" + \" not null default \" + fieldDefault);\n\t\t\t\t\t\tlistFields.add(fieldName);\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// End\n\t\tstr.append(\" ) \");\n\t\t// RCDFMT \" + getJournalRcdName());\n\n\t\treturn str.toString();\n\t}", "public org.oep.cmon.dao.dvc.model.ThuTuc2GiayTo create(long id);" ]
[ "0.6137034", "0.6020893", "0.5953024", "0.5871004", "0.58520657", "0.5824135", "0.5783128", "0.5781292", "0.5779935", "0.5768486", "0.57018137", "0.569296", "0.5677845", "0.566757", "0.56516117", "0.5639093", "0.56084186", "0.5601316", "0.55988264", "0.5587084", "0.5586368", "0.5579563", "0.55671966", "0.5562383", "0.55537105", "0.55511224", "0.5550222", "0.5547236", "0.55009055", "0.54889506", "0.5482187", "0.54807544", "0.5465443", "0.5454913", "0.54468626", "0.5434606", "0.5426381", "0.54197514", "0.5414243", "0.54073745", "0.5402808", "0.5390703", "0.5390526", "0.5390526", "0.5390526", "0.538945", "0.53878444", "0.53796816", "0.5375914", "0.53748345", "0.53730184", "0.5365049", "0.5364833", "0.5364805", "0.536257", "0.5361029", "0.5360632", "0.53598887", "0.5350994", "0.5339128", "0.5338244", "0.53296435", "0.5321595", "0.5320979", "0.53194505", "0.5318698", "0.5313326", "0.53126156", "0.53099495", "0.5306004", "0.5300889", "0.5293614", "0.529321", "0.52883255", "0.5281361", "0.5281042", "0.527843", "0.5270345", "0.526982", "0.52697945", "0.52608657", "0.5259804", "0.52563196", "0.5249798", "0.5247741", "0.5239433", "0.5224713", "0.5224455", "0.5222238", "0.5221105", "0.521778", "0.5213034", "0.5211071", "0.52098143", "0.5208245", "0.5207931", "0.52069414", "0.5205663", "0.52015704", "0.5196995", "0.5195414" ]
0.0
-1
CREATE BY ANH DUC
Account findByEmail(String email);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int createTable(HbaseObj t);", "private void processCreate() throws HsqlException {\n\n boolean unique = false;\n int tableType;\n boolean isTempTable = false;\n String token;\n\n session.checkAdmin();\n session.checkDDLWrite();\n session.setScripting(true);\n\n if (tokenizer.isGetThis(Token.T_GLOBAL)) {\n tokenizer.getThis(Token.T_TEMPORARY);\n\n isTempTable = true;\n } else if (tokenizer.isGetThis(Token.T_TEMP)) {\n isTempTable = true;\n } else if (tokenizer.isGetThis(Token.T_TEMPORARY)) {\n isTempTable = true;\n }\n\n token = tokenizer.getSimpleToken();\n\n switch (Token.get(token)) {\n\n // table\n case Token.MEMORY :\n tokenizer.getThis(Token.T_TABLE);\n case Token.TABLE :\n tableType = isTempTable ? Table.TEMP_TABLE\n : database.getDefaultTableType();\n\n processCreateTable(tableType);\n\n return;\n\n case Token.CACHED :\n if (isTempTable) {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n\n tokenizer.getThis(Token.T_TABLE);\n processCreateTable(Table.CACHED_TABLE);\n\n return;\n\n case Token.TEXT :\n if (isTempTable) {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n\n tokenizer.getThis(Token.T_TABLE);\n processCreateTable(Table.TEXT_TABLE);\n\n return;\n\n default :\n if (isTempTable) {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n }\n\n switch (Token.get(token)) {\n\n // other objects\n case Token.ALIAS :\n processCreateAlias();\n break;\n\n case Token.SEQUENCE :\n processCreateSequence();\n break;\n\n case Token.SCHEMA :\n session.setScripting(false);\n processCreateSchema();\n break;\n\n case Token.TRIGGER :\n processCreateTrigger();\n break;\n\n case Token.USER :\n processCreateUser();\n break;\n\n case Token.ROLE :\n database.getGranteeManager().addRole(getUserIdentifier());\n break;\n\n case Token.VIEW :\n processCreateView();\n break;\n\n // index\n case Token.UNIQUE :\n unique = true;\n\n tokenizer.getThis(Token.T_INDEX);\n\n //fall thru\n case Token.INDEX :\n processCreateIndex(unique);\n break;\n\n default : {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n }\n }", "void create(DataTableDef def) throws IOException;", "CreationData creationData();", "protected abstract D createData();", "FromTable createFromTable();", "public void create() {\n\t\t\n\t}", "public void create() {\n\t\t\tdb.execSQL(AGENCYDB_CREATE+\".separete,.import agency.txt agency\");\n\t\t\tdb.execSQL(STOPSDB_CREATE+\".separete,.import stop_times.txt stop_times\");\n\t\t\t\n\t\t\t// Add 2 agencies for testing\n\t\t\t\n\t\t\t\n\t\t\tdb.setVersion(DATABASE_VERSION);\n\t\t}", "HdbdtiModel createHdbdtiModel();", "HdbSequenceElements createHdbSequenceElements();", "DD createDD();", "TD createTD();", "public String createTable(){\r\n return \"CREATE TABLE Doctor \" +\r\n \"(idDoctor decimal primary key, \" +\r\n \"firstNameDoctor char(14), \" +\r\n \"lastNameDoctor char(14), \" +\r\n \"costPerVisit integer,\" +\r\n \"qualification varchar(32))\";\r\n }", "private void createCDAccountsTable() {\n\t\ttry {\n\t\t\tStatement stmt = this.conn.createStatement();\n\t\t\tstmt.executeUpdate(\"CREATE TABLE cdAccounts \"\n\t\t\t\t\t+ \"(id BIGINT GENERATED ALWAYS AS IDENTITY ( START WITH 3000000001, INCREMENT BY 1 ), \" + \"owner INT, \"\n\t\t\t\t\t+ \"term INT, \" + \"balance DOUBLE, \" + \"intRate DOUBLE, \"\n\t\t\t\t\t+ \"timeCreated BIGINT, \" + \"lastPaidInterest DOUBLE, \"\n\t\t\t\t\t+ \"dateOfLastPaidInterest BIGINT)\");\n\t\t\tconn.commit();\n\t\t\tSystem.out.println(\"Created table cdAccounts\");\n\t\t} catch (SQLException sqle) {\n\t\t\tSystem.err.println(\"Creation of cdAccounts table FAILED\");\n\t\t\tSystem.err.println(sqle);\n\t\t}\n\t}", "public void createDienst()\n\t{\n\t\twriteDb(\"INSERT INTO dienstleistung (Bezeichnung, Preis)\" + \"VALUES('\" + typ + \"', '\" + preis +\"')\", getWriteCon());\n\t\tcommitDbConnection(getWriteCon());\n\t}", "public void create(){}", "@Override\n\tpublic String createTable() {\n\t\t\t\treturn \"CREATE TABLE history_table_view(id number(8) primary key not null ,sqltext text, pointid varchar2(1024), type varchar2(100))\";\n\t}", "public static void createTable() {\n\n // Create statement\n Statement statement = null;\n try {\n statement = Database.getDatabase().getConnection().createStatement();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n // Attempt to create table\n try {\n statement.execute(\n \"CREATE TABLE \" + Constants.SANITATION_TABLE + \"(\" +\n \"requestID INT PRIMARY KEY GENERATED ALWAYS AS IDENTITY (START WITH 1, INCREMENT BY 1),\" +\n \"nodeID VARCHAR(100) References \" + Constants.LOCATION_TABLE + \" (nodeID), \" +\n \"priority VARCHAR(10), \" +\n \"status VARCHAR(100), \" +\n \"description VARCHAR(100), \" +\n \"requesterID INT REFERENCES \" + Constants.USERS_TABLE + \"(userID), \" +\n \"requestTime TIMESTAMP, \" +\n \"servicerID INT REFERENCES \" + Constants.USERS_TABLE + \"(userID), \" +\n \"claimedTime TIMESTAMP, \" +\n \"completedTime TIMESTAMP, \" +\n \"CONSTRAINT priority_enum CHECK (priority in ('LOW', 'MEDIUM', 'HIGH')), \" +\n \"CONSTRAINT status_enum CHECK (status in ('INCOMPLETE', 'COMPLETE')))\"\n );\n } catch (SQLException | NullPointerException e) {\n e.printStackTrace();\n }\n }", "BTable createBTable();", "@Override\r\n\tpublic void create() {\n\t\t\r\n\t}", "@Override\n\tpublic void create() {\n\t\t\n\t}", "public abstract Anuncio creaAnuncioTematico();", "long createDatabase(long actor, String nameToDisplay, long proteinDBType, long sizeInBytes, boolean bPublic, boolean bReversed, ExperimentCategory category);", "TABLE createTABLE();", "private void processCreateTable(int type) throws HsqlException {\n\n String token = tokenizer.getName();\n HsqlName schemaname =\n session.getSchemaHsqlNameForWrite(tokenizer.getLongNameFirst());\n\n database.schemaManager.checkUserTableNotExists(session, token,\n schemaname.name);\n\n boolean isnamequoted = tokenizer.wasQuotedIdentifier();\n int[] pkCols = null;\n int colIndex = 0;\n boolean constraint = false;\n Table t = newTable(type, token, isnamequoted, schemaname);\n\n tokenizer.getThis(Token.T_OPENBRACKET);\n\n while (true) {\n token = tokenizer.getString();\n\n switch (Token.get(token)) {\n\n case Token.CONSTRAINT :\n case Token.PRIMARY :\n case Token.FOREIGN :\n case Token.UNIQUE :\n case Token.CHECK :\n\n // fredt@users : check for quoted reserved words used as column names\n constraint = !tokenizer.wasQuotedIdentifier()\n && !tokenizer.wasLongName();\n }\n\n tokenizer.back();\n\n if (constraint) {\n break;\n }\n\n Column newcolumn = processCreateColumn();\n\n t.addColumn(newcolumn);\n\n if (newcolumn.isPrimaryKey()) {\n Trace.check(pkCols == null, Trace.SECOND_PRIMARY_KEY,\n newcolumn.columnName.name);\n\n pkCols = new int[]{ colIndex };\n }\n\n token = tokenizer.getSimpleToken();\n\n if (token.equals(Token.T_COMMA)) {\n colIndex++;\n\n continue;\n }\n\n if (token.equals(Token.T_CLOSEBRACKET)) {\n break;\n }\n\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n\n HsqlArrayList tempConstraints = processCreateConstraints(t,\n constraint, pkCols);\n\n if (tokenizer.isGetThis(Token.T_ON)) {\n if (!t.isTemp) {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, Token.T_ON);\n }\n\n tokenizer.getThis(Token.T_COMMIT);\n\n token = tokenizer.getSimpleToken();\n\n if (token.equals(Token.T_DELETE)) {}\n else if (token.equals(Token.T_PRESERVE)) {\n t.onCommitPreserve = true;\n } else {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n\n tokenizer.getThis(Token.T_ROWS);\n }\n\n try {\n session.commit();\n\n Constraint primaryConst = (Constraint) tempConstraints.get(0);\n\n t.createPrimaryKey(null, primaryConst.core.mainColArray, true);\n\n if (primaryConst.core.mainColArray != null) {\n if (primaryConst.constName == null) {\n primaryConst.constName = t.makeSysPKName();\n }\n\n Constraint newconstraint =\n new Constraint(primaryConst.constName, t,\n t.getPrimaryIndex(),\n Constraint.PRIMARY_KEY);\n\n t.addConstraint(newconstraint);\n database.schemaManager.registerConstraintName(\n primaryConst.constName.name, t.getName());\n }\n\n for (int i = 1; i < tempConstraints.size(); i++) {\n Constraint tempConst = (Constraint) tempConstraints.get(i);\n\n if (tempConst.constType == Constraint.UNIQUE) {\n TableWorks tableWorks = new TableWorks(session, t);\n\n tableWorks.createUniqueConstraint(\n tempConst.core.mainColArray, tempConst.constName);\n\n t = tableWorks.getTable();\n }\n\n if (tempConst.constType == Constraint.FOREIGN_KEY) {\n TableWorks tableWorks = new TableWorks(session, t);\n\n tableWorks.createForeignKey(tempConst.core.mainColArray,\n tempConst.core.refColArray,\n tempConst.constName,\n tempConst.core.refTable,\n tempConst.core.deleteAction,\n tempConst.core.updateAction);\n\n t = tableWorks.getTable();\n }\n\n if (tempConst.constType == Constraint.CHECK) {\n TableWorks tableWorks = new TableWorks(session, t);\n\n tableWorks.createCheckConstraint(tempConst,\n tempConst.constName);\n\n t = tableWorks.getTable();\n }\n }\n\n database.schemaManager.linkTable(t);\n } catch (HsqlException e) {\n\n// fredt@users 20020225 - comment\n// if a HsqlException is thrown while creating table, any foreign key that has\n// been created leaves it modification to the expTable in place\n// need to undo those modifications. This should not happen in practice.\n database.schemaManager.removeExportedKeys(t);\n database.schemaManager.removeIndexNames(t.tableName);\n database.schemaManager.removeConstraintNames(t.tableName);\n\n throw e;\n }\n }", "@Override\n\tpublic void create() {\n\n\t}", "public void testCreateTable() {\n LOG.info(\"Entering testCreateTable.\");\n\n // Specify the table descriptor.\n HTableDescriptor htd = new HTableDescriptor(tableName);\n\n // Set the column family name to info.\n HColumnDescriptor hcd = new HColumnDescriptor(\"info\");\n\n // Set data encoding methods,HBase provides DIFF,FAST_DIFF,PREFIX\n // and PREFIX_TREE\n hcd.setDataBlockEncoding(DataBlockEncoding.FAST_DIFF);\n\n // Set compression methods, HBase provides two default compression\n // methods:GZ and SNAPPY\n // GZ has the highest compression rate,but low compression and\n // decompression effeciency,fit for cold data\n // SNAPPY has low compression rate, but high compression and\n // decompression effeciency,fit for hot data.\n // it is advised to use SANPPY\n hcd.setCompressionType(Compression.Algorithm.SNAPPY);\n\n htd.addFamily(hcd);\n\n Admin admin = null;\n try {\n // Instantiate an Admin object.\n admin = conn.getAdmin();\n if (!admin.tableExists(tableName)) {\n LOG.info(\"Creating table...\");\n admin.createTable(htd);\n LOG.info(admin.getClusterStatus());\n LOG.info(admin.listNamespaceDescriptors());\n LOG.info(\"Table created successfully.\");\n } else {\n LOG.warn(\"table already exists\");\n }\n } catch (IOException e) {\n LOG.error(\"Create table failed.\");\n } finally {\n if (admin != null) {\n try {\n // Close the Admin object.\n admin.close();\n } catch (IOException e) {\n LOG.error(\"Failed to close admin \", e);\n }\n }\n }\n LOG.info(\"Exiting testCreateTable.\");\n }", "public CreateData() {\n\t\t\n\t\t// TODO Auto-generated constructor stub\n\t}", "boolean createTable();", "@Override\r\n public Db_db createTable (Db_table table)\r\n {\r\n Db_db db = null;\r\n String query = \"CREATE TABLE IF NOT EXISTS \"+ table.getName() + \" (\"; \r\n String primaryKeyName = null;\r\n Set<Map.Entry<String, Db_tableColumn>> tableEntries;\r\n List<String> listOfUniqueKey = Lists.newArrayList();\r\n \r\n if(curConnection_ != null)\r\n {\r\n try\r\n {\r\n tableEntries = table.getEntrySet();\r\n for(Map.Entry<String, Db_tableColumn> entry: tableEntries)\r\n {\r\n Db_tableColumn entryContent = entry.getValue();\r\n \r\n if(entryContent.isPrimary() && primaryKeyName == null)\r\n {\r\n primaryKeyName = entryContent.getName();\r\n }\r\n else if(entryContent.isPrimary() && primaryKeyName != null)\r\n {\r\n throw new NumberFormatException();\r\n }\r\n \r\n if(itsAttributeMapper_ == null)\r\n {\r\n throw new NumberFormatException();\r\n }\r\n \r\n if(entryContent.isUnique())\r\n {\r\n listOfUniqueKey.add(entryContent.getName());\r\n }\r\n \r\n String mappedAttribute = this.itsAttributeMapper_.MapAttribute(entryContent.getAttributeName());\r\n if(entryContent.getAttribute().isEnum())\r\n {\r\n mappedAttribute += entryContent.getAttribute().buildEnumValueListString();\r\n }\r\n query += entryContent.getName() + \" \" + mappedAttribute \r\n + (entryContent.isAutoIncreasmnet()?\" AUTO_INCREMENT \":\" \")\r\n + (entryContent.isUnique()?\" UNIQUE, \": \", \");\r\n }\r\n \r\n query += \"PRIMARY KEY (\" + primaryKeyName + \"));\";\r\n try (Statement sm = curConnection_.createStatement()) {\r\n sm.executeUpdate(query);\r\n db = this.curDb_;\r\n }\r\n \r\n }catch(NumberFormatException e){System.out.print(e);}\r\n catch(SQLException e){System.out.print(query);this.CurConnectionFailed();}\r\n }\r\n return db;\r\n }", "public Hoppy insert(Hoppy hoppy, IdGenerateService<Long> idGenerateService) throws DataAccessException;", "interface WithCreate extends\n SqlElasticPoolOperations.DefinitionStages.WithDatabaseDtuMin,\n SqlElasticPoolOperations.DefinitionStages.WithDatabaseDtuMax,\n SqlElasticPoolOperations.DefinitionStages.WithDtu,\n SqlElasticPoolOperations.DefinitionStages.WithStorageCapacity,\n SqlElasticPoolOperations.DefinitionStages.WithDatabase,\n Resource.DefinitionWithTags<SqlElasticPoolOperations.DefinitionStages.WithCreate>,\n Creatable<SqlElasticPool> {\n }", "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:49.404 -0500\", hash_original_method = \"CD5C82C799E78C74801FDB521CEE7324\", hash_generated_method = \"CD5C82C799E78C74801FDB521CEE7324\")\n \nContext ()\n {\n copyTables();\n }", "OrTable createOrTable();", "public abstract void create();", "DT createDT();", "@Override\n public void createSchema(Properties props)\n {\n Statement statement;\n try\n {\n statement = connection.createStatement();\n \n //Drop Indexes\n dropIndex(statement, \"CONFFRIENDSHIP_INVITEEID\", \"CONFFRIENDSHIP\");\n dropIndex(statement, \"CONFFRIENDSHIP_INVITERID\", \"CONFFRIENDSHIP\");\n dropIndex(statement, \"PENDFRIENDSHIP_INVITEEID\", \"PENDFRIENDSHIP\");\n dropIndex(statement, \"PENDFRIENDSHIP_INVITERID\", \"PENDFRIENDSHIP\");\n dropIndex(statement, \"MANIPULATION_RID\", \"MANIPULATION\");\n dropIndex(statement, \"MANIPULATION_CREATORID\", \"MANIPULATION\");\n dropIndex(statement, \"RESOURCES_WALLUSERID\", \"RESOURCES\");\n dropIndex(statement, \"RESOURCE_CREATORID\", \"RESOURCES\");\n \n //Drop Tables\n dropTable(statement, \"CONFFRIENDSHIP\");\n dropTable(statement, \"PENDFRIENDSHIP\");\n dropTable(statement, \"MANIPULATION\");\n dropTable(statement, \"RESOURCES\");\n dropTable(statement, \"USERS\");\n \n //Create Tables\n statement.executeUpdate(\"CREATE TABLE CONFFRIENDSHIP \" + \"(INVITERID INTEGER NOT NULL, \" + \"INVITEEID INTEGER NOT NULL, \" + \"PRIMARY KEY (INVITERID, INVITEEID))\");\n statement.executeUpdate(\"CREATE TABLE PENDFRIENDSHIP \" + \"(INVITERID INTEGER NOT NULL, \" + \"INVITEEID INTEGER NOT NULL, \" + \"PRIMARY KEY (INVITERID, INVITEEID))\");\n statement.executeUpdate(\"CREATE TABLE MANIPULATION \" + \"(MID INTEGER NOT NULL, \" + \"MODIFIERID INTEGER NOT NULL, \" + \"RID INTEGER NOT NULL, \" + \"CREATORID INTEGER NOT NULL, \" + \"TIMESTAMP VARCHAR(200), \" + \"TYPE VARCHAR(200), \" + \"CONTENT VARCHAR(200), \" + \"PRIMARY KEY (MID,RID))\");\n statement.executeUpdate(\"CREATE TABLE RESOURCES \" + \"(RID INTEGER NOT NULL , \" + \"CREATORID INTEGER NOT NULL, \" + \"WALLUSERID INTEGER NOT NULL, \" + \"TYPE VARCHAR(200), \" + \"BODY VARCHAR(200), \" + \"DOC VARCHAR(200), \" + \"PRIMARY KEY (RID))\");\n statement.executeUpdate(\"CREATE TABLE USERS \" + \"(USERID INTEGER NOT NULL , \" + \"USERNAME VARCHAR(200), \" + \"PW VARCHAR(200), \" + \"FNAME VARCHAR(200), \" + \"LNAME VARCHAR(200), \" + \"GENDER VARCHAR(200),\" + \"DOB VARCHAR(200), \" + \"JDATE VARCHAR(200), \" + \"LDATE VARCHAR(200), \" + \"ADDRESS VARCHAR(200),\" + \"EMAIL VARCHAR(200), \" + \"TEL VARCHAR(200), \" + \"PRIMARY KEY (USERID))\");\n \n //Add Foreign Keys\n statement.executeUpdate(\"ALTER TABLE CONFFRIENDSHIP \" + \"ADD CONSTRAINT CONFFRIENDSHIP_USERS_FK1 FOREIGN KEY (INVITERID)\" + \"REFERENCES USERS (USERID) ON DELETE CASCADE\");\n statement.executeUpdate(\"ALTER TABLE CONFFRIENDSHIP \" + \"ADD CONSTRAINT CONFFRIENDSHIP_USERS_FK2 FOREIGN KEY (INVITEEID)\" + \"REFERENCES USERS (USERID) ON DELETE NO ACTION\");\n statement.executeUpdate(\"ALTER TABLE PENDFRIENDSHIP \" + \"ADD CONSTRAINT PENDFRIENDSHIP_USERS_FK1 FOREIGN KEY (INVITERID)\" + \"REFERENCES USERS (USERID) ON DELETE CASCADE\");\n statement.executeUpdate(\"ALTER TABLE PENDFRIENDSHIP \" + \"ADD CONSTRAINT PENDFRIENDSHIP_USERS_FK2 FOREIGN KEY (INVITEEID)\" + \"REFERENCES USERS (USERID) ON DELETE NO ACTION\");\n statement.executeUpdate(\"ALTER TABLE MANIPULATION \" + \"ADD CONSTRAINT MANIPULATION_RESOURCES_FK1 FOREIGN KEY (RID)\" + \"REFERENCES RESOURCES (RID) ON DELETE CASCADE\");\n statement.executeUpdate(\"ALTER TABLE MANIPULATION \" + \"ADD CONSTRAINT MANIPULATION_USERS_FK1 FOREIGN KEY (CREATORID)\" + \"REFERENCES USERS (USERID) ON DELETE NO ACTION\");\n statement.executeUpdate(\"ALTER TABLE MANIPULATION \" + \"ADD CONSTRAINT MANIPULATION_USERS_FK2 FOREIGN KEY (MODIFIERID)\" + \"REFERENCES USERS (USERID) ON DELETE NO ACTION\");\n statement.executeUpdate(\"ALTER TABLE RESOURCES \" + \"ADD CONSTRAINT RESOURCES_USERS_FK1 FOREIGN KEY (CREATORID)\" + \"REFERENCES USERS (USERID) ON DELETE CASCADE\");\n statement.executeUpdate(\"ALTER TABLE RESOURCES \" + \"ADD CONSTRAINT RESOURCES_USERS_FK2 FOREIGN KEY (WALLUSERID)\" + \"REFERENCES USERS (USERID) ON DELETE NO ACTION\");\n \n //Create Indexes\n buildIndexes(null);\n }\n catch (SQLException ex)\n {\n Logger.getLogger(WindowsAzureClientInit.class.getName()).log(Level.SEVERE, null, ex);\n System.out.println(\"Error in creating schema!\");\n }\n }", "public void createTable() throws LRException\n\t{\n\t\tgetBackground();\n\t\tDataHRecordData myData=(DataHRecordData)getData();\n\t\t// Create a new (empty) record\n\t\tcreate(new Hashtable(),myData);\n\t\tif (myData.record==null) throw new LRException(DataRMessages.nullRecord(getName()));\n\t\ttry\n\t\t{\n\t\t\tbackground.newTransaction();\n\t\t\tmyData.record.createNewTable(background.getClient(),true);\n\t\t}\n\t\tcatch (LDBException e) { setStatus(e); }\n\t}", "public boolean createTable(String input) throws IOException{\n\t\tString orgQuery = input;\n\t\torgQuery = orgQuery.trim();\n\t\tString query = input.toLowerCase().trim();\n\t\tboolean queryFailed = false;\n\t\t//Schema Instance \n\t\tSchema currentSchema = Schema.getSchemaInstance();\n\t\tString currentSchemaName = currentSchema.getCurrentSchema();\n\n\t\t//TableSchemaManager Instance\n\t\tTableSchemaManager currentTableSchemaManager = TableSchemaManager.getTableSchemaManagerInstance();\n\n\t\t//Extracting Table name\n\t\ttableName = orgQuery.substring(query.indexOf(\"table \")+6,query.indexOf(\"(\")).trim();\n\n\t\t//Updating SCHEMA.TABLE.TBL\n\t\tif(updateInformationSchemaTable()){\n\t\t\tqueryFailed = true;\n\t\t\treturn queryFailed;\n\t\t}\n\n\t\t//Extracting Table contents\n\t\tString tableContentsWithQuotes = orgQuery.substring(orgQuery.indexOf(\"(\")+1,orgQuery.length());\n\t\tString tableContents = tableContentsWithQuotes.replace(\"))\", \")\");\n\t\ttableContents = tableContents.trim();\n\n\t\tTableSchemaManager.ordinalMap = new TreeMap<Integer,List<String>>();\n\t\tTableSchemaManager.tableMap = new TreeMap<String,TreeMap<Integer,List<String>>>();\n\t\t\n\t\t//Creating n instances of Table helper\n\t\tString[] createTableContents = tableContents.split(\"\\\\,\"); \n\t\tnoOfColumns = createTableContents.length;\n\t\tCreateTableHelper[] th = new CreateTableHelper[noOfColumns];\n\n\t\t\n\t\t//Handles single row of Create Table \n\t\tfor(int item = 0; item < noOfColumns ; item++){\n\t\t\tth[item] = new CreateTableHelper(); \n\t\t\t//To remove any leading or trailing spaces\n\t\t\tcreateTableContents[item] = createTableContents[item].trim();\n\t\t\tString columnName = createTableContents[item].substring(0, createTableContents[item].indexOf(\" \"));\n\t\t\tth[item].setColumnName(columnName);\n\n\t\t\t//Setting Primary Key\n\t\t\tString primaryKeyExp = \"(.*)[pP][rR][iI][mM][aA][rR][yY](.*)\";\n\t\t\tif (createTableContents[item].matches(primaryKeyExp))\n\t\t\t\tth[item].setPrimaryKey(true);\n\t\t\telse\n\t\t\t\tth[item].setPrimaryKey(false);\n\n\t\t\t//Setting Null Value\t\n\t\t\tString notNullExp = \"(.*)[nN][uU][lL][lL](.*)\";\n\t\t\tif (createTableContents[item].matches(notNullExp))\n\t\t\t\tth[item].setNull(true);\n\t\t\telse\n\t\t\t\tth[item].setNull(false);\n\n\t\t\t//Extracting data types \n\t\t\t//BYTE\n\t\t\tString byteExp = \"(.*)[bB][yY][tT][eE](.*)\";\n\t\t\tif (createTableContents[item].matches(byteExp)){\n\t\t\t\tth[item].setDataType(\"BYTE\");\n\t\t\t}\n\t\t\t//SHORT\n\t\t\tString shortExp = \"(.*)[sS][hH][oO][rR][tT](.*)\";\n\t\t\tif (createTableContents[item].matches(shortExp)){\n\t\t\t\tth[item].setDataType(\"SHORT\");\n\t\t\t}\n\t\t\t//INT\n\t\t\tString intExp = \"(.*)[iI][nN][tT](.*)\";\n\t\t\tif (createTableContents[item].matches(intExp)){\n\t\t\t\tth[item].setDataType(\"INT\");\n\t\t\t}\n\t\t\t//LONG\n\t\t\tString longExp = \"(.*)[lL][oO][nN][gG](.*)\";\n\t\t\tif (createTableContents[item].matches(longExp)){\n\t\t\t\tth[item].setDataType(\"LONG\");\n\t\t\t}\n\t\t\t//CHAR\n\t\t\tString charExp = \"(.*)[cC][hH][aA][rR](.*)\";\n\t\t\tif (createTableContents[item].matches(charExp)){\n\t\t\t\tString size = createTableContents[item].substring(createTableContents[item].indexOf(\"(\")+1, createTableContents[item].indexOf(\")\"));\n\t\t\t\tth[item].setDataType(\"CHAR(\" + size + \")\");\n\t\t\t}\n\t\t\t//VARCHAR\n\t\t\tString varcharExp = \"(.*)[vV][aA][rR][cC][hH][aA][rR](.*)\";\n\t\t\tif (createTableContents[item].matches(varcharExp)){\n\t\t\t\tString size = createTableContents[item].substring(createTableContents[item].indexOf(\"(\")+1, createTableContents[item].indexOf(\")\"));\n\t\t\t\tth[item].setDataType(\"VARCHAR(\" + size + \")\");\n\t\t\t}\n\t\t\t//FLOAT\n\t\t\tString floatExp = \"(.*)[fF][lL][oO][aA][tT](.*)\";\n\t\t\tif (createTableContents[item].matches(floatExp)){\n\t\t\t\tth[item].setDataType(\"FLOAT\");\t\t\t\t\n\t\t\t}\n\t\t\t//DOUBLE\n\t\t\tString doubleExp = \"(.*)[dD][oO][uU][bB][lL][eE](.*)\";\n\t\t\tif (createTableContents[item].matches(doubleExp)){\n\t\t\t\tth[item].setDataType(\"DOUBLE\");\n\t\t\t}\n\t\t\t//DATETIME\n\t\t\tString dateTimeExp = \"(.*)[dD][aA][tT][eE][tT][iI][mM][eE](.*)\";\n\t\t\tif (createTableContents[item].matches(dateTimeExp)){\n\t\t\t\tth[item].setDataType(\"DATETIME\");\n\t\t\t}\n\t\t\t//DATE\n\t\t\tString dateExp = \"(.*)[dD][aA][tT][eE](.*)\";\n\t\t\tif (createTableContents[item].matches(dateExp)){\n\t\t\t\tth[item].setDataType(\"DATE\");\n\t\t\t}\n\n\t\t\tcurrentTableSchemaManager.newTableSchema(\n\t\t\t\t\ttableName,\n\t\t\t\t\titem,\n\t\t\t\t\tth[item].getColumnName(),\n\t\t\t\t\tth[item].getDataType(),\n\t\t\t\t\tth[item].isNull(),\n\t\t\t\t\tth[item].isPrimaryKey()\n\t\t\t\t\t);\n\n\t\t\t//Updating SCHEMA.COLUMNS.TBL\n\t\t\tupdateInformationSchemaColumn(\n\t\t\t\t\tth[item].getColumnName(),\n\t\t\t\t\titem,\n\t\t\t\t\tth[item].getDataType(),\n\t\t\t\t\tth[item].isNull(),\n\t\t\t\t\tth[item].isPrimaryKey()\n\t\t\t\t\t);\n\t\t\t//Create tables to insert index\n\t\t\tString newTableIndexName = currentSchemaName + \".\" + tableName + \".\" +th[item].getColumnName()+ \".tbl.ndx\";\n\t\t\tRandomAccessFile newTableIndexFile = new RandomAccessFile(newTableIndexName, \"rw\");\n\t\t\tnewTableIndexFile.close();\n\n\t\t}\n\n\t\tTableSchemaManager.tableMap.put(tableName, TableSchemaManager.ordinalMap);\n\t\tcurrentTableSchemaManager.updateTableSchema(currentSchemaName,tableName);\n\t\t\n\t\t//Create tables to insert data \n\t\tString newTableDataName = currentSchemaName + \".\" + tableName + \".tbl\";\n\t\tRandomAccessFile newTableDataFile = new RandomAccessFile(newTableDataName, \"rw\");\n\t\tnewTableDataFile.close();\n\t\treturn queryFailed;\n\t}", "public String createDSIndex(String dsID, String dschemaID, String attriName);", "private void createStressTestControlTable() {\n Column runId = new Column(\"RUN_ID\");\n runId.setMappedType(\"INTEGER\");\n runId.setPrimaryKey(true);\n runId.setRequired(true);\n Column clientCommitSleepMs = new Column(\"CLIENT_COMMIT_SLEEP_MS\");\n clientCommitSleepMs.setMappedType(\"BIGINT\");\n Column clientCommitRows = new Column(\"CLIENT_COMMIT_ROWS\");\n clientCommitRows.setMappedType(\"BIGINT\");\n Column serverCommitSleepMs = new Column(\"SERVER_COMMIT_SLEEP_MS\");\n serverCommitSleepMs.setMappedType(\"BIGINT\");\n Column serverCommitRows = new Column(\"SERVER_COMMIT_ROWS\");\n serverCommitRows.setMappedType(\"BIGINT\");\n Column payloadColumns = new Column(\"PAYLOAD_COLUMNS\");\n payloadColumns.setMappedType(\"INTEGER\");\n Column initialSeedSize = new Column(\"INITIAL_SEED_SIZE\");\n initialSeedSize.setMappedType(\"BIGINT\");\n Column duration = new Column(\"DURATION_MINUTES\");\n duration.setMappedType(\"BIGINT\");\n\n Table table = new Table(STRESS_TEST_CONTROL, runId, clientCommitSleepMs, clientCommitRows, serverCommitSleepMs, serverCommitRows,\n payloadColumns, initialSeedSize, duration);\n engine.getDatabasePlatform().createTables(true, true, table);\n }", "@Override\r\n\tpublic void create() {\n\r\n\t}", "Statement createStatement();", "Statement createStatement();", "Statement createStatement();", "public void doCreateTable();", "@Override\n public Pipe execute(DBMS engine) throws DBxicException {\n engine.storManager.createTable(table);\n engine.catalog.saveCatalog();\n return new MessageThroughPipe(\"Table \" + table.getName() + \" successfully created\");\n }", "@Override\n public void setUp() throws SQLException {\n connection.createStatement().executeUpdate(\n \"CREATE TABLE IF NOT EXISTS \\\"ENTRY\\\" (\" +\n \"\\\"SHARED_ID\\\" SERIAL PRIMARY KEY, \" +\n \"\\\"TYPE\\\" VARCHAR, \" +\n \"\\\"VERSION\\\" INTEGER DEFAULT 1)\");\n\n connection.createStatement().executeUpdate(\n \"CREATE TABLE IF NOT EXISTS \\\"FIELD\\\" (\" +\n \"\\\"ENTRY_SHARED_ID\\\" INTEGER REFERENCES \\\"ENTRY\\\"(\\\"SHARED_ID\\\") ON DELETE CASCADE, \" +\n \"\\\"NAME\\\" VARCHAR, \" +\n \"\\\"VALUE\\\" TEXT)\");\n\n connection.createStatement().executeUpdate(\n \"CREATE TABLE IF NOT EXISTS \\\"METADATA\\\" (\"\n + \"\\\"KEY\\\" VARCHAR,\"\n + \"\\\"VALUE\\\" TEXT)\");\n }", "private void m14053d() {\n try {\n File file = new File(f18051l);\n File file2 = new File(f18052m);\n if (!file.exists()) {\n file.mkdirs();\n }\n if (!file2.exists()) {\n file2.createNewFile();\n }\n if (file2.exists()) {\n SQLiteDatabase openOrCreateDatabase = SQLiteDatabase.openOrCreateDatabase(file2, null);\n openOrCreateDatabase.execSQL(\"CREATE TABLE IF NOT EXISTS bdcltb09(id CHAR(40) PRIMARY KEY,time DOUBLE,tag DOUBLE, type DOUBLE , ac INT);\");\n openOrCreateDatabase.execSQL(\"CREATE TABLE IF NOT EXISTS wof(id CHAR(15) PRIMARY KEY,mktime DOUBLE,time DOUBLE, ac INT, bc INT, cc INT);\");\n openOrCreateDatabase.setVersion(1);\n openOrCreateDatabase.close();\n }\n this.f18053a = true;\n } catch (Exception e) {\n }\n }", "interface WithDtu {\n /**\n * Sets the total shared DTU for the SQL Azure Database Elastic Pool.\n *\n * @param dtu total shared DTU for the SQL Azure Database Elastic Pool\n * @return The next stage of the definition.\n */\n @Deprecated\n SqlElasticPoolOperations.DefinitionStages.WithCreate withDtu(int dtu);\n }", "@POST\n @Produces({\"application/json\"})\n public String createDb() throws WebApplicationException {\n HibernateEntityManager emAdm = PersistenceManager.getInstance().getEntityManagerAdmin();\n SQLQuery qCreate = emAdm.getSession().createSQLQuery(\"CREATE DATABASE test_jeff template=postgis\");\n try{\n qCreate.executeUpdate();\n }catch(SQLGrammarException e){\n System.out.println(\"Error !!\" + e.getSQLException());\n emAdm.close();\n return e.getSQLException().getLocalizedMessage();\n }\n emAdm.close();\n Map properties = new HashMap();\n //change the connection string to the new db\n properties.put(\"hibernate.connection.url\", \"jdbc:postgresql_postGIS://192.168.12.36:5432/test_jeff\");\n EntityManagerFactory emf = Persistence.createEntityManagerFactory(\"dataPU\", properties); \n return \"Yeah\";\n }", "public abstract void createTables() throws DataServiceException;", "@Override\n\tpublic void create () {\n\n\t}", "@Test\n public void shouldCreateEpiDataGathering() {\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(0));\n\n Case caze = TestEntityCreator.createCase();\n TestEntityCreator.createEpiDataGathering(caze);\n\n // Assure that the burial has been successfully created\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(1));\n }", "Udt createUdt();", "OperacionColeccion createOperacionColeccion();", "public void create(AttributeList attributeList)\n {\n\n super.create(attributeList); \n \n OADBTransaction transaction = getOADBTransaction();\n \n // DEFAULT: supplier id is obtained from the table's sequence\n Number supplierId = transaction.getSequenceValue(\"FWK_TBX_SUPPLIERS_S\");\n setSupplierId(supplierId);\n\n // DEFAULT: start date should be set to sysdate\n setStartDate(transaction.getCurrentDBDate());\n\n \n }", "Definition createDefinition();", "H1 createH1();", "private static void createDatabase(String restrictedUser) throws ArcException {\n\t\tGenericPreparedStatementBuilder query;\n\n\t\t// clean database\n\t\tquery = new GenericPreparedStatementBuilder();\n\t\tquery.append(\"DROP SCHEMA IF EXISTS \" + DataObjectService.ARC_METADATA_SCHEMA + \" CASCADE;\");\n\t\tquery.append(\"DROP SCHEMA IF EXISTS \" + testSandbox1 + \" CASCADE;\");\n\t\tquery.append(\"DROP SCHEMA IF EXISTS public CASCADE;\");\n\t\tUtilitaireDao.get(0).executeRequest(c, query);\n\t\t\n\t\tBddPatcher patcher=new BddPatcher();\n\t\tpatcher.getProperties().setGitCommitId(newVersion);\n\t\tpatcher.getProperties().setDatabaseRestrictedUsername(userWithRestrictedRights);\n\n\t\t// metadata schema creation\n\t\tpatcher.bddScript(c);\n\t\t// sandbox schema creation\n\t\tpatcher.bddScript(c, testSandbox1, testSandbox2, testSandbox8);\n\t\t\n\t}", "Operacion createOperacion();", "private synchronized String processCreate(String query) {\r\n\t\tString[] valuesCommand = query.split(\" \");\r\n\t\tif ( valuesCommand.length != 3 )\r\n\t\t\treturn \"ERROR Bad syntaxe command CREATE - Usage : CREATE id initial_solde\";\r\n\t\tString id = valuesCommand[1];\r\n\t\tif ( this.bank.existAccount(id) ) {\r\n\t\t\treturn \"ERROR Account alwready exist\";\r\n\t\t}\r\n\t\tdouble number = Double.valueOf(valuesCommand[2]);\r\n\t\tthis.bank.createAccount(id, number);\r\n\t\treturn \"OK \" + this.bank.getLastOperation(id);\r\n\t}", "public void createNewSchema() throws SQLException {\n ResultSet resultSet = databaseStatement.executeQuery(\"select count(datname) from pg_database\");\n int uniqueID = 0;\n if(resultSet.next()) {\n uniqueID = resultSet.getInt(1);\n }\n if(uniqueID != 0) {\n uniqueID++;\n databaseStatement.executeQuery(\"CREATE DATABASE OSM\"+uniqueID+\";\");\n }\n }", "int insert(Lbt72TesuryoSumDPkey record);", "@Test(timeout = 4000)\n public void test124() throws Throwable {\n DefaultDBTable defaultDBTable0 = new DefaultDBTable();\n MockPrintWriter mockPrintWriter0 = new MockPrintWriter(\"Illegal column type format: \");\n String[] stringArray0 = new String[9];\n DBUniqueConstraint dBUniqueConstraint0 = new DBUniqueConstraint(defaultDBTable0, \"66i,cw\", true, stringArray0);\n NameSpec nameSpec0 = NameSpec.ALWAYS;\n SQLUtil.renderCreateTable(defaultDBTable0, true, nameSpec0, mockPrintWriter0);\n assertEquals(\"table\", defaultDBTable0.getObjectType());\n }", "int insert(NjProductTaticsRelation record);", "public de.uni_koblenz.jgralabtest.schemas.gretl.pddsl.Chassis createChassis();", "int insert(Disease record);", "private void creates() {\n \tDBPeer.fetchTableColumns();\n \tDBPeer.fetchTableRows();\n \tDBPeer.fetchTableIndexes();\n \t\n for (int i = 0; i < creates.size(); i++) {\n creates.get(i).init();\n }\n \n DBPeer.updateTableColumns();\n DBPeer.updateTableRows();\n DBPeer.updateTableIndexes();\n }", "InstAssignIndex createInstAssignIndex();", "WithCreate withCreationData(CreationData creationData);", "@Before\n public void createAndFillTable() {\n try {\n DBhandler dBhandler = new DBhandler(h2DbConnection);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "DataCfgTableInfo createTableIfNotExists(String dataCfgOid);", "H2 createH2();", "int insert(Lbm83ChohyokanriPkey record);", "HdbSequenceModel createHdbSequenceModel();", "DL createDL();", "For createFor();", "public org.oep.cmon.dao.tlct.model.DanhMucGiayTo create(long id);", "private Builder() {\n super(org.apache.gora.cascading.test.storage.TestRow.SCHEMA$);\n }", "public void createExempleDirect(ExempleDirect exempleDirect) throws DaoException;", "int insertSelective(NjProductTaticsRelation record);", "BIG createBIG();", "private void CreateDataIngestors() throws isisicatclient.IcatException_Exception {\n Grouping dataIngestors = new Grouping();\r\n dataIngestors.name = \"DataIngestors\";\r\n dataIngestors.id = port.create(sessionId, dataIngestors);\r\n dataIngestors = (Grouping) port.search(sessionId, \"Grouping[name='DataIngestors']\").get(0);\r\n\r\n List<String> ingestorTables = port.getEntityNames();\r\n\r\n ingestorTables.remove(\"Facility\");\r\n\r\n List<EntityBaseBean> ingestorRules = new ArrayList<>();\r\n for (String table : ingestorTables) {\r\n Rule rule = new Rule();\r\n rule.grouping = dataIngestors;\r\n rule.crudFlags = \"CRUD\"; //no delete permission for ingestors\r\n rule.what = table;\r\n ingestorRules.add(rule);\r\n }\r\n port.createMany(sessionId, ingestorRules);\r\n }", "H4 createH4();", "int insert(OrgIntegralDeductRule record);", "public void createDataTable() {\r\n Log.d(TAG, \"creating table\");\r\n String queryStr = \"\";\r\n String[] colNames = {Constants.COLUMN_NAME_ACC_X, Constants.COLUMN_NAME_ACC_Y, Constants.COLUMN_NAME_ACC_Z};\r\n queryStr += \"create table if not exists \" + Constants.TABLE_NAME;\r\n queryStr += \" ( id INTEGER PRIMARY KEY AUTOINCREMENT, \";\r\n for (int i = 1; i <= 50; i++) {\r\n for (int j = 0; j < 3; j++)\r\n queryStr += colNames[j] + \"_\" + i + \" real, \";\r\n }\r\n queryStr += Constants.COLUMN_NAME_ACTIVITY + \" text );\";\r\n execute(queryStr);\r\n Log.d(TAG, \"created table\");\r\n try {\r\n ContentValues values = new ContentValues();\r\n values.put(\"id\", 0);\r\n insertRowInTable(Constants.TABLE_NAME, values);\r\n Log.d(TAG,\"created hist table\");\r\n }catch (Exception e){\r\n Log.d(TAG,Constants.TABLE_NAME + \" table already exists\");\r\n }\r\n }", "public static void main(String[] args) {\n\t\tCreateTable createTable = new CreateTable();\n\n\t\tCity city = new City();\n\t\tcity.setId(1);\n\t\tcreateTable.execute(city);\n\n\t\tProvince province = new Province();\n\t\tprovince.setId(1);\n\t\tcreateTable.execute(province);\n\n\t\tTown town = new Town();\n\t\ttown.setId(1);\n\t\tcreateTable.execute(town);\n\n\t\tDetail detail = new Detail();\n\t\tdetail.setId(1);\n\t\tcreateTable.execute(detail);\n\n\t\tOrder order = new Order();\n\t\torder.setId(1);\n\t\tcreateTable.execute(order);\n\n\t\tBrand2 brand2 = new Brand2();\n\t\tbrand2.setId(1);\n\t\tcreateTable.execute(brand2);\n\n\t\tColor color = new Color();\n\t\tcolor.setId(1);\n\t\tcreateTable.execute(color);\n\n\t\tFeature feature = new Feature();\n\t\tfeature.setId(1);\n\t\tcreateTable.execute(feature);\n\n\t\tImg img = new Img();\n\t\timg.setId(1);\n\t\tcreateTable.execute(img);\n\n\t\tSku sku = new Sku();\n\t\tsku.setId(1);\n\t\tcreateTable.execute(sku);\n\n\t\tType type = new Type();\n\t\ttype.setId(1);\n\t\tcreateTable.execute(type);\n\n\t\tAddr addr = new Addr();\n\t\taddr.setId(1);\n\t\tcreateTable.execute(addr);\n\t\tcreateTable.execute(new Buyer());\n\n\t\t// 商品编号 商品名称 图片 新品 热卖 推荐 上下架 操作选项\n\t\tProduct product = new Product();\n\t\tproduct.setId(001);\n\t\tproduct.setNo(UUID.randomUUID().toString());\n\t\tproduct.setName(\"依琦莲2014瑜伽服套装新款 瑜珈健身服三件套 广场舞蹈服装 女瑜伽服送胸垫 长袖紫色\");\n\t\tproduct.setWeight(56.00);\n\t\tproduct.setIsNew(1); // 1是 0否\n\t\tproduct.setIsHot(1);\n\t\tproduct.setCreateTime(new Date());\n\t\tproduct.setCheckUserId(\"\");\n\t\tproduct.setCheckTime(new Date());\n\t\tproduct.setCreateUserId(\"\");\n\t\tproduct.setIsShow(1);\n\t\tproduct.setIsDel(1);\n\t\tproduct.setTypeId(1);\n\t\tproduct.setBrandId(1);\n\t\tproduct.setKeywords(\"\");\n\t\tproduct.setSales(36);\n\t\tproduct.setDescription(\"不是东西\");\n\t\tproduct.setPackageList(\"\");\n\t\tproduct.setFeature(\"头角狰狞\");\n\t\tproduct.setColor(\"blue\");\n\t\tproduct.setSize(\"L\"); // S,L,XXL\n\t\tcreateTable.execute(product);\n\n\t\t// insert into\n\t\t// Product(id,no,name,weight,isNew,isHot,sales,description,feature,size)value(1,\"11xzc3568\",\"依琦莲2014瑜伽服套装新款女瑜伽服送胸垫\n\t\t// 长袖紫色\",36.12,1,1,110,\"不是东西\",\"头角狰狞\",\"blue\",\"L\");\n\n\t\tEmployee employee = new Employee();\n\t\temployee.setId(1);\n\t\tcreateTable.execute(employee);\n\n\t}", "Vaisseau_ordonneeLaPlusHaute createVaisseau_ordonneeLaPlusHaute();", "private void createCheckingAccountsTable() {\n\t\ttry {\n\t\t\tStatement stmt = this.conn.createStatement();\n\t\t\tstmt.executeUpdate(\"CREATE TABLE checkingAccounts \"\n\t\t\t\t\t+ \"(id BIGINT GENERATED ALWAYS AS IDENTITY ( START WITH 1000000001, INCREMENT BY 1 ), \" + \"owner INT, \"\n\t\t\t\t\t+ \"balance DOUBLE, \" + \"intRate DOUBLE, \"\n\t\t\t\t\t+ \"timeCreated BIGINT, \" + \"lastPaidInterest DOUBLE, \"\n\t\t\t\t\t+ \"dateOfLastPaidInterest BIGINT)\");\n\t\t\tconn.commit();\n\t\t\tSystem.out.println(\"Created table checkingAccounts\");\n\t\t} catch (SQLException sqle) {\n\t\t\tSystem.err.println(\"Creation of checkingAccounts table FAILED\");\n\t\t\tSystem.err.println(sqle);\n\t\t}\n\t}", "@Ignore\n @Test\n public void testCreateIndex() {\n System.out.println(\"createIndex\");\n Util.commonServiceIPs=\"127.0.0.1\";\n \n EntityManager em=Util.getEntityManagerFactory(100).createEntityManager();\n EntityManager platformEm = Util.getPlatformEntityManagerFactory().createEntityManager();\n \n Client client = ESUtil.getClient(em,platformEm,1,false);\n \n RuntimeContext.dataobjectTypes = Util.getDataobjectTypes();\n String indexName = \"test000000\";\n try {\n ESUtil.createIndex(platformEm, client, indexName, true);\n }\n catch(Exception e)\n {\n \n }\n \n\n }", "public void createVirtualTable(){\n\n\t\t\n\t\tif(DBHandler.getConnection()==null){\n\t\t\treturn;\n\t\t}\n\n\t\tif(DBHandler.tableExists(name())){\n\t\t\treturn;\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tStatement s = DBHandler.getConnection().createStatement();\n\t\t\ts.execute(\"create virtual table \"+name()+\" using fts4(\"+struct()+\")\");\n\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\tMainFrame.print(e.getMessage());\n\t\t}\n\t}", "public int create (Section section) throws DataAccessException;", "protected abstract void createAttributes();", "private MetaSparqlRequest createInsertMT1() {\n\t\tString sparqlStr = \"\"+\n\t\t\t\t\"PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>\\r\\n\" + \n\t\t\t\t\"PREFIX ub: \"+_ontology+\"\\r\\n\" + \n\t\t\t\t\"INSERT DATA { GRAPH \"+_graph+\" { \"+\n\t\t\t\tbuilderBindInsert\n\t\t\t\t+\" } }\";\n\t\t\n\t\tSparqlObj sparql= new SparqlObj(sparqlStr) ;\n\t\tEndPoint endPointHost= new EndPoint(_protocol,_host,_port,\"/update\");\n\t\tMetaSparqlRequest msr = new MetaSparqlRequest(new SparqlRequest(sparql,endPointHost));\n\t\tmsr.setTripleInsert(createTripleBaseMT1());\n\t\treturn msr;\n\t}", "public void createTables(){\n Map<String, String> name_type_map = new HashMap<>();\n List<String> primaryKey = new ArrayList<>();\n try {\n name_type_map.put(KEY_SINK_NAME, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_SINK_ADDRESS, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_SINK_DETAIL, MyDatabase.TYPE_VARCHAR);\n primaryKey.add(KEY_SINK_ADDRESS);\n myDatabase.createTable(TABLE_SINK, name_type_map, primaryKey, null);\n }catch (MySQLException e){ //数据表已存在\n e.print();\n }\n try {\n name_type_map.clear();\n name_type_map.put(KEY_NODE_NAME, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_PARENT, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_DETAIL, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_ADDRESS,MyDatabase.TYPE_VARCHAR);\n primaryKey.clear();\n primaryKey.add(KEY_NODE_PARENT);\n primaryKey.add(KEY_NODE_ADDRESS);\n myDatabase.createTable(TABLE_NODE, name_type_map, primaryKey, null);\n }catch (MySQLException e){\n e.print();\n }\n\n try {\n name_type_map.clear();\n name_type_map.put(KEY_NODE_ADDRESS, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_PARENT, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_DATA_TIME, MyDatabase.TYPE_TIMESTAMP);\n name_type_map.put(KEY_DATA_VAL, MyDatabase.TYPE_FLOAT);\n primaryKey.clear();\n primaryKey.add(KEY_DATA_TIME);\n primaryKey.add(KEY_NODE_ADDRESS);\n primaryKey.add(KEY_NODE_PARENT);\n myDatabase.createTable(TABLE_DATA, name_type_map, primaryKey, null);\n }catch (MySQLException e) {\n e.print();\n }\n }", "int insert(ec_environment record);", "public void setup() throws SQLException {\n // Create ACARS table\n final String createTableSQL = \"CREATE TABLE IF NOT EXISTS ACARS (\"\n + \"date DATE, time TIME, frequency CHAR(7), \"\n + \"registration VARCHAR(7), flight CHAR(6), \"\n + \"mode CHAR, label CHAR(2), blockId CHAR, msgId CHAR(4), \"\n + \"text VARCHAR(255), \"\n + \"PRIMARY KEY (date, registration, flight, mode, label, blockId, msgId), \"\n + \"INDEX datetime_idx (date, time), \"\n + \"INDEX registration_idx (registration), \"\n + \"INDEX flight_idx (flight)\"\n + \")\";\n\n final Statement createTableStmt = connection.createStatement();\n createTableStmt.execute(createTableSQL);\n }", "TableInstance createTableInstance();", "private String createTableSQL()\n\t{\n\t\tStringBuffer str = new StringBuffer();\n\n\t\t// Keep track of the list of fields\n\t\tList<String> listFields = new ArrayList<String>();\n\n\t\t// Table command\n\t\tstr.append(\"CREATE TABLE \" + getFullPath() + \"( \");\n\t\tstr.append(createStandardGZFields());\n\n\t\t// Loop through all InputFields\n\t\tfor (InputFieldSet fieldSet : function.getInputFieldSets())\n\t\t{\n\t\t\tfor (InputField inputField : fieldSet.getInputFields())\n\t\t\t{\n\t\t\t\t// Phase 2 does not support repeating fields being journalled\n\t\t\t\tif (!Field.isRepeating(inputField))\n\t\t\t\t{\n\t\t\t\t\t// Field\n\t\t\t\t\tString fieldName = SQLToolbox.cvtToSQLFieldName(inputField.getId());\n\n\t\t\t\t\t// add if not yet existing\n\t\t\t\t\tif (listFields.indexOf(fieldName) == -1)\n\t\t\t\t\t{\n\t\t\t\t\t\tstr.append(\", \");\n\t\t\t\t\t\tString fieldDataType = inputField.getDataType();\n\t\t\t\t\t\tString fieldType = SQLToolbox.cvtToSQLFieldType(fieldDataType, inputField.getSize(), inputField\n\t\t\t\t\t\t\t\t\t\t.getDecimals());\n\t\t\t\t\t\tString fieldDefault = SQLToolbox.cvtToSQLDefault(fieldDataType);\n\t\t\t\t\t\tstr.append(fieldName + \" \" + fieldType + \" \" + \" not null default \" + fieldDefault);\n\t\t\t\t\t\tlistFields.add(fieldName);\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// End\n\t\tstr.append(\" ) \");\n\t\t// RCDFMT \" + getJournalRcdName());\n\n\t\treturn str.toString();\n\t}", "public org.oep.cmon.dao.dvc.model.ThuTuc2GiayTo create(long id);" ]
[ "0.6137034", "0.6020893", "0.5953024", "0.5871004", "0.58520657", "0.5824135", "0.5783128", "0.5781292", "0.5779935", "0.5768486", "0.57018137", "0.569296", "0.5677845", "0.566757", "0.56516117", "0.5639093", "0.56084186", "0.5601316", "0.55988264", "0.5587084", "0.5586368", "0.5579563", "0.55671966", "0.5562383", "0.55537105", "0.55511224", "0.5550222", "0.5547236", "0.55009055", "0.54889506", "0.5482187", "0.54807544", "0.5465443", "0.5454913", "0.54468626", "0.5434606", "0.5426381", "0.54197514", "0.5414243", "0.54073745", "0.5402808", "0.5390703", "0.5390526", "0.5390526", "0.5390526", "0.538945", "0.53878444", "0.53796816", "0.5375914", "0.53748345", "0.53730184", "0.5365049", "0.5364833", "0.5364805", "0.536257", "0.5361029", "0.5360632", "0.53598887", "0.5350994", "0.5339128", "0.5338244", "0.53296435", "0.5321595", "0.5320979", "0.53194505", "0.5318698", "0.5313326", "0.53126156", "0.53099495", "0.5306004", "0.5300889", "0.5293614", "0.529321", "0.52883255", "0.5281361", "0.5281042", "0.527843", "0.5270345", "0.526982", "0.52697945", "0.52608657", "0.5259804", "0.52563196", "0.5249798", "0.5247741", "0.5239433", "0.5224713", "0.5224455", "0.5222238", "0.5221105", "0.521778", "0.5213034", "0.5211071", "0.52098143", "0.5208245", "0.5207931", "0.52069414", "0.5205663", "0.52015704", "0.5196995", "0.5195414" ]
0.0
-1
CREATE BY ANH DUC
Page<AccountDTO> findAllByFullName(String name, Pageable pageable);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int createTable(HbaseObj t);", "private void processCreate() throws HsqlException {\n\n boolean unique = false;\n int tableType;\n boolean isTempTable = false;\n String token;\n\n session.checkAdmin();\n session.checkDDLWrite();\n session.setScripting(true);\n\n if (tokenizer.isGetThis(Token.T_GLOBAL)) {\n tokenizer.getThis(Token.T_TEMPORARY);\n\n isTempTable = true;\n } else if (tokenizer.isGetThis(Token.T_TEMP)) {\n isTempTable = true;\n } else if (tokenizer.isGetThis(Token.T_TEMPORARY)) {\n isTempTable = true;\n }\n\n token = tokenizer.getSimpleToken();\n\n switch (Token.get(token)) {\n\n // table\n case Token.MEMORY :\n tokenizer.getThis(Token.T_TABLE);\n case Token.TABLE :\n tableType = isTempTable ? Table.TEMP_TABLE\n : database.getDefaultTableType();\n\n processCreateTable(tableType);\n\n return;\n\n case Token.CACHED :\n if (isTempTable) {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n\n tokenizer.getThis(Token.T_TABLE);\n processCreateTable(Table.CACHED_TABLE);\n\n return;\n\n case Token.TEXT :\n if (isTempTable) {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n\n tokenizer.getThis(Token.T_TABLE);\n processCreateTable(Table.TEXT_TABLE);\n\n return;\n\n default :\n if (isTempTable) {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n }\n\n switch (Token.get(token)) {\n\n // other objects\n case Token.ALIAS :\n processCreateAlias();\n break;\n\n case Token.SEQUENCE :\n processCreateSequence();\n break;\n\n case Token.SCHEMA :\n session.setScripting(false);\n processCreateSchema();\n break;\n\n case Token.TRIGGER :\n processCreateTrigger();\n break;\n\n case Token.USER :\n processCreateUser();\n break;\n\n case Token.ROLE :\n database.getGranteeManager().addRole(getUserIdentifier());\n break;\n\n case Token.VIEW :\n processCreateView();\n break;\n\n // index\n case Token.UNIQUE :\n unique = true;\n\n tokenizer.getThis(Token.T_INDEX);\n\n //fall thru\n case Token.INDEX :\n processCreateIndex(unique);\n break;\n\n default : {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n }\n }", "void create(DataTableDef def) throws IOException;", "CreationData creationData();", "protected abstract D createData();", "FromTable createFromTable();", "public void create() {\n\t\t\n\t}", "public void create() {\n\t\t\tdb.execSQL(AGENCYDB_CREATE+\".separete,.import agency.txt agency\");\n\t\t\tdb.execSQL(STOPSDB_CREATE+\".separete,.import stop_times.txt stop_times\");\n\t\t\t\n\t\t\t// Add 2 agencies for testing\n\t\t\t\n\t\t\t\n\t\t\tdb.setVersion(DATABASE_VERSION);\n\t\t}", "HdbdtiModel createHdbdtiModel();", "HdbSequenceElements createHdbSequenceElements();", "DD createDD();", "TD createTD();", "public String createTable(){\r\n return \"CREATE TABLE Doctor \" +\r\n \"(idDoctor decimal primary key, \" +\r\n \"firstNameDoctor char(14), \" +\r\n \"lastNameDoctor char(14), \" +\r\n \"costPerVisit integer,\" +\r\n \"qualification varchar(32))\";\r\n }", "private void createCDAccountsTable() {\n\t\ttry {\n\t\t\tStatement stmt = this.conn.createStatement();\n\t\t\tstmt.executeUpdate(\"CREATE TABLE cdAccounts \"\n\t\t\t\t\t+ \"(id BIGINT GENERATED ALWAYS AS IDENTITY ( START WITH 3000000001, INCREMENT BY 1 ), \" + \"owner INT, \"\n\t\t\t\t\t+ \"term INT, \" + \"balance DOUBLE, \" + \"intRate DOUBLE, \"\n\t\t\t\t\t+ \"timeCreated BIGINT, \" + \"lastPaidInterest DOUBLE, \"\n\t\t\t\t\t+ \"dateOfLastPaidInterest BIGINT)\");\n\t\t\tconn.commit();\n\t\t\tSystem.out.println(\"Created table cdAccounts\");\n\t\t} catch (SQLException sqle) {\n\t\t\tSystem.err.println(\"Creation of cdAccounts table FAILED\");\n\t\t\tSystem.err.println(sqle);\n\t\t}\n\t}", "public void createDienst()\n\t{\n\t\twriteDb(\"INSERT INTO dienstleistung (Bezeichnung, Preis)\" + \"VALUES('\" + typ + \"', '\" + preis +\"')\", getWriteCon());\n\t\tcommitDbConnection(getWriteCon());\n\t}", "public void create(){}", "@Override\n\tpublic String createTable() {\n\t\t\t\treturn \"CREATE TABLE history_table_view(id number(8) primary key not null ,sqltext text, pointid varchar2(1024), type varchar2(100))\";\n\t}", "public static void createTable() {\n\n // Create statement\n Statement statement = null;\n try {\n statement = Database.getDatabase().getConnection().createStatement();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n // Attempt to create table\n try {\n statement.execute(\n \"CREATE TABLE \" + Constants.SANITATION_TABLE + \"(\" +\n \"requestID INT PRIMARY KEY GENERATED ALWAYS AS IDENTITY (START WITH 1, INCREMENT BY 1),\" +\n \"nodeID VARCHAR(100) References \" + Constants.LOCATION_TABLE + \" (nodeID), \" +\n \"priority VARCHAR(10), \" +\n \"status VARCHAR(100), \" +\n \"description VARCHAR(100), \" +\n \"requesterID INT REFERENCES \" + Constants.USERS_TABLE + \"(userID), \" +\n \"requestTime TIMESTAMP, \" +\n \"servicerID INT REFERENCES \" + Constants.USERS_TABLE + \"(userID), \" +\n \"claimedTime TIMESTAMP, \" +\n \"completedTime TIMESTAMP, \" +\n \"CONSTRAINT priority_enum CHECK (priority in ('LOW', 'MEDIUM', 'HIGH')), \" +\n \"CONSTRAINT status_enum CHECK (status in ('INCOMPLETE', 'COMPLETE')))\"\n );\n } catch (SQLException | NullPointerException e) {\n e.printStackTrace();\n }\n }", "BTable createBTable();", "@Override\r\n\tpublic void create() {\n\t\t\r\n\t}", "@Override\n\tpublic void create() {\n\t\t\n\t}", "public abstract Anuncio creaAnuncioTematico();", "long createDatabase(long actor, String nameToDisplay, long proteinDBType, long sizeInBytes, boolean bPublic, boolean bReversed, ExperimentCategory category);", "TABLE createTABLE();", "private void processCreateTable(int type) throws HsqlException {\n\n String token = tokenizer.getName();\n HsqlName schemaname =\n session.getSchemaHsqlNameForWrite(tokenizer.getLongNameFirst());\n\n database.schemaManager.checkUserTableNotExists(session, token,\n schemaname.name);\n\n boolean isnamequoted = tokenizer.wasQuotedIdentifier();\n int[] pkCols = null;\n int colIndex = 0;\n boolean constraint = false;\n Table t = newTable(type, token, isnamequoted, schemaname);\n\n tokenizer.getThis(Token.T_OPENBRACKET);\n\n while (true) {\n token = tokenizer.getString();\n\n switch (Token.get(token)) {\n\n case Token.CONSTRAINT :\n case Token.PRIMARY :\n case Token.FOREIGN :\n case Token.UNIQUE :\n case Token.CHECK :\n\n // fredt@users : check for quoted reserved words used as column names\n constraint = !tokenizer.wasQuotedIdentifier()\n && !tokenizer.wasLongName();\n }\n\n tokenizer.back();\n\n if (constraint) {\n break;\n }\n\n Column newcolumn = processCreateColumn();\n\n t.addColumn(newcolumn);\n\n if (newcolumn.isPrimaryKey()) {\n Trace.check(pkCols == null, Trace.SECOND_PRIMARY_KEY,\n newcolumn.columnName.name);\n\n pkCols = new int[]{ colIndex };\n }\n\n token = tokenizer.getSimpleToken();\n\n if (token.equals(Token.T_COMMA)) {\n colIndex++;\n\n continue;\n }\n\n if (token.equals(Token.T_CLOSEBRACKET)) {\n break;\n }\n\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n\n HsqlArrayList tempConstraints = processCreateConstraints(t,\n constraint, pkCols);\n\n if (tokenizer.isGetThis(Token.T_ON)) {\n if (!t.isTemp) {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, Token.T_ON);\n }\n\n tokenizer.getThis(Token.T_COMMIT);\n\n token = tokenizer.getSimpleToken();\n\n if (token.equals(Token.T_DELETE)) {}\n else if (token.equals(Token.T_PRESERVE)) {\n t.onCommitPreserve = true;\n } else {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n\n tokenizer.getThis(Token.T_ROWS);\n }\n\n try {\n session.commit();\n\n Constraint primaryConst = (Constraint) tempConstraints.get(0);\n\n t.createPrimaryKey(null, primaryConst.core.mainColArray, true);\n\n if (primaryConst.core.mainColArray != null) {\n if (primaryConst.constName == null) {\n primaryConst.constName = t.makeSysPKName();\n }\n\n Constraint newconstraint =\n new Constraint(primaryConst.constName, t,\n t.getPrimaryIndex(),\n Constraint.PRIMARY_KEY);\n\n t.addConstraint(newconstraint);\n database.schemaManager.registerConstraintName(\n primaryConst.constName.name, t.getName());\n }\n\n for (int i = 1; i < tempConstraints.size(); i++) {\n Constraint tempConst = (Constraint) tempConstraints.get(i);\n\n if (tempConst.constType == Constraint.UNIQUE) {\n TableWorks tableWorks = new TableWorks(session, t);\n\n tableWorks.createUniqueConstraint(\n tempConst.core.mainColArray, tempConst.constName);\n\n t = tableWorks.getTable();\n }\n\n if (tempConst.constType == Constraint.FOREIGN_KEY) {\n TableWorks tableWorks = new TableWorks(session, t);\n\n tableWorks.createForeignKey(tempConst.core.mainColArray,\n tempConst.core.refColArray,\n tempConst.constName,\n tempConst.core.refTable,\n tempConst.core.deleteAction,\n tempConst.core.updateAction);\n\n t = tableWorks.getTable();\n }\n\n if (tempConst.constType == Constraint.CHECK) {\n TableWorks tableWorks = new TableWorks(session, t);\n\n tableWorks.createCheckConstraint(tempConst,\n tempConst.constName);\n\n t = tableWorks.getTable();\n }\n }\n\n database.schemaManager.linkTable(t);\n } catch (HsqlException e) {\n\n// fredt@users 20020225 - comment\n// if a HsqlException is thrown while creating table, any foreign key that has\n// been created leaves it modification to the expTable in place\n// need to undo those modifications. This should not happen in practice.\n database.schemaManager.removeExportedKeys(t);\n database.schemaManager.removeIndexNames(t.tableName);\n database.schemaManager.removeConstraintNames(t.tableName);\n\n throw e;\n }\n }", "@Override\n\tpublic void create() {\n\n\t}", "public void testCreateTable() {\n LOG.info(\"Entering testCreateTable.\");\n\n // Specify the table descriptor.\n HTableDescriptor htd = new HTableDescriptor(tableName);\n\n // Set the column family name to info.\n HColumnDescriptor hcd = new HColumnDescriptor(\"info\");\n\n // Set data encoding methods,HBase provides DIFF,FAST_DIFF,PREFIX\n // and PREFIX_TREE\n hcd.setDataBlockEncoding(DataBlockEncoding.FAST_DIFF);\n\n // Set compression methods, HBase provides two default compression\n // methods:GZ and SNAPPY\n // GZ has the highest compression rate,but low compression and\n // decompression effeciency,fit for cold data\n // SNAPPY has low compression rate, but high compression and\n // decompression effeciency,fit for hot data.\n // it is advised to use SANPPY\n hcd.setCompressionType(Compression.Algorithm.SNAPPY);\n\n htd.addFamily(hcd);\n\n Admin admin = null;\n try {\n // Instantiate an Admin object.\n admin = conn.getAdmin();\n if (!admin.tableExists(tableName)) {\n LOG.info(\"Creating table...\");\n admin.createTable(htd);\n LOG.info(admin.getClusterStatus());\n LOG.info(admin.listNamespaceDescriptors());\n LOG.info(\"Table created successfully.\");\n } else {\n LOG.warn(\"table already exists\");\n }\n } catch (IOException e) {\n LOG.error(\"Create table failed.\");\n } finally {\n if (admin != null) {\n try {\n // Close the Admin object.\n admin.close();\n } catch (IOException e) {\n LOG.error(\"Failed to close admin \", e);\n }\n }\n }\n LOG.info(\"Exiting testCreateTable.\");\n }", "public CreateData() {\n\t\t\n\t\t// TODO Auto-generated constructor stub\n\t}", "boolean createTable();", "@Override\r\n public Db_db createTable (Db_table table)\r\n {\r\n Db_db db = null;\r\n String query = \"CREATE TABLE IF NOT EXISTS \"+ table.getName() + \" (\"; \r\n String primaryKeyName = null;\r\n Set<Map.Entry<String, Db_tableColumn>> tableEntries;\r\n List<String> listOfUniqueKey = Lists.newArrayList();\r\n \r\n if(curConnection_ != null)\r\n {\r\n try\r\n {\r\n tableEntries = table.getEntrySet();\r\n for(Map.Entry<String, Db_tableColumn> entry: tableEntries)\r\n {\r\n Db_tableColumn entryContent = entry.getValue();\r\n \r\n if(entryContent.isPrimary() && primaryKeyName == null)\r\n {\r\n primaryKeyName = entryContent.getName();\r\n }\r\n else if(entryContent.isPrimary() && primaryKeyName != null)\r\n {\r\n throw new NumberFormatException();\r\n }\r\n \r\n if(itsAttributeMapper_ == null)\r\n {\r\n throw new NumberFormatException();\r\n }\r\n \r\n if(entryContent.isUnique())\r\n {\r\n listOfUniqueKey.add(entryContent.getName());\r\n }\r\n \r\n String mappedAttribute = this.itsAttributeMapper_.MapAttribute(entryContent.getAttributeName());\r\n if(entryContent.getAttribute().isEnum())\r\n {\r\n mappedAttribute += entryContent.getAttribute().buildEnumValueListString();\r\n }\r\n query += entryContent.getName() + \" \" + mappedAttribute \r\n + (entryContent.isAutoIncreasmnet()?\" AUTO_INCREMENT \":\" \")\r\n + (entryContent.isUnique()?\" UNIQUE, \": \", \");\r\n }\r\n \r\n query += \"PRIMARY KEY (\" + primaryKeyName + \"));\";\r\n try (Statement sm = curConnection_.createStatement()) {\r\n sm.executeUpdate(query);\r\n db = this.curDb_;\r\n }\r\n \r\n }catch(NumberFormatException e){System.out.print(e);}\r\n catch(SQLException e){System.out.print(query);this.CurConnectionFailed();}\r\n }\r\n return db;\r\n }", "public Hoppy insert(Hoppy hoppy, IdGenerateService<Long> idGenerateService) throws DataAccessException;", "interface WithCreate extends\n SqlElasticPoolOperations.DefinitionStages.WithDatabaseDtuMin,\n SqlElasticPoolOperations.DefinitionStages.WithDatabaseDtuMax,\n SqlElasticPoolOperations.DefinitionStages.WithDtu,\n SqlElasticPoolOperations.DefinitionStages.WithStorageCapacity,\n SqlElasticPoolOperations.DefinitionStages.WithDatabase,\n Resource.DefinitionWithTags<SqlElasticPoolOperations.DefinitionStages.WithCreate>,\n Creatable<SqlElasticPool> {\n }", "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:49.404 -0500\", hash_original_method = \"CD5C82C799E78C74801FDB521CEE7324\", hash_generated_method = \"CD5C82C799E78C74801FDB521CEE7324\")\n \nContext ()\n {\n copyTables();\n }", "OrTable createOrTable();", "public abstract void create();", "DT createDT();", "@Override\n public void createSchema(Properties props)\n {\n Statement statement;\n try\n {\n statement = connection.createStatement();\n \n //Drop Indexes\n dropIndex(statement, \"CONFFRIENDSHIP_INVITEEID\", \"CONFFRIENDSHIP\");\n dropIndex(statement, \"CONFFRIENDSHIP_INVITERID\", \"CONFFRIENDSHIP\");\n dropIndex(statement, \"PENDFRIENDSHIP_INVITEEID\", \"PENDFRIENDSHIP\");\n dropIndex(statement, \"PENDFRIENDSHIP_INVITERID\", \"PENDFRIENDSHIP\");\n dropIndex(statement, \"MANIPULATION_RID\", \"MANIPULATION\");\n dropIndex(statement, \"MANIPULATION_CREATORID\", \"MANIPULATION\");\n dropIndex(statement, \"RESOURCES_WALLUSERID\", \"RESOURCES\");\n dropIndex(statement, \"RESOURCE_CREATORID\", \"RESOURCES\");\n \n //Drop Tables\n dropTable(statement, \"CONFFRIENDSHIP\");\n dropTable(statement, \"PENDFRIENDSHIP\");\n dropTable(statement, \"MANIPULATION\");\n dropTable(statement, \"RESOURCES\");\n dropTable(statement, \"USERS\");\n \n //Create Tables\n statement.executeUpdate(\"CREATE TABLE CONFFRIENDSHIP \" + \"(INVITERID INTEGER NOT NULL, \" + \"INVITEEID INTEGER NOT NULL, \" + \"PRIMARY KEY (INVITERID, INVITEEID))\");\n statement.executeUpdate(\"CREATE TABLE PENDFRIENDSHIP \" + \"(INVITERID INTEGER NOT NULL, \" + \"INVITEEID INTEGER NOT NULL, \" + \"PRIMARY KEY (INVITERID, INVITEEID))\");\n statement.executeUpdate(\"CREATE TABLE MANIPULATION \" + \"(MID INTEGER NOT NULL, \" + \"MODIFIERID INTEGER NOT NULL, \" + \"RID INTEGER NOT NULL, \" + \"CREATORID INTEGER NOT NULL, \" + \"TIMESTAMP VARCHAR(200), \" + \"TYPE VARCHAR(200), \" + \"CONTENT VARCHAR(200), \" + \"PRIMARY KEY (MID,RID))\");\n statement.executeUpdate(\"CREATE TABLE RESOURCES \" + \"(RID INTEGER NOT NULL , \" + \"CREATORID INTEGER NOT NULL, \" + \"WALLUSERID INTEGER NOT NULL, \" + \"TYPE VARCHAR(200), \" + \"BODY VARCHAR(200), \" + \"DOC VARCHAR(200), \" + \"PRIMARY KEY (RID))\");\n statement.executeUpdate(\"CREATE TABLE USERS \" + \"(USERID INTEGER NOT NULL , \" + \"USERNAME VARCHAR(200), \" + \"PW VARCHAR(200), \" + \"FNAME VARCHAR(200), \" + \"LNAME VARCHAR(200), \" + \"GENDER VARCHAR(200),\" + \"DOB VARCHAR(200), \" + \"JDATE VARCHAR(200), \" + \"LDATE VARCHAR(200), \" + \"ADDRESS VARCHAR(200),\" + \"EMAIL VARCHAR(200), \" + \"TEL VARCHAR(200), \" + \"PRIMARY KEY (USERID))\");\n \n //Add Foreign Keys\n statement.executeUpdate(\"ALTER TABLE CONFFRIENDSHIP \" + \"ADD CONSTRAINT CONFFRIENDSHIP_USERS_FK1 FOREIGN KEY (INVITERID)\" + \"REFERENCES USERS (USERID) ON DELETE CASCADE\");\n statement.executeUpdate(\"ALTER TABLE CONFFRIENDSHIP \" + \"ADD CONSTRAINT CONFFRIENDSHIP_USERS_FK2 FOREIGN KEY (INVITEEID)\" + \"REFERENCES USERS (USERID) ON DELETE NO ACTION\");\n statement.executeUpdate(\"ALTER TABLE PENDFRIENDSHIP \" + \"ADD CONSTRAINT PENDFRIENDSHIP_USERS_FK1 FOREIGN KEY (INVITERID)\" + \"REFERENCES USERS (USERID) ON DELETE CASCADE\");\n statement.executeUpdate(\"ALTER TABLE PENDFRIENDSHIP \" + \"ADD CONSTRAINT PENDFRIENDSHIP_USERS_FK2 FOREIGN KEY (INVITEEID)\" + \"REFERENCES USERS (USERID) ON DELETE NO ACTION\");\n statement.executeUpdate(\"ALTER TABLE MANIPULATION \" + \"ADD CONSTRAINT MANIPULATION_RESOURCES_FK1 FOREIGN KEY (RID)\" + \"REFERENCES RESOURCES (RID) ON DELETE CASCADE\");\n statement.executeUpdate(\"ALTER TABLE MANIPULATION \" + \"ADD CONSTRAINT MANIPULATION_USERS_FK1 FOREIGN KEY (CREATORID)\" + \"REFERENCES USERS (USERID) ON DELETE NO ACTION\");\n statement.executeUpdate(\"ALTER TABLE MANIPULATION \" + \"ADD CONSTRAINT MANIPULATION_USERS_FK2 FOREIGN KEY (MODIFIERID)\" + \"REFERENCES USERS (USERID) ON DELETE NO ACTION\");\n statement.executeUpdate(\"ALTER TABLE RESOURCES \" + \"ADD CONSTRAINT RESOURCES_USERS_FK1 FOREIGN KEY (CREATORID)\" + \"REFERENCES USERS (USERID) ON DELETE CASCADE\");\n statement.executeUpdate(\"ALTER TABLE RESOURCES \" + \"ADD CONSTRAINT RESOURCES_USERS_FK2 FOREIGN KEY (WALLUSERID)\" + \"REFERENCES USERS (USERID) ON DELETE NO ACTION\");\n \n //Create Indexes\n buildIndexes(null);\n }\n catch (SQLException ex)\n {\n Logger.getLogger(WindowsAzureClientInit.class.getName()).log(Level.SEVERE, null, ex);\n System.out.println(\"Error in creating schema!\");\n }\n }", "public void createTable() throws LRException\n\t{\n\t\tgetBackground();\n\t\tDataHRecordData myData=(DataHRecordData)getData();\n\t\t// Create a new (empty) record\n\t\tcreate(new Hashtable(),myData);\n\t\tif (myData.record==null) throw new LRException(DataRMessages.nullRecord(getName()));\n\t\ttry\n\t\t{\n\t\t\tbackground.newTransaction();\n\t\t\tmyData.record.createNewTable(background.getClient(),true);\n\t\t}\n\t\tcatch (LDBException e) { setStatus(e); }\n\t}", "public boolean createTable(String input) throws IOException{\n\t\tString orgQuery = input;\n\t\torgQuery = orgQuery.trim();\n\t\tString query = input.toLowerCase().trim();\n\t\tboolean queryFailed = false;\n\t\t//Schema Instance \n\t\tSchema currentSchema = Schema.getSchemaInstance();\n\t\tString currentSchemaName = currentSchema.getCurrentSchema();\n\n\t\t//TableSchemaManager Instance\n\t\tTableSchemaManager currentTableSchemaManager = TableSchemaManager.getTableSchemaManagerInstance();\n\n\t\t//Extracting Table name\n\t\ttableName = orgQuery.substring(query.indexOf(\"table \")+6,query.indexOf(\"(\")).trim();\n\n\t\t//Updating SCHEMA.TABLE.TBL\n\t\tif(updateInformationSchemaTable()){\n\t\t\tqueryFailed = true;\n\t\t\treturn queryFailed;\n\t\t}\n\n\t\t//Extracting Table contents\n\t\tString tableContentsWithQuotes = orgQuery.substring(orgQuery.indexOf(\"(\")+1,orgQuery.length());\n\t\tString tableContents = tableContentsWithQuotes.replace(\"))\", \")\");\n\t\ttableContents = tableContents.trim();\n\n\t\tTableSchemaManager.ordinalMap = new TreeMap<Integer,List<String>>();\n\t\tTableSchemaManager.tableMap = new TreeMap<String,TreeMap<Integer,List<String>>>();\n\t\t\n\t\t//Creating n instances of Table helper\n\t\tString[] createTableContents = tableContents.split(\"\\\\,\"); \n\t\tnoOfColumns = createTableContents.length;\n\t\tCreateTableHelper[] th = new CreateTableHelper[noOfColumns];\n\n\t\t\n\t\t//Handles single row of Create Table \n\t\tfor(int item = 0; item < noOfColumns ; item++){\n\t\t\tth[item] = new CreateTableHelper(); \n\t\t\t//To remove any leading or trailing spaces\n\t\t\tcreateTableContents[item] = createTableContents[item].trim();\n\t\t\tString columnName = createTableContents[item].substring(0, createTableContents[item].indexOf(\" \"));\n\t\t\tth[item].setColumnName(columnName);\n\n\t\t\t//Setting Primary Key\n\t\t\tString primaryKeyExp = \"(.*)[pP][rR][iI][mM][aA][rR][yY](.*)\";\n\t\t\tif (createTableContents[item].matches(primaryKeyExp))\n\t\t\t\tth[item].setPrimaryKey(true);\n\t\t\telse\n\t\t\t\tth[item].setPrimaryKey(false);\n\n\t\t\t//Setting Null Value\t\n\t\t\tString notNullExp = \"(.*)[nN][uU][lL][lL](.*)\";\n\t\t\tif (createTableContents[item].matches(notNullExp))\n\t\t\t\tth[item].setNull(true);\n\t\t\telse\n\t\t\t\tth[item].setNull(false);\n\n\t\t\t//Extracting data types \n\t\t\t//BYTE\n\t\t\tString byteExp = \"(.*)[bB][yY][tT][eE](.*)\";\n\t\t\tif (createTableContents[item].matches(byteExp)){\n\t\t\t\tth[item].setDataType(\"BYTE\");\n\t\t\t}\n\t\t\t//SHORT\n\t\t\tString shortExp = \"(.*)[sS][hH][oO][rR][tT](.*)\";\n\t\t\tif (createTableContents[item].matches(shortExp)){\n\t\t\t\tth[item].setDataType(\"SHORT\");\n\t\t\t}\n\t\t\t//INT\n\t\t\tString intExp = \"(.*)[iI][nN][tT](.*)\";\n\t\t\tif (createTableContents[item].matches(intExp)){\n\t\t\t\tth[item].setDataType(\"INT\");\n\t\t\t}\n\t\t\t//LONG\n\t\t\tString longExp = \"(.*)[lL][oO][nN][gG](.*)\";\n\t\t\tif (createTableContents[item].matches(longExp)){\n\t\t\t\tth[item].setDataType(\"LONG\");\n\t\t\t}\n\t\t\t//CHAR\n\t\t\tString charExp = \"(.*)[cC][hH][aA][rR](.*)\";\n\t\t\tif (createTableContents[item].matches(charExp)){\n\t\t\t\tString size = createTableContents[item].substring(createTableContents[item].indexOf(\"(\")+1, createTableContents[item].indexOf(\")\"));\n\t\t\t\tth[item].setDataType(\"CHAR(\" + size + \")\");\n\t\t\t}\n\t\t\t//VARCHAR\n\t\t\tString varcharExp = \"(.*)[vV][aA][rR][cC][hH][aA][rR](.*)\";\n\t\t\tif (createTableContents[item].matches(varcharExp)){\n\t\t\t\tString size = createTableContents[item].substring(createTableContents[item].indexOf(\"(\")+1, createTableContents[item].indexOf(\")\"));\n\t\t\t\tth[item].setDataType(\"VARCHAR(\" + size + \")\");\n\t\t\t}\n\t\t\t//FLOAT\n\t\t\tString floatExp = \"(.*)[fF][lL][oO][aA][tT](.*)\";\n\t\t\tif (createTableContents[item].matches(floatExp)){\n\t\t\t\tth[item].setDataType(\"FLOAT\");\t\t\t\t\n\t\t\t}\n\t\t\t//DOUBLE\n\t\t\tString doubleExp = \"(.*)[dD][oO][uU][bB][lL][eE](.*)\";\n\t\t\tif (createTableContents[item].matches(doubleExp)){\n\t\t\t\tth[item].setDataType(\"DOUBLE\");\n\t\t\t}\n\t\t\t//DATETIME\n\t\t\tString dateTimeExp = \"(.*)[dD][aA][tT][eE][tT][iI][mM][eE](.*)\";\n\t\t\tif (createTableContents[item].matches(dateTimeExp)){\n\t\t\t\tth[item].setDataType(\"DATETIME\");\n\t\t\t}\n\t\t\t//DATE\n\t\t\tString dateExp = \"(.*)[dD][aA][tT][eE](.*)\";\n\t\t\tif (createTableContents[item].matches(dateExp)){\n\t\t\t\tth[item].setDataType(\"DATE\");\n\t\t\t}\n\n\t\t\tcurrentTableSchemaManager.newTableSchema(\n\t\t\t\t\ttableName,\n\t\t\t\t\titem,\n\t\t\t\t\tth[item].getColumnName(),\n\t\t\t\t\tth[item].getDataType(),\n\t\t\t\t\tth[item].isNull(),\n\t\t\t\t\tth[item].isPrimaryKey()\n\t\t\t\t\t);\n\n\t\t\t//Updating SCHEMA.COLUMNS.TBL\n\t\t\tupdateInformationSchemaColumn(\n\t\t\t\t\tth[item].getColumnName(),\n\t\t\t\t\titem,\n\t\t\t\t\tth[item].getDataType(),\n\t\t\t\t\tth[item].isNull(),\n\t\t\t\t\tth[item].isPrimaryKey()\n\t\t\t\t\t);\n\t\t\t//Create tables to insert index\n\t\t\tString newTableIndexName = currentSchemaName + \".\" + tableName + \".\" +th[item].getColumnName()+ \".tbl.ndx\";\n\t\t\tRandomAccessFile newTableIndexFile = new RandomAccessFile(newTableIndexName, \"rw\");\n\t\t\tnewTableIndexFile.close();\n\n\t\t}\n\n\t\tTableSchemaManager.tableMap.put(tableName, TableSchemaManager.ordinalMap);\n\t\tcurrentTableSchemaManager.updateTableSchema(currentSchemaName,tableName);\n\t\t\n\t\t//Create tables to insert data \n\t\tString newTableDataName = currentSchemaName + \".\" + tableName + \".tbl\";\n\t\tRandomAccessFile newTableDataFile = new RandomAccessFile(newTableDataName, \"rw\");\n\t\tnewTableDataFile.close();\n\t\treturn queryFailed;\n\t}", "public String createDSIndex(String dsID, String dschemaID, String attriName);", "private void createStressTestControlTable() {\n Column runId = new Column(\"RUN_ID\");\n runId.setMappedType(\"INTEGER\");\n runId.setPrimaryKey(true);\n runId.setRequired(true);\n Column clientCommitSleepMs = new Column(\"CLIENT_COMMIT_SLEEP_MS\");\n clientCommitSleepMs.setMappedType(\"BIGINT\");\n Column clientCommitRows = new Column(\"CLIENT_COMMIT_ROWS\");\n clientCommitRows.setMappedType(\"BIGINT\");\n Column serverCommitSleepMs = new Column(\"SERVER_COMMIT_SLEEP_MS\");\n serverCommitSleepMs.setMappedType(\"BIGINT\");\n Column serverCommitRows = new Column(\"SERVER_COMMIT_ROWS\");\n serverCommitRows.setMappedType(\"BIGINT\");\n Column payloadColumns = new Column(\"PAYLOAD_COLUMNS\");\n payloadColumns.setMappedType(\"INTEGER\");\n Column initialSeedSize = new Column(\"INITIAL_SEED_SIZE\");\n initialSeedSize.setMappedType(\"BIGINT\");\n Column duration = new Column(\"DURATION_MINUTES\");\n duration.setMappedType(\"BIGINT\");\n\n Table table = new Table(STRESS_TEST_CONTROL, runId, clientCommitSleepMs, clientCommitRows, serverCommitSleepMs, serverCommitRows,\n payloadColumns, initialSeedSize, duration);\n engine.getDatabasePlatform().createTables(true, true, table);\n }", "@Override\r\n\tpublic void create() {\n\r\n\t}", "Statement createStatement();", "Statement createStatement();", "Statement createStatement();", "public void doCreateTable();", "@Override\n public Pipe execute(DBMS engine) throws DBxicException {\n engine.storManager.createTable(table);\n engine.catalog.saveCatalog();\n return new MessageThroughPipe(\"Table \" + table.getName() + \" successfully created\");\n }", "@Override\n public void setUp() throws SQLException {\n connection.createStatement().executeUpdate(\n \"CREATE TABLE IF NOT EXISTS \\\"ENTRY\\\" (\" +\n \"\\\"SHARED_ID\\\" SERIAL PRIMARY KEY, \" +\n \"\\\"TYPE\\\" VARCHAR, \" +\n \"\\\"VERSION\\\" INTEGER DEFAULT 1)\");\n\n connection.createStatement().executeUpdate(\n \"CREATE TABLE IF NOT EXISTS \\\"FIELD\\\" (\" +\n \"\\\"ENTRY_SHARED_ID\\\" INTEGER REFERENCES \\\"ENTRY\\\"(\\\"SHARED_ID\\\") ON DELETE CASCADE, \" +\n \"\\\"NAME\\\" VARCHAR, \" +\n \"\\\"VALUE\\\" TEXT)\");\n\n connection.createStatement().executeUpdate(\n \"CREATE TABLE IF NOT EXISTS \\\"METADATA\\\" (\"\n + \"\\\"KEY\\\" VARCHAR,\"\n + \"\\\"VALUE\\\" TEXT)\");\n }", "private void m14053d() {\n try {\n File file = new File(f18051l);\n File file2 = new File(f18052m);\n if (!file.exists()) {\n file.mkdirs();\n }\n if (!file2.exists()) {\n file2.createNewFile();\n }\n if (file2.exists()) {\n SQLiteDatabase openOrCreateDatabase = SQLiteDatabase.openOrCreateDatabase(file2, null);\n openOrCreateDatabase.execSQL(\"CREATE TABLE IF NOT EXISTS bdcltb09(id CHAR(40) PRIMARY KEY,time DOUBLE,tag DOUBLE, type DOUBLE , ac INT);\");\n openOrCreateDatabase.execSQL(\"CREATE TABLE IF NOT EXISTS wof(id CHAR(15) PRIMARY KEY,mktime DOUBLE,time DOUBLE, ac INT, bc INT, cc INT);\");\n openOrCreateDatabase.setVersion(1);\n openOrCreateDatabase.close();\n }\n this.f18053a = true;\n } catch (Exception e) {\n }\n }", "interface WithDtu {\n /**\n * Sets the total shared DTU for the SQL Azure Database Elastic Pool.\n *\n * @param dtu total shared DTU for the SQL Azure Database Elastic Pool\n * @return The next stage of the definition.\n */\n @Deprecated\n SqlElasticPoolOperations.DefinitionStages.WithCreate withDtu(int dtu);\n }", "@POST\n @Produces({\"application/json\"})\n public String createDb() throws WebApplicationException {\n HibernateEntityManager emAdm = PersistenceManager.getInstance().getEntityManagerAdmin();\n SQLQuery qCreate = emAdm.getSession().createSQLQuery(\"CREATE DATABASE test_jeff template=postgis\");\n try{\n qCreate.executeUpdate();\n }catch(SQLGrammarException e){\n System.out.println(\"Error !!\" + e.getSQLException());\n emAdm.close();\n return e.getSQLException().getLocalizedMessage();\n }\n emAdm.close();\n Map properties = new HashMap();\n //change the connection string to the new db\n properties.put(\"hibernate.connection.url\", \"jdbc:postgresql_postGIS://192.168.12.36:5432/test_jeff\");\n EntityManagerFactory emf = Persistence.createEntityManagerFactory(\"dataPU\", properties); \n return \"Yeah\";\n }", "public abstract void createTables() throws DataServiceException;", "@Override\n\tpublic void create () {\n\n\t}", "@Test\n public void shouldCreateEpiDataGathering() {\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(0));\n\n Case caze = TestEntityCreator.createCase();\n TestEntityCreator.createEpiDataGathering(caze);\n\n // Assure that the burial has been successfully created\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(1));\n }", "Udt createUdt();", "OperacionColeccion createOperacionColeccion();", "public void create(AttributeList attributeList)\n {\n\n super.create(attributeList); \n \n OADBTransaction transaction = getOADBTransaction();\n \n // DEFAULT: supplier id is obtained from the table's sequence\n Number supplierId = transaction.getSequenceValue(\"FWK_TBX_SUPPLIERS_S\");\n setSupplierId(supplierId);\n\n // DEFAULT: start date should be set to sysdate\n setStartDate(transaction.getCurrentDBDate());\n\n \n }", "Definition createDefinition();", "H1 createH1();", "private static void createDatabase(String restrictedUser) throws ArcException {\n\t\tGenericPreparedStatementBuilder query;\n\n\t\t// clean database\n\t\tquery = new GenericPreparedStatementBuilder();\n\t\tquery.append(\"DROP SCHEMA IF EXISTS \" + DataObjectService.ARC_METADATA_SCHEMA + \" CASCADE;\");\n\t\tquery.append(\"DROP SCHEMA IF EXISTS \" + testSandbox1 + \" CASCADE;\");\n\t\tquery.append(\"DROP SCHEMA IF EXISTS public CASCADE;\");\n\t\tUtilitaireDao.get(0).executeRequest(c, query);\n\t\t\n\t\tBddPatcher patcher=new BddPatcher();\n\t\tpatcher.getProperties().setGitCommitId(newVersion);\n\t\tpatcher.getProperties().setDatabaseRestrictedUsername(userWithRestrictedRights);\n\n\t\t// metadata schema creation\n\t\tpatcher.bddScript(c);\n\t\t// sandbox schema creation\n\t\tpatcher.bddScript(c, testSandbox1, testSandbox2, testSandbox8);\n\t\t\n\t}", "Operacion createOperacion();", "private synchronized String processCreate(String query) {\r\n\t\tString[] valuesCommand = query.split(\" \");\r\n\t\tif ( valuesCommand.length != 3 )\r\n\t\t\treturn \"ERROR Bad syntaxe command CREATE - Usage : CREATE id initial_solde\";\r\n\t\tString id = valuesCommand[1];\r\n\t\tif ( this.bank.existAccount(id) ) {\r\n\t\t\treturn \"ERROR Account alwready exist\";\r\n\t\t}\r\n\t\tdouble number = Double.valueOf(valuesCommand[2]);\r\n\t\tthis.bank.createAccount(id, number);\r\n\t\treturn \"OK \" + this.bank.getLastOperation(id);\r\n\t}", "public void createNewSchema() throws SQLException {\n ResultSet resultSet = databaseStatement.executeQuery(\"select count(datname) from pg_database\");\n int uniqueID = 0;\n if(resultSet.next()) {\n uniqueID = resultSet.getInt(1);\n }\n if(uniqueID != 0) {\n uniqueID++;\n databaseStatement.executeQuery(\"CREATE DATABASE OSM\"+uniqueID+\";\");\n }\n }", "int insert(Lbt72TesuryoSumDPkey record);", "@Test(timeout = 4000)\n public void test124() throws Throwable {\n DefaultDBTable defaultDBTable0 = new DefaultDBTable();\n MockPrintWriter mockPrintWriter0 = new MockPrintWriter(\"Illegal column type format: \");\n String[] stringArray0 = new String[9];\n DBUniqueConstraint dBUniqueConstraint0 = new DBUniqueConstraint(defaultDBTable0, \"66i,cw\", true, stringArray0);\n NameSpec nameSpec0 = NameSpec.ALWAYS;\n SQLUtil.renderCreateTable(defaultDBTable0, true, nameSpec0, mockPrintWriter0);\n assertEquals(\"table\", defaultDBTable0.getObjectType());\n }", "int insert(NjProductTaticsRelation record);", "public de.uni_koblenz.jgralabtest.schemas.gretl.pddsl.Chassis createChassis();", "int insert(Disease record);", "private void creates() {\n \tDBPeer.fetchTableColumns();\n \tDBPeer.fetchTableRows();\n \tDBPeer.fetchTableIndexes();\n \t\n for (int i = 0; i < creates.size(); i++) {\n creates.get(i).init();\n }\n \n DBPeer.updateTableColumns();\n DBPeer.updateTableRows();\n DBPeer.updateTableIndexes();\n }", "InstAssignIndex createInstAssignIndex();", "WithCreate withCreationData(CreationData creationData);", "@Before\n public void createAndFillTable() {\n try {\n DBhandler dBhandler = new DBhandler(h2DbConnection);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "DataCfgTableInfo createTableIfNotExists(String dataCfgOid);", "H2 createH2();", "int insert(Lbm83ChohyokanriPkey record);", "HdbSequenceModel createHdbSequenceModel();", "DL createDL();", "For createFor();", "public org.oep.cmon.dao.tlct.model.DanhMucGiayTo create(long id);", "private Builder() {\n super(org.apache.gora.cascading.test.storage.TestRow.SCHEMA$);\n }", "public void createExempleDirect(ExempleDirect exempleDirect) throws DaoException;", "int insertSelective(NjProductTaticsRelation record);", "BIG createBIG();", "private void CreateDataIngestors() throws isisicatclient.IcatException_Exception {\n Grouping dataIngestors = new Grouping();\r\n dataIngestors.name = \"DataIngestors\";\r\n dataIngestors.id = port.create(sessionId, dataIngestors);\r\n dataIngestors = (Grouping) port.search(sessionId, \"Grouping[name='DataIngestors']\").get(0);\r\n\r\n List<String> ingestorTables = port.getEntityNames();\r\n\r\n ingestorTables.remove(\"Facility\");\r\n\r\n List<EntityBaseBean> ingestorRules = new ArrayList<>();\r\n for (String table : ingestorTables) {\r\n Rule rule = new Rule();\r\n rule.grouping = dataIngestors;\r\n rule.crudFlags = \"CRUD\"; //no delete permission for ingestors\r\n rule.what = table;\r\n ingestorRules.add(rule);\r\n }\r\n port.createMany(sessionId, ingestorRules);\r\n }", "H4 createH4();", "int insert(OrgIntegralDeductRule record);", "public void createDataTable() {\r\n Log.d(TAG, \"creating table\");\r\n String queryStr = \"\";\r\n String[] colNames = {Constants.COLUMN_NAME_ACC_X, Constants.COLUMN_NAME_ACC_Y, Constants.COLUMN_NAME_ACC_Z};\r\n queryStr += \"create table if not exists \" + Constants.TABLE_NAME;\r\n queryStr += \" ( id INTEGER PRIMARY KEY AUTOINCREMENT, \";\r\n for (int i = 1; i <= 50; i++) {\r\n for (int j = 0; j < 3; j++)\r\n queryStr += colNames[j] + \"_\" + i + \" real, \";\r\n }\r\n queryStr += Constants.COLUMN_NAME_ACTIVITY + \" text );\";\r\n execute(queryStr);\r\n Log.d(TAG, \"created table\");\r\n try {\r\n ContentValues values = new ContentValues();\r\n values.put(\"id\", 0);\r\n insertRowInTable(Constants.TABLE_NAME, values);\r\n Log.d(TAG,\"created hist table\");\r\n }catch (Exception e){\r\n Log.d(TAG,Constants.TABLE_NAME + \" table already exists\");\r\n }\r\n }", "public static void main(String[] args) {\n\t\tCreateTable createTable = new CreateTable();\n\n\t\tCity city = new City();\n\t\tcity.setId(1);\n\t\tcreateTable.execute(city);\n\n\t\tProvince province = new Province();\n\t\tprovince.setId(1);\n\t\tcreateTable.execute(province);\n\n\t\tTown town = new Town();\n\t\ttown.setId(1);\n\t\tcreateTable.execute(town);\n\n\t\tDetail detail = new Detail();\n\t\tdetail.setId(1);\n\t\tcreateTable.execute(detail);\n\n\t\tOrder order = new Order();\n\t\torder.setId(1);\n\t\tcreateTable.execute(order);\n\n\t\tBrand2 brand2 = new Brand2();\n\t\tbrand2.setId(1);\n\t\tcreateTable.execute(brand2);\n\n\t\tColor color = new Color();\n\t\tcolor.setId(1);\n\t\tcreateTable.execute(color);\n\n\t\tFeature feature = new Feature();\n\t\tfeature.setId(1);\n\t\tcreateTable.execute(feature);\n\n\t\tImg img = new Img();\n\t\timg.setId(1);\n\t\tcreateTable.execute(img);\n\n\t\tSku sku = new Sku();\n\t\tsku.setId(1);\n\t\tcreateTable.execute(sku);\n\n\t\tType type = new Type();\n\t\ttype.setId(1);\n\t\tcreateTable.execute(type);\n\n\t\tAddr addr = new Addr();\n\t\taddr.setId(1);\n\t\tcreateTable.execute(addr);\n\t\tcreateTable.execute(new Buyer());\n\n\t\t// 商品编号 商品名称 图片 新品 热卖 推荐 上下架 操作选项\n\t\tProduct product = new Product();\n\t\tproduct.setId(001);\n\t\tproduct.setNo(UUID.randomUUID().toString());\n\t\tproduct.setName(\"依琦莲2014瑜伽服套装新款 瑜珈健身服三件套 广场舞蹈服装 女瑜伽服送胸垫 长袖紫色\");\n\t\tproduct.setWeight(56.00);\n\t\tproduct.setIsNew(1); // 1是 0否\n\t\tproduct.setIsHot(1);\n\t\tproduct.setCreateTime(new Date());\n\t\tproduct.setCheckUserId(\"\");\n\t\tproduct.setCheckTime(new Date());\n\t\tproduct.setCreateUserId(\"\");\n\t\tproduct.setIsShow(1);\n\t\tproduct.setIsDel(1);\n\t\tproduct.setTypeId(1);\n\t\tproduct.setBrandId(1);\n\t\tproduct.setKeywords(\"\");\n\t\tproduct.setSales(36);\n\t\tproduct.setDescription(\"不是东西\");\n\t\tproduct.setPackageList(\"\");\n\t\tproduct.setFeature(\"头角狰狞\");\n\t\tproduct.setColor(\"blue\");\n\t\tproduct.setSize(\"L\"); // S,L,XXL\n\t\tcreateTable.execute(product);\n\n\t\t// insert into\n\t\t// Product(id,no,name,weight,isNew,isHot,sales,description,feature,size)value(1,\"11xzc3568\",\"依琦莲2014瑜伽服套装新款女瑜伽服送胸垫\n\t\t// 长袖紫色\",36.12,1,1,110,\"不是东西\",\"头角狰狞\",\"blue\",\"L\");\n\n\t\tEmployee employee = new Employee();\n\t\temployee.setId(1);\n\t\tcreateTable.execute(employee);\n\n\t}", "Vaisseau_ordonneeLaPlusHaute createVaisseau_ordonneeLaPlusHaute();", "private void createCheckingAccountsTable() {\n\t\ttry {\n\t\t\tStatement stmt = this.conn.createStatement();\n\t\t\tstmt.executeUpdate(\"CREATE TABLE checkingAccounts \"\n\t\t\t\t\t+ \"(id BIGINT GENERATED ALWAYS AS IDENTITY ( START WITH 1000000001, INCREMENT BY 1 ), \" + \"owner INT, \"\n\t\t\t\t\t+ \"balance DOUBLE, \" + \"intRate DOUBLE, \"\n\t\t\t\t\t+ \"timeCreated BIGINT, \" + \"lastPaidInterest DOUBLE, \"\n\t\t\t\t\t+ \"dateOfLastPaidInterest BIGINT)\");\n\t\t\tconn.commit();\n\t\t\tSystem.out.println(\"Created table checkingAccounts\");\n\t\t} catch (SQLException sqle) {\n\t\t\tSystem.err.println(\"Creation of checkingAccounts table FAILED\");\n\t\t\tSystem.err.println(sqle);\n\t\t}\n\t}", "@Ignore\n @Test\n public void testCreateIndex() {\n System.out.println(\"createIndex\");\n Util.commonServiceIPs=\"127.0.0.1\";\n \n EntityManager em=Util.getEntityManagerFactory(100).createEntityManager();\n EntityManager platformEm = Util.getPlatformEntityManagerFactory().createEntityManager();\n \n Client client = ESUtil.getClient(em,platformEm,1,false);\n \n RuntimeContext.dataobjectTypes = Util.getDataobjectTypes();\n String indexName = \"test000000\";\n try {\n ESUtil.createIndex(platformEm, client, indexName, true);\n }\n catch(Exception e)\n {\n \n }\n \n\n }", "public void createVirtualTable(){\n\n\t\t\n\t\tif(DBHandler.getConnection()==null){\n\t\t\treturn;\n\t\t}\n\n\t\tif(DBHandler.tableExists(name())){\n\t\t\treturn;\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tStatement s = DBHandler.getConnection().createStatement();\n\t\t\ts.execute(\"create virtual table \"+name()+\" using fts4(\"+struct()+\")\");\n\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\tMainFrame.print(e.getMessage());\n\t\t}\n\t}", "public int create (Section section) throws DataAccessException;", "protected abstract void createAttributes();", "private MetaSparqlRequest createInsertMT1() {\n\t\tString sparqlStr = \"\"+\n\t\t\t\t\"PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>\\r\\n\" + \n\t\t\t\t\"PREFIX ub: \"+_ontology+\"\\r\\n\" + \n\t\t\t\t\"INSERT DATA { GRAPH \"+_graph+\" { \"+\n\t\t\t\tbuilderBindInsert\n\t\t\t\t+\" } }\";\n\t\t\n\t\tSparqlObj sparql= new SparqlObj(sparqlStr) ;\n\t\tEndPoint endPointHost= new EndPoint(_protocol,_host,_port,\"/update\");\n\t\tMetaSparqlRequest msr = new MetaSparqlRequest(new SparqlRequest(sparql,endPointHost));\n\t\tmsr.setTripleInsert(createTripleBaseMT1());\n\t\treturn msr;\n\t}", "public void createTables(){\n Map<String, String> name_type_map = new HashMap<>();\n List<String> primaryKey = new ArrayList<>();\n try {\n name_type_map.put(KEY_SINK_NAME, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_SINK_ADDRESS, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_SINK_DETAIL, MyDatabase.TYPE_VARCHAR);\n primaryKey.add(KEY_SINK_ADDRESS);\n myDatabase.createTable(TABLE_SINK, name_type_map, primaryKey, null);\n }catch (MySQLException e){ //数据表已存在\n e.print();\n }\n try {\n name_type_map.clear();\n name_type_map.put(KEY_NODE_NAME, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_PARENT, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_DETAIL, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_ADDRESS,MyDatabase.TYPE_VARCHAR);\n primaryKey.clear();\n primaryKey.add(KEY_NODE_PARENT);\n primaryKey.add(KEY_NODE_ADDRESS);\n myDatabase.createTable(TABLE_NODE, name_type_map, primaryKey, null);\n }catch (MySQLException e){\n e.print();\n }\n\n try {\n name_type_map.clear();\n name_type_map.put(KEY_NODE_ADDRESS, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_PARENT, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_DATA_TIME, MyDatabase.TYPE_TIMESTAMP);\n name_type_map.put(KEY_DATA_VAL, MyDatabase.TYPE_FLOAT);\n primaryKey.clear();\n primaryKey.add(KEY_DATA_TIME);\n primaryKey.add(KEY_NODE_ADDRESS);\n primaryKey.add(KEY_NODE_PARENT);\n myDatabase.createTable(TABLE_DATA, name_type_map, primaryKey, null);\n }catch (MySQLException e) {\n e.print();\n }\n }", "int insert(ec_environment record);", "public void setup() throws SQLException {\n // Create ACARS table\n final String createTableSQL = \"CREATE TABLE IF NOT EXISTS ACARS (\"\n + \"date DATE, time TIME, frequency CHAR(7), \"\n + \"registration VARCHAR(7), flight CHAR(6), \"\n + \"mode CHAR, label CHAR(2), blockId CHAR, msgId CHAR(4), \"\n + \"text VARCHAR(255), \"\n + \"PRIMARY KEY (date, registration, flight, mode, label, blockId, msgId), \"\n + \"INDEX datetime_idx (date, time), \"\n + \"INDEX registration_idx (registration), \"\n + \"INDEX flight_idx (flight)\"\n + \")\";\n\n final Statement createTableStmt = connection.createStatement();\n createTableStmt.execute(createTableSQL);\n }", "TableInstance createTableInstance();", "private String createTableSQL()\n\t{\n\t\tStringBuffer str = new StringBuffer();\n\n\t\t// Keep track of the list of fields\n\t\tList<String> listFields = new ArrayList<String>();\n\n\t\t// Table command\n\t\tstr.append(\"CREATE TABLE \" + getFullPath() + \"( \");\n\t\tstr.append(createStandardGZFields());\n\n\t\t// Loop through all InputFields\n\t\tfor (InputFieldSet fieldSet : function.getInputFieldSets())\n\t\t{\n\t\t\tfor (InputField inputField : fieldSet.getInputFields())\n\t\t\t{\n\t\t\t\t// Phase 2 does not support repeating fields being journalled\n\t\t\t\tif (!Field.isRepeating(inputField))\n\t\t\t\t{\n\t\t\t\t\t// Field\n\t\t\t\t\tString fieldName = SQLToolbox.cvtToSQLFieldName(inputField.getId());\n\n\t\t\t\t\t// add if not yet existing\n\t\t\t\t\tif (listFields.indexOf(fieldName) == -1)\n\t\t\t\t\t{\n\t\t\t\t\t\tstr.append(\", \");\n\t\t\t\t\t\tString fieldDataType = inputField.getDataType();\n\t\t\t\t\t\tString fieldType = SQLToolbox.cvtToSQLFieldType(fieldDataType, inputField.getSize(), inputField\n\t\t\t\t\t\t\t\t\t\t.getDecimals());\n\t\t\t\t\t\tString fieldDefault = SQLToolbox.cvtToSQLDefault(fieldDataType);\n\t\t\t\t\t\tstr.append(fieldName + \" \" + fieldType + \" \" + \" not null default \" + fieldDefault);\n\t\t\t\t\t\tlistFields.add(fieldName);\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// End\n\t\tstr.append(\" ) \");\n\t\t// RCDFMT \" + getJournalRcdName());\n\n\t\treturn str.toString();\n\t}", "public org.oep.cmon.dao.dvc.model.ThuTuc2GiayTo create(long id);" ]
[ "0.6137034", "0.6020893", "0.5953024", "0.5871004", "0.58520657", "0.5824135", "0.5783128", "0.5781292", "0.5779935", "0.5768486", "0.57018137", "0.569296", "0.5677845", "0.566757", "0.56516117", "0.5639093", "0.56084186", "0.5601316", "0.55988264", "0.5587084", "0.5586368", "0.5579563", "0.55671966", "0.5562383", "0.55537105", "0.55511224", "0.5550222", "0.5547236", "0.55009055", "0.54889506", "0.5482187", "0.54807544", "0.5465443", "0.5454913", "0.54468626", "0.5434606", "0.5426381", "0.54197514", "0.5414243", "0.54073745", "0.5402808", "0.5390703", "0.5390526", "0.5390526", "0.5390526", "0.538945", "0.53878444", "0.53796816", "0.5375914", "0.53748345", "0.53730184", "0.5365049", "0.5364833", "0.5364805", "0.536257", "0.5361029", "0.5360632", "0.53598887", "0.5350994", "0.5339128", "0.5338244", "0.53296435", "0.5321595", "0.5320979", "0.53194505", "0.5318698", "0.5313326", "0.53126156", "0.53099495", "0.5306004", "0.5300889", "0.5293614", "0.529321", "0.52883255", "0.5281361", "0.5281042", "0.527843", "0.5270345", "0.526982", "0.52697945", "0.52608657", "0.5259804", "0.52563196", "0.5249798", "0.5247741", "0.5239433", "0.5224713", "0.5224455", "0.5222238", "0.5221105", "0.521778", "0.5213034", "0.5211071", "0.52098143", "0.5208245", "0.5207931", "0.52069414", "0.5205663", "0.52015704", "0.5196995", "0.5195414" ]
0.0
-1
CREATE BY ANH DUC
Page<AccountDTO> findAllByBirthday(LocalDate birthday, Pageable pageable);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int createTable(HbaseObj t);", "private void processCreate() throws HsqlException {\n\n boolean unique = false;\n int tableType;\n boolean isTempTable = false;\n String token;\n\n session.checkAdmin();\n session.checkDDLWrite();\n session.setScripting(true);\n\n if (tokenizer.isGetThis(Token.T_GLOBAL)) {\n tokenizer.getThis(Token.T_TEMPORARY);\n\n isTempTable = true;\n } else if (tokenizer.isGetThis(Token.T_TEMP)) {\n isTempTable = true;\n } else if (tokenizer.isGetThis(Token.T_TEMPORARY)) {\n isTempTable = true;\n }\n\n token = tokenizer.getSimpleToken();\n\n switch (Token.get(token)) {\n\n // table\n case Token.MEMORY :\n tokenizer.getThis(Token.T_TABLE);\n case Token.TABLE :\n tableType = isTempTable ? Table.TEMP_TABLE\n : database.getDefaultTableType();\n\n processCreateTable(tableType);\n\n return;\n\n case Token.CACHED :\n if (isTempTable) {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n\n tokenizer.getThis(Token.T_TABLE);\n processCreateTable(Table.CACHED_TABLE);\n\n return;\n\n case Token.TEXT :\n if (isTempTable) {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n\n tokenizer.getThis(Token.T_TABLE);\n processCreateTable(Table.TEXT_TABLE);\n\n return;\n\n default :\n if (isTempTable) {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n }\n\n switch (Token.get(token)) {\n\n // other objects\n case Token.ALIAS :\n processCreateAlias();\n break;\n\n case Token.SEQUENCE :\n processCreateSequence();\n break;\n\n case Token.SCHEMA :\n session.setScripting(false);\n processCreateSchema();\n break;\n\n case Token.TRIGGER :\n processCreateTrigger();\n break;\n\n case Token.USER :\n processCreateUser();\n break;\n\n case Token.ROLE :\n database.getGranteeManager().addRole(getUserIdentifier());\n break;\n\n case Token.VIEW :\n processCreateView();\n break;\n\n // index\n case Token.UNIQUE :\n unique = true;\n\n tokenizer.getThis(Token.T_INDEX);\n\n //fall thru\n case Token.INDEX :\n processCreateIndex(unique);\n break;\n\n default : {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n }\n }", "void create(DataTableDef def) throws IOException;", "CreationData creationData();", "protected abstract D createData();", "FromTable createFromTable();", "public void create() {\n\t\t\n\t}", "public void create() {\n\t\t\tdb.execSQL(AGENCYDB_CREATE+\".separete,.import agency.txt agency\");\n\t\t\tdb.execSQL(STOPSDB_CREATE+\".separete,.import stop_times.txt stop_times\");\n\t\t\t\n\t\t\t// Add 2 agencies for testing\n\t\t\t\n\t\t\t\n\t\t\tdb.setVersion(DATABASE_VERSION);\n\t\t}", "HdbdtiModel createHdbdtiModel();", "HdbSequenceElements createHdbSequenceElements();", "DD createDD();", "TD createTD();", "public String createTable(){\r\n return \"CREATE TABLE Doctor \" +\r\n \"(idDoctor decimal primary key, \" +\r\n \"firstNameDoctor char(14), \" +\r\n \"lastNameDoctor char(14), \" +\r\n \"costPerVisit integer,\" +\r\n \"qualification varchar(32))\";\r\n }", "private void createCDAccountsTable() {\n\t\ttry {\n\t\t\tStatement stmt = this.conn.createStatement();\n\t\t\tstmt.executeUpdate(\"CREATE TABLE cdAccounts \"\n\t\t\t\t\t+ \"(id BIGINT GENERATED ALWAYS AS IDENTITY ( START WITH 3000000001, INCREMENT BY 1 ), \" + \"owner INT, \"\n\t\t\t\t\t+ \"term INT, \" + \"balance DOUBLE, \" + \"intRate DOUBLE, \"\n\t\t\t\t\t+ \"timeCreated BIGINT, \" + \"lastPaidInterest DOUBLE, \"\n\t\t\t\t\t+ \"dateOfLastPaidInterest BIGINT)\");\n\t\t\tconn.commit();\n\t\t\tSystem.out.println(\"Created table cdAccounts\");\n\t\t} catch (SQLException sqle) {\n\t\t\tSystem.err.println(\"Creation of cdAccounts table FAILED\");\n\t\t\tSystem.err.println(sqle);\n\t\t}\n\t}", "public void createDienst()\n\t{\n\t\twriteDb(\"INSERT INTO dienstleistung (Bezeichnung, Preis)\" + \"VALUES('\" + typ + \"', '\" + preis +\"')\", getWriteCon());\n\t\tcommitDbConnection(getWriteCon());\n\t}", "public void create(){}", "@Override\n\tpublic String createTable() {\n\t\t\t\treturn \"CREATE TABLE history_table_view(id number(8) primary key not null ,sqltext text, pointid varchar2(1024), type varchar2(100))\";\n\t}", "public static void createTable() {\n\n // Create statement\n Statement statement = null;\n try {\n statement = Database.getDatabase().getConnection().createStatement();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n // Attempt to create table\n try {\n statement.execute(\n \"CREATE TABLE \" + Constants.SANITATION_TABLE + \"(\" +\n \"requestID INT PRIMARY KEY GENERATED ALWAYS AS IDENTITY (START WITH 1, INCREMENT BY 1),\" +\n \"nodeID VARCHAR(100) References \" + Constants.LOCATION_TABLE + \" (nodeID), \" +\n \"priority VARCHAR(10), \" +\n \"status VARCHAR(100), \" +\n \"description VARCHAR(100), \" +\n \"requesterID INT REFERENCES \" + Constants.USERS_TABLE + \"(userID), \" +\n \"requestTime TIMESTAMP, \" +\n \"servicerID INT REFERENCES \" + Constants.USERS_TABLE + \"(userID), \" +\n \"claimedTime TIMESTAMP, \" +\n \"completedTime TIMESTAMP, \" +\n \"CONSTRAINT priority_enum CHECK (priority in ('LOW', 'MEDIUM', 'HIGH')), \" +\n \"CONSTRAINT status_enum CHECK (status in ('INCOMPLETE', 'COMPLETE')))\"\n );\n } catch (SQLException | NullPointerException e) {\n e.printStackTrace();\n }\n }", "BTable createBTable();", "@Override\r\n\tpublic void create() {\n\t\t\r\n\t}", "@Override\n\tpublic void create() {\n\t\t\n\t}", "public abstract Anuncio creaAnuncioTematico();", "long createDatabase(long actor, String nameToDisplay, long proteinDBType, long sizeInBytes, boolean bPublic, boolean bReversed, ExperimentCategory category);", "TABLE createTABLE();", "private void processCreateTable(int type) throws HsqlException {\n\n String token = tokenizer.getName();\n HsqlName schemaname =\n session.getSchemaHsqlNameForWrite(tokenizer.getLongNameFirst());\n\n database.schemaManager.checkUserTableNotExists(session, token,\n schemaname.name);\n\n boolean isnamequoted = tokenizer.wasQuotedIdentifier();\n int[] pkCols = null;\n int colIndex = 0;\n boolean constraint = false;\n Table t = newTable(type, token, isnamequoted, schemaname);\n\n tokenizer.getThis(Token.T_OPENBRACKET);\n\n while (true) {\n token = tokenizer.getString();\n\n switch (Token.get(token)) {\n\n case Token.CONSTRAINT :\n case Token.PRIMARY :\n case Token.FOREIGN :\n case Token.UNIQUE :\n case Token.CHECK :\n\n // fredt@users : check for quoted reserved words used as column names\n constraint = !tokenizer.wasQuotedIdentifier()\n && !tokenizer.wasLongName();\n }\n\n tokenizer.back();\n\n if (constraint) {\n break;\n }\n\n Column newcolumn = processCreateColumn();\n\n t.addColumn(newcolumn);\n\n if (newcolumn.isPrimaryKey()) {\n Trace.check(pkCols == null, Trace.SECOND_PRIMARY_KEY,\n newcolumn.columnName.name);\n\n pkCols = new int[]{ colIndex };\n }\n\n token = tokenizer.getSimpleToken();\n\n if (token.equals(Token.T_COMMA)) {\n colIndex++;\n\n continue;\n }\n\n if (token.equals(Token.T_CLOSEBRACKET)) {\n break;\n }\n\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n\n HsqlArrayList tempConstraints = processCreateConstraints(t,\n constraint, pkCols);\n\n if (tokenizer.isGetThis(Token.T_ON)) {\n if (!t.isTemp) {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, Token.T_ON);\n }\n\n tokenizer.getThis(Token.T_COMMIT);\n\n token = tokenizer.getSimpleToken();\n\n if (token.equals(Token.T_DELETE)) {}\n else if (token.equals(Token.T_PRESERVE)) {\n t.onCommitPreserve = true;\n } else {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n\n tokenizer.getThis(Token.T_ROWS);\n }\n\n try {\n session.commit();\n\n Constraint primaryConst = (Constraint) tempConstraints.get(0);\n\n t.createPrimaryKey(null, primaryConst.core.mainColArray, true);\n\n if (primaryConst.core.mainColArray != null) {\n if (primaryConst.constName == null) {\n primaryConst.constName = t.makeSysPKName();\n }\n\n Constraint newconstraint =\n new Constraint(primaryConst.constName, t,\n t.getPrimaryIndex(),\n Constraint.PRIMARY_KEY);\n\n t.addConstraint(newconstraint);\n database.schemaManager.registerConstraintName(\n primaryConst.constName.name, t.getName());\n }\n\n for (int i = 1; i < tempConstraints.size(); i++) {\n Constraint tempConst = (Constraint) tempConstraints.get(i);\n\n if (tempConst.constType == Constraint.UNIQUE) {\n TableWorks tableWorks = new TableWorks(session, t);\n\n tableWorks.createUniqueConstraint(\n tempConst.core.mainColArray, tempConst.constName);\n\n t = tableWorks.getTable();\n }\n\n if (tempConst.constType == Constraint.FOREIGN_KEY) {\n TableWorks tableWorks = new TableWorks(session, t);\n\n tableWorks.createForeignKey(tempConst.core.mainColArray,\n tempConst.core.refColArray,\n tempConst.constName,\n tempConst.core.refTable,\n tempConst.core.deleteAction,\n tempConst.core.updateAction);\n\n t = tableWorks.getTable();\n }\n\n if (tempConst.constType == Constraint.CHECK) {\n TableWorks tableWorks = new TableWorks(session, t);\n\n tableWorks.createCheckConstraint(tempConst,\n tempConst.constName);\n\n t = tableWorks.getTable();\n }\n }\n\n database.schemaManager.linkTable(t);\n } catch (HsqlException e) {\n\n// fredt@users 20020225 - comment\n// if a HsqlException is thrown while creating table, any foreign key that has\n// been created leaves it modification to the expTable in place\n// need to undo those modifications. This should not happen in practice.\n database.schemaManager.removeExportedKeys(t);\n database.schemaManager.removeIndexNames(t.tableName);\n database.schemaManager.removeConstraintNames(t.tableName);\n\n throw e;\n }\n }", "@Override\n\tpublic void create() {\n\n\t}", "public void testCreateTable() {\n LOG.info(\"Entering testCreateTable.\");\n\n // Specify the table descriptor.\n HTableDescriptor htd = new HTableDescriptor(tableName);\n\n // Set the column family name to info.\n HColumnDescriptor hcd = new HColumnDescriptor(\"info\");\n\n // Set data encoding methods,HBase provides DIFF,FAST_DIFF,PREFIX\n // and PREFIX_TREE\n hcd.setDataBlockEncoding(DataBlockEncoding.FAST_DIFF);\n\n // Set compression methods, HBase provides two default compression\n // methods:GZ and SNAPPY\n // GZ has the highest compression rate,but low compression and\n // decompression effeciency,fit for cold data\n // SNAPPY has low compression rate, but high compression and\n // decompression effeciency,fit for hot data.\n // it is advised to use SANPPY\n hcd.setCompressionType(Compression.Algorithm.SNAPPY);\n\n htd.addFamily(hcd);\n\n Admin admin = null;\n try {\n // Instantiate an Admin object.\n admin = conn.getAdmin();\n if (!admin.tableExists(tableName)) {\n LOG.info(\"Creating table...\");\n admin.createTable(htd);\n LOG.info(admin.getClusterStatus());\n LOG.info(admin.listNamespaceDescriptors());\n LOG.info(\"Table created successfully.\");\n } else {\n LOG.warn(\"table already exists\");\n }\n } catch (IOException e) {\n LOG.error(\"Create table failed.\");\n } finally {\n if (admin != null) {\n try {\n // Close the Admin object.\n admin.close();\n } catch (IOException e) {\n LOG.error(\"Failed to close admin \", e);\n }\n }\n }\n LOG.info(\"Exiting testCreateTable.\");\n }", "public CreateData() {\n\t\t\n\t\t// TODO Auto-generated constructor stub\n\t}", "boolean createTable();", "@Override\r\n public Db_db createTable (Db_table table)\r\n {\r\n Db_db db = null;\r\n String query = \"CREATE TABLE IF NOT EXISTS \"+ table.getName() + \" (\"; \r\n String primaryKeyName = null;\r\n Set<Map.Entry<String, Db_tableColumn>> tableEntries;\r\n List<String> listOfUniqueKey = Lists.newArrayList();\r\n \r\n if(curConnection_ != null)\r\n {\r\n try\r\n {\r\n tableEntries = table.getEntrySet();\r\n for(Map.Entry<String, Db_tableColumn> entry: tableEntries)\r\n {\r\n Db_tableColumn entryContent = entry.getValue();\r\n \r\n if(entryContent.isPrimary() && primaryKeyName == null)\r\n {\r\n primaryKeyName = entryContent.getName();\r\n }\r\n else if(entryContent.isPrimary() && primaryKeyName != null)\r\n {\r\n throw new NumberFormatException();\r\n }\r\n \r\n if(itsAttributeMapper_ == null)\r\n {\r\n throw new NumberFormatException();\r\n }\r\n \r\n if(entryContent.isUnique())\r\n {\r\n listOfUniqueKey.add(entryContent.getName());\r\n }\r\n \r\n String mappedAttribute = this.itsAttributeMapper_.MapAttribute(entryContent.getAttributeName());\r\n if(entryContent.getAttribute().isEnum())\r\n {\r\n mappedAttribute += entryContent.getAttribute().buildEnumValueListString();\r\n }\r\n query += entryContent.getName() + \" \" + mappedAttribute \r\n + (entryContent.isAutoIncreasmnet()?\" AUTO_INCREMENT \":\" \")\r\n + (entryContent.isUnique()?\" UNIQUE, \": \", \");\r\n }\r\n \r\n query += \"PRIMARY KEY (\" + primaryKeyName + \"));\";\r\n try (Statement sm = curConnection_.createStatement()) {\r\n sm.executeUpdate(query);\r\n db = this.curDb_;\r\n }\r\n \r\n }catch(NumberFormatException e){System.out.print(e);}\r\n catch(SQLException e){System.out.print(query);this.CurConnectionFailed();}\r\n }\r\n return db;\r\n }", "public Hoppy insert(Hoppy hoppy, IdGenerateService<Long> idGenerateService) throws DataAccessException;", "interface WithCreate extends\n SqlElasticPoolOperations.DefinitionStages.WithDatabaseDtuMin,\n SqlElasticPoolOperations.DefinitionStages.WithDatabaseDtuMax,\n SqlElasticPoolOperations.DefinitionStages.WithDtu,\n SqlElasticPoolOperations.DefinitionStages.WithStorageCapacity,\n SqlElasticPoolOperations.DefinitionStages.WithDatabase,\n Resource.DefinitionWithTags<SqlElasticPoolOperations.DefinitionStages.WithCreate>,\n Creatable<SqlElasticPool> {\n }", "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:49.404 -0500\", hash_original_method = \"CD5C82C799E78C74801FDB521CEE7324\", hash_generated_method = \"CD5C82C799E78C74801FDB521CEE7324\")\n \nContext ()\n {\n copyTables();\n }", "OrTable createOrTable();", "public abstract void create();", "DT createDT();", "@Override\n public void createSchema(Properties props)\n {\n Statement statement;\n try\n {\n statement = connection.createStatement();\n \n //Drop Indexes\n dropIndex(statement, \"CONFFRIENDSHIP_INVITEEID\", \"CONFFRIENDSHIP\");\n dropIndex(statement, \"CONFFRIENDSHIP_INVITERID\", \"CONFFRIENDSHIP\");\n dropIndex(statement, \"PENDFRIENDSHIP_INVITEEID\", \"PENDFRIENDSHIP\");\n dropIndex(statement, \"PENDFRIENDSHIP_INVITERID\", \"PENDFRIENDSHIP\");\n dropIndex(statement, \"MANIPULATION_RID\", \"MANIPULATION\");\n dropIndex(statement, \"MANIPULATION_CREATORID\", \"MANIPULATION\");\n dropIndex(statement, \"RESOURCES_WALLUSERID\", \"RESOURCES\");\n dropIndex(statement, \"RESOURCE_CREATORID\", \"RESOURCES\");\n \n //Drop Tables\n dropTable(statement, \"CONFFRIENDSHIP\");\n dropTable(statement, \"PENDFRIENDSHIP\");\n dropTable(statement, \"MANIPULATION\");\n dropTable(statement, \"RESOURCES\");\n dropTable(statement, \"USERS\");\n \n //Create Tables\n statement.executeUpdate(\"CREATE TABLE CONFFRIENDSHIP \" + \"(INVITERID INTEGER NOT NULL, \" + \"INVITEEID INTEGER NOT NULL, \" + \"PRIMARY KEY (INVITERID, INVITEEID))\");\n statement.executeUpdate(\"CREATE TABLE PENDFRIENDSHIP \" + \"(INVITERID INTEGER NOT NULL, \" + \"INVITEEID INTEGER NOT NULL, \" + \"PRIMARY KEY (INVITERID, INVITEEID))\");\n statement.executeUpdate(\"CREATE TABLE MANIPULATION \" + \"(MID INTEGER NOT NULL, \" + \"MODIFIERID INTEGER NOT NULL, \" + \"RID INTEGER NOT NULL, \" + \"CREATORID INTEGER NOT NULL, \" + \"TIMESTAMP VARCHAR(200), \" + \"TYPE VARCHAR(200), \" + \"CONTENT VARCHAR(200), \" + \"PRIMARY KEY (MID,RID))\");\n statement.executeUpdate(\"CREATE TABLE RESOURCES \" + \"(RID INTEGER NOT NULL , \" + \"CREATORID INTEGER NOT NULL, \" + \"WALLUSERID INTEGER NOT NULL, \" + \"TYPE VARCHAR(200), \" + \"BODY VARCHAR(200), \" + \"DOC VARCHAR(200), \" + \"PRIMARY KEY (RID))\");\n statement.executeUpdate(\"CREATE TABLE USERS \" + \"(USERID INTEGER NOT NULL , \" + \"USERNAME VARCHAR(200), \" + \"PW VARCHAR(200), \" + \"FNAME VARCHAR(200), \" + \"LNAME VARCHAR(200), \" + \"GENDER VARCHAR(200),\" + \"DOB VARCHAR(200), \" + \"JDATE VARCHAR(200), \" + \"LDATE VARCHAR(200), \" + \"ADDRESS VARCHAR(200),\" + \"EMAIL VARCHAR(200), \" + \"TEL VARCHAR(200), \" + \"PRIMARY KEY (USERID))\");\n \n //Add Foreign Keys\n statement.executeUpdate(\"ALTER TABLE CONFFRIENDSHIP \" + \"ADD CONSTRAINT CONFFRIENDSHIP_USERS_FK1 FOREIGN KEY (INVITERID)\" + \"REFERENCES USERS (USERID) ON DELETE CASCADE\");\n statement.executeUpdate(\"ALTER TABLE CONFFRIENDSHIP \" + \"ADD CONSTRAINT CONFFRIENDSHIP_USERS_FK2 FOREIGN KEY (INVITEEID)\" + \"REFERENCES USERS (USERID) ON DELETE NO ACTION\");\n statement.executeUpdate(\"ALTER TABLE PENDFRIENDSHIP \" + \"ADD CONSTRAINT PENDFRIENDSHIP_USERS_FK1 FOREIGN KEY (INVITERID)\" + \"REFERENCES USERS (USERID) ON DELETE CASCADE\");\n statement.executeUpdate(\"ALTER TABLE PENDFRIENDSHIP \" + \"ADD CONSTRAINT PENDFRIENDSHIP_USERS_FK2 FOREIGN KEY (INVITEEID)\" + \"REFERENCES USERS (USERID) ON DELETE NO ACTION\");\n statement.executeUpdate(\"ALTER TABLE MANIPULATION \" + \"ADD CONSTRAINT MANIPULATION_RESOURCES_FK1 FOREIGN KEY (RID)\" + \"REFERENCES RESOURCES (RID) ON DELETE CASCADE\");\n statement.executeUpdate(\"ALTER TABLE MANIPULATION \" + \"ADD CONSTRAINT MANIPULATION_USERS_FK1 FOREIGN KEY (CREATORID)\" + \"REFERENCES USERS (USERID) ON DELETE NO ACTION\");\n statement.executeUpdate(\"ALTER TABLE MANIPULATION \" + \"ADD CONSTRAINT MANIPULATION_USERS_FK2 FOREIGN KEY (MODIFIERID)\" + \"REFERENCES USERS (USERID) ON DELETE NO ACTION\");\n statement.executeUpdate(\"ALTER TABLE RESOURCES \" + \"ADD CONSTRAINT RESOURCES_USERS_FK1 FOREIGN KEY (CREATORID)\" + \"REFERENCES USERS (USERID) ON DELETE CASCADE\");\n statement.executeUpdate(\"ALTER TABLE RESOURCES \" + \"ADD CONSTRAINT RESOURCES_USERS_FK2 FOREIGN KEY (WALLUSERID)\" + \"REFERENCES USERS (USERID) ON DELETE NO ACTION\");\n \n //Create Indexes\n buildIndexes(null);\n }\n catch (SQLException ex)\n {\n Logger.getLogger(WindowsAzureClientInit.class.getName()).log(Level.SEVERE, null, ex);\n System.out.println(\"Error in creating schema!\");\n }\n }", "public void createTable() throws LRException\n\t{\n\t\tgetBackground();\n\t\tDataHRecordData myData=(DataHRecordData)getData();\n\t\t// Create a new (empty) record\n\t\tcreate(new Hashtable(),myData);\n\t\tif (myData.record==null) throw new LRException(DataRMessages.nullRecord(getName()));\n\t\ttry\n\t\t{\n\t\t\tbackground.newTransaction();\n\t\t\tmyData.record.createNewTable(background.getClient(),true);\n\t\t}\n\t\tcatch (LDBException e) { setStatus(e); }\n\t}", "public boolean createTable(String input) throws IOException{\n\t\tString orgQuery = input;\n\t\torgQuery = orgQuery.trim();\n\t\tString query = input.toLowerCase().trim();\n\t\tboolean queryFailed = false;\n\t\t//Schema Instance \n\t\tSchema currentSchema = Schema.getSchemaInstance();\n\t\tString currentSchemaName = currentSchema.getCurrentSchema();\n\n\t\t//TableSchemaManager Instance\n\t\tTableSchemaManager currentTableSchemaManager = TableSchemaManager.getTableSchemaManagerInstance();\n\n\t\t//Extracting Table name\n\t\ttableName = orgQuery.substring(query.indexOf(\"table \")+6,query.indexOf(\"(\")).trim();\n\n\t\t//Updating SCHEMA.TABLE.TBL\n\t\tif(updateInformationSchemaTable()){\n\t\t\tqueryFailed = true;\n\t\t\treturn queryFailed;\n\t\t}\n\n\t\t//Extracting Table contents\n\t\tString tableContentsWithQuotes = orgQuery.substring(orgQuery.indexOf(\"(\")+1,orgQuery.length());\n\t\tString tableContents = tableContentsWithQuotes.replace(\"))\", \")\");\n\t\ttableContents = tableContents.trim();\n\n\t\tTableSchemaManager.ordinalMap = new TreeMap<Integer,List<String>>();\n\t\tTableSchemaManager.tableMap = new TreeMap<String,TreeMap<Integer,List<String>>>();\n\t\t\n\t\t//Creating n instances of Table helper\n\t\tString[] createTableContents = tableContents.split(\"\\\\,\"); \n\t\tnoOfColumns = createTableContents.length;\n\t\tCreateTableHelper[] th = new CreateTableHelper[noOfColumns];\n\n\t\t\n\t\t//Handles single row of Create Table \n\t\tfor(int item = 0; item < noOfColumns ; item++){\n\t\t\tth[item] = new CreateTableHelper(); \n\t\t\t//To remove any leading or trailing spaces\n\t\t\tcreateTableContents[item] = createTableContents[item].trim();\n\t\t\tString columnName = createTableContents[item].substring(0, createTableContents[item].indexOf(\" \"));\n\t\t\tth[item].setColumnName(columnName);\n\n\t\t\t//Setting Primary Key\n\t\t\tString primaryKeyExp = \"(.*)[pP][rR][iI][mM][aA][rR][yY](.*)\";\n\t\t\tif (createTableContents[item].matches(primaryKeyExp))\n\t\t\t\tth[item].setPrimaryKey(true);\n\t\t\telse\n\t\t\t\tth[item].setPrimaryKey(false);\n\n\t\t\t//Setting Null Value\t\n\t\t\tString notNullExp = \"(.*)[nN][uU][lL][lL](.*)\";\n\t\t\tif (createTableContents[item].matches(notNullExp))\n\t\t\t\tth[item].setNull(true);\n\t\t\telse\n\t\t\t\tth[item].setNull(false);\n\n\t\t\t//Extracting data types \n\t\t\t//BYTE\n\t\t\tString byteExp = \"(.*)[bB][yY][tT][eE](.*)\";\n\t\t\tif (createTableContents[item].matches(byteExp)){\n\t\t\t\tth[item].setDataType(\"BYTE\");\n\t\t\t}\n\t\t\t//SHORT\n\t\t\tString shortExp = \"(.*)[sS][hH][oO][rR][tT](.*)\";\n\t\t\tif (createTableContents[item].matches(shortExp)){\n\t\t\t\tth[item].setDataType(\"SHORT\");\n\t\t\t}\n\t\t\t//INT\n\t\t\tString intExp = \"(.*)[iI][nN][tT](.*)\";\n\t\t\tif (createTableContents[item].matches(intExp)){\n\t\t\t\tth[item].setDataType(\"INT\");\n\t\t\t}\n\t\t\t//LONG\n\t\t\tString longExp = \"(.*)[lL][oO][nN][gG](.*)\";\n\t\t\tif (createTableContents[item].matches(longExp)){\n\t\t\t\tth[item].setDataType(\"LONG\");\n\t\t\t}\n\t\t\t//CHAR\n\t\t\tString charExp = \"(.*)[cC][hH][aA][rR](.*)\";\n\t\t\tif (createTableContents[item].matches(charExp)){\n\t\t\t\tString size = createTableContents[item].substring(createTableContents[item].indexOf(\"(\")+1, createTableContents[item].indexOf(\")\"));\n\t\t\t\tth[item].setDataType(\"CHAR(\" + size + \")\");\n\t\t\t}\n\t\t\t//VARCHAR\n\t\t\tString varcharExp = \"(.*)[vV][aA][rR][cC][hH][aA][rR](.*)\";\n\t\t\tif (createTableContents[item].matches(varcharExp)){\n\t\t\t\tString size = createTableContents[item].substring(createTableContents[item].indexOf(\"(\")+1, createTableContents[item].indexOf(\")\"));\n\t\t\t\tth[item].setDataType(\"VARCHAR(\" + size + \")\");\n\t\t\t}\n\t\t\t//FLOAT\n\t\t\tString floatExp = \"(.*)[fF][lL][oO][aA][tT](.*)\";\n\t\t\tif (createTableContents[item].matches(floatExp)){\n\t\t\t\tth[item].setDataType(\"FLOAT\");\t\t\t\t\n\t\t\t}\n\t\t\t//DOUBLE\n\t\t\tString doubleExp = \"(.*)[dD][oO][uU][bB][lL][eE](.*)\";\n\t\t\tif (createTableContents[item].matches(doubleExp)){\n\t\t\t\tth[item].setDataType(\"DOUBLE\");\n\t\t\t}\n\t\t\t//DATETIME\n\t\t\tString dateTimeExp = \"(.*)[dD][aA][tT][eE][tT][iI][mM][eE](.*)\";\n\t\t\tif (createTableContents[item].matches(dateTimeExp)){\n\t\t\t\tth[item].setDataType(\"DATETIME\");\n\t\t\t}\n\t\t\t//DATE\n\t\t\tString dateExp = \"(.*)[dD][aA][tT][eE](.*)\";\n\t\t\tif (createTableContents[item].matches(dateExp)){\n\t\t\t\tth[item].setDataType(\"DATE\");\n\t\t\t}\n\n\t\t\tcurrentTableSchemaManager.newTableSchema(\n\t\t\t\t\ttableName,\n\t\t\t\t\titem,\n\t\t\t\t\tth[item].getColumnName(),\n\t\t\t\t\tth[item].getDataType(),\n\t\t\t\t\tth[item].isNull(),\n\t\t\t\t\tth[item].isPrimaryKey()\n\t\t\t\t\t);\n\n\t\t\t//Updating SCHEMA.COLUMNS.TBL\n\t\t\tupdateInformationSchemaColumn(\n\t\t\t\t\tth[item].getColumnName(),\n\t\t\t\t\titem,\n\t\t\t\t\tth[item].getDataType(),\n\t\t\t\t\tth[item].isNull(),\n\t\t\t\t\tth[item].isPrimaryKey()\n\t\t\t\t\t);\n\t\t\t//Create tables to insert index\n\t\t\tString newTableIndexName = currentSchemaName + \".\" + tableName + \".\" +th[item].getColumnName()+ \".tbl.ndx\";\n\t\t\tRandomAccessFile newTableIndexFile = new RandomAccessFile(newTableIndexName, \"rw\");\n\t\t\tnewTableIndexFile.close();\n\n\t\t}\n\n\t\tTableSchemaManager.tableMap.put(tableName, TableSchemaManager.ordinalMap);\n\t\tcurrentTableSchemaManager.updateTableSchema(currentSchemaName,tableName);\n\t\t\n\t\t//Create tables to insert data \n\t\tString newTableDataName = currentSchemaName + \".\" + tableName + \".tbl\";\n\t\tRandomAccessFile newTableDataFile = new RandomAccessFile(newTableDataName, \"rw\");\n\t\tnewTableDataFile.close();\n\t\treturn queryFailed;\n\t}", "public String createDSIndex(String dsID, String dschemaID, String attriName);", "private void createStressTestControlTable() {\n Column runId = new Column(\"RUN_ID\");\n runId.setMappedType(\"INTEGER\");\n runId.setPrimaryKey(true);\n runId.setRequired(true);\n Column clientCommitSleepMs = new Column(\"CLIENT_COMMIT_SLEEP_MS\");\n clientCommitSleepMs.setMappedType(\"BIGINT\");\n Column clientCommitRows = new Column(\"CLIENT_COMMIT_ROWS\");\n clientCommitRows.setMappedType(\"BIGINT\");\n Column serverCommitSleepMs = new Column(\"SERVER_COMMIT_SLEEP_MS\");\n serverCommitSleepMs.setMappedType(\"BIGINT\");\n Column serverCommitRows = new Column(\"SERVER_COMMIT_ROWS\");\n serverCommitRows.setMappedType(\"BIGINT\");\n Column payloadColumns = new Column(\"PAYLOAD_COLUMNS\");\n payloadColumns.setMappedType(\"INTEGER\");\n Column initialSeedSize = new Column(\"INITIAL_SEED_SIZE\");\n initialSeedSize.setMappedType(\"BIGINT\");\n Column duration = new Column(\"DURATION_MINUTES\");\n duration.setMappedType(\"BIGINT\");\n\n Table table = new Table(STRESS_TEST_CONTROL, runId, clientCommitSleepMs, clientCommitRows, serverCommitSleepMs, serverCommitRows,\n payloadColumns, initialSeedSize, duration);\n engine.getDatabasePlatform().createTables(true, true, table);\n }", "@Override\r\n\tpublic void create() {\n\r\n\t}", "Statement createStatement();", "Statement createStatement();", "Statement createStatement();", "public void doCreateTable();", "@Override\n public Pipe execute(DBMS engine) throws DBxicException {\n engine.storManager.createTable(table);\n engine.catalog.saveCatalog();\n return new MessageThroughPipe(\"Table \" + table.getName() + \" successfully created\");\n }", "@Override\n public void setUp() throws SQLException {\n connection.createStatement().executeUpdate(\n \"CREATE TABLE IF NOT EXISTS \\\"ENTRY\\\" (\" +\n \"\\\"SHARED_ID\\\" SERIAL PRIMARY KEY, \" +\n \"\\\"TYPE\\\" VARCHAR, \" +\n \"\\\"VERSION\\\" INTEGER DEFAULT 1)\");\n\n connection.createStatement().executeUpdate(\n \"CREATE TABLE IF NOT EXISTS \\\"FIELD\\\" (\" +\n \"\\\"ENTRY_SHARED_ID\\\" INTEGER REFERENCES \\\"ENTRY\\\"(\\\"SHARED_ID\\\") ON DELETE CASCADE, \" +\n \"\\\"NAME\\\" VARCHAR, \" +\n \"\\\"VALUE\\\" TEXT)\");\n\n connection.createStatement().executeUpdate(\n \"CREATE TABLE IF NOT EXISTS \\\"METADATA\\\" (\"\n + \"\\\"KEY\\\" VARCHAR,\"\n + \"\\\"VALUE\\\" TEXT)\");\n }", "private void m14053d() {\n try {\n File file = new File(f18051l);\n File file2 = new File(f18052m);\n if (!file.exists()) {\n file.mkdirs();\n }\n if (!file2.exists()) {\n file2.createNewFile();\n }\n if (file2.exists()) {\n SQLiteDatabase openOrCreateDatabase = SQLiteDatabase.openOrCreateDatabase(file2, null);\n openOrCreateDatabase.execSQL(\"CREATE TABLE IF NOT EXISTS bdcltb09(id CHAR(40) PRIMARY KEY,time DOUBLE,tag DOUBLE, type DOUBLE , ac INT);\");\n openOrCreateDatabase.execSQL(\"CREATE TABLE IF NOT EXISTS wof(id CHAR(15) PRIMARY KEY,mktime DOUBLE,time DOUBLE, ac INT, bc INT, cc INT);\");\n openOrCreateDatabase.setVersion(1);\n openOrCreateDatabase.close();\n }\n this.f18053a = true;\n } catch (Exception e) {\n }\n }", "interface WithDtu {\n /**\n * Sets the total shared DTU for the SQL Azure Database Elastic Pool.\n *\n * @param dtu total shared DTU for the SQL Azure Database Elastic Pool\n * @return The next stage of the definition.\n */\n @Deprecated\n SqlElasticPoolOperations.DefinitionStages.WithCreate withDtu(int dtu);\n }", "@POST\n @Produces({\"application/json\"})\n public String createDb() throws WebApplicationException {\n HibernateEntityManager emAdm = PersistenceManager.getInstance().getEntityManagerAdmin();\n SQLQuery qCreate = emAdm.getSession().createSQLQuery(\"CREATE DATABASE test_jeff template=postgis\");\n try{\n qCreate.executeUpdate();\n }catch(SQLGrammarException e){\n System.out.println(\"Error !!\" + e.getSQLException());\n emAdm.close();\n return e.getSQLException().getLocalizedMessage();\n }\n emAdm.close();\n Map properties = new HashMap();\n //change the connection string to the new db\n properties.put(\"hibernate.connection.url\", \"jdbc:postgresql_postGIS://192.168.12.36:5432/test_jeff\");\n EntityManagerFactory emf = Persistence.createEntityManagerFactory(\"dataPU\", properties); \n return \"Yeah\";\n }", "public abstract void createTables() throws DataServiceException;", "@Override\n\tpublic void create () {\n\n\t}", "@Test\n public void shouldCreateEpiDataGathering() {\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(0));\n\n Case caze = TestEntityCreator.createCase();\n TestEntityCreator.createEpiDataGathering(caze);\n\n // Assure that the burial has been successfully created\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(1));\n }", "Udt createUdt();", "OperacionColeccion createOperacionColeccion();", "public void create(AttributeList attributeList)\n {\n\n super.create(attributeList); \n \n OADBTransaction transaction = getOADBTransaction();\n \n // DEFAULT: supplier id is obtained from the table's sequence\n Number supplierId = transaction.getSequenceValue(\"FWK_TBX_SUPPLIERS_S\");\n setSupplierId(supplierId);\n\n // DEFAULT: start date should be set to sysdate\n setStartDate(transaction.getCurrentDBDate());\n\n \n }", "Definition createDefinition();", "H1 createH1();", "private static void createDatabase(String restrictedUser) throws ArcException {\n\t\tGenericPreparedStatementBuilder query;\n\n\t\t// clean database\n\t\tquery = new GenericPreparedStatementBuilder();\n\t\tquery.append(\"DROP SCHEMA IF EXISTS \" + DataObjectService.ARC_METADATA_SCHEMA + \" CASCADE;\");\n\t\tquery.append(\"DROP SCHEMA IF EXISTS \" + testSandbox1 + \" CASCADE;\");\n\t\tquery.append(\"DROP SCHEMA IF EXISTS public CASCADE;\");\n\t\tUtilitaireDao.get(0).executeRequest(c, query);\n\t\t\n\t\tBddPatcher patcher=new BddPatcher();\n\t\tpatcher.getProperties().setGitCommitId(newVersion);\n\t\tpatcher.getProperties().setDatabaseRestrictedUsername(userWithRestrictedRights);\n\n\t\t// metadata schema creation\n\t\tpatcher.bddScript(c);\n\t\t// sandbox schema creation\n\t\tpatcher.bddScript(c, testSandbox1, testSandbox2, testSandbox8);\n\t\t\n\t}", "Operacion createOperacion();", "private synchronized String processCreate(String query) {\r\n\t\tString[] valuesCommand = query.split(\" \");\r\n\t\tif ( valuesCommand.length != 3 )\r\n\t\t\treturn \"ERROR Bad syntaxe command CREATE - Usage : CREATE id initial_solde\";\r\n\t\tString id = valuesCommand[1];\r\n\t\tif ( this.bank.existAccount(id) ) {\r\n\t\t\treturn \"ERROR Account alwready exist\";\r\n\t\t}\r\n\t\tdouble number = Double.valueOf(valuesCommand[2]);\r\n\t\tthis.bank.createAccount(id, number);\r\n\t\treturn \"OK \" + this.bank.getLastOperation(id);\r\n\t}", "public void createNewSchema() throws SQLException {\n ResultSet resultSet = databaseStatement.executeQuery(\"select count(datname) from pg_database\");\n int uniqueID = 0;\n if(resultSet.next()) {\n uniqueID = resultSet.getInt(1);\n }\n if(uniqueID != 0) {\n uniqueID++;\n databaseStatement.executeQuery(\"CREATE DATABASE OSM\"+uniqueID+\";\");\n }\n }", "int insert(Lbt72TesuryoSumDPkey record);", "@Test(timeout = 4000)\n public void test124() throws Throwable {\n DefaultDBTable defaultDBTable0 = new DefaultDBTable();\n MockPrintWriter mockPrintWriter0 = new MockPrintWriter(\"Illegal column type format: \");\n String[] stringArray0 = new String[9];\n DBUniqueConstraint dBUniqueConstraint0 = new DBUniqueConstraint(defaultDBTable0, \"66i,cw\", true, stringArray0);\n NameSpec nameSpec0 = NameSpec.ALWAYS;\n SQLUtil.renderCreateTable(defaultDBTable0, true, nameSpec0, mockPrintWriter0);\n assertEquals(\"table\", defaultDBTable0.getObjectType());\n }", "int insert(NjProductTaticsRelation record);", "public de.uni_koblenz.jgralabtest.schemas.gretl.pddsl.Chassis createChassis();", "int insert(Disease record);", "private void creates() {\n \tDBPeer.fetchTableColumns();\n \tDBPeer.fetchTableRows();\n \tDBPeer.fetchTableIndexes();\n \t\n for (int i = 0; i < creates.size(); i++) {\n creates.get(i).init();\n }\n \n DBPeer.updateTableColumns();\n DBPeer.updateTableRows();\n DBPeer.updateTableIndexes();\n }", "InstAssignIndex createInstAssignIndex();", "WithCreate withCreationData(CreationData creationData);", "@Before\n public void createAndFillTable() {\n try {\n DBhandler dBhandler = new DBhandler(h2DbConnection);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "DataCfgTableInfo createTableIfNotExists(String dataCfgOid);", "H2 createH2();", "int insert(Lbm83ChohyokanriPkey record);", "HdbSequenceModel createHdbSequenceModel();", "DL createDL();", "For createFor();", "public org.oep.cmon.dao.tlct.model.DanhMucGiayTo create(long id);", "private Builder() {\n super(org.apache.gora.cascading.test.storage.TestRow.SCHEMA$);\n }", "public void createExempleDirect(ExempleDirect exempleDirect) throws DaoException;", "int insertSelective(NjProductTaticsRelation record);", "BIG createBIG();", "private void CreateDataIngestors() throws isisicatclient.IcatException_Exception {\n Grouping dataIngestors = new Grouping();\r\n dataIngestors.name = \"DataIngestors\";\r\n dataIngestors.id = port.create(sessionId, dataIngestors);\r\n dataIngestors = (Grouping) port.search(sessionId, \"Grouping[name='DataIngestors']\").get(0);\r\n\r\n List<String> ingestorTables = port.getEntityNames();\r\n\r\n ingestorTables.remove(\"Facility\");\r\n\r\n List<EntityBaseBean> ingestorRules = new ArrayList<>();\r\n for (String table : ingestorTables) {\r\n Rule rule = new Rule();\r\n rule.grouping = dataIngestors;\r\n rule.crudFlags = \"CRUD\"; //no delete permission for ingestors\r\n rule.what = table;\r\n ingestorRules.add(rule);\r\n }\r\n port.createMany(sessionId, ingestorRules);\r\n }", "H4 createH4();", "int insert(OrgIntegralDeductRule record);", "public void createDataTable() {\r\n Log.d(TAG, \"creating table\");\r\n String queryStr = \"\";\r\n String[] colNames = {Constants.COLUMN_NAME_ACC_X, Constants.COLUMN_NAME_ACC_Y, Constants.COLUMN_NAME_ACC_Z};\r\n queryStr += \"create table if not exists \" + Constants.TABLE_NAME;\r\n queryStr += \" ( id INTEGER PRIMARY KEY AUTOINCREMENT, \";\r\n for (int i = 1; i <= 50; i++) {\r\n for (int j = 0; j < 3; j++)\r\n queryStr += colNames[j] + \"_\" + i + \" real, \";\r\n }\r\n queryStr += Constants.COLUMN_NAME_ACTIVITY + \" text );\";\r\n execute(queryStr);\r\n Log.d(TAG, \"created table\");\r\n try {\r\n ContentValues values = new ContentValues();\r\n values.put(\"id\", 0);\r\n insertRowInTable(Constants.TABLE_NAME, values);\r\n Log.d(TAG,\"created hist table\");\r\n }catch (Exception e){\r\n Log.d(TAG,Constants.TABLE_NAME + \" table already exists\");\r\n }\r\n }", "public static void main(String[] args) {\n\t\tCreateTable createTable = new CreateTable();\n\n\t\tCity city = new City();\n\t\tcity.setId(1);\n\t\tcreateTable.execute(city);\n\n\t\tProvince province = new Province();\n\t\tprovince.setId(1);\n\t\tcreateTable.execute(province);\n\n\t\tTown town = new Town();\n\t\ttown.setId(1);\n\t\tcreateTable.execute(town);\n\n\t\tDetail detail = new Detail();\n\t\tdetail.setId(1);\n\t\tcreateTable.execute(detail);\n\n\t\tOrder order = new Order();\n\t\torder.setId(1);\n\t\tcreateTable.execute(order);\n\n\t\tBrand2 brand2 = new Brand2();\n\t\tbrand2.setId(1);\n\t\tcreateTable.execute(brand2);\n\n\t\tColor color = new Color();\n\t\tcolor.setId(1);\n\t\tcreateTable.execute(color);\n\n\t\tFeature feature = new Feature();\n\t\tfeature.setId(1);\n\t\tcreateTable.execute(feature);\n\n\t\tImg img = new Img();\n\t\timg.setId(1);\n\t\tcreateTable.execute(img);\n\n\t\tSku sku = new Sku();\n\t\tsku.setId(1);\n\t\tcreateTable.execute(sku);\n\n\t\tType type = new Type();\n\t\ttype.setId(1);\n\t\tcreateTable.execute(type);\n\n\t\tAddr addr = new Addr();\n\t\taddr.setId(1);\n\t\tcreateTable.execute(addr);\n\t\tcreateTable.execute(new Buyer());\n\n\t\t// 商品编号 商品名称 图片 新品 热卖 推荐 上下架 操作选项\n\t\tProduct product = new Product();\n\t\tproduct.setId(001);\n\t\tproduct.setNo(UUID.randomUUID().toString());\n\t\tproduct.setName(\"依琦莲2014瑜伽服套装新款 瑜珈健身服三件套 广场舞蹈服装 女瑜伽服送胸垫 长袖紫色\");\n\t\tproduct.setWeight(56.00);\n\t\tproduct.setIsNew(1); // 1是 0否\n\t\tproduct.setIsHot(1);\n\t\tproduct.setCreateTime(new Date());\n\t\tproduct.setCheckUserId(\"\");\n\t\tproduct.setCheckTime(new Date());\n\t\tproduct.setCreateUserId(\"\");\n\t\tproduct.setIsShow(1);\n\t\tproduct.setIsDel(1);\n\t\tproduct.setTypeId(1);\n\t\tproduct.setBrandId(1);\n\t\tproduct.setKeywords(\"\");\n\t\tproduct.setSales(36);\n\t\tproduct.setDescription(\"不是东西\");\n\t\tproduct.setPackageList(\"\");\n\t\tproduct.setFeature(\"头角狰狞\");\n\t\tproduct.setColor(\"blue\");\n\t\tproduct.setSize(\"L\"); // S,L,XXL\n\t\tcreateTable.execute(product);\n\n\t\t// insert into\n\t\t// Product(id,no,name,weight,isNew,isHot,sales,description,feature,size)value(1,\"11xzc3568\",\"依琦莲2014瑜伽服套装新款女瑜伽服送胸垫\n\t\t// 长袖紫色\",36.12,1,1,110,\"不是东西\",\"头角狰狞\",\"blue\",\"L\");\n\n\t\tEmployee employee = new Employee();\n\t\temployee.setId(1);\n\t\tcreateTable.execute(employee);\n\n\t}", "Vaisseau_ordonneeLaPlusHaute createVaisseau_ordonneeLaPlusHaute();", "private void createCheckingAccountsTable() {\n\t\ttry {\n\t\t\tStatement stmt = this.conn.createStatement();\n\t\t\tstmt.executeUpdate(\"CREATE TABLE checkingAccounts \"\n\t\t\t\t\t+ \"(id BIGINT GENERATED ALWAYS AS IDENTITY ( START WITH 1000000001, INCREMENT BY 1 ), \" + \"owner INT, \"\n\t\t\t\t\t+ \"balance DOUBLE, \" + \"intRate DOUBLE, \"\n\t\t\t\t\t+ \"timeCreated BIGINT, \" + \"lastPaidInterest DOUBLE, \"\n\t\t\t\t\t+ \"dateOfLastPaidInterest BIGINT)\");\n\t\t\tconn.commit();\n\t\t\tSystem.out.println(\"Created table checkingAccounts\");\n\t\t} catch (SQLException sqle) {\n\t\t\tSystem.err.println(\"Creation of checkingAccounts table FAILED\");\n\t\t\tSystem.err.println(sqle);\n\t\t}\n\t}", "@Ignore\n @Test\n public void testCreateIndex() {\n System.out.println(\"createIndex\");\n Util.commonServiceIPs=\"127.0.0.1\";\n \n EntityManager em=Util.getEntityManagerFactory(100).createEntityManager();\n EntityManager platformEm = Util.getPlatformEntityManagerFactory().createEntityManager();\n \n Client client = ESUtil.getClient(em,platformEm,1,false);\n \n RuntimeContext.dataobjectTypes = Util.getDataobjectTypes();\n String indexName = \"test000000\";\n try {\n ESUtil.createIndex(platformEm, client, indexName, true);\n }\n catch(Exception e)\n {\n \n }\n \n\n }", "public void createVirtualTable(){\n\n\t\t\n\t\tif(DBHandler.getConnection()==null){\n\t\t\treturn;\n\t\t}\n\n\t\tif(DBHandler.tableExists(name())){\n\t\t\treturn;\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tStatement s = DBHandler.getConnection().createStatement();\n\t\t\ts.execute(\"create virtual table \"+name()+\" using fts4(\"+struct()+\")\");\n\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\tMainFrame.print(e.getMessage());\n\t\t}\n\t}", "public int create (Section section) throws DataAccessException;", "protected abstract void createAttributes();", "private MetaSparqlRequest createInsertMT1() {\n\t\tString sparqlStr = \"\"+\n\t\t\t\t\"PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>\\r\\n\" + \n\t\t\t\t\"PREFIX ub: \"+_ontology+\"\\r\\n\" + \n\t\t\t\t\"INSERT DATA { GRAPH \"+_graph+\" { \"+\n\t\t\t\tbuilderBindInsert\n\t\t\t\t+\" } }\";\n\t\t\n\t\tSparqlObj sparql= new SparqlObj(sparqlStr) ;\n\t\tEndPoint endPointHost= new EndPoint(_protocol,_host,_port,\"/update\");\n\t\tMetaSparqlRequest msr = new MetaSparqlRequest(new SparqlRequest(sparql,endPointHost));\n\t\tmsr.setTripleInsert(createTripleBaseMT1());\n\t\treturn msr;\n\t}", "public void createTables(){\n Map<String, String> name_type_map = new HashMap<>();\n List<String> primaryKey = new ArrayList<>();\n try {\n name_type_map.put(KEY_SINK_NAME, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_SINK_ADDRESS, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_SINK_DETAIL, MyDatabase.TYPE_VARCHAR);\n primaryKey.add(KEY_SINK_ADDRESS);\n myDatabase.createTable(TABLE_SINK, name_type_map, primaryKey, null);\n }catch (MySQLException e){ //数据表已存在\n e.print();\n }\n try {\n name_type_map.clear();\n name_type_map.put(KEY_NODE_NAME, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_PARENT, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_DETAIL, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_ADDRESS,MyDatabase.TYPE_VARCHAR);\n primaryKey.clear();\n primaryKey.add(KEY_NODE_PARENT);\n primaryKey.add(KEY_NODE_ADDRESS);\n myDatabase.createTable(TABLE_NODE, name_type_map, primaryKey, null);\n }catch (MySQLException e){\n e.print();\n }\n\n try {\n name_type_map.clear();\n name_type_map.put(KEY_NODE_ADDRESS, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_PARENT, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_DATA_TIME, MyDatabase.TYPE_TIMESTAMP);\n name_type_map.put(KEY_DATA_VAL, MyDatabase.TYPE_FLOAT);\n primaryKey.clear();\n primaryKey.add(KEY_DATA_TIME);\n primaryKey.add(KEY_NODE_ADDRESS);\n primaryKey.add(KEY_NODE_PARENT);\n myDatabase.createTable(TABLE_DATA, name_type_map, primaryKey, null);\n }catch (MySQLException e) {\n e.print();\n }\n }", "int insert(ec_environment record);", "public void setup() throws SQLException {\n // Create ACARS table\n final String createTableSQL = \"CREATE TABLE IF NOT EXISTS ACARS (\"\n + \"date DATE, time TIME, frequency CHAR(7), \"\n + \"registration VARCHAR(7), flight CHAR(6), \"\n + \"mode CHAR, label CHAR(2), blockId CHAR, msgId CHAR(4), \"\n + \"text VARCHAR(255), \"\n + \"PRIMARY KEY (date, registration, flight, mode, label, blockId, msgId), \"\n + \"INDEX datetime_idx (date, time), \"\n + \"INDEX registration_idx (registration), \"\n + \"INDEX flight_idx (flight)\"\n + \")\";\n\n final Statement createTableStmt = connection.createStatement();\n createTableStmt.execute(createTableSQL);\n }", "TableInstance createTableInstance();", "private String createTableSQL()\n\t{\n\t\tStringBuffer str = new StringBuffer();\n\n\t\t// Keep track of the list of fields\n\t\tList<String> listFields = new ArrayList<String>();\n\n\t\t// Table command\n\t\tstr.append(\"CREATE TABLE \" + getFullPath() + \"( \");\n\t\tstr.append(createStandardGZFields());\n\n\t\t// Loop through all InputFields\n\t\tfor (InputFieldSet fieldSet : function.getInputFieldSets())\n\t\t{\n\t\t\tfor (InputField inputField : fieldSet.getInputFields())\n\t\t\t{\n\t\t\t\t// Phase 2 does not support repeating fields being journalled\n\t\t\t\tif (!Field.isRepeating(inputField))\n\t\t\t\t{\n\t\t\t\t\t// Field\n\t\t\t\t\tString fieldName = SQLToolbox.cvtToSQLFieldName(inputField.getId());\n\n\t\t\t\t\t// add if not yet existing\n\t\t\t\t\tif (listFields.indexOf(fieldName) == -1)\n\t\t\t\t\t{\n\t\t\t\t\t\tstr.append(\", \");\n\t\t\t\t\t\tString fieldDataType = inputField.getDataType();\n\t\t\t\t\t\tString fieldType = SQLToolbox.cvtToSQLFieldType(fieldDataType, inputField.getSize(), inputField\n\t\t\t\t\t\t\t\t\t\t.getDecimals());\n\t\t\t\t\t\tString fieldDefault = SQLToolbox.cvtToSQLDefault(fieldDataType);\n\t\t\t\t\t\tstr.append(fieldName + \" \" + fieldType + \" \" + \" not null default \" + fieldDefault);\n\t\t\t\t\t\tlistFields.add(fieldName);\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// End\n\t\tstr.append(\" ) \");\n\t\t// RCDFMT \" + getJournalRcdName());\n\n\t\treturn str.toString();\n\t}", "public org.oep.cmon.dao.dvc.model.ThuTuc2GiayTo create(long id);" ]
[ "0.6137034", "0.6020893", "0.5953024", "0.5871004", "0.58520657", "0.5824135", "0.5783128", "0.5781292", "0.5779935", "0.5768486", "0.57018137", "0.569296", "0.5677845", "0.566757", "0.56516117", "0.5639093", "0.56084186", "0.5601316", "0.55988264", "0.5587084", "0.5586368", "0.5579563", "0.55671966", "0.5562383", "0.55537105", "0.55511224", "0.5550222", "0.5547236", "0.55009055", "0.54889506", "0.5482187", "0.54807544", "0.5465443", "0.5454913", "0.54468626", "0.5434606", "0.5426381", "0.54197514", "0.5414243", "0.54073745", "0.5402808", "0.5390703", "0.5390526", "0.5390526", "0.5390526", "0.538945", "0.53878444", "0.53796816", "0.5375914", "0.53748345", "0.53730184", "0.5365049", "0.5364833", "0.5364805", "0.536257", "0.5361029", "0.5360632", "0.53598887", "0.5350994", "0.5339128", "0.5338244", "0.53296435", "0.5321595", "0.5320979", "0.53194505", "0.5318698", "0.5313326", "0.53126156", "0.53099495", "0.5306004", "0.5300889", "0.5293614", "0.529321", "0.52883255", "0.5281361", "0.5281042", "0.527843", "0.5270345", "0.526982", "0.52697945", "0.52608657", "0.5259804", "0.52563196", "0.5249798", "0.5247741", "0.5239433", "0.5224713", "0.5224455", "0.5222238", "0.5221105", "0.521778", "0.5213034", "0.5211071", "0.52098143", "0.5208245", "0.5207931", "0.52069414", "0.5205663", "0.52015704", "0.5196995", "0.5195414" ]
0.0
-1
CREATE BY ANH DUC
Page<AccountDTO> findAllByPhoneNumber(String phone, Pageable pageable);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int createTable(HbaseObj t);", "private void processCreate() throws HsqlException {\n\n boolean unique = false;\n int tableType;\n boolean isTempTable = false;\n String token;\n\n session.checkAdmin();\n session.checkDDLWrite();\n session.setScripting(true);\n\n if (tokenizer.isGetThis(Token.T_GLOBAL)) {\n tokenizer.getThis(Token.T_TEMPORARY);\n\n isTempTable = true;\n } else if (tokenizer.isGetThis(Token.T_TEMP)) {\n isTempTable = true;\n } else if (tokenizer.isGetThis(Token.T_TEMPORARY)) {\n isTempTable = true;\n }\n\n token = tokenizer.getSimpleToken();\n\n switch (Token.get(token)) {\n\n // table\n case Token.MEMORY :\n tokenizer.getThis(Token.T_TABLE);\n case Token.TABLE :\n tableType = isTempTable ? Table.TEMP_TABLE\n : database.getDefaultTableType();\n\n processCreateTable(tableType);\n\n return;\n\n case Token.CACHED :\n if (isTempTable) {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n\n tokenizer.getThis(Token.T_TABLE);\n processCreateTable(Table.CACHED_TABLE);\n\n return;\n\n case Token.TEXT :\n if (isTempTable) {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n\n tokenizer.getThis(Token.T_TABLE);\n processCreateTable(Table.TEXT_TABLE);\n\n return;\n\n default :\n if (isTempTable) {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n }\n\n switch (Token.get(token)) {\n\n // other objects\n case Token.ALIAS :\n processCreateAlias();\n break;\n\n case Token.SEQUENCE :\n processCreateSequence();\n break;\n\n case Token.SCHEMA :\n session.setScripting(false);\n processCreateSchema();\n break;\n\n case Token.TRIGGER :\n processCreateTrigger();\n break;\n\n case Token.USER :\n processCreateUser();\n break;\n\n case Token.ROLE :\n database.getGranteeManager().addRole(getUserIdentifier());\n break;\n\n case Token.VIEW :\n processCreateView();\n break;\n\n // index\n case Token.UNIQUE :\n unique = true;\n\n tokenizer.getThis(Token.T_INDEX);\n\n //fall thru\n case Token.INDEX :\n processCreateIndex(unique);\n break;\n\n default : {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n }\n }", "void create(DataTableDef def) throws IOException;", "CreationData creationData();", "protected abstract D createData();", "FromTable createFromTable();", "public void create() {\n\t\t\n\t}", "public void create() {\n\t\t\tdb.execSQL(AGENCYDB_CREATE+\".separete,.import agency.txt agency\");\n\t\t\tdb.execSQL(STOPSDB_CREATE+\".separete,.import stop_times.txt stop_times\");\n\t\t\t\n\t\t\t// Add 2 agencies for testing\n\t\t\t\n\t\t\t\n\t\t\tdb.setVersion(DATABASE_VERSION);\n\t\t}", "HdbdtiModel createHdbdtiModel();", "HdbSequenceElements createHdbSequenceElements();", "DD createDD();", "TD createTD();", "public String createTable(){\r\n return \"CREATE TABLE Doctor \" +\r\n \"(idDoctor decimal primary key, \" +\r\n \"firstNameDoctor char(14), \" +\r\n \"lastNameDoctor char(14), \" +\r\n \"costPerVisit integer,\" +\r\n \"qualification varchar(32))\";\r\n }", "private void createCDAccountsTable() {\n\t\ttry {\n\t\t\tStatement stmt = this.conn.createStatement();\n\t\t\tstmt.executeUpdate(\"CREATE TABLE cdAccounts \"\n\t\t\t\t\t+ \"(id BIGINT GENERATED ALWAYS AS IDENTITY ( START WITH 3000000001, INCREMENT BY 1 ), \" + \"owner INT, \"\n\t\t\t\t\t+ \"term INT, \" + \"balance DOUBLE, \" + \"intRate DOUBLE, \"\n\t\t\t\t\t+ \"timeCreated BIGINT, \" + \"lastPaidInterest DOUBLE, \"\n\t\t\t\t\t+ \"dateOfLastPaidInterest BIGINT)\");\n\t\t\tconn.commit();\n\t\t\tSystem.out.println(\"Created table cdAccounts\");\n\t\t} catch (SQLException sqle) {\n\t\t\tSystem.err.println(\"Creation of cdAccounts table FAILED\");\n\t\t\tSystem.err.println(sqle);\n\t\t}\n\t}", "public void createDienst()\n\t{\n\t\twriteDb(\"INSERT INTO dienstleistung (Bezeichnung, Preis)\" + \"VALUES('\" + typ + \"', '\" + preis +\"')\", getWriteCon());\n\t\tcommitDbConnection(getWriteCon());\n\t}", "public void create(){}", "@Override\n\tpublic String createTable() {\n\t\t\t\treturn \"CREATE TABLE history_table_view(id number(8) primary key not null ,sqltext text, pointid varchar2(1024), type varchar2(100))\";\n\t}", "public static void createTable() {\n\n // Create statement\n Statement statement = null;\n try {\n statement = Database.getDatabase().getConnection().createStatement();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n // Attempt to create table\n try {\n statement.execute(\n \"CREATE TABLE \" + Constants.SANITATION_TABLE + \"(\" +\n \"requestID INT PRIMARY KEY GENERATED ALWAYS AS IDENTITY (START WITH 1, INCREMENT BY 1),\" +\n \"nodeID VARCHAR(100) References \" + Constants.LOCATION_TABLE + \" (nodeID), \" +\n \"priority VARCHAR(10), \" +\n \"status VARCHAR(100), \" +\n \"description VARCHAR(100), \" +\n \"requesterID INT REFERENCES \" + Constants.USERS_TABLE + \"(userID), \" +\n \"requestTime TIMESTAMP, \" +\n \"servicerID INT REFERENCES \" + Constants.USERS_TABLE + \"(userID), \" +\n \"claimedTime TIMESTAMP, \" +\n \"completedTime TIMESTAMP, \" +\n \"CONSTRAINT priority_enum CHECK (priority in ('LOW', 'MEDIUM', 'HIGH')), \" +\n \"CONSTRAINT status_enum CHECK (status in ('INCOMPLETE', 'COMPLETE')))\"\n );\n } catch (SQLException | NullPointerException e) {\n e.printStackTrace();\n }\n }", "BTable createBTable();", "@Override\r\n\tpublic void create() {\n\t\t\r\n\t}", "@Override\n\tpublic void create() {\n\t\t\n\t}", "public abstract Anuncio creaAnuncioTematico();", "long createDatabase(long actor, String nameToDisplay, long proteinDBType, long sizeInBytes, boolean bPublic, boolean bReversed, ExperimentCategory category);", "TABLE createTABLE();", "private void processCreateTable(int type) throws HsqlException {\n\n String token = tokenizer.getName();\n HsqlName schemaname =\n session.getSchemaHsqlNameForWrite(tokenizer.getLongNameFirst());\n\n database.schemaManager.checkUserTableNotExists(session, token,\n schemaname.name);\n\n boolean isnamequoted = tokenizer.wasQuotedIdentifier();\n int[] pkCols = null;\n int colIndex = 0;\n boolean constraint = false;\n Table t = newTable(type, token, isnamequoted, schemaname);\n\n tokenizer.getThis(Token.T_OPENBRACKET);\n\n while (true) {\n token = tokenizer.getString();\n\n switch (Token.get(token)) {\n\n case Token.CONSTRAINT :\n case Token.PRIMARY :\n case Token.FOREIGN :\n case Token.UNIQUE :\n case Token.CHECK :\n\n // fredt@users : check for quoted reserved words used as column names\n constraint = !tokenizer.wasQuotedIdentifier()\n && !tokenizer.wasLongName();\n }\n\n tokenizer.back();\n\n if (constraint) {\n break;\n }\n\n Column newcolumn = processCreateColumn();\n\n t.addColumn(newcolumn);\n\n if (newcolumn.isPrimaryKey()) {\n Trace.check(pkCols == null, Trace.SECOND_PRIMARY_KEY,\n newcolumn.columnName.name);\n\n pkCols = new int[]{ colIndex };\n }\n\n token = tokenizer.getSimpleToken();\n\n if (token.equals(Token.T_COMMA)) {\n colIndex++;\n\n continue;\n }\n\n if (token.equals(Token.T_CLOSEBRACKET)) {\n break;\n }\n\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n\n HsqlArrayList tempConstraints = processCreateConstraints(t,\n constraint, pkCols);\n\n if (tokenizer.isGetThis(Token.T_ON)) {\n if (!t.isTemp) {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, Token.T_ON);\n }\n\n tokenizer.getThis(Token.T_COMMIT);\n\n token = tokenizer.getSimpleToken();\n\n if (token.equals(Token.T_DELETE)) {}\n else if (token.equals(Token.T_PRESERVE)) {\n t.onCommitPreserve = true;\n } else {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n\n tokenizer.getThis(Token.T_ROWS);\n }\n\n try {\n session.commit();\n\n Constraint primaryConst = (Constraint) tempConstraints.get(0);\n\n t.createPrimaryKey(null, primaryConst.core.mainColArray, true);\n\n if (primaryConst.core.mainColArray != null) {\n if (primaryConst.constName == null) {\n primaryConst.constName = t.makeSysPKName();\n }\n\n Constraint newconstraint =\n new Constraint(primaryConst.constName, t,\n t.getPrimaryIndex(),\n Constraint.PRIMARY_KEY);\n\n t.addConstraint(newconstraint);\n database.schemaManager.registerConstraintName(\n primaryConst.constName.name, t.getName());\n }\n\n for (int i = 1; i < tempConstraints.size(); i++) {\n Constraint tempConst = (Constraint) tempConstraints.get(i);\n\n if (tempConst.constType == Constraint.UNIQUE) {\n TableWorks tableWorks = new TableWorks(session, t);\n\n tableWorks.createUniqueConstraint(\n tempConst.core.mainColArray, tempConst.constName);\n\n t = tableWorks.getTable();\n }\n\n if (tempConst.constType == Constraint.FOREIGN_KEY) {\n TableWorks tableWorks = new TableWorks(session, t);\n\n tableWorks.createForeignKey(tempConst.core.mainColArray,\n tempConst.core.refColArray,\n tempConst.constName,\n tempConst.core.refTable,\n tempConst.core.deleteAction,\n tempConst.core.updateAction);\n\n t = tableWorks.getTable();\n }\n\n if (tempConst.constType == Constraint.CHECK) {\n TableWorks tableWorks = new TableWorks(session, t);\n\n tableWorks.createCheckConstraint(tempConst,\n tempConst.constName);\n\n t = tableWorks.getTable();\n }\n }\n\n database.schemaManager.linkTable(t);\n } catch (HsqlException e) {\n\n// fredt@users 20020225 - comment\n// if a HsqlException is thrown while creating table, any foreign key that has\n// been created leaves it modification to the expTable in place\n// need to undo those modifications. This should not happen in practice.\n database.schemaManager.removeExportedKeys(t);\n database.schemaManager.removeIndexNames(t.tableName);\n database.schemaManager.removeConstraintNames(t.tableName);\n\n throw e;\n }\n }", "@Override\n\tpublic void create() {\n\n\t}", "public void testCreateTable() {\n LOG.info(\"Entering testCreateTable.\");\n\n // Specify the table descriptor.\n HTableDescriptor htd = new HTableDescriptor(tableName);\n\n // Set the column family name to info.\n HColumnDescriptor hcd = new HColumnDescriptor(\"info\");\n\n // Set data encoding methods,HBase provides DIFF,FAST_DIFF,PREFIX\n // and PREFIX_TREE\n hcd.setDataBlockEncoding(DataBlockEncoding.FAST_DIFF);\n\n // Set compression methods, HBase provides two default compression\n // methods:GZ and SNAPPY\n // GZ has the highest compression rate,but low compression and\n // decompression effeciency,fit for cold data\n // SNAPPY has low compression rate, but high compression and\n // decompression effeciency,fit for hot data.\n // it is advised to use SANPPY\n hcd.setCompressionType(Compression.Algorithm.SNAPPY);\n\n htd.addFamily(hcd);\n\n Admin admin = null;\n try {\n // Instantiate an Admin object.\n admin = conn.getAdmin();\n if (!admin.tableExists(tableName)) {\n LOG.info(\"Creating table...\");\n admin.createTable(htd);\n LOG.info(admin.getClusterStatus());\n LOG.info(admin.listNamespaceDescriptors());\n LOG.info(\"Table created successfully.\");\n } else {\n LOG.warn(\"table already exists\");\n }\n } catch (IOException e) {\n LOG.error(\"Create table failed.\");\n } finally {\n if (admin != null) {\n try {\n // Close the Admin object.\n admin.close();\n } catch (IOException e) {\n LOG.error(\"Failed to close admin \", e);\n }\n }\n }\n LOG.info(\"Exiting testCreateTable.\");\n }", "public CreateData() {\n\t\t\n\t\t// TODO Auto-generated constructor stub\n\t}", "boolean createTable();", "@Override\r\n public Db_db createTable (Db_table table)\r\n {\r\n Db_db db = null;\r\n String query = \"CREATE TABLE IF NOT EXISTS \"+ table.getName() + \" (\"; \r\n String primaryKeyName = null;\r\n Set<Map.Entry<String, Db_tableColumn>> tableEntries;\r\n List<String> listOfUniqueKey = Lists.newArrayList();\r\n \r\n if(curConnection_ != null)\r\n {\r\n try\r\n {\r\n tableEntries = table.getEntrySet();\r\n for(Map.Entry<String, Db_tableColumn> entry: tableEntries)\r\n {\r\n Db_tableColumn entryContent = entry.getValue();\r\n \r\n if(entryContent.isPrimary() && primaryKeyName == null)\r\n {\r\n primaryKeyName = entryContent.getName();\r\n }\r\n else if(entryContent.isPrimary() && primaryKeyName != null)\r\n {\r\n throw new NumberFormatException();\r\n }\r\n \r\n if(itsAttributeMapper_ == null)\r\n {\r\n throw new NumberFormatException();\r\n }\r\n \r\n if(entryContent.isUnique())\r\n {\r\n listOfUniqueKey.add(entryContent.getName());\r\n }\r\n \r\n String mappedAttribute = this.itsAttributeMapper_.MapAttribute(entryContent.getAttributeName());\r\n if(entryContent.getAttribute().isEnum())\r\n {\r\n mappedAttribute += entryContent.getAttribute().buildEnumValueListString();\r\n }\r\n query += entryContent.getName() + \" \" + mappedAttribute \r\n + (entryContent.isAutoIncreasmnet()?\" AUTO_INCREMENT \":\" \")\r\n + (entryContent.isUnique()?\" UNIQUE, \": \", \");\r\n }\r\n \r\n query += \"PRIMARY KEY (\" + primaryKeyName + \"));\";\r\n try (Statement sm = curConnection_.createStatement()) {\r\n sm.executeUpdate(query);\r\n db = this.curDb_;\r\n }\r\n \r\n }catch(NumberFormatException e){System.out.print(e);}\r\n catch(SQLException e){System.out.print(query);this.CurConnectionFailed();}\r\n }\r\n return db;\r\n }", "public Hoppy insert(Hoppy hoppy, IdGenerateService<Long> idGenerateService) throws DataAccessException;", "interface WithCreate extends\n SqlElasticPoolOperations.DefinitionStages.WithDatabaseDtuMin,\n SqlElasticPoolOperations.DefinitionStages.WithDatabaseDtuMax,\n SqlElasticPoolOperations.DefinitionStages.WithDtu,\n SqlElasticPoolOperations.DefinitionStages.WithStorageCapacity,\n SqlElasticPoolOperations.DefinitionStages.WithDatabase,\n Resource.DefinitionWithTags<SqlElasticPoolOperations.DefinitionStages.WithCreate>,\n Creatable<SqlElasticPool> {\n }", "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:49.404 -0500\", hash_original_method = \"CD5C82C799E78C74801FDB521CEE7324\", hash_generated_method = \"CD5C82C799E78C74801FDB521CEE7324\")\n \nContext ()\n {\n copyTables();\n }", "OrTable createOrTable();", "public abstract void create();", "DT createDT();", "@Override\n public void createSchema(Properties props)\n {\n Statement statement;\n try\n {\n statement = connection.createStatement();\n \n //Drop Indexes\n dropIndex(statement, \"CONFFRIENDSHIP_INVITEEID\", \"CONFFRIENDSHIP\");\n dropIndex(statement, \"CONFFRIENDSHIP_INVITERID\", \"CONFFRIENDSHIP\");\n dropIndex(statement, \"PENDFRIENDSHIP_INVITEEID\", \"PENDFRIENDSHIP\");\n dropIndex(statement, \"PENDFRIENDSHIP_INVITERID\", \"PENDFRIENDSHIP\");\n dropIndex(statement, \"MANIPULATION_RID\", \"MANIPULATION\");\n dropIndex(statement, \"MANIPULATION_CREATORID\", \"MANIPULATION\");\n dropIndex(statement, \"RESOURCES_WALLUSERID\", \"RESOURCES\");\n dropIndex(statement, \"RESOURCE_CREATORID\", \"RESOURCES\");\n \n //Drop Tables\n dropTable(statement, \"CONFFRIENDSHIP\");\n dropTable(statement, \"PENDFRIENDSHIP\");\n dropTable(statement, \"MANIPULATION\");\n dropTable(statement, \"RESOURCES\");\n dropTable(statement, \"USERS\");\n \n //Create Tables\n statement.executeUpdate(\"CREATE TABLE CONFFRIENDSHIP \" + \"(INVITERID INTEGER NOT NULL, \" + \"INVITEEID INTEGER NOT NULL, \" + \"PRIMARY KEY (INVITERID, INVITEEID))\");\n statement.executeUpdate(\"CREATE TABLE PENDFRIENDSHIP \" + \"(INVITERID INTEGER NOT NULL, \" + \"INVITEEID INTEGER NOT NULL, \" + \"PRIMARY KEY (INVITERID, INVITEEID))\");\n statement.executeUpdate(\"CREATE TABLE MANIPULATION \" + \"(MID INTEGER NOT NULL, \" + \"MODIFIERID INTEGER NOT NULL, \" + \"RID INTEGER NOT NULL, \" + \"CREATORID INTEGER NOT NULL, \" + \"TIMESTAMP VARCHAR(200), \" + \"TYPE VARCHAR(200), \" + \"CONTENT VARCHAR(200), \" + \"PRIMARY KEY (MID,RID))\");\n statement.executeUpdate(\"CREATE TABLE RESOURCES \" + \"(RID INTEGER NOT NULL , \" + \"CREATORID INTEGER NOT NULL, \" + \"WALLUSERID INTEGER NOT NULL, \" + \"TYPE VARCHAR(200), \" + \"BODY VARCHAR(200), \" + \"DOC VARCHAR(200), \" + \"PRIMARY KEY (RID))\");\n statement.executeUpdate(\"CREATE TABLE USERS \" + \"(USERID INTEGER NOT NULL , \" + \"USERNAME VARCHAR(200), \" + \"PW VARCHAR(200), \" + \"FNAME VARCHAR(200), \" + \"LNAME VARCHAR(200), \" + \"GENDER VARCHAR(200),\" + \"DOB VARCHAR(200), \" + \"JDATE VARCHAR(200), \" + \"LDATE VARCHAR(200), \" + \"ADDRESS VARCHAR(200),\" + \"EMAIL VARCHAR(200), \" + \"TEL VARCHAR(200), \" + \"PRIMARY KEY (USERID))\");\n \n //Add Foreign Keys\n statement.executeUpdate(\"ALTER TABLE CONFFRIENDSHIP \" + \"ADD CONSTRAINT CONFFRIENDSHIP_USERS_FK1 FOREIGN KEY (INVITERID)\" + \"REFERENCES USERS (USERID) ON DELETE CASCADE\");\n statement.executeUpdate(\"ALTER TABLE CONFFRIENDSHIP \" + \"ADD CONSTRAINT CONFFRIENDSHIP_USERS_FK2 FOREIGN KEY (INVITEEID)\" + \"REFERENCES USERS (USERID) ON DELETE NO ACTION\");\n statement.executeUpdate(\"ALTER TABLE PENDFRIENDSHIP \" + \"ADD CONSTRAINT PENDFRIENDSHIP_USERS_FK1 FOREIGN KEY (INVITERID)\" + \"REFERENCES USERS (USERID) ON DELETE CASCADE\");\n statement.executeUpdate(\"ALTER TABLE PENDFRIENDSHIP \" + \"ADD CONSTRAINT PENDFRIENDSHIP_USERS_FK2 FOREIGN KEY (INVITEEID)\" + \"REFERENCES USERS (USERID) ON DELETE NO ACTION\");\n statement.executeUpdate(\"ALTER TABLE MANIPULATION \" + \"ADD CONSTRAINT MANIPULATION_RESOURCES_FK1 FOREIGN KEY (RID)\" + \"REFERENCES RESOURCES (RID) ON DELETE CASCADE\");\n statement.executeUpdate(\"ALTER TABLE MANIPULATION \" + \"ADD CONSTRAINT MANIPULATION_USERS_FK1 FOREIGN KEY (CREATORID)\" + \"REFERENCES USERS (USERID) ON DELETE NO ACTION\");\n statement.executeUpdate(\"ALTER TABLE MANIPULATION \" + \"ADD CONSTRAINT MANIPULATION_USERS_FK2 FOREIGN KEY (MODIFIERID)\" + \"REFERENCES USERS (USERID) ON DELETE NO ACTION\");\n statement.executeUpdate(\"ALTER TABLE RESOURCES \" + \"ADD CONSTRAINT RESOURCES_USERS_FK1 FOREIGN KEY (CREATORID)\" + \"REFERENCES USERS (USERID) ON DELETE CASCADE\");\n statement.executeUpdate(\"ALTER TABLE RESOURCES \" + \"ADD CONSTRAINT RESOURCES_USERS_FK2 FOREIGN KEY (WALLUSERID)\" + \"REFERENCES USERS (USERID) ON DELETE NO ACTION\");\n \n //Create Indexes\n buildIndexes(null);\n }\n catch (SQLException ex)\n {\n Logger.getLogger(WindowsAzureClientInit.class.getName()).log(Level.SEVERE, null, ex);\n System.out.println(\"Error in creating schema!\");\n }\n }", "public void createTable() throws LRException\n\t{\n\t\tgetBackground();\n\t\tDataHRecordData myData=(DataHRecordData)getData();\n\t\t// Create a new (empty) record\n\t\tcreate(new Hashtable(),myData);\n\t\tif (myData.record==null) throw new LRException(DataRMessages.nullRecord(getName()));\n\t\ttry\n\t\t{\n\t\t\tbackground.newTransaction();\n\t\t\tmyData.record.createNewTable(background.getClient(),true);\n\t\t}\n\t\tcatch (LDBException e) { setStatus(e); }\n\t}", "public boolean createTable(String input) throws IOException{\n\t\tString orgQuery = input;\n\t\torgQuery = orgQuery.trim();\n\t\tString query = input.toLowerCase().trim();\n\t\tboolean queryFailed = false;\n\t\t//Schema Instance \n\t\tSchema currentSchema = Schema.getSchemaInstance();\n\t\tString currentSchemaName = currentSchema.getCurrentSchema();\n\n\t\t//TableSchemaManager Instance\n\t\tTableSchemaManager currentTableSchemaManager = TableSchemaManager.getTableSchemaManagerInstance();\n\n\t\t//Extracting Table name\n\t\ttableName = orgQuery.substring(query.indexOf(\"table \")+6,query.indexOf(\"(\")).trim();\n\n\t\t//Updating SCHEMA.TABLE.TBL\n\t\tif(updateInformationSchemaTable()){\n\t\t\tqueryFailed = true;\n\t\t\treturn queryFailed;\n\t\t}\n\n\t\t//Extracting Table contents\n\t\tString tableContentsWithQuotes = orgQuery.substring(orgQuery.indexOf(\"(\")+1,orgQuery.length());\n\t\tString tableContents = tableContentsWithQuotes.replace(\"))\", \")\");\n\t\ttableContents = tableContents.trim();\n\n\t\tTableSchemaManager.ordinalMap = new TreeMap<Integer,List<String>>();\n\t\tTableSchemaManager.tableMap = new TreeMap<String,TreeMap<Integer,List<String>>>();\n\t\t\n\t\t//Creating n instances of Table helper\n\t\tString[] createTableContents = tableContents.split(\"\\\\,\"); \n\t\tnoOfColumns = createTableContents.length;\n\t\tCreateTableHelper[] th = new CreateTableHelper[noOfColumns];\n\n\t\t\n\t\t//Handles single row of Create Table \n\t\tfor(int item = 0; item < noOfColumns ; item++){\n\t\t\tth[item] = new CreateTableHelper(); \n\t\t\t//To remove any leading or trailing spaces\n\t\t\tcreateTableContents[item] = createTableContents[item].trim();\n\t\t\tString columnName = createTableContents[item].substring(0, createTableContents[item].indexOf(\" \"));\n\t\t\tth[item].setColumnName(columnName);\n\n\t\t\t//Setting Primary Key\n\t\t\tString primaryKeyExp = \"(.*)[pP][rR][iI][mM][aA][rR][yY](.*)\";\n\t\t\tif (createTableContents[item].matches(primaryKeyExp))\n\t\t\t\tth[item].setPrimaryKey(true);\n\t\t\telse\n\t\t\t\tth[item].setPrimaryKey(false);\n\n\t\t\t//Setting Null Value\t\n\t\t\tString notNullExp = \"(.*)[nN][uU][lL][lL](.*)\";\n\t\t\tif (createTableContents[item].matches(notNullExp))\n\t\t\t\tth[item].setNull(true);\n\t\t\telse\n\t\t\t\tth[item].setNull(false);\n\n\t\t\t//Extracting data types \n\t\t\t//BYTE\n\t\t\tString byteExp = \"(.*)[bB][yY][tT][eE](.*)\";\n\t\t\tif (createTableContents[item].matches(byteExp)){\n\t\t\t\tth[item].setDataType(\"BYTE\");\n\t\t\t}\n\t\t\t//SHORT\n\t\t\tString shortExp = \"(.*)[sS][hH][oO][rR][tT](.*)\";\n\t\t\tif (createTableContents[item].matches(shortExp)){\n\t\t\t\tth[item].setDataType(\"SHORT\");\n\t\t\t}\n\t\t\t//INT\n\t\t\tString intExp = \"(.*)[iI][nN][tT](.*)\";\n\t\t\tif (createTableContents[item].matches(intExp)){\n\t\t\t\tth[item].setDataType(\"INT\");\n\t\t\t}\n\t\t\t//LONG\n\t\t\tString longExp = \"(.*)[lL][oO][nN][gG](.*)\";\n\t\t\tif (createTableContents[item].matches(longExp)){\n\t\t\t\tth[item].setDataType(\"LONG\");\n\t\t\t}\n\t\t\t//CHAR\n\t\t\tString charExp = \"(.*)[cC][hH][aA][rR](.*)\";\n\t\t\tif (createTableContents[item].matches(charExp)){\n\t\t\t\tString size = createTableContents[item].substring(createTableContents[item].indexOf(\"(\")+1, createTableContents[item].indexOf(\")\"));\n\t\t\t\tth[item].setDataType(\"CHAR(\" + size + \")\");\n\t\t\t}\n\t\t\t//VARCHAR\n\t\t\tString varcharExp = \"(.*)[vV][aA][rR][cC][hH][aA][rR](.*)\";\n\t\t\tif (createTableContents[item].matches(varcharExp)){\n\t\t\t\tString size = createTableContents[item].substring(createTableContents[item].indexOf(\"(\")+1, createTableContents[item].indexOf(\")\"));\n\t\t\t\tth[item].setDataType(\"VARCHAR(\" + size + \")\");\n\t\t\t}\n\t\t\t//FLOAT\n\t\t\tString floatExp = \"(.*)[fF][lL][oO][aA][tT](.*)\";\n\t\t\tif (createTableContents[item].matches(floatExp)){\n\t\t\t\tth[item].setDataType(\"FLOAT\");\t\t\t\t\n\t\t\t}\n\t\t\t//DOUBLE\n\t\t\tString doubleExp = \"(.*)[dD][oO][uU][bB][lL][eE](.*)\";\n\t\t\tif (createTableContents[item].matches(doubleExp)){\n\t\t\t\tth[item].setDataType(\"DOUBLE\");\n\t\t\t}\n\t\t\t//DATETIME\n\t\t\tString dateTimeExp = \"(.*)[dD][aA][tT][eE][tT][iI][mM][eE](.*)\";\n\t\t\tif (createTableContents[item].matches(dateTimeExp)){\n\t\t\t\tth[item].setDataType(\"DATETIME\");\n\t\t\t}\n\t\t\t//DATE\n\t\t\tString dateExp = \"(.*)[dD][aA][tT][eE](.*)\";\n\t\t\tif (createTableContents[item].matches(dateExp)){\n\t\t\t\tth[item].setDataType(\"DATE\");\n\t\t\t}\n\n\t\t\tcurrentTableSchemaManager.newTableSchema(\n\t\t\t\t\ttableName,\n\t\t\t\t\titem,\n\t\t\t\t\tth[item].getColumnName(),\n\t\t\t\t\tth[item].getDataType(),\n\t\t\t\t\tth[item].isNull(),\n\t\t\t\t\tth[item].isPrimaryKey()\n\t\t\t\t\t);\n\n\t\t\t//Updating SCHEMA.COLUMNS.TBL\n\t\t\tupdateInformationSchemaColumn(\n\t\t\t\t\tth[item].getColumnName(),\n\t\t\t\t\titem,\n\t\t\t\t\tth[item].getDataType(),\n\t\t\t\t\tth[item].isNull(),\n\t\t\t\t\tth[item].isPrimaryKey()\n\t\t\t\t\t);\n\t\t\t//Create tables to insert index\n\t\t\tString newTableIndexName = currentSchemaName + \".\" + tableName + \".\" +th[item].getColumnName()+ \".tbl.ndx\";\n\t\t\tRandomAccessFile newTableIndexFile = new RandomAccessFile(newTableIndexName, \"rw\");\n\t\t\tnewTableIndexFile.close();\n\n\t\t}\n\n\t\tTableSchemaManager.tableMap.put(tableName, TableSchemaManager.ordinalMap);\n\t\tcurrentTableSchemaManager.updateTableSchema(currentSchemaName,tableName);\n\t\t\n\t\t//Create tables to insert data \n\t\tString newTableDataName = currentSchemaName + \".\" + tableName + \".tbl\";\n\t\tRandomAccessFile newTableDataFile = new RandomAccessFile(newTableDataName, \"rw\");\n\t\tnewTableDataFile.close();\n\t\treturn queryFailed;\n\t}", "public String createDSIndex(String dsID, String dschemaID, String attriName);", "private void createStressTestControlTable() {\n Column runId = new Column(\"RUN_ID\");\n runId.setMappedType(\"INTEGER\");\n runId.setPrimaryKey(true);\n runId.setRequired(true);\n Column clientCommitSleepMs = new Column(\"CLIENT_COMMIT_SLEEP_MS\");\n clientCommitSleepMs.setMappedType(\"BIGINT\");\n Column clientCommitRows = new Column(\"CLIENT_COMMIT_ROWS\");\n clientCommitRows.setMappedType(\"BIGINT\");\n Column serverCommitSleepMs = new Column(\"SERVER_COMMIT_SLEEP_MS\");\n serverCommitSleepMs.setMappedType(\"BIGINT\");\n Column serverCommitRows = new Column(\"SERVER_COMMIT_ROWS\");\n serverCommitRows.setMappedType(\"BIGINT\");\n Column payloadColumns = new Column(\"PAYLOAD_COLUMNS\");\n payloadColumns.setMappedType(\"INTEGER\");\n Column initialSeedSize = new Column(\"INITIAL_SEED_SIZE\");\n initialSeedSize.setMappedType(\"BIGINT\");\n Column duration = new Column(\"DURATION_MINUTES\");\n duration.setMappedType(\"BIGINT\");\n\n Table table = new Table(STRESS_TEST_CONTROL, runId, clientCommitSleepMs, clientCommitRows, serverCommitSleepMs, serverCommitRows,\n payloadColumns, initialSeedSize, duration);\n engine.getDatabasePlatform().createTables(true, true, table);\n }", "@Override\r\n\tpublic void create() {\n\r\n\t}", "Statement createStatement();", "Statement createStatement();", "Statement createStatement();", "public void doCreateTable();", "@Override\n public Pipe execute(DBMS engine) throws DBxicException {\n engine.storManager.createTable(table);\n engine.catalog.saveCatalog();\n return new MessageThroughPipe(\"Table \" + table.getName() + \" successfully created\");\n }", "@Override\n public void setUp() throws SQLException {\n connection.createStatement().executeUpdate(\n \"CREATE TABLE IF NOT EXISTS \\\"ENTRY\\\" (\" +\n \"\\\"SHARED_ID\\\" SERIAL PRIMARY KEY, \" +\n \"\\\"TYPE\\\" VARCHAR, \" +\n \"\\\"VERSION\\\" INTEGER DEFAULT 1)\");\n\n connection.createStatement().executeUpdate(\n \"CREATE TABLE IF NOT EXISTS \\\"FIELD\\\" (\" +\n \"\\\"ENTRY_SHARED_ID\\\" INTEGER REFERENCES \\\"ENTRY\\\"(\\\"SHARED_ID\\\") ON DELETE CASCADE, \" +\n \"\\\"NAME\\\" VARCHAR, \" +\n \"\\\"VALUE\\\" TEXT)\");\n\n connection.createStatement().executeUpdate(\n \"CREATE TABLE IF NOT EXISTS \\\"METADATA\\\" (\"\n + \"\\\"KEY\\\" VARCHAR,\"\n + \"\\\"VALUE\\\" TEXT)\");\n }", "private void m14053d() {\n try {\n File file = new File(f18051l);\n File file2 = new File(f18052m);\n if (!file.exists()) {\n file.mkdirs();\n }\n if (!file2.exists()) {\n file2.createNewFile();\n }\n if (file2.exists()) {\n SQLiteDatabase openOrCreateDatabase = SQLiteDatabase.openOrCreateDatabase(file2, null);\n openOrCreateDatabase.execSQL(\"CREATE TABLE IF NOT EXISTS bdcltb09(id CHAR(40) PRIMARY KEY,time DOUBLE,tag DOUBLE, type DOUBLE , ac INT);\");\n openOrCreateDatabase.execSQL(\"CREATE TABLE IF NOT EXISTS wof(id CHAR(15) PRIMARY KEY,mktime DOUBLE,time DOUBLE, ac INT, bc INT, cc INT);\");\n openOrCreateDatabase.setVersion(1);\n openOrCreateDatabase.close();\n }\n this.f18053a = true;\n } catch (Exception e) {\n }\n }", "interface WithDtu {\n /**\n * Sets the total shared DTU for the SQL Azure Database Elastic Pool.\n *\n * @param dtu total shared DTU for the SQL Azure Database Elastic Pool\n * @return The next stage of the definition.\n */\n @Deprecated\n SqlElasticPoolOperations.DefinitionStages.WithCreate withDtu(int dtu);\n }", "@POST\n @Produces({\"application/json\"})\n public String createDb() throws WebApplicationException {\n HibernateEntityManager emAdm = PersistenceManager.getInstance().getEntityManagerAdmin();\n SQLQuery qCreate = emAdm.getSession().createSQLQuery(\"CREATE DATABASE test_jeff template=postgis\");\n try{\n qCreate.executeUpdate();\n }catch(SQLGrammarException e){\n System.out.println(\"Error !!\" + e.getSQLException());\n emAdm.close();\n return e.getSQLException().getLocalizedMessage();\n }\n emAdm.close();\n Map properties = new HashMap();\n //change the connection string to the new db\n properties.put(\"hibernate.connection.url\", \"jdbc:postgresql_postGIS://192.168.12.36:5432/test_jeff\");\n EntityManagerFactory emf = Persistence.createEntityManagerFactory(\"dataPU\", properties); \n return \"Yeah\";\n }", "public abstract void createTables() throws DataServiceException;", "@Override\n\tpublic void create () {\n\n\t}", "@Test\n public void shouldCreateEpiDataGathering() {\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(0));\n\n Case caze = TestEntityCreator.createCase();\n TestEntityCreator.createEpiDataGathering(caze);\n\n // Assure that the burial has been successfully created\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(1));\n }", "Udt createUdt();", "OperacionColeccion createOperacionColeccion();", "public void create(AttributeList attributeList)\n {\n\n super.create(attributeList); \n \n OADBTransaction transaction = getOADBTransaction();\n \n // DEFAULT: supplier id is obtained from the table's sequence\n Number supplierId = transaction.getSequenceValue(\"FWK_TBX_SUPPLIERS_S\");\n setSupplierId(supplierId);\n\n // DEFAULT: start date should be set to sysdate\n setStartDate(transaction.getCurrentDBDate());\n\n \n }", "Definition createDefinition();", "H1 createH1();", "private static void createDatabase(String restrictedUser) throws ArcException {\n\t\tGenericPreparedStatementBuilder query;\n\n\t\t// clean database\n\t\tquery = new GenericPreparedStatementBuilder();\n\t\tquery.append(\"DROP SCHEMA IF EXISTS \" + DataObjectService.ARC_METADATA_SCHEMA + \" CASCADE;\");\n\t\tquery.append(\"DROP SCHEMA IF EXISTS \" + testSandbox1 + \" CASCADE;\");\n\t\tquery.append(\"DROP SCHEMA IF EXISTS public CASCADE;\");\n\t\tUtilitaireDao.get(0).executeRequest(c, query);\n\t\t\n\t\tBddPatcher patcher=new BddPatcher();\n\t\tpatcher.getProperties().setGitCommitId(newVersion);\n\t\tpatcher.getProperties().setDatabaseRestrictedUsername(userWithRestrictedRights);\n\n\t\t// metadata schema creation\n\t\tpatcher.bddScript(c);\n\t\t// sandbox schema creation\n\t\tpatcher.bddScript(c, testSandbox1, testSandbox2, testSandbox8);\n\t\t\n\t}", "Operacion createOperacion();", "private synchronized String processCreate(String query) {\r\n\t\tString[] valuesCommand = query.split(\" \");\r\n\t\tif ( valuesCommand.length != 3 )\r\n\t\t\treturn \"ERROR Bad syntaxe command CREATE - Usage : CREATE id initial_solde\";\r\n\t\tString id = valuesCommand[1];\r\n\t\tif ( this.bank.existAccount(id) ) {\r\n\t\t\treturn \"ERROR Account alwready exist\";\r\n\t\t}\r\n\t\tdouble number = Double.valueOf(valuesCommand[2]);\r\n\t\tthis.bank.createAccount(id, number);\r\n\t\treturn \"OK \" + this.bank.getLastOperation(id);\r\n\t}", "public void createNewSchema() throws SQLException {\n ResultSet resultSet = databaseStatement.executeQuery(\"select count(datname) from pg_database\");\n int uniqueID = 0;\n if(resultSet.next()) {\n uniqueID = resultSet.getInt(1);\n }\n if(uniqueID != 0) {\n uniqueID++;\n databaseStatement.executeQuery(\"CREATE DATABASE OSM\"+uniqueID+\";\");\n }\n }", "int insert(Lbt72TesuryoSumDPkey record);", "@Test(timeout = 4000)\n public void test124() throws Throwable {\n DefaultDBTable defaultDBTable0 = new DefaultDBTable();\n MockPrintWriter mockPrintWriter0 = new MockPrintWriter(\"Illegal column type format: \");\n String[] stringArray0 = new String[9];\n DBUniqueConstraint dBUniqueConstraint0 = new DBUniqueConstraint(defaultDBTable0, \"66i,cw\", true, stringArray0);\n NameSpec nameSpec0 = NameSpec.ALWAYS;\n SQLUtil.renderCreateTable(defaultDBTable0, true, nameSpec0, mockPrintWriter0);\n assertEquals(\"table\", defaultDBTable0.getObjectType());\n }", "int insert(NjProductTaticsRelation record);", "public de.uni_koblenz.jgralabtest.schemas.gretl.pddsl.Chassis createChassis();", "int insert(Disease record);", "private void creates() {\n \tDBPeer.fetchTableColumns();\n \tDBPeer.fetchTableRows();\n \tDBPeer.fetchTableIndexes();\n \t\n for (int i = 0; i < creates.size(); i++) {\n creates.get(i).init();\n }\n \n DBPeer.updateTableColumns();\n DBPeer.updateTableRows();\n DBPeer.updateTableIndexes();\n }", "InstAssignIndex createInstAssignIndex();", "WithCreate withCreationData(CreationData creationData);", "@Before\n public void createAndFillTable() {\n try {\n DBhandler dBhandler = new DBhandler(h2DbConnection);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "DataCfgTableInfo createTableIfNotExists(String dataCfgOid);", "H2 createH2();", "int insert(Lbm83ChohyokanriPkey record);", "HdbSequenceModel createHdbSequenceModel();", "DL createDL();", "For createFor();", "public org.oep.cmon.dao.tlct.model.DanhMucGiayTo create(long id);", "private Builder() {\n super(org.apache.gora.cascading.test.storage.TestRow.SCHEMA$);\n }", "public void createExempleDirect(ExempleDirect exempleDirect) throws DaoException;", "int insertSelective(NjProductTaticsRelation record);", "BIG createBIG();", "private void CreateDataIngestors() throws isisicatclient.IcatException_Exception {\n Grouping dataIngestors = new Grouping();\r\n dataIngestors.name = \"DataIngestors\";\r\n dataIngestors.id = port.create(sessionId, dataIngestors);\r\n dataIngestors = (Grouping) port.search(sessionId, \"Grouping[name='DataIngestors']\").get(0);\r\n\r\n List<String> ingestorTables = port.getEntityNames();\r\n\r\n ingestorTables.remove(\"Facility\");\r\n\r\n List<EntityBaseBean> ingestorRules = new ArrayList<>();\r\n for (String table : ingestorTables) {\r\n Rule rule = new Rule();\r\n rule.grouping = dataIngestors;\r\n rule.crudFlags = \"CRUD\"; //no delete permission for ingestors\r\n rule.what = table;\r\n ingestorRules.add(rule);\r\n }\r\n port.createMany(sessionId, ingestorRules);\r\n }", "H4 createH4();", "int insert(OrgIntegralDeductRule record);", "public void createDataTable() {\r\n Log.d(TAG, \"creating table\");\r\n String queryStr = \"\";\r\n String[] colNames = {Constants.COLUMN_NAME_ACC_X, Constants.COLUMN_NAME_ACC_Y, Constants.COLUMN_NAME_ACC_Z};\r\n queryStr += \"create table if not exists \" + Constants.TABLE_NAME;\r\n queryStr += \" ( id INTEGER PRIMARY KEY AUTOINCREMENT, \";\r\n for (int i = 1; i <= 50; i++) {\r\n for (int j = 0; j < 3; j++)\r\n queryStr += colNames[j] + \"_\" + i + \" real, \";\r\n }\r\n queryStr += Constants.COLUMN_NAME_ACTIVITY + \" text );\";\r\n execute(queryStr);\r\n Log.d(TAG, \"created table\");\r\n try {\r\n ContentValues values = new ContentValues();\r\n values.put(\"id\", 0);\r\n insertRowInTable(Constants.TABLE_NAME, values);\r\n Log.d(TAG,\"created hist table\");\r\n }catch (Exception e){\r\n Log.d(TAG,Constants.TABLE_NAME + \" table already exists\");\r\n }\r\n }", "public static void main(String[] args) {\n\t\tCreateTable createTable = new CreateTable();\n\n\t\tCity city = new City();\n\t\tcity.setId(1);\n\t\tcreateTable.execute(city);\n\n\t\tProvince province = new Province();\n\t\tprovince.setId(1);\n\t\tcreateTable.execute(province);\n\n\t\tTown town = new Town();\n\t\ttown.setId(1);\n\t\tcreateTable.execute(town);\n\n\t\tDetail detail = new Detail();\n\t\tdetail.setId(1);\n\t\tcreateTable.execute(detail);\n\n\t\tOrder order = new Order();\n\t\torder.setId(1);\n\t\tcreateTable.execute(order);\n\n\t\tBrand2 brand2 = new Brand2();\n\t\tbrand2.setId(1);\n\t\tcreateTable.execute(brand2);\n\n\t\tColor color = new Color();\n\t\tcolor.setId(1);\n\t\tcreateTable.execute(color);\n\n\t\tFeature feature = new Feature();\n\t\tfeature.setId(1);\n\t\tcreateTable.execute(feature);\n\n\t\tImg img = new Img();\n\t\timg.setId(1);\n\t\tcreateTable.execute(img);\n\n\t\tSku sku = new Sku();\n\t\tsku.setId(1);\n\t\tcreateTable.execute(sku);\n\n\t\tType type = new Type();\n\t\ttype.setId(1);\n\t\tcreateTable.execute(type);\n\n\t\tAddr addr = new Addr();\n\t\taddr.setId(1);\n\t\tcreateTable.execute(addr);\n\t\tcreateTable.execute(new Buyer());\n\n\t\t// 商品编号 商品名称 图片 新品 热卖 推荐 上下架 操作选项\n\t\tProduct product = new Product();\n\t\tproduct.setId(001);\n\t\tproduct.setNo(UUID.randomUUID().toString());\n\t\tproduct.setName(\"依琦莲2014瑜伽服套装新款 瑜珈健身服三件套 广场舞蹈服装 女瑜伽服送胸垫 长袖紫色\");\n\t\tproduct.setWeight(56.00);\n\t\tproduct.setIsNew(1); // 1是 0否\n\t\tproduct.setIsHot(1);\n\t\tproduct.setCreateTime(new Date());\n\t\tproduct.setCheckUserId(\"\");\n\t\tproduct.setCheckTime(new Date());\n\t\tproduct.setCreateUserId(\"\");\n\t\tproduct.setIsShow(1);\n\t\tproduct.setIsDel(1);\n\t\tproduct.setTypeId(1);\n\t\tproduct.setBrandId(1);\n\t\tproduct.setKeywords(\"\");\n\t\tproduct.setSales(36);\n\t\tproduct.setDescription(\"不是东西\");\n\t\tproduct.setPackageList(\"\");\n\t\tproduct.setFeature(\"头角狰狞\");\n\t\tproduct.setColor(\"blue\");\n\t\tproduct.setSize(\"L\"); // S,L,XXL\n\t\tcreateTable.execute(product);\n\n\t\t// insert into\n\t\t// Product(id,no,name,weight,isNew,isHot,sales,description,feature,size)value(1,\"11xzc3568\",\"依琦莲2014瑜伽服套装新款女瑜伽服送胸垫\n\t\t// 长袖紫色\",36.12,1,1,110,\"不是东西\",\"头角狰狞\",\"blue\",\"L\");\n\n\t\tEmployee employee = new Employee();\n\t\temployee.setId(1);\n\t\tcreateTable.execute(employee);\n\n\t}", "Vaisseau_ordonneeLaPlusHaute createVaisseau_ordonneeLaPlusHaute();", "private void createCheckingAccountsTable() {\n\t\ttry {\n\t\t\tStatement stmt = this.conn.createStatement();\n\t\t\tstmt.executeUpdate(\"CREATE TABLE checkingAccounts \"\n\t\t\t\t\t+ \"(id BIGINT GENERATED ALWAYS AS IDENTITY ( START WITH 1000000001, INCREMENT BY 1 ), \" + \"owner INT, \"\n\t\t\t\t\t+ \"balance DOUBLE, \" + \"intRate DOUBLE, \"\n\t\t\t\t\t+ \"timeCreated BIGINT, \" + \"lastPaidInterest DOUBLE, \"\n\t\t\t\t\t+ \"dateOfLastPaidInterest BIGINT)\");\n\t\t\tconn.commit();\n\t\t\tSystem.out.println(\"Created table checkingAccounts\");\n\t\t} catch (SQLException sqle) {\n\t\t\tSystem.err.println(\"Creation of checkingAccounts table FAILED\");\n\t\t\tSystem.err.println(sqle);\n\t\t}\n\t}", "@Ignore\n @Test\n public void testCreateIndex() {\n System.out.println(\"createIndex\");\n Util.commonServiceIPs=\"127.0.0.1\";\n \n EntityManager em=Util.getEntityManagerFactory(100).createEntityManager();\n EntityManager platformEm = Util.getPlatformEntityManagerFactory().createEntityManager();\n \n Client client = ESUtil.getClient(em,platformEm,1,false);\n \n RuntimeContext.dataobjectTypes = Util.getDataobjectTypes();\n String indexName = \"test000000\";\n try {\n ESUtil.createIndex(platformEm, client, indexName, true);\n }\n catch(Exception e)\n {\n \n }\n \n\n }", "public void createVirtualTable(){\n\n\t\t\n\t\tif(DBHandler.getConnection()==null){\n\t\t\treturn;\n\t\t}\n\n\t\tif(DBHandler.tableExists(name())){\n\t\t\treturn;\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tStatement s = DBHandler.getConnection().createStatement();\n\t\t\ts.execute(\"create virtual table \"+name()+\" using fts4(\"+struct()+\")\");\n\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\tMainFrame.print(e.getMessage());\n\t\t}\n\t}", "public int create (Section section) throws DataAccessException;", "protected abstract void createAttributes();", "private MetaSparqlRequest createInsertMT1() {\n\t\tString sparqlStr = \"\"+\n\t\t\t\t\"PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>\\r\\n\" + \n\t\t\t\t\"PREFIX ub: \"+_ontology+\"\\r\\n\" + \n\t\t\t\t\"INSERT DATA { GRAPH \"+_graph+\" { \"+\n\t\t\t\tbuilderBindInsert\n\t\t\t\t+\" } }\";\n\t\t\n\t\tSparqlObj sparql= new SparqlObj(sparqlStr) ;\n\t\tEndPoint endPointHost= new EndPoint(_protocol,_host,_port,\"/update\");\n\t\tMetaSparqlRequest msr = new MetaSparqlRequest(new SparqlRequest(sparql,endPointHost));\n\t\tmsr.setTripleInsert(createTripleBaseMT1());\n\t\treturn msr;\n\t}", "public void createTables(){\n Map<String, String> name_type_map = new HashMap<>();\n List<String> primaryKey = new ArrayList<>();\n try {\n name_type_map.put(KEY_SINK_NAME, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_SINK_ADDRESS, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_SINK_DETAIL, MyDatabase.TYPE_VARCHAR);\n primaryKey.add(KEY_SINK_ADDRESS);\n myDatabase.createTable(TABLE_SINK, name_type_map, primaryKey, null);\n }catch (MySQLException e){ //数据表已存在\n e.print();\n }\n try {\n name_type_map.clear();\n name_type_map.put(KEY_NODE_NAME, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_PARENT, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_DETAIL, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_ADDRESS,MyDatabase.TYPE_VARCHAR);\n primaryKey.clear();\n primaryKey.add(KEY_NODE_PARENT);\n primaryKey.add(KEY_NODE_ADDRESS);\n myDatabase.createTable(TABLE_NODE, name_type_map, primaryKey, null);\n }catch (MySQLException e){\n e.print();\n }\n\n try {\n name_type_map.clear();\n name_type_map.put(KEY_NODE_ADDRESS, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_PARENT, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_DATA_TIME, MyDatabase.TYPE_TIMESTAMP);\n name_type_map.put(KEY_DATA_VAL, MyDatabase.TYPE_FLOAT);\n primaryKey.clear();\n primaryKey.add(KEY_DATA_TIME);\n primaryKey.add(KEY_NODE_ADDRESS);\n primaryKey.add(KEY_NODE_PARENT);\n myDatabase.createTable(TABLE_DATA, name_type_map, primaryKey, null);\n }catch (MySQLException e) {\n e.print();\n }\n }", "int insert(ec_environment record);", "public void setup() throws SQLException {\n // Create ACARS table\n final String createTableSQL = \"CREATE TABLE IF NOT EXISTS ACARS (\"\n + \"date DATE, time TIME, frequency CHAR(7), \"\n + \"registration VARCHAR(7), flight CHAR(6), \"\n + \"mode CHAR, label CHAR(2), blockId CHAR, msgId CHAR(4), \"\n + \"text VARCHAR(255), \"\n + \"PRIMARY KEY (date, registration, flight, mode, label, blockId, msgId), \"\n + \"INDEX datetime_idx (date, time), \"\n + \"INDEX registration_idx (registration), \"\n + \"INDEX flight_idx (flight)\"\n + \")\";\n\n final Statement createTableStmt = connection.createStatement();\n createTableStmt.execute(createTableSQL);\n }", "TableInstance createTableInstance();", "private String createTableSQL()\n\t{\n\t\tStringBuffer str = new StringBuffer();\n\n\t\t// Keep track of the list of fields\n\t\tList<String> listFields = new ArrayList<String>();\n\n\t\t// Table command\n\t\tstr.append(\"CREATE TABLE \" + getFullPath() + \"( \");\n\t\tstr.append(createStandardGZFields());\n\n\t\t// Loop through all InputFields\n\t\tfor (InputFieldSet fieldSet : function.getInputFieldSets())\n\t\t{\n\t\t\tfor (InputField inputField : fieldSet.getInputFields())\n\t\t\t{\n\t\t\t\t// Phase 2 does not support repeating fields being journalled\n\t\t\t\tif (!Field.isRepeating(inputField))\n\t\t\t\t{\n\t\t\t\t\t// Field\n\t\t\t\t\tString fieldName = SQLToolbox.cvtToSQLFieldName(inputField.getId());\n\n\t\t\t\t\t// add if not yet existing\n\t\t\t\t\tif (listFields.indexOf(fieldName) == -1)\n\t\t\t\t\t{\n\t\t\t\t\t\tstr.append(\", \");\n\t\t\t\t\t\tString fieldDataType = inputField.getDataType();\n\t\t\t\t\t\tString fieldType = SQLToolbox.cvtToSQLFieldType(fieldDataType, inputField.getSize(), inputField\n\t\t\t\t\t\t\t\t\t\t.getDecimals());\n\t\t\t\t\t\tString fieldDefault = SQLToolbox.cvtToSQLDefault(fieldDataType);\n\t\t\t\t\t\tstr.append(fieldName + \" \" + fieldType + \" \" + \" not null default \" + fieldDefault);\n\t\t\t\t\t\tlistFields.add(fieldName);\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// End\n\t\tstr.append(\" ) \");\n\t\t// RCDFMT \" + getJournalRcdName());\n\n\t\treturn str.toString();\n\t}", "public org.oep.cmon.dao.dvc.model.ThuTuc2GiayTo create(long id);" ]
[ "0.6137034", "0.6020893", "0.5953024", "0.5871004", "0.58520657", "0.5824135", "0.5783128", "0.5781292", "0.5779935", "0.5768486", "0.57018137", "0.569296", "0.5677845", "0.566757", "0.56516117", "0.5639093", "0.56084186", "0.5601316", "0.55988264", "0.5587084", "0.5586368", "0.5579563", "0.55671966", "0.5562383", "0.55537105", "0.55511224", "0.5550222", "0.5547236", "0.55009055", "0.54889506", "0.5482187", "0.54807544", "0.5465443", "0.5454913", "0.54468626", "0.5434606", "0.5426381", "0.54197514", "0.5414243", "0.54073745", "0.5402808", "0.5390703", "0.5390526", "0.5390526", "0.5390526", "0.538945", "0.53878444", "0.53796816", "0.5375914", "0.53748345", "0.53730184", "0.5365049", "0.5364833", "0.5364805", "0.536257", "0.5361029", "0.5360632", "0.53598887", "0.5350994", "0.5339128", "0.5338244", "0.53296435", "0.5321595", "0.5320979", "0.53194505", "0.5318698", "0.5313326", "0.53126156", "0.53099495", "0.5306004", "0.5300889", "0.5293614", "0.529321", "0.52883255", "0.5281361", "0.5281042", "0.527843", "0.5270345", "0.526982", "0.52697945", "0.52608657", "0.5259804", "0.52563196", "0.5249798", "0.5247741", "0.5239433", "0.5224713", "0.5224455", "0.5222238", "0.5221105", "0.521778", "0.5213034", "0.5211071", "0.52098143", "0.5208245", "0.5207931", "0.52069414", "0.5205663", "0.52015704", "0.5196995", "0.5195414" ]
0.0
-1
CREATE BY ANH DUC
public Page<AccountDTO> findAllByGender(String gender, Pageable pageable);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int createTable(HbaseObj t);", "private void processCreate() throws HsqlException {\n\n boolean unique = false;\n int tableType;\n boolean isTempTable = false;\n String token;\n\n session.checkAdmin();\n session.checkDDLWrite();\n session.setScripting(true);\n\n if (tokenizer.isGetThis(Token.T_GLOBAL)) {\n tokenizer.getThis(Token.T_TEMPORARY);\n\n isTempTable = true;\n } else if (tokenizer.isGetThis(Token.T_TEMP)) {\n isTempTable = true;\n } else if (tokenizer.isGetThis(Token.T_TEMPORARY)) {\n isTempTable = true;\n }\n\n token = tokenizer.getSimpleToken();\n\n switch (Token.get(token)) {\n\n // table\n case Token.MEMORY :\n tokenizer.getThis(Token.T_TABLE);\n case Token.TABLE :\n tableType = isTempTable ? Table.TEMP_TABLE\n : database.getDefaultTableType();\n\n processCreateTable(tableType);\n\n return;\n\n case Token.CACHED :\n if (isTempTable) {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n\n tokenizer.getThis(Token.T_TABLE);\n processCreateTable(Table.CACHED_TABLE);\n\n return;\n\n case Token.TEXT :\n if (isTempTable) {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n\n tokenizer.getThis(Token.T_TABLE);\n processCreateTable(Table.TEXT_TABLE);\n\n return;\n\n default :\n if (isTempTable) {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n }\n\n switch (Token.get(token)) {\n\n // other objects\n case Token.ALIAS :\n processCreateAlias();\n break;\n\n case Token.SEQUENCE :\n processCreateSequence();\n break;\n\n case Token.SCHEMA :\n session.setScripting(false);\n processCreateSchema();\n break;\n\n case Token.TRIGGER :\n processCreateTrigger();\n break;\n\n case Token.USER :\n processCreateUser();\n break;\n\n case Token.ROLE :\n database.getGranteeManager().addRole(getUserIdentifier());\n break;\n\n case Token.VIEW :\n processCreateView();\n break;\n\n // index\n case Token.UNIQUE :\n unique = true;\n\n tokenizer.getThis(Token.T_INDEX);\n\n //fall thru\n case Token.INDEX :\n processCreateIndex(unique);\n break;\n\n default : {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n }\n }", "void create(DataTableDef def) throws IOException;", "CreationData creationData();", "protected abstract D createData();", "FromTable createFromTable();", "public void create() {\n\t\t\n\t}", "public void create() {\n\t\t\tdb.execSQL(AGENCYDB_CREATE+\".separete,.import agency.txt agency\");\n\t\t\tdb.execSQL(STOPSDB_CREATE+\".separete,.import stop_times.txt stop_times\");\n\t\t\t\n\t\t\t// Add 2 agencies for testing\n\t\t\t\n\t\t\t\n\t\t\tdb.setVersion(DATABASE_VERSION);\n\t\t}", "HdbdtiModel createHdbdtiModel();", "HdbSequenceElements createHdbSequenceElements();", "DD createDD();", "TD createTD();", "public String createTable(){\r\n return \"CREATE TABLE Doctor \" +\r\n \"(idDoctor decimal primary key, \" +\r\n \"firstNameDoctor char(14), \" +\r\n \"lastNameDoctor char(14), \" +\r\n \"costPerVisit integer,\" +\r\n \"qualification varchar(32))\";\r\n }", "private void createCDAccountsTable() {\n\t\ttry {\n\t\t\tStatement stmt = this.conn.createStatement();\n\t\t\tstmt.executeUpdate(\"CREATE TABLE cdAccounts \"\n\t\t\t\t\t+ \"(id BIGINT GENERATED ALWAYS AS IDENTITY ( START WITH 3000000001, INCREMENT BY 1 ), \" + \"owner INT, \"\n\t\t\t\t\t+ \"term INT, \" + \"balance DOUBLE, \" + \"intRate DOUBLE, \"\n\t\t\t\t\t+ \"timeCreated BIGINT, \" + \"lastPaidInterest DOUBLE, \"\n\t\t\t\t\t+ \"dateOfLastPaidInterest BIGINT)\");\n\t\t\tconn.commit();\n\t\t\tSystem.out.println(\"Created table cdAccounts\");\n\t\t} catch (SQLException sqle) {\n\t\t\tSystem.err.println(\"Creation of cdAccounts table FAILED\");\n\t\t\tSystem.err.println(sqle);\n\t\t}\n\t}", "public void createDienst()\n\t{\n\t\twriteDb(\"INSERT INTO dienstleistung (Bezeichnung, Preis)\" + \"VALUES('\" + typ + \"', '\" + preis +\"')\", getWriteCon());\n\t\tcommitDbConnection(getWriteCon());\n\t}", "public void create(){}", "@Override\n\tpublic String createTable() {\n\t\t\t\treturn \"CREATE TABLE history_table_view(id number(8) primary key not null ,sqltext text, pointid varchar2(1024), type varchar2(100))\";\n\t}", "public static void createTable() {\n\n // Create statement\n Statement statement = null;\n try {\n statement = Database.getDatabase().getConnection().createStatement();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n // Attempt to create table\n try {\n statement.execute(\n \"CREATE TABLE \" + Constants.SANITATION_TABLE + \"(\" +\n \"requestID INT PRIMARY KEY GENERATED ALWAYS AS IDENTITY (START WITH 1, INCREMENT BY 1),\" +\n \"nodeID VARCHAR(100) References \" + Constants.LOCATION_TABLE + \" (nodeID), \" +\n \"priority VARCHAR(10), \" +\n \"status VARCHAR(100), \" +\n \"description VARCHAR(100), \" +\n \"requesterID INT REFERENCES \" + Constants.USERS_TABLE + \"(userID), \" +\n \"requestTime TIMESTAMP, \" +\n \"servicerID INT REFERENCES \" + Constants.USERS_TABLE + \"(userID), \" +\n \"claimedTime TIMESTAMP, \" +\n \"completedTime TIMESTAMP, \" +\n \"CONSTRAINT priority_enum CHECK (priority in ('LOW', 'MEDIUM', 'HIGH')), \" +\n \"CONSTRAINT status_enum CHECK (status in ('INCOMPLETE', 'COMPLETE')))\"\n );\n } catch (SQLException | NullPointerException e) {\n e.printStackTrace();\n }\n }", "BTable createBTable();", "@Override\r\n\tpublic void create() {\n\t\t\r\n\t}", "@Override\n\tpublic void create() {\n\t\t\n\t}", "public abstract Anuncio creaAnuncioTematico();", "long createDatabase(long actor, String nameToDisplay, long proteinDBType, long sizeInBytes, boolean bPublic, boolean bReversed, ExperimentCategory category);", "TABLE createTABLE();", "private void processCreateTable(int type) throws HsqlException {\n\n String token = tokenizer.getName();\n HsqlName schemaname =\n session.getSchemaHsqlNameForWrite(tokenizer.getLongNameFirst());\n\n database.schemaManager.checkUserTableNotExists(session, token,\n schemaname.name);\n\n boolean isnamequoted = tokenizer.wasQuotedIdentifier();\n int[] pkCols = null;\n int colIndex = 0;\n boolean constraint = false;\n Table t = newTable(type, token, isnamequoted, schemaname);\n\n tokenizer.getThis(Token.T_OPENBRACKET);\n\n while (true) {\n token = tokenizer.getString();\n\n switch (Token.get(token)) {\n\n case Token.CONSTRAINT :\n case Token.PRIMARY :\n case Token.FOREIGN :\n case Token.UNIQUE :\n case Token.CHECK :\n\n // fredt@users : check for quoted reserved words used as column names\n constraint = !tokenizer.wasQuotedIdentifier()\n && !tokenizer.wasLongName();\n }\n\n tokenizer.back();\n\n if (constraint) {\n break;\n }\n\n Column newcolumn = processCreateColumn();\n\n t.addColumn(newcolumn);\n\n if (newcolumn.isPrimaryKey()) {\n Trace.check(pkCols == null, Trace.SECOND_PRIMARY_KEY,\n newcolumn.columnName.name);\n\n pkCols = new int[]{ colIndex };\n }\n\n token = tokenizer.getSimpleToken();\n\n if (token.equals(Token.T_COMMA)) {\n colIndex++;\n\n continue;\n }\n\n if (token.equals(Token.T_CLOSEBRACKET)) {\n break;\n }\n\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n\n HsqlArrayList tempConstraints = processCreateConstraints(t,\n constraint, pkCols);\n\n if (tokenizer.isGetThis(Token.T_ON)) {\n if (!t.isTemp) {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, Token.T_ON);\n }\n\n tokenizer.getThis(Token.T_COMMIT);\n\n token = tokenizer.getSimpleToken();\n\n if (token.equals(Token.T_DELETE)) {}\n else if (token.equals(Token.T_PRESERVE)) {\n t.onCommitPreserve = true;\n } else {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n\n tokenizer.getThis(Token.T_ROWS);\n }\n\n try {\n session.commit();\n\n Constraint primaryConst = (Constraint) tempConstraints.get(0);\n\n t.createPrimaryKey(null, primaryConst.core.mainColArray, true);\n\n if (primaryConst.core.mainColArray != null) {\n if (primaryConst.constName == null) {\n primaryConst.constName = t.makeSysPKName();\n }\n\n Constraint newconstraint =\n new Constraint(primaryConst.constName, t,\n t.getPrimaryIndex(),\n Constraint.PRIMARY_KEY);\n\n t.addConstraint(newconstraint);\n database.schemaManager.registerConstraintName(\n primaryConst.constName.name, t.getName());\n }\n\n for (int i = 1; i < tempConstraints.size(); i++) {\n Constraint tempConst = (Constraint) tempConstraints.get(i);\n\n if (tempConst.constType == Constraint.UNIQUE) {\n TableWorks tableWorks = new TableWorks(session, t);\n\n tableWorks.createUniqueConstraint(\n tempConst.core.mainColArray, tempConst.constName);\n\n t = tableWorks.getTable();\n }\n\n if (tempConst.constType == Constraint.FOREIGN_KEY) {\n TableWorks tableWorks = new TableWorks(session, t);\n\n tableWorks.createForeignKey(tempConst.core.mainColArray,\n tempConst.core.refColArray,\n tempConst.constName,\n tempConst.core.refTable,\n tempConst.core.deleteAction,\n tempConst.core.updateAction);\n\n t = tableWorks.getTable();\n }\n\n if (tempConst.constType == Constraint.CHECK) {\n TableWorks tableWorks = new TableWorks(session, t);\n\n tableWorks.createCheckConstraint(tempConst,\n tempConst.constName);\n\n t = tableWorks.getTable();\n }\n }\n\n database.schemaManager.linkTable(t);\n } catch (HsqlException e) {\n\n// fredt@users 20020225 - comment\n// if a HsqlException is thrown while creating table, any foreign key that has\n// been created leaves it modification to the expTable in place\n// need to undo those modifications. This should not happen in practice.\n database.schemaManager.removeExportedKeys(t);\n database.schemaManager.removeIndexNames(t.tableName);\n database.schemaManager.removeConstraintNames(t.tableName);\n\n throw e;\n }\n }", "@Override\n\tpublic void create() {\n\n\t}", "public void testCreateTable() {\n LOG.info(\"Entering testCreateTable.\");\n\n // Specify the table descriptor.\n HTableDescriptor htd = new HTableDescriptor(tableName);\n\n // Set the column family name to info.\n HColumnDescriptor hcd = new HColumnDescriptor(\"info\");\n\n // Set data encoding methods,HBase provides DIFF,FAST_DIFF,PREFIX\n // and PREFIX_TREE\n hcd.setDataBlockEncoding(DataBlockEncoding.FAST_DIFF);\n\n // Set compression methods, HBase provides two default compression\n // methods:GZ and SNAPPY\n // GZ has the highest compression rate,but low compression and\n // decompression effeciency,fit for cold data\n // SNAPPY has low compression rate, but high compression and\n // decompression effeciency,fit for hot data.\n // it is advised to use SANPPY\n hcd.setCompressionType(Compression.Algorithm.SNAPPY);\n\n htd.addFamily(hcd);\n\n Admin admin = null;\n try {\n // Instantiate an Admin object.\n admin = conn.getAdmin();\n if (!admin.tableExists(tableName)) {\n LOG.info(\"Creating table...\");\n admin.createTable(htd);\n LOG.info(admin.getClusterStatus());\n LOG.info(admin.listNamespaceDescriptors());\n LOG.info(\"Table created successfully.\");\n } else {\n LOG.warn(\"table already exists\");\n }\n } catch (IOException e) {\n LOG.error(\"Create table failed.\");\n } finally {\n if (admin != null) {\n try {\n // Close the Admin object.\n admin.close();\n } catch (IOException e) {\n LOG.error(\"Failed to close admin \", e);\n }\n }\n }\n LOG.info(\"Exiting testCreateTable.\");\n }", "public CreateData() {\n\t\t\n\t\t// TODO Auto-generated constructor stub\n\t}", "boolean createTable();", "@Override\r\n public Db_db createTable (Db_table table)\r\n {\r\n Db_db db = null;\r\n String query = \"CREATE TABLE IF NOT EXISTS \"+ table.getName() + \" (\"; \r\n String primaryKeyName = null;\r\n Set<Map.Entry<String, Db_tableColumn>> tableEntries;\r\n List<String> listOfUniqueKey = Lists.newArrayList();\r\n \r\n if(curConnection_ != null)\r\n {\r\n try\r\n {\r\n tableEntries = table.getEntrySet();\r\n for(Map.Entry<String, Db_tableColumn> entry: tableEntries)\r\n {\r\n Db_tableColumn entryContent = entry.getValue();\r\n \r\n if(entryContent.isPrimary() && primaryKeyName == null)\r\n {\r\n primaryKeyName = entryContent.getName();\r\n }\r\n else if(entryContent.isPrimary() && primaryKeyName != null)\r\n {\r\n throw new NumberFormatException();\r\n }\r\n \r\n if(itsAttributeMapper_ == null)\r\n {\r\n throw new NumberFormatException();\r\n }\r\n \r\n if(entryContent.isUnique())\r\n {\r\n listOfUniqueKey.add(entryContent.getName());\r\n }\r\n \r\n String mappedAttribute = this.itsAttributeMapper_.MapAttribute(entryContent.getAttributeName());\r\n if(entryContent.getAttribute().isEnum())\r\n {\r\n mappedAttribute += entryContent.getAttribute().buildEnumValueListString();\r\n }\r\n query += entryContent.getName() + \" \" + mappedAttribute \r\n + (entryContent.isAutoIncreasmnet()?\" AUTO_INCREMENT \":\" \")\r\n + (entryContent.isUnique()?\" UNIQUE, \": \", \");\r\n }\r\n \r\n query += \"PRIMARY KEY (\" + primaryKeyName + \"));\";\r\n try (Statement sm = curConnection_.createStatement()) {\r\n sm.executeUpdate(query);\r\n db = this.curDb_;\r\n }\r\n \r\n }catch(NumberFormatException e){System.out.print(e);}\r\n catch(SQLException e){System.out.print(query);this.CurConnectionFailed();}\r\n }\r\n return db;\r\n }", "public Hoppy insert(Hoppy hoppy, IdGenerateService<Long> idGenerateService) throws DataAccessException;", "interface WithCreate extends\n SqlElasticPoolOperations.DefinitionStages.WithDatabaseDtuMin,\n SqlElasticPoolOperations.DefinitionStages.WithDatabaseDtuMax,\n SqlElasticPoolOperations.DefinitionStages.WithDtu,\n SqlElasticPoolOperations.DefinitionStages.WithStorageCapacity,\n SqlElasticPoolOperations.DefinitionStages.WithDatabase,\n Resource.DefinitionWithTags<SqlElasticPoolOperations.DefinitionStages.WithCreate>,\n Creatable<SqlElasticPool> {\n }", "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:49.404 -0500\", hash_original_method = \"CD5C82C799E78C74801FDB521CEE7324\", hash_generated_method = \"CD5C82C799E78C74801FDB521CEE7324\")\n \nContext ()\n {\n copyTables();\n }", "OrTable createOrTable();", "public abstract void create();", "DT createDT();", "@Override\n public void createSchema(Properties props)\n {\n Statement statement;\n try\n {\n statement = connection.createStatement();\n \n //Drop Indexes\n dropIndex(statement, \"CONFFRIENDSHIP_INVITEEID\", \"CONFFRIENDSHIP\");\n dropIndex(statement, \"CONFFRIENDSHIP_INVITERID\", \"CONFFRIENDSHIP\");\n dropIndex(statement, \"PENDFRIENDSHIP_INVITEEID\", \"PENDFRIENDSHIP\");\n dropIndex(statement, \"PENDFRIENDSHIP_INVITERID\", \"PENDFRIENDSHIP\");\n dropIndex(statement, \"MANIPULATION_RID\", \"MANIPULATION\");\n dropIndex(statement, \"MANIPULATION_CREATORID\", \"MANIPULATION\");\n dropIndex(statement, \"RESOURCES_WALLUSERID\", \"RESOURCES\");\n dropIndex(statement, \"RESOURCE_CREATORID\", \"RESOURCES\");\n \n //Drop Tables\n dropTable(statement, \"CONFFRIENDSHIP\");\n dropTable(statement, \"PENDFRIENDSHIP\");\n dropTable(statement, \"MANIPULATION\");\n dropTable(statement, \"RESOURCES\");\n dropTable(statement, \"USERS\");\n \n //Create Tables\n statement.executeUpdate(\"CREATE TABLE CONFFRIENDSHIP \" + \"(INVITERID INTEGER NOT NULL, \" + \"INVITEEID INTEGER NOT NULL, \" + \"PRIMARY KEY (INVITERID, INVITEEID))\");\n statement.executeUpdate(\"CREATE TABLE PENDFRIENDSHIP \" + \"(INVITERID INTEGER NOT NULL, \" + \"INVITEEID INTEGER NOT NULL, \" + \"PRIMARY KEY (INVITERID, INVITEEID))\");\n statement.executeUpdate(\"CREATE TABLE MANIPULATION \" + \"(MID INTEGER NOT NULL, \" + \"MODIFIERID INTEGER NOT NULL, \" + \"RID INTEGER NOT NULL, \" + \"CREATORID INTEGER NOT NULL, \" + \"TIMESTAMP VARCHAR(200), \" + \"TYPE VARCHAR(200), \" + \"CONTENT VARCHAR(200), \" + \"PRIMARY KEY (MID,RID))\");\n statement.executeUpdate(\"CREATE TABLE RESOURCES \" + \"(RID INTEGER NOT NULL , \" + \"CREATORID INTEGER NOT NULL, \" + \"WALLUSERID INTEGER NOT NULL, \" + \"TYPE VARCHAR(200), \" + \"BODY VARCHAR(200), \" + \"DOC VARCHAR(200), \" + \"PRIMARY KEY (RID))\");\n statement.executeUpdate(\"CREATE TABLE USERS \" + \"(USERID INTEGER NOT NULL , \" + \"USERNAME VARCHAR(200), \" + \"PW VARCHAR(200), \" + \"FNAME VARCHAR(200), \" + \"LNAME VARCHAR(200), \" + \"GENDER VARCHAR(200),\" + \"DOB VARCHAR(200), \" + \"JDATE VARCHAR(200), \" + \"LDATE VARCHAR(200), \" + \"ADDRESS VARCHAR(200),\" + \"EMAIL VARCHAR(200), \" + \"TEL VARCHAR(200), \" + \"PRIMARY KEY (USERID))\");\n \n //Add Foreign Keys\n statement.executeUpdate(\"ALTER TABLE CONFFRIENDSHIP \" + \"ADD CONSTRAINT CONFFRIENDSHIP_USERS_FK1 FOREIGN KEY (INVITERID)\" + \"REFERENCES USERS (USERID) ON DELETE CASCADE\");\n statement.executeUpdate(\"ALTER TABLE CONFFRIENDSHIP \" + \"ADD CONSTRAINT CONFFRIENDSHIP_USERS_FK2 FOREIGN KEY (INVITEEID)\" + \"REFERENCES USERS (USERID) ON DELETE NO ACTION\");\n statement.executeUpdate(\"ALTER TABLE PENDFRIENDSHIP \" + \"ADD CONSTRAINT PENDFRIENDSHIP_USERS_FK1 FOREIGN KEY (INVITERID)\" + \"REFERENCES USERS (USERID) ON DELETE CASCADE\");\n statement.executeUpdate(\"ALTER TABLE PENDFRIENDSHIP \" + \"ADD CONSTRAINT PENDFRIENDSHIP_USERS_FK2 FOREIGN KEY (INVITEEID)\" + \"REFERENCES USERS (USERID) ON DELETE NO ACTION\");\n statement.executeUpdate(\"ALTER TABLE MANIPULATION \" + \"ADD CONSTRAINT MANIPULATION_RESOURCES_FK1 FOREIGN KEY (RID)\" + \"REFERENCES RESOURCES (RID) ON DELETE CASCADE\");\n statement.executeUpdate(\"ALTER TABLE MANIPULATION \" + \"ADD CONSTRAINT MANIPULATION_USERS_FK1 FOREIGN KEY (CREATORID)\" + \"REFERENCES USERS (USERID) ON DELETE NO ACTION\");\n statement.executeUpdate(\"ALTER TABLE MANIPULATION \" + \"ADD CONSTRAINT MANIPULATION_USERS_FK2 FOREIGN KEY (MODIFIERID)\" + \"REFERENCES USERS (USERID) ON DELETE NO ACTION\");\n statement.executeUpdate(\"ALTER TABLE RESOURCES \" + \"ADD CONSTRAINT RESOURCES_USERS_FK1 FOREIGN KEY (CREATORID)\" + \"REFERENCES USERS (USERID) ON DELETE CASCADE\");\n statement.executeUpdate(\"ALTER TABLE RESOURCES \" + \"ADD CONSTRAINT RESOURCES_USERS_FK2 FOREIGN KEY (WALLUSERID)\" + \"REFERENCES USERS (USERID) ON DELETE NO ACTION\");\n \n //Create Indexes\n buildIndexes(null);\n }\n catch (SQLException ex)\n {\n Logger.getLogger(WindowsAzureClientInit.class.getName()).log(Level.SEVERE, null, ex);\n System.out.println(\"Error in creating schema!\");\n }\n }", "public void createTable() throws LRException\n\t{\n\t\tgetBackground();\n\t\tDataHRecordData myData=(DataHRecordData)getData();\n\t\t// Create a new (empty) record\n\t\tcreate(new Hashtable(),myData);\n\t\tif (myData.record==null) throw new LRException(DataRMessages.nullRecord(getName()));\n\t\ttry\n\t\t{\n\t\t\tbackground.newTransaction();\n\t\t\tmyData.record.createNewTable(background.getClient(),true);\n\t\t}\n\t\tcatch (LDBException e) { setStatus(e); }\n\t}", "public boolean createTable(String input) throws IOException{\n\t\tString orgQuery = input;\n\t\torgQuery = orgQuery.trim();\n\t\tString query = input.toLowerCase().trim();\n\t\tboolean queryFailed = false;\n\t\t//Schema Instance \n\t\tSchema currentSchema = Schema.getSchemaInstance();\n\t\tString currentSchemaName = currentSchema.getCurrentSchema();\n\n\t\t//TableSchemaManager Instance\n\t\tTableSchemaManager currentTableSchemaManager = TableSchemaManager.getTableSchemaManagerInstance();\n\n\t\t//Extracting Table name\n\t\ttableName = orgQuery.substring(query.indexOf(\"table \")+6,query.indexOf(\"(\")).trim();\n\n\t\t//Updating SCHEMA.TABLE.TBL\n\t\tif(updateInformationSchemaTable()){\n\t\t\tqueryFailed = true;\n\t\t\treturn queryFailed;\n\t\t}\n\n\t\t//Extracting Table contents\n\t\tString tableContentsWithQuotes = orgQuery.substring(orgQuery.indexOf(\"(\")+1,orgQuery.length());\n\t\tString tableContents = tableContentsWithQuotes.replace(\"))\", \")\");\n\t\ttableContents = tableContents.trim();\n\n\t\tTableSchemaManager.ordinalMap = new TreeMap<Integer,List<String>>();\n\t\tTableSchemaManager.tableMap = new TreeMap<String,TreeMap<Integer,List<String>>>();\n\t\t\n\t\t//Creating n instances of Table helper\n\t\tString[] createTableContents = tableContents.split(\"\\\\,\"); \n\t\tnoOfColumns = createTableContents.length;\n\t\tCreateTableHelper[] th = new CreateTableHelper[noOfColumns];\n\n\t\t\n\t\t//Handles single row of Create Table \n\t\tfor(int item = 0; item < noOfColumns ; item++){\n\t\t\tth[item] = new CreateTableHelper(); \n\t\t\t//To remove any leading or trailing spaces\n\t\t\tcreateTableContents[item] = createTableContents[item].trim();\n\t\t\tString columnName = createTableContents[item].substring(0, createTableContents[item].indexOf(\" \"));\n\t\t\tth[item].setColumnName(columnName);\n\n\t\t\t//Setting Primary Key\n\t\t\tString primaryKeyExp = \"(.*)[pP][rR][iI][mM][aA][rR][yY](.*)\";\n\t\t\tif (createTableContents[item].matches(primaryKeyExp))\n\t\t\t\tth[item].setPrimaryKey(true);\n\t\t\telse\n\t\t\t\tth[item].setPrimaryKey(false);\n\n\t\t\t//Setting Null Value\t\n\t\t\tString notNullExp = \"(.*)[nN][uU][lL][lL](.*)\";\n\t\t\tif (createTableContents[item].matches(notNullExp))\n\t\t\t\tth[item].setNull(true);\n\t\t\telse\n\t\t\t\tth[item].setNull(false);\n\n\t\t\t//Extracting data types \n\t\t\t//BYTE\n\t\t\tString byteExp = \"(.*)[bB][yY][tT][eE](.*)\";\n\t\t\tif (createTableContents[item].matches(byteExp)){\n\t\t\t\tth[item].setDataType(\"BYTE\");\n\t\t\t}\n\t\t\t//SHORT\n\t\t\tString shortExp = \"(.*)[sS][hH][oO][rR][tT](.*)\";\n\t\t\tif (createTableContents[item].matches(shortExp)){\n\t\t\t\tth[item].setDataType(\"SHORT\");\n\t\t\t}\n\t\t\t//INT\n\t\t\tString intExp = \"(.*)[iI][nN][tT](.*)\";\n\t\t\tif (createTableContents[item].matches(intExp)){\n\t\t\t\tth[item].setDataType(\"INT\");\n\t\t\t}\n\t\t\t//LONG\n\t\t\tString longExp = \"(.*)[lL][oO][nN][gG](.*)\";\n\t\t\tif (createTableContents[item].matches(longExp)){\n\t\t\t\tth[item].setDataType(\"LONG\");\n\t\t\t}\n\t\t\t//CHAR\n\t\t\tString charExp = \"(.*)[cC][hH][aA][rR](.*)\";\n\t\t\tif (createTableContents[item].matches(charExp)){\n\t\t\t\tString size = createTableContents[item].substring(createTableContents[item].indexOf(\"(\")+1, createTableContents[item].indexOf(\")\"));\n\t\t\t\tth[item].setDataType(\"CHAR(\" + size + \")\");\n\t\t\t}\n\t\t\t//VARCHAR\n\t\t\tString varcharExp = \"(.*)[vV][aA][rR][cC][hH][aA][rR](.*)\";\n\t\t\tif (createTableContents[item].matches(varcharExp)){\n\t\t\t\tString size = createTableContents[item].substring(createTableContents[item].indexOf(\"(\")+1, createTableContents[item].indexOf(\")\"));\n\t\t\t\tth[item].setDataType(\"VARCHAR(\" + size + \")\");\n\t\t\t}\n\t\t\t//FLOAT\n\t\t\tString floatExp = \"(.*)[fF][lL][oO][aA][tT](.*)\";\n\t\t\tif (createTableContents[item].matches(floatExp)){\n\t\t\t\tth[item].setDataType(\"FLOAT\");\t\t\t\t\n\t\t\t}\n\t\t\t//DOUBLE\n\t\t\tString doubleExp = \"(.*)[dD][oO][uU][bB][lL][eE](.*)\";\n\t\t\tif (createTableContents[item].matches(doubleExp)){\n\t\t\t\tth[item].setDataType(\"DOUBLE\");\n\t\t\t}\n\t\t\t//DATETIME\n\t\t\tString dateTimeExp = \"(.*)[dD][aA][tT][eE][tT][iI][mM][eE](.*)\";\n\t\t\tif (createTableContents[item].matches(dateTimeExp)){\n\t\t\t\tth[item].setDataType(\"DATETIME\");\n\t\t\t}\n\t\t\t//DATE\n\t\t\tString dateExp = \"(.*)[dD][aA][tT][eE](.*)\";\n\t\t\tif (createTableContents[item].matches(dateExp)){\n\t\t\t\tth[item].setDataType(\"DATE\");\n\t\t\t}\n\n\t\t\tcurrentTableSchemaManager.newTableSchema(\n\t\t\t\t\ttableName,\n\t\t\t\t\titem,\n\t\t\t\t\tth[item].getColumnName(),\n\t\t\t\t\tth[item].getDataType(),\n\t\t\t\t\tth[item].isNull(),\n\t\t\t\t\tth[item].isPrimaryKey()\n\t\t\t\t\t);\n\n\t\t\t//Updating SCHEMA.COLUMNS.TBL\n\t\t\tupdateInformationSchemaColumn(\n\t\t\t\t\tth[item].getColumnName(),\n\t\t\t\t\titem,\n\t\t\t\t\tth[item].getDataType(),\n\t\t\t\t\tth[item].isNull(),\n\t\t\t\t\tth[item].isPrimaryKey()\n\t\t\t\t\t);\n\t\t\t//Create tables to insert index\n\t\t\tString newTableIndexName = currentSchemaName + \".\" + tableName + \".\" +th[item].getColumnName()+ \".tbl.ndx\";\n\t\t\tRandomAccessFile newTableIndexFile = new RandomAccessFile(newTableIndexName, \"rw\");\n\t\t\tnewTableIndexFile.close();\n\n\t\t}\n\n\t\tTableSchemaManager.tableMap.put(tableName, TableSchemaManager.ordinalMap);\n\t\tcurrentTableSchemaManager.updateTableSchema(currentSchemaName,tableName);\n\t\t\n\t\t//Create tables to insert data \n\t\tString newTableDataName = currentSchemaName + \".\" + tableName + \".tbl\";\n\t\tRandomAccessFile newTableDataFile = new RandomAccessFile(newTableDataName, \"rw\");\n\t\tnewTableDataFile.close();\n\t\treturn queryFailed;\n\t}", "public String createDSIndex(String dsID, String dschemaID, String attriName);", "private void createStressTestControlTable() {\n Column runId = new Column(\"RUN_ID\");\n runId.setMappedType(\"INTEGER\");\n runId.setPrimaryKey(true);\n runId.setRequired(true);\n Column clientCommitSleepMs = new Column(\"CLIENT_COMMIT_SLEEP_MS\");\n clientCommitSleepMs.setMappedType(\"BIGINT\");\n Column clientCommitRows = new Column(\"CLIENT_COMMIT_ROWS\");\n clientCommitRows.setMappedType(\"BIGINT\");\n Column serverCommitSleepMs = new Column(\"SERVER_COMMIT_SLEEP_MS\");\n serverCommitSleepMs.setMappedType(\"BIGINT\");\n Column serverCommitRows = new Column(\"SERVER_COMMIT_ROWS\");\n serverCommitRows.setMappedType(\"BIGINT\");\n Column payloadColumns = new Column(\"PAYLOAD_COLUMNS\");\n payloadColumns.setMappedType(\"INTEGER\");\n Column initialSeedSize = new Column(\"INITIAL_SEED_SIZE\");\n initialSeedSize.setMappedType(\"BIGINT\");\n Column duration = new Column(\"DURATION_MINUTES\");\n duration.setMappedType(\"BIGINT\");\n\n Table table = new Table(STRESS_TEST_CONTROL, runId, clientCommitSleepMs, clientCommitRows, serverCommitSleepMs, serverCommitRows,\n payloadColumns, initialSeedSize, duration);\n engine.getDatabasePlatform().createTables(true, true, table);\n }", "@Override\r\n\tpublic void create() {\n\r\n\t}", "Statement createStatement();", "Statement createStatement();", "Statement createStatement();", "public void doCreateTable();", "@Override\n public Pipe execute(DBMS engine) throws DBxicException {\n engine.storManager.createTable(table);\n engine.catalog.saveCatalog();\n return new MessageThroughPipe(\"Table \" + table.getName() + \" successfully created\");\n }", "@Override\n public void setUp() throws SQLException {\n connection.createStatement().executeUpdate(\n \"CREATE TABLE IF NOT EXISTS \\\"ENTRY\\\" (\" +\n \"\\\"SHARED_ID\\\" SERIAL PRIMARY KEY, \" +\n \"\\\"TYPE\\\" VARCHAR, \" +\n \"\\\"VERSION\\\" INTEGER DEFAULT 1)\");\n\n connection.createStatement().executeUpdate(\n \"CREATE TABLE IF NOT EXISTS \\\"FIELD\\\" (\" +\n \"\\\"ENTRY_SHARED_ID\\\" INTEGER REFERENCES \\\"ENTRY\\\"(\\\"SHARED_ID\\\") ON DELETE CASCADE, \" +\n \"\\\"NAME\\\" VARCHAR, \" +\n \"\\\"VALUE\\\" TEXT)\");\n\n connection.createStatement().executeUpdate(\n \"CREATE TABLE IF NOT EXISTS \\\"METADATA\\\" (\"\n + \"\\\"KEY\\\" VARCHAR,\"\n + \"\\\"VALUE\\\" TEXT)\");\n }", "private void m14053d() {\n try {\n File file = new File(f18051l);\n File file2 = new File(f18052m);\n if (!file.exists()) {\n file.mkdirs();\n }\n if (!file2.exists()) {\n file2.createNewFile();\n }\n if (file2.exists()) {\n SQLiteDatabase openOrCreateDatabase = SQLiteDatabase.openOrCreateDatabase(file2, null);\n openOrCreateDatabase.execSQL(\"CREATE TABLE IF NOT EXISTS bdcltb09(id CHAR(40) PRIMARY KEY,time DOUBLE,tag DOUBLE, type DOUBLE , ac INT);\");\n openOrCreateDatabase.execSQL(\"CREATE TABLE IF NOT EXISTS wof(id CHAR(15) PRIMARY KEY,mktime DOUBLE,time DOUBLE, ac INT, bc INT, cc INT);\");\n openOrCreateDatabase.setVersion(1);\n openOrCreateDatabase.close();\n }\n this.f18053a = true;\n } catch (Exception e) {\n }\n }", "interface WithDtu {\n /**\n * Sets the total shared DTU for the SQL Azure Database Elastic Pool.\n *\n * @param dtu total shared DTU for the SQL Azure Database Elastic Pool\n * @return The next stage of the definition.\n */\n @Deprecated\n SqlElasticPoolOperations.DefinitionStages.WithCreate withDtu(int dtu);\n }", "@POST\n @Produces({\"application/json\"})\n public String createDb() throws WebApplicationException {\n HibernateEntityManager emAdm = PersistenceManager.getInstance().getEntityManagerAdmin();\n SQLQuery qCreate = emAdm.getSession().createSQLQuery(\"CREATE DATABASE test_jeff template=postgis\");\n try{\n qCreate.executeUpdate();\n }catch(SQLGrammarException e){\n System.out.println(\"Error !!\" + e.getSQLException());\n emAdm.close();\n return e.getSQLException().getLocalizedMessage();\n }\n emAdm.close();\n Map properties = new HashMap();\n //change the connection string to the new db\n properties.put(\"hibernate.connection.url\", \"jdbc:postgresql_postGIS://192.168.12.36:5432/test_jeff\");\n EntityManagerFactory emf = Persistence.createEntityManagerFactory(\"dataPU\", properties); \n return \"Yeah\";\n }", "public abstract void createTables() throws DataServiceException;", "@Override\n\tpublic void create () {\n\n\t}", "@Test\n public void shouldCreateEpiDataGathering() {\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(0));\n\n Case caze = TestEntityCreator.createCase();\n TestEntityCreator.createEpiDataGathering(caze);\n\n // Assure that the burial has been successfully created\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(1));\n }", "Udt createUdt();", "OperacionColeccion createOperacionColeccion();", "public void create(AttributeList attributeList)\n {\n\n super.create(attributeList); \n \n OADBTransaction transaction = getOADBTransaction();\n \n // DEFAULT: supplier id is obtained from the table's sequence\n Number supplierId = transaction.getSequenceValue(\"FWK_TBX_SUPPLIERS_S\");\n setSupplierId(supplierId);\n\n // DEFAULT: start date should be set to sysdate\n setStartDate(transaction.getCurrentDBDate());\n\n \n }", "Definition createDefinition();", "H1 createH1();", "private static void createDatabase(String restrictedUser) throws ArcException {\n\t\tGenericPreparedStatementBuilder query;\n\n\t\t// clean database\n\t\tquery = new GenericPreparedStatementBuilder();\n\t\tquery.append(\"DROP SCHEMA IF EXISTS \" + DataObjectService.ARC_METADATA_SCHEMA + \" CASCADE;\");\n\t\tquery.append(\"DROP SCHEMA IF EXISTS \" + testSandbox1 + \" CASCADE;\");\n\t\tquery.append(\"DROP SCHEMA IF EXISTS public CASCADE;\");\n\t\tUtilitaireDao.get(0).executeRequest(c, query);\n\t\t\n\t\tBddPatcher patcher=new BddPatcher();\n\t\tpatcher.getProperties().setGitCommitId(newVersion);\n\t\tpatcher.getProperties().setDatabaseRestrictedUsername(userWithRestrictedRights);\n\n\t\t// metadata schema creation\n\t\tpatcher.bddScript(c);\n\t\t// sandbox schema creation\n\t\tpatcher.bddScript(c, testSandbox1, testSandbox2, testSandbox8);\n\t\t\n\t}", "Operacion createOperacion();", "private synchronized String processCreate(String query) {\r\n\t\tString[] valuesCommand = query.split(\" \");\r\n\t\tif ( valuesCommand.length != 3 )\r\n\t\t\treturn \"ERROR Bad syntaxe command CREATE - Usage : CREATE id initial_solde\";\r\n\t\tString id = valuesCommand[1];\r\n\t\tif ( this.bank.existAccount(id) ) {\r\n\t\t\treturn \"ERROR Account alwready exist\";\r\n\t\t}\r\n\t\tdouble number = Double.valueOf(valuesCommand[2]);\r\n\t\tthis.bank.createAccount(id, number);\r\n\t\treturn \"OK \" + this.bank.getLastOperation(id);\r\n\t}", "public void createNewSchema() throws SQLException {\n ResultSet resultSet = databaseStatement.executeQuery(\"select count(datname) from pg_database\");\n int uniqueID = 0;\n if(resultSet.next()) {\n uniqueID = resultSet.getInt(1);\n }\n if(uniqueID != 0) {\n uniqueID++;\n databaseStatement.executeQuery(\"CREATE DATABASE OSM\"+uniqueID+\";\");\n }\n }", "int insert(Lbt72TesuryoSumDPkey record);", "@Test(timeout = 4000)\n public void test124() throws Throwable {\n DefaultDBTable defaultDBTable0 = new DefaultDBTable();\n MockPrintWriter mockPrintWriter0 = new MockPrintWriter(\"Illegal column type format: \");\n String[] stringArray0 = new String[9];\n DBUniqueConstraint dBUniqueConstraint0 = new DBUniqueConstraint(defaultDBTable0, \"66i,cw\", true, stringArray0);\n NameSpec nameSpec0 = NameSpec.ALWAYS;\n SQLUtil.renderCreateTable(defaultDBTable0, true, nameSpec0, mockPrintWriter0);\n assertEquals(\"table\", defaultDBTable0.getObjectType());\n }", "int insert(NjProductTaticsRelation record);", "public de.uni_koblenz.jgralabtest.schemas.gretl.pddsl.Chassis createChassis();", "int insert(Disease record);", "private void creates() {\n \tDBPeer.fetchTableColumns();\n \tDBPeer.fetchTableRows();\n \tDBPeer.fetchTableIndexes();\n \t\n for (int i = 0; i < creates.size(); i++) {\n creates.get(i).init();\n }\n \n DBPeer.updateTableColumns();\n DBPeer.updateTableRows();\n DBPeer.updateTableIndexes();\n }", "InstAssignIndex createInstAssignIndex();", "WithCreate withCreationData(CreationData creationData);", "@Before\n public void createAndFillTable() {\n try {\n DBhandler dBhandler = new DBhandler(h2DbConnection);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "DataCfgTableInfo createTableIfNotExists(String dataCfgOid);", "H2 createH2();", "int insert(Lbm83ChohyokanriPkey record);", "HdbSequenceModel createHdbSequenceModel();", "DL createDL();", "For createFor();", "public org.oep.cmon.dao.tlct.model.DanhMucGiayTo create(long id);", "private Builder() {\n super(org.apache.gora.cascading.test.storage.TestRow.SCHEMA$);\n }", "public void createExempleDirect(ExempleDirect exempleDirect) throws DaoException;", "int insertSelective(NjProductTaticsRelation record);", "BIG createBIG();", "private void CreateDataIngestors() throws isisicatclient.IcatException_Exception {\n Grouping dataIngestors = new Grouping();\r\n dataIngestors.name = \"DataIngestors\";\r\n dataIngestors.id = port.create(sessionId, dataIngestors);\r\n dataIngestors = (Grouping) port.search(sessionId, \"Grouping[name='DataIngestors']\").get(0);\r\n\r\n List<String> ingestorTables = port.getEntityNames();\r\n\r\n ingestorTables.remove(\"Facility\");\r\n\r\n List<EntityBaseBean> ingestorRules = new ArrayList<>();\r\n for (String table : ingestorTables) {\r\n Rule rule = new Rule();\r\n rule.grouping = dataIngestors;\r\n rule.crudFlags = \"CRUD\"; //no delete permission for ingestors\r\n rule.what = table;\r\n ingestorRules.add(rule);\r\n }\r\n port.createMany(sessionId, ingestorRules);\r\n }", "H4 createH4();", "int insert(OrgIntegralDeductRule record);", "public void createDataTable() {\r\n Log.d(TAG, \"creating table\");\r\n String queryStr = \"\";\r\n String[] colNames = {Constants.COLUMN_NAME_ACC_X, Constants.COLUMN_NAME_ACC_Y, Constants.COLUMN_NAME_ACC_Z};\r\n queryStr += \"create table if not exists \" + Constants.TABLE_NAME;\r\n queryStr += \" ( id INTEGER PRIMARY KEY AUTOINCREMENT, \";\r\n for (int i = 1; i <= 50; i++) {\r\n for (int j = 0; j < 3; j++)\r\n queryStr += colNames[j] + \"_\" + i + \" real, \";\r\n }\r\n queryStr += Constants.COLUMN_NAME_ACTIVITY + \" text );\";\r\n execute(queryStr);\r\n Log.d(TAG, \"created table\");\r\n try {\r\n ContentValues values = new ContentValues();\r\n values.put(\"id\", 0);\r\n insertRowInTable(Constants.TABLE_NAME, values);\r\n Log.d(TAG,\"created hist table\");\r\n }catch (Exception e){\r\n Log.d(TAG,Constants.TABLE_NAME + \" table already exists\");\r\n }\r\n }", "public static void main(String[] args) {\n\t\tCreateTable createTable = new CreateTable();\n\n\t\tCity city = new City();\n\t\tcity.setId(1);\n\t\tcreateTable.execute(city);\n\n\t\tProvince province = new Province();\n\t\tprovince.setId(1);\n\t\tcreateTable.execute(province);\n\n\t\tTown town = new Town();\n\t\ttown.setId(1);\n\t\tcreateTable.execute(town);\n\n\t\tDetail detail = new Detail();\n\t\tdetail.setId(1);\n\t\tcreateTable.execute(detail);\n\n\t\tOrder order = new Order();\n\t\torder.setId(1);\n\t\tcreateTable.execute(order);\n\n\t\tBrand2 brand2 = new Brand2();\n\t\tbrand2.setId(1);\n\t\tcreateTable.execute(brand2);\n\n\t\tColor color = new Color();\n\t\tcolor.setId(1);\n\t\tcreateTable.execute(color);\n\n\t\tFeature feature = new Feature();\n\t\tfeature.setId(1);\n\t\tcreateTable.execute(feature);\n\n\t\tImg img = new Img();\n\t\timg.setId(1);\n\t\tcreateTable.execute(img);\n\n\t\tSku sku = new Sku();\n\t\tsku.setId(1);\n\t\tcreateTable.execute(sku);\n\n\t\tType type = new Type();\n\t\ttype.setId(1);\n\t\tcreateTable.execute(type);\n\n\t\tAddr addr = new Addr();\n\t\taddr.setId(1);\n\t\tcreateTable.execute(addr);\n\t\tcreateTable.execute(new Buyer());\n\n\t\t// 商品编号 商品名称 图片 新品 热卖 推荐 上下架 操作选项\n\t\tProduct product = new Product();\n\t\tproduct.setId(001);\n\t\tproduct.setNo(UUID.randomUUID().toString());\n\t\tproduct.setName(\"依琦莲2014瑜伽服套装新款 瑜珈健身服三件套 广场舞蹈服装 女瑜伽服送胸垫 长袖紫色\");\n\t\tproduct.setWeight(56.00);\n\t\tproduct.setIsNew(1); // 1是 0否\n\t\tproduct.setIsHot(1);\n\t\tproduct.setCreateTime(new Date());\n\t\tproduct.setCheckUserId(\"\");\n\t\tproduct.setCheckTime(new Date());\n\t\tproduct.setCreateUserId(\"\");\n\t\tproduct.setIsShow(1);\n\t\tproduct.setIsDel(1);\n\t\tproduct.setTypeId(1);\n\t\tproduct.setBrandId(1);\n\t\tproduct.setKeywords(\"\");\n\t\tproduct.setSales(36);\n\t\tproduct.setDescription(\"不是东西\");\n\t\tproduct.setPackageList(\"\");\n\t\tproduct.setFeature(\"头角狰狞\");\n\t\tproduct.setColor(\"blue\");\n\t\tproduct.setSize(\"L\"); // S,L,XXL\n\t\tcreateTable.execute(product);\n\n\t\t// insert into\n\t\t// Product(id,no,name,weight,isNew,isHot,sales,description,feature,size)value(1,\"11xzc3568\",\"依琦莲2014瑜伽服套装新款女瑜伽服送胸垫\n\t\t// 长袖紫色\",36.12,1,1,110,\"不是东西\",\"头角狰狞\",\"blue\",\"L\");\n\n\t\tEmployee employee = new Employee();\n\t\temployee.setId(1);\n\t\tcreateTable.execute(employee);\n\n\t}", "Vaisseau_ordonneeLaPlusHaute createVaisseau_ordonneeLaPlusHaute();", "private void createCheckingAccountsTable() {\n\t\ttry {\n\t\t\tStatement stmt = this.conn.createStatement();\n\t\t\tstmt.executeUpdate(\"CREATE TABLE checkingAccounts \"\n\t\t\t\t\t+ \"(id BIGINT GENERATED ALWAYS AS IDENTITY ( START WITH 1000000001, INCREMENT BY 1 ), \" + \"owner INT, \"\n\t\t\t\t\t+ \"balance DOUBLE, \" + \"intRate DOUBLE, \"\n\t\t\t\t\t+ \"timeCreated BIGINT, \" + \"lastPaidInterest DOUBLE, \"\n\t\t\t\t\t+ \"dateOfLastPaidInterest BIGINT)\");\n\t\t\tconn.commit();\n\t\t\tSystem.out.println(\"Created table checkingAccounts\");\n\t\t} catch (SQLException sqle) {\n\t\t\tSystem.err.println(\"Creation of checkingAccounts table FAILED\");\n\t\t\tSystem.err.println(sqle);\n\t\t}\n\t}", "@Ignore\n @Test\n public void testCreateIndex() {\n System.out.println(\"createIndex\");\n Util.commonServiceIPs=\"127.0.0.1\";\n \n EntityManager em=Util.getEntityManagerFactory(100).createEntityManager();\n EntityManager platformEm = Util.getPlatformEntityManagerFactory().createEntityManager();\n \n Client client = ESUtil.getClient(em,platformEm,1,false);\n \n RuntimeContext.dataobjectTypes = Util.getDataobjectTypes();\n String indexName = \"test000000\";\n try {\n ESUtil.createIndex(platformEm, client, indexName, true);\n }\n catch(Exception e)\n {\n \n }\n \n\n }", "public void createVirtualTable(){\n\n\t\t\n\t\tif(DBHandler.getConnection()==null){\n\t\t\treturn;\n\t\t}\n\n\t\tif(DBHandler.tableExists(name())){\n\t\t\treturn;\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tStatement s = DBHandler.getConnection().createStatement();\n\t\t\ts.execute(\"create virtual table \"+name()+\" using fts4(\"+struct()+\")\");\n\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\tMainFrame.print(e.getMessage());\n\t\t}\n\t}", "public int create (Section section) throws DataAccessException;", "protected abstract void createAttributes();", "private MetaSparqlRequest createInsertMT1() {\n\t\tString sparqlStr = \"\"+\n\t\t\t\t\"PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>\\r\\n\" + \n\t\t\t\t\"PREFIX ub: \"+_ontology+\"\\r\\n\" + \n\t\t\t\t\"INSERT DATA { GRAPH \"+_graph+\" { \"+\n\t\t\t\tbuilderBindInsert\n\t\t\t\t+\" } }\";\n\t\t\n\t\tSparqlObj sparql= new SparqlObj(sparqlStr) ;\n\t\tEndPoint endPointHost= new EndPoint(_protocol,_host,_port,\"/update\");\n\t\tMetaSparqlRequest msr = new MetaSparqlRequest(new SparqlRequest(sparql,endPointHost));\n\t\tmsr.setTripleInsert(createTripleBaseMT1());\n\t\treturn msr;\n\t}", "public void createTables(){\n Map<String, String> name_type_map = new HashMap<>();\n List<String> primaryKey = new ArrayList<>();\n try {\n name_type_map.put(KEY_SINK_NAME, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_SINK_ADDRESS, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_SINK_DETAIL, MyDatabase.TYPE_VARCHAR);\n primaryKey.add(KEY_SINK_ADDRESS);\n myDatabase.createTable(TABLE_SINK, name_type_map, primaryKey, null);\n }catch (MySQLException e){ //数据表已存在\n e.print();\n }\n try {\n name_type_map.clear();\n name_type_map.put(KEY_NODE_NAME, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_PARENT, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_DETAIL, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_ADDRESS,MyDatabase.TYPE_VARCHAR);\n primaryKey.clear();\n primaryKey.add(KEY_NODE_PARENT);\n primaryKey.add(KEY_NODE_ADDRESS);\n myDatabase.createTable(TABLE_NODE, name_type_map, primaryKey, null);\n }catch (MySQLException e){\n e.print();\n }\n\n try {\n name_type_map.clear();\n name_type_map.put(KEY_NODE_ADDRESS, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_PARENT, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_DATA_TIME, MyDatabase.TYPE_TIMESTAMP);\n name_type_map.put(KEY_DATA_VAL, MyDatabase.TYPE_FLOAT);\n primaryKey.clear();\n primaryKey.add(KEY_DATA_TIME);\n primaryKey.add(KEY_NODE_ADDRESS);\n primaryKey.add(KEY_NODE_PARENT);\n myDatabase.createTable(TABLE_DATA, name_type_map, primaryKey, null);\n }catch (MySQLException e) {\n e.print();\n }\n }", "int insert(ec_environment record);", "public void setup() throws SQLException {\n // Create ACARS table\n final String createTableSQL = \"CREATE TABLE IF NOT EXISTS ACARS (\"\n + \"date DATE, time TIME, frequency CHAR(7), \"\n + \"registration VARCHAR(7), flight CHAR(6), \"\n + \"mode CHAR, label CHAR(2), blockId CHAR, msgId CHAR(4), \"\n + \"text VARCHAR(255), \"\n + \"PRIMARY KEY (date, registration, flight, mode, label, blockId, msgId), \"\n + \"INDEX datetime_idx (date, time), \"\n + \"INDEX registration_idx (registration), \"\n + \"INDEX flight_idx (flight)\"\n + \")\";\n\n final Statement createTableStmt = connection.createStatement();\n createTableStmt.execute(createTableSQL);\n }", "TableInstance createTableInstance();", "private String createTableSQL()\n\t{\n\t\tStringBuffer str = new StringBuffer();\n\n\t\t// Keep track of the list of fields\n\t\tList<String> listFields = new ArrayList<String>();\n\n\t\t// Table command\n\t\tstr.append(\"CREATE TABLE \" + getFullPath() + \"( \");\n\t\tstr.append(createStandardGZFields());\n\n\t\t// Loop through all InputFields\n\t\tfor (InputFieldSet fieldSet : function.getInputFieldSets())\n\t\t{\n\t\t\tfor (InputField inputField : fieldSet.getInputFields())\n\t\t\t{\n\t\t\t\t// Phase 2 does not support repeating fields being journalled\n\t\t\t\tif (!Field.isRepeating(inputField))\n\t\t\t\t{\n\t\t\t\t\t// Field\n\t\t\t\t\tString fieldName = SQLToolbox.cvtToSQLFieldName(inputField.getId());\n\n\t\t\t\t\t// add if not yet existing\n\t\t\t\t\tif (listFields.indexOf(fieldName) == -1)\n\t\t\t\t\t{\n\t\t\t\t\t\tstr.append(\", \");\n\t\t\t\t\t\tString fieldDataType = inputField.getDataType();\n\t\t\t\t\t\tString fieldType = SQLToolbox.cvtToSQLFieldType(fieldDataType, inputField.getSize(), inputField\n\t\t\t\t\t\t\t\t\t\t.getDecimals());\n\t\t\t\t\t\tString fieldDefault = SQLToolbox.cvtToSQLDefault(fieldDataType);\n\t\t\t\t\t\tstr.append(fieldName + \" \" + fieldType + \" \" + \" not null default \" + fieldDefault);\n\t\t\t\t\t\tlistFields.add(fieldName);\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// End\n\t\tstr.append(\" ) \");\n\t\t// RCDFMT \" + getJournalRcdName());\n\n\t\treturn str.toString();\n\t}", "public org.oep.cmon.dao.dvc.model.ThuTuc2GiayTo create(long id);" ]
[ "0.6137034", "0.6020893", "0.5953024", "0.5871004", "0.58520657", "0.5824135", "0.5783128", "0.5781292", "0.5779935", "0.5768486", "0.57018137", "0.569296", "0.5677845", "0.566757", "0.56516117", "0.5639093", "0.56084186", "0.5601316", "0.55988264", "0.5587084", "0.5586368", "0.5579563", "0.55671966", "0.5562383", "0.55537105", "0.55511224", "0.5550222", "0.5547236", "0.55009055", "0.54889506", "0.5482187", "0.54807544", "0.5465443", "0.5454913", "0.54468626", "0.5434606", "0.5426381", "0.54197514", "0.5414243", "0.54073745", "0.5402808", "0.5390703", "0.5390526", "0.5390526", "0.5390526", "0.538945", "0.53878444", "0.53796816", "0.5375914", "0.53748345", "0.53730184", "0.5365049", "0.5364833", "0.5364805", "0.536257", "0.5361029", "0.5360632", "0.53598887", "0.5350994", "0.5339128", "0.5338244", "0.53296435", "0.5321595", "0.5320979", "0.53194505", "0.5318698", "0.5313326", "0.53126156", "0.53099495", "0.5306004", "0.5300889", "0.5293614", "0.529321", "0.52883255", "0.5281361", "0.5281042", "0.527843", "0.5270345", "0.526982", "0.52697945", "0.52608657", "0.5259804", "0.52563196", "0.5249798", "0.5247741", "0.5239433", "0.5224713", "0.5224455", "0.5222238", "0.5221105", "0.521778", "0.5213034", "0.5211071", "0.52098143", "0.5208245", "0.5207931", "0.52069414", "0.5205663", "0.52015704", "0.5196995", "0.5195414" ]
0.0
-1
CREATE BY ANH DUC
public Page<AccountDTO> findAllByEmail(String gender, Pageable pageable);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int createTable(HbaseObj t);", "private void processCreate() throws HsqlException {\n\n boolean unique = false;\n int tableType;\n boolean isTempTable = false;\n String token;\n\n session.checkAdmin();\n session.checkDDLWrite();\n session.setScripting(true);\n\n if (tokenizer.isGetThis(Token.T_GLOBAL)) {\n tokenizer.getThis(Token.T_TEMPORARY);\n\n isTempTable = true;\n } else if (tokenizer.isGetThis(Token.T_TEMP)) {\n isTempTable = true;\n } else if (tokenizer.isGetThis(Token.T_TEMPORARY)) {\n isTempTable = true;\n }\n\n token = tokenizer.getSimpleToken();\n\n switch (Token.get(token)) {\n\n // table\n case Token.MEMORY :\n tokenizer.getThis(Token.T_TABLE);\n case Token.TABLE :\n tableType = isTempTable ? Table.TEMP_TABLE\n : database.getDefaultTableType();\n\n processCreateTable(tableType);\n\n return;\n\n case Token.CACHED :\n if (isTempTable) {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n\n tokenizer.getThis(Token.T_TABLE);\n processCreateTable(Table.CACHED_TABLE);\n\n return;\n\n case Token.TEXT :\n if (isTempTable) {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n\n tokenizer.getThis(Token.T_TABLE);\n processCreateTable(Table.TEXT_TABLE);\n\n return;\n\n default :\n if (isTempTable) {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n }\n\n switch (Token.get(token)) {\n\n // other objects\n case Token.ALIAS :\n processCreateAlias();\n break;\n\n case Token.SEQUENCE :\n processCreateSequence();\n break;\n\n case Token.SCHEMA :\n session.setScripting(false);\n processCreateSchema();\n break;\n\n case Token.TRIGGER :\n processCreateTrigger();\n break;\n\n case Token.USER :\n processCreateUser();\n break;\n\n case Token.ROLE :\n database.getGranteeManager().addRole(getUserIdentifier());\n break;\n\n case Token.VIEW :\n processCreateView();\n break;\n\n // index\n case Token.UNIQUE :\n unique = true;\n\n tokenizer.getThis(Token.T_INDEX);\n\n //fall thru\n case Token.INDEX :\n processCreateIndex(unique);\n break;\n\n default : {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n }\n }", "void create(DataTableDef def) throws IOException;", "CreationData creationData();", "protected abstract D createData();", "FromTable createFromTable();", "public void create() {\n\t\t\n\t}", "public void create() {\n\t\t\tdb.execSQL(AGENCYDB_CREATE+\".separete,.import agency.txt agency\");\n\t\t\tdb.execSQL(STOPSDB_CREATE+\".separete,.import stop_times.txt stop_times\");\n\t\t\t\n\t\t\t// Add 2 agencies for testing\n\t\t\t\n\t\t\t\n\t\t\tdb.setVersion(DATABASE_VERSION);\n\t\t}", "HdbdtiModel createHdbdtiModel();", "HdbSequenceElements createHdbSequenceElements();", "DD createDD();", "TD createTD();", "public String createTable(){\r\n return \"CREATE TABLE Doctor \" +\r\n \"(idDoctor decimal primary key, \" +\r\n \"firstNameDoctor char(14), \" +\r\n \"lastNameDoctor char(14), \" +\r\n \"costPerVisit integer,\" +\r\n \"qualification varchar(32))\";\r\n }", "private void createCDAccountsTable() {\n\t\ttry {\n\t\t\tStatement stmt = this.conn.createStatement();\n\t\t\tstmt.executeUpdate(\"CREATE TABLE cdAccounts \"\n\t\t\t\t\t+ \"(id BIGINT GENERATED ALWAYS AS IDENTITY ( START WITH 3000000001, INCREMENT BY 1 ), \" + \"owner INT, \"\n\t\t\t\t\t+ \"term INT, \" + \"balance DOUBLE, \" + \"intRate DOUBLE, \"\n\t\t\t\t\t+ \"timeCreated BIGINT, \" + \"lastPaidInterest DOUBLE, \"\n\t\t\t\t\t+ \"dateOfLastPaidInterest BIGINT)\");\n\t\t\tconn.commit();\n\t\t\tSystem.out.println(\"Created table cdAccounts\");\n\t\t} catch (SQLException sqle) {\n\t\t\tSystem.err.println(\"Creation of cdAccounts table FAILED\");\n\t\t\tSystem.err.println(sqle);\n\t\t}\n\t}", "public void createDienst()\n\t{\n\t\twriteDb(\"INSERT INTO dienstleistung (Bezeichnung, Preis)\" + \"VALUES('\" + typ + \"', '\" + preis +\"')\", getWriteCon());\n\t\tcommitDbConnection(getWriteCon());\n\t}", "public void create(){}", "@Override\n\tpublic String createTable() {\n\t\t\t\treturn \"CREATE TABLE history_table_view(id number(8) primary key not null ,sqltext text, pointid varchar2(1024), type varchar2(100))\";\n\t}", "public static void createTable() {\n\n // Create statement\n Statement statement = null;\n try {\n statement = Database.getDatabase().getConnection().createStatement();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n // Attempt to create table\n try {\n statement.execute(\n \"CREATE TABLE \" + Constants.SANITATION_TABLE + \"(\" +\n \"requestID INT PRIMARY KEY GENERATED ALWAYS AS IDENTITY (START WITH 1, INCREMENT BY 1),\" +\n \"nodeID VARCHAR(100) References \" + Constants.LOCATION_TABLE + \" (nodeID), \" +\n \"priority VARCHAR(10), \" +\n \"status VARCHAR(100), \" +\n \"description VARCHAR(100), \" +\n \"requesterID INT REFERENCES \" + Constants.USERS_TABLE + \"(userID), \" +\n \"requestTime TIMESTAMP, \" +\n \"servicerID INT REFERENCES \" + Constants.USERS_TABLE + \"(userID), \" +\n \"claimedTime TIMESTAMP, \" +\n \"completedTime TIMESTAMP, \" +\n \"CONSTRAINT priority_enum CHECK (priority in ('LOW', 'MEDIUM', 'HIGH')), \" +\n \"CONSTRAINT status_enum CHECK (status in ('INCOMPLETE', 'COMPLETE')))\"\n );\n } catch (SQLException | NullPointerException e) {\n e.printStackTrace();\n }\n }", "BTable createBTable();", "@Override\r\n\tpublic void create() {\n\t\t\r\n\t}", "@Override\n\tpublic void create() {\n\t\t\n\t}", "public abstract Anuncio creaAnuncioTematico();", "long createDatabase(long actor, String nameToDisplay, long proteinDBType, long sizeInBytes, boolean bPublic, boolean bReversed, ExperimentCategory category);", "TABLE createTABLE();", "private void processCreateTable(int type) throws HsqlException {\n\n String token = tokenizer.getName();\n HsqlName schemaname =\n session.getSchemaHsqlNameForWrite(tokenizer.getLongNameFirst());\n\n database.schemaManager.checkUserTableNotExists(session, token,\n schemaname.name);\n\n boolean isnamequoted = tokenizer.wasQuotedIdentifier();\n int[] pkCols = null;\n int colIndex = 0;\n boolean constraint = false;\n Table t = newTable(type, token, isnamequoted, schemaname);\n\n tokenizer.getThis(Token.T_OPENBRACKET);\n\n while (true) {\n token = tokenizer.getString();\n\n switch (Token.get(token)) {\n\n case Token.CONSTRAINT :\n case Token.PRIMARY :\n case Token.FOREIGN :\n case Token.UNIQUE :\n case Token.CHECK :\n\n // fredt@users : check for quoted reserved words used as column names\n constraint = !tokenizer.wasQuotedIdentifier()\n && !tokenizer.wasLongName();\n }\n\n tokenizer.back();\n\n if (constraint) {\n break;\n }\n\n Column newcolumn = processCreateColumn();\n\n t.addColumn(newcolumn);\n\n if (newcolumn.isPrimaryKey()) {\n Trace.check(pkCols == null, Trace.SECOND_PRIMARY_KEY,\n newcolumn.columnName.name);\n\n pkCols = new int[]{ colIndex };\n }\n\n token = tokenizer.getSimpleToken();\n\n if (token.equals(Token.T_COMMA)) {\n colIndex++;\n\n continue;\n }\n\n if (token.equals(Token.T_CLOSEBRACKET)) {\n break;\n }\n\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n\n HsqlArrayList tempConstraints = processCreateConstraints(t,\n constraint, pkCols);\n\n if (tokenizer.isGetThis(Token.T_ON)) {\n if (!t.isTemp) {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, Token.T_ON);\n }\n\n tokenizer.getThis(Token.T_COMMIT);\n\n token = tokenizer.getSimpleToken();\n\n if (token.equals(Token.T_DELETE)) {}\n else if (token.equals(Token.T_PRESERVE)) {\n t.onCommitPreserve = true;\n } else {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n\n tokenizer.getThis(Token.T_ROWS);\n }\n\n try {\n session.commit();\n\n Constraint primaryConst = (Constraint) tempConstraints.get(0);\n\n t.createPrimaryKey(null, primaryConst.core.mainColArray, true);\n\n if (primaryConst.core.mainColArray != null) {\n if (primaryConst.constName == null) {\n primaryConst.constName = t.makeSysPKName();\n }\n\n Constraint newconstraint =\n new Constraint(primaryConst.constName, t,\n t.getPrimaryIndex(),\n Constraint.PRIMARY_KEY);\n\n t.addConstraint(newconstraint);\n database.schemaManager.registerConstraintName(\n primaryConst.constName.name, t.getName());\n }\n\n for (int i = 1; i < tempConstraints.size(); i++) {\n Constraint tempConst = (Constraint) tempConstraints.get(i);\n\n if (tempConst.constType == Constraint.UNIQUE) {\n TableWorks tableWorks = new TableWorks(session, t);\n\n tableWorks.createUniqueConstraint(\n tempConst.core.mainColArray, tempConst.constName);\n\n t = tableWorks.getTable();\n }\n\n if (tempConst.constType == Constraint.FOREIGN_KEY) {\n TableWorks tableWorks = new TableWorks(session, t);\n\n tableWorks.createForeignKey(tempConst.core.mainColArray,\n tempConst.core.refColArray,\n tempConst.constName,\n tempConst.core.refTable,\n tempConst.core.deleteAction,\n tempConst.core.updateAction);\n\n t = tableWorks.getTable();\n }\n\n if (tempConst.constType == Constraint.CHECK) {\n TableWorks tableWorks = new TableWorks(session, t);\n\n tableWorks.createCheckConstraint(tempConst,\n tempConst.constName);\n\n t = tableWorks.getTable();\n }\n }\n\n database.schemaManager.linkTable(t);\n } catch (HsqlException e) {\n\n// fredt@users 20020225 - comment\n// if a HsqlException is thrown while creating table, any foreign key that has\n// been created leaves it modification to the expTable in place\n// need to undo those modifications. This should not happen in practice.\n database.schemaManager.removeExportedKeys(t);\n database.schemaManager.removeIndexNames(t.tableName);\n database.schemaManager.removeConstraintNames(t.tableName);\n\n throw e;\n }\n }", "@Override\n\tpublic void create() {\n\n\t}", "public void testCreateTable() {\n LOG.info(\"Entering testCreateTable.\");\n\n // Specify the table descriptor.\n HTableDescriptor htd = new HTableDescriptor(tableName);\n\n // Set the column family name to info.\n HColumnDescriptor hcd = new HColumnDescriptor(\"info\");\n\n // Set data encoding methods,HBase provides DIFF,FAST_DIFF,PREFIX\n // and PREFIX_TREE\n hcd.setDataBlockEncoding(DataBlockEncoding.FAST_DIFF);\n\n // Set compression methods, HBase provides two default compression\n // methods:GZ and SNAPPY\n // GZ has the highest compression rate,but low compression and\n // decompression effeciency,fit for cold data\n // SNAPPY has low compression rate, but high compression and\n // decompression effeciency,fit for hot data.\n // it is advised to use SANPPY\n hcd.setCompressionType(Compression.Algorithm.SNAPPY);\n\n htd.addFamily(hcd);\n\n Admin admin = null;\n try {\n // Instantiate an Admin object.\n admin = conn.getAdmin();\n if (!admin.tableExists(tableName)) {\n LOG.info(\"Creating table...\");\n admin.createTable(htd);\n LOG.info(admin.getClusterStatus());\n LOG.info(admin.listNamespaceDescriptors());\n LOG.info(\"Table created successfully.\");\n } else {\n LOG.warn(\"table already exists\");\n }\n } catch (IOException e) {\n LOG.error(\"Create table failed.\");\n } finally {\n if (admin != null) {\n try {\n // Close the Admin object.\n admin.close();\n } catch (IOException e) {\n LOG.error(\"Failed to close admin \", e);\n }\n }\n }\n LOG.info(\"Exiting testCreateTable.\");\n }", "public CreateData() {\n\t\t\n\t\t// TODO Auto-generated constructor stub\n\t}", "boolean createTable();", "@Override\r\n public Db_db createTable (Db_table table)\r\n {\r\n Db_db db = null;\r\n String query = \"CREATE TABLE IF NOT EXISTS \"+ table.getName() + \" (\"; \r\n String primaryKeyName = null;\r\n Set<Map.Entry<String, Db_tableColumn>> tableEntries;\r\n List<String> listOfUniqueKey = Lists.newArrayList();\r\n \r\n if(curConnection_ != null)\r\n {\r\n try\r\n {\r\n tableEntries = table.getEntrySet();\r\n for(Map.Entry<String, Db_tableColumn> entry: tableEntries)\r\n {\r\n Db_tableColumn entryContent = entry.getValue();\r\n \r\n if(entryContent.isPrimary() && primaryKeyName == null)\r\n {\r\n primaryKeyName = entryContent.getName();\r\n }\r\n else if(entryContent.isPrimary() && primaryKeyName != null)\r\n {\r\n throw new NumberFormatException();\r\n }\r\n \r\n if(itsAttributeMapper_ == null)\r\n {\r\n throw new NumberFormatException();\r\n }\r\n \r\n if(entryContent.isUnique())\r\n {\r\n listOfUniqueKey.add(entryContent.getName());\r\n }\r\n \r\n String mappedAttribute = this.itsAttributeMapper_.MapAttribute(entryContent.getAttributeName());\r\n if(entryContent.getAttribute().isEnum())\r\n {\r\n mappedAttribute += entryContent.getAttribute().buildEnumValueListString();\r\n }\r\n query += entryContent.getName() + \" \" + mappedAttribute \r\n + (entryContent.isAutoIncreasmnet()?\" AUTO_INCREMENT \":\" \")\r\n + (entryContent.isUnique()?\" UNIQUE, \": \", \");\r\n }\r\n \r\n query += \"PRIMARY KEY (\" + primaryKeyName + \"));\";\r\n try (Statement sm = curConnection_.createStatement()) {\r\n sm.executeUpdate(query);\r\n db = this.curDb_;\r\n }\r\n \r\n }catch(NumberFormatException e){System.out.print(e);}\r\n catch(SQLException e){System.out.print(query);this.CurConnectionFailed();}\r\n }\r\n return db;\r\n }", "public Hoppy insert(Hoppy hoppy, IdGenerateService<Long> idGenerateService) throws DataAccessException;", "interface WithCreate extends\n SqlElasticPoolOperations.DefinitionStages.WithDatabaseDtuMin,\n SqlElasticPoolOperations.DefinitionStages.WithDatabaseDtuMax,\n SqlElasticPoolOperations.DefinitionStages.WithDtu,\n SqlElasticPoolOperations.DefinitionStages.WithStorageCapacity,\n SqlElasticPoolOperations.DefinitionStages.WithDatabase,\n Resource.DefinitionWithTags<SqlElasticPoolOperations.DefinitionStages.WithCreate>,\n Creatable<SqlElasticPool> {\n }", "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:49.404 -0500\", hash_original_method = \"CD5C82C799E78C74801FDB521CEE7324\", hash_generated_method = \"CD5C82C799E78C74801FDB521CEE7324\")\n \nContext ()\n {\n copyTables();\n }", "OrTable createOrTable();", "public abstract void create();", "DT createDT();", "@Override\n public void createSchema(Properties props)\n {\n Statement statement;\n try\n {\n statement = connection.createStatement();\n \n //Drop Indexes\n dropIndex(statement, \"CONFFRIENDSHIP_INVITEEID\", \"CONFFRIENDSHIP\");\n dropIndex(statement, \"CONFFRIENDSHIP_INVITERID\", \"CONFFRIENDSHIP\");\n dropIndex(statement, \"PENDFRIENDSHIP_INVITEEID\", \"PENDFRIENDSHIP\");\n dropIndex(statement, \"PENDFRIENDSHIP_INVITERID\", \"PENDFRIENDSHIP\");\n dropIndex(statement, \"MANIPULATION_RID\", \"MANIPULATION\");\n dropIndex(statement, \"MANIPULATION_CREATORID\", \"MANIPULATION\");\n dropIndex(statement, \"RESOURCES_WALLUSERID\", \"RESOURCES\");\n dropIndex(statement, \"RESOURCE_CREATORID\", \"RESOURCES\");\n \n //Drop Tables\n dropTable(statement, \"CONFFRIENDSHIP\");\n dropTable(statement, \"PENDFRIENDSHIP\");\n dropTable(statement, \"MANIPULATION\");\n dropTable(statement, \"RESOURCES\");\n dropTable(statement, \"USERS\");\n \n //Create Tables\n statement.executeUpdate(\"CREATE TABLE CONFFRIENDSHIP \" + \"(INVITERID INTEGER NOT NULL, \" + \"INVITEEID INTEGER NOT NULL, \" + \"PRIMARY KEY (INVITERID, INVITEEID))\");\n statement.executeUpdate(\"CREATE TABLE PENDFRIENDSHIP \" + \"(INVITERID INTEGER NOT NULL, \" + \"INVITEEID INTEGER NOT NULL, \" + \"PRIMARY KEY (INVITERID, INVITEEID))\");\n statement.executeUpdate(\"CREATE TABLE MANIPULATION \" + \"(MID INTEGER NOT NULL, \" + \"MODIFIERID INTEGER NOT NULL, \" + \"RID INTEGER NOT NULL, \" + \"CREATORID INTEGER NOT NULL, \" + \"TIMESTAMP VARCHAR(200), \" + \"TYPE VARCHAR(200), \" + \"CONTENT VARCHAR(200), \" + \"PRIMARY KEY (MID,RID))\");\n statement.executeUpdate(\"CREATE TABLE RESOURCES \" + \"(RID INTEGER NOT NULL , \" + \"CREATORID INTEGER NOT NULL, \" + \"WALLUSERID INTEGER NOT NULL, \" + \"TYPE VARCHAR(200), \" + \"BODY VARCHAR(200), \" + \"DOC VARCHAR(200), \" + \"PRIMARY KEY (RID))\");\n statement.executeUpdate(\"CREATE TABLE USERS \" + \"(USERID INTEGER NOT NULL , \" + \"USERNAME VARCHAR(200), \" + \"PW VARCHAR(200), \" + \"FNAME VARCHAR(200), \" + \"LNAME VARCHAR(200), \" + \"GENDER VARCHAR(200),\" + \"DOB VARCHAR(200), \" + \"JDATE VARCHAR(200), \" + \"LDATE VARCHAR(200), \" + \"ADDRESS VARCHAR(200),\" + \"EMAIL VARCHAR(200), \" + \"TEL VARCHAR(200), \" + \"PRIMARY KEY (USERID))\");\n \n //Add Foreign Keys\n statement.executeUpdate(\"ALTER TABLE CONFFRIENDSHIP \" + \"ADD CONSTRAINT CONFFRIENDSHIP_USERS_FK1 FOREIGN KEY (INVITERID)\" + \"REFERENCES USERS (USERID) ON DELETE CASCADE\");\n statement.executeUpdate(\"ALTER TABLE CONFFRIENDSHIP \" + \"ADD CONSTRAINT CONFFRIENDSHIP_USERS_FK2 FOREIGN KEY (INVITEEID)\" + \"REFERENCES USERS (USERID) ON DELETE NO ACTION\");\n statement.executeUpdate(\"ALTER TABLE PENDFRIENDSHIP \" + \"ADD CONSTRAINT PENDFRIENDSHIP_USERS_FK1 FOREIGN KEY (INVITERID)\" + \"REFERENCES USERS (USERID) ON DELETE CASCADE\");\n statement.executeUpdate(\"ALTER TABLE PENDFRIENDSHIP \" + \"ADD CONSTRAINT PENDFRIENDSHIP_USERS_FK2 FOREIGN KEY (INVITEEID)\" + \"REFERENCES USERS (USERID) ON DELETE NO ACTION\");\n statement.executeUpdate(\"ALTER TABLE MANIPULATION \" + \"ADD CONSTRAINT MANIPULATION_RESOURCES_FK1 FOREIGN KEY (RID)\" + \"REFERENCES RESOURCES (RID) ON DELETE CASCADE\");\n statement.executeUpdate(\"ALTER TABLE MANIPULATION \" + \"ADD CONSTRAINT MANIPULATION_USERS_FK1 FOREIGN KEY (CREATORID)\" + \"REFERENCES USERS (USERID) ON DELETE NO ACTION\");\n statement.executeUpdate(\"ALTER TABLE MANIPULATION \" + \"ADD CONSTRAINT MANIPULATION_USERS_FK2 FOREIGN KEY (MODIFIERID)\" + \"REFERENCES USERS (USERID) ON DELETE NO ACTION\");\n statement.executeUpdate(\"ALTER TABLE RESOURCES \" + \"ADD CONSTRAINT RESOURCES_USERS_FK1 FOREIGN KEY (CREATORID)\" + \"REFERENCES USERS (USERID) ON DELETE CASCADE\");\n statement.executeUpdate(\"ALTER TABLE RESOURCES \" + \"ADD CONSTRAINT RESOURCES_USERS_FK2 FOREIGN KEY (WALLUSERID)\" + \"REFERENCES USERS (USERID) ON DELETE NO ACTION\");\n \n //Create Indexes\n buildIndexes(null);\n }\n catch (SQLException ex)\n {\n Logger.getLogger(WindowsAzureClientInit.class.getName()).log(Level.SEVERE, null, ex);\n System.out.println(\"Error in creating schema!\");\n }\n }", "public void createTable() throws LRException\n\t{\n\t\tgetBackground();\n\t\tDataHRecordData myData=(DataHRecordData)getData();\n\t\t// Create a new (empty) record\n\t\tcreate(new Hashtable(),myData);\n\t\tif (myData.record==null) throw new LRException(DataRMessages.nullRecord(getName()));\n\t\ttry\n\t\t{\n\t\t\tbackground.newTransaction();\n\t\t\tmyData.record.createNewTable(background.getClient(),true);\n\t\t}\n\t\tcatch (LDBException e) { setStatus(e); }\n\t}", "public boolean createTable(String input) throws IOException{\n\t\tString orgQuery = input;\n\t\torgQuery = orgQuery.trim();\n\t\tString query = input.toLowerCase().trim();\n\t\tboolean queryFailed = false;\n\t\t//Schema Instance \n\t\tSchema currentSchema = Schema.getSchemaInstance();\n\t\tString currentSchemaName = currentSchema.getCurrentSchema();\n\n\t\t//TableSchemaManager Instance\n\t\tTableSchemaManager currentTableSchemaManager = TableSchemaManager.getTableSchemaManagerInstance();\n\n\t\t//Extracting Table name\n\t\ttableName = orgQuery.substring(query.indexOf(\"table \")+6,query.indexOf(\"(\")).trim();\n\n\t\t//Updating SCHEMA.TABLE.TBL\n\t\tif(updateInformationSchemaTable()){\n\t\t\tqueryFailed = true;\n\t\t\treturn queryFailed;\n\t\t}\n\n\t\t//Extracting Table contents\n\t\tString tableContentsWithQuotes = orgQuery.substring(orgQuery.indexOf(\"(\")+1,orgQuery.length());\n\t\tString tableContents = tableContentsWithQuotes.replace(\"))\", \")\");\n\t\ttableContents = tableContents.trim();\n\n\t\tTableSchemaManager.ordinalMap = new TreeMap<Integer,List<String>>();\n\t\tTableSchemaManager.tableMap = new TreeMap<String,TreeMap<Integer,List<String>>>();\n\t\t\n\t\t//Creating n instances of Table helper\n\t\tString[] createTableContents = tableContents.split(\"\\\\,\"); \n\t\tnoOfColumns = createTableContents.length;\n\t\tCreateTableHelper[] th = new CreateTableHelper[noOfColumns];\n\n\t\t\n\t\t//Handles single row of Create Table \n\t\tfor(int item = 0; item < noOfColumns ; item++){\n\t\t\tth[item] = new CreateTableHelper(); \n\t\t\t//To remove any leading or trailing spaces\n\t\t\tcreateTableContents[item] = createTableContents[item].trim();\n\t\t\tString columnName = createTableContents[item].substring(0, createTableContents[item].indexOf(\" \"));\n\t\t\tth[item].setColumnName(columnName);\n\n\t\t\t//Setting Primary Key\n\t\t\tString primaryKeyExp = \"(.*)[pP][rR][iI][mM][aA][rR][yY](.*)\";\n\t\t\tif (createTableContents[item].matches(primaryKeyExp))\n\t\t\t\tth[item].setPrimaryKey(true);\n\t\t\telse\n\t\t\t\tth[item].setPrimaryKey(false);\n\n\t\t\t//Setting Null Value\t\n\t\t\tString notNullExp = \"(.*)[nN][uU][lL][lL](.*)\";\n\t\t\tif (createTableContents[item].matches(notNullExp))\n\t\t\t\tth[item].setNull(true);\n\t\t\telse\n\t\t\t\tth[item].setNull(false);\n\n\t\t\t//Extracting data types \n\t\t\t//BYTE\n\t\t\tString byteExp = \"(.*)[bB][yY][tT][eE](.*)\";\n\t\t\tif (createTableContents[item].matches(byteExp)){\n\t\t\t\tth[item].setDataType(\"BYTE\");\n\t\t\t}\n\t\t\t//SHORT\n\t\t\tString shortExp = \"(.*)[sS][hH][oO][rR][tT](.*)\";\n\t\t\tif (createTableContents[item].matches(shortExp)){\n\t\t\t\tth[item].setDataType(\"SHORT\");\n\t\t\t}\n\t\t\t//INT\n\t\t\tString intExp = \"(.*)[iI][nN][tT](.*)\";\n\t\t\tif (createTableContents[item].matches(intExp)){\n\t\t\t\tth[item].setDataType(\"INT\");\n\t\t\t}\n\t\t\t//LONG\n\t\t\tString longExp = \"(.*)[lL][oO][nN][gG](.*)\";\n\t\t\tif (createTableContents[item].matches(longExp)){\n\t\t\t\tth[item].setDataType(\"LONG\");\n\t\t\t}\n\t\t\t//CHAR\n\t\t\tString charExp = \"(.*)[cC][hH][aA][rR](.*)\";\n\t\t\tif (createTableContents[item].matches(charExp)){\n\t\t\t\tString size = createTableContents[item].substring(createTableContents[item].indexOf(\"(\")+1, createTableContents[item].indexOf(\")\"));\n\t\t\t\tth[item].setDataType(\"CHAR(\" + size + \")\");\n\t\t\t}\n\t\t\t//VARCHAR\n\t\t\tString varcharExp = \"(.*)[vV][aA][rR][cC][hH][aA][rR](.*)\";\n\t\t\tif (createTableContents[item].matches(varcharExp)){\n\t\t\t\tString size = createTableContents[item].substring(createTableContents[item].indexOf(\"(\")+1, createTableContents[item].indexOf(\")\"));\n\t\t\t\tth[item].setDataType(\"VARCHAR(\" + size + \")\");\n\t\t\t}\n\t\t\t//FLOAT\n\t\t\tString floatExp = \"(.*)[fF][lL][oO][aA][tT](.*)\";\n\t\t\tif (createTableContents[item].matches(floatExp)){\n\t\t\t\tth[item].setDataType(\"FLOAT\");\t\t\t\t\n\t\t\t}\n\t\t\t//DOUBLE\n\t\t\tString doubleExp = \"(.*)[dD][oO][uU][bB][lL][eE](.*)\";\n\t\t\tif (createTableContents[item].matches(doubleExp)){\n\t\t\t\tth[item].setDataType(\"DOUBLE\");\n\t\t\t}\n\t\t\t//DATETIME\n\t\t\tString dateTimeExp = \"(.*)[dD][aA][tT][eE][tT][iI][mM][eE](.*)\";\n\t\t\tif (createTableContents[item].matches(dateTimeExp)){\n\t\t\t\tth[item].setDataType(\"DATETIME\");\n\t\t\t}\n\t\t\t//DATE\n\t\t\tString dateExp = \"(.*)[dD][aA][tT][eE](.*)\";\n\t\t\tif (createTableContents[item].matches(dateExp)){\n\t\t\t\tth[item].setDataType(\"DATE\");\n\t\t\t}\n\n\t\t\tcurrentTableSchemaManager.newTableSchema(\n\t\t\t\t\ttableName,\n\t\t\t\t\titem,\n\t\t\t\t\tth[item].getColumnName(),\n\t\t\t\t\tth[item].getDataType(),\n\t\t\t\t\tth[item].isNull(),\n\t\t\t\t\tth[item].isPrimaryKey()\n\t\t\t\t\t);\n\n\t\t\t//Updating SCHEMA.COLUMNS.TBL\n\t\t\tupdateInformationSchemaColumn(\n\t\t\t\t\tth[item].getColumnName(),\n\t\t\t\t\titem,\n\t\t\t\t\tth[item].getDataType(),\n\t\t\t\t\tth[item].isNull(),\n\t\t\t\t\tth[item].isPrimaryKey()\n\t\t\t\t\t);\n\t\t\t//Create tables to insert index\n\t\t\tString newTableIndexName = currentSchemaName + \".\" + tableName + \".\" +th[item].getColumnName()+ \".tbl.ndx\";\n\t\t\tRandomAccessFile newTableIndexFile = new RandomAccessFile(newTableIndexName, \"rw\");\n\t\t\tnewTableIndexFile.close();\n\n\t\t}\n\n\t\tTableSchemaManager.tableMap.put(tableName, TableSchemaManager.ordinalMap);\n\t\tcurrentTableSchemaManager.updateTableSchema(currentSchemaName,tableName);\n\t\t\n\t\t//Create tables to insert data \n\t\tString newTableDataName = currentSchemaName + \".\" + tableName + \".tbl\";\n\t\tRandomAccessFile newTableDataFile = new RandomAccessFile(newTableDataName, \"rw\");\n\t\tnewTableDataFile.close();\n\t\treturn queryFailed;\n\t}", "public String createDSIndex(String dsID, String dschemaID, String attriName);", "private void createStressTestControlTable() {\n Column runId = new Column(\"RUN_ID\");\n runId.setMappedType(\"INTEGER\");\n runId.setPrimaryKey(true);\n runId.setRequired(true);\n Column clientCommitSleepMs = new Column(\"CLIENT_COMMIT_SLEEP_MS\");\n clientCommitSleepMs.setMappedType(\"BIGINT\");\n Column clientCommitRows = new Column(\"CLIENT_COMMIT_ROWS\");\n clientCommitRows.setMappedType(\"BIGINT\");\n Column serverCommitSleepMs = new Column(\"SERVER_COMMIT_SLEEP_MS\");\n serverCommitSleepMs.setMappedType(\"BIGINT\");\n Column serverCommitRows = new Column(\"SERVER_COMMIT_ROWS\");\n serverCommitRows.setMappedType(\"BIGINT\");\n Column payloadColumns = new Column(\"PAYLOAD_COLUMNS\");\n payloadColumns.setMappedType(\"INTEGER\");\n Column initialSeedSize = new Column(\"INITIAL_SEED_SIZE\");\n initialSeedSize.setMappedType(\"BIGINT\");\n Column duration = new Column(\"DURATION_MINUTES\");\n duration.setMappedType(\"BIGINT\");\n\n Table table = new Table(STRESS_TEST_CONTROL, runId, clientCommitSleepMs, clientCommitRows, serverCommitSleepMs, serverCommitRows,\n payloadColumns, initialSeedSize, duration);\n engine.getDatabasePlatform().createTables(true, true, table);\n }", "@Override\r\n\tpublic void create() {\n\r\n\t}", "Statement createStatement();", "Statement createStatement();", "Statement createStatement();", "public void doCreateTable();", "@Override\n public Pipe execute(DBMS engine) throws DBxicException {\n engine.storManager.createTable(table);\n engine.catalog.saveCatalog();\n return new MessageThroughPipe(\"Table \" + table.getName() + \" successfully created\");\n }", "@Override\n public void setUp() throws SQLException {\n connection.createStatement().executeUpdate(\n \"CREATE TABLE IF NOT EXISTS \\\"ENTRY\\\" (\" +\n \"\\\"SHARED_ID\\\" SERIAL PRIMARY KEY, \" +\n \"\\\"TYPE\\\" VARCHAR, \" +\n \"\\\"VERSION\\\" INTEGER DEFAULT 1)\");\n\n connection.createStatement().executeUpdate(\n \"CREATE TABLE IF NOT EXISTS \\\"FIELD\\\" (\" +\n \"\\\"ENTRY_SHARED_ID\\\" INTEGER REFERENCES \\\"ENTRY\\\"(\\\"SHARED_ID\\\") ON DELETE CASCADE, \" +\n \"\\\"NAME\\\" VARCHAR, \" +\n \"\\\"VALUE\\\" TEXT)\");\n\n connection.createStatement().executeUpdate(\n \"CREATE TABLE IF NOT EXISTS \\\"METADATA\\\" (\"\n + \"\\\"KEY\\\" VARCHAR,\"\n + \"\\\"VALUE\\\" TEXT)\");\n }", "private void m14053d() {\n try {\n File file = new File(f18051l);\n File file2 = new File(f18052m);\n if (!file.exists()) {\n file.mkdirs();\n }\n if (!file2.exists()) {\n file2.createNewFile();\n }\n if (file2.exists()) {\n SQLiteDatabase openOrCreateDatabase = SQLiteDatabase.openOrCreateDatabase(file2, null);\n openOrCreateDatabase.execSQL(\"CREATE TABLE IF NOT EXISTS bdcltb09(id CHAR(40) PRIMARY KEY,time DOUBLE,tag DOUBLE, type DOUBLE , ac INT);\");\n openOrCreateDatabase.execSQL(\"CREATE TABLE IF NOT EXISTS wof(id CHAR(15) PRIMARY KEY,mktime DOUBLE,time DOUBLE, ac INT, bc INT, cc INT);\");\n openOrCreateDatabase.setVersion(1);\n openOrCreateDatabase.close();\n }\n this.f18053a = true;\n } catch (Exception e) {\n }\n }", "interface WithDtu {\n /**\n * Sets the total shared DTU for the SQL Azure Database Elastic Pool.\n *\n * @param dtu total shared DTU for the SQL Azure Database Elastic Pool\n * @return The next stage of the definition.\n */\n @Deprecated\n SqlElasticPoolOperations.DefinitionStages.WithCreate withDtu(int dtu);\n }", "@POST\n @Produces({\"application/json\"})\n public String createDb() throws WebApplicationException {\n HibernateEntityManager emAdm = PersistenceManager.getInstance().getEntityManagerAdmin();\n SQLQuery qCreate = emAdm.getSession().createSQLQuery(\"CREATE DATABASE test_jeff template=postgis\");\n try{\n qCreate.executeUpdate();\n }catch(SQLGrammarException e){\n System.out.println(\"Error !!\" + e.getSQLException());\n emAdm.close();\n return e.getSQLException().getLocalizedMessage();\n }\n emAdm.close();\n Map properties = new HashMap();\n //change the connection string to the new db\n properties.put(\"hibernate.connection.url\", \"jdbc:postgresql_postGIS://192.168.12.36:5432/test_jeff\");\n EntityManagerFactory emf = Persistence.createEntityManagerFactory(\"dataPU\", properties); \n return \"Yeah\";\n }", "public abstract void createTables() throws DataServiceException;", "@Override\n\tpublic void create () {\n\n\t}", "@Test\n public void shouldCreateEpiDataGathering() {\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(0));\n\n Case caze = TestEntityCreator.createCase();\n TestEntityCreator.createEpiDataGathering(caze);\n\n // Assure that the burial has been successfully created\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(1));\n }", "Udt createUdt();", "OperacionColeccion createOperacionColeccion();", "public void create(AttributeList attributeList)\n {\n\n super.create(attributeList); \n \n OADBTransaction transaction = getOADBTransaction();\n \n // DEFAULT: supplier id is obtained from the table's sequence\n Number supplierId = transaction.getSequenceValue(\"FWK_TBX_SUPPLIERS_S\");\n setSupplierId(supplierId);\n\n // DEFAULT: start date should be set to sysdate\n setStartDate(transaction.getCurrentDBDate());\n\n \n }", "Definition createDefinition();", "H1 createH1();", "private static void createDatabase(String restrictedUser) throws ArcException {\n\t\tGenericPreparedStatementBuilder query;\n\n\t\t// clean database\n\t\tquery = new GenericPreparedStatementBuilder();\n\t\tquery.append(\"DROP SCHEMA IF EXISTS \" + DataObjectService.ARC_METADATA_SCHEMA + \" CASCADE;\");\n\t\tquery.append(\"DROP SCHEMA IF EXISTS \" + testSandbox1 + \" CASCADE;\");\n\t\tquery.append(\"DROP SCHEMA IF EXISTS public CASCADE;\");\n\t\tUtilitaireDao.get(0).executeRequest(c, query);\n\t\t\n\t\tBddPatcher patcher=new BddPatcher();\n\t\tpatcher.getProperties().setGitCommitId(newVersion);\n\t\tpatcher.getProperties().setDatabaseRestrictedUsername(userWithRestrictedRights);\n\n\t\t// metadata schema creation\n\t\tpatcher.bddScript(c);\n\t\t// sandbox schema creation\n\t\tpatcher.bddScript(c, testSandbox1, testSandbox2, testSandbox8);\n\t\t\n\t}", "Operacion createOperacion();", "private synchronized String processCreate(String query) {\r\n\t\tString[] valuesCommand = query.split(\" \");\r\n\t\tif ( valuesCommand.length != 3 )\r\n\t\t\treturn \"ERROR Bad syntaxe command CREATE - Usage : CREATE id initial_solde\";\r\n\t\tString id = valuesCommand[1];\r\n\t\tif ( this.bank.existAccount(id) ) {\r\n\t\t\treturn \"ERROR Account alwready exist\";\r\n\t\t}\r\n\t\tdouble number = Double.valueOf(valuesCommand[2]);\r\n\t\tthis.bank.createAccount(id, number);\r\n\t\treturn \"OK \" + this.bank.getLastOperation(id);\r\n\t}", "public void createNewSchema() throws SQLException {\n ResultSet resultSet = databaseStatement.executeQuery(\"select count(datname) from pg_database\");\n int uniqueID = 0;\n if(resultSet.next()) {\n uniqueID = resultSet.getInt(1);\n }\n if(uniqueID != 0) {\n uniqueID++;\n databaseStatement.executeQuery(\"CREATE DATABASE OSM\"+uniqueID+\";\");\n }\n }", "int insert(Lbt72TesuryoSumDPkey record);", "@Test(timeout = 4000)\n public void test124() throws Throwable {\n DefaultDBTable defaultDBTable0 = new DefaultDBTable();\n MockPrintWriter mockPrintWriter0 = new MockPrintWriter(\"Illegal column type format: \");\n String[] stringArray0 = new String[9];\n DBUniqueConstraint dBUniqueConstraint0 = new DBUniqueConstraint(defaultDBTable0, \"66i,cw\", true, stringArray0);\n NameSpec nameSpec0 = NameSpec.ALWAYS;\n SQLUtil.renderCreateTable(defaultDBTable0, true, nameSpec0, mockPrintWriter0);\n assertEquals(\"table\", defaultDBTable0.getObjectType());\n }", "int insert(NjProductTaticsRelation record);", "public de.uni_koblenz.jgralabtest.schemas.gretl.pddsl.Chassis createChassis();", "int insert(Disease record);", "private void creates() {\n \tDBPeer.fetchTableColumns();\n \tDBPeer.fetchTableRows();\n \tDBPeer.fetchTableIndexes();\n \t\n for (int i = 0; i < creates.size(); i++) {\n creates.get(i).init();\n }\n \n DBPeer.updateTableColumns();\n DBPeer.updateTableRows();\n DBPeer.updateTableIndexes();\n }", "InstAssignIndex createInstAssignIndex();", "WithCreate withCreationData(CreationData creationData);", "@Before\n public void createAndFillTable() {\n try {\n DBhandler dBhandler = new DBhandler(h2DbConnection);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "DataCfgTableInfo createTableIfNotExists(String dataCfgOid);", "H2 createH2();", "int insert(Lbm83ChohyokanriPkey record);", "HdbSequenceModel createHdbSequenceModel();", "DL createDL();", "For createFor();", "public org.oep.cmon.dao.tlct.model.DanhMucGiayTo create(long id);", "private Builder() {\n super(org.apache.gora.cascading.test.storage.TestRow.SCHEMA$);\n }", "public void createExempleDirect(ExempleDirect exempleDirect) throws DaoException;", "int insertSelective(NjProductTaticsRelation record);", "BIG createBIG();", "private void CreateDataIngestors() throws isisicatclient.IcatException_Exception {\n Grouping dataIngestors = new Grouping();\r\n dataIngestors.name = \"DataIngestors\";\r\n dataIngestors.id = port.create(sessionId, dataIngestors);\r\n dataIngestors = (Grouping) port.search(sessionId, \"Grouping[name='DataIngestors']\").get(0);\r\n\r\n List<String> ingestorTables = port.getEntityNames();\r\n\r\n ingestorTables.remove(\"Facility\");\r\n\r\n List<EntityBaseBean> ingestorRules = new ArrayList<>();\r\n for (String table : ingestorTables) {\r\n Rule rule = new Rule();\r\n rule.grouping = dataIngestors;\r\n rule.crudFlags = \"CRUD\"; //no delete permission for ingestors\r\n rule.what = table;\r\n ingestorRules.add(rule);\r\n }\r\n port.createMany(sessionId, ingestorRules);\r\n }", "H4 createH4();", "int insert(OrgIntegralDeductRule record);", "public void createDataTable() {\r\n Log.d(TAG, \"creating table\");\r\n String queryStr = \"\";\r\n String[] colNames = {Constants.COLUMN_NAME_ACC_X, Constants.COLUMN_NAME_ACC_Y, Constants.COLUMN_NAME_ACC_Z};\r\n queryStr += \"create table if not exists \" + Constants.TABLE_NAME;\r\n queryStr += \" ( id INTEGER PRIMARY KEY AUTOINCREMENT, \";\r\n for (int i = 1; i <= 50; i++) {\r\n for (int j = 0; j < 3; j++)\r\n queryStr += colNames[j] + \"_\" + i + \" real, \";\r\n }\r\n queryStr += Constants.COLUMN_NAME_ACTIVITY + \" text );\";\r\n execute(queryStr);\r\n Log.d(TAG, \"created table\");\r\n try {\r\n ContentValues values = new ContentValues();\r\n values.put(\"id\", 0);\r\n insertRowInTable(Constants.TABLE_NAME, values);\r\n Log.d(TAG,\"created hist table\");\r\n }catch (Exception e){\r\n Log.d(TAG,Constants.TABLE_NAME + \" table already exists\");\r\n }\r\n }", "public static void main(String[] args) {\n\t\tCreateTable createTable = new CreateTable();\n\n\t\tCity city = new City();\n\t\tcity.setId(1);\n\t\tcreateTable.execute(city);\n\n\t\tProvince province = new Province();\n\t\tprovince.setId(1);\n\t\tcreateTable.execute(province);\n\n\t\tTown town = new Town();\n\t\ttown.setId(1);\n\t\tcreateTable.execute(town);\n\n\t\tDetail detail = new Detail();\n\t\tdetail.setId(1);\n\t\tcreateTable.execute(detail);\n\n\t\tOrder order = new Order();\n\t\torder.setId(1);\n\t\tcreateTable.execute(order);\n\n\t\tBrand2 brand2 = new Brand2();\n\t\tbrand2.setId(1);\n\t\tcreateTable.execute(brand2);\n\n\t\tColor color = new Color();\n\t\tcolor.setId(1);\n\t\tcreateTable.execute(color);\n\n\t\tFeature feature = new Feature();\n\t\tfeature.setId(1);\n\t\tcreateTable.execute(feature);\n\n\t\tImg img = new Img();\n\t\timg.setId(1);\n\t\tcreateTable.execute(img);\n\n\t\tSku sku = new Sku();\n\t\tsku.setId(1);\n\t\tcreateTable.execute(sku);\n\n\t\tType type = new Type();\n\t\ttype.setId(1);\n\t\tcreateTable.execute(type);\n\n\t\tAddr addr = new Addr();\n\t\taddr.setId(1);\n\t\tcreateTable.execute(addr);\n\t\tcreateTable.execute(new Buyer());\n\n\t\t// 商品编号 商品名称 图片 新品 热卖 推荐 上下架 操作选项\n\t\tProduct product = new Product();\n\t\tproduct.setId(001);\n\t\tproduct.setNo(UUID.randomUUID().toString());\n\t\tproduct.setName(\"依琦莲2014瑜伽服套装新款 瑜珈健身服三件套 广场舞蹈服装 女瑜伽服送胸垫 长袖紫色\");\n\t\tproduct.setWeight(56.00);\n\t\tproduct.setIsNew(1); // 1是 0否\n\t\tproduct.setIsHot(1);\n\t\tproduct.setCreateTime(new Date());\n\t\tproduct.setCheckUserId(\"\");\n\t\tproduct.setCheckTime(new Date());\n\t\tproduct.setCreateUserId(\"\");\n\t\tproduct.setIsShow(1);\n\t\tproduct.setIsDel(1);\n\t\tproduct.setTypeId(1);\n\t\tproduct.setBrandId(1);\n\t\tproduct.setKeywords(\"\");\n\t\tproduct.setSales(36);\n\t\tproduct.setDescription(\"不是东西\");\n\t\tproduct.setPackageList(\"\");\n\t\tproduct.setFeature(\"头角狰狞\");\n\t\tproduct.setColor(\"blue\");\n\t\tproduct.setSize(\"L\"); // S,L,XXL\n\t\tcreateTable.execute(product);\n\n\t\t// insert into\n\t\t// Product(id,no,name,weight,isNew,isHot,sales,description,feature,size)value(1,\"11xzc3568\",\"依琦莲2014瑜伽服套装新款女瑜伽服送胸垫\n\t\t// 长袖紫色\",36.12,1,1,110,\"不是东西\",\"头角狰狞\",\"blue\",\"L\");\n\n\t\tEmployee employee = new Employee();\n\t\temployee.setId(1);\n\t\tcreateTable.execute(employee);\n\n\t}", "Vaisseau_ordonneeLaPlusHaute createVaisseau_ordonneeLaPlusHaute();", "private void createCheckingAccountsTable() {\n\t\ttry {\n\t\t\tStatement stmt = this.conn.createStatement();\n\t\t\tstmt.executeUpdate(\"CREATE TABLE checkingAccounts \"\n\t\t\t\t\t+ \"(id BIGINT GENERATED ALWAYS AS IDENTITY ( START WITH 1000000001, INCREMENT BY 1 ), \" + \"owner INT, \"\n\t\t\t\t\t+ \"balance DOUBLE, \" + \"intRate DOUBLE, \"\n\t\t\t\t\t+ \"timeCreated BIGINT, \" + \"lastPaidInterest DOUBLE, \"\n\t\t\t\t\t+ \"dateOfLastPaidInterest BIGINT)\");\n\t\t\tconn.commit();\n\t\t\tSystem.out.println(\"Created table checkingAccounts\");\n\t\t} catch (SQLException sqle) {\n\t\t\tSystem.err.println(\"Creation of checkingAccounts table FAILED\");\n\t\t\tSystem.err.println(sqle);\n\t\t}\n\t}", "@Ignore\n @Test\n public void testCreateIndex() {\n System.out.println(\"createIndex\");\n Util.commonServiceIPs=\"127.0.0.1\";\n \n EntityManager em=Util.getEntityManagerFactory(100).createEntityManager();\n EntityManager platformEm = Util.getPlatformEntityManagerFactory().createEntityManager();\n \n Client client = ESUtil.getClient(em,platformEm,1,false);\n \n RuntimeContext.dataobjectTypes = Util.getDataobjectTypes();\n String indexName = \"test000000\";\n try {\n ESUtil.createIndex(platformEm, client, indexName, true);\n }\n catch(Exception e)\n {\n \n }\n \n\n }", "public void createVirtualTable(){\n\n\t\t\n\t\tif(DBHandler.getConnection()==null){\n\t\t\treturn;\n\t\t}\n\n\t\tif(DBHandler.tableExists(name())){\n\t\t\treturn;\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tStatement s = DBHandler.getConnection().createStatement();\n\t\t\ts.execute(\"create virtual table \"+name()+\" using fts4(\"+struct()+\")\");\n\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\tMainFrame.print(e.getMessage());\n\t\t}\n\t}", "public int create (Section section) throws DataAccessException;", "protected abstract void createAttributes();", "private MetaSparqlRequest createInsertMT1() {\n\t\tString sparqlStr = \"\"+\n\t\t\t\t\"PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>\\r\\n\" + \n\t\t\t\t\"PREFIX ub: \"+_ontology+\"\\r\\n\" + \n\t\t\t\t\"INSERT DATA { GRAPH \"+_graph+\" { \"+\n\t\t\t\tbuilderBindInsert\n\t\t\t\t+\" } }\";\n\t\t\n\t\tSparqlObj sparql= new SparqlObj(sparqlStr) ;\n\t\tEndPoint endPointHost= new EndPoint(_protocol,_host,_port,\"/update\");\n\t\tMetaSparqlRequest msr = new MetaSparqlRequest(new SparqlRequest(sparql,endPointHost));\n\t\tmsr.setTripleInsert(createTripleBaseMT1());\n\t\treturn msr;\n\t}", "public void createTables(){\n Map<String, String> name_type_map = new HashMap<>();\n List<String> primaryKey = new ArrayList<>();\n try {\n name_type_map.put(KEY_SINK_NAME, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_SINK_ADDRESS, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_SINK_DETAIL, MyDatabase.TYPE_VARCHAR);\n primaryKey.add(KEY_SINK_ADDRESS);\n myDatabase.createTable(TABLE_SINK, name_type_map, primaryKey, null);\n }catch (MySQLException e){ //数据表已存在\n e.print();\n }\n try {\n name_type_map.clear();\n name_type_map.put(KEY_NODE_NAME, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_PARENT, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_DETAIL, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_ADDRESS,MyDatabase.TYPE_VARCHAR);\n primaryKey.clear();\n primaryKey.add(KEY_NODE_PARENT);\n primaryKey.add(KEY_NODE_ADDRESS);\n myDatabase.createTable(TABLE_NODE, name_type_map, primaryKey, null);\n }catch (MySQLException e){\n e.print();\n }\n\n try {\n name_type_map.clear();\n name_type_map.put(KEY_NODE_ADDRESS, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_PARENT, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_DATA_TIME, MyDatabase.TYPE_TIMESTAMP);\n name_type_map.put(KEY_DATA_VAL, MyDatabase.TYPE_FLOAT);\n primaryKey.clear();\n primaryKey.add(KEY_DATA_TIME);\n primaryKey.add(KEY_NODE_ADDRESS);\n primaryKey.add(KEY_NODE_PARENT);\n myDatabase.createTable(TABLE_DATA, name_type_map, primaryKey, null);\n }catch (MySQLException e) {\n e.print();\n }\n }", "int insert(ec_environment record);", "public void setup() throws SQLException {\n // Create ACARS table\n final String createTableSQL = \"CREATE TABLE IF NOT EXISTS ACARS (\"\n + \"date DATE, time TIME, frequency CHAR(7), \"\n + \"registration VARCHAR(7), flight CHAR(6), \"\n + \"mode CHAR, label CHAR(2), blockId CHAR, msgId CHAR(4), \"\n + \"text VARCHAR(255), \"\n + \"PRIMARY KEY (date, registration, flight, mode, label, blockId, msgId), \"\n + \"INDEX datetime_idx (date, time), \"\n + \"INDEX registration_idx (registration), \"\n + \"INDEX flight_idx (flight)\"\n + \")\";\n\n final Statement createTableStmt = connection.createStatement();\n createTableStmt.execute(createTableSQL);\n }", "TableInstance createTableInstance();", "private String createTableSQL()\n\t{\n\t\tStringBuffer str = new StringBuffer();\n\n\t\t// Keep track of the list of fields\n\t\tList<String> listFields = new ArrayList<String>();\n\n\t\t// Table command\n\t\tstr.append(\"CREATE TABLE \" + getFullPath() + \"( \");\n\t\tstr.append(createStandardGZFields());\n\n\t\t// Loop through all InputFields\n\t\tfor (InputFieldSet fieldSet : function.getInputFieldSets())\n\t\t{\n\t\t\tfor (InputField inputField : fieldSet.getInputFields())\n\t\t\t{\n\t\t\t\t// Phase 2 does not support repeating fields being journalled\n\t\t\t\tif (!Field.isRepeating(inputField))\n\t\t\t\t{\n\t\t\t\t\t// Field\n\t\t\t\t\tString fieldName = SQLToolbox.cvtToSQLFieldName(inputField.getId());\n\n\t\t\t\t\t// add if not yet existing\n\t\t\t\t\tif (listFields.indexOf(fieldName) == -1)\n\t\t\t\t\t{\n\t\t\t\t\t\tstr.append(\", \");\n\t\t\t\t\t\tString fieldDataType = inputField.getDataType();\n\t\t\t\t\t\tString fieldType = SQLToolbox.cvtToSQLFieldType(fieldDataType, inputField.getSize(), inputField\n\t\t\t\t\t\t\t\t\t\t.getDecimals());\n\t\t\t\t\t\tString fieldDefault = SQLToolbox.cvtToSQLDefault(fieldDataType);\n\t\t\t\t\t\tstr.append(fieldName + \" \" + fieldType + \" \" + \" not null default \" + fieldDefault);\n\t\t\t\t\t\tlistFields.add(fieldName);\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// End\n\t\tstr.append(\" ) \");\n\t\t// RCDFMT \" + getJournalRcdName());\n\n\t\treturn str.toString();\n\t}", "public org.oep.cmon.dao.dvc.model.ThuTuc2GiayTo create(long id);" ]
[ "0.6137034", "0.6020893", "0.5953024", "0.5871004", "0.58520657", "0.5824135", "0.5783128", "0.5781292", "0.5779935", "0.5768486", "0.57018137", "0.569296", "0.5677845", "0.566757", "0.56516117", "0.5639093", "0.56084186", "0.5601316", "0.55988264", "0.5587084", "0.5586368", "0.5579563", "0.55671966", "0.5562383", "0.55537105", "0.55511224", "0.5550222", "0.5547236", "0.55009055", "0.54889506", "0.5482187", "0.54807544", "0.5465443", "0.5454913", "0.54468626", "0.5434606", "0.5426381", "0.54197514", "0.5414243", "0.54073745", "0.5402808", "0.5390703", "0.5390526", "0.5390526", "0.5390526", "0.538945", "0.53878444", "0.53796816", "0.5375914", "0.53748345", "0.53730184", "0.5365049", "0.5364833", "0.5364805", "0.536257", "0.5361029", "0.5360632", "0.53598887", "0.5350994", "0.5339128", "0.5338244", "0.53296435", "0.5321595", "0.5320979", "0.53194505", "0.5318698", "0.5313326", "0.53126156", "0.53099495", "0.5306004", "0.5300889", "0.5293614", "0.529321", "0.52883255", "0.5281361", "0.5281042", "0.527843", "0.5270345", "0.526982", "0.52697945", "0.52608657", "0.5259804", "0.52563196", "0.5249798", "0.5247741", "0.5239433", "0.5224713", "0.5224455", "0.5222238", "0.5221105", "0.521778", "0.5213034", "0.5211071", "0.52098143", "0.5208245", "0.5207931", "0.52069414", "0.5205663", "0.52015704", "0.5196995", "0.5195414" ]
0.0
-1
CREATE BY ANH DUC
Boolean checkEmailAlready(String email);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int createTable(HbaseObj t);", "private void processCreate() throws HsqlException {\n\n boolean unique = false;\n int tableType;\n boolean isTempTable = false;\n String token;\n\n session.checkAdmin();\n session.checkDDLWrite();\n session.setScripting(true);\n\n if (tokenizer.isGetThis(Token.T_GLOBAL)) {\n tokenizer.getThis(Token.T_TEMPORARY);\n\n isTempTable = true;\n } else if (tokenizer.isGetThis(Token.T_TEMP)) {\n isTempTable = true;\n } else if (tokenizer.isGetThis(Token.T_TEMPORARY)) {\n isTempTable = true;\n }\n\n token = tokenizer.getSimpleToken();\n\n switch (Token.get(token)) {\n\n // table\n case Token.MEMORY :\n tokenizer.getThis(Token.T_TABLE);\n case Token.TABLE :\n tableType = isTempTable ? Table.TEMP_TABLE\n : database.getDefaultTableType();\n\n processCreateTable(tableType);\n\n return;\n\n case Token.CACHED :\n if (isTempTable) {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n\n tokenizer.getThis(Token.T_TABLE);\n processCreateTable(Table.CACHED_TABLE);\n\n return;\n\n case Token.TEXT :\n if (isTempTable) {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n\n tokenizer.getThis(Token.T_TABLE);\n processCreateTable(Table.TEXT_TABLE);\n\n return;\n\n default :\n if (isTempTable) {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n }\n\n switch (Token.get(token)) {\n\n // other objects\n case Token.ALIAS :\n processCreateAlias();\n break;\n\n case Token.SEQUENCE :\n processCreateSequence();\n break;\n\n case Token.SCHEMA :\n session.setScripting(false);\n processCreateSchema();\n break;\n\n case Token.TRIGGER :\n processCreateTrigger();\n break;\n\n case Token.USER :\n processCreateUser();\n break;\n\n case Token.ROLE :\n database.getGranteeManager().addRole(getUserIdentifier());\n break;\n\n case Token.VIEW :\n processCreateView();\n break;\n\n // index\n case Token.UNIQUE :\n unique = true;\n\n tokenizer.getThis(Token.T_INDEX);\n\n //fall thru\n case Token.INDEX :\n processCreateIndex(unique);\n break;\n\n default : {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n }\n }", "void create(DataTableDef def) throws IOException;", "CreationData creationData();", "protected abstract D createData();", "FromTable createFromTable();", "public void create() {\n\t\t\n\t}", "public void create() {\n\t\t\tdb.execSQL(AGENCYDB_CREATE+\".separete,.import agency.txt agency\");\n\t\t\tdb.execSQL(STOPSDB_CREATE+\".separete,.import stop_times.txt stop_times\");\n\t\t\t\n\t\t\t// Add 2 agencies for testing\n\t\t\t\n\t\t\t\n\t\t\tdb.setVersion(DATABASE_VERSION);\n\t\t}", "HdbdtiModel createHdbdtiModel();", "HdbSequenceElements createHdbSequenceElements();", "DD createDD();", "TD createTD();", "public String createTable(){\r\n return \"CREATE TABLE Doctor \" +\r\n \"(idDoctor decimal primary key, \" +\r\n \"firstNameDoctor char(14), \" +\r\n \"lastNameDoctor char(14), \" +\r\n \"costPerVisit integer,\" +\r\n \"qualification varchar(32))\";\r\n }", "private void createCDAccountsTable() {\n\t\ttry {\n\t\t\tStatement stmt = this.conn.createStatement();\n\t\t\tstmt.executeUpdate(\"CREATE TABLE cdAccounts \"\n\t\t\t\t\t+ \"(id BIGINT GENERATED ALWAYS AS IDENTITY ( START WITH 3000000001, INCREMENT BY 1 ), \" + \"owner INT, \"\n\t\t\t\t\t+ \"term INT, \" + \"balance DOUBLE, \" + \"intRate DOUBLE, \"\n\t\t\t\t\t+ \"timeCreated BIGINT, \" + \"lastPaidInterest DOUBLE, \"\n\t\t\t\t\t+ \"dateOfLastPaidInterest BIGINT)\");\n\t\t\tconn.commit();\n\t\t\tSystem.out.println(\"Created table cdAccounts\");\n\t\t} catch (SQLException sqle) {\n\t\t\tSystem.err.println(\"Creation of cdAccounts table FAILED\");\n\t\t\tSystem.err.println(sqle);\n\t\t}\n\t}", "public void createDienst()\n\t{\n\t\twriteDb(\"INSERT INTO dienstleistung (Bezeichnung, Preis)\" + \"VALUES('\" + typ + \"', '\" + preis +\"')\", getWriteCon());\n\t\tcommitDbConnection(getWriteCon());\n\t}", "public void create(){}", "@Override\n\tpublic String createTable() {\n\t\t\t\treturn \"CREATE TABLE history_table_view(id number(8) primary key not null ,sqltext text, pointid varchar2(1024), type varchar2(100))\";\n\t}", "public static void createTable() {\n\n // Create statement\n Statement statement = null;\n try {\n statement = Database.getDatabase().getConnection().createStatement();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n // Attempt to create table\n try {\n statement.execute(\n \"CREATE TABLE \" + Constants.SANITATION_TABLE + \"(\" +\n \"requestID INT PRIMARY KEY GENERATED ALWAYS AS IDENTITY (START WITH 1, INCREMENT BY 1),\" +\n \"nodeID VARCHAR(100) References \" + Constants.LOCATION_TABLE + \" (nodeID), \" +\n \"priority VARCHAR(10), \" +\n \"status VARCHAR(100), \" +\n \"description VARCHAR(100), \" +\n \"requesterID INT REFERENCES \" + Constants.USERS_TABLE + \"(userID), \" +\n \"requestTime TIMESTAMP, \" +\n \"servicerID INT REFERENCES \" + Constants.USERS_TABLE + \"(userID), \" +\n \"claimedTime TIMESTAMP, \" +\n \"completedTime TIMESTAMP, \" +\n \"CONSTRAINT priority_enum CHECK (priority in ('LOW', 'MEDIUM', 'HIGH')), \" +\n \"CONSTRAINT status_enum CHECK (status in ('INCOMPLETE', 'COMPLETE')))\"\n );\n } catch (SQLException | NullPointerException e) {\n e.printStackTrace();\n }\n }", "BTable createBTable();", "@Override\r\n\tpublic void create() {\n\t\t\r\n\t}", "@Override\n\tpublic void create() {\n\t\t\n\t}", "public abstract Anuncio creaAnuncioTematico();", "long createDatabase(long actor, String nameToDisplay, long proteinDBType, long sizeInBytes, boolean bPublic, boolean bReversed, ExperimentCategory category);", "TABLE createTABLE();", "private void processCreateTable(int type) throws HsqlException {\n\n String token = tokenizer.getName();\n HsqlName schemaname =\n session.getSchemaHsqlNameForWrite(tokenizer.getLongNameFirst());\n\n database.schemaManager.checkUserTableNotExists(session, token,\n schemaname.name);\n\n boolean isnamequoted = tokenizer.wasQuotedIdentifier();\n int[] pkCols = null;\n int colIndex = 0;\n boolean constraint = false;\n Table t = newTable(type, token, isnamequoted, schemaname);\n\n tokenizer.getThis(Token.T_OPENBRACKET);\n\n while (true) {\n token = tokenizer.getString();\n\n switch (Token.get(token)) {\n\n case Token.CONSTRAINT :\n case Token.PRIMARY :\n case Token.FOREIGN :\n case Token.UNIQUE :\n case Token.CHECK :\n\n // fredt@users : check for quoted reserved words used as column names\n constraint = !tokenizer.wasQuotedIdentifier()\n && !tokenizer.wasLongName();\n }\n\n tokenizer.back();\n\n if (constraint) {\n break;\n }\n\n Column newcolumn = processCreateColumn();\n\n t.addColumn(newcolumn);\n\n if (newcolumn.isPrimaryKey()) {\n Trace.check(pkCols == null, Trace.SECOND_PRIMARY_KEY,\n newcolumn.columnName.name);\n\n pkCols = new int[]{ colIndex };\n }\n\n token = tokenizer.getSimpleToken();\n\n if (token.equals(Token.T_COMMA)) {\n colIndex++;\n\n continue;\n }\n\n if (token.equals(Token.T_CLOSEBRACKET)) {\n break;\n }\n\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n\n HsqlArrayList tempConstraints = processCreateConstraints(t,\n constraint, pkCols);\n\n if (tokenizer.isGetThis(Token.T_ON)) {\n if (!t.isTemp) {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, Token.T_ON);\n }\n\n tokenizer.getThis(Token.T_COMMIT);\n\n token = tokenizer.getSimpleToken();\n\n if (token.equals(Token.T_DELETE)) {}\n else if (token.equals(Token.T_PRESERVE)) {\n t.onCommitPreserve = true;\n } else {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n\n tokenizer.getThis(Token.T_ROWS);\n }\n\n try {\n session.commit();\n\n Constraint primaryConst = (Constraint) tempConstraints.get(0);\n\n t.createPrimaryKey(null, primaryConst.core.mainColArray, true);\n\n if (primaryConst.core.mainColArray != null) {\n if (primaryConst.constName == null) {\n primaryConst.constName = t.makeSysPKName();\n }\n\n Constraint newconstraint =\n new Constraint(primaryConst.constName, t,\n t.getPrimaryIndex(),\n Constraint.PRIMARY_KEY);\n\n t.addConstraint(newconstraint);\n database.schemaManager.registerConstraintName(\n primaryConst.constName.name, t.getName());\n }\n\n for (int i = 1; i < tempConstraints.size(); i++) {\n Constraint tempConst = (Constraint) tempConstraints.get(i);\n\n if (tempConst.constType == Constraint.UNIQUE) {\n TableWorks tableWorks = new TableWorks(session, t);\n\n tableWorks.createUniqueConstraint(\n tempConst.core.mainColArray, tempConst.constName);\n\n t = tableWorks.getTable();\n }\n\n if (tempConst.constType == Constraint.FOREIGN_KEY) {\n TableWorks tableWorks = new TableWorks(session, t);\n\n tableWorks.createForeignKey(tempConst.core.mainColArray,\n tempConst.core.refColArray,\n tempConst.constName,\n tempConst.core.refTable,\n tempConst.core.deleteAction,\n tempConst.core.updateAction);\n\n t = tableWorks.getTable();\n }\n\n if (tempConst.constType == Constraint.CHECK) {\n TableWorks tableWorks = new TableWorks(session, t);\n\n tableWorks.createCheckConstraint(tempConst,\n tempConst.constName);\n\n t = tableWorks.getTable();\n }\n }\n\n database.schemaManager.linkTable(t);\n } catch (HsqlException e) {\n\n// fredt@users 20020225 - comment\n// if a HsqlException is thrown while creating table, any foreign key that has\n// been created leaves it modification to the expTable in place\n// need to undo those modifications. This should not happen in practice.\n database.schemaManager.removeExportedKeys(t);\n database.schemaManager.removeIndexNames(t.tableName);\n database.schemaManager.removeConstraintNames(t.tableName);\n\n throw e;\n }\n }", "@Override\n\tpublic void create() {\n\n\t}", "public void testCreateTable() {\n LOG.info(\"Entering testCreateTable.\");\n\n // Specify the table descriptor.\n HTableDescriptor htd = new HTableDescriptor(tableName);\n\n // Set the column family name to info.\n HColumnDescriptor hcd = new HColumnDescriptor(\"info\");\n\n // Set data encoding methods,HBase provides DIFF,FAST_DIFF,PREFIX\n // and PREFIX_TREE\n hcd.setDataBlockEncoding(DataBlockEncoding.FAST_DIFF);\n\n // Set compression methods, HBase provides two default compression\n // methods:GZ and SNAPPY\n // GZ has the highest compression rate,but low compression and\n // decompression effeciency,fit for cold data\n // SNAPPY has low compression rate, but high compression and\n // decompression effeciency,fit for hot data.\n // it is advised to use SANPPY\n hcd.setCompressionType(Compression.Algorithm.SNAPPY);\n\n htd.addFamily(hcd);\n\n Admin admin = null;\n try {\n // Instantiate an Admin object.\n admin = conn.getAdmin();\n if (!admin.tableExists(tableName)) {\n LOG.info(\"Creating table...\");\n admin.createTable(htd);\n LOG.info(admin.getClusterStatus());\n LOG.info(admin.listNamespaceDescriptors());\n LOG.info(\"Table created successfully.\");\n } else {\n LOG.warn(\"table already exists\");\n }\n } catch (IOException e) {\n LOG.error(\"Create table failed.\");\n } finally {\n if (admin != null) {\n try {\n // Close the Admin object.\n admin.close();\n } catch (IOException e) {\n LOG.error(\"Failed to close admin \", e);\n }\n }\n }\n LOG.info(\"Exiting testCreateTable.\");\n }", "public CreateData() {\n\t\t\n\t\t// TODO Auto-generated constructor stub\n\t}", "boolean createTable();", "@Override\r\n public Db_db createTable (Db_table table)\r\n {\r\n Db_db db = null;\r\n String query = \"CREATE TABLE IF NOT EXISTS \"+ table.getName() + \" (\"; \r\n String primaryKeyName = null;\r\n Set<Map.Entry<String, Db_tableColumn>> tableEntries;\r\n List<String> listOfUniqueKey = Lists.newArrayList();\r\n \r\n if(curConnection_ != null)\r\n {\r\n try\r\n {\r\n tableEntries = table.getEntrySet();\r\n for(Map.Entry<String, Db_tableColumn> entry: tableEntries)\r\n {\r\n Db_tableColumn entryContent = entry.getValue();\r\n \r\n if(entryContent.isPrimary() && primaryKeyName == null)\r\n {\r\n primaryKeyName = entryContent.getName();\r\n }\r\n else if(entryContent.isPrimary() && primaryKeyName != null)\r\n {\r\n throw new NumberFormatException();\r\n }\r\n \r\n if(itsAttributeMapper_ == null)\r\n {\r\n throw new NumberFormatException();\r\n }\r\n \r\n if(entryContent.isUnique())\r\n {\r\n listOfUniqueKey.add(entryContent.getName());\r\n }\r\n \r\n String mappedAttribute = this.itsAttributeMapper_.MapAttribute(entryContent.getAttributeName());\r\n if(entryContent.getAttribute().isEnum())\r\n {\r\n mappedAttribute += entryContent.getAttribute().buildEnumValueListString();\r\n }\r\n query += entryContent.getName() + \" \" + mappedAttribute \r\n + (entryContent.isAutoIncreasmnet()?\" AUTO_INCREMENT \":\" \")\r\n + (entryContent.isUnique()?\" UNIQUE, \": \", \");\r\n }\r\n \r\n query += \"PRIMARY KEY (\" + primaryKeyName + \"));\";\r\n try (Statement sm = curConnection_.createStatement()) {\r\n sm.executeUpdate(query);\r\n db = this.curDb_;\r\n }\r\n \r\n }catch(NumberFormatException e){System.out.print(e);}\r\n catch(SQLException e){System.out.print(query);this.CurConnectionFailed();}\r\n }\r\n return db;\r\n }", "public Hoppy insert(Hoppy hoppy, IdGenerateService<Long> idGenerateService) throws DataAccessException;", "interface WithCreate extends\n SqlElasticPoolOperations.DefinitionStages.WithDatabaseDtuMin,\n SqlElasticPoolOperations.DefinitionStages.WithDatabaseDtuMax,\n SqlElasticPoolOperations.DefinitionStages.WithDtu,\n SqlElasticPoolOperations.DefinitionStages.WithStorageCapacity,\n SqlElasticPoolOperations.DefinitionStages.WithDatabase,\n Resource.DefinitionWithTags<SqlElasticPoolOperations.DefinitionStages.WithCreate>,\n Creatable<SqlElasticPool> {\n }", "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:49.404 -0500\", hash_original_method = \"CD5C82C799E78C74801FDB521CEE7324\", hash_generated_method = \"CD5C82C799E78C74801FDB521CEE7324\")\n \nContext ()\n {\n copyTables();\n }", "OrTable createOrTable();", "public abstract void create();", "DT createDT();", "@Override\n public void createSchema(Properties props)\n {\n Statement statement;\n try\n {\n statement = connection.createStatement();\n \n //Drop Indexes\n dropIndex(statement, \"CONFFRIENDSHIP_INVITEEID\", \"CONFFRIENDSHIP\");\n dropIndex(statement, \"CONFFRIENDSHIP_INVITERID\", \"CONFFRIENDSHIP\");\n dropIndex(statement, \"PENDFRIENDSHIP_INVITEEID\", \"PENDFRIENDSHIP\");\n dropIndex(statement, \"PENDFRIENDSHIP_INVITERID\", \"PENDFRIENDSHIP\");\n dropIndex(statement, \"MANIPULATION_RID\", \"MANIPULATION\");\n dropIndex(statement, \"MANIPULATION_CREATORID\", \"MANIPULATION\");\n dropIndex(statement, \"RESOURCES_WALLUSERID\", \"RESOURCES\");\n dropIndex(statement, \"RESOURCE_CREATORID\", \"RESOURCES\");\n \n //Drop Tables\n dropTable(statement, \"CONFFRIENDSHIP\");\n dropTable(statement, \"PENDFRIENDSHIP\");\n dropTable(statement, \"MANIPULATION\");\n dropTable(statement, \"RESOURCES\");\n dropTable(statement, \"USERS\");\n \n //Create Tables\n statement.executeUpdate(\"CREATE TABLE CONFFRIENDSHIP \" + \"(INVITERID INTEGER NOT NULL, \" + \"INVITEEID INTEGER NOT NULL, \" + \"PRIMARY KEY (INVITERID, INVITEEID))\");\n statement.executeUpdate(\"CREATE TABLE PENDFRIENDSHIP \" + \"(INVITERID INTEGER NOT NULL, \" + \"INVITEEID INTEGER NOT NULL, \" + \"PRIMARY KEY (INVITERID, INVITEEID))\");\n statement.executeUpdate(\"CREATE TABLE MANIPULATION \" + \"(MID INTEGER NOT NULL, \" + \"MODIFIERID INTEGER NOT NULL, \" + \"RID INTEGER NOT NULL, \" + \"CREATORID INTEGER NOT NULL, \" + \"TIMESTAMP VARCHAR(200), \" + \"TYPE VARCHAR(200), \" + \"CONTENT VARCHAR(200), \" + \"PRIMARY KEY (MID,RID))\");\n statement.executeUpdate(\"CREATE TABLE RESOURCES \" + \"(RID INTEGER NOT NULL , \" + \"CREATORID INTEGER NOT NULL, \" + \"WALLUSERID INTEGER NOT NULL, \" + \"TYPE VARCHAR(200), \" + \"BODY VARCHAR(200), \" + \"DOC VARCHAR(200), \" + \"PRIMARY KEY (RID))\");\n statement.executeUpdate(\"CREATE TABLE USERS \" + \"(USERID INTEGER NOT NULL , \" + \"USERNAME VARCHAR(200), \" + \"PW VARCHAR(200), \" + \"FNAME VARCHAR(200), \" + \"LNAME VARCHAR(200), \" + \"GENDER VARCHAR(200),\" + \"DOB VARCHAR(200), \" + \"JDATE VARCHAR(200), \" + \"LDATE VARCHAR(200), \" + \"ADDRESS VARCHAR(200),\" + \"EMAIL VARCHAR(200), \" + \"TEL VARCHAR(200), \" + \"PRIMARY KEY (USERID))\");\n \n //Add Foreign Keys\n statement.executeUpdate(\"ALTER TABLE CONFFRIENDSHIP \" + \"ADD CONSTRAINT CONFFRIENDSHIP_USERS_FK1 FOREIGN KEY (INVITERID)\" + \"REFERENCES USERS (USERID) ON DELETE CASCADE\");\n statement.executeUpdate(\"ALTER TABLE CONFFRIENDSHIP \" + \"ADD CONSTRAINT CONFFRIENDSHIP_USERS_FK2 FOREIGN KEY (INVITEEID)\" + \"REFERENCES USERS (USERID) ON DELETE NO ACTION\");\n statement.executeUpdate(\"ALTER TABLE PENDFRIENDSHIP \" + \"ADD CONSTRAINT PENDFRIENDSHIP_USERS_FK1 FOREIGN KEY (INVITERID)\" + \"REFERENCES USERS (USERID) ON DELETE CASCADE\");\n statement.executeUpdate(\"ALTER TABLE PENDFRIENDSHIP \" + \"ADD CONSTRAINT PENDFRIENDSHIP_USERS_FK2 FOREIGN KEY (INVITEEID)\" + \"REFERENCES USERS (USERID) ON DELETE NO ACTION\");\n statement.executeUpdate(\"ALTER TABLE MANIPULATION \" + \"ADD CONSTRAINT MANIPULATION_RESOURCES_FK1 FOREIGN KEY (RID)\" + \"REFERENCES RESOURCES (RID) ON DELETE CASCADE\");\n statement.executeUpdate(\"ALTER TABLE MANIPULATION \" + \"ADD CONSTRAINT MANIPULATION_USERS_FK1 FOREIGN KEY (CREATORID)\" + \"REFERENCES USERS (USERID) ON DELETE NO ACTION\");\n statement.executeUpdate(\"ALTER TABLE MANIPULATION \" + \"ADD CONSTRAINT MANIPULATION_USERS_FK2 FOREIGN KEY (MODIFIERID)\" + \"REFERENCES USERS (USERID) ON DELETE NO ACTION\");\n statement.executeUpdate(\"ALTER TABLE RESOURCES \" + \"ADD CONSTRAINT RESOURCES_USERS_FK1 FOREIGN KEY (CREATORID)\" + \"REFERENCES USERS (USERID) ON DELETE CASCADE\");\n statement.executeUpdate(\"ALTER TABLE RESOURCES \" + \"ADD CONSTRAINT RESOURCES_USERS_FK2 FOREIGN KEY (WALLUSERID)\" + \"REFERENCES USERS (USERID) ON DELETE NO ACTION\");\n \n //Create Indexes\n buildIndexes(null);\n }\n catch (SQLException ex)\n {\n Logger.getLogger(WindowsAzureClientInit.class.getName()).log(Level.SEVERE, null, ex);\n System.out.println(\"Error in creating schema!\");\n }\n }", "public void createTable() throws LRException\n\t{\n\t\tgetBackground();\n\t\tDataHRecordData myData=(DataHRecordData)getData();\n\t\t// Create a new (empty) record\n\t\tcreate(new Hashtable(),myData);\n\t\tif (myData.record==null) throw new LRException(DataRMessages.nullRecord(getName()));\n\t\ttry\n\t\t{\n\t\t\tbackground.newTransaction();\n\t\t\tmyData.record.createNewTable(background.getClient(),true);\n\t\t}\n\t\tcatch (LDBException e) { setStatus(e); }\n\t}", "public boolean createTable(String input) throws IOException{\n\t\tString orgQuery = input;\n\t\torgQuery = orgQuery.trim();\n\t\tString query = input.toLowerCase().trim();\n\t\tboolean queryFailed = false;\n\t\t//Schema Instance \n\t\tSchema currentSchema = Schema.getSchemaInstance();\n\t\tString currentSchemaName = currentSchema.getCurrentSchema();\n\n\t\t//TableSchemaManager Instance\n\t\tTableSchemaManager currentTableSchemaManager = TableSchemaManager.getTableSchemaManagerInstance();\n\n\t\t//Extracting Table name\n\t\ttableName = orgQuery.substring(query.indexOf(\"table \")+6,query.indexOf(\"(\")).trim();\n\n\t\t//Updating SCHEMA.TABLE.TBL\n\t\tif(updateInformationSchemaTable()){\n\t\t\tqueryFailed = true;\n\t\t\treturn queryFailed;\n\t\t}\n\n\t\t//Extracting Table contents\n\t\tString tableContentsWithQuotes = orgQuery.substring(orgQuery.indexOf(\"(\")+1,orgQuery.length());\n\t\tString tableContents = tableContentsWithQuotes.replace(\"))\", \")\");\n\t\ttableContents = tableContents.trim();\n\n\t\tTableSchemaManager.ordinalMap = new TreeMap<Integer,List<String>>();\n\t\tTableSchemaManager.tableMap = new TreeMap<String,TreeMap<Integer,List<String>>>();\n\t\t\n\t\t//Creating n instances of Table helper\n\t\tString[] createTableContents = tableContents.split(\"\\\\,\"); \n\t\tnoOfColumns = createTableContents.length;\n\t\tCreateTableHelper[] th = new CreateTableHelper[noOfColumns];\n\n\t\t\n\t\t//Handles single row of Create Table \n\t\tfor(int item = 0; item < noOfColumns ; item++){\n\t\t\tth[item] = new CreateTableHelper(); \n\t\t\t//To remove any leading or trailing spaces\n\t\t\tcreateTableContents[item] = createTableContents[item].trim();\n\t\t\tString columnName = createTableContents[item].substring(0, createTableContents[item].indexOf(\" \"));\n\t\t\tth[item].setColumnName(columnName);\n\n\t\t\t//Setting Primary Key\n\t\t\tString primaryKeyExp = \"(.*)[pP][rR][iI][mM][aA][rR][yY](.*)\";\n\t\t\tif (createTableContents[item].matches(primaryKeyExp))\n\t\t\t\tth[item].setPrimaryKey(true);\n\t\t\telse\n\t\t\t\tth[item].setPrimaryKey(false);\n\n\t\t\t//Setting Null Value\t\n\t\t\tString notNullExp = \"(.*)[nN][uU][lL][lL](.*)\";\n\t\t\tif (createTableContents[item].matches(notNullExp))\n\t\t\t\tth[item].setNull(true);\n\t\t\telse\n\t\t\t\tth[item].setNull(false);\n\n\t\t\t//Extracting data types \n\t\t\t//BYTE\n\t\t\tString byteExp = \"(.*)[bB][yY][tT][eE](.*)\";\n\t\t\tif (createTableContents[item].matches(byteExp)){\n\t\t\t\tth[item].setDataType(\"BYTE\");\n\t\t\t}\n\t\t\t//SHORT\n\t\t\tString shortExp = \"(.*)[sS][hH][oO][rR][tT](.*)\";\n\t\t\tif (createTableContents[item].matches(shortExp)){\n\t\t\t\tth[item].setDataType(\"SHORT\");\n\t\t\t}\n\t\t\t//INT\n\t\t\tString intExp = \"(.*)[iI][nN][tT](.*)\";\n\t\t\tif (createTableContents[item].matches(intExp)){\n\t\t\t\tth[item].setDataType(\"INT\");\n\t\t\t}\n\t\t\t//LONG\n\t\t\tString longExp = \"(.*)[lL][oO][nN][gG](.*)\";\n\t\t\tif (createTableContents[item].matches(longExp)){\n\t\t\t\tth[item].setDataType(\"LONG\");\n\t\t\t}\n\t\t\t//CHAR\n\t\t\tString charExp = \"(.*)[cC][hH][aA][rR](.*)\";\n\t\t\tif (createTableContents[item].matches(charExp)){\n\t\t\t\tString size = createTableContents[item].substring(createTableContents[item].indexOf(\"(\")+1, createTableContents[item].indexOf(\")\"));\n\t\t\t\tth[item].setDataType(\"CHAR(\" + size + \")\");\n\t\t\t}\n\t\t\t//VARCHAR\n\t\t\tString varcharExp = \"(.*)[vV][aA][rR][cC][hH][aA][rR](.*)\";\n\t\t\tif (createTableContents[item].matches(varcharExp)){\n\t\t\t\tString size = createTableContents[item].substring(createTableContents[item].indexOf(\"(\")+1, createTableContents[item].indexOf(\")\"));\n\t\t\t\tth[item].setDataType(\"VARCHAR(\" + size + \")\");\n\t\t\t}\n\t\t\t//FLOAT\n\t\t\tString floatExp = \"(.*)[fF][lL][oO][aA][tT](.*)\";\n\t\t\tif (createTableContents[item].matches(floatExp)){\n\t\t\t\tth[item].setDataType(\"FLOAT\");\t\t\t\t\n\t\t\t}\n\t\t\t//DOUBLE\n\t\t\tString doubleExp = \"(.*)[dD][oO][uU][bB][lL][eE](.*)\";\n\t\t\tif (createTableContents[item].matches(doubleExp)){\n\t\t\t\tth[item].setDataType(\"DOUBLE\");\n\t\t\t}\n\t\t\t//DATETIME\n\t\t\tString dateTimeExp = \"(.*)[dD][aA][tT][eE][tT][iI][mM][eE](.*)\";\n\t\t\tif (createTableContents[item].matches(dateTimeExp)){\n\t\t\t\tth[item].setDataType(\"DATETIME\");\n\t\t\t}\n\t\t\t//DATE\n\t\t\tString dateExp = \"(.*)[dD][aA][tT][eE](.*)\";\n\t\t\tif (createTableContents[item].matches(dateExp)){\n\t\t\t\tth[item].setDataType(\"DATE\");\n\t\t\t}\n\n\t\t\tcurrentTableSchemaManager.newTableSchema(\n\t\t\t\t\ttableName,\n\t\t\t\t\titem,\n\t\t\t\t\tth[item].getColumnName(),\n\t\t\t\t\tth[item].getDataType(),\n\t\t\t\t\tth[item].isNull(),\n\t\t\t\t\tth[item].isPrimaryKey()\n\t\t\t\t\t);\n\n\t\t\t//Updating SCHEMA.COLUMNS.TBL\n\t\t\tupdateInformationSchemaColumn(\n\t\t\t\t\tth[item].getColumnName(),\n\t\t\t\t\titem,\n\t\t\t\t\tth[item].getDataType(),\n\t\t\t\t\tth[item].isNull(),\n\t\t\t\t\tth[item].isPrimaryKey()\n\t\t\t\t\t);\n\t\t\t//Create tables to insert index\n\t\t\tString newTableIndexName = currentSchemaName + \".\" + tableName + \".\" +th[item].getColumnName()+ \".tbl.ndx\";\n\t\t\tRandomAccessFile newTableIndexFile = new RandomAccessFile(newTableIndexName, \"rw\");\n\t\t\tnewTableIndexFile.close();\n\n\t\t}\n\n\t\tTableSchemaManager.tableMap.put(tableName, TableSchemaManager.ordinalMap);\n\t\tcurrentTableSchemaManager.updateTableSchema(currentSchemaName,tableName);\n\t\t\n\t\t//Create tables to insert data \n\t\tString newTableDataName = currentSchemaName + \".\" + tableName + \".tbl\";\n\t\tRandomAccessFile newTableDataFile = new RandomAccessFile(newTableDataName, \"rw\");\n\t\tnewTableDataFile.close();\n\t\treturn queryFailed;\n\t}", "public String createDSIndex(String dsID, String dschemaID, String attriName);", "private void createStressTestControlTable() {\n Column runId = new Column(\"RUN_ID\");\n runId.setMappedType(\"INTEGER\");\n runId.setPrimaryKey(true);\n runId.setRequired(true);\n Column clientCommitSleepMs = new Column(\"CLIENT_COMMIT_SLEEP_MS\");\n clientCommitSleepMs.setMappedType(\"BIGINT\");\n Column clientCommitRows = new Column(\"CLIENT_COMMIT_ROWS\");\n clientCommitRows.setMappedType(\"BIGINT\");\n Column serverCommitSleepMs = new Column(\"SERVER_COMMIT_SLEEP_MS\");\n serverCommitSleepMs.setMappedType(\"BIGINT\");\n Column serverCommitRows = new Column(\"SERVER_COMMIT_ROWS\");\n serverCommitRows.setMappedType(\"BIGINT\");\n Column payloadColumns = new Column(\"PAYLOAD_COLUMNS\");\n payloadColumns.setMappedType(\"INTEGER\");\n Column initialSeedSize = new Column(\"INITIAL_SEED_SIZE\");\n initialSeedSize.setMappedType(\"BIGINT\");\n Column duration = new Column(\"DURATION_MINUTES\");\n duration.setMappedType(\"BIGINT\");\n\n Table table = new Table(STRESS_TEST_CONTROL, runId, clientCommitSleepMs, clientCommitRows, serverCommitSleepMs, serverCommitRows,\n payloadColumns, initialSeedSize, duration);\n engine.getDatabasePlatform().createTables(true, true, table);\n }", "@Override\r\n\tpublic void create() {\n\r\n\t}", "Statement createStatement();", "Statement createStatement();", "Statement createStatement();", "public void doCreateTable();", "@Override\n public Pipe execute(DBMS engine) throws DBxicException {\n engine.storManager.createTable(table);\n engine.catalog.saveCatalog();\n return new MessageThroughPipe(\"Table \" + table.getName() + \" successfully created\");\n }", "@Override\n public void setUp() throws SQLException {\n connection.createStatement().executeUpdate(\n \"CREATE TABLE IF NOT EXISTS \\\"ENTRY\\\" (\" +\n \"\\\"SHARED_ID\\\" SERIAL PRIMARY KEY, \" +\n \"\\\"TYPE\\\" VARCHAR, \" +\n \"\\\"VERSION\\\" INTEGER DEFAULT 1)\");\n\n connection.createStatement().executeUpdate(\n \"CREATE TABLE IF NOT EXISTS \\\"FIELD\\\" (\" +\n \"\\\"ENTRY_SHARED_ID\\\" INTEGER REFERENCES \\\"ENTRY\\\"(\\\"SHARED_ID\\\") ON DELETE CASCADE, \" +\n \"\\\"NAME\\\" VARCHAR, \" +\n \"\\\"VALUE\\\" TEXT)\");\n\n connection.createStatement().executeUpdate(\n \"CREATE TABLE IF NOT EXISTS \\\"METADATA\\\" (\"\n + \"\\\"KEY\\\" VARCHAR,\"\n + \"\\\"VALUE\\\" TEXT)\");\n }", "private void m14053d() {\n try {\n File file = new File(f18051l);\n File file2 = new File(f18052m);\n if (!file.exists()) {\n file.mkdirs();\n }\n if (!file2.exists()) {\n file2.createNewFile();\n }\n if (file2.exists()) {\n SQLiteDatabase openOrCreateDatabase = SQLiteDatabase.openOrCreateDatabase(file2, null);\n openOrCreateDatabase.execSQL(\"CREATE TABLE IF NOT EXISTS bdcltb09(id CHAR(40) PRIMARY KEY,time DOUBLE,tag DOUBLE, type DOUBLE , ac INT);\");\n openOrCreateDatabase.execSQL(\"CREATE TABLE IF NOT EXISTS wof(id CHAR(15) PRIMARY KEY,mktime DOUBLE,time DOUBLE, ac INT, bc INT, cc INT);\");\n openOrCreateDatabase.setVersion(1);\n openOrCreateDatabase.close();\n }\n this.f18053a = true;\n } catch (Exception e) {\n }\n }", "interface WithDtu {\n /**\n * Sets the total shared DTU for the SQL Azure Database Elastic Pool.\n *\n * @param dtu total shared DTU for the SQL Azure Database Elastic Pool\n * @return The next stage of the definition.\n */\n @Deprecated\n SqlElasticPoolOperations.DefinitionStages.WithCreate withDtu(int dtu);\n }", "@POST\n @Produces({\"application/json\"})\n public String createDb() throws WebApplicationException {\n HibernateEntityManager emAdm = PersistenceManager.getInstance().getEntityManagerAdmin();\n SQLQuery qCreate = emAdm.getSession().createSQLQuery(\"CREATE DATABASE test_jeff template=postgis\");\n try{\n qCreate.executeUpdate();\n }catch(SQLGrammarException e){\n System.out.println(\"Error !!\" + e.getSQLException());\n emAdm.close();\n return e.getSQLException().getLocalizedMessage();\n }\n emAdm.close();\n Map properties = new HashMap();\n //change the connection string to the new db\n properties.put(\"hibernate.connection.url\", \"jdbc:postgresql_postGIS://192.168.12.36:5432/test_jeff\");\n EntityManagerFactory emf = Persistence.createEntityManagerFactory(\"dataPU\", properties); \n return \"Yeah\";\n }", "public abstract void createTables() throws DataServiceException;", "@Override\n\tpublic void create () {\n\n\t}", "@Test\n public void shouldCreateEpiDataGathering() {\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(0));\n\n Case caze = TestEntityCreator.createCase();\n TestEntityCreator.createEpiDataGathering(caze);\n\n // Assure that the burial has been successfully created\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(1));\n }", "Udt createUdt();", "OperacionColeccion createOperacionColeccion();", "public void create(AttributeList attributeList)\n {\n\n super.create(attributeList); \n \n OADBTransaction transaction = getOADBTransaction();\n \n // DEFAULT: supplier id is obtained from the table's sequence\n Number supplierId = transaction.getSequenceValue(\"FWK_TBX_SUPPLIERS_S\");\n setSupplierId(supplierId);\n\n // DEFAULT: start date should be set to sysdate\n setStartDate(transaction.getCurrentDBDate());\n\n \n }", "Definition createDefinition();", "H1 createH1();", "private static void createDatabase(String restrictedUser) throws ArcException {\n\t\tGenericPreparedStatementBuilder query;\n\n\t\t// clean database\n\t\tquery = new GenericPreparedStatementBuilder();\n\t\tquery.append(\"DROP SCHEMA IF EXISTS \" + DataObjectService.ARC_METADATA_SCHEMA + \" CASCADE;\");\n\t\tquery.append(\"DROP SCHEMA IF EXISTS \" + testSandbox1 + \" CASCADE;\");\n\t\tquery.append(\"DROP SCHEMA IF EXISTS public CASCADE;\");\n\t\tUtilitaireDao.get(0).executeRequest(c, query);\n\t\t\n\t\tBddPatcher patcher=new BddPatcher();\n\t\tpatcher.getProperties().setGitCommitId(newVersion);\n\t\tpatcher.getProperties().setDatabaseRestrictedUsername(userWithRestrictedRights);\n\n\t\t// metadata schema creation\n\t\tpatcher.bddScript(c);\n\t\t// sandbox schema creation\n\t\tpatcher.bddScript(c, testSandbox1, testSandbox2, testSandbox8);\n\t\t\n\t}", "Operacion createOperacion();", "private synchronized String processCreate(String query) {\r\n\t\tString[] valuesCommand = query.split(\" \");\r\n\t\tif ( valuesCommand.length != 3 )\r\n\t\t\treturn \"ERROR Bad syntaxe command CREATE - Usage : CREATE id initial_solde\";\r\n\t\tString id = valuesCommand[1];\r\n\t\tif ( this.bank.existAccount(id) ) {\r\n\t\t\treturn \"ERROR Account alwready exist\";\r\n\t\t}\r\n\t\tdouble number = Double.valueOf(valuesCommand[2]);\r\n\t\tthis.bank.createAccount(id, number);\r\n\t\treturn \"OK \" + this.bank.getLastOperation(id);\r\n\t}", "public void createNewSchema() throws SQLException {\n ResultSet resultSet = databaseStatement.executeQuery(\"select count(datname) from pg_database\");\n int uniqueID = 0;\n if(resultSet.next()) {\n uniqueID = resultSet.getInt(1);\n }\n if(uniqueID != 0) {\n uniqueID++;\n databaseStatement.executeQuery(\"CREATE DATABASE OSM\"+uniqueID+\";\");\n }\n }", "int insert(Lbt72TesuryoSumDPkey record);", "@Test(timeout = 4000)\n public void test124() throws Throwable {\n DefaultDBTable defaultDBTable0 = new DefaultDBTable();\n MockPrintWriter mockPrintWriter0 = new MockPrintWriter(\"Illegal column type format: \");\n String[] stringArray0 = new String[9];\n DBUniqueConstraint dBUniqueConstraint0 = new DBUniqueConstraint(defaultDBTable0, \"66i,cw\", true, stringArray0);\n NameSpec nameSpec0 = NameSpec.ALWAYS;\n SQLUtil.renderCreateTable(defaultDBTable0, true, nameSpec0, mockPrintWriter0);\n assertEquals(\"table\", defaultDBTable0.getObjectType());\n }", "int insert(NjProductTaticsRelation record);", "public de.uni_koblenz.jgralabtest.schemas.gretl.pddsl.Chassis createChassis();", "int insert(Disease record);", "private void creates() {\n \tDBPeer.fetchTableColumns();\n \tDBPeer.fetchTableRows();\n \tDBPeer.fetchTableIndexes();\n \t\n for (int i = 0; i < creates.size(); i++) {\n creates.get(i).init();\n }\n \n DBPeer.updateTableColumns();\n DBPeer.updateTableRows();\n DBPeer.updateTableIndexes();\n }", "InstAssignIndex createInstAssignIndex();", "WithCreate withCreationData(CreationData creationData);", "@Before\n public void createAndFillTable() {\n try {\n DBhandler dBhandler = new DBhandler(h2DbConnection);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "DataCfgTableInfo createTableIfNotExists(String dataCfgOid);", "H2 createH2();", "int insert(Lbm83ChohyokanriPkey record);", "HdbSequenceModel createHdbSequenceModel();", "DL createDL();", "For createFor();", "public org.oep.cmon.dao.tlct.model.DanhMucGiayTo create(long id);", "private Builder() {\n super(org.apache.gora.cascading.test.storage.TestRow.SCHEMA$);\n }", "public void createExempleDirect(ExempleDirect exempleDirect) throws DaoException;", "int insertSelective(NjProductTaticsRelation record);", "BIG createBIG();", "private void CreateDataIngestors() throws isisicatclient.IcatException_Exception {\n Grouping dataIngestors = new Grouping();\r\n dataIngestors.name = \"DataIngestors\";\r\n dataIngestors.id = port.create(sessionId, dataIngestors);\r\n dataIngestors = (Grouping) port.search(sessionId, \"Grouping[name='DataIngestors']\").get(0);\r\n\r\n List<String> ingestorTables = port.getEntityNames();\r\n\r\n ingestorTables.remove(\"Facility\");\r\n\r\n List<EntityBaseBean> ingestorRules = new ArrayList<>();\r\n for (String table : ingestorTables) {\r\n Rule rule = new Rule();\r\n rule.grouping = dataIngestors;\r\n rule.crudFlags = \"CRUD\"; //no delete permission for ingestors\r\n rule.what = table;\r\n ingestorRules.add(rule);\r\n }\r\n port.createMany(sessionId, ingestorRules);\r\n }", "H4 createH4();", "int insert(OrgIntegralDeductRule record);", "public void createDataTable() {\r\n Log.d(TAG, \"creating table\");\r\n String queryStr = \"\";\r\n String[] colNames = {Constants.COLUMN_NAME_ACC_X, Constants.COLUMN_NAME_ACC_Y, Constants.COLUMN_NAME_ACC_Z};\r\n queryStr += \"create table if not exists \" + Constants.TABLE_NAME;\r\n queryStr += \" ( id INTEGER PRIMARY KEY AUTOINCREMENT, \";\r\n for (int i = 1; i <= 50; i++) {\r\n for (int j = 0; j < 3; j++)\r\n queryStr += colNames[j] + \"_\" + i + \" real, \";\r\n }\r\n queryStr += Constants.COLUMN_NAME_ACTIVITY + \" text );\";\r\n execute(queryStr);\r\n Log.d(TAG, \"created table\");\r\n try {\r\n ContentValues values = new ContentValues();\r\n values.put(\"id\", 0);\r\n insertRowInTable(Constants.TABLE_NAME, values);\r\n Log.d(TAG,\"created hist table\");\r\n }catch (Exception e){\r\n Log.d(TAG,Constants.TABLE_NAME + \" table already exists\");\r\n }\r\n }", "public static void main(String[] args) {\n\t\tCreateTable createTable = new CreateTable();\n\n\t\tCity city = new City();\n\t\tcity.setId(1);\n\t\tcreateTable.execute(city);\n\n\t\tProvince province = new Province();\n\t\tprovince.setId(1);\n\t\tcreateTable.execute(province);\n\n\t\tTown town = new Town();\n\t\ttown.setId(1);\n\t\tcreateTable.execute(town);\n\n\t\tDetail detail = new Detail();\n\t\tdetail.setId(1);\n\t\tcreateTable.execute(detail);\n\n\t\tOrder order = new Order();\n\t\torder.setId(1);\n\t\tcreateTable.execute(order);\n\n\t\tBrand2 brand2 = new Brand2();\n\t\tbrand2.setId(1);\n\t\tcreateTable.execute(brand2);\n\n\t\tColor color = new Color();\n\t\tcolor.setId(1);\n\t\tcreateTable.execute(color);\n\n\t\tFeature feature = new Feature();\n\t\tfeature.setId(1);\n\t\tcreateTable.execute(feature);\n\n\t\tImg img = new Img();\n\t\timg.setId(1);\n\t\tcreateTable.execute(img);\n\n\t\tSku sku = new Sku();\n\t\tsku.setId(1);\n\t\tcreateTable.execute(sku);\n\n\t\tType type = new Type();\n\t\ttype.setId(1);\n\t\tcreateTable.execute(type);\n\n\t\tAddr addr = new Addr();\n\t\taddr.setId(1);\n\t\tcreateTable.execute(addr);\n\t\tcreateTable.execute(new Buyer());\n\n\t\t// 商品编号 商品名称 图片 新品 热卖 推荐 上下架 操作选项\n\t\tProduct product = new Product();\n\t\tproduct.setId(001);\n\t\tproduct.setNo(UUID.randomUUID().toString());\n\t\tproduct.setName(\"依琦莲2014瑜伽服套装新款 瑜珈健身服三件套 广场舞蹈服装 女瑜伽服送胸垫 长袖紫色\");\n\t\tproduct.setWeight(56.00);\n\t\tproduct.setIsNew(1); // 1是 0否\n\t\tproduct.setIsHot(1);\n\t\tproduct.setCreateTime(new Date());\n\t\tproduct.setCheckUserId(\"\");\n\t\tproduct.setCheckTime(new Date());\n\t\tproduct.setCreateUserId(\"\");\n\t\tproduct.setIsShow(1);\n\t\tproduct.setIsDel(1);\n\t\tproduct.setTypeId(1);\n\t\tproduct.setBrandId(1);\n\t\tproduct.setKeywords(\"\");\n\t\tproduct.setSales(36);\n\t\tproduct.setDescription(\"不是东西\");\n\t\tproduct.setPackageList(\"\");\n\t\tproduct.setFeature(\"头角狰狞\");\n\t\tproduct.setColor(\"blue\");\n\t\tproduct.setSize(\"L\"); // S,L,XXL\n\t\tcreateTable.execute(product);\n\n\t\t// insert into\n\t\t// Product(id,no,name,weight,isNew,isHot,sales,description,feature,size)value(1,\"11xzc3568\",\"依琦莲2014瑜伽服套装新款女瑜伽服送胸垫\n\t\t// 长袖紫色\",36.12,1,1,110,\"不是东西\",\"头角狰狞\",\"blue\",\"L\");\n\n\t\tEmployee employee = new Employee();\n\t\temployee.setId(1);\n\t\tcreateTable.execute(employee);\n\n\t}", "Vaisseau_ordonneeLaPlusHaute createVaisseau_ordonneeLaPlusHaute();", "private void createCheckingAccountsTable() {\n\t\ttry {\n\t\t\tStatement stmt = this.conn.createStatement();\n\t\t\tstmt.executeUpdate(\"CREATE TABLE checkingAccounts \"\n\t\t\t\t\t+ \"(id BIGINT GENERATED ALWAYS AS IDENTITY ( START WITH 1000000001, INCREMENT BY 1 ), \" + \"owner INT, \"\n\t\t\t\t\t+ \"balance DOUBLE, \" + \"intRate DOUBLE, \"\n\t\t\t\t\t+ \"timeCreated BIGINT, \" + \"lastPaidInterest DOUBLE, \"\n\t\t\t\t\t+ \"dateOfLastPaidInterest BIGINT)\");\n\t\t\tconn.commit();\n\t\t\tSystem.out.println(\"Created table checkingAccounts\");\n\t\t} catch (SQLException sqle) {\n\t\t\tSystem.err.println(\"Creation of checkingAccounts table FAILED\");\n\t\t\tSystem.err.println(sqle);\n\t\t}\n\t}", "@Ignore\n @Test\n public void testCreateIndex() {\n System.out.println(\"createIndex\");\n Util.commonServiceIPs=\"127.0.0.1\";\n \n EntityManager em=Util.getEntityManagerFactory(100).createEntityManager();\n EntityManager platformEm = Util.getPlatformEntityManagerFactory().createEntityManager();\n \n Client client = ESUtil.getClient(em,platformEm,1,false);\n \n RuntimeContext.dataobjectTypes = Util.getDataobjectTypes();\n String indexName = \"test000000\";\n try {\n ESUtil.createIndex(platformEm, client, indexName, true);\n }\n catch(Exception e)\n {\n \n }\n \n\n }", "public void createVirtualTable(){\n\n\t\t\n\t\tif(DBHandler.getConnection()==null){\n\t\t\treturn;\n\t\t}\n\n\t\tif(DBHandler.tableExists(name())){\n\t\t\treturn;\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tStatement s = DBHandler.getConnection().createStatement();\n\t\t\ts.execute(\"create virtual table \"+name()+\" using fts4(\"+struct()+\")\");\n\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\tMainFrame.print(e.getMessage());\n\t\t}\n\t}", "public int create (Section section) throws DataAccessException;", "protected abstract void createAttributes();", "private MetaSparqlRequest createInsertMT1() {\n\t\tString sparqlStr = \"\"+\n\t\t\t\t\"PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>\\r\\n\" + \n\t\t\t\t\"PREFIX ub: \"+_ontology+\"\\r\\n\" + \n\t\t\t\t\"INSERT DATA { GRAPH \"+_graph+\" { \"+\n\t\t\t\tbuilderBindInsert\n\t\t\t\t+\" } }\";\n\t\t\n\t\tSparqlObj sparql= new SparqlObj(sparqlStr) ;\n\t\tEndPoint endPointHost= new EndPoint(_protocol,_host,_port,\"/update\");\n\t\tMetaSparqlRequest msr = new MetaSparqlRequest(new SparqlRequest(sparql,endPointHost));\n\t\tmsr.setTripleInsert(createTripleBaseMT1());\n\t\treturn msr;\n\t}", "public void createTables(){\n Map<String, String> name_type_map = new HashMap<>();\n List<String> primaryKey = new ArrayList<>();\n try {\n name_type_map.put(KEY_SINK_NAME, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_SINK_ADDRESS, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_SINK_DETAIL, MyDatabase.TYPE_VARCHAR);\n primaryKey.add(KEY_SINK_ADDRESS);\n myDatabase.createTable(TABLE_SINK, name_type_map, primaryKey, null);\n }catch (MySQLException e){ //数据表已存在\n e.print();\n }\n try {\n name_type_map.clear();\n name_type_map.put(KEY_NODE_NAME, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_PARENT, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_DETAIL, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_ADDRESS,MyDatabase.TYPE_VARCHAR);\n primaryKey.clear();\n primaryKey.add(KEY_NODE_PARENT);\n primaryKey.add(KEY_NODE_ADDRESS);\n myDatabase.createTable(TABLE_NODE, name_type_map, primaryKey, null);\n }catch (MySQLException e){\n e.print();\n }\n\n try {\n name_type_map.clear();\n name_type_map.put(KEY_NODE_ADDRESS, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_PARENT, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_DATA_TIME, MyDatabase.TYPE_TIMESTAMP);\n name_type_map.put(KEY_DATA_VAL, MyDatabase.TYPE_FLOAT);\n primaryKey.clear();\n primaryKey.add(KEY_DATA_TIME);\n primaryKey.add(KEY_NODE_ADDRESS);\n primaryKey.add(KEY_NODE_PARENT);\n myDatabase.createTable(TABLE_DATA, name_type_map, primaryKey, null);\n }catch (MySQLException e) {\n e.print();\n }\n }", "int insert(ec_environment record);", "public void setup() throws SQLException {\n // Create ACARS table\n final String createTableSQL = \"CREATE TABLE IF NOT EXISTS ACARS (\"\n + \"date DATE, time TIME, frequency CHAR(7), \"\n + \"registration VARCHAR(7), flight CHAR(6), \"\n + \"mode CHAR, label CHAR(2), blockId CHAR, msgId CHAR(4), \"\n + \"text VARCHAR(255), \"\n + \"PRIMARY KEY (date, registration, flight, mode, label, blockId, msgId), \"\n + \"INDEX datetime_idx (date, time), \"\n + \"INDEX registration_idx (registration), \"\n + \"INDEX flight_idx (flight)\"\n + \")\";\n\n final Statement createTableStmt = connection.createStatement();\n createTableStmt.execute(createTableSQL);\n }", "TableInstance createTableInstance();", "private String createTableSQL()\n\t{\n\t\tStringBuffer str = new StringBuffer();\n\n\t\t// Keep track of the list of fields\n\t\tList<String> listFields = new ArrayList<String>();\n\n\t\t// Table command\n\t\tstr.append(\"CREATE TABLE \" + getFullPath() + \"( \");\n\t\tstr.append(createStandardGZFields());\n\n\t\t// Loop through all InputFields\n\t\tfor (InputFieldSet fieldSet : function.getInputFieldSets())\n\t\t{\n\t\t\tfor (InputField inputField : fieldSet.getInputFields())\n\t\t\t{\n\t\t\t\t// Phase 2 does not support repeating fields being journalled\n\t\t\t\tif (!Field.isRepeating(inputField))\n\t\t\t\t{\n\t\t\t\t\t// Field\n\t\t\t\t\tString fieldName = SQLToolbox.cvtToSQLFieldName(inputField.getId());\n\n\t\t\t\t\t// add if not yet existing\n\t\t\t\t\tif (listFields.indexOf(fieldName) == -1)\n\t\t\t\t\t{\n\t\t\t\t\t\tstr.append(\", \");\n\t\t\t\t\t\tString fieldDataType = inputField.getDataType();\n\t\t\t\t\t\tString fieldType = SQLToolbox.cvtToSQLFieldType(fieldDataType, inputField.getSize(), inputField\n\t\t\t\t\t\t\t\t\t\t.getDecimals());\n\t\t\t\t\t\tString fieldDefault = SQLToolbox.cvtToSQLDefault(fieldDataType);\n\t\t\t\t\t\tstr.append(fieldName + \" \" + fieldType + \" \" + \" not null default \" + fieldDefault);\n\t\t\t\t\t\tlistFields.add(fieldName);\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// End\n\t\tstr.append(\" ) \");\n\t\t// RCDFMT \" + getJournalRcdName());\n\n\t\treturn str.toString();\n\t}", "public org.oep.cmon.dao.dvc.model.ThuTuc2GiayTo create(long id);" ]
[ "0.6137034", "0.6020893", "0.5953024", "0.5871004", "0.58520657", "0.5824135", "0.5783128", "0.5781292", "0.5779935", "0.5768486", "0.57018137", "0.569296", "0.5677845", "0.566757", "0.56516117", "0.5639093", "0.56084186", "0.5601316", "0.55988264", "0.5587084", "0.5586368", "0.5579563", "0.55671966", "0.5562383", "0.55537105", "0.55511224", "0.5550222", "0.5547236", "0.55009055", "0.54889506", "0.5482187", "0.54807544", "0.5465443", "0.5454913", "0.54468626", "0.5434606", "0.5426381", "0.54197514", "0.5414243", "0.54073745", "0.5402808", "0.5390703", "0.5390526", "0.5390526", "0.5390526", "0.538945", "0.53878444", "0.53796816", "0.5375914", "0.53748345", "0.53730184", "0.5365049", "0.5364833", "0.5364805", "0.536257", "0.5361029", "0.5360632", "0.53598887", "0.5350994", "0.5339128", "0.5338244", "0.53296435", "0.5321595", "0.5320979", "0.53194505", "0.5318698", "0.5313326", "0.53126156", "0.53099495", "0.5306004", "0.5300889", "0.5293614", "0.529321", "0.52883255", "0.5281361", "0.5281042", "0.527843", "0.5270345", "0.526982", "0.52697945", "0.52608657", "0.5259804", "0.52563196", "0.5249798", "0.5247741", "0.5239433", "0.5224713", "0.5224455", "0.5222238", "0.5221105", "0.521778", "0.5213034", "0.5211071", "0.52098143", "0.5208245", "0.5207931", "0.52069414", "0.5205663", "0.52015704", "0.5196995", "0.5195414" ]
0.0
-1
CREATE BY ANH DUC
void save(Account account);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int createTable(HbaseObj t);", "private void processCreate() throws HsqlException {\n\n boolean unique = false;\n int tableType;\n boolean isTempTable = false;\n String token;\n\n session.checkAdmin();\n session.checkDDLWrite();\n session.setScripting(true);\n\n if (tokenizer.isGetThis(Token.T_GLOBAL)) {\n tokenizer.getThis(Token.T_TEMPORARY);\n\n isTempTable = true;\n } else if (tokenizer.isGetThis(Token.T_TEMP)) {\n isTempTable = true;\n } else if (tokenizer.isGetThis(Token.T_TEMPORARY)) {\n isTempTable = true;\n }\n\n token = tokenizer.getSimpleToken();\n\n switch (Token.get(token)) {\n\n // table\n case Token.MEMORY :\n tokenizer.getThis(Token.T_TABLE);\n case Token.TABLE :\n tableType = isTempTable ? Table.TEMP_TABLE\n : database.getDefaultTableType();\n\n processCreateTable(tableType);\n\n return;\n\n case Token.CACHED :\n if (isTempTable) {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n\n tokenizer.getThis(Token.T_TABLE);\n processCreateTable(Table.CACHED_TABLE);\n\n return;\n\n case Token.TEXT :\n if (isTempTable) {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n\n tokenizer.getThis(Token.T_TABLE);\n processCreateTable(Table.TEXT_TABLE);\n\n return;\n\n default :\n if (isTempTable) {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n }\n\n switch (Token.get(token)) {\n\n // other objects\n case Token.ALIAS :\n processCreateAlias();\n break;\n\n case Token.SEQUENCE :\n processCreateSequence();\n break;\n\n case Token.SCHEMA :\n session.setScripting(false);\n processCreateSchema();\n break;\n\n case Token.TRIGGER :\n processCreateTrigger();\n break;\n\n case Token.USER :\n processCreateUser();\n break;\n\n case Token.ROLE :\n database.getGranteeManager().addRole(getUserIdentifier());\n break;\n\n case Token.VIEW :\n processCreateView();\n break;\n\n // index\n case Token.UNIQUE :\n unique = true;\n\n tokenizer.getThis(Token.T_INDEX);\n\n //fall thru\n case Token.INDEX :\n processCreateIndex(unique);\n break;\n\n default : {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n }\n }", "void create(DataTableDef def) throws IOException;", "CreationData creationData();", "protected abstract D createData();", "FromTable createFromTable();", "public void create() {\n\t\t\n\t}", "public void create() {\n\t\t\tdb.execSQL(AGENCYDB_CREATE+\".separete,.import agency.txt agency\");\n\t\t\tdb.execSQL(STOPSDB_CREATE+\".separete,.import stop_times.txt stop_times\");\n\t\t\t\n\t\t\t// Add 2 agencies for testing\n\t\t\t\n\t\t\t\n\t\t\tdb.setVersion(DATABASE_VERSION);\n\t\t}", "HdbdtiModel createHdbdtiModel();", "HdbSequenceElements createHdbSequenceElements();", "DD createDD();", "TD createTD();", "public String createTable(){\r\n return \"CREATE TABLE Doctor \" +\r\n \"(idDoctor decimal primary key, \" +\r\n \"firstNameDoctor char(14), \" +\r\n \"lastNameDoctor char(14), \" +\r\n \"costPerVisit integer,\" +\r\n \"qualification varchar(32))\";\r\n }", "private void createCDAccountsTable() {\n\t\ttry {\n\t\t\tStatement stmt = this.conn.createStatement();\n\t\t\tstmt.executeUpdate(\"CREATE TABLE cdAccounts \"\n\t\t\t\t\t+ \"(id BIGINT GENERATED ALWAYS AS IDENTITY ( START WITH 3000000001, INCREMENT BY 1 ), \" + \"owner INT, \"\n\t\t\t\t\t+ \"term INT, \" + \"balance DOUBLE, \" + \"intRate DOUBLE, \"\n\t\t\t\t\t+ \"timeCreated BIGINT, \" + \"lastPaidInterest DOUBLE, \"\n\t\t\t\t\t+ \"dateOfLastPaidInterest BIGINT)\");\n\t\t\tconn.commit();\n\t\t\tSystem.out.println(\"Created table cdAccounts\");\n\t\t} catch (SQLException sqle) {\n\t\t\tSystem.err.println(\"Creation of cdAccounts table FAILED\");\n\t\t\tSystem.err.println(sqle);\n\t\t}\n\t}", "public void createDienst()\n\t{\n\t\twriteDb(\"INSERT INTO dienstleistung (Bezeichnung, Preis)\" + \"VALUES('\" + typ + \"', '\" + preis +\"')\", getWriteCon());\n\t\tcommitDbConnection(getWriteCon());\n\t}", "public void create(){}", "@Override\n\tpublic String createTable() {\n\t\t\t\treturn \"CREATE TABLE history_table_view(id number(8) primary key not null ,sqltext text, pointid varchar2(1024), type varchar2(100))\";\n\t}", "public static void createTable() {\n\n // Create statement\n Statement statement = null;\n try {\n statement = Database.getDatabase().getConnection().createStatement();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n // Attempt to create table\n try {\n statement.execute(\n \"CREATE TABLE \" + Constants.SANITATION_TABLE + \"(\" +\n \"requestID INT PRIMARY KEY GENERATED ALWAYS AS IDENTITY (START WITH 1, INCREMENT BY 1),\" +\n \"nodeID VARCHAR(100) References \" + Constants.LOCATION_TABLE + \" (nodeID), \" +\n \"priority VARCHAR(10), \" +\n \"status VARCHAR(100), \" +\n \"description VARCHAR(100), \" +\n \"requesterID INT REFERENCES \" + Constants.USERS_TABLE + \"(userID), \" +\n \"requestTime TIMESTAMP, \" +\n \"servicerID INT REFERENCES \" + Constants.USERS_TABLE + \"(userID), \" +\n \"claimedTime TIMESTAMP, \" +\n \"completedTime TIMESTAMP, \" +\n \"CONSTRAINT priority_enum CHECK (priority in ('LOW', 'MEDIUM', 'HIGH')), \" +\n \"CONSTRAINT status_enum CHECK (status in ('INCOMPLETE', 'COMPLETE')))\"\n );\n } catch (SQLException | NullPointerException e) {\n e.printStackTrace();\n }\n }", "BTable createBTable();", "@Override\r\n\tpublic void create() {\n\t\t\r\n\t}", "@Override\n\tpublic void create() {\n\t\t\n\t}", "public abstract Anuncio creaAnuncioTematico();", "long createDatabase(long actor, String nameToDisplay, long proteinDBType, long sizeInBytes, boolean bPublic, boolean bReversed, ExperimentCategory category);", "TABLE createTABLE();", "private void processCreateTable(int type) throws HsqlException {\n\n String token = tokenizer.getName();\n HsqlName schemaname =\n session.getSchemaHsqlNameForWrite(tokenizer.getLongNameFirst());\n\n database.schemaManager.checkUserTableNotExists(session, token,\n schemaname.name);\n\n boolean isnamequoted = tokenizer.wasQuotedIdentifier();\n int[] pkCols = null;\n int colIndex = 0;\n boolean constraint = false;\n Table t = newTable(type, token, isnamequoted, schemaname);\n\n tokenizer.getThis(Token.T_OPENBRACKET);\n\n while (true) {\n token = tokenizer.getString();\n\n switch (Token.get(token)) {\n\n case Token.CONSTRAINT :\n case Token.PRIMARY :\n case Token.FOREIGN :\n case Token.UNIQUE :\n case Token.CHECK :\n\n // fredt@users : check for quoted reserved words used as column names\n constraint = !tokenizer.wasQuotedIdentifier()\n && !tokenizer.wasLongName();\n }\n\n tokenizer.back();\n\n if (constraint) {\n break;\n }\n\n Column newcolumn = processCreateColumn();\n\n t.addColumn(newcolumn);\n\n if (newcolumn.isPrimaryKey()) {\n Trace.check(pkCols == null, Trace.SECOND_PRIMARY_KEY,\n newcolumn.columnName.name);\n\n pkCols = new int[]{ colIndex };\n }\n\n token = tokenizer.getSimpleToken();\n\n if (token.equals(Token.T_COMMA)) {\n colIndex++;\n\n continue;\n }\n\n if (token.equals(Token.T_CLOSEBRACKET)) {\n break;\n }\n\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n\n HsqlArrayList tempConstraints = processCreateConstraints(t,\n constraint, pkCols);\n\n if (tokenizer.isGetThis(Token.T_ON)) {\n if (!t.isTemp) {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, Token.T_ON);\n }\n\n tokenizer.getThis(Token.T_COMMIT);\n\n token = tokenizer.getSimpleToken();\n\n if (token.equals(Token.T_DELETE)) {}\n else if (token.equals(Token.T_PRESERVE)) {\n t.onCommitPreserve = true;\n } else {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n\n tokenizer.getThis(Token.T_ROWS);\n }\n\n try {\n session.commit();\n\n Constraint primaryConst = (Constraint) tempConstraints.get(0);\n\n t.createPrimaryKey(null, primaryConst.core.mainColArray, true);\n\n if (primaryConst.core.mainColArray != null) {\n if (primaryConst.constName == null) {\n primaryConst.constName = t.makeSysPKName();\n }\n\n Constraint newconstraint =\n new Constraint(primaryConst.constName, t,\n t.getPrimaryIndex(),\n Constraint.PRIMARY_KEY);\n\n t.addConstraint(newconstraint);\n database.schemaManager.registerConstraintName(\n primaryConst.constName.name, t.getName());\n }\n\n for (int i = 1; i < tempConstraints.size(); i++) {\n Constraint tempConst = (Constraint) tempConstraints.get(i);\n\n if (tempConst.constType == Constraint.UNIQUE) {\n TableWorks tableWorks = new TableWorks(session, t);\n\n tableWorks.createUniqueConstraint(\n tempConst.core.mainColArray, tempConst.constName);\n\n t = tableWorks.getTable();\n }\n\n if (tempConst.constType == Constraint.FOREIGN_KEY) {\n TableWorks tableWorks = new TableWorks(session, t);\n\n tableWorks.createForeignKey(tempConst.core.mainColArray,\n tempConst.core.refColArray,\n tempConst.constName,\n tempConst.core.refTable,\n tempConst.core.deleteAction,\n tempConst.core.updateAction);\n\n t = tableWorks.getTable();\n }\n\n if (tempConst.constType == Constraint.CHECK) {\n TableWorks tableWorks = new TableWorks(session, t);\n\n tableWorks.createCheckConstraint(tempConst,\n tempConst.constName);\n\n t = tableWorks.getTable();\n }\n }\n\n database.schemaManager.linkTable(t);\n } catch (HsqlException e) {\n\n// fredt@users 20020225 - comment\n// if a HsqlException is thrown while creating table, any foreign key that has\n// been created leaves it modification to the expTable in place\n// need to undo those modifications. This should not happen in practice.\n database.schemaManager.removeExportedKeys(t);\n database.schemaManager.removeIndexNames(t.tableName);\n database.schemaManager.removeConstraintNames(t.tableName);\n\n throw e;\n }\n }", "@Override\n\tpublic void create() {\n\n\t}", "public void testCreateTable() {\n LOG.info(\"Entering testCreateTable.\");\n\n // Specify the table descriptor.\n HTableDescriptor htd = new HTableDescriptor(tableName);\n\n // Set the column family name to info.\n HColumnDescriptor hcd = new HColumnDescriptor(\"info\");\n\n // Set data encoding methods,HBase provides DIFF,FAST_DIFF,PREFIX\n // and PREFIX_TREE\n hcd.setDataBlockEncoding(DataBlockEncoding.FAST_DIFF);\n\n // Set compression methods, HBase provides two default compression\n // methods:GZ and SNAPPY\n // GZ has the highest compression rate,but low compression and\n // decompression effeciency,fit for cold data\n // SNAPPY has low compression rate, but high compression and\n // decompression effeciency,fit for hot data.\n // it is advised to use SANPPY\n hcd.setCompressionType(Compression.Algorithm.SNAPPY);\n\n htd.addFamily(hcd);\n\n Admin admin = null;\n try {\n // Instantiate an Admin object.\n admin = conn.getAdmin();\n if (!admin.tableExists(tableName)) {\n LOG.info(\"Creating table...\");\n admin.createTable(htd);\n LOG.info(admin.getClusterStatus());\n LOG.info(admin.listNamespaceDescriptors());\n LOG.info(\"Table created successfully.\");\n } else {\n LOG.warn(\"table already exists\");\n }\n } catch (IOException e) {\n LOG.error(\"Create table failed.\");\n } finally {\n if (admin != null) {\n try {\n // Close the Admin object.\n admin.close();\n } catch (IOException e) {\n LOG.error(\"Failed to close admin \", e);\n }\n }\n }\n LOG.info(\"Exiting testCreateTable.\");\n }", "public CreateData() {\n\t\t\n\t\t// TODO Auto-generated constructor stub\n\t}", "boolean createTable();", "@Override\r\n public Db_db createTable (Db_table table)\r\n {\r\n Db_db db = null;\r\n String query = \"CREATE TABLE IF NOT EXISTS \"+ table.getName() + \" (\"; \r\n String primaryKeyName = null;\r\n Set<Map.Entry<String, Db_tableColumn>> tableEntries;\r\n List<String> listOfUniqueKey = Lists.newArrayList();\r\n \r\n if(curConnection_ != null)\r\n {\r\n try\r\n {\r\n tableEntries = table.getEntrySet();\r\n for(Map.Entry<String, Db_tableColumn> entry: tableEntries)\r\n {\r\n Db_tableColumn entryContent = entry.getValue();\r\n \r\n if(entryContent.isPrimary() && primaryKeyName == null)\r\n {\r\n primaryKeyName = entryContent.getName();\r\n }\r\n else if(entryContent.isPrimary() && primaryKeyName != null)\r\n {\r\n throw new NumberFormatException();\r\n }\r\n \r\n if(itsAttributeMapper_ == null)\r\n {\r\n throw new NumberFormatException();\r\n }\r\n \r\n if(entryContent.isUnique())\r\n {\r\n listOfUniqueKey.add(entryContent.getName());\r\n }\r\n \r\n String mappedAttribute = this.itsAttributeMapper_.MapAttribute(entryContent.getAttributeName());\r\n if(entryContent.getAttribute().isEnum())\r\n {\r\n mappedAttribute += entryContent.getAttribute().buildEnumValueListString();\r\n }\r\n query += entryContent.getName() + \" \" + mappedAttribute \r\n + (entryContent.isAutoIncreasmnet()?\" AUTO_INCREMENT \":\" \")\r\n + (entryContent.isUnique()?\" UNIQUE, \": \", \");\r\n }\r\n \r\n query += \"PRIMARY KEY (\" + primaryKeyName + \"));\";\r\n try (Statement sm = curConnection_.createStatement()) {\r\n sm.executeUpdate(query);\r\n db = this.curDb_;\r\n }\r\n \r\n }catch(NumberFormatException e){System.out.print(e);}\r\n catch(SQLException e){System.out.print(query);this.CurConnectionFailed();}\r\n }\r\n return db;\r\n }", "public Hoppy insert(Hoppy hoppy, IdGenerateService<Long> idGenerateService) throws DataAccessException;", "interface WithCreate extends\n SqlElasticPoolOperations.DefinitionStages.WithDatabaseDtuMin,\n SqlElasticPoolOperations.DefinitionStages.WithDatabaseDtuMax,\n SqlElasticPoolOperations.DefinitionStages.WithDtu,\n SqlElasticPoolOperations.DefinitionStages.WithStorageCapacity,\n SqlElasticPoolOperations.DefinitionStages.WithDatabase,\n Resource.DefinitionWithTags<SqlElasticPoolOperations.DefinitionStages.WithCreate>,\n Creatable<SqlElasticPool> {\n }", "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:49.404 -0500\", hash_original_method = \"CD5C82C799E78C74801FDB521CEE7324\", hash_generated_method = \"CD5C82C799E78C74801FDB521CEE7324\")\n \nContext ()\n {\n copyTables();\n }", "OrTable createOrTable();", "public abstract void create();", "DT createDT();", "@Override\n public void createSchema(Properties props)\n {\n Statement statement;\n try\n {\n statement = connection.createStatement();\n \n //Drop Indexes\n dropIndex(statement, \"CONFFRIENDSHIP_INVITEEID\", \"CONFFRIENDSHIP\");\n dropIndex(statement, \"CONFFRIENDSHIP_INVITERID\", \"CONFFRIENDSHIP\");\n dropIndex(statement, \"PENDFRIENDSHIP_INVITEEID\", \"PENDFRIENDSHIP\");\n dropIndex(statement, \"PENDFRIENDSHIP_INVITERID\", \"PENDFRIENDSHIP\");\n dropIndex(statement, \"MANIPULATION_RID\", \"MANIPULATION\");\n dropIndex(statement, \"MANIPULATION_CREATORID\", \"MANIPULATION\");\n dropIndex(statement, \"RESOURCES_WALLUSERID\", \"RESOURCES\");\n dropIndex(statement, \"RESOURCE_CREATORID\", \"RESOURCES\");\n \n //Drop Tables\n dropTable(statement, \"CONFFRIENDSHIP\");\n dropTable(statement, \"PENDFRIENDSHIP\");\n dropTable(statement, \"MANIPULATION\");\n dropTable(statement, \"RESOURCES\");\n dropTable(statement, \"USERS\");\n \n //Create Tables\n statement.executeUpdate(\"CREATE TABLE CONFFRIENDSHIP \" + \"(INVITERID INTEGER NOT NULL, \" + \"INVITEEID INTEGER NOT NULL, \" + \"PRIMARY KEY (INVITERID, INVITEEID))\");\n statement.executeUpdate(\"CREATE TABLE PENDFRIENDSHIP \" + \"(INVITERID INTEGER NOT NULL, \" + \"INVITEEID INTEGER NOT NULL, \" + \"PRIMARY KEY (INVITERID, INVITEEID))\");\n statement.executeUpdate(\"CREATE TABLE MANIPULATION \" + \"(MID INTEGER NOT NULL, \" + \"MODIFIERID INTEGER NOT NULL, \" + \"RID INTEGER NOT NULL, \" + \"CREATORID INTEGER NOT NULL, \" + \"TIMESTAMP VARCHAR(200), \" + \"TYPE VARCHAR(200), \" + \"CONTENT VARCHAR(200), \" + \"PRIMARY KEY (MID,RID))\");\n statement.executeUpdate(\"CREATE TABLE RESOURCES \" + \"(RID INTEGER NOT NULL , \" + \"CREATORID INTEGER NOT NULL, \" + \"WALLUSERID INTEGER NOT NULL, \" + \"TYPE VARCHAR(200), \" + \"BODY VARCHAR(200), \" + \"DOC VARCHAR(200), \" + \"PRIMARY KEY (RID))\");\n statement.executeUpdate(\"CREATE TABLE USERS \" + \"(USERID INTEGER NOT NULL , \" + \"USERNAME VARCHAR(200), \" + \"PW VARCHAR(200), \" + \"FNAME VARCHAR(200), \" + \"LNAME VARCHAR(200), \" + \"GENDER VARCHAR(200),\" + \"DOB VARCHAR(200), \" + \"JDATE VARCHAR(200), \" + \"LDATE VARCHAR(200), \" + \"ADDRESS VARCHAR(200),\" + \"EMAIL VARCHAR(200), \" + \"TEL VARCHAR(200), \" + \"PRIMARY KEY (USERID))\");\n \n //Add Foreign Keys\n statement.executeUpdate(\"ALTER TABLE CONFFRIENDSHIP \" + \"ADD CONSTRAINT CONFFRIENDSHIP_USERS_FK1 FOREIGN KEY (INVITERID)\" + \"REFERENCES USERS (USERID) ON DELETE CASCADE\");\n statement.executeUpdate(\"ALTER TABLE CONFFRIENDSHIP \" + \"ADD CONSTRAINT CONFFRIENDSHIP_USERS_FK2 FOREIGN KEY (INVITEEID)\" + \"REFERENCES USERS (USERID) ON DELETE NO ACTION\");\n statement.executeUpdate(\"ALTER TABLE PENDFRIENDSHIP \" + \"ADD CONSTRAINT PENDFRIENDSHIP_USERS_FK1 FOREIGN KEY (INVITERID)\" + \"REFERENCES USERS (USERID) ON DELETE CASCADE\");\n statement.executeUpdate(\"ALTER TABLE PENDFRIENDSHIP \" + \"ADD CONSTRAINT PENDFRIENDSHIP_USERS_FK2 FOREIGN KEY (INVITEEID)\" + \"REFERENCES USERS (USERID) ON DELETE NO ACTION\");\n statement.executeUpdate(\"ALTER TABLE MANIPULATION \" + \"ADD CONSTRAINT MANIPULATION_RESOURCES_FK1 FOREIGN KEY (RID)\" + \"REFERENCES RESOURCES (RID) ON DELETE CASCADE\");\n statement.executeUpdate(\"ALTER TABLE MANIPULATION \" + \"ADD CONSTRAINT MANIPULATION_USERS_FK1 FOREIGN KEY (CREATORID)\" + \"REFERENCES USERS (USERID) ON DELETE NO ACTION\");\n statement.executeUpdate(\"ALTER TABLE MANIPULATION \" + \"ADD CONSTRAINT MANIPULATION_USERS_FK2 FOREIGN KEY (MODIFIERID)\" + \"REFERENCES USERS (USERID) ON DELETE NO ACTION\");\n statement.executeUpdate(\"ALTER TABLE RESOURCES \" + \"ADD CONSTRAINT RESOURCES_USERS_FK1 FOREIGN KEY (CREATORID)\" + \"REFERENCES USERS (USERID) ON DELETE CASCADE\");\n statement.executeUpdate(\"ALTER TABLE RESOURCES \" + \"ADD CONSTRAINT RESOURCES_USERS_FK2 FOREIGN KEY (WALLUSERID)\" + \"REFERENCES USERS (USERID) ON DELETE NO ACTION\");\n \n //Create Indexes\n buildIndexes(null);\n }\n catch (SQLException ex)\n {\n Logger.getLogger(WindowsAzureClientInit.class.getName()).log(Level.SEVERE, null, ex);\n System.out.println(\"Error in creating schema!\");\n }\n }", "public void createTable() throws LRException\n\t{\n\t\tgetBackground();\n\t\tDataHRecordData myData=(DataHRecordData)getData();\n\t\t// Create a new (empty) record\n\t\tcreate(new Hashtable(),myData);\n\t\tif (myData.record==null) throw new LRException(DataRMessages.nullRecord(getName()));\n\t\ttry\n\t\t{\n\t\t\tbackground.newTransaction();\n\t\t\tmyData.record.createNewTable(background.getClient(),true);\n\t\t}\n\t\tcatch (LDBException e) { setStatus(e); }\n\t}", "public boolean createTable(String input) throws IOException{\n\t\tString orgQuery = input;\n\t\torgQuery = orgQuery.trim();\n\t\tString query = input.toLowerCase().trim();\n\t\tboolean queryFailed = false;\n\t\t//Schema Instance \n\t\tSchema currentSchema = Schema.getSchemaInstance();\n\t\tString currentSchemaName = currentSchema.getCurrentSchema();\n\n\t\t//TableSchemaManager Instance\n\t\tTableSchemaManager currentTableSchemaManager = TableSchemaManager.getTableSchemaManagerInstance();\n\n\t\t//Extracting Table name\n\t\ttableName = orgQuery.substring(query.indexOf(\"table \")+6,query.indexOf(\"(\")).trim();\n\n\t\t//Updating SCHEMA.TABLE.TBL\n\t\tif(updateInformationSchemaTable()){\n\t\t\tqueryFailed = true;\n\t\t\treturn queryFailed;\n\t\t}\n\n\t\t//Extracting Table contents\n\t\tString tableContentsWithQuotes = orgQuery.substring(orgQuery.indexOf(\"(\")+1,orgQuery.length());\n\t\tString tableContents = tableContentsWithQuotes.replace(\"))\", \")\");\n\t\ttableContents = tableContents.trim();\n\n\t\tTableSchemaManager.ordinalMap = new TreeMap<Integer,List<String>>();\n\t\tTableSchemaManager.tableMap = new TreeMap<String,TreeMap<Integer,List<String>>>();\n\t\t\n\t\t//Creating n instances of Table helper\n\t\tString[] createTableContents = tableContents.split(\"\\\\,\"); \n\t\tnoOfColumns = createTableContents.length;\n\t\tCreateTableHelper[] th = new CreateTableHelper[noOfColumns];\n\n\t\t\n\t\t//Handles single row of Create Table \n\t\tfor(int item = 0; item < noOfColumns ; item++){\n\t\t\tth[item] = new CreateTableHelper(); \n\t\t\t//To remove any leading or trailing spaces\n\t\t\tcreateTableContents[item] = createTableContents[item].trim();\n\t\t\tString columnName = createTableContents[item].substring(0, createTableContents[item].indexOf(\" \"));\n\t\t\tth[item].setColumnName(columnName);\n\n\t\t\t//Setting Primary Key\n\t\t\tString primaryKeyExp = \"(.*)[pP][rR][iI][mM][aA][rR][yY](.*)\";\n\t\t\tif (createTableContents[item].matches(primaryKeyExp))\n\t\t\t\tth[item].setPrimaryKey(true);\n\t\t\telse\n\t\t\t\tth[item].setPrimaryKey(false);\n\n\t\t\t//Setting Null Value\t\n\t\t\tString notNullExp = \"(.*)[nN][uU][lL][lL](.*)\";\n\t\t\tif (createTableContents[item].matches(notNullExp))\n\t\t\t\tth[item].setNull(true);\n\t\t\telse\n\t\t\t\tth[item].setNull(false);\n\n\t\t\t//Extracting data types \n\t\t\t//BYTE\n\t\t\tString byteExp = \"(.*)[bB][yY][tT][eE](.*)\";\n\t\t\tif (createTableContents[item].matches(byteExp)){\n\t\t\t\tth[item].setDataType(\"BYTE\");\n\t\t\t}\n\t\t\t//SHORT\n\t\t\tString shortExp = \"(.*)[sS][hH][oO][rR][tT](.*)\";\n\t\t\tif (createTableContents[item].matches(shortExp)){\n\t\t\t\tth[item].setDataType(\"SHORT\");\n\t\t\t}\n\t\t\t//INT\n\t\t\tString intExp = \"(.*)[iI][nN][tT](.*)\";\n\t\t\tif (createTableContents[item].matches(intExp)){\n\t\t\t\tth[item].setDataType(\"INT\");\n\t\t\t}\n\t\t\t//LONG\n\t\t\tString longExp = \"(.*)[lL][oO][nN][gG](.*)\";\n\t\t\tif (createTableContents[item].matches(longExp)){\n\t\t\t\tth[item].setDataType(\"LONG\");\n\t\t\t}\n\t\t\t//CHAR\n\t\t\tString charExp = \"(.*)[cC][hH][aA][rR](.*)\";\n\t\t\tif (createTableContents[item].matches(charExp)){\n\t\t\t\tString size = createTableContents[item].substring(createTableContents[item].indexOf(\"(\")+1, createTableContents[item].indexOf(\")\"));\n\t\t\t\tth[item].setDataType(\"CHAR(\" + size + \")\");\n\t\t\t}\n\t\t\t//VARCHAR\n\t\t\tString varcharExp = \"(.*)[vV][aA][rR][cC][hH][aA][rR](.*)\";\n\t\t\tif (createTableContents[item].matches(varcharExp)){\n\t\t\t\tString size = createTableContents[item].substring(createTableContents[item].indexOf(\"(\")+1, createTableContents[item].indexOf(\")\"));\n\t\t\t\tth[item].setDataType(\"VARCHAR(\" + size + \")\");\n\t\t\t}\n\t\t\t//FLOAT\n\t\t\tString floatExp = \"(.*)[fF][lL][oO][aA][tT](.*)\";\n\t\t\tif (createTableContents[item].matches(floatExp)){\n\t\t\t\tth[item].setDataType(\"FLOAT\");\t\t\t\t\n\t\t\t}\n\t\t\t//DOUBLE\n\t\t\tString doubleExp = \"(.*)[dD][oO][uU][bB][lL][eE](.*)\";\n\t\t\tif (createTableContents[item].matches(doubleExp)){\n\t\t\t\tth[item].setDataType(\"DOUBLE\");\n\t\t\t}\n\t\t\t//DATETIME\n\t\t\tString dateTimeExp = \"(.*)[dD][aA][tT][eE][tT][iI][mM][eE](.*)\";\n\t\t\tif (createTableContents[item].matches(dateTimeExp)){\n\t\t\t\tth[item].setDataType(\"DATETIME\");\n\t\t\t}\n\t\t\t//DATE\n\t\t\tString dateExp = \"(.*)[dD][aA][tT][eE](.*)\";\n\t\t\tif (createTableContents[item].matches(dateExp)){\n\t\t\t\tth[item].setDataType(\"DATE\");\n\t\t\t}\n\n\t\t\tcurrentTableSchemaManager.newTableSchema(\n\t\t\t\t\ttableName,\n\t\t\t\t\titem,\n\t\t\t\t\tth[item].getColumnName(),\n\t\t\t\t\tth[item].getDataType(),\n\t\t\t\t\tth[item].isNull(),\n\t\t\t\t\tth[item].isPrimaryKey()\n\t\t\t\t\t);\n\n\t\t\t//Updating SCHEMA.COLUMNS.TBL\n\t\t\tupdateInformationSchemaColumn(\n\t\t\t\t\tth[item].getColumnName(),\n\t\t\t\t\titem,\n\t\t\t\t\tth[item].getDataType(),\n\t\t\t\t\tth[item].isNull(),\n\t\t\t\t\tth[item].isPrimaryKey()\n\t\t\t\t\t);\n\t\t\t//Create tables to insert index\n\t\t\tString newTableIndexName = currentSchemaName + \".\" + tableName + \".\" +th[item].getColumnName()+ \".tbl.ndx\";\n\t\t\tRandomAccessFile newTableIndexFile = new RandomAccessFile(newTableIndexName, \"rw\");\n\t\t\tnewTableIndexFile.close();\n\n\t\t}\n\n\t\tTableSchemaManager.tableMap.put(tableName, TableSchemaManager.ordinalMap);\n\t\tcurrentTableSchemaManager.updateTableSchema(currentSchemaName,tableName);\n\t\t\n\t\t//Create tables to insert data \n\t\tString newTableDataName = currentSchemaName + \".\" + tableName + \".tbl\";\n\t\tRandomAccessFile newTableDataFile = new RandomAccessFile(newTableDataName, \"rw\");\n\t\tnewTableDataFile.close();\n\t\treturn queryFailed;\n\t}", "public String createDSIndex(String dsID, String dschemaID, String attriName);", "private void createStressTestControlTable() {\n Column runId = new Column(\"RUN_ID\");\n runId.setMappedType(\"INTEGER\");\n runId.setPrimaryKey(true);\n runId.setRequired(true);\n Column clientCommitSleepMs = new Column(\"CLIENT_COMMIT_SLEEP_MS\");\n clientCommitSleepMs.setMappedType(\"BIGINT\");\n Column clientCommitRows = new Column(\"CLIENT_COMMIT_ROWS\");\n clientCommitRows.setMappedType(\"BIGINT\");\n Column serverCommitSleepMs = new Column(\"SERVER_COMMIT_SLEEP_MS\");\n serverCommitSleepMs.setMappedType(\"BIGINT\");\n Column serverCommitRows = new Column(\"SERVER_COMMIT_ROWS\");\n serverCommitRows.setMappedType(\"BIGINT\");\n Column payloadColumns = new Column(\"PAYLOAD_COLUMNS\");\n payloadColumns.setMappedType(\"INTEGER\");\n Column initialSeedSize = new Column(\"INITIAL_SEED_SIZE\");\n initialSeedSize.setMappedType(\"BIGINT\");\n Column duration = new Column(\"DURATION_MINUTES\");\n duration.setMappedType(\"BIGINT\");\n\n Table table = new Table(STRESS_TEST_CONTROL, runId, clientCommitSleepMs, clientCommitRows, serverCommitSleepMs, serverCommitRows,\n payloadColumns, initialSeedSize, duration);\n engine.getDatabasePlatform().createTables(true, true, table);\n }", "@Override\r\n\tpublic void create() {\n\r\n\t}", "Statement createStatement();", "Statement createStatement();", "Statement createStatement();", "public void doCreateTable();", "@Override\n public Pipe execute(DBMS engine) throws DBxicException {\n engine.storManager.createTable(table);\n engine.catalog.saveCatalog();\n return new MessageThroughPipe(\"Table \" + table.getName() + \" successfully created\");\n }", "@Override\n public void setUp() throws SQLException {\n connection.createStatement().executeUpdate(\n \"CREATE TABLE IF NOT EXISTS \\\"ENTRY\\\" (\" +\n \"\\\"SHARED_ID\\\" SERIAL PRIMARY KEY, \" +\n \"\\\"TYPE\\\" VARCHAR, \" +\n \"\\\"VERSION\\\" INTEGER DEFAULT 1)\");\n\n connection.createStatement().executeUpdate(\n \"CREATE TABLE IF NOT EXISTS \\\"FIELD\\\" (\" +\n \"\\\"ENTRY_SHARED_ID\\\" INTEGER REFERENCES \\\"ENTRY\\\"(\\\"SHARED_ID\\\") ON DELETE CASCADE, \" +\n \"\\\"NAME\\\" VARCHAR, \" +\n \"\\\"VALUE\\\" TEXT)\");\n\n connection.createStatement().executeUpdate(\n \"CREATE TABLE IF NOT EXISTS \\\"METADATA\\\" (\"\n + \"\\\"KEY\\\" VARCHAR,\"\n + \"\\\"VALUE\\\" TEXT)\");\n }", "private void m14053d() {\n try {\n File file = new File(f18051l);\n File file2 = new File(f18052m);\n if (!file.exists()) {\n file.mkdirs();\n }\n if (!file2.exists()) {\n file2.createNewFile();\n }\n if (file2.exists()) {\n SQLiteDatabase openOrCreateDatabase = SQLiteDatabase.openOrCreateDatabase(file2, null);\n openOrCreateDatabase.execSQL(\"CREATE TABLE IF NOT EXISTS bdcltb09(id CHAR(40) PRIMARY KEY,time DOUBLE,tag DOUBLE, type DOUBLE , ac INT);\");\n openOrCreateDatabase.execSQL(\"CREATE TABLE IF NOT EXISTS wof(id CHAR(15) PRIMARY KEY,mktime DOUBLE,time DOUBLE, ac INT, bc INT, cc INT);\");\n openOrCreateDatabase.setVersion(1);\n openOrCreateDatabase.close();\n }\n this.f18053a = true;\n } catch (Exception e) {\n }\n }", "interface WithDtu {\n /**\n * Sets the total shared DTU for the SQL Azure Database Elastic Pool.\n *\n * @param dtu total shared DTU for the SQL Azure Database Elastic Pool\n * @return The next stage of the definition.\n */\n @Deprecated\n SqlElasticPoolOperations.DefinitionStages.WithCreate withDtu(int dtu);\n }", "@POST\n @Produces({\"application/json\"})\n public String createDb() throws WebApplicationException {\n HibernateEntityManager emAdm = PersistenceManager.getInstance().getEntityManagerAdmin();\n SQLQuery qCreate = emAdm.getSession().createSQLQuery(\"CREATE DATABASE test_jeff template=postgis\");\n try{\n qCreate.executeUpdate();\n }catch(SQLGrammarException e){\n System.out.println(\"Error !!\" + e.getSQLException());\n emAdm.close();\n return e.getSQLException().getLocalizedMessage();\n }\n emAdm.close();\n Map properties = new HashMap();\n //change the connection string to the new db\n properties.put(\"hibernate.connection.url\", \"jdbc:postgresql_postGIS://192.168.12.36:5432/test_jeff\");\n EntityManagerFactory emf = Persistence.createEntityManagerFactory(\"dataPU\", properties); \n return \"Yeah\";\n }", "public abstract void createTables() throws DataServiceException;", "@Override\n\tpublic void create () {\n\n\t}", "@Test\n public void shouldCreateEpiDataGathering() {\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(0));\n\n Case caze = TestEntityCreator.createCase();\n TestEntityCreator.createEpiDataGathering(caze);\n\n // Assure that the burial has been successfully created\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(1));\n }", "Udt createUdt();", "OperacionColeccion createOperacionColeccion();", "public void create(AttributeList attributeList)\n {\n\n super.create(attributeList); \n \n OADBTransaction transaction = getOADBTransaction();\n \n // DEFAULT: supplier id is obtained from the table's sequence\n Number supplierId = transaction.getSequenceValue(\"FWK_TBX_SUPPLIERS_S\");\n setSupplierId(supplierId);\n\n // DEFAULT: start date should be set to sysdate\n setStartDate(transaction.getCurrentDBDate());\n\n \n }", "Definition createDefinition();", "H1 createH1();", "private static void createDatabase(String restrictedUser) throws ArcException {\n\t\tGenericPreparedStatementBuilder query;\n\n\t\t// clean database\n\t\tquery = new GenericPreparedStatementBuilder();\n\t\tquery.append(\"DROP SCHEMA IF EXISTS \" + DataObjectService.ARC_METADATA_SCHEMA + \" CASCADE;\");\n\t\tquery.append(\"DROP SCHEMA IF EXISTS \" + testSandbox1 + \" CASCADE;\");\n\t\tquery.append(\"DROP SCHEMA IF EXISTS public CASCADE;\");\n\t\tUtilitaireDao.get(0).executeRequest(c, query);\n\t\t\n\t\tBddPatcher patcher=new BddPatcher();\n\t\tpatcher.getProperties().setGitCommitId(newVersion);\n\t\tpatcher.getProperties().setDatabaseRestrictedUsername(userWithRestrictedRights);\n\n\t\t// metadata schema creation\n\t\tpatcher.bddScript(c);\n\t\t// sandbox schema creation\n\t\tpatcher.bddScript(c, testSandbox1, testSandbox2, testSandbox8);\n\t\t\n\t}", "Operacion createOperacion();", "private synchronized String processCreate(String query) {\r\n\t\tString[] valuesCommand = query.split(\" \");\r\n\t\tif ( valuesCommand.length != 3 )\r\n\t\t\treturn \"ERROR Bad syntaxe command CREATE - Usage : CREATE id initial_solde\";\r\n\t\tString id = valuesCommand[1];\r\n\t\tif ( this.bank.existAccount(id) ) {\r\n\t\t\treturn \"ERROR Account alwready exist\";\r\n\t\t}\r\n\t\tdouble number = Double.valueOf(valuesCommand[2]);\r\n\t\tthis.bank.createAccount(id, number);\r\n\t\treturn \"OK \" + this.bank.getLastOperation(id);\r\n\t}", "public void createNewSchema() throws SQLException {\n ResultSet resultSet = databaseStatement.executeQuery(\"select count(datname) from pg_database\");\n int uniqueID = 0;\n if(resultSet.next()) {\n uniqueID = resultSet.getInt(1);\n }\n if(uniqueID != 0) {\n uniqueID++;\n databaseStatement.executeQuery(\"CREATE DATABASE OSM\"+uniqueID+\";\");\n }\n }", "int insert(Lbt72TesuryoSumDPkey record);", "@Test(timeout = 4000)\n public void test124() throws Throwable {\n DefaultDBTable defaultDBTable0 = new DefaultDBTable();\n MockPrintWriter mockPrintWriter0 = new MockPrintWriter(\"Illegal column type format: \");\n String[] stringArray0 = new String[9];\n DBUniqueConstraint dBUniqueConstraint0 = new DBUniqueConstraint(defaultDBTable0, \"66i,cw\", true, stringArray0);\n NameSpec nameSpec0 = NameSpec.ALWAYS;\n SQLUtil.renderCreateTable(defaultDBTable0, true, nameSpec0, mockPrintWriter0);\n assertEquals(\"table\", defaultDBTable0.getObjectType());\n }", "int insert(NjProductTaticsRelation record);", "public de.uni_koblenz.jgralabtest.schemas.gretl.pddsl.Chassis createChassis();", "int insert(Disease record);", "private void creates() {\n \tDBPeer.fetchTableColumns();\n \tDBPeer.fetchTableRows();\n \tDBPeer.fetchTableIndexes();\n \t\n for (int i = 0; i < creates.size(); i++) {\n creates.get(i).init();\n }\n \n DBPeer.updateTableColumns();\n DBPeer.updateTableRows();\n DBPeer.updateTableIndexes();\n }", "InstAssignIndex createInstAssignIndex();", "WithCreate withCreationData(CreationData creationData);", "@Before\n public void createAndFillTable() {\n try {\n DBhandler dBhandler = new DBhandler(h2DbConnection);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "DataCfgTableInfo createTableIfNotExists(String dataCfgOid);", "H2 createH2();", "int insert(Lbm83ChohyokanriPkey record);", "HdbSequenceModel createHdbSequenceModel();", "DL createDL();", "For createFor();", "public org.oep.cmon.dao.tlct.model.DanhMucGiayTo create(long id);", "private Builder() {\n super(org.apache.gora.cascading.test.storage.TestRow.SCHEMA$);\n }", "public void createExempleDirect(ExempleDirect exempleDirect) throws DaoException;", "int insertSelective(NjProductTaticsRelation record);", "BIG createBIG();", "private void CreateDataIngestors() throws isisicatclient.IcatException_Exception {\n Grouping dataIngestors = new Grouping();\r\n dataIngestors.name = \"DataIngestors\";\r\n dataIngestors.id = port.create(sessionId, dataIngestors);\r\n dataIngestors = (Grouping) port.search(sessionId, \"Grouping[name='DataIngestors']\").get(0);\r\n\r\n List<String> ingestorTables = port.getEntityNames();\r\n\r\n ingestorTables.remove(\"Facility\");\r\n\r\n List<EntityBaseBean> ingestorRules = new ArrayList<>();\r\n for (String table : ingestorTables) {\r\n Rule rule = new Rule();\r\n rule.grouping = dataIngestors;\r\n rule.crudFlags = \"CRUD\"; //no delete permission for ingestors\r\n rule.what = table;\r\n ingestorRules.add(rule);\r\n }\r\n port.createMany(sessionId, ingestorRules);\r\n }", "H4 createH4();", "int insert(OrgIntegralDeductRule record);", "public void createDataTable() {\r\n Log.d(TAG, \"creating table\");\r\n String queryStr = \"\";\r\n String[] colNames = {Constants.COLUMN_NAME_ACC_X, Constants.COLUMN_NAME_ACC_Y, Constants.COLUMN_NAME_ACC_Z};\r\n queryStr += \"create table if not exists \" + Constants.TABLE_NAME;\r\n queryStr += \" ( id INTEGER PRIMARY KEY AUTOINCREMENT, \";\r\n for (int i = 1; i <= 50; i++) {\r\n for (int j = 0; j < 3; j++)\r\n queryStr += colNames[j] + \"_\" + i + \" real, \";\r\n }\r\n queryStr += Constants.COLUMN_NAME_ACTIVITY + \" text );\";\r\n execute(queryStr);\r\n Log.d(TAG, \"created table\");\r\n try {\r\n ContentValues values = new ContentValues();\r\n values.put(\"id\", 0);\r\n insertRowInTable(Constants.TABLE_NAME, values);\r\n Log.d(TAG,\"created hist table\");\r\n }catch (Exception e){\r\n Log.d(TAG,Constants.TABLE_NAME + \" table already exists\");\r\n }\r\n }", "public static void main(String[] args) {\n\t\tCreateTable createTable = new CreateTable();\n\n\t\tCity city = new City();\n\t\tcity.setId(1);\n\t\tcreateTable.execute(city);\n\n\t\tProvince province = new Province();\n\t\tprovince.setId(1);\n\t\tcreateTable.execute(province);\n\n\t\tTown town = new Town();\n\t\ttown.setId(1);\n\t\tcreateTable.execute(town);\n\n\t\tDetail detail = new Detail();\n\t\tdetail.setId(1);\n\t\tcreateTable.execute(detail);\n\n\t\tOrder order = new Order();\n\t\torder.setId(1);\n\t\tcreateTable.execute(order);\n\n\t\tBrand2 brand2 = new Brand2();\n\t\tbrand2.setId(1);\n\t\tcreateTable.execute(brand2);\n\n\t\tColor color = new Color();\n\t\tcolor.setId(1);\n\t\tcreateTable.execute(color);\n\n\t\tFeature feature = new Feature();\n\t\tfeature.setId(1);\n\t\tcreateTable.execute(feature);\n\n\t\tImg img = new Img();\n\t\timg.setId(1);\n\t\tcreateTable.execute(img);\n\n\t\tSku sku = new Sku();\n\t\tsku.setId(1);\n\t\tcreateTable.execute(sku);\n\n\t\tType type = new Type();\n\t\ttype.setId(1);\n\t\tcreateTable.execute(type);\n\n\t\tAddr addr = new Addr();\n\t\taddr.setId(1);\n\t\tcreateTable.execute(addr);\n\t\tcreateTable.execute(new Buyer());\n\n\t\t// 商品编号 商品名称 图片 新品 热卖 推荐 上下架 操作选项\n\t\tProduct product = new Product();\n\t\tproduct.setId(001);\n\t\tproduct.setNo(UUID.randomUUID().toString());\n\t\tproduct.setName(\"依琦莲2014瑜伽服套装新款 瑜珈健身服三件套 广场舞蹈服装 女瑜伽服送胸垫 长袖紫色\");\n\t\tproduct.setWeight(56.00);\n\t\tproduct.setIsNew(1); // 1是 0否\n\t\tproduct.setIsHot(1);\n\t\tproduct.setCreateTime(new Date());\n\t\tproduct.setCheckUserId(\"\");\n\t\tproduct.setCheckTime(new Date());\n\t\tproduct.setCreateUserId(\"\");\n\t\tproduct.setIsShow(1);\n\t\tproduct.setIsDel(1);\n\t\tproduct.setTypeId(1);\n\t\tproduct.setBrandId(1);\n\t\tproduct.setKeywords(\"\");\n\t\tproduct.setSales(36);\n\t\tproduct.setDescription(\"不是东西\");\n\t\tproduct.setPackageList(\"\");\n\t\tproduct.setFeature(\"头角狰狞\");\n\t\tproduct.setColor(\"blue\");\n\t\tproduct.setSize(\"L\"); // S,L,XXL\n\t\tcreateTable.execute(product);\n\n\t\t// insert into\n\t\t// Product(id,no,name,weight,isNew,isHot,sales,description,feature,size)value(1,\"11xzc3568\",\"依琦莲2014瑜伽服套装新款女瑜伽服送胸垫\n\t\t// 长袖紫色\",36.12,1,1,110,\"不是东西\",\"头角狰狞\",\"blue\",\"L\");\n\n\t\tEmployee employee = new Employee();\n\t\temployee.setId(1);\n\t\tcreateTable.execute(employee);\n\n\t}", "Vaisseau_ordonneeLaPlusHaute createVaisseau_ordonneeLaPlusHaute();", "private void createCheckingAccountsTable() {\n\t\ttry {\n\t\t\tStatement stmt = this.conn.createStatement();\n\t\t\tstmt.executeUpdate(\"CREATE TABLE checkingAccounts \"\n\t\t\t\t\t+ \"(id BIGINT GENERATED ALWAYS AS IDENTITY ( START WITH 1000000001, INCREMENT BY 1 ), \" + \"owner INT, \"\n\t\t\t\t\t+ \"balance DOUBLE, \" + \"intRate DOUBLE, \"\n\t\t\t\t\t+ \"timeCreated BIGINT, \" + \"lastPaidInterest DOUBLE, \"\n\t\t\t\t\t+ \"dateOfLastPaidInterest BIGINT)\");\n\t\t\tconn.commit();\n\t\t\tSystem.out.println(\"Created table checkingAccounts\");\n\t\t} catch (SQLException sqle) {\n\t\t\tSystem.err.println(\"Creation of checkingAccounts table FAILED\");\n\t\t\tSystem.err.println(sqle);\n\t\t}\n\t}", "@Ignore\n @Test\n public void testCreateIndex() {\n System.out.println(\"createIndex\");\n Util.commonServiceIPs=\"127.0.0.1\";\n \n EntityManager em=Util.getEntityManagerFactory(100).createEntityManager();\n EntityManager platformEm = Util.getPlatformEntityManagerFactory().createEntityManager();\n \n Client client = ESUtil.getClient(em,platformEm,1,false);\n \n RuntimeContext.dataobjectTypes = Util.getDataobjectTypes();\n String indexName = \"test000000\";\n try {\n ESUtil.createIndex(platformEm, client, indexName, true);\n }\n catch(Exception e)\n {\n \n }\n \n\n }", "public void createVirtualTable(){\n\n\t\t\n\t\tif(DBHandler.getConnection()==null){\n\t\t\treturn;\n\t\t}\n\n\t\tif(DBHandler.tableExists(name())){\n\t\t\treturn;\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tStatement s = DBHandler.getConnection().createStatement();\n\t\t\ts.execute(\"create virtual table \"+name()+\" using fts4(\"+struct()+\")\");\n\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\tMainFrame.print(e.getMessage());\n\t\t}\n\t}", "public int create (Section section) throws DataAccessException;", "protected abstract void createAttributes();", "private MetaSparqlRequest createInsertMT1() {\n\t\tString sparqlStr = \"\"+\n\t\t\t\t\"PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>\\r\\n\" + \n\t\t\t\t\"PREFIX ub: \"+_ontology+\"\\r\\n\" + \n\t\t\t\t\"INSERT DATA { GRAPH \"+_graph+\" { \"+\n\t\t\t\tbuilderBindInsert\n\t\t\t\t+\" } }\";\n\t\t\n\t\tSparqlObj sparql= new SparqlObj(sparqlStr) ;\n\t\tEndPoint endPointHost= new EndPoint(_protocol,_host,_port,\"/update\");\n\t\tMetaSparqlRequest msr = new MetaSparqlRequest(new SparqlRequest(sparql,endPointHost));\n\t\tmsr.setTripleInsert(createTripleBaseMT1());\n\t\treturn msr;\n\t}", "public void createTables(){\n Map<String, String> name_type_map = new HashMap<>();\n List<String> primaryKey = new ArrayList<>();\n try {\n name_type_map.put(KEY_SINK_NAME, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_SINK_ADDRESS, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_SINK_DETAIL, MyDatabase.TYPE_VARCHAR);\n primaryKey.add(KEY_SINK_ADDRESS);\n myDatabase.createTable(TABLE_SINK, name_type_map, primaryKey, null);\n }catch (MySQLException e){ //数据表已存在\n e.print();\n }\n try {\n name_type_map.clear();\n name_type_map.put(KEY_NODE_NAME, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_PARENT, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_DETAIL, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_ADDRESS,MyDatabase.TYPE_VARCHAR);\n primaryKey.clear();\n primaryKey.add(KEY_NODE_PARENT);\n primaryKey.add(KEY_NODE_ADDRESS);\n myDatabase.createTable(TABLE_NODE, name_type_map, primaryKey, null);\n }catch (MySQLException e){\n e.print();\n }\n\n try {\n name_type_map.clear();\n name_type_map.put(KEY_NODE_ADDRESS, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_PARENT, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_DATA_TIME, MyDatabase.TYPE_TIMESTAMP);\n name_type_map.put(KEY_DATA_VAL, MyDatabase.TYPE_FLOAT);\n primaryKey.clear();\n primaryKey.add(KEY_DATA_TIME);\n primaryKey.add(KEY_NODE_ADDRESS);\n primaryKey.add(KEY_NODE_PARENT);\n myDatabase.createTable(TABLE_DATA, name_type_map, primaryKey, null);\n }catch (MySQLException e) {\n e.print();\n }\n }", "int insert(ec_environment record);", "public void setup() throws SQLException {\n // Create ACARS table\n final String createTableSQL = \"CREATE TABLE IF NOT EXISTS ACARS (\"\n + \"date DATE, time TIME, frequency CHAR(7), \"\n + \"registration VARCHAR(7), flight CHAR(6), \"\n + \"mode CHAR, label CHAR(2), blockId CHAR, msgId CHAR(4), \"\n + \"text VARCHAR(255), \"\n + \"PRIMARY KEY (date, registration, flight, mode, label, blockId, msgId), \"\n + \"INDEX datetime_idx (date, time), \"\n + \"INDEX registration_idx (registration), \"\n + \"INDEX flight_idx (flight)\"\n + \")\";\n\n final Statement createTableStmt = connection.createStatement();\n createTableStmt.execute(createTableSQL);\n }", "TableInstance createTableInstance();", "private String createTableSQL()\n\t{\n\t\tStringBuffer str = new StringBuffer();\n\n\t\t// Keep track of the list of fields\n\t\tList<String> listFields = new ArrayList<String>();\n\n\t\t// Table command\n\t\tstr.append(\"CREATE TABLE \" + getFullPath() + \"( \");\n\t\tstr.append(createStandardGZFields());\n\n\t\t// Loop through all InputFields\n\t\tfor (InputFieldSet fieldSet : function.getInputFieldSets())\n\t\t{\n\t\t\tfor (InputField inputField : fieldSet.getInputFields())\n\t\t\t{\n\t\t\t\t// Phase 2 does not support repeating fields being journalled\n\t\t\t\tif (!Field.isRepeating(inputField))\n\t\t\t\t{\n\t\t\t\t\t// Field\n\t\t\t\t\tString fieldName = SQLToolbox.cvtToSQLFieldName(inputField.getId());\n\n\t\t\t\t\t// add if not yet existing\n\t\t\t\t\tif (listFields.indexOf(fieldName) == -1)\n\t\t\t\t\t{\n\t\t\t\t\t\tstr.append(\", \");\n\t\t\t\t\t\tString fieldDataType = inputField.getDataType();\n\t\t\t\t\t\tString fieldType = SQLToolbox.cvtToSQLFieldType(fieldDataType, inputField.getSize(), inputField\n\t\t\t\t\t\t\t\t\t\t.getDecimals());\n\t\t\t\t\t\tString fieldDefault = SQLToolbox.cvtToSQLDefault(fieldDataType);\n\t\t\t\t\t\tstr.append(fieldName + \" \" + fieldType + \" \" + \" not null default \" + fieldDefault);\n\t\t\t\t\t\tlistFields.add(fieldName);\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// End\n\t\tstr.append(\" ) \");\n\t\t// RCDFMT \" + getJournalRcdName());\n\n\t\treturn str.toString();\n\t}", "public org.oep.cmon.dao.dvc.model.ThuTuc2GiayTo create(long id);" ]
[ "0.6137034", "0.6020893", "0.5953024", "0.5871004", "0.58520657", "0.5824135", "0.5783128", "0.5781292", "0.5779935", "0.5768486", "0.57018137", "0.569296", "0.5677845", "0.566757", "0.56516117", "0.5639093", "0.56084186", "0.5601316", "0.55988264", "0.5587084", "0.5586368", "0.5579563", "0.55671966", "0.5562383", "0.55537105", "0.55511224", "0.5550222", "0.5547236", "0.55009055", "0.54889506", "0.5482187", "0.54807544", "0.5465443", "0.5454913", "0.54468626", "0.5434606", "0.5426381", "0.54197514", "0.5414243", "0.54073745", "0.5402808", "0.5390703", "0.5390526", "0.5390526", "0.5390526", "0.538945", "0.53878444", "0.53796816", "0.5375914", "0.53748345", "0.53730184", "0.5365049", "0.5364833", "0.5364805", "0.536257", "0.5361029", "0.5360632", "0.53598887", "0.5350994", "0.5339128", "0.5338244", "0.53296435", "0.5321595", "0.5320979", "0.53194505", "0.5318698", "0.5313326", "0.53126156", "0.53099495", "0.5306004", "0.5300889", "0.5293614", "0.529321", "0.52883255", "0.5281361", "0.5281042", "0.527843", "0.5270345", "0.526982", "0.52697945", "0.52608657", "0.5259804", "0.52563196", "0.5249798", "0.5247741", "0.5239433", "0.5224713", "0.5224455", "0.5222238", "0.5221105", "0.521778", "0.5213034", "0.5211071", "0.52098143", "0.5208245", "0.5207931", "0.52069414", "0.5205663", "0.52015704", "0.5196995", "0.5195414" ]
0.0
-1
CREATE BY ANH DUC
void remove(Long id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int createTable(HbaseObj t);", "private void processCreate() throws HsqlException {\n\n boolean unique = false;\n int tableType;\n boolean isTempTable = false;\n String token;\n\n session.checkAdmin();\n session.checkDDLWrite();\n session.setScripting(true);\n\n if (tokenizer.isGetThis(Token.T_GLOBAL)) {\n tokenizer.getThis(Token.T_TEMPORARY);\n\n isTempTable = true;\n } else if (tokenizer.isGetThis(Token.T_TEMP)) {\n isTempTable = true;\n } else if (tokenizer.isGetThis(Token.T_TEMPORARY)) {\n isTempTable = true;\n }\n\n token = tokenizer.getSimpleToken();\n\n switch (Token.get(token)) {\n\n // table\n case Token.MEMORY :\n tokenizer.getThis(Token.T_TABLE);\n case Token.TABLE :\n tableType = isTempTable ? Table.TEMP_TABLE\n : database.getDefaultTableType();\n\n processCreateTable(tableType);\n\n return;\n\n case Token.CACHED :\n if (isTempTable) {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n\n tokenizer.getThis(Token.T_TABLE);\n processCreateTable(Table.CACHED_TABLE);\n\n return;\n\n case Token.TEXT :\n if (isTempTable) {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n\n tokenizer.getThis(Token.T_TABLE);\n processCreateTable(Table.TEXT_TABLE);\n\n return;\n\n default :\n if (isTempTable) {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n }\n\n switch (Token.get(token)) {\n\n // other objects\n case Token.ALIAS :\n processCreateAlias();\n break;\n\n case Token.SEQUENCE :\n processCreateSequence();\n break;\n\n case Token.SCHEMA :\n session.setScripting(false);\n processCreateSchema();\n break;\n\n case Token.TRIGGER :\n processCreateTrigger();\n break;\n\n case Token.USER :\n processCreateUser();\n break;\n\n case Token.ROLE :\n database.getGranteeManager().addRole(getUserIdentifier());\n break;\n\n case Token.VIEW :\n processCreateView();\n break;\n\n // index\n case Token.UNIQUE :\n unique = true;\n\n tokenizer.getThis(Token.T_INDEX);\n\n //fall thru\n case Token.INDEX :\n processCreateIndex(unique);\n break;\n\n default : {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n }\n }", "void create(DataTableDef def) throws IOException;", "CreationData creationData();", "protected abstract D createData();", "FromTable createFromTable();", "public void create() {\n\t\t\n\t}", "public void create() {\n\t\t\tdb.execSQL(AGENCYDB_CREATE+\".separete,.import agency.txt agency\");\n\t\t\tdb.execSQL(STOPSDB_CREATE+\".separete,.import stop_times.txt stop_times\");\n\t\t\t\n\t\t\t// Add 2 agencies for testing\n\t\t\t\n\t\t\t\n\t\t\tdb.setVersion(DATABASE_VERSION);\n\t\t}", "HdbdtiModel createHdbdtiModel();", "HdbSequenceElements createHdbSequenceElements();", "DD createDD();", "TD createTD();", "public String createTable(){\r\n return \"CREATE TABLE Doctor \" +\r\n \"(idDoctor decimal primary key, \" +\r\n \"firstNameDoctor char(14), \" +\r\n \"lastNameDoctor char(14), \" +\r\n \"costPerVisit integer,\" +\r\n \"qualification varchar(32))\";\r\n }", "private void createCDAccountsTable() {\n\t\ttry {\n\t\t\tStatement stmt = this.conn.createStatement();\n\t\t\tstmt.executeUpdate(\"CREATE TABLE cdAccounts \"\n\t\t\t\t\t+ \"(id BIGINT GENERATED ALWAYS AS IDENTITY ( START WITH 3000000001, INCREMENT BY 1 ), \" + \"owner INT, \"\n\t\t\t\t\t+ \"term INT, \" + \"balance DOUBLE, \" + \"intRate DOUBLE, \"\n\t\t\t\t\t+ \"timeCreated BIGINT, \" + \"lastPaidInterest DOUBLE, \"\n\t\t\t\t\t+ \"dateOfLastPaidInterest BIGINT)\");\n\t\t\tconn.commit();\n\t\t\tSystem.out.println(\"Created table cdAccounts\");\n\t\t} catch (SQLException sqle) {\n\t\t\tSystem.err.println(\"Creation of cdAccounts table FAILED\");\n\t\t\tSystem.err.println(sqle);\n\t\t}\n\t}", "public void createDienst()\n\t{\n\t\twriteDb(\"INSERT INTO dienstleistung (Bezeichnung, Preis)\" + \"VALUES('\" + typ + \"', '\" + preis +\"')\", getWriteCon());\n\t\tcommitDbConnection(getWriteCon());\n\t}", "public void create(){}", "@Override\n\tpublic String createTable() {\n\t\t\t\treturn \"CREATE TABLE history_table_view(id number(8) primary key not null ,sqltext text, pointid varchar2(1024), type varchar2(100))\";\n\t}", "public static void createTable() {\n\n // Create statement\n Statement statement = null;\n try {\n statement = Database.getDatabase().getConnection().createStatement();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n // Attempt to create table\n try {\n statement.execute(\n \"CREATE TABLE \" + Constants.SANITATION_TABLE + \"(\" +\n \"requestID INT PRIMARY KEY GENERATED ALWAYS AS IDENTITY (START WITH 1, INCREMENT BY 1),\" +\n \"nodeID VARCHAR(100) References \" + Constants.LOCATION_TABLE + \" (nodeID), \" +\n \"priority VARCHAR(10), \" +\n \"status VARCHAR(100), \" +\n \"description VARCHAR(100), \" +\n \"requesterID INT REFERENCES \" + Constants.USERS_TABLE + \"(userID), \" +\n \"requestTime TIMESTAMP, \" +\n \"servicerID INT REFERENCES \" + Constants.USERS_TABLE + \"(userID), \" +\n \"claimedTime TIMESTAMP, \" +\n \"completedTime TIMESTAMP, \" +\n \"CONSTRAINT priority_enum CHECK (priority in ('LOW', 'MEDIUM', 'HIGH')), \" +\n \"CONSTRAINT status_enum CHECK (status in ('INCOMPLETE', 'COMPLETE')))\"\n );\n } catch (SQLException | NullPointerException e) {\n e.printStackTrace();\n }\n }", "BTable createBTable();", "@Override\r\n\tpublic void create() {\n\t\t\r\n\t}", "@Override\n\tpublic void create() {\n\t\t\n\t}", "public abstract Anuncio creaAnuncioTematico();", "long createDatabase(long actor, String nameToDisplay, long proteinDBType, long sizeInBytes, boolean bPublic, boolean bReversed, ExperimentCategory category);", "TABLE createTABLE();", "private void processCreateTable(int type) throws HsqlException {\n\n String token = tokenizer.getName();\n HsqlName schemaname =\n session.getSchemaHsqlNameForWrite(tokenizer.getLongNameFirst());\n\n database.schemaManager.checkUserTableNotExists(session, token,\n schemaname.name);\n\n boolean isnamequoted = tokenizer.wasQuotedIdentifier();\n int[] pkCols = null;\n int colIndex = 0;\n boolean constraint = false;\n Table t = newTable(type, token, isnamequoted, schemaname);\n\n tokenizer.getThis(Token.T_OPENBRACKET);\n\n while (true) {\n token = tokenizer.getString();\n\n switch (Token.get(token)) {\n\n case Token.CONSTRAINT :\n case Token.PRIMARY :\n case Token.FOREIGN :\n case Token.UNIQUE :\n case Token.CHECK :\n\n // fredt@users : check for quoted reserved words used as column names\n constraint = !tokenizer.wasQuotedIdentifier()\n && !tokenizer.wasLongName();\n }\n\n tokenizer.back();\n\n if (constraint) {\n break;\n }\n\n Column newcolumn = processCreateColumn();\n\n t.addColumn(newcolumn);\n\n if (newcolumn.isPrimaryKey()) {\n Trace.check(pkCols == null, Trace.SECOND_PRIMARY_KEY,\n newcolumn.columnName.name);\n\n pkCols = new int[]{ colIndex };\n }\n\n token = tokenizer.getSimpleToken();\n\n if (token.equals(Token.T_COMMA)) {\n colIndex++;\n\n continue;\n }\n\n if (token.equals(Token.T_CLOSEBRACKET)) {\n break;\n }\n\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n\n HsqlArrayList tempConstraints = processCreateConstraints(t,\n constraint, pkCols);\n\n if (tokenizer.isGetThis(Token.T_ON)) {\n if (!t.isTemp) {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, Token.T_ON);\n }\n\n tokenizer.getThis(Token.T_COMMIT);\n\n token = tokenizer.getSimpleToken();\n\n if (token.equals(Token.T_DELETE)) {}\n else if (token.equals(Token.T_PRESERVE)) {\n t.onCommitPreserve = true;\n } else {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n\n tokenizer.getThis(Token.T_ROWS);\n }\n\n try {\n session.commit();\n\n Constraint primaryConst = (Constraint) tempConstraints.get(0);\n\n t.createPrimaryKey(null, primaryConst.core.mainColArray, true);\n\n if (primaryConst.core.mainColArray != null) {\n if (primaryConst.constName == null) {\n primaryConst.constName = t.makeSysPKName();\n }\n\n Constraint newconstraint =\n new Constraint(primaryConst.constName, t,\n t.getPrimaryIndex(),\n Constraint.PRIMARY_KEY);\n\n t.addConstraint(newconstraint);\n database.schemaManager.registerConstraintName(\n primaryConst.constName.name, t.getName());\n }\n\n for (int i = 1; i < tempConstraints.size(); i++) {\n Constraint tempConst = (Constraint) tempConstraints.get(i);\n\n if (tempConst.constType == Constraint.UNIQUE) {\n TableWorks tableWorks = new TableWorks(session, t);\n\n tableWorks.createUniqueConstraint(\n tempConst.core.mainColArray, tempConst.constName);\n\n t = tableWorks.getTable();\n }\n\n if (tempConst.constType == Constraint.FOREIGN_KEY) {\n TableWorks tableWorks = new TableWorks(session, t);\n\n tableWorks.createForeignKey(tempConst.core.mainColArray,\n tempConst.core.refColArray,\n tempConst.constName,\n tempConst.core.refTable,\n tempConst.core.deleteAction,\n tempConst.core.updateAction);\n\n t = tableWorks.getTable();\n }\n\n if (tempConst.constType == Constraint.CHECK) {\n TableWorks tableWorks = new TableWorks(session, t);\n\n tableWorks.createCheckConstraint(tempConst,\n tempConst.constName);\n\n t = tableWorks.getTable();\n }\n }\n\n database.schemaManager.linkTable(t);\n } catch (HsqlException e) {\n\n// fredt@users 20020225 - comment\n// if a HsqlException is thrown while creating table, any foreign key that has\n// been created leaves it modification to the expTable in place\n// need to undo those modifications. This should not happen in practice.\n database.schemaManager.removeExportedKeys(t);\n database.schemaManager.removeIndexNames(t.tableName);\n database.schemaManager.removeConstraintNames(t.tableName);\n\n throw e;\n }\n }", "@Override\n\tpublic void create() {\n\n\t}", "public void testCreateTable() {\n LOG.info(\"Entering testCreateTable.\");\n\n // Specify the table descriptor.\n HTableDescriptor htd = new HTableDescriptor(tableName);\n\n // Set the column family name to info.\n HColumnDescriptor hcd = new HColumnDescriptor(\"info\");\n\n // Set data encoding methods,HBase provides DIFF,FAST_DIFF,PREFIX\n // and PREFIX_TREE\n hcd.setDataBlockEncoding(DataBlockEncoding.FAST_DIFF);\n\n // Set compression methods, HBase provides two default compression\n // methods:GZ and SNAPPY\n // GZ has the highest compression rate,but low compression and\n // decompression effeciency,fit for cold data\n // SNAPPY has low compression rate, but high compression and\n // decompression effeciency,fit for hot data.\n // it is advised to use SANPPY\n hcd.setCompressionType(Compression.Algorithm.SNAPPY);\n\n htd.addFamily(hcd);\n\n Admin admin = null;\n try {\n // Instantiate an Admin object.\n admin = conn.getAdmin();\n if (!admin.tableExists(tableName)) {\n LOG.info(\"Creating table...\");\n admin.createTable(htd);\n LOG.info(admin.getClusterStatus());\n LOG.info(admin.listNamespaceDescriptors());\n LOG.info(\"Table created successfully.\");\n } else {\n LOG.warn(\"table already exists\");\n }\n } catch (IOException e) {\n LOG.error(\"Create table failed.\");\n } finally {\n if (admin != null) {\n try {\n // Close the Admin object.\n admin.close();\n } catch (IOException e) {\n LOG.error(\"Failed to close admin \", e);\n }\n }\n }\n LOG.info(\"Exiting testCreateTable.\");\n }", "public CreateData() {\n\t\t\n\t\t// TODO Auto-generated constructor stub\n\t}", "boolean createTable();", "@Override\r\n public Db_db createTable (Db_table table)\r\n {\r\n Db_db db = null;\r\n String query = \"CREATE TABLE IF NOT EXISTS \"+ table.getName() + \" (\"; \r\n String primaryKeyName = null;\r\n Set<Map.Entry<String, Db_tableColumn>> tableEntries;\r\n List<String> listOfUniqueKey = Lists.newArrayList();\r\n \r\n if(curConnection_ != null)\r\n {\r\n try\r\n {\r\n tableEntries = table.getEntrySet();\r\n for(Map.Entry<String, Db_tableColumn> entry: tableEntries)\r\n {\r\n Db_tableColumn entryContent = entry.getValue();\r\n \r\n if(entryContent.isPrimary() && primaryKeyName == null)\r\n {\r\n primaryKeyName = entryContent.getName();\r\n }\r\n else if(entryContent.isPrimary() && primaryKeyName != null)\r\n {\r\n throw new NumberFormatException();\r\n }\r\n \r\n if(itsAttributeMapper_ == null)\r\n {\r\n throw new NumberFormatException();\r\n }\r\n \r\n if(entryContent.isUnique())\r\n {\r\n listOfUniqueKey.add(entryContent.getName());\r\n }\r\n \r\n String mappedAttribute = this.itsAttributeMapper_.MapAttribute(entryContent.getAttributeName());\r\n if(entryContent.getAttribute().isEnum())\r\n {\r\n mappedAttribute += entryContent.getAttribute().buildEnumValueListString();\r\n }\r\n query += entryContent.getName() + \" \" + mappedAttribute \r\n + (entryContent.isAutoIncreasmnet()?\" AUTO_INCREMENT \":\" \")\r\n + (entryContent.isUnique()?\" UNIQUE, \": \", \");\r\n }\r\n \r\n query += \"PRIMARY KEY (\" + primaryKeyName + \"));\";\r\n try (Statement sm = curConnection_.createStatement()) {\r\n sm.executeUpdate(query);\r\n db = this.curDb_;\r\n }\r\n \r\n }catch(NumberFormatException e){System.out.print(e);}\r\n catch(SQLException e){System.out.print(query);this.CurConnectionFailed();}\r\n }\r\n return db;\r\n }", "public Hoppy insert(Hoppy hoppy, IdGenerateService<Long> idGenerateService) throws DataAccessException;", "interface WithCreate extends\n SqlElasticPoolOperations.DefinitionStages.WithDatabaseDtuMin,\n SqlElasticPoolOperations.DefinitionStages.WithDatabaseDtuMax,\n SqlElasticPoolOperations.DefinitionStages.WithDtu,\n SqlElasticPoolOperations.DefinitionStages.WithStorageCapacity,\n SqlElasticPoolOperations.DefinitionStages.WithDatabase,\n Resource.DefinitionWithTags<SqlElasticPoolOperations.DefinitionStages.WithCreate>,\n Creatable<SqlElasticPool> {\n }", "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:49.404 -0500\", hash_original_method = \"CD5C82C799E78C74801FDB521CEE7324\", hash_generated_method = \"CD5C82C799E78C74801FDB521CEE7324\")\n \nContext ()\n {\n copyTables();\n }", "OrTable createOrTable();", "public abstract void create();", "DT createDT();", "@Override\n public void createSchema(Properties props)\n {\n Statement statement;\n try\n {\n statement = connection.createStatement();\n \n //Drop Indexes\n dropIndex(statement, \"CONFFRIENDSHIP_INVITEEID\", \"CONFFRIENDSHIP\");\n dropIndex(statement, \"CONFFRIENDSHIP_INVITERID\", \"CONFFRIENDSHIP\");\n dropIndex(statement, \"PENDFRIENDSHIP_INVITEEID\", \"PENDFRIENDSHIP\");\n dropIndex(statement, \"PENDFRIENDSHIP_INVITERID\", \"PENDFRIENDSHIP\");\n dropIndex(statement, \"MANIPULATION_RID\", \"MANIPULATION\");\n dropIndex(statement, \"MANIPULATION_CREATORID\", \"MANIPULATION\");\n dropIndex(statement, \"RESOURCES_WALLUSERID\", \"RESOURCES\");\n dropIndex(statement, \"RESOURCE_CREATORID\", \"RESOURCES\");\n \n //Drop Tables\n dropTable(statement, \"CONFFRIENDSHIP\");\n dropTable(statement, \"PENDFRIENDSHIP\");\n dropTable(statement, \"MANIPULATION\");\n dropTable(statement, \"RESOURCES\");\n dropTable(statement, \"USERS\");\n \n //Create Tables\n statement.executeUpdate(\"CREATE TABLE CONFFRIENDSHIP \" + \"(INVITERID INTEGER NOT NULL, \" + \"INVITEEID INTEGER NOT NULL, \" + \"PRIMARY KEY (INVITERID, INVITEEID))\");\n statement.executeUpdate(\"CREATE TABLE PENDFRIENDSHIP \" + \"(INVITERID INTEGER NOT NULL, \" + \"INVITEEID INTEGER NOT NULL, \" + \"PRIMARY KEY (INVITERID, INVITEEID))\");\n statement.executeUpdate(\"CREATE TABLE MANIPULATION \" + \"(MID INTEGER NOT NULL, \" + \"MODIFIERID INTEGER NOT NULL, \" + \"RID INTEGER NOT NULL, \" + \"CREATORID INTEGER NOT NULL, \" + \"TIMESTAMP VARCHAR(200), \" + \"TYPE VARCHAR(200), \" + \"CONTENT VARCHAR(200), \" + \"PRIMARY KEY (MID,RID))\");\n statement.executeUpdate(\"CREATE TABLE RESOURCES \" + \"(RID INTEGER NOT NULL , \" + \"CREATORID INTEGER NOT NULL, \" + \"WALLUSERID INTEGER NOT NULL, \" + \"TYPE VARCHAR(200), \" + \"BODY VARCHAR(200), \" + \"DOC VARCHAR(200), \" + \"PRIMARY KEY (RID))\");\n statement.executeUpdate(\"CREATE TABLE USERS \" + \"(USERID INTEGER NOT NULL , \" + \"USERNAME VARCHAR(200), \" + \"PW VARCHAR(200), \" + \"FNAME VARCHAR(200), \" + \"LNAME VARCHAR(200), \" + \"GENDER VARCHAR(200),\" + \"DOB VARCHAR(200), \" + \"JDATE VARCHAR(200), \" + \"LDATE VARCHAR(200), \" + \"ADDRESS VARCHAR(200),\" + \"EMAIL VARCHAR(200), \" + \"TEL VARCHAR(200), \" + \"PRIMARY KEY (USERID))\");\n \n //Add Foreign Keys\n statement.executeUpdate(\"ALTER TABLE CONFFRIENDSHIP \" + \"ADD CONSTRAINT CONFFRIENDSHIP_USERS_FK1 FOREIGN KEY (INVITERID)\" + \"REFERENCES USERS (USERID) ON DELETE CASCADE\");\n statement.executeUpdate(\"ALTER TABLE CONFFRIENDSHIP \" + \"ADD CONSTRAINT CONFFRIENDSHIP_USERS_FK2 FOREIGN KEY (INVITEEID)\" + \"REFERENCES USERS (USERID) ON DELETE NO ACTION\");\n statement.executeUpdate(\"ALTER TABLE PENDFRIENDSHIP \" + \"ADD CONSTRAINT PENDFRIENDSHIP_USERS_FK1 FOREIGN KEY (INVITERID)\" + \"REFERENCES USERS (USERID) ON DELETE CASCADE\");\n statement.executeUpdate(\"ALTER TABLE PENDFRIENDSHIP \" + \"ADD CONSTRAINT PENDFRIENDSHIP_USERS_FK2 FOREIGN KEY (INVITEEID)\" + \"REFERENCES USERS (USERID) ON DELETE NO ACTION\");\n statement.executeUpdate(\"ALTER TABLE MANIPULATION \" + \"ADD CONSTRAINT MANIPULATION_RESOURCES_FK1 FOREIGN KEY (RID)\" + \"REFERENCES RESOURCES (RID) ON DELETE CASCADE\");\n statement.executeUpdate(\"ALTER TABLE MANIPULATION \" + \"ADD CONSTRAINT MANIPULATION_USERS_FK1 FOREIGN KEY (CREATORID)\" + \"REFERENCES USERS (USERID) ON DELETE NO ACTION\");\n statement.executeUpdate(\"ALTER TABLE MANIPULATION \" + \"ADD CONSTRAINT MANIPULATION_USERS_FK2 FOREIGN KEY (MODIFIERID)\" + \"REFERENCES USERS (USERID) ON DELETE NO ACTION\");\n statement.executeUpdate(\"ALTER TABLE RESOURCES \" + \"ADD CONSTRAINT RESOURCES_USERS_FK1 FOREIGN KEY (CREATORID)\" + \"REFERENCES USERS (USERID) ON DELETE CASCADE\");\n statement.executeUpdate(\"ALTER TABLE RESOURCES \" + \"ADD CONSTRAINT RESOURCES_USERS_FK2 FOREIGN KEY (WALLUSERID)\" + \"REFERENCES USERS (USERID) ON DELETE NO ACTION\");\n \n //Create Indexes\n buildIndexes(null);\n }\n catch (SQLException ex)\n {\n Logger.getLogger(WindowsAzureClientInit.class.getName()).log(Level.SEVERE, null, ex);\n System.out.println(\"Error in creating schema!\");\n }\n }", "public void createTable() throws LRException\n\t{\n\t\tgetBackground();\n\t\tDataHRecordData myData=(DataHRecordData)getData();\n\t\t// Create a new (empty) record\n\t\tcreate(new Hashtable(),myData);\n\t\tif (myData.record==null) throw new LRException(DataRMessages.nullRecord(getName()));\n\t\ttry\n\t\t{\n\t\t\tbackground.newTransaction();\n\t\t\tmyData.record.createNewTable(background.getClient(),true);\n\t\t}\n\t\tcatch (LDBException e) { setStatus(e); }\n\t}", "public boolean createTable(String input) throws IOException{\n\t\tString orgQuery = input;\n\t\torgQuery = orgQuery.trim();\n\t\tString query = input.toLowerCase().trim();\n\t\tboolean queryFailed = false;\n\t\t//Schema Instance \n\t\tSchema currentSchema = Schema.getSchemaInstance();\n\t\tString currentSchemaName = currentSchema.getCurrentSchema();\n\n\t\t//TableSchemaManager Instance\n\t\tTableSchemaManager currentTableSchemaManager = TableSchemaManager.getTableSchemaManagerInstance();\n\n\t\t//Extracting Table name\n\t\ttableName = orgQuery.substring(query.indexOf(\"table \")+6,query.indexOf(\"(\")).trim();\n\n\t\t//Updating SCHEMA.TABLE.TBL\n\t\tif(updateInformationSchemaTable()){\n\t\t\tqueryFailed = true;\n\t\t\treturn queryFailed;\n\t\t}\n\n\t\t//Extracting Table contents\n\t\tString tableContentsWithQuotes = orgQuery.substring(orgQuery.indexOf(\"(\")+1,orgQuery.length());\n\t\tString tableContents = tableContentsWithQuotes.replace(\"))\", \")\");\n\t\ttableContents = tableContents.trim();\n\n\t\tTableSchemaManager.ordinalMap = new TreeMap<Integer,List<String>>();\n\t\tTableSchemaManager.tableMap = new TreeMap<String,TreeMap<Integer,List<String>>>();\n\t\t\n\t\t//Creating n instances of Table helper\n\t\tString[] createTableContents = tableContents.split(\"\\\\,\"); \n\t\tnoOfColumns = createTableContents.length;\n\t\tCreateTableHelper[] th = new CreateTableHelper[noOfColumns];\n\n\t\t\n\t\t//Handles single row of Create Table \n\t\tfor(int item = 0; item < noOfColumns ; item++){\n\t\t\tth[item] = new CreateTableHelper(); \n\t\t\t//To remove any leading or trailing spaces\n\t\t\tcreateTableContents[item] = createTableContents[item].trim();\n\t\t\tString columnName = createTableContents[item].substring(0, createTableContents[item].indexOf(\" \"));\n\t\t\tth[item].setColumnName(columnName);\n\n\t\t\t//Setting Primary Key\n\t\t\tString primaryKeyExp = \"(.*)[pP][rR][iI][mM][aA][rR][yY](.*)\";\n\t\t\tif (createTableContents[item].matches(primaryKeyExp))\n\t\t\t\tth[item].setPrimaryKey(true);\n\t\t\telse\n\t\t\t\tth[item].setPrimaryKey(false);\n\n\t\t\t//Setting Null Value\t\n\t\t\tString notNullExp = \"(.*)[nN][uU][lL][lL](.*)\";\n\t\t\tif (createTableContents[item].matches(notNullExp))\n\t\t\t\tth[item].setNull(true);\n\t\t\telse\n\t\t\t\tth[item].setNull(false);\n\n\t\t\t//Extracting data types \n\t\t\t//BYTE\n\t\t\tString byteExp = \"(.*)[bB][yY][tT][eE](.*)\";\n\t\t\tif (createTableContents[item].matches(byteExp)){\n\t\t\t\tth[item].setDataType(\"BYTE\");\n\t\t\t}\n\t\t\t//SHORT\n\t\t\tString shortExp = \"(.*)[sS][hH][oO][rR][tT](.*)\";\n\t\t\tif (createTableContents[item].matches(shortExp)){\n\t\t\t\tth[item].setDataType(\"SHORT\");\n\t\t\t}\n\t\t\t//INT\n\t\t\tString intExp = \"(.*)[iI][nN][tT](.*)\";\n\t\t\tif (createTableContents[item].matches(intExp)){\n\t\t\t\tth[item].setDataType(\"INT\");\n\t\t\t}\n\t\t\t//LONG\n\t\t\tString longExp = \"(.*)[lL][oO][nN][gG](.*)\";\n\t\t\tif (createTableContents[item].matches(longExp)){\n\t\t\t\tth[item].setDataType(\"LONG\");\n\t\t\t}\n\t\t\t//CHAR\n\t\t\tString charExp = \"(.*)[cC][hH][aA][rR](.*)\";\n\t\t\tif (createTableContents[item].matches(charExp)){\n\t\t\t\tString size = createTableContents[item].substring(createTableContents[item].indexOf(\"(\")+1, createTableContents[item].indexOf(\")\"));\n\t\t\t\tth[item].setDataType(\"CHAR(\" + size + \")\");\n\t\t\t}\n\t\t\t//VARCHAR\n\t\t\tString varcharExp = \"(.*)[vV][aA][rR][cC][hH][aA][rR](.*)\";\n\t\t\tif (createTableContents[item].matches(varcharExp)){\n\t\t\t\tString size = createTableContents[item].substring(createTableContents[item].indexOf(\"(\")+1, createTableContents[item].indexOf(\")\"));\n\t\t\t\tth[item].setDataType(\"VARCHAR(\" + size + \")\");\n\t\t\t}\n\t\t\t//FLOAT\n\t\t\tString floatExp = \"(.*)[fF][lL][oO][aA][tT](.*)\";\n\t\t\tif (createTableContents[item].matches(floatExp)){\n\t\t\t\tth[item].setDataType(\"FLOAT\");\t\t\t\t\n\t\t\t}\n\t\t\t//DOUBLE\n\t\t\tString doubleExp = \"(.*)[dD][oO][uU][bB][lL][eE](.*)\";\n\t\t\tif (createTableContents[item].matches(doubleExp)){\n\t\t\t\tth[item].setDataType(\"DOUBLE\");\n\t\t\t}\n\t\t\t//DATETIME\n\t\t\tString dateTimeExp = \"(.*)[dD][aA][tT][eE][tT][iI][mM][eE](.*)\";\n\t\t\tif (createTableContents[item].matches(dateTimeExp)){\n\t\t\t\tth[item].setDataType(\"DATETIME\");\n\t\t\t}\n\t\t\t//DATE\n\t\t\tString dateExp = \"(.*)[dD][aA][tT][eE](.*)\";\n\t\t\tif (createTableContents[item].matches(dateExp)){\n\t\t\t\tth[item].setDataType(\"DATE\");\n\t\t\t}\n\n\t\t\tcurrentTableSchemaManager.newTableSchema(\n\t\t\t\t\ttableName,\n\t\t\t\t\titem,\n\t\t\t\t\tth[item].getColumnName(),\n\t\t\t\t\tth[item].getDataType(),\n\t\t\t\t\tth[item].isNull(),\n\t\t\t\t\tth[item].isPrimaryKey()\n\t\t\t\t\t);\n\n\t\t\t//Updating SCHEMA.COLUMNS.TBL\n\t\t\tupdateInformationSchemaColumn(\n\t\t\t\t\tth[item].getColumnName(),\n\t\t\t\t\titem,\n\t\t\t\t\tth[item].getDataType(),\n\t\t\t\t\tth[item].isNull(),\n\t\t\t\t\tth[item].isPrimaryKey()\n\t\t\t\t\t);\n\t\t\t//Create tables to insert index\n\t\t\tString newTableIndexName = currentSchemaName + \".\" + tableName + \".\" +th[item].getColumnName()+ \".tbl.ndx\";\n\t\t\tRandomAccessFile newTableIndexFile = new RandomAccessFile(newTableIndexName, \"rw\");\n\t\t\tnewTableIndexFile.close();\n\n\t\t}\n\n\t\tTableSchemaManager.tableMap.put(tableName, TableSchemaManager.ordinalMap);\n\t\tcurrentTableSchemaManager.updateTableSchema(currentSchemaName,tableName);\n\t\t\n\t\t//Create tables to insert data \n\t\tString newTableDataName = currentSchemaName + \".\" + tableName + \".tbl\";\n\t\tRandomAccessFile newTableDataFile = new RandomAccessFile(newTableDataName, \"rw\");\n\t\tnewTableDataFile.close();\n\t\treturn queryFailed;\n\t}", "public String createDSIndex(String dsID, String dschemaID, String attriName);", "private void createStressTestControlTable() {\n Column runId = new Column(\"RUN_ID\");\n runId.setMappedType(\"INTEGER\");\n runId.setPrimaryKey(true);\n runId.setRequired(true);\n Column clientCommitSleepMs = new Column(\"CLIENT_COMMIT_SLEEP_MS\");\n clientCommitSleepMs.setMappedType(\"BIGINT\");\n Column clientCommitRows = new Column(\"CLIENT_COMMIT_ROWS\");\n clientCommitRows.setMappedType(\"BIGINT\");\n Column serverCommitSleepMs = new Column(\"SERVER_COMMIT_SLEEP_MS\");\n serverCommitSleepMs.setMappedType(\"BIGINT\");\n Column serverCommitRows = new Column(\"SERVER_COMMIT_ROWS\");\n serverCommitRows.setMappedType(\"BIGINT\");\n Column payloadColumns = new Column(\"PAYLOAD_COLUMNS\");\n payloadColumns.setMappedType(\"INTEGER\");\n Column initialSeedSize = new Column(\"INITIAL_SEED_SIZE\");\n initialSeedSize.setMappedType(\"BIGINT\");\n Column duration = new Column(\"DURATION_MINUTES\");\n duration.setMappedType(\"BIGINT\");\n\n Table table = new Table(STRESS_TEST_CONTROL, runId, clientCommitSleepMs, clientCommitRows, serverCommitSleepMs, serverCommitRows,\n payloadColumns, initialSeedSize, duration);\n engine.getDatabasePlatform().createTables(true, true, table);\n }", "@Override\r\n\tpublic void create() {\n\r\n\t}", "Statement createStatement();", "Statement createStatement();", "Statement createStatement();", "public void doCreateTable();", "@Override\n public Pipe execute(DBMS engine) throws DBxicException {\n engine.storManager.createTable(table);\n engine.catalog.saveCatalog();\n return new MessageThroughPipe(\"Table \" + table.getName() + \" successfully created\");\n }", "@Override\n public void setUp() throws SQLException {\n connection.createStatement().executeUpdate(\n \"CREATE TABLE IF NOT EXISTS \\\"ENTRY\\\" (\" +\n \"\\\"SHARED_ID\\\" SERIAL PRIMARY KEY, \" +\n \"\\\"TYPE\\\" VARCHAR, \" +\n \"\\\"VERSION\\\" INTEGER DEFAULT 1)\");\n\n connection.createStatement().executeUpdate(\n \"CREATE TABLE IF NOT EXISTS \\\"FIELD\\\" (\" +\n \"\\\"ENTRY_SHARED_ID\\\" INTEGER REFERENCES \\\"ENTRY\\\"(\\\"SHARED_ID\\\") ON DELETE CASCADE, \" +\n \"\\\"NAME\\\" VARCHAR, \" +\n \"\\\"VALUE\\\" TEXT)\");\n\n connection.createStatement().executeUpdate(\n \"CREATE TABLE IF NOT EXISTS \\\"METADATA\\\" (\"\n + \"\\\"KEY\\\" VARCHAR,\"\n + \"\\\"VALUE\\\" TEXT)\");\n }", "private void m14053d() {\n try {\n File file = new File(f18051l);\n File file2 = new File(f18052m);\n if (!file.exists()) {\n file.mkdirs();\n }\n if (!file2.exists()) {\n file2.createNewFile();\n }\n if (file2.exists()) {\n SQLiteDatabase openOrCreateDatabase = SQLiteDatabase.openOrCreateDatabase(file2, null);\n openOrCreateDatabase.execSQL(\"CREATE TABLE IF NOT EXISTS bdcltb09(id CHAR(40) PRIMARY KEY,time DOUBLE,tag DOUBLE, type DOUBLE , ac INT);\");\n openOrCreateDatabase.execSQL(\"CREATE TABLE IF NOT EXISTS wof(id CHAR(15) PRIMARY KEY,mktime DOUBLE,time DOUBLE, ac INT, bc INT, cc INT);\");\n openOrCreateDatabase.setVersion(1);\n openOrCreateDatabase.close();\n }\n this.f18053a = true;\n } catch (Exception e) {\n }\n }", "interface WithDtu {\n /**\n * Sets the total shared DTU for the SQL Azure Database Elastic Pool.\n *\n * @param dtu total shared DTU for the SQL Azure Database Elastic Pool\n * @return The next stage of the definition.\n */\n @Deprecated\n SqlElasticPoolOperations.DefinitionStages.WithCreate withDtu(int dtu);\n }", "@POST\n @Produces({\"application/json\"})\n public String createDb() throws WebApplicationException {\n HibernateEntityManager emAdm = PersistenceManager.getInstance().getEntityManagerAdmin();\n SQLQuery qCreate = emAdm.getSession().createSQLQuery(\"CREATE DATABASE test_jeff template=postgis\");\n try{\n qCreate.executeUpdate();\n }catch(SQLGrammarException e){\n System.out.println(\"Error !!\" + e.getSQLException());\n emAdm.close();\n return e.getSQLException().getLocalizedMessage();\n }\n emAdm.close();\n Map properties = new HashMap();\n //change the connection string to the new db\n properties.put(\"hibernate.connection.url\", \"jdbc:postgresql_postGIS://192.168.12.36:5432/test_jeff\");\n EntityManagerFactory emf = Persistence.createEntityManagerFactory(\"dataPU\", properties); \n return \"Yeah\";\n }", "public abstract void createTables() throws DataServiceException;", "@Override\n\tpublic void create () {\n\n\t}", "@Test\n public void shouldCreateEpiDataGathering() {\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(0));\n\n Case caze = TestEntityCreator.createCase();\n TestEntityCreator.createEpiDataGathering(caze);\n\n // Assure that the burial has been successfully created\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(1));\n }", "Udt createUdt();", "OperacionColeccion createOperacionColeccion();", "public void create(AttributeList attributeList)\n {\n\n super.create(attributeList); \n \n OADBTransaction transaction = getOADBTransaction();\n \n // DEFAULT: supplier id is obtained from the table's sequence\n Number supplierId = transaction.getSequenceValue(\"FWK_TBX_SUPPLIERS_S\");\n setSupplierId(supplierId);\n\n // DEFAULT: start date should be set to sysdate\n setStartDate(transaction.getCurrentDBDate());\n\n \n }", "Definition createDefinition();", "H1 createH1();", "private static void createDatabase(String restrictedUser) throws ArcException {\n\t\tGenericPreparedStatementBuilder query;\n\n\t\t// clean database\n\t\tquery = new GenericPreparedStatementBuilder();\n\t\tquery.append(\"DROP SCHEMA IF EXISTS \" + DataObjectService.ARC_METADATA_SCHEMA + \" CASCADE;\");\n\t\tquery.append(\"DROP SCHEMA IF EXISTS \" + testSandbox1 + \" CASCADE;\");\n\t\tquery.append(\"DROP SCHEMA IF EXISTS public CASCADE;\");\n\t\tUtilitaireDao.get(0).executeRequest(c, query);\n\t\t\n\t\tBddPatcher patcher=new BddPatcher();\n\t\tpatcher.getProperties().setGitCommitId(newVersion);\n\t\tpatcher.getProperties().setDatabaseRestrictedUsername(userWithRestrictedRights);\n\n\t\t// metadata schema creation\n\t\tpatcher.bddScript(c);\n\t\t// sandbox schema creation\n\t\tpatcher.bddScript(c, testSandbox1, testSandbox2, testSandbox8);\n\t\t\n\t}", "Operacion createOperacion();", "private synchronized String processCreate(String query) {\r\n\t\tString[] valuesCommand = query.split(\" \");\r\n\t\tif ( valuesCommand.length != 3 )\r\n\t\t\treturn \"ERROR Bad syntaxe command CREATE - Usage : CREATE id initial_solde\";\r\n\t\tString id = valuesCommand[1];\r\n\t\tif ( this.bank.existAccount(id) ) {\r\n\t\t\treturn \"ERROR Account alwready exist\";\r\n\t\t}\r\n\t\tdouble number = Double.valueOf(valuesCommand[2]);\r\n\t\tthis.bank.createAccount(id, number);\r\n\t\treturn \"OK \" + this.bank.getLastOperation(id);\r\n\t}", "public void createNewSchema() throws SQLException {\n ResultSet resultSet = databaseStatement.executeQuery(\"select count(datname) from pg_database\");\n int uniqueID = 0;\n if(resultSet.next()) {\n uniqueID = resultSet.getInt(1);\n }\n if(uniqueID != 0) {\n uniqueID++;\n databaseStatement.executeQuery(\"CREATE DATABASE OSM\"+uniqueID+\";\");\n }\n }", "int insert(Lbt72TesuryoSumDPkey record);", "@Test(timeout = 4000)\n public void test124() throws Throwable {\n DefaultDBTable defaultDBTable0 = new DefaultDBTable();\n MockPrintWriter mockPrintWriter0 = new MockPrintWriter(\"Illegal column type format: \");\n String[] stringArray0 = new String[9];\n DBUniqueConstraint dBUniqueConstraint0 = new DBUniqueConstraint(defaultDBTable0, \"66i,cw\", true, stringArray0);\n NameSpec nameSpec0 = NameSpec.ALWAYS;\n SQLUtil.renderCreateTable(defaultDBTable0, true, nameSpec0, mockPrintWriter0);\n assertEquals(\"table\", defaultDBTable0.getObjectType());\n }", "int insert(NjProductTaticsRelation record);", "public de.uni_koblenz.jgralabtest.schemas.gretl.pddsl.Chassis createChassis();", "int insert(Disease record);", "private void creates() {\n \tDBPeer.fetchTableColumns();\n \tDBPeer.fetchTableRows();\n \tDBPeer.fetchTableIndexes();\n \t\n for (int i = 0; i < creates.size(); i++) {\n creates.get(i).init();\n }\n \n DBPeer.updateTableColumns();\n DBPeer.updateTableRows();\n DBPeer.updateTableIndexes();\n }", "InstAssignIndex createInstAssignIndex();", "WithCreate withCreationData(CreationData creationData);", "@Before\n public void createAndFillTable() {\n try {\n DBhandler dBhandler = new DBhandler(h2DbConnection);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "DataCfgTableInfo createTableIfNotExists(String dataCfgOid);", "H2 createH2();", "int insert(Lbm83ChohyokanriPkey record);", "HdbSequenceModel createHdbSequenceModel();", "DL createDL();", "For createFor();", "public org.oep.cmon.dao.tlct.model.DanhMucGiayTo create(long id);", "private Builder() {\n super(org.apache.gora.cascading.test.storage.TestRow.SCHEMA$);\n }", "public void createExempleDirect(ExempleDirect exempleDirect) throws DaoException;", "int insertSelective(NjProductTaticsRelation record);", "BIG createBIG();", "private void CreateDataIngestors() throws isisicatclient.IcatException_Exception {\n Grouping dataIngestors = new Grouping();\r\n dataIngestors.name = \"DataIngestors\";\r\n dataIngestors.id = port.create(sessionId, dataIngestors);\r\n dataIngestors = (Grouping) port.search(sessionId, \"Grouping[name='DataIngestors']\").get(0);\r\n\r\n List<String> ingestorTables = port.getEntityNames();\r\n\r\n ingestorTables.remove(\"Facility\");\r\n\r\n List<EntityBaseBean> ingestorRules = new ArrayList<>();\r\n for (String table : ingestorTables) {\r\n Rule rule = new Rule();\r\n rule.grouping = dataIngestors;\r\n rule.crudFlags = \"CRUD\"; //no delete permission for ingestors\r\n rule.what = table;\r\n ingestorRules.add(rule);\r\n }\r\n port.createMany(sessionId, ingestorRules);\r\n }", "H4 createH4();", "int insert(OrgIntegralDeductRule record);", "public void createDataTable() {\r\n Log.d(TAG, \"creating table\");\r\n String queryStr = \"\";\r\n String[] colNames = {Constants.COLUMN_NAME_ACC_X, Constants.COLUMN_NAME_ACC_Y, Constants.COLUMN_NAME_ACC_Z};\r\n queryStr += \"create table if not exists \" + Constants.TABLE_NAME;\r\n queryStr += \" ( id INTEGER PRIMARY KEY AUTOINCREMENT, \";\r\n for (int i = 1; i <= 50; i++) {\r\n for (int j = 0; j < 3; j++)\r\n queryStr += colNames[j] + \"_\" + i + \" real, \";\r\n }\r\n queryStr += Constants.COLUMN_NAME_ACTIVITY + \" text );\";\r\n execute(queryStr);\r\n Log.d(TAG, \"created table\");\r\n try {\r\n ContentValues values = new ContentValues();\r\n values.put(\"id\", 0);\r\n insertRowInTable(Constants.TABLE_NAME, values);\r\n Log.d(TAG,\"created hist table\");\r\n }catch (Exception e){\r\n Log.d(TAG,Constants.TABLE_NAME + \" table already exists\");\r\n }\r\n }", "public static void main(String[] args) {\n\t\tCreateTable createTable = new CreateTable();\n\n\t\tCity city = new City();\n\t\tcity.setId(1);\n\t\tcreateTable.execute(city);\n\n\t\tProvince province = new Province();\n\t\tprovince.setId(1);\n\t\tcreateTable.execute(province);\n\n\t\tTown town = new Town();\n\t\ttown.setId(1);\n\t\tcreateTable.execute(town);\n\n\t\tDetail detail = new Detail();\n\t\tdetail.setId(1);\n\t\tcreateTable.execute(detail);\n\n\t\tOrder order = new Order();\n\t\torder.setId(1);\n\t\tcreateTable.execute(order);\n\n\t\tBrand2 brand2 = new Brand2();\n\t\tbrand2.setId(1);\n\t\tcreateTable.execute(brand2);\n\n\t\tColor color = new Color();\n\t\tcolor.setId(1);\n\t\tcreateTable.execute(color);\n\n\t\tFeature feature = new Feature();\n\t\tfeature.setId(1);\n\t\tcreateTable.execute(feature);\n\n\t\tImg img = new Img();\n\t\timg.setId(1);\n\t\tcreateTable.execute(img);\n\n\t\tSku sku = new Sku();\n\t\tsku.setId(1);\n\t\tcreateTable.execute(sku);\n\n\t\tType type = new Type();\n\t\ttype.setId(1);\n\t\tcreateTable.execute(type);\n\n\t\tAddr addr = new Addr();\n\t\taddr.setId(1);\n\t\tcreateTable.execute(addr);\n\t\tcreateTable.execute(new Buyer());\n\n\t\t// 商品编号 商品名称 图片 新品 热卖 推荐 上下架 操作选项\n\t\tProduct product = new Product();\n\t\tproduct.setId(001);\n\t\tproduct.setNo(UUID.randomUUID().toString());\n\t\tproduct.setName(\"依琦莲2014瑜伽服套装新款 瑜珈健身服三件套 广场舞蹈服装 女瑜伽服送胸垫 长袖紫色\");\n\t\tproduct.setWeight(56.00);\n\t\tproduct.setIsNew(1); // 1是 0否\n\t\tproduct.setIsHot(1);\n\t\tproduct.setCreateTime(new Date());\n\t\tproduct.setCheckUserId(\"\");\n\t\tproduct.setCheckTime(new Date());\n\t\tproduct.setCreateUserId(\"\");\n\t\tproduct.setIsShow(1);\n\t\tproduct.setIsDel(1);\n\t\tproduct.setTypeId(1);\n\t\tproduct.setBrandId(1);\n\t\tproduct.setKeywords(\"\");\n\t\tproduct.setSales(36);\n\t\tproduct.setDescription(\"不是东西\");\n\t\tproduct.setPackageList(\"\");\n\t\tproduct.setFeature(\"头角狰狞\");\n\t\tproduct.setColor(\"blue\");\n\t\tproduct.setSize(\"L\"); // S,L,XXL\n\t\tcreateTable.execute(product);\n\n\t\t// insert into\n\t\t// Product(id,no,name,weight,isNew,isHot,sales,description,feature,size)value(1,\"11xzc3568\",\"依琦莲2014瑜伽服套装新款女瑜伽服送胸垫\n\t\t// 长袖紫色\",36.12,1,1,110,\"不是东西\",\"头角狰狞\",\"blue\",\"L\");\n\n\t\tEmployee employee = new Employee();\n\t\temployee.setId(1);\n\t\tcreateTable.execute(employee);\n\n\t}", "Vaisseau_ordonneeLaPlusHaute createVaisseau_ordonneeLaPlusHaute();", "private void createCheckingAccountsTable() {\n\t\ttry {\n\t\t\tStatement stmt = this.conn.createStatement();\n\t\t\tstmt.executeUpdate(\"CREATE TABLE checkingAccounts \"\n\t\t\t\t\t+ \"(id BIGINT GENERATED ALWAYS AS IDENTITY ( START WITH 1000000001, INCREMENT BY 1 ), \" + \"owner INT, \"\n\t\t\t\t\t+ \"balance DOUBLE, \" + \"intRate DOUBLE, \"\n\t\t\t\t\t+ \"timeCreated BIGINT, \" + \"lastPaidInterest DOUBLE, \"\n\t\t\t\t\t+ \"dateOfLastPaidInterest BIGINT)\");\n\t\t\tconn.commit();\n\t\t\tSystem.out.println(\"Created table checkingAccounts\");\n\t\t} catch (SQLException sqle) {\n\t\t\tSystem.err.println(\"Creation of checkingAccounts table FAILED\");\n\t\t\tSystem.err.println(sqle);\n\t\t}\n\t}", "@Ignore\n @Test\n public void testCreateIndex() {\n System.out.println(\"createIndex\");\n Util.commonServiceIPs=\"127.0.0.1\";\n \n EntityManager em=Util.getEntityManagerFactory(100).createEntityManager();\n EntityManager platformEm = Util.getPlatformEntityManagerFactory().createEntityManager();\n \n Client client = ESUtil.getClient(em,platformEm,1,false);\n \n RuntimeContext.dataobjectTypes = Util.getDataobjectTypes();\n String indexName = \"test000000\";\n try {\n ESUtil.createIndex(platformEm, client, indexName, true);\n }\n catch(Exception e)\n {\n \n }\n \n\n }", "public void createVirtualTable(){\n\n\t\t\n\t\tif(DBHandler.getConnection()==null){\n\t\t\treturn;\n\t\t}\n\n\t\tif(DBHandler.tableExists(name())){\n\t\t\treturn;\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tStatement s = DBHandler.getConnection().createStatement();\n\t\t\ts.execute(\"create virtual table \"+name()+\" using fts4(\"+struct()+\")\");\n\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\tMainFrame.print(e.getMessage());\n\t\t}\n\t}", "public int create (Section section) throws DataAccessException;", "protected abstract void createAttributes();", "private MetaSparqlRequest createInsertMT1() {\n\t\tString sparqlStr = \"\"+\n\t\t\t\t\"PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>\\r\\n\" + \n\t\t\t\t\"PREFIX ub: \"+_ontology+\"\\r\\n\" + \n\t\t\t\t\"INSERT DATA { GRAPH \"+_graph+\" { \"+\n\t\t\t\tbuilderBindInsert\n\t\t\t\t+\" } }\";\n\t\t\n\t\tSparqlObj sparql= new SparqlObj(sparqlStr) ;\n\t\tEndPoint endPointHost= new EndPoint(_protocol,_host,_port,\"/update\");\n\t\tMetaSparqlRequest msr = new MetaSparqlRequest(new SparqlRequest(sparql,endPointHost));\n\t\tmsr.setTripleInsert(createTripleBaseMT1());\n\t\treturn msr;\n\t}", "public void createTables(){\n Map<String, String> name_type_map = new HashMap<>();\n List<String> primaryKey = new ArrayList<>();\n try {\n name_type_map.put(KEY_SINK_NAME, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_SINK_ADDRESS, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_SINK_DETAIL, MyDatabase.TYPE_VARCHAR);\n primaryKey.add(KEY_SINK_ADDRESS);\n myDatabase.createTable(TABLE_SINK, name_type_map, primaryKey, null);\n }catch (MySQLException e){ //数据表已存在\n e.print();\n }\n try {\n name_type_map.clear();\n name_type_map.put(KEY_NODE_NAME, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_PARENT, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_DETAIL, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_ADDRESS,MyDatabase.TYPE_VARCHAR);\n primaryKey.clear();\n primaryKey.add(KEY_NODE_PARENT);\n primaryKey.add(KEY_NODE_ADDRESS);\n myDatabase.createTable(TABLE_NODE, name_type_map, primaryKey, null);\n }catch (MySQLException e){\n e.print();\n }\n\n try {\n name_type_map.clear();\n name_type_map.put(KEY_NODE_ADDRESS, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_PARENT, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_DATA_TIME, MyDatabase.TYPE_TIMESTAMP);\n name_type_map.put(KEY_DATA_VAL, MyDatabase.TYPE_FLOAT);\n primaryKey.clear();\n primaryKey.add(KEY_DATA_TIME);\n primaryKey.add(KEY_NODE_ADDRESS);\n primaryKey.add(KEY_NODE_PARENT);\n myDatabase.createTable(TABLE_DATA, name_type_map, primaryKey, null);\n }catch (MySQLException e) {\n e.print();\n }\n }", "int insert(ec_environment record);", "public void setup() throws SQLException {\n // Create ACARS table\n final String createTableSQL = \"CREATE TABLE IF NOT EXISTS ACARS (\"\n + \"date DATE, time TIME, frequency CHAR(7), \"\n + \"registration VARCHAR(7), flight CHAR(6), \"\n + \"mode CHAR, label CHAR(2), blockId CHAR, msgId CHAR(4), \"\n + \"text VARCHAR(255), \"\n + \"PRIMARY KEY (date, registration, flight, mode, label, blockId, msgId), \"\n + \"INDEX datetime_idx (date, time), \"\n + \"INDEX registration_idx (registration), \"\n + \"INDEX flight_idx (flight)\"\n + \")\";\n\n final Statement createTableStmt = connection.createStatement();\n createTableStmt.execute(createTableSQL);\n }", "TableInstance createTableInstance();", "private String createTableSQL()\n\t{\n\t\tStringBuffer str = new StringBuffer();\n\n\t\t// Keep track of the list of fields\n\t\tList<String> listFields = new ArrayList<String>();\n\n\t\t// Table command\n\t\tstr.append(\"CREATE TABLE \" + getFullPath() + \"( \");\n\t\tstr.append(createStandardGZFields());\n\n\t\t// Loop through all InputFields\n\t\tfor (InputFieldSet fieldSet : function.getInputFieldSets())\n\t\t{\n\t\t\tfor (InputField inputField : fieldSet.getInputFields())\n\t\t\t{\n\t\t\t\t// Phase 2 does not support repeating fields being journalled\n\t\t\t\tif (!Field.isRepeating(inputField))\n\t\t\t\t{\n\t\t\t\t\t// Field\n\t\t\t\t\tString fieldName = SQLToolbox.cvtToSQLFieldName(inputField.getId());\n\n\t\t\t\t\t// add if not yet existing\n\t\t\t\t\tif (listFields.indexOf(fieldName) == -1)\n\t\t\t\t\t{\n\t\t\t\t\t\tstr.append(\", \");\n\t\t\t\t\t\tString fieldDataType = inputField.getDataType();\n\t\t\t\t\t\tString fieldType = SQLToolbox.cvtToSQLFieldType(fieldDataType, inputField.getSize(), inputField\n\t\t\t\t\t\t\t\t\t\t.getDecimals());\n\t\t\t\t\t\tString fieldDefault = SQLToolbox.cvtToSQLDefault(fieldDataType);\n\t\t\t\t\t\tstr.append(fieldName + \" \" + fieldType + \" \" + \" not null default \" + fieldDefault);\n\t\t\t\t\t\tlistFields.add(fieldName);\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// End\n\t\tstr.append(\" ) \");\n\t\t// RCDFMT \" + getJournalRcdName());\n\n\t\treturn str.toString();\n\t}", "public org.oep.cmon.dao.dvc.model.ThuTuc2GiayTo create(long id);" ]
[ "0.6137034", "0.6020893", "0.5953024", "0.5871004", "0.58520657", "0.5824135", "0.5783128", "0.5781292", "0.5779935", "0.5768486", "0.57018137", "0.569296", "0.5677845", "0.566757", "0.56516117", "0.5639093", "0.56084186", "0.5601316", "0.55988264", "0.5587084", "0.5586368", "0.5579563", "0.55671966", "0.5562383", "0.55537105", "0.55511224", "0.5550222", "0.5547236", "0.55009055", "0.54889506", "0.5482187", "0.54807544", "0.5465443", "0.5454913", "0.54468626", "0.5434606", "0.5426381", "0.54197514", "0.5414243", "0.54073745", "0.5402808", "0.5390703", "0.5390526", "0.5390526", "0.5390526", "0.538945", "0.53878444", "0.53796816", "0.5375914", "0.53748345", "0.53730184", "0.5365049", "0.5364833", "0.5364805", "0.536257", "0.5361029", "0.5360632", "0.53598887", "0.5350994", "0.5339128", "0.5338244", "0.53296435", "0.5321595", "0.5320979", "0.53194505", "0.5318698", "0.5313326", "0.53126156", "0.53099495", "0.5306004", "0.5300889", "0.5293614", "0.529321", "0.52883255", "0.5281361", "0.5281042", "0.527843", "0.5270345", "0.526982", "0.52697945", "0.52608657", "0.5259804", "0.52563196", "0.5249798", "0.5247741", "0.5239433", "0.5224713", "0.5224455", "0.5222238", "0.5221105", "0.521778", "0.5213034", "0.5211071", "0.52098143", "0.5208245", "0.5207931", "0.52069414", "0.5205663", "0.52015704", "0.5196995", "0.5195414" ]
0.0
-1
CREATE BY ANH DUC
AccountDTO coverAccountToEmpDTO(Account account);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int createTable(HbaseObj t);", "private void processCreate() throws HsqlException {\n\n boolean unique = false;\n int tableType;\n boolean isTempTable = false;\n String token;\n\n session.checkAdmin();\n session.checkDDLWrite();\n session.setScripting(true);\n\n if (tokenizer.isGetThis(Token.T_GLOBAL)) {\n tokenizer.getThis(Token.T_TEMPORARY);\n\n isTempTable = true;\n } else if (tokenizer.isGetThis(Token.T_TEMP)) {\n isTempTable = true;\n } else if (tokenizer.isGetThis(Token.T_TEMPORARY)) {\n isTempTable = true;\n }\n\n token = tokenizer.getSimpleToken();\n\n switch (Token.get(token)) {\n\n // table\n case Token.MEMORY :\n tokenizer.getThis(Token.T_TABLE);\n case Token.TABLE :\n tableType = isTempTable ? Table.TEMP_TABLE\n : database.getDefaultTableType();\n\n processCreateTable(tableType);\n\n return;\n\n case Token.CACHED :\n if (isTempTable) {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n\n tokenizer.getThis(Token.T_TABLE);\n processCreateTable(Table.CACHED_TABLE);\n\n return;\n\n case Token.TEXT :\n if (isTempTable) {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n\n tokenizer.getThis(Token.T_TABLE);\n processCreateTable(Table.TEXT_TABLE);\n\n return;\n\n default :\n if (isTempTable) {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n }\n\n switch (Token.get(token)) {\n\n // other objects\n case Token.ALIAS :\n processCreateAlias();\n break;\n\n case Token.SEQUENCE :\n processCreateSequence();\n break;\n\n case Token.SCHEMA :\n session.setScripting(false);\n processCreateSchema();\n break;\n\n case Token.TRIGGER :\n processCreateTrigger();\n break;\n\n case Token.USER :\n processCreateUser();\n break;\n\n case Token.ROLE :\n database.getGranteeManager().addRole(getUserIdentifier());\n break;\n\n case Token.VIEW :\n processCreateView();\n break;\n\n // index\n case Token.UNIQUE :\n unique = true;\n\n tokenizer.getThis(Token.T_INDEX);\n\n //fall thru\n case Token.INDEX :\n processCreateIndex(unique);\n break;\n\n default : {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n }\n }", "void create(DataTableDef def) throws IOException;", "CreationData creationData();", "protected abstract D createData();", "FromTable createFromTable();", "public void create() {\n\t\t\n\t}", "public void create() {\n\t\t\tdb.execSQL(AGENCYDB_CREATE+\".separete,.import agency.txt agency\");\n\t\t\tdb.execSQL(STOPSDB_CREATE+\".separete,.import stop_times.txt stop_times\");\n\t\t\t\n\t\t\t// Add 2 agencies for testing\n\t\t\t\n\t\t\t\n\t\t\tdb.setVersion(DATABASE_VERSION);\n\t\t}", "HdbdtiModel createHdbdtiModel();", "HdbSequenceElements createHdbSequenceElements();", "DD createDD();", "TD createTD();", "public String createTable(){\r\n return \"CREATE TABLE Doctor \" +\r\n \"(idDoctor decimal primary key, \" +\r\n \"firstNameDoctor char(14), \" +\r\n \"lastNameDoctor char(14), \" +\r\n \"costPerVisit integer,\" +\r\n \"qualification varchar(32))\";\r\n }", "private void createCDAccountsTable() {\n\t\ttry {\n\t\t\tStatement stmt = this.conn.createStatement();\n\t\t\tstmt.executeUpdate(\"CREATE TABLE cdAccounts \"\n\t\t\t\t\t+ \"(id BIGINT GENERATED ALWAYS AS IDENTITY ( START WITH 3000000001, INCREMENT BY 1 ), \" + \"owner INT, \"\n\t\t\t\t\t+ \"term INT, \" + \"balance DOUBLE, \" + \"intRate DOUBLE, \"\n\t\t\t\t\t+ \"timeCreated BIGINT, \" + \"lastPaidInterest DOUBLE, \"\n\t\t\t\t\t+ \"dateOfLastPaidInterest BIGINT)\");\n\t\t\tconn.commit();\n\t\t\tSystem.out.println(\"Created table cdAccounts\");\n\t\t} catch (SQLException sqle) {\n\t\t\tSystem.err.println(\"Creation of cdAccounts table FAILED\");\n\t\t\tSystem.err.println(sqle);\n\t\t}\n\t}", "public void createDienst()\n\t{\n\t\twriteDb(\"INSERT INTO dienstleistung (Bezeichnung, Preis)\" + \"VALUES('\" + typ + \"', '\" + preis +\"')\", getWriteCon());\n\t\tcommitDbConnection(getWriteCon());\n\t}", "public void create(){}", "@Override\n\tpublic String createTable() {\n\t\t\t\treturn \"CREATE TABLE history_table_view(id number(8) primary key not null ,sqltext text, pointid varchar2(1024), type varchar2(100))\";\n\t}", "public static void createTable() {\n\n // Create statement\n Statement statement = null;\n try {\n statement = Database.getDatabase().getConnection().createStatement();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n // Attempt to create table\n try {\n statement.execute(\n \"CREATE TABLE \" + Constants.SANITATION_TABLE + \"(\" +\n \"requestID INT PRIMARY KEY GENERATED ALWAYS AS IDENTITY (START WITH 1, INCREMENT BY 1),\" +\n \"nodeID VARCHAR(100) References \" + Constants.LOCATION_TABLE + \" (nodeID), \" +\n \"priority VARCHAR(10), \" +\n \"status VARCHAR(100), \" +\n \"description VARCHAR(100), \" +\n \"requesterID INT REFERENCES \" + Constants.USERS_TABLE + \"(userID), \" +\n \"requestTime TIMESTAMP, \" +\n \"servicerID INT REFERENCES \" + Constants.USERS_TABLE + \"(userID), \" +\n \"claimedTime TIMESTAMP, \" +\n \"completedTime TIMESTAMP, \" +\n \"CONSTRAINT priority_enum CHECK (priority in ('LOW', 'MEDIUM', 'HIGH')), \" +\n \"CONSTRAINT status_enum CHECK (status in ('INCOMPLETE', 'COMPLETE')))\"\n );\n } catch (SQLException | NullPointerException e) {\n e.printStackTrace();\n }\n }", "BTable createBTable();", "@Override\r\n\tpublic void create() {\n\t\t\r\n\t}", "@Override\n\tpublic void create() {\n\t\t\n\t}", "public abstract Anuncio creaAnuncioTematico();", "long createDatabase(long actor, String nameToDisplay, long proteinDBType, long sizeInBytes, boolean bPublic, boolean bReversed, ExperimentCategory category);", "TABLE createTABLE();", "private void processCreateTable(int type) throws HsqlException {\n\n String token = tokenizer.getName();\n HsqlName schemaname =\n session.getSchemaHsqlNameForWrite(tokenizer.getLongNameFirst());\n\n database.schemaManager.checkUserTableNotExists(session, token,\n schemaname.name);\n\n boolean isnamequoted = tokenizer.wasQuotedIdentifier();\n int[] pkCols = null;\n int colIndex = 0;\n boolean constraint = false;\n Table t = newTable(type, token, isnamequoted, schemaname);\n\n tokenizer.getThis(Token.T_OPENBRACKET);\n\n while (true) {\n token = tokenizer.getString();\n\n switch (Token.get(token)) {\n\n case Token.CONSTRAINT :\n case Token.PRIMARY :\n case Token.FOREIGN :\n case Token.UNIQUE :\n case Token.CHECK :\n\n // fredt@users : check for quoted reserved words used as column names\n constraint = !tokenizer.wasQuotedIdentifier()\n && !tokenizer.wasLongName();\n }\n\n tokenizer.back();\n\n if (constraint) {\n break;\n }\n\n Column newcolumn = processCreateColumn();\n\n t.addColumn(newcolumn);\n\n if (newcolumn.isPrimaryKey()) {\n Trace.check(pkCols == null, Trace.SECOND_PRIMARY_KEY,\n newcolumn.columnName.name);\n\n pkCols = new int[]{ colIndex };\n }\n\n token = tokenizer.getSimpleToken();\n\n if (token.equals(Token.T_COMMA)) {\n colIndex++;\n\n continue;\n }\n\n if (token.equals(Token.T_CLOSEBRACKET)) {\n break;\n }\n\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n\n HsqlArrayList tempConstraints = processCreateConstraints(t,\n constraint, pkCols);\n\n if (tokenizer.isGetThis(Token.T_ON)) {\n if (!t.isTemp) {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, Token.T_ON);\n }\n\n tokenizer.getThis(Token.T_COMMIT);\n\n token = tokenizer.getSimpleToken();\n\n if (token.equals(Token.T_DELETE)) {}\n else if (token.equals(Token.T_PRESERVE)) {\n t.onCommitPreserve = true;\n } else {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n\n tokenizer.getThis(Token.T_ROWS);\n }\n\n try {\n session.commit();\n\n Constraint primaryConst = (Constraint) tempConstraints.get(0);\n\n t.createPrimaryKey(null, primaryConst.core.mainColArray, true);\n\n if (primaryConst.core.mainColArray != null) {\n if (primaryConst.constName == null) {\n primaryConst.constName = t.makeSysPKName();\n }\n\n Constraint newconstraint =\n new Constraint(primaryConst.constName, t,\n t.getPrimaryIndex(),\n Constraint.PRIMARY_KEY);\n\n t.addConstraint(newconstraint);\n database.schemaManager.registerConstraintName(\n primaryConst.constName.name, t.getName());\n }\n\n for (int i = 1; i < tempConstraints.size(); i++) {\n Constraint tempConst = (Constraint) tempConstraints.get(i);\n\n if (tempConst.constType == Constraint.UNIQUE) {\n TableWorks tableWorks = new TableWorks(session, t);\n\n tableWorks.createUniqueConstraint(\n tempConst.core.mainColArray, tempConst.constName);\n\n t = tableWorks.getTable();\n }\n\n if (tempConst.constType == Constraint.FOREIGN_KEY) {\n TableWorks tableWorks = new TableWorks(session, t);\n\n tableWorks.createForeignKey(tempConst.core.mainColArray,\n tempConst.core.refColArray,\n tempConst.constName,\n tempConst.core.refTable,\n tempConst.core.deleteAction,\n tempConst.core.updateAction);\n\n t = tableWorks.getTable();\n }\n\n if (tempConst.constType == Constraint.CHECK) {\n TableWorks tableWorks = new TableWorks(session, t);\n\n tableWorks.createCheckConstraint(tempConst,\n tempConst.constName);\n\n t = tableWorks.getTable();\n }\n }\n\n database.schemaManager.linkTable(t);\n } catch (HsqlException e) {\n\n// fredt@users 20020225 - comment\n// if a HsqlException is thrown while creating table, any foreign key that has\n// been created leaves it modification to the expTable in place\n// need to undo those modifications. This should not happen in practice.\n database.schemaManager.removeExportedKeys(t);\n database.schemaManager.removeIndexNames(t.tableName);\n database.schemaManager.removeConstraintNames(t.tableName);\n\n throw e;\n }\n }", "@Override\n\tpublic void create() {\n\n\t}", "public void testCreateTable() {\n LOG.info(\"Entering testCreateTable.\");\n\n // Specify the table descriptor.\n HTableDescriptor htd = new HTableDescriptor(tableName);\n\n // Set the column family name to info.\n HColumnDescriptor hcd = new HColumnDescriptor(\"info\");\n\n // Set data encoding methods,HBase provides DIFF,FAST_DIFF,PREFIX\n // and PREFIX_TREE\n hcd.setDataBlockEncoding(DataBlockEncoding.FAST_DIFF);\n\n // Set compression methods, HBase provides two default compression\n // methods:GZ and SNAPPY\n // GZ has the highest compression rate,but low compression and\n // decompression effeciency,fit for cold data\n // SNAPPY has low compression rate, but high compression and\n // decompression effeciency,fit for hot data.\n // it is advised to use SANPPY\n hcd.setCompressionType(Compression.Algorithm.SNAPPY);\n\n htd.addFamily(hcd);\n\n Admin admin = null;\n try {\n // Instantiate an Admin object.\n admin = conn.getAdmin();\n if (!admin.tableExists(tableName)) {\n LOG.info(\"Creating table...\");\n admin.createTable(htd);\n LOG.info(admin.getClusterStatus());\n LOG.info(admin.listNamespaceDescriptors());\n LOG.info(\"Table created successfully.\");\n } else {\n LOG.warn(\"table already exists\");\n }\n } catch (IOException e) {\n LOG.error(\"Create table failed.\");\n } finally {\n if (admin != null) {\n try {\n // Close the Admin object.\n admin.close();\n } catch (IOException e) {\n LOG.error(\"Failed to close admin \", e);\n }\n }\n }\n LOG.info(\"Exiting testCreateTable.\");\n }", "public CreateData() {\n\t\t\n\t\t// TODO Auto-generated constructor stub\n\t}", "boolean createTable();", "@Override\r\n public Db_db createTable (Db_table table)\r\n {\r\n Db_db db = null;\r\n String query = \"CREATE TABLE IF NOT EXISTS \"+ table.getName() + \" (\"; \r\n String primaryKeyName = null;\r\n Set<Map.Entry<String, Db_tableColumn>> tableEntries;\r\n List<String> listOfUniqueKey = Lists.newArrayList();\r\n \r\n if(curConnection_ != null)\r\n {\r\n try\r\n {\r\n tableEntries = table.getEntrySet();\r\n for(Map.Entry<String, Db_tableColumn> entry: tableEntries)\r\n {\r\n Db_tableColumn entryContent = entry.getValue();\r\n \r\n if(entryContent.isPrimary() && primaryKeyName == null)\r\n {\r\n primaryKeyName = entryContent.getName();\r\n }\r\n else if(entryContent.isPrimary() && primaryKeyName != null)\r\n {\r\n throw new NumberFormatException();\r\n }\r\n \r\n if(itsAttributeMapper_ == null)\r\n {\r\n throw new NumberFormatException();\r\n }\r\n \r\n if(entryContent.isUnique())\r\n {\r\n listOfUniqueKey.add(entryContent.getName());\r\n }\r\n \r\n String mappedAttribute = this.itsAttributeMapper_.MapAttribute(entryContent.getAttributeName());\r\n if(entryContent.getAttribute().isEnum())\r\n {\r\n mappedAttribute += entryContent.getAttribute().buildEnumValueListString();\r\n }\r\n query += entryContent.getName() + \" \" + mappedAttribute \r\n + (entryContent.isAutoIncreasmnet()?\" AUTO_INCREMENT \":\" \")\r\n + (entryContent.isUnique()?\" UNIQUE, \": \", \");\r\n }\r\n \r\n query += \"PRIMARY KEY (\" + primaryKeyName + \"));\";\r\n try (Statement sm = curConnection_.createStatement()) {\r\n sm.executeUpdate(query);\r\n db = this.curDb_;\r\n }\r\n \r\n }catch(NumberFormatException e){System.out.print(e);}\r\n catch(SQLException e){System.out.print(query);this.CurConnectionFailed();}\r\n }\r\n return db;\r\n }", "public Hoppy insert(Hoppy hoppy, IdGenerateService<Long> idGenerateService) throws DataAccessException;", "interface WithCreate extends\n SqlElasticPoolOperations.DefinitionStages.WithDatabaseDtuMin,\n SqlElasticPoolOperations.DefinitionStages.WithDatabaseDtuMax,\n SqlElasticPoolOperations.DefinitionStages.WithDtu,\n SqlElasticPoolOperations.DefinitionStages.WithStorageCapacity,\n SqlElasticPoolOperations.DefinitionStages.WithDatabase,\n Resource.DefinitionWithTags<SqlElasticPoolOperations.DefinitionStages.WithCreate>,\n Creatable<SqlElasticPool> {\n }", "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:49.404 -0500\", hash_original_method = \"CD5C82C799E78C74801FDB521CEE7324\", hash_generated_method = \"CD5C82C799E78C74801FDB521CEE7324\")\n \nContext ()\n {\n copyTables();\n }", "OrTable createOrTable();", "public abstract void create();", "DT createDT();", "@Override\n public void createSchema(Properties props)\n {\n Statement statement;\n try\n {\n statement = connection.createStatement();\n \n //Drop Indexes\n dropIndex(statement, \"CONFFRIENDSHIP_INVITEEID\", \"CONFFRIENDSHIP\");\n dropIndex(statement, \"CONFFRIENDSHIP_INVITERID\", \"CONFFRIENDSHIP\");\n dropIndex(statement, \"PENDFRIENDSHIP_INVITEEID\", \"PENDFRIENDSHIP\");\n dropIndex(statement, \"PENDFRIENDSHIP_INVITERID\", \"PENDFRIENDSHIP\");\n dropIndex(statement, \"MANIPULATION_RID\", \"MANIPULATION\");\n dropIndex(statement, \"MANIPULATION_CREATORID\", \"MANIPULATION\");\n dropIndex(statement, \"RESOURCES_WALLUSERID\", \"RESOURCES\");\n dropIndex(statement, \"RESOURCE_CREATORID\", \"RESOURCES\");\n \n //Drop Tables\n dropTable(statement, \"CONFFRIENDSHIP\");\n dropTable(statement, \"PENDFRIENDSHIP\");\n dropTable(statement, \"MANIPULATION\");\n dropTable(statement, \"RESOURCES\");\n dropTable(statement, \"USERS\");\n \n //Create Tables\n statement.executeUpdate(\"CREATE TABLE CONFFRIENDSHIP \" + \"(INVITERID INTEGER NOT NULL, \" + \"INVITEEID INTEGER NOT NULL, \" + \"PRIMARY KEY (INVITERID, INVITEEID))\");\n statement.executeUpdate(\"CREATE TABLE PENDFRIENDSHIP \" + \"(INVITERID INTEGER NOT NULL, \" + \"INVITEEID INTEGER NOT NULL, \" + \"PRIMARY KEY (INVITERID, INVITEEID))\");\n statement.executeUpdate(\"CREATE TABLE MANIPULATION \" + \"(MID INTEGER NOT NULL, \" + \"MODIFIERID INTEGER NOT NULL, \" + \"RID INTEGER NOT NULL, \" + \"CREATORID INTEGER NOT NULL, \" + \"TIMESTAMP VARCHAR(200), \" + \"TYPE VARCHAR(200), \" + \"CONTENT VARCHAR(200), \" + \"PRIMARY KEY (MID,RID))\");\n statement.executeUpdate(\"CREATE TABLE RESOURCES \" + \"(RID INTEGER NOT NULL , \" + \"CREATORID INTEGER NOT NULL, \" + \"WALLUSERID INTEGER NOT NULL, \" + \"TYPE VARCHAR(200), \" + \"BODY VARCHAR(200), \" + \"DOC VARCHAR(200), \" + \"PRIMARY KEY (RID))\");\n statement.executeUpdate(\"CREATE TABLE USERS \" + \"(USERID INTEGER NOT NULL , \" + \"USERNAME VARCHAR(200), \" + \"PW VARCHAR(200), \" + \"FNAME VARCHAR(200), \" + \"LNAME VARCHAR(200), \" + \"GENDER VARCHAR(200),\" + \"DOB VARCHAR(200), \" + \"JDATE VARCHAR(200), \" + \"LDATE VARCHAR(200), \" + \"ADDRESS VARCHAR(200),\" + \"EMAIL VARCHAR(200), \" + \"TEL VARCHAR(200), \" + \"PRIMARY KEY (USERID))\");\n \n //Add Foreign Keys\n statement.executeUpdate(\"ALTER TABLE CONFFRIENDSHIP \" + \"ADD CONSTRAINT CONFFRIENDSHIP_USERS_FK1 FOREIGN KEY (INVITERID)\" + \"REFERENCES USERS (USERID) ON DELETE CASCADE\");\n statement.executeUpdate(\"ALTER TABLE CONFFRIENDSHIP \" + \"ADD CONSTRAINT CONFFRIENDSHIP_USERS_FK2 FOREIGN KEY (INVITEEID)\" + \"REFERENCES USERS (USERID) ON DELETE NO ACTION\");\n statement.executeUpdate(\"ALTER TABLE PENDFRIENDSHIP \" + \"ADD CONSTRAINT PENDFRIENDSHIP_USERS_FK1 FOREIGN KEY (INVITERID)\" + \"REFERENCES USERS (USERID) ON DELETE CASCADE\");\n statement.executeUpdate(\"ALTER TABLE PENDFRIENDSHIP \" + \"ADD CONSTRAINT PENDFRIENDSHIP_USERS_FK2 FOREIGN KEY (INVITEEID)\" + \"REFERENCES USERS (USERID) ON DELETE NO ACTION\");\n statement.executeUpdate(\"ALTER TABLE MANIPULATION \" + \"ADD CONSTRAINT MANIPULATION_RESOURCES_FK1 FOREIGN KEY (RID)\" + \"REFERENCES RESOURCES (RID) ON DELETE CASCADE\");\n statement.executeUpdate(\"ALTER TABLE MANIPULATION \" + \"ADD CONSTRAINT MANIPULATION_USERS_FK1 FOREIGN KEY (CREATORID)\" + \"REFERENCES USERS (USERID) ON DELETE NO ACTION\");\n statement.executeUpdate(\"ALTER TABLE MANIPULATION \" + \"ADD CONSTRAINT MANIPULATION_USERS_FK2 FOREIGN KEY (MODIFIERID)\" + \"REFERENCES USERS (USERID) ON DELETE NO ACTION\");\n statement.executeUpdate(\"ALTER TABLE RESOURCES \" + \"ADD CONSTRAINT RESOURCES_USERS_FK1 FOREIGN KEY (CREATORID)\" + \"REFERENCES USERS (USERID) ON DELETE CASCADE\");\n statement.executeUpdate(\"ALTER TABLE RESOURCES \" + \"ADD CONSTRAINT RESOURCES_USERS_FK2 FOREIGN KEY (WALLUSERID)\" + \"REFERENCES USERS (USERID) ON DELETE NO ACTION\");\n \n //Create Indexes\n buildIndexes(null);\n }\n catch (SQLException ex)\n {\n Logger.getLogger(WindowsAzureClientInit.class.getName()).log(Level.SEVERE, null, ex);\n System.out.println(\"Error in creating schema!\");\n }\n }", "public void createTable() throws LRException\n\t{\n\t\tgetBackground();\n\t\tDataHRecordData myData=(DataHRecordData)getData();\n\t\t// Create a new (empty) record\n\t\tcreate(new Hashtable(),myData);\n\t\tif (myData.record==null) throw new LRException(DataRMessages.nullRecord(getName()));\n\t\ttry\n\t\t{\n\t\t\tbackground.newTransaction();\n\t\t\tmyData.record.createNewTable(background.getClient(),true);\n\t\t}\n\t\tcatch (LDBException e) { setStatus(e); }\n\t}", "public boolean createTable(String input) throws IOException{\n\t\tString orgQuery = input;\n\t\torgQuery = orgQuery.trim();\n\t\tString query = input.toLowerCase().trim();\n\t\tboolean queryFailed = false;\n\t\t//Schema Instance \n\t\tSchema currentSchema = Schema.getSchemaInstance();\n\t\tString currentSchemaName = currentSchema.getCurrentSchema();\n\n\t\t//TableSchemaManager Instance\n\t\tTableSchemaManager currentTableSchemaManager = TableSchemaManager.getTableSchemaManagerInstance();\n\n\t\t//Extracting Table name\n\t\ttableName = orgQuery.substring(query.indexOf(\"table \")+6,query.indexOf(\"(\")).trim();\n\n\t\t//Updating SCHEMA.TABLE.TBL\n\t\tif(updateInformationSchemaTable()){\n\t\t\tqueryFailed = true;\n\t\t\treturn queryFailed;\n\t\t}\n\n\t\t//Extracting Table contents\n\t\tString tableContentsWithQuotes = orgQuery.substring(orgQuery.indexOf(\"(\")+1,orgQuery.length());\n\t\tString tableContents = tableContentsWithQuotes.replace(\"))\", \")\");\n\t\ttableContents = tableContents.trim();\n\n\t\tTableSchemaManager.ordinalMap = new TreeMap<Integer,List<String>>();\n\t\tTableSchemaManager.tableMap = new TreeMap<String,TreeMap<Integer,List<String>>>();\n\t\t\n\t\t//Creating n instances of Table helper\n\t\tString[] createTableContents = tableContents.split(\"\\\\,\"); \n\t\tnoOfColumns = createTableContents.length;\n\t\tCreateTableHelper[] th = new CreateTableHelper[noOfColumns];\n\n\t\t\n\t\t//Handles single row of Create Table \n\t\tfor(int item = 0; item < noOfColumns ; item++){\n\t\t\tth[item] = new CreateTableHelper(); \n\t\t\t//To remove any leading or trailing spaces\n\t\t\tcreateTableContents[item] = createTableContents[item].trim();\n\t\t\tString columnName = createTableContents[item].substring(0, createTableContents[item].indexOf(\" \"));\n\t\t\tth[item].setColumnName(columnName);\n\n\t\t\t//Setting Primary Key\n\t\t\tString primaryKeyExp = \"(.*)[pP][rR][iI][mM][aA][rR][yY](.*)\";\n\t\t\tif (createTableContents[item].matches(primaryKeyExp))\n\t\t\t\tth[item].setPrimaryKey(true);\n\t\t\telse\n\t\t\t\tth[item].setPrimaryKey(false);\n\n\t\t\t//Setting Null Value\t\n\t\t\tString notNullExp = \"(.*)[nN][uU][lL][lL](.*)\";\n\t\t\tif (createTableContents[item].matches(notNullExp))\n\t\t\t\tth[item].setNull(true);\n\t\t\telse\n\t\t\t\tth[item].setNull(false);\n\n\t\t\t//Extracting data types \n\t\t\t//BYTE\n\t\t\tString byteExp = \"(.*)[bB][yY][tT][eE](.*)\";\n\t\t\tif (createTableContents[item].matches(byteExp)){\n\t\t\t\tth[item].setDataType(\"BYTE\");\n\t\t\t}\n\t\t\t//SHORT\n\t\t\tString shortExp = \"(.*)[sS][hH][oO][rR][tT](.*)\";\n\t\t\tif (createTableContents[item].matches(shortExp)){\n\t\t\t\tth[item].setDataType(\"SHORT\");\n\t\t\t}\n\t\t\t//INT\n\t\t\tString intExp = \"(.*)[iI][nN][tT](.*)\";\n\t\t\tif (createTableContents[item].matches(intExp)){\n\t\t\t\tth[item].setDataType(\"INT\");\n\t\t\t}\n\t\t\t//LONG\n\t\t\tString longExp = \"(.*)[lL][oO][nN][gG](.*)\";\n\t\t\tif (createTableContents[item].matches(longExp)){\n\t\t\t\tth[item].setDataType(\"LONG\");\n\t\t\t}\n\t\t\t//CHAR\n\t\t\tString charExp = \"(.*)[cC][hH][aA][rR](.*)\";\n\t\t\tif (createTableContents[item].matches(charExp)){\n\t\t\t\tString size = createTableContents[item].substring(createTableContents[item].indexOf(\"(\")+1, createTableContents[item].indexOf(\")\"));\n\t\t\t\tth[item].setDataType(\"CHAR(\" + size + \")\");\n\t\t\t}\n\t\t\t//VARCHAR\n\t\t\tString varcharExp = \"(.*)[vV][aA][rR][cC][hH][aA][rR](.*)\";\n\t\t\tif (createTableContents[item].matches(varcharExp)){\n\t\t\t\tString size = createTableContents[item].substring(createTableContents[item].indexOf(\"(\")+1, createTableContents[item].indexOf(\")\"));\n\t\t\t\tth[item].setDataType(\"VARCHAR(\" + size + \")\");\n\t\t\t}\n\t\t\t//FLOAT\n\t\t\tString floatExp = \"(.*)[fF][lL][oO][aA][tT](.*)\";\n\t\t\tif (createTableContents[item].matches(floatExp)){\n\t\t\t\tth[item].setDataType(\"FLOAT\");\t\t\t\t\n\t\t\t}\n\t\t\t//DOUBLE\n\t\t\tString doubleExp = \"(.*)[dD][oO][uU][bB][lL][eE](.*)\";\n\t\t\tif (createTableContents[item].matches(doubleExp)){\n\t\t\t\tth[item].setDataType(\"DOUBLE\");\n\t\t\t}\n\t\t\t//DATETIME\n\t\t\tString dateTimeExp = \"(.*)[dD][aA][tT][eE][tT][iI][mM][eE](.*)\";\n\t\t\tif (createTableContents[item].matches(dateTimeExp)){\n\t\t\t\tth[item].setDataType(\"DATETIME\");\n\t\t\t}\n\t\t\t//DATE\n\t\t\tString dateExp = \"(.*)[dD][aA][tT][eE](.*)\";\n\t\t\tif (createTableContents[item].matches(dateExp)){\n\t\t\t\tth[item].setDataType(\"DATE\");\n\t\t\t}\n\n\t\t\tcurrentTableSchemaManager.newTableSchema(\n\t\t\t\t\ttableName,\n\t\t\t\t\titem,\n\t\t\t\t\tth[item].getColumnName(),\n\t\t\t\t\tth[item].getDataType(),\n\t\t\t\t\tth[item].isNull(),\n\t\t\t\t\tth[item].isPrimaryKey()\n\t\t\t\t\t);\n\n\t\t\t//Updating SCHEMA.COLUMNS.TBL\n\t\t\tupdateInformationSchemaColumn(\n\t\t\t\t\tth[item].getColumnName(),\n\t\t\t\t\titem,\n\t\t\t\t\tth[item].getDataType(),\n\t\t\t\t\tth[item].isNull(),\n\t\t\t\t\tth[item].isPrimaryKey()\n\t\t\t\t\t);\n\t\t\t//Create tables to insert index\n\t\t\tString newTableIndexName = currentSchemaName + \".\" + tableName + \".\" +th[item].getColumnName()+ \".tbl.ndx\";\n\t\t\tRandomAccessFile newTableIndexFile = new RandomAccessFile(newTableIndexName, \"rw\");\n\t\t\tnewTableIndexFile.close();\n\n\t\t}\n\n\t\tTableSchemaManager.tableMap.put(tableName, TableSchemaManager.ordinalMap);\n\t\tcurrentTableSchemaManager.updateTableSchema(currentSchemaName,tableName);\n\t\t\n\t\t//Create tables to insert data \n\t\tString newTableDataName = currentSchemaName + \".\" + tableName + \".tbl\";\n\t\tRandomAccessFile newTableDataFile = new RandomAccessFile(newTableDataName, \"rw\");\n\t\tnewTableDataFile.close();\n\t\treturn queryFailed;\n\t}", "public String createDSIndex(String dsID, String dschemaID, String attriName);", "private void createStressTestControlTable() {\n Column runId = new Column(\"RUN_ID\");\n runId.setMappedType(\"INTEGER\");\n runId.setPrimaryKey(true);\n runId.setRequired(true);\n Column clientCommitSleepMs = new Column(\"CLIENT_COMMIT_SLEEP_MS\");\n clientCommitSleepMs.setMappedType(\"BIGINT\");\n Column clientCommitRows = new Column(\"CLIENT_COMMIT_ROWS\");\n clientCommitRows.setMappedType(\"BIGINT\");\n Column serverCommitSleepMs = new Column(\"SERVER_COMMIT_SLEEP_MS\");\n serverCommitSleepMs.setMappedType(\"BIGINT\");\n Column serverCommitRows = new Column(\"SERVER_COMMIT_ROWS\");\n serverCommitRows.setMappedType(\"BIGINT\");\n Column payloadColumns = new Column(\"PAYLOAD_COLUMNS\");\n payloadColumns.setMappedType(\"INTEGER\");\n Column initialSeedSize = new Column(\"INITIAL_SEED_SIZE\");\n initialSeedSize.setMappedType(\"BIGINT\");\n Column duration = new Column(\"DURATION_MINUTES\");\n duration.setMappedType(\"BIGINT\");\n\n Table table = new Table(STRESS_TEST_CONTROL, runId, clientCommitSleepMs, clientCommitRows, serverCommitSleepMs, serverCommitRows,\n payloadColumns, initialSeedSize, duration);\n engine.getDatabasePlatform().createTables(true, true, table);\n }", "@Override\r\n\tpublic void create() {\n\r\n\t}", "Statement createStatement();", "Statement createStatement();", "Statement createStatement();", "public void doCreateTable();", "@Override\n public Pipe execute(DBMS engine) throws DBxicException {\n engine.storManager.createTable(table);\n engine.catalog.saveCatalog();\n return new MessageThroughPipe(\"Table \" + table.getName() + \" successfully created\");\n }", "@Override\n public void setUp() throws SQLException {\n connection.createStatement().executeUpdate(\n \"CREATE TABLE IF NOT EXISTS \\\"ENTRY\\\" (\" +\n \"\\\"SHARED_ID\\\" SERIAL PRIMARY KEY, \" +\n \"\\\"TYPE\\\" VARCHAR, \" +\n \"\\\"VERSION\\\" INTEGER DEFAULT 1)\");\n\n connection.createStatement().executeUpdate(\n \"CREATE TABLE IF NOT EXISTS \\\"FIELD\\\" (\" +\n \"\\\"ENTRY_SHARED_ID\\\" INTEGER REFERENCES \\\"ENTRY\\\"(\\\"SHARED_ID\\\") ON DELETE CASCADE, \" +\n \"\\\"NAME\\\" VARCHAR, \" +\n \"\\\"VALUE\\\" TEXT)\");\n\n connection.createStatement().executeUpdate(\n \"CREATE TABLE IF NOT EXISTS \\\"METADATA\\\" (\"\n + \"\\\"KEY\\\" VARCHAR,\"\n + \"\\\"VALUE\\\" TEXT)\");\n }", "private void m14053d() {\n try {\n File file = new File(f18051l);\n File file2 = new File(f18052m);\n if (!file.exists()) {\n file.mkdirs();\n }\n if (!file2.exists()) {\n file2.createNewFile();\n }\n if (file2.exists()) {\n SQLiteDatabase openOrCreateDatabase = SQLiteDatabase.openOrCreateDatabase(file2, null);\n openOrCreateDatabase.execSQL(\"CREATE TABLE IF NOT EXISTS bdcltb09(id CHAR(40) PRIMARY KEY,time DOUBLE,tag DOUBLE, type DOUBLE , ac INT);\");\n openOrCreateDatabase.execSQL(\"CREATE TABLE IF NOT EXISTS wof(id CHAR(15) PRIMARY KEY,mktime DOUBLE,time DOUBLE, ac INT, bc INT, cc INT);\");\n openOrCreateDatabase.setVersion(1);\n openOrCreateDatabase.close();\n }\n this.f18053a = true;\n } catch (Exception e) {\n }\n }", "interface WithDtu {\n /**\n * Sets the total shared DTU for the SQL Azure Database Elastic Pool.\n *\n * @param dtu total shared DTU for the SQL Azure Database Elastic Pool\n * @return The next stage of the definition.\n */\n @Deprecated\n SqlElasticPoolOperations.DefinitionStages.WithCreate withDtu(int dtu);\n }", "@POST\n @Produces({\"application/json\"})\n public String createDb() throws WebApplicationException {\n HibernateEntityManager emAdm = PersistenceManager.getInstance().getEntityManagerAdmin();\n SQLQuery qCreate = emAdm.getSession().createSQLQuery(\"CREATE DATABASE test_jeff template=postgis\");\n try{\n qCreate.executeUpdate();\n }catch(SQLGrammarException e){\n System.out.println(\"Error !!\" + e.getSQLException());\n emAdm.close();\n return e.getSQLException().getLocalizedMessage();\n }\n emAdm.close();\n Map properties = new HashMap();\n //change the connection string to the new db\n properties.put(\"hibernate.connection.url\", \"jdbc:postgresql_postGIS://192.168.12.36:5432/test_jeff\");\n EntityManagerFactory emf = Persistence.createEntityManagerFactory(\"dataPU\", properties); \n return \"Yeah\";\n }", "public abstract void createTables() throws DataServiceException;", "@Override\n\tpublic void create () {\n\n\t}", "@Test\n public void shouldCreateEpiDataGathering() {\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(0));\n\n Case caze = TestEntityCreator.createCase();\n TestEntityCreator.createEpiDataGathering(caze);\n\n // Assure that the burial has been successfully created\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(1));\n }", "Udt createUdt();", "OperacionColeccion createOperacionColeccion();", "public void create(AttributeList attributeList)\n {\n\n super.create(attributeList); \n \n OADBTransaction transaction = getOADBTransaction();\n \n // DEFAULT: supplier id is obtained from the table's sequence\n Number supplierId = transaction.getSequenceValue(\"FWK_TBX_SUPPLIERS_S\");\n setSupplierId(supplierId);\n\n // DEFAULT: start date should be set to sysdate\n setStartDate(transaction.getCurrentDBDate());\n\n \n }", "Definition createDefinition();", "H1 createH1();", "private static void createDatabase(String restrictedUser) throws ArcException {\n\t\tGenericPreparedStatementBuilder query;\n\n\t\t// clean database\n\t\tquery = new GenericPreparedStatementBuilder();\n\t\tquery.append(\"DROP SCHEMA IF EXISTS \" + DataObjectService.ARC_METADATA_SCHEMA + \" CASCADE;\");\n\t\tquery.append(\"DROP SCHEMA IF EXISTS \" + testSandbox1 + \" CASCADE;\");\n\t\tquery.append(\"DROP SCHEMA IF EXISTS public CASCADE;\");\n\t\tUtilitaireDao.get(0).executeRequest(c, query);\n\t\t\n\t\tBddPatcher patcher=new BddPatcher();\n\t\tpatcher.getProperties().setGitCommitId(newVersion);\n\t\tpatcher.getProperties().setDatabaseRestrictedUsername(userWithRestrictedRights);\n\n\t\t// metadata schema creation\n\t\tpatcher.bddScript(c);\n\t\t// sandbox schema creation\n\t\tpatcher.bddScript(c, testSandbox1, testSandbox2, testSandbox8);\n\t\t\n\t}", "Operacion createOperacion();", "private synchronized String processCreate(String query) {\r\n\t\tString[] valuesCommand = query.split(\" \");\r\n\t\tif ( valuesCommand.length != 3 )\r\n\t\t\treturn \"ERROR Bad syntaxe command CREATE - Usage : CREATE id initial_solde\";\r\n\t\tString id = valuesCommand[1];\r\n\t\tif ( this.bank.existAccount(id) ) {\r\n\t\t\treturn \"ERROR Account alwready exist\";\r\n\t\t}\r\n\t\tdouble number = Double.valueOf(valuesCommand[2]);\r\n\t\tthis.bank.createAccount(id, number);\r\n\t\treturn \"OK \" + this.bank.getLastOperation(id);\r\n\t}", "public void createNewSchema() throws SQLException {\n ResultSet resultSet = databaseStatement.executeQuery(\"select count(datname) from pg_database\");\n int uniqueID = 0;\n if(resultSet.next()) {\n uniqueID = resultSet.getInt(1);\n }\n if(uniqueID != 0) {\n uniqueID++;\n databaseStatement.executeQuery(\"CREATE DATABASE OSM\"+uniqueID+\";\");\n }\n }", "int insert(Lbt72TesuryoSumDPkey record);", "@Test(timeout = 4000)\n public void test124() throws Throwable {\n DefaultDBTable defaultDBTable0 = new DefaultDBTable();\n MockPrintWriter mockPrintWriter0 = new MockPrintWriter(\"Illegal column type format: \");\n String[] stringArray0 = new String[9];\n DBUniqueConstraint dBUniqueConstraint0 = new DBUniqueConstraint(defaultDBTable0, \"66i,cw\", true, stringArray0);\n NameSpec nameSpec0 = NameSpec.ALWAYS;\n SQLUtil.renderCreateTable(defaultDBTable0, true, nameSpec0, mockPrintWriter0);\n assertEquals(\"table\", defaultDBTable0.getObjectType());\n }", "int insert(NjProductTaticsRelation record);", "public de.uni_koblenz.jgralabtest.schemas.gretl.pddsl.Chassis createChassis();", "int insert(Disease record);", "private void creates() {\n \tDBPeer.fetchTableColumns();\n \tDBPeer.fetchTableRows();\n \tDBPeer.fetchTableIndexes();\n \t\n for (int i = 0; i < creates.size(); i++) {\n creates.get(i).init();\n }\n \n DBPeer.updateTableColumns();\n DBPeer.updateTableRows();\n DBPeer.updateTableIndexes();\n }", "InstAssignIndex createInstAssignIndex();", "WithCreate withCreationData(CreationData creationData);", "@Before\n public void createAndFillTable() {\n try {\n DBhandler dBhandler = new DBhandler(h2DbConnection);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "DataCfgTableInfo createTableIfNotExists(String dataCfgOid);", "H2 createH2();", "int insert(Lbm83ChohyokanriPkey record);", "HdbSequenceModel createHdbSequenceModel();", "DL createDL();", "For createFor();", "public org.oep.cmon.dao.tlct.model.DanhMucGiayTo create(long id);", "private Builder() {\n super(org.apache.gora.cascading.test.storage.TestRow.SCHEMA$);\n }", "public void createExempleDirect(ExempleDirect exempleDirect) throws DaoException;", "int insertSelective(NjProductTaticsRelation record);", "BIG createBIG();", "private void CreateDataIngestors() throws isisicatclient.IcatException_Exception {\n Grouping dataIngestors = new Grouping();\r\n dataIngestors.name = \"DataIngestors\";\r\n dataIngestors.id = port.create(sessionId, dataIngestors);\r\n dataIngestors = (Grouping) port.search(sessionId, \"Grouping[name='DataIngestors']\").get(0);\r\n\r\n List<String> ingestorTables = port.getEntityNames();\r\n\r\n ingestorTables.remove(\"Facility\");\r\n\r\n List<EntityBaseBean> ingestorRules = new ArrayList<>();\r\n for (String table : ingestorTables) {\r\n Rule rule = new Rule();\r\n rule.grouping = dataIngestors;\r\n rule.crudFlags = \"CRUD\"; //no delete permission for ingestors\r\n rule.what = table;\r\n ingestorRules.add(rule);\r\n }\r\n port.createMany(sessionId, ingestorRules);\r\n }", "H4 createH4();", "int insert(OrgIntegralDeductRule record);", "public void createDataTable() {\r\n Log.d(TAG, \"creating table\");\r\n String queryStr = \"\";\r\n String[] colNames = {Constants.COLUMN_NAME_ACC_X, Constants.COLUMN_NAME_ACC_Y, Constants.COLUMN_NAME_ACC_Z};\r\n queryStr += \"create table if not exists \" + Constants.TABLE_NAME;\r\n queryStr += \" ( id INTEGER PRIMARY KEY AUTOINCREMENT, \";\r\n for (int i = 1; i <= 50; i++) {\r\n for (int j = 0; j < 3; j++)\r\n queryStr += colNames[j] + \"_\" + i + \" real, \";\r\n }\r\n queryStr += Constants.COLUMN_NAME_ACTIVITY + \" text );\";\r\n execute(queryStr);\r\n Log.d(TAG, \"created table\");\r\n try {\r\n ContentValues values = new ContentValues();\r\n values.put(\"id\", 0);\r\n insertRowInTable(Constants.TABLE_NAME, values);\r\n Log.d(TAG,\"created hist table\");\r\n }catch (Exception e){\r\n Log.d(TAG,Constants.TABLE_NAME + \" table already exists\");\r\n }\r\n }", "public static void main(String[] args) {\n\t\tCreateTable createTable = new CreateTable();\n\n\t\tCity city = new City();\n\t\tcity.setId(1);\n\t\tcreateTable.execute(city);\n\n\t\tProvince province = new Province();\n\t\tprovince.setId(1);\n\t\tcreateTable.execute(province);\n\n\t\tTown town = new Town();\n\t\ttown.setId(1);\n\t\tcreateTable.execute(town);\n\n\t\tDetail detail = new Detail();\n\t\tdetail.setId(1);\n\t\tcreateTable.execute(detail);\n\n\t\tOrder order = new Order();\n\t\torder.setId(1);\n\t\tcreateTable.execute(order);\n\n\t\tBrand2 brand2 = new Brand2();\n\t\tbrand2.setId(1);\n\t\tcreateTable.execute(brand2);\n\n\t\tColor color = new Color();\n\t\tcolor.setId(1);\n\t\tcreateTable.execute(color);\n\n\t\tFeature feature = new Feature();\n\t\tfeature.setId(1);\n\t\tcreateTable.execute(feature);\n\n\t\tImg img = new Img();\n\t\timg.setId(1);\n\t\tcreateTable.execute(img);\n\n\t\tSku sku = new Sku();\n\t\tsku.setId(1);\n\t\tcreateTable.execute(sku);\n\n\t\tType type = new Type();\n\t\ttype.setId(1);\n\t\tcreateTable.execute(type);\n\n\t\tAddr addr = new Addr();\n\t\taddr.setId(1);\n\t\tcreateTable.execute(addr);\n\t\tcreateTable.execute(new Buyer());\n\n\t\t// 商品编号 商品名称 图片 新品 热卖 推荐 上下架 操作选项\n\t\tProduct product = new Product();\n\t\tproduct.setId(001);\n\t\tproduct.setNo(UUID.randomUUID().toString());\n\t\tproduct.setName(\"依琦莲2014瑜伽服套装新款 瑜珈健身服三件套 广场舞蹈服装 女瑜伽服送胸垫 长袖紫色\");\n\t\tproduct.setWeight(56.00);\n\t\tproduct.setIsNew(1); // 1是 0否\n\t\tproduct.setIsHot(1);\n\t\tproduct.setCreateTime(new Date());\n\t\tproduct.setCheckUserId(\"\");\n\t\tproduct.setCheckTime(new Date());\n\t\tproduct.setCreateUserId(\"\");\n\t\tproduct.setIsShow(1);\n\t\tproduct.setIsDel(1);\n\t\tproduct.setTypeId(1);\n\t\tproduct.setBrandId(1);\n\t\tproduct.setKeywords(\"\");\n\t\tproduct.setSales(36);\n\t\tproduct.setDescription(\"不是东西\");\n\t\tproduct.setPackageList(\"\");\n\t\tproduct.setFeature(\"头角狰狞\");\n\t\tproduct.setColor(\"blue\");\n\t\tproduct.setSize(\"L\"); // S,L,XXL\n\t\tcreateTable.execute(product);\n\n\t\t// insert into\n\t\t// Product(id,no,name,weight,isNew,isHot,sales,description,feature,size)value(1,\"11xzc3568\",\"依琦莲2014瑜伽服套装新款女瑜伽服送胸垫\n\t\t// 长袖紫色\",36.12,1,1,110,\"不是东西\",\"头角狰狞\",\"blue\",\"L\");\n\n\t\tEmployee employee = new Employee();\n\t\temployee.setId(1);\n\t\tcreateTable.execute(employee);\n\n\t}", "Vaisseau_ordonneeLaPlusHaute createVaisseau_ordonneeLaPlusHaute();", "private void createCheckingAccountsTable() {\n\t\ttry {\n\t\t\tStatement stmt = this.conn.createStatement();\n\t\t\tstmt.executeUpdate(\"CREATE TABLE checkingAccounts \"\n\t\t\t\t\t+ \"(id BIGINT GENERATED ALWAYS AS IDENTITY ( START WITH 1000000001, INCREMENT BY 1 ), \" + \"owner INT, \"\n\t\t\t\t\t+ \"balance DOUBLE, \" + \"intRate DOUBLE, \"\n\t\t\t\t\t+ \"timeCreated BIGINT, \" + \"lastPaidInterest DOUBLE, \"\n\t\t\t\t\t+ \"dateOfLastPaidInterest BIGINT)\");\n\t\t\tconn.commit();\n\t\t\tSystem.out.println(\"Created table checkingAccounts\");\n\t\t} catch (SQLException sqle) {\n\t\t\tSystem.err.println(\"Creation of checkingAccounts table FAILED\");\n\t\t\tSystem.err.println(sqle);\n\t\t}\n\t}", "@Ignore\n @Test\n public void testCreateIndex() {\n System.out.println(\"createIndex\");\n Util.commonServiceIPs=\"127.0.0.1\";\n \n EntityManager em=Util.getEntityManagerFactory(100).createEntityManager();\n EntityManager platformEm = Util.getPlatformEntityManagerFactory().createEntityManager();\n \n Client client = ESUtil.getClient(em,platformEm,1,false);\n \n RuntimeContext.dataobjectTypes = Util.getDataobjectTypes();\n String indexName = \"test000000\";\n try {\n ESUtil.createIndex(platformEm, client, indexName, true);\n }\n catch(Exception e)\n {\n \n }\n \n\n }", "public void createVirtualTable(){\n\n\t\t\n\t\tif(DBHandler.getConnection()==null){\n\t\t\treturn;\n\t\t}\n\n\t\tif(DBHandler.tableExists(name())){\n\t\t\treturn;\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tStatement s = DBHandler.getConnection().createStatement();\n\t\t\ts.execute(\"create virtual table \"+name()+\" using fts4(\"+struct()+\")\");\n\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\tMainFrame.print(e.getMessage());\n\t\t}\n\t}", "public int create (Section section) throws DataAccessException;", "protected abstract void createAttributes();", "private MetaSparqlRequest createInsertMT1() {\n\t\tString sparqlStr = \"\"+\n\t\t\t\t\"PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>\\r\\n\" + \n\t\t\t\t\"PREFIX ub: \"+_ontology+\"\\r\\n\" + \n\t\t\t\t\"INSERT DATA { GRAPH \"+_graph+\" { \"+\n\t\t\t\tbuilderBindInsert\n\t\t\t\t+\" } }\";\n\t\t\n\t\tSparqlObj sparql= new SparqlObj(sparqlStr) ;\n\t\tEndPoint endPointHost= new EndPoint(_protocol,_host,_port,\"/update\");\n\t\tMetaSparqlRequest msr = new MetaSparqlRequest(new SparqlRequest(sparql,endPointHost));\n\t\tmsr.setTripleInsert(createTripleBaseMT1());\n\t\treturn msr;\n\t}", "public void createTables(){\n Map<String, String> name_type_map = new HashMap<>();\n List<String> primaryKey = new ArrayList<>();\n try {\n name_type_map.put(KEY_SINK_NAME, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_SINK_ADDRESS, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_SINK_DETAIL, MyDatabase.TYPE_VARCHAR);\n primaryKey.add(KEY_SINK_ADDRESS);\n myDatabase.createTable(TABLE_SINK, name_type_map, primaryKey, null);\n }catch (MySQLException e){ //数据表已存在\n e.print();\n }\n try {\n name_type_map.clear();\n name_type_map.put(KEY_NODE_NAME, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_PARENT, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_DETAIL, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_ADDRESS,MyDatabase.TYPE_VARCHAR);\n primaryKey.clear();\n primaryKey.add(KEY_NODE_PARENT);\n primaryKey.add(KEY_NODE_ADDRESS);\n myDatabase.createTable(TABLE_NODE, name_type_map, primaryKey, null);\n }catch (MySQLException e){\n e.print();\n }\n\n try {\n name_type_map.clear();\n name_type_map.put(KEY_NODE_ADDRESS, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_PARENT, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_DATA_TIME, MyDatabase.TYPE_TIMESTAMP);\n name_type_map.put(KEY_DATA_VAL, MyDatabase.TYPE_FLOAT);\n primaryKey.clear();\n primaryKey.add(KEY_DATA_TIME);\n primaryKey.add(KEY_NODE_ADDRESS);\n primaryKey.add(KEY_NODE_PARENT);\n myDatabase.createTable(TABLE_DATA, name_type_map, primaryKey, null);\n }catch (MySQLException e) {\n e.print();\n }\n }", "int insert(ec_environment record);", "public void setup() throws SQLException {\n // Create ACARS table\n final String createTableSQL = \"CREATE TABLE IF NOT EXISTS ACARS (\"\n + \"date DATE, time TIME, frequency CHAR(7), \"\n + \"registration VARCHAR(7), flight CHAR(6), \"\n + \"mode CHAR, label CHAR(2), blockId CHAR, msgId CHAR(4), \"\n + \"text VARCHAR(255), \"\n + \"PRIMARY KEY (date, registration, flight, mode, label, blockId, msgId), \"\n + \"INDEX datetime_idx (date, time), \"\n + \"INDEX registration_idx (registration), \"\n + \"INDEX flight_idx (flight)\"\n + \")\";\n\n final Statement createTableStmt = connection.createStatement();\n createTableStmt.execute(createTableSQL);\n }", "TableInstance createTableInstance();", "private String createTableSQL()\n\t{\n\t\tStringBuffer str = new StringBuffer();\n\n\t\t// Keep track of the list of fields\n\t\tList<String> listFields = new ArrayList<String>();\n\n\t\t// Table command\n\t\tstr.append(\"CREATE TABLE \" + getFullPath() + \"( \");\n\t\tstr.append(createStandardGZFields());\n\n\t\t// Loop through all InputFields\n\t\tfor (InputFieldSet fieldSet : function.getInputFieldSets())\n\t\t{\n\t\t\tfor (InputField inputField : fieldSet.getInputFields())\n\t\t\t{\n\t\t\t\t// Phase 2 does not support repeating fields being journalled\n\t\t\t\tif (!Field.isRepeating(inputField))\n\t\t\t\t{\n\t\t\t\t\t// Field\n\t\t\t\t\tString fieldName = SQLToolbox.cvtToSQLFieldName(inputField.getId());\n\n\t\t\t\t\t// add if not yet existing\n\t\t\t\t\tif (listFields.indexOf(fieldName) == -1)\n\t\t\t\t\t{\n\t\t\t\t\t\tstr.append(\", \");\n\t\t\t\t\t\tString fieldDataType = inputField.getDataType();\n\t\t\t\t\t\tString fieldType = SQLToolbox.cvtToSQLFieldType(fieldDataType, inputField.getSize(), inputField\n\t\t\t\t\t\t\t\t\t\t.getDecimals());\n\t\t\t\t\t\tString fieldDefault = SQLToolbox.cvtToSQLDefault(fieldDataType);\n\t\t\t\t\t\tstr.append(fieldName + \" \" + fieldType + \" \" + \" not null default \" + fieldDefault);\n\t\t\t\t\t\tlistFields.add(fieldName);\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// End\n\t\tstr.append(\" ) \");\n\t\t// RCDFMT \" + getJournalRcdName());\n\n\t\treturn str.toString();\n\t}", "public org.oep.cmon.dao.dvc.model.ThuTuc2GiayTo create(long id);" ]
[ "0.6137034", "0.6020893", "0.5953024", "0.5871004", "0.58520657", "0.5824135", "0.5783128", "0.5781292", "0.5779935", "0.5768486", "0.57018137", "0.569296", "0.5677845", "0.566757", "0.56516117", "0.5639093", "0.56084186", "0.5601316", "0.55988264", "0.5587084", "0.5586368", "0.5579563", "0.55671966", "0.5562383", "0.55537105", "0.55511224", "0.5550222", "0.5547236", "0.55009055", "0.54889506", "0.5482187", "0.54807544", "0.5465443", "0.5454913", "0.54468626", "0.5434606", "0.5426381", "0.54197514", "0.5414243", "0.54073745", "0.5402808", "0.5390703", "0.5390526", "0.5390526", "0.5390526", "0.538945", "0.53878444", "0.53796816", "0.5375914", "0.53748345", "0.53730184", "0.5365049", "0.5364833", "0.5364805", "0.536257", "0.5361029", "0.5360632", "0.53598887", "0.5350994", "0.5339128", "0.5338244", "0.53296435", "0.5321595", "0.5320979", "0.53194505", "0.5318698", "0.5313326", "0.53126156", "0.53099495", "0.5306004", "0.5300889", "0.5293614", "0.529321", "0.52883255", "0.5281361", "0.5281042", "0.527843", "0.5270345", "0.526982", "0.52697945", "0.52608657", "0.5259804", "0.52563196", "0.5249798", "0.5247741", "0.5239433", "0.5224713", "0.5224455", "0.5222238", "0.5221105", "0.521778", "0.5213034", "0.5211071", "0.52098143", "0.5208245", "0.5207931", "0.52069414", "0.5205663", "0.52015704", "0.5196995", "0.5195414" ]
0.0
-1
CREATE BY ANH DUC
Account coverEmpDTOToAccount(AccountDTO accountDTO);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int createTable(HbaseObj t);", "private void processCreate() throws HsqlException {\n\n boolean unique = false;\n int tableType;\n boolean isTempTable = false;\n String token;\n\n session.checkAdmin();\n session.checkDDLWrite();\n session.setScripting(true);\n\n if (tokenizer.isGetThis(Token.T_GLOBAL)) {\n tokenizer.getThis(Token.T_TEMPORARY);\n\n isTempTable = true;\n } else if (tokenizer.isGetThis(Token.T_TEMP)) {\n isTempTable = true;\n } else if (tokenizer.isGetThis(Token.T_TEMPORARY)) {\n isTempTable = true;\n }\n\n token = tokenizer.getSimpleToken();\n\n switch (Token.get(token)) {\n\n // table\n case Token.MEMORY :\n tokenizer.getThis(Token.T_TABLE);\n case Token.TABLE :\n tableType = isTempTable ? Table.TEMP_TABLE\n : database.getDefaultTableType();\n\n processCreateTable(tableType);\n\n return;\n\n case Token.CACHED :\n if (isTempTable) {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n\n tokenizer.getThis(Token.T_TABLE);\n processCreateTable(Table.CACHED_TABLE);\n\n return;\n\n case Token.TEXT :\n if (isTempTable) {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n\n tokenizer.getThis(Token.T_TABLE);\n processCreateTable(Table.TEXT_TABLE);\n\n return;\n\n default :\n if (isTempTable) {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n }\n\n switch (Token.get(token)) {\n\n // other objects\n case Token.ALIAS :\n processCreateAlias();\n break;\n\n case Token.SEQUENCE :\n processCreateSequence();\n break;\n\n case Token.SCHEMA :\n session.setScripting(false);\n processCreateSchema();\n break;\n\n case Token.TRIGGER :\n processCreateTrigger();\n break;\n\n case Token.USER :\n processCreateUser();\n break;\n\n case Token.ROLE :\n database.getGranteeManager().addRole(getUserIdentifier());\n break;\n\n case Token.VIEW :\n processCreateView();\n break;\n\n // index\n case Token.UNIQUE :\n unique = true;\n\n tokenizer.getThis(Token.T_INDEX);\n\n //fall thru\n case Token.INDEX :\n processCreateIndex(unique);\n break;\n\n default : {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n }\n }", "void create(DataTableDef def) throws IOException;", "CreationData creationData();", "protected abstract D createData();", "FromTable createFromTable();", "public void create() {\n\t\t\n\t}", "public void create() {\n\t\t\tdb.execSQL(AGENCYDB_CREATE+\".separete,.import agency.txt agency\");\n\t\t\tdb.execSQL(STOPSDB_CREATE+\".separete,.import stop_times.txt stop_times\");\n\t\t\t\n\t\t\t// Add 2 agencies for testing\n\t\t\t\n\t\t\t\n\t\t\tdb.setVersion(DATABASE_VERSION);\n\t\t}", "HdbdtiModel createHdbdtiModel();", "HdbSequenceElements createHdbSequenceElements();", "DD createDD();", "TD createTD();", "public String createTable(){\r\n return \"CREATE TABLE Doctor \" +\r\n \"(idDoctor decimal primary key, \" +\r\n \"firstNameDoctor char(14), \" +\r\n \"lastNameDoctor char(14), \" +\r\n \"costPerVisit integer,\" +\r\n \"qualification varchar(32))\";\r\n }", "private void createCDAccountsTable() {\n\t\ttry {\n\t\t\tStatement stmt = this.conn.createStatement();\n\t\t\tstmt.executeUpdate(\"CREATE TABLE cdAccounts \"\n\t\t\t\t\t+ \"(id BIGINT GENERATED ALWAYS AS IDENTITY ( START WITH 3000000001, INCREMENT BY 1 ), \" + \"owner INT, \"\n\t\t\t\t\t+ \"term INT, \" + \"balance DOUBLE, \" + \"intRate DOUBLE, \"\n\t\t\t\t\t+ \"timeCreated BIGINT, \" + \"lastPaidInterest DOUBLE, \"\n\t\t\t\t\t+ \"dateOfLastPaidInterest BIGINT)\");\n\t\t\tconn.commit();\n\t\t\tSystem.out.println(\"Created table cdAccounts\");\n\t\t} catch (SQLException sqle) {\n\t\t\tSystem.err.println(\"Creation of cdAccounts table FAILED\");\n\t\t\tSystem.err.println(sqle);\n\t\t}\n\t}", "public void createDienst()\n\t{\n\t\twriteDb(\"INSERT INTO dienstleistung (Bezeichnung, Preis)\" + \"VALUES('\" + typ + \"', '\" + preis +\"')\", getWriteCon());\n\t\tcommitDbConnection(getWriteCon());\n\t}", "public void create(){}", "@Override\n\tpublic String createTable() {\n\t\t\t\treturn \"CREATE TABLE history_table_view(id number(8) primary key not null ,sqltext text, pointid varchar2(1024), type varchar2(100))\";\n\t}", "public static void createTable() {\n\n // Create statement\n Statement statement = null;\n try {\n statement = Database.getDatabase().getConnection().createStatement();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n // Attempt to create table\n try {\n statement.execute(\n \"CREATE TABLE \" + Constants.SANITATION_TABLE + \"(\" +\n \"requestID INT PRIMARY KEY GENERATED ALWAYS AS IDENTITY (START WITH 1, INCREMENT BY 1),\" +\n \"nodeID VARCHAR(100) References \" + Constants.LOCATION_TABLE + \" (nodeID), \" +\n \"priority VARCHAR(10), \" +\n \"status VARCHAR(100), \" +\n \"description VARCHAR(100), \" +\n \"requesterID INT REFERENCES \" + Constants.USERS_TABLE + \"(userID), \" +\n \"requestTime TIMESTAMP, \" +\n \"servicerID INT REFERENCES \" + Constants.USERS_TABLE + \"(userID), \" +\n \"claimedTime TIMESTAMP, \" +\n \"completedTime TIMESTAMP, \" +\n \"CONSTRAINT priority_enum CHECK (priority in ('LOW', 'MEDIUM', 'HIGH')), \" +\n \"CONSTRAINT status_enum CHECK (status in ('INCOMPLETE', 'COMPLETE')))\"\n );\n } catch (SQLException | NullPointerException e) {\n e.printStackTrace();\n }\n }", "BTable createBTable();", "@Override\r\n\tpublic void create() {\n\t\t\r\n\t}", "@Override\n\tpublic void create() {\n\t\t\n\t}", "public abstract Anuncio creaAnuncioTematico();", "long createDatabase(long actor, String nameToDisplay, long proteinDBType, long sizeInBytes, boolean bPublic, boolean bReversed, ExperimentCategory category);", "TABLE createTABLE();", "private void processCreateTable(int type) throws HsqlException {\n\n String token = tokenizer.getName();\n HsqlName schemaname =\n session.getSchemaHsqlNameForWrite(tokenizer.getLongNameFirst());\n\n database.schemaManager.checkUserTableNotExists(session, token,\n schemaname.name);\n\n boolean isnamequoted = tokenizer.wasQuotedIdentifier();\n int[] pkCols = null;\n int colIndex = 0;\n boolean constraint = false;\n Table t = newTable(type, token, isnamequoted, schemaname);\n\n tokenizer.getThis(Token.T_OPENBRACKET);\n\n while (true) {\n token = tokenizer.getString();\n\n switch (Token.get(token)) {\n\n case Token.CONSTRAINT :\n case Token.PRIMARY :\n case Token.FOREIGN :\n case Token.UNIQUE :\n case Token.CHECK :\n\n // fredt@users : check for quoted reserved words used as column names\n constraint = !tokenizer.wasQuotedIdentifier()\n && !tokenizer.wasLongName();\n }\n\n tokenizer.back();\n\n if (constraint) {\n break;\n }\n\n Column newcolumn = processCreateColumn();\n\n t.addColumn(newcolumn);\n\n if (newcolumn.isPrimaryKey()) {\n Trace.check(pkCols == null, Trace.SECOND_PRIMARY_KEY,\n newcolumn.columnName.name);\n\n pkCols = new int[]{ colIndex };\n }\n\n token = tokenizer.getSimpleToken();\n\n if (token.equals(Token.T_COMMA)) {\n colIndex++;\n\n continue;\n }\n\n if (token.equals(Token.T_CLOSEBRACKET)) {\n break;\n }\n\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n\n HsqlArrayList tempConstraints = processCreateConstraints(t,\n constraint, pkCols);\n\n if (tokenizer.isGetThis(Token.T_ON)) {\n if (!t.isTemp) {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, Token.T_ON);\n }\n\n tokenizer.getThis(Token.T_COMMIT);\n\n token = tokenizer.getSimpleToken();\n\n if (token.equals(Token.T_DELETE)) {}\n else if (token.equals(Token.T_PRESERVE)) {\n t.onCommitPreserve = true;\n } else {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n\n tokenizer.getThis(Token.T_ROWS);\n }\n\n try {\n session.commit();\n\n Constraint primaryConst = (Constraint) tempConstraints.get(0);\n\n t.createPrimaryKey(null, primaryConst.core.mainColArray, true);\n\n if (primaryConst.core.mainColArray != null) {\n if (primaryConst.constName == null) {\n primaryConst.constName = t.makeSysPKName();\n }\n\n Constraint newconstraint =\n new Constraint(primaryConst.constName, t,\n t.getPrimaryIndex(),\n Constraint.PRIMARY_KEY);\n\n t.addConstraint(newconstraint);\n database.schemaManager.registerConstraintName(\n primaryConst.constName.name, t.getName());\n }\n\n for (int i = 1; i < tempConstraints.size(); i++) {\n Constraint tempConst = (Constraint) tempConstraints.get(i);\n\n if (tempConst.constType == Constraint.UNIQUE) {\n TableWorks tableWorks = new TableWorks(session, t);\n\n tableWorks.createUniqueConstraint(\n tempConst.core.mainColArray, tempConst.constName);\n\n t = tableWorks.getTable();\n }\n\n if (tempConst.constType == Constraint.FOREIGN_KEY) {\n TableWorks tableWorks = new TableWorks(session, t);\n\n tableWorks.createForeignKey(tempConst.core.mainColArray,\n tempConst.core.refColArray,\n tempConst.constName,\n tempConst.core.refTable,\n tempConst.core.deleteAction,\n tempConst.core.updateAction);\n\n t = tableWorks.getTable();\n }\n\n if (tempConst.constType == Constraint.CHECK) {\n TableWorks tableWorks = new TableWorks(session, t);\n\n tableWorks.createCheckConstraint(tempConst,\n tempConst.constName);\n\n t = tableWorks.getTable();\n }\n }\n\n database.schemaManager.linkTable(t);\n } catch (HsqlException e) {\n\n// fredt@users 20020225 - comment\n// if a HsqlException is thrown while creating table, any foreign key that has\n// been created leaves it modification to the expTable in place\n// need to undo those modifications. This should not happen in practice.\n database.schemaManager.removeExportedKeys(t);\n database.schemaManager.removeIndexNames(t.tableName);\n database.schemaManager.removeConstraintNames(t.tableName);\n\n throw e;\n }\n }", "@Override\n\tpublic void create() {\n\n\t}", "public void testCreateTable() {\n LOG.info(\"Entering testCreateTable.\");\n\n // Specify the table descriptor.\n HTableDescriptor htd = new HTableDescriptor(tableName);\n\n // Set the column family name to info.\n HColumnDescriptor hcd = new HColumnDescriptor(\"info\");\n\n // Set data encoding methods,HBase provides DIFF,FAST_DIFF,PREFIX\n // and PREFIX_TREE\n hcd.setDataBlockEncoding(DataBlockEncoding.FAST_DIFF);\n\n // Set compression methods, HBase provides two default compression\n // methods:GZ and SNAPPY\n // GZ has the highest compression rate,but low compression and\n // decompression effeciency,fit for cold data\n // SNAPPY has low compression rate, but high compression and\n // decompression effeciency,fit for hot data.\n // it is advised to use SANPPY\n hcd.setCompressionType(Compression.Algorithm.SNAPPY);\n\n htd.addFamily(hcd);\n\n Admin admin = null;\n try {\n // Instantiate an Admin object.\n admin = conn.getAdmin();\n if (!admin.tableExists(tableName)) {\n LOG.info(\"Creating table...\");\n admin.createTable(htd);\n LOG.info(admin.getClusterStatus());\n LOG.info(admin.listNamespaceDescriptors());\n LOG.info(\"Table created successfully.\");\n } else {\n LOG.warn(\"table already exists\");\n }\n } catch (IOException e) {\n LOG.error(\"Create table failed.\");\n } finally {\n if (admin != null) {\n try {\n // Close the Admin object.\n admin.close();\n } catch (IOException e) {\n LOG.error(\"Failed to close admin \", e);\n }\n }\n }\n LOG.info(\"Exiting testCreateTable.\");\n }", "public CreateData() {\n\t\t\n\t\t// TODO Auto-generated constructor stub\n\t}", "boolean createTable();", "@Override\r\n public Db_db createTable (Db_table table)\r\n {\r\n Db_db db = null;\r\n String query = \"CREATE TABLE IF NOT EXISTS \"+ table.getName() + \" (\"; \r\n String primaryKeyName = null;\r\n Set<Map.Entry<String, Db_tableColumn>> tableEntries;\r\n List<String> listOfUniqueKey = Lists.newArrayList();\r\n \r\n if(curConnection_ != null)\r\n {\r\n try\r\n {\r\n tableEntries = table.getEntrySet();\r\n for(Map.Entry<String, Db_tableColumn> entry: tableEntries)\r\n {\r\n Db_tableColumn entryContent = entry.getValue();\r\n \r\n if(entryContent.isPrimary() && primaryKeyName == null)\r\n {\r\n primaryKeyName = entryContent.getName();\r\n }\r\n else if(entryContent.isPrimary() && primaryKeyName != null)\r\n {\r\n throw new NumberFormatException();\r\n }\r\n \r\n if(itsAttributeMapper_ == null)\r\n {\r\n throw new NumberFormatException();\r\n }\r\n \r\n if(entryContent.isUnique())\r\n {\r\n listOfUniqueKey.add(entryContent.getName());\r\n }\r\n \r\n String mappedAttribute = this.itsAttributeMapper_.MapAttribute(entryContent.getAttributeName());\r\n if(entryContent.getAttribute().isEnum())\r\n {\r\n mappedAttribute += entryContent.getAttribute().buildEnumValueListString();\r\n }\r\n query += entryContent.getName() + \" \" + mappedAttribute \r\n + (entryContent.isAutoIncreasmnet()?\" AUTO_INCREMENT \":\" \")\r\n + (entryContent.isUnique()?\" UNIQUE, \": \", \");\r\n }\r\n \r\n query += \"PRIMARY KEY (\" + primaryKeyName + \"));\";\r\n try (Statement sm = curConnection_.createStatement()) {\r\n sm.executeUpdate(query);\r\n db = this.curDb_;\r\n }\r\n \r\n }catch(NumberFormatException e){System.out.print(e);}\r\n catch(SQLException e){System.out.print(query);this.CurConnectionFailed();}\r\n }\r\n return db;\r\n }", "public Hoppy insert(Hoppy hoppy, IdGenerateService<Long> idGenerateService) throws DataAccessException;", "interface WithCreate extends\n SqlElasticPoolOperations.DefinitionStages.WithDatabaseDtuMin,\n SqlElasticPoolOperations.DefinitionStages.WithDatabaseDtuMax,\n SqlElasticPoolOperations.DefinitionStages.WithDtu,\n SqlElasticPoolOperations.DefinitionStages.WithStorageCapacity,\n SqlElasticPoolOperations.DefinitionStages.WithDatabase,\n Resource.DefinitionWithTags<SqlElasticPoolOperations.DefinitionStages.WithCreate>,\n Creatable<SqlElasticPool> {\n }", "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:49.404 -0500\", hash_original_method = \"CD5C82C799E78C74801FDB521CEE7324\", hash_generated_method = \"CD5C82C799E78C74801FDB521CEE7324\")\n \nContext ()\n {\n copyTables();\n }", "OrTable createOrTable();", "public abstract void create();", "DT createDT();", "@Override\n public void createSchema(Properties props)\n {\n Statement statement;\n try\n {\n statement = connection.createStatement();\n \n //Drop Indexes\n dropIndex(statement, \"CONFFRIENDSHIP_INVITEEID\", \"CONFFRIENDSHIP\");\n dropIndex(statement, \"CONFFRIENDSHIP_INVITERID\", \"CONFFRIENDSHIP\");\n dropIndex(statement, \"PENDFRIENDSHIP_INVITEEID\", \"PENDFRIENDSHIP\");\n dropIndex(statement, \"PENDFRIENDSHIP_INVITERID\", \"PENDFRIENDSHIP\");\n dropIndex(statement, \"MANIPULATION_RID\", \"MANIPULATION\");\n dropIndex(statement, \"MANIPULATION_CREATORID\", \"MANIPULATION\");\n dropIndex(statement, \"RESOURCES_WALLUSERID\", \"RESOURCES\");\n dropIndex(statement, \"RESOURCE_CREATORID\", \"RESOURCES\");\n \n //Drop Tables\n dropTable(statement, \"CONFFRIENDSHIP\");\n dropTable(statement, \"PENDFRIENDSHIP\");\n dropTable(statement, \"MANIPULATION\");\n dropTable(statement, \"RESOURCES\");\n dropTable(statement, \"USERS\");\n \n //Create Tables\n statement.executeUpdate(\"CREATE TABLE CONFFRIENDSHIP \" + \"(INVITERID INTEGER NOT NULL, \" + \"INVITEEID INTEGER NOT NULL, \" + \"PRIMARY KEY (INVITERID, INVITEEID))\");\n statement.executeUpdate(\"CREATE TABLE PENDFRIENDSHIP \" + \"(INVITERID INTEGER NOT NULL, \" + \"INVITEEID INTEGER NOT NULL, \" + \"PRIMARY KEY (INVITERID, INVITEEID))\");\n statement.executeUpdate(\"CREATE TABLE MANIPULATION \" + \"(MID INTEGER NOT NULL, \" + \"MODIFIERID INTEGER NOT NULL, \" + \"RID INTEGER NOT NULL, \" + \"CREATORID INTEGER NOT NULL, \" + \"TIMESTAMP VARCHAR(200), \" + \"TYPE VARCHAR(200), \" + \"CONTENT VARCHAR(200), \" + \"PRIMARY KEY (MID,RID))\");\n statement.executeUpdate(\"CREATE TABLE RESOURCES \" + \"(RID INTEGER NOT NULL , \" + \"CREATORID INTEGER NOT NULL, \" + \"WALLUSERID INTEGER NOT NULL, \" + \"TYPE VARCHAR(200), \" + \"BODY VARCHAR(200), \" + \"DOC VARCHAR(200), \" + \"PRIMARY KEY (RID))\");\n statement.executeUpdate(\"CREATE TABLE USERS \" + \"(USERID INTEGER NOT NULL , \" + \"USERNAME VARCHAR(200), \" + \"PW VARCHAR(200), \" + \"FNAME VARCHAR(200), \" + \"LNAME VARCHAR(200), \" + \"GENDER VARCHAR(200),\" + \"DOB VARCHAR(200), \" + \"JDATE VARCHAR(200), \" + \"LDATE VARCHAR(200), \" + \"ADDRESS VARCHAR(200),\" + \"EMAIL VARCHAR(200), \" + \"TEL VARCHAR(200), \" + \"PRIMARY KEY (USERID))\");\n \n //Add Foreign Keys\n statement.executeUpdate(\"ALTER TABLE CONFFRIENDSHIP \" + \"ADD CONSTRAINT CONFFRIENDSHIP_USERS_FK1 FOREIGN KEY (INVITERID)\" + \"REFERENCES USERS (USERID) ON DELETE CASCADE\");\n statement.executeUpdate(\"ALTER TABLE CONFFRIENDSHIP \" + \"ADD CONSTRAINT CONFFRIENDSHIP_USERS_FK2 FOREIGN KEY (INVITEEID)\" + \"REFERENCES USERS (USERID) ON DELETE NO ACTION\");\n statement.executeUpdate(\"ALTER TABLE PENDFRIENDSHIP \" + \"ADD CONSTRAINT PENDFRIENDSHIP_USERS_FK1 FOREIGN KEY (INVITERID)\" + \"REFERENCES USERS (USERID) ON DELETE CASCADE\");\n statement.executeUpdate(\"ALTER TABLE PENDFRIENDSHIP \" + \"ADD CONSTRAINT PENDFRIENDSHIP_USERS_FK2 FOREIGN KEY (INVITEEID)\" + \"REFERENCES USERS (USERID) ON DELETE NO ACTION\");\n statement.executeUpdate(\"ALTER TABLE MANIPULATION \" + \"ADD CONSTRAINT MANIPULATION_RESOURCES_FK1 FOREIGN KEY (RID)\" + \"REFERENCES RESOURCES (RID) ON DELETE CASCADE\");\n statement.executeUpdate(\"ALTER TABLE MANIPULATION \" + \"ADD CONSTRAINT MANIPULATION_USERS_FK1 FOREIGN KEY (CREATORID)\" + \"REFERENCES USERS (USERID) ON DELETE NO ACTION\");\n statement.executeUpdate(\"ALTER TABLE MANIPULATION \" + \"ADD CONSTRAINT MANIPULATION_USERS_FK2 FOREIGN KEY (MODIFIERID)\" + \"REFERENCES USERS (USERID) ON DELETE NO ACTION\");\n statement.executeUpdate(\"ALTER TABLE RESOURCES \" + \"ADD CONSTRAINT RESOURCES_USERS_FK1 FOREIGN KEY (CREATORID)\" + \"REFERENCES USERS (USERID) ON DELETE CASCADE\");\n statement.executeUpdate(\"ALTER TABLE RESOURCES \" + \"ADD CONSTRAINT RESOURCES_USERS_FK2 FOREIGN KEY (WALLUSERID)\" + \"REFERENCES USERS (USERID) ON DELETE NO ACTION\");\n \n //Create Indexes\n buildIndexes(null);\n }\n catch (SQLException ex)\n {\n Logger.getLogger(WindowsAzureClientInit.class.getName()).log(Level.SEVERE, null, ex);\n System.out.println(\"Error in creating schema!\");\n }\n }", "public void createTable() throws LRException\n\t{\n\t\tgetBackground();\n\t\tDataHRecordData myData=(DataHRecordData)getData();\n\t\t// Create a new (empty) record\n\t\tcreate(new Hashtable(),myData);\n\t\tif (myData.record==null) throw new LRException(DataRMessages.nullRecord(getName()));\n\t\ttry\n\t\t{\n\t\t\tbackground.newTransaction();\n\t\t\tmyData.record.createNewTable(background.getClient(),true);\n\t\t}\n\t\tcatch (LDBException e) { setStatus(e); }\n\t}", "public boolean createTable(String input) throws IOException{\n\t\tString orgQuery = input;\n\t\torgQuery = orgQuery.trim();\n\t\tString query = input.toLowerCase().trim();\n\t\tboolean queryFailed = false;\n\t\t//Schema Instance \n\t\tSchema currentSchema = Schema.getSchemaInstance();\n\t\tString currentSchemaName = currentSchema.getCurrentSchema();\n\n\t\t//TableSchemaManager Instance\n\t\tTableSchemaManager currentTableSchemaManager = TableSchemaManager.getTableSchemaManagerInstance();\n\n\t\t//Extracting Table name\n\t\ttableName = orgQuery.substring(query.indexOf(\"table \")+6,query.indexOf(\"(\")).trim();\n\n\t\t//Updating SCHEMA.TABLE.TBL\n\t\tif(updateInformationSchemaTable()){\n\t\t\tqueryFailed = true;\n\t\t\treturn queryFailed;\n\t\t}\n\n\t\t//Extracting Table contents\n\t\tString tableContentsWithQuotes = orgQuery.substring(orgQuery.indexOf(\"(\")+1,orgQuery.length());\n\t\tString tableContents = tableContentsWithQuotes.replace(\"))\", \")\");\n\t\ttableContents = tableContents.trim();\n\n\t\tTableSchemaManager.ordinalMap = new TreeMap<Integer,List<String>>();\n\t\tTableSchemaManager.tableMap = new TreeMap<String,TreeMap<Integer,List<String>>>();\n\t\t\n\t\t//Creating n instances of Table helper\n\t\tString[] createTableContents = tableContents.split(\"\\\\,\"); \n\t\tnoOfColumns = createTableContents.length;\n\t\tCreateTableHelper[] th = new CreateTableHelper[noOfColumns];\n\n\t\t\n\t\t//Handles single row of Create Table \n\t\tfor(int item = 0; item < noOfColumns ; item++){\n\t\t\tth[item] = new CreateTableHelper(); \n\t\t\t//To remove any leading or trailing spaces\n\t\t\tcreateTableContents[item] = createTableContents[item].trim();\n\t\t\tString columnName = createTableContents[item].substring(0, createTableContents[item].indexOf(\" \"));\n\t\t\tth[item].setColumnName(columnName);\n\n\t\t\t//Setting Primary Key\n\t\t\tString primaryKeyExp = \"(.*)[pP][rR][iI][mM][aA][rR][yY](.*)\";\n\t\t\tif (createTableContents[item].matches(primaryKeyExp))\n\t\t\t\tth[item].setPrimaryKey(true);\n\t\t\telse\n\t\t\t\tth[item].setPrimaryKey(false);\n\n\t\t\t//Setting Null Value\t\n\t\t\tString notNullExp = \"(.*)[nN][uU][lL][lL](.*)\";\n\t\t\tif (createTableContents[item].matches(notNullExp))\n\t\t\t\tth[item].setNull(true);\n\t\t\telse\n\t\t\t\tth[item].setNull(false);\n\n\t\t\t//Extracting data types \n\t\t\t//BYTE\n\t\t\tString byteExp = \"(.*)[bB][yY][tT][eE](.*)\";\n\t\t\tif (createTableContents[item].matches(byteExp)){\n\t\t\t\tth[item].setDataType(\"BYTE\");\n\t\t\t}\n\t\t\t//SHORT\n\t\t\tString shortExp = \"(.*)[sS][hH][oO][rR][tT](.*)\";\n\t\t\tif (createTableContents[item].matches(shortExp)){\n\t\t\t\tth[item].setDataType(\"SHORT\");\n\t\t\t}\n\t\t\t//INT\n\t\t\tString intExp = \"(.*)[iI][nN][tT](.*)\";\n\t\t\tif (createTableContents[item].matches(intExp)){\n\t\t\t\tth[item].setDataType(\"INT\");\n\t\t\t}\n\t\t\t//LONG\n\t\t\tString longExp = \"(.*)[lL][oO][nN][gG](.*)\";\n\t\t\tif (createTableContents[item].matches(longExp)){\n\t\t\t\tth[item].setDataType(\"LONG\");\n\t\t\t}\n\t\t\t//CHAR\n\t\t\tString charExp = \"(.*)[cC][hH][aA][rR](.*)\";\n\t\t\tif (createTableContents[item].matches(charExp)){\n\t\t\t\tString size = createTableContents[item].substring(createTableContents[item].indexOf(\"(\")+1, createTableContents[item].indexOf(\")\"));\n\t\t\t\tth[item].setDataType(\"CHAR(\" + size + \")\");\n\t\t\t}\n\t\t\t//VARCHAR\n\t\t\tString varcharExp = \"(.*)[vV][aA][rR][cC][hH][aA][rR](.*)\";\n\t\t\tif (createTableContents[item].matches(varcharExp)){\n\t\t\t\tString size = createTableContents[item].substring(createTableContents[item].indexOf(\"(\")+1, createTableContents[item].indexOf(\")\"));\n\t\t\t\tth[item].setDataType(\"VARCHAR(\" + size + \")\");\n\t\t\t}\n\t\t\t//FLOAT\n\t\t\tString floatExp = \"(.*)[fF][lL][oO][aA][tT](.*)\";\n\t\t\tif (createTableContents[item].matches(floatExp)){\n\t\t\t\tth[item].setDataType(\"FLOAT\");\t\t\t\t\n\t\t\t}\n\t\t\t//DOUBLE\n\t\t\tString doubleExp = \"(.*)[dD][oO][uU][bB][lL][eE](.*)\";\n\t\t\tif (createTableContents[item].matches(doubleExp)){\n\t\t\t\tth[item].setDataType(\"DOUBLE\");\n\t\t\t}\n\t\t\t//DATETIME\n\t\t\tString dateTimeExp = \"(.*)[dD][aA][tT][eE][tT][iI][mM][eE](.*)\";\n\t\t\tif (createTableContents[item].matches(dateTimeExp)){\n\t\t\t\tth[item].setDataType(\"DATETIME\");\n\t\t\t}\n\t\t\t//DATE\n\t\t\tString dateExp = \"(.*)[dD][aA][tT][eE](.*)\";\n\t\t\tif (createTableContents[item].matches(dateExp)){\n\t\t\t\tth[item].setDataType(\"DATE\");\n\t\t\t}\n\n\t\t\tcurrentTableSchemaManager.newTableSchema(\n\t\t\t\t\ttableName,\n\t\t\t\t\titem,\n\t\t\t\t\tth[item].getColumnName(),\n\t\t\t\t\tth[item].getDataType(),\n\t\t\t\t\tth[item].isNull(),\n\t\t\t\t\tth[item].isPrimaryKey()\n\t\t\t\t\t);\n\n\t\t\t//Updating SCHEMA.COLUMNS.TBL\n\t\t\tupdateInformationSchemaColumn(\n\t\t\t\t\tth[item].getColumnName(),\n\t\t\t\t\titem,\n\t\t\t\t\tth[item].getDataType(),\n\t\t\t\t\tth[item].isNull(),\n\t\t\t\t\tth[item].isPrimaryKey()\n\t\t\t\t\t);\n\t\t\t//Create tables to insert index\n\t\t\tString newTableIndexName = currentSchemaName + \".\" + tableName + \".\" +th[item].getColumnName()+ \".tbl.ndx\";\n\t\t\tRandomAccessFile newTableIndexFile = new RandomAccessFile(newTableIndexName, \"rw\");\n\t\t\tnewTableIndexFile.close();\n\n\t\t}\n\n\t\tTableSchemaManager.tableMap.put(tableName, TableSchemaManager.ordinalMap);\n\t\tcurrentTableSchemaManager.updateTableSchema(currentSchemaName,tableName);\n\t\t\n\t\t//Create tables to insert data \n\t\tString newTableDataName = currentSchemaName + \".\" + tableName + \".tbl\";\n\t\tRandomAccessFile newTableDataFile = new RandomAccessFile(newTableDataName, \"rw\");\n\t\tnewTableDataFile.close();\n\t\treturn queryFailed;\n\t}", "public String createDSIndex(String dsID, String dschemaID, String attriName);", "private void createStressTestControlTable() {\n Column runId = new Column(\"RUN_ID\");\n runId.setMappedType(\"INTEGER\");\n runId.setPrimaryKey(true);\n runId.setRequired(true);\n Column clientCommitSleepMs = new Column(\"CLIENT_COMMIT_SLEEP_MS\");\n clientCommitSleepMs.setMappedType(\"BIGINT\");\n Column clientCommitRows = new Column(\"CLIENT_COMMIT_ROWS\");\n clientCommitRows.setMappedType(\"BIGINT\");\n Column serverCommitSleepMs = new Column(\"SERVER_COMMIT_SLEEP_MS\");\n serverCommitSleepMs.setMappedType(\"BIGINT\");\n Column serverCommitRows = new Column(\"SERVER_COMMIT_ROWS\");\n serverCommitRows.setMappedType(\"BIGINT\");\n Column payloadColumns = new Column(\"PAYLOAD_COLUMNS\");\n payloadColumns.setMappedType(\"INTEGER\");\n Column initialSeedSize = new Column(\"INITIAL_SEED_SIZE\");\n initialSeedSize.setMappedType(\"BIGINT\");\n Column duration = new Column(\"DURATION_MINUTES\");\n duration.setMappedType(\"BIGINT\");\n\n Table table = new Table(STRESS_TEST_CONTROL, runId, clientCommitSleepMs, clientCommitRows, serverCommitSleepMs, serverCommitRows,\n payloadColumns, initialSeedSize, duration);\n engine.getDatabasePlatform().createTables(true, true, table);\n }", "@Override\r\n\tpublic void create() {\n\r\n\t}", "Statement createStatement();", "Statement createStatement();", "Statement createStatement();", "public void doCreateTable();", "@Override\n public Pipe execute(DBMS engine) throws DBxicException {\n engine.storManager.createTable(table);\n engine.catalog.saveCatalog();\n return new MessageThroughPipe(\"Table \" + table.getName() + \" successfully created\");\n }", "@Override\n public void setUp() throws SQLException {\n connection.createStatement().executeUpdate(\n \"CREATE TABLE IF NOT EXISTS \\\"ENTRY\\\" (\" +\n \"\\\"SHARED_ID\\\" SERIAL PRIMARY KEY, \" +\n \"\\\"TYPE\\\" VARCHAR, \" +\n \"\\\"VERSION\\\" INTEGER DEFAULT 1)\");\n\n connection.createStatement().executeUpdate(\n \"CREATE TABLE IF NOT EXISTS \\\"FIELD\\\" (\" +\n \"\\\"ENTRY_SHARED_ID\\\" INTEGER REFERENCES \\\"ENTRY\\\"(\\\"SHARED_ID\\\") ON DELETE CASCADE, \" +\n \"\\\"NAME\\\" VARCHAR, \" +\n \"\\\"VALUE\\\" TEXT)\");\n\n connection.createStatement().executeUpdate(\n \"CREATE TABLE IF NOT EXISTS \\\"METADATA\\\" (\"\n + \"\\\"KEY\\\" VARCHAR,\"\n + \"\\\"VALUE\\\" TEXT)\");\n }", "private void m14053d() {\n try {\n File file = new File(f18051l);\n File file2 = new File(f18052m);\n if (!file.exists()) {\n file.mkdirs();\n }\n if (!file2.exists()) {\n file2.createNewFile();\n }\n if (file2.exists()) {\n SQLiteDatabase openOrCreateDatabase = SQLiteDatabase.openOrCreateDatabase(file2, null);\n openOrCreateDatabase.execSQL(\"CREATE TABLE IF NOT EXISTS bdcltb09(id CHAR(40) PRIMARY KEY,time DOUBLE,tag DOUBLE, type DOUBLE , ac INT);\");\n openOrCreateDatabase.execSQL(\"CREATE TABLE IF NOT EXISTS wof(id CHAR(15) PRIMARY KEY,mktime DOUBLE,time DOUBLE, ac INT, bc INT, cc INT);\");\n openOrCreateDatabase.setVersion(1);\n openOrCreateDatabase.close();\n }\n this.f18053a = true;\n } catch (Exception e) {\n }\n }", "interface WithDtu {\n /**\n * Sets the total shared DTU for the SQL Azure Database Elastic Pool.\n *\n * @param dtu total shared DTU for the SQL Azure Database Elastic Pool\n * @return The next stage of the definition.\n */\n @Deprecated\n SqlElasticPoolOperations.DefinitionStages.WithCreate withDtu(int dtu);\n }", "@POST\n @Produces({\"application/json\"})\n public String createDb() throws WebApplicationException {\n HibernateEntityManager emAdm = PersistenceManager.getInstance().getEntityManagerAdmin();\n SQLQuery qCreate = emAdm.getSession().createSQLQuery(\"CREATE DATABASE test_jeff template=postgis\");\n try{\n qCreate.executeUpdate();\n }catch(SQLGrammarException e){\n System.out.println(\"Error !!\" + e.getSQLException());\n emAdm.close();\n return e.getSQLException().getLocalizedMessage();\n }\n emAdm.close();\n Map properties = new HashMap();\n //change the connection string to the new db\n properties.put(\"hibernate.connection.url\", \"jdbc:postgresql_postGIS://192.168.12.36:5432/test_jeff\");\n EntityManagerFactory emf = Persistence.createEntityManagerFactory(\"dataPU\", properties); \n return \"Yeah\";\n }", "public abstract void createTables() throws DataServiceException;", "@Override\n\tpublic void create () {\n\n\t}", "@Test\n public void shouldCreateEpiDataGathering() {\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(0));\n\n Case caze = TestEntityCreator.createCase();\n TestEntityCreator.createEpiDataGathering(caze);\n\n // Assure that the burial has been successfully created\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(1));\n }", "Udt createUdt();", "OperacionColeccion createOperacionColeccion();", "public void create(AttributeList attributeList)\n {\n\n super.create(attributeList); \n \n OADBTransaction transaction = getOADBTransaction();\n \n // DEFAULT: supplier id is obtained from the table's sequence\n Number supplierId = transaction.getSequenceValue(\"FWK_TBX_SUPPLIERS_S\");\n setSupplierId(supplierId);\n\n // DEFAULT: start date should be set to sysdate\n setStartDate(transaction.getCurrentDBDate());\n\n \n }", "Definition createDefinition();", "H1 createH1();", "private static void createDatabase(String restrictedUser) throws ArcException {\n\t\tGenericPreparedStatementBuilder query;\n\n\t\t// clean database\n\t\tquery = new GenericPreparedStatementBuilder();\n\t\tquery.append(\"DROP SCHEMA IF EXISTS \" + DataObjectService.ARC_METADATA_SCHEMA + \" CASCADE;\");\n\t\tquery.append(\"DROP SCHEMA IF EXISTS \" + testSandbox1 + \" CASCADE;\");\n\t\tquery.append(\"DROP SCHEMA IF EXISTS public CASCADE;\");\n\t\tUtilitaireDao.get(0).executeRequest(c, query);\n\t\t\n\t\tBddPatcher patcher=new BddPatcher();\n\t\tpatcher.getProperties().setGitCommitId(newVersion);\n\t\tpatcher.getProperties().setDatabaseRestrictedUsername(userWithRestrictedRights);\n\n\t\t// metadata schema creation\n\t\tpatcher.bddScript(c);\n\t\t// sandbox schema creation\n\t\tpatcher.bddScript(c, testSandbox1, testSandbox2, testSandbox8);\n\t\t\n\t}", "Operacion createOperacion();", "private synchronized String processCreate(String query) {\r\n\t\tString[] valuesCommand = query.split(\" \");\r\n\t\tif ( valuesCommand.length != 3 )\r\n\t\t\treturn \"ERROR Bad syntaxe command CREATE - Usage : CREATE id initial_solde\";\r\n\t\tString id = valuesCommand[1];\r\n\t\tif ( this.bank.existAccount(id) ) {\r\n\t\t\treturn \"ERROR Account alwready exist\";\r\n\t\t}\r\n\t\tdouble number = Double.valueOf(valuesCommand[2]);\r\n\t\tthis.bank.createAccount(id, number);\r\n\t\treturn \"OK \" + this.bank.getLastOperation(id);\r\n\t}", "public void createNewSchema() throws SQLException {\n ResultSet resultSet = databaseStatement.executeQuery(\"select count(datname) from pg_database\");\n int uniqueID = 0;\n if(resultSet.next()) {\n uniqueID = resultSet.getInt(1);\n }\n if(uniqueID != 0) {\n uniqueID++;\n databaseStatement.executeQuery(\"CREATE DATABASE OSM\"+uniqueID+\";\");\n }\n }", "int insert(Lbt72TesuryoSumDPkey record);", "@Test(timeout = 4000)\n public void test124() throws Throwable {\n DefaultDBTable defaultDBTable0 = new DefaultDBTable();\n MockPrintWriter mockPrintWriter0 = new MockPrintWriter(\"Illegal column type format: \");\n String[] stringArray0 = new String[9];\n DBUniqueConstraint dBUniqueConstraint0 = new DBUniqueConstraint(defaultDBTable0, \"66i,cw\", true, stringArray0);\n NameSpec nameSpec0 = NameSpec.ALWAYS;\n SQLUtil.renderCreateTable(defaultDBTable0, true, nameSpec0, mockPrintWriter0);\n assertEquals(\"table\", defaultDBTable0.getObjectType());\n }", "int insert(NjProductTaticsRelation record);", "public de.uni_koblenz.jgralabtest.schemas.gretl.pddsl.Chassis createChassis();", "int insert(Disease record);", "private void creates() {\n \tDBPeer.fetchTableColumns();\n \tDBPeer.fetchTableRows();\n \tDBPeer.fetchTableIndexes();\n \t\n for (int i = 0; i < creates.size(); i++) {\n creates.get(i).init();\n }\n \n DBPeer.updateTableColumns();\n DBPeer.updateTableRows();\n DBPeer.updateTableIndexes();\n }", "InstAssignIndex createInstAssignIndex();", "WithCreate withCreationData(CreationData creationData);", "@Before\n public void createAndFillTable() {\n try {\n DBhandler dBhandler = new DBhandler(h2DbConnection);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "DataCfgTableInfo createTableIfNotExists(String dataCfgOid);", "H2 createH2();", "int insert(Lbm83ChohyokanriPkey record);", "HdbSequenceModel createHdbSequenceModel();", "DL createDL();", "For createFor();", "public org.oep.cmon.dao.tlct.model.DanhMucGiayTo create(long id);", "private Builder() {\n super(org.apache.gora.cascading.test.storage.TestRow.SCHEMA$);\n }", "public void createExempleDirect(ExempleDirect exempleDirect) throws DaoException;", "int insertSelective(NjProductTaticsRelation record);", "BIG createBIG();", "private void CreateDataIngestors() throws isisicatclient.IcatException_Exception {\n Grouping dataIngestors = new Grouping();\r\n dataIngestors.name = \"DataIngestors\";\r\n dataIngestors.id = port.create(sessionId, dataIngestors);\r\n dataIngestors = (Grouping) port.search(sessionId, \"Grouping[name='DataIngestors']\").get(0);\r\n\r\n List<String> ingestorTables = port.getEntityNames();\r\n\r\n ingestorTables.remove(\"Facility\");\r\n\r\n List<EntityBaseBean> ingestorRules = new ArrayList<>();\r\n for (String table : ingestorTables) {\r\n Rule rule = new Rule();\r\n rule.grouping = dataIngestors;\r\n rule.crudFlags = \"CRUD\"; //no delete permission for ingestors\r\n rule.what = table;\r\n ingestorRules.add(rule);\r\n }\r\n port.createMany(sessionId, ingestorRules);\r\n }", "H4 createH4();", "int insert(OrgIntegralDeductRule record);", "public void createDataTable() {\r\n Log.d(TAG, \"creating table\");\r\n String queryStr = \"\";\r\n String[] colNames = {Constants.COLUMN_NAME_ACC_X, Constants.COLUMN_NAME_ACC_Y, Constants.COLUMN_NAME_ACC_Z};\r\n queryStr += \"create table if not exists \" + Constants.TABLE_NAME;\r\n queryStr += \" ( id INTEGER PRIMARY KEY AUTOINCREMENT, \";\r\n for (int i = 1; i <= 50; i++) {\r\n for (int j = 0; j < 3; j++)\r\n queryStr += colNames[j] + \"_\" + i + \" real, \";\r\n }\r\n queryStr += Constants.COLUMN_NAME_ACTIVITY + \" text );\";\r\n execute(queryStr);\r\n Log.d(TAG, \"created table\");\r\n try {\r\n ContentValues values = new ContentValues();\r\n values.put(\"id\", 0);\r\n insertRowInTable(Constants.TABLE_NAME, values);\r\n Log.d(TAG,\"created hist table\");\r\n }catch (Exception e){\r\n Log.d(TAG,Constants.TABLE_NAME + \" table already exists\");\r\n }\r\n }", "public static void main(String[] args) {\n\t\tCreateTable createTable = new CreateTable();\n\n\t\tCity city = new City();\n\t\tcity.setId(1);\n\t\tcreateTable.execute(city);\n\n\t\tProvince province = new Province();\n\t\tprovince.setId(1);\n\t\tcreateTable.execute(province);\n\n\t\tTown town = new Town();\n\t\ttown.setId(1);\n\t\tcreateTable.execute(town);\n\n\t\tDetail detail = new Detail();\n\t\tdetail.setId(1);\n\t\tcreateTable.execute(detail);\n\n\t\tOrder order = new Order();\n\t\torder.setId(1);\n\t\tcreateTable.execute(order);\n\n\t\tBrand2 brand2 = new Brand2();\n\t\tbrand2.setId(1);\n\t\tcreateTable.execute(brand2);\n\n\t\tColor color = new Color();\n\t\tcolor.setId(1);\n\t\tcreateTable.execute(color);\n\n\t\tFeature feature = new Feature();\n\t\tfeature.setId(1);\n\t\tcreateTable.execute(feature);\n\n\t\tImg img = new Img();\n\t\timg.setId(1);\n\t\tcreateTable.execute(img);\n\n\t\tSku sku = new Sku();\n\t\tsku.setId(1);\n\t\tcreateTable.execute(sku);\n\n\t\tType type = new Type();\n\t\ttype.setId(1);\n\t\tcreateTable.execute(type);\n\n\t\tAddr addr = new Addr();\n\t\taddr.setId(1);\n\t\tcreateTable.execute(addr);\n\t\tcreateTable.execute(new Buyer());\n\n\t\t// 商品编号 商品名称 图片 新品 热卖 推荐 上下架 操作选项\n\t\tProduct product = new Product();\n\t\tproduct.setId(001);\n\t\tproduct.setNo(UUID.randomUUID().toString());\n\t\tproduct.setName(\"依琦莲2014瑜伽服套装新款 瑜珈健身服三件套 广场舞蹈服装 女瑜伽服送胸垫 长袖紫色\");\n\t\tproduct.setWeight(56.00);\n\t\tproduct.setIsNew(1); // 1是 0否\n\t\tproduct.setIsHot(1);\n\t\tproduct.setCreateTime(new Date());\n\t\tproduct.setCheckUserId(\"\");\n\t\tproduct.setCheckTime(new Date());\n\t\tproduct.setCreateUserId(\"\");\n\t\tproduct.setIsShow(1);\n\t\tproduct.setIsDel(1);\n\t\tproduct.setTypeId(1);\n\t\tproduct.setBrandId(1);\n\t\tproduct.setKeywords(\"\");\n\t\tproduct.setSales(36);\n\t\tproduct.setDescription(\"不是东西\");\n\t\tproduct.setPackageList(\"\");\n\t\tproduct.setFeature(\"头角狰狞\");\n\t\tproduct.setColor(\"blue\");\n\t\tproduct.setSize(\"L\"); // S,L,XXL\n\t\tcreateTable.execute(product);\n\n\t\t// insert into\n\t\t// Product(id,no,name,weight,isNew,isHot,sales,description,feature,size)value(1,\"11xzc3568\",\"依琦莲2014瑜伽服套装新款女瑜伽服送胸垫\n\t\t// 长袖紫色\",36.12,1,1,110,\"不是东西\",\"头角狰狞\",\"blue\",\"L\");\n\n\t\tEmployee employee = new Employee();\n\t\temployee.setId(1);\n\t\tcreateTable.execute(employee);\n\n\t}", "Vaisseau_ordonneeLaPlusHaute createVaisseau_ordonneeLaPlusHaute();", "private void createCheckingAccountsTable() {\n\t\ttry {\n\t\t\tStatement stmt = this.conn.createStatement();\n\t\t\tstmt.executeUpdate(\"CREATE TABLE checkingAccounts \"\n\t\t\t\t\t+ \"(id BIGINT GENERATED ALWAYS AS IDENTITY ( START WITH 1000000001, INCREMENT BY 1 ), \" + \"owner INT, \"\n\t\t\t\t\t+ \"balance DOUBLE, \" + \"intRate DOUBLE, \"\n\t\t\t\t\t+ \"timeCreated BIGINT, \" + \"lastPaidInterest DOUBLE, \"\n\t\t\t\t\t+ \"dateOfLastPaidInterest BIGINT)\");\n\t\t\tconn.commit();\n\t\t\tSystem.out.println(\"Created table checkingAccounts\");\n\t\t} catch (SQLException sqle) {\n\t\t\tSystem.err.println(\"Creation of checkingAccounts table FAILED\");\n\t\t\tSystem.err.println(sqle);\n\t\t}\n\t}", "@Ignore\n @Test\n public void testCreateIndex() {\n System.out.println(\"createIndex\");\n Util.commonServiceIPs=\"127.0.0.1\";\n \n EntityManager em=Util.getEntityManagerFactory(100).createEntityManager();\n EntityManager platformEm = Util.getPlatformEntityManagerFactory().createEntityManager();\n \n Client client = ESUtil.getClient(em,platformEm,1,false);\n \n RuntimeContext.dataobjectTypes = Util.getDataobjectTypes();\n String indexName = \"test000000\";\n try {\n ESUtil.createIndex(platformEm, client, indexName, true);\n }\n catch(Exception e)\n {\n \n }\n \n\n }", "public void createVirtualTable(){\n\n\t\t\n\t\tif(DBHandler.getConnection()==null){\n\t\t\treturn;\n\t\t}\n\n\t\tif(DBHandler.tableExists(name())){\n\t\t\treturn;\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tStatement s = DBHandler.getConnection().createStatement();\n\t\t\ts.execute(\"create virtual table \"+name()+\" using fts4(\"+struct()+\")\");\n\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\tMainFrame.print(e.getMessage());\n\t\t}\n\t}", "public int create (Section section) throws DataAccessException;", "protected abstract void createAttributes();", "private MetaSparqlRequest createInsertMT1() {\n\t\tString sparqlStr = \"\"+\n\t\t\t\t\"PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>\\r\\n\" + \n\t\t\t\t\"PREFIX ub: \"+_ontology+\"\\r\\n\" + \n\t\t\t\t\"INSERT DATA { GRAPH \"+_graph+\" { \"+\n\t\t\t\tbuilderBindInsert\n\t\t\t\t+\" } }\";\n\t\t\n\t\tSparqlObj sparql= new SparqlObj(sparqlStr) ;\n\t\tEndPoint endPointHost= new EndPoint(_protocol,_host,_port,\"/update\");\n\t\tMetaSparqlRequest msr = new MetaSparqlRequest(new SparqlRequest(sparql,endPointHost));\n\t\tmsr.setTripleInsert(createTripleBaseMT1());\n\t\treturn msr;\n\t}", "public void createTables(){\n Map<String, String> name_type_map = new HashMap<>();\n List<String> primaryKey = new ArrayList<>();\n try {\n name_type_map.put(KEY_SINK_NAME, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_SINK_ADDRESS, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_SINK_DETAIL, MyDatabase.TYPE_VARCHAR);\n primaryKey.add(KEY_SINK_ADDRESS);\n myDatabase.createTable(TABLE_SINK, name_type_map, primaryKey, null);\n }catch (MySQLException e){ //数据表已存在\n e.print();\n }\n try {\n name_type_map.clear();\n name_type_map.put(KEY_NODE_NAME, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_PARENT, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_DETAIL, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_ADDRESS,MyDatabase.TYPE_VARCHAR);\n primaryKey.clear();\n primaryKey.add(KEY_NODE_PARENT);\n primaryKey.add(KEY_NODE_ADDRESS);\n myDatabase.createTable(TABLE_NODE, name_type_map, primaryKey, null);\n }catch (MySQLException e){\n e.print();\n }\n\n try {\n name_type_map.clear();\n name_type_map.put(KEY_NODE_ADDRESS, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_PARENT, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_DATA_TIME, MyDatabase.TYPE_TIMESTAMP);\n name_type_map.put(KEY_DATA_VAL, MyDatabase.TYPE_FLOAT);\n primaryKey.clear();\n primaryKey.add(KEY_DATA_TIME);\n primaryKey.add(KEY_NODE_ADDRESS);\n primaryKey.add(KEY_NODE_PARENT);\n myDatabase.createTable(TABLE_DATA, name_type_map, primaryKey, null);\n }catch (MySQLException e) {\n e.print();\n }\n }", "int insert(ec_environment record);", "public void setup() throws SQLException {\n // Create ACARS table\n final String createTableSQL = \"CREATE TABLE IF NOT EXISTS ACARS (\"\n + \"date DATE, time TIME, frequency CHAR(7), \"\n + \"registration VARCHAR(7), flight CHAR(6), \"\n + \"mode CHAR, label CHAR(2), blockId CHAR, msgId CHAR(4), \"\n + \"text VARCHAR(255), \"\n + \"PRIMARY KEY (date, registration, flight, mode, label, blockId, msgId), \"\n + \"INDEX datetime_idx (date, time), \"\n + \"INDEX registration_idx (registration), \"\n + \"INDEX flight_idx (flight)\"\n + \")\";\n\n final Statement createTableStmt = connection.createStatement();\n createTableStmt.execute(createTableSQL);\n }", "TableInstance createTableInstance();", "private String createTableSQL()\n\t{\n\t\tStringBuffer str = new StringBuffer();\n\n\t\t// Keep track of the list of fields\n\t\tList<String> listFields = new ArrayList<String>();\n\n\t\t// Table command\n\t\tstr.append(\"CREATE TABLE \" + getFullPath() + \"( \");\n\t\tstr.append(createStandardGZFields());\n\n\t\t// Loop through all InputFields\n\t\tfor (InputFieldSet fieldSet : function.getInputFieldSets())\n\t\t{\n\t\t\tfor (InputField inputField : fieldSet.getInputFields())\n\t\t\t{\n\t\t\t\t// Phase 2 does not support repeating fields being journalled\n\t\t\t\tif (!Field.isRepeating(inputField))\n\t\t\t\t{\n\t\t\t\t\t// Field\n\t\t\t\t\tString fieldName = SQLToolbox.cvtToSQLFieldName(inputField.getId());\n\n\t\t\t\t\t// add if not yet existing\n\t\t\t\t\tif (listFields.indexOf(fieldName) == -1)\n\t\t\t\t\t{\n\t\t\t\t\t\tstr.append(\", \");\n\t\t\t\t\t\tString fieldDataType = inputField.getDataType();\n\t\t\t\t\t\tString fieldType = SQLToolbox.cvtToSQLFieldType(fieldDataType, inputField.getSize(), inputField\n\t\t\t\t\t\t\t\t\t\t.getDecimals());\n\t\t\t\t\t\tString fieldDefault = SQLToolbox.cvtToSQLDefault(fieldDataType);\n\t\t\t\t\t\tstr.append(fieldName + \" \" + fieldType + \" \" + \" not null default \" + fieldDefault);\n\t\t\t\t\t\tlistFields.add(fieldName);\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// End\n\t\tstr.append(\" ) \");\n\t\t// RCDFMT \" + getJournalRcdName());\n\n\t\treturn str.toString();\n\t}", "public org.oep.cmon.dao.dvc.model.ThuTuc2GiayTo create(long id);" ]
[ "0.6137034", "0.6020893", "0.5953024", "0.5871004", "0.58520657", "0.5824135", "0.5783128", "0.5781292", "0.5779935", "0.5768486", "0.57018137", "0.569296", "0.5677845", "0.566757", "0.56516117", "0.5639093", "0.56084186", "0.5601316", "0.55988264", "0.5587084", "0.5586368", "0.5579563", "0.55671966", "0.5562383", "0.55537105", "0.55511224", "0.5550222", "0.5547236", "0.55009055", "0.54889506", "0.5482187", "0.54807544", "0.5465443", "0.5454913", "0.54468626", "0.5434606", "0.5426381", "0.54197514", "0.5414243", "0.54073745", "0.5402808", "0.5390703", "0.5390526", "0.5390526", "0.5390526", "0.538945", "0.53878444", "0.53796816", "0.5375914", "0.53748345", "0.53730184", "0.5365049", "0.5364833", "0.5364805", "0.536257", "0.5361029", "0.5360632", "0.53598887", "0.5350994", "0.5339128", "0.5338244", "0.53296435", "0.5321595", "0.5320979", "0.53194505", "0.5318698", "0.5313326", "0.53126156", "0.53099495", "0.5306004", "0.5300889", "0.5293614", "0.529321", "0.52883255", "0.5281361", "0.5281042", "0.527843", "0.5270345", "0.526982", "0.52697945", "0.52608657", "0.5259804", "0.52563196", "0.5249798", "0.5247741", "0.5239433", "0.5224713", "0.5224455", "0.5222238", "0.5221105", "0.521778", "0.5213034", "0.5211071", "0.52098143", "0.5208245", "0.5207931", "0.52069414", "0.5205663", "0.52015704", "0.5196995", "0.5195414" ]
0.0
-1
CREATE BY ANH DUC
Page<AccountDTO> coverListAccountToListEmpDTO(Page<Account> accounts);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int createTable(HbaseObj t);", "private void processCreate() throws HsqlException {\n\n boolean unique = false;\n int tableType;\n boolean isTempTable = false;\n String token;\n\n session.checkAdmin();\n session.checkDDLWrite();\n session.setScripting(true);\n\n if (tokenizer.isGetThis(Token.T_GLOBAL)) {\n tokenizer.getThis(Token.T_TEMPORARY);\n\n isTempTable = true;\n } else if (tokenizer.isGetThis(Token.T_TEMP)) {\n isTempTable = true;\n } else if (tokenizer.isGetThis(Token.T_TEMPORARY)) {\n isTempTable = true;\n }\n\n token = tokenizer.getSimpleToken();\n\n switch (Token.get(token)) {\n\n // table\n case Token.MEMORY :\n tokenizer.getThis(Token.T_TABLE);\n case Token.TABLE :\n tableType = isTempTable ? Table.TEMP_TABLE\n : database.getDefaultTableType();\n\n processCreateTable(tableType);\n\n return;\n\n case Token.CACHED :\n if (isTempTable) {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n\n tokenizer.getThis(Token.T_TABLE);\n processCreateTable(Table.CACHED_TABLE);\n\n return;\n\n case Token.TEXT :\n if (isTempTable) {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n\n tokenizer.getThis(Token.T_TABLE);\n processCreateTable(Table.TEXT_TABLE);\n\n return;\n\n default :\n if (isTempTable) {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n }\n\n switch (Token.get(token)) {\n\n // other objects\n case Token.ALIAS :\n processCreateAlias();\n break;\n\n case Token.SEQUENCE :\n processCreateSequence();\n break;\n\n case Token.SCHEMA :\n session.setScripting(false);\n processCreateSchema();\n break;\n\n case Token.TRIGGER :\n processCreateTrigger();\n break;\n\n case Token.USER :\n processCreateUser();\n break;\n\n case Token.ROLE :\n database.getGranteeManager().addRole(getUserIdentifier());\n break;\n\n case Token.VIEW :\n processCreateView();\n break;\n\n // index\n case Token.UNIQUE :\n unique = true;\n\n tokenizer.getThis(Token.T_INDEX);\n\n //fall thru\n case Token.INDEX :\n processCreateIndex(unique);\n break;\n\n default : {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n }\n }", "void create(DataTableDef def) throws IOException;", "CreationData creationData();", "protected abstract D createData();", "FromTable createFromTable();", "public void create() {\n\t\t\n\t}", "public void create() {\n\t\t\tdb.execSQL(AGENCYDB_CREATE+\".separete,.import agency.txt agency\");\n\t\t\tdb.execSQL(STOPSDB_CREATE+\".separete,.import stop_times.txt stop_times\");\n\t\t\t\n\t\t\t// Add 2 agencies for testing\n\t\t\t\n\t\t\t\n\t\t\tdb.setVersion(DATABASE_VERSION);\n\t\t}", "HdbdtiModel createHdbdtiModel();", "HdbSequenceElements createHdbSequenceElements();", "DD createDD();", "TD createTD();", "public String createTable(){\r\n return \"CREATE TABLE Doctor \" +\r\n \"(idDoctor decimal primary key, \" +\r\n \"firstNameDoctor char(14), \" +\r\n \"lastNameDoctor char(14), \" +\r\n \"costPerVisit integer,\" +\r\n \"qualification varchar(32))\";\r\n }", "private void createCDAccountsTable() {\n\t\ttry {\n\t\t\tStatement stmt = this.conn.createStatement();\n\t\t\tstmt.executeUpdate(\"CREATE TABLE cdAccounts \"\n\t\t\t\t\t+ \"(id BIGINT GENERATED ALWAYS AS IDENTITY ( START WITH 3000000001, INCREMENT BY 1 ), \" + \"owner INT, \"\n\t\t\t\t\t+ \"term INT, \" + \"balance DOUBLE, \" + \"intRate DOUBLE, \"\n\t\t\t\t\t+ \"timeCreated BIGINT, \" + \"lastPaidInterest DOUBLE, \"\n\t\t\t\t\t+ \"dateOfLastPaidInterest BIGINT)\");\n\t\t\tconn.commit();\n\t\t\tSystem.out.println(\"Created table cdAccounts\");\n\t\t} catch (SQLException sqle) {\n\t\t\tSystem.err.println(\"Creation of cdAccounts table FAILED\");\n\t\t\tSystem.err.println(sqle);\n\t\t}\n\t}", "public void createDienst()\n\t{\n\t\twriteDb(\"INSERT INTO dienstleistung (Bezeichnung, Preis)\" + \"VALUES('\" + typ + \"', '\" + preis +\"')\", getWriteCon());\n\t\tcommitDbConnection(getWriteCon());\n\t}", "public void create(){}", "@Override\n\tpublic String createTable() {\n\t\t\t\treturn \"CREATE TABLE history_table_view(id number(8) primary key not null ,sqltext text, pointid varchar2(1024), type varchar2(100))\";\n\t}", "public static void createTable() {\n\n // Create statement\n Statement statement = null;\n try {\n statement = Database.getDatabase().getConnection().createStatement();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n // Attempt to create table\n try {\n statement.execute(\n \"CREATE TABLE \" + Constants.SANITATION_TABLE + \"(\" +\n \"requestID INT PRIMARY KEY GENERATED ALWAYS AS IDENTITY (START WITH 1, INCREMENT BY 1),\" +\n \"nodeID VARCHAR(100) References \" + Constants.LOCATION_TABLE + \" (nodeID), \" +\n \"priority VARCHAR(10), \" +\n \"status VARCHAR(100), \" +\n \"description VARCHAR(100), \" +\n \"requesterID INT REFERENCES \" + Constants.USERS_TABLE + \"(userID), \" +\n \"requestTime TIMESTAMP, \" +\n \"servicerID INT REFERENCES \" + Constants.USERS_TABLE + \"(userID), \" +\n \"claimedTime TIMESTAMP, \" +\n \"completedTime TIMESTAMP, \" +\n \"CONSTRAINT priority_enum CHECK (priority in ('LOW', 'MEDIUM', 'HIGH')), \" +\n \"CONSTRAINT status_enum CHECK (status in ('INCOMPLETE', 'COMPLETE')))\"\n );\n } catch (SQLException | NullPointerException e) {\n e.printStackTrace();\n }\n }", "BTable createBTable();", "@Override\r\n\tpublic void create() {\n\t\t\r\n\t}", "@Override\n\tpublic void create() {\n\t\t\n\t}", "public abstract Anuncio creaAnuncioTematico();", "long createDatabase(long actor, String nameToDisplay, long proteinDBType, long sizeInBytes, boolean bPublic, boolean bReversed, ExperimentCategory category);", "TABLE createTABLE();", "private void processCreateTable(int type) throws HsqlException {\n\n String token = tokenizer.getName();\n HsqlName schemaname =\n session.getSchemaHsqlNameForWrite(tokenizer.getLongNameFirst());\n\n database.schemaManager.checkUserTableNotExists(session, token,\n schemaname.name);\n\n boolean isnamequoted = tokenizer.wasQuotedIdentifier();\n int[] pkCols = null;\n int colIndex = 0;\n boolean constraint = false;\n Table t = newTable(type, token, isnamequoted, schemaname);\n\n tokenizer.getThis(Token.T_OPENBRACKET);\n\n while (true) {\n token = tokenizer.getString();\n\n switch (Token.get(token)) {\n\n case Token.CONSTRAINT :\n case Token.PRIMARY :\n case Token.FOREIGN :\n case Token.UNIQUE :\n case Token.CHECK :\n\n // fredt@users : check for quoted reserved words used as column names\n constraint = !tokenizer.wasQuotedIdentifier()\n && !tokenizer.wasLongName();\n }\n\n tokenizer.back();\n\n if (constraint) {\n break;\n }\n\n Column newcolumn = processCreateColumn();\n\n t.addColumn(newcolumn);\n\n if (newcolumn.isPrimaryKey()) {\n Trace.check(pkCols == null, Trace.SECOND_PRIMARY_KEY,\n newcolumn.columnName.name);\n\n pkCols = new int[]{ colIndex };\n }\n\n token = tokenizer.getSimpleToken();\n\n if (token.equals(Token.T_COMMA)) {\n colIndex++;\n\n continue;\n }\n\n if (token.equals(Token.T_CLOSEBRACKET)) {\n break;\n }\n\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n\n HsqlArrayList tempConstraints = processCreateConstraints(t,\n constraint, pkCols);\n\n if (tokenizer.isGetThis(Token.T_ON)) {\n if (!t.isTemp) {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, Token.T_ON);\n }\n\n tokenizer.getThis(Token.T_COMMIT);\n\n token = tokenizer.getSimpleToken();\n\n if (token.equals(Token.T_DELETE)) {}\n else if (token.equals(Token.T_PRESERVE)) {\n t.onCommitPreserve = true;\n } else {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n\n tokenizer.getThis(Token.T_ROWS);\n }\n\n try {\n session.commit();\n\n Constraint primaryConst = (Constraint) tempConstraints.get(0);\n\n t.createPrimaryKey(null, primaryConst.core.mainColArray, true);\n\n if (primaryConst.core.mainColArray != null) {\n if (primaryConst.constName == null) {\n primaryConst.constName = t.makeSysPKName();\n }\n\n Constraint newconstraint =\n new Constraint(primaryConst.constName, t,\n t.getPrimaryIndex(),\n Constraint.PRIMARY_KEY);\n\n t.addConstraint(newconstraint);\n database.schemaManager.registerConstraintName(\n primaryConst.constName.name, t.getName());\n }\n\n for (int i = 1; i < tempConstraints.size(); i++) {\n Constraint tempConst = (Constraint) tempConstraints.get(i);\n\n if (tempConst.constType == Constraint.UNIQUE) {\n TableWorks tableWorks = new TableWorks(session, t);\n\n tableWorks.createUniqueConstraint(\n tempConst.core.mainColArray, tempConst.constName);\n\n t = tableWorks.getTable();\n }\n\n if (tempConst.constType == Constraint.FOREIGN_KEY) {\n TableWorks tableWorks = new TableWorks(session, t);\n\n tableWorks.createForeignKey(tempConst.core.mainColArray,\n tempConst.core.refColArray,\n tempConst.constName,\n tempConst.core.refTable,\n tempConst.core.deleteAction,\n tempConst.core.updateAction);\n\n t = tableWorks.getTable();\n }\n\n if (tempConst.constType == Constraint.CHECK) {\n TableWorks tableWorks = new TableWorks(session, t);\n\n tableWorks.createCheckConstraint(tempConst,\n tempConst.constName);\n\n t = tableWorks.getTable();\n }\n }\n\n database.schemaManager.linkTable(t);\n } catch (HsqlException e) {\n\n// fredt@users 20020225 - comment\n// if a HsqlException is thrown while creating table, any foreign key that has\n// been created leaves it modification to the expTable in place\n// need to undo those modifications. This should not happen in practice.\n database.schemaManager.removeExportedKeys(t);\n database.schemaManager.removeIndexNames(t.tableName);\n database.schemaManager.removeConstraintNames(t.tableName);\n\n throw e;\n }\n }", "@Override\n\tpublic void create() {\n\n\t}", "public void testCreateTable() {\n LOG.info(\"Entering testCreateTable.\");\n\n // Specify the table descriptor.\n HTableDescriptor htd = new HTableDescriptor(tableName);\n\n // Set the column family name to info.\n HColumnDescriptor hcd = new HColumnDescriptor(\"info\");\n\n // Set data encoding methods,HBase provides DIFF,FAST_DIFF,PREFIX\n // and PREFIX_TREE\n hcd.setDataBlockEncoding(DataBlockEncoding.FAST_DIFF);\n\n // Set compression methods, HBase provides two default compression\n // methods:GZ and SNAPPY\n // GZ has the highest compression rate,but low compression and\n // decompression effeciency,fit for cold data\n // SNAPPY has low compression rate, but high compression and\n // decompression effeciency,fit for hot data.\n // it is advised to use SANPPY\n hcd.setCompressionType(Compression.Algorithm.SNAPPY);\n\n htd.addFamily(hcd);\n\n Admin admin = null;\n try {\n // Instantiate an Admin object.\n admin = conn.getAdmin();\n if (!admin.tableExists(tableName)) {\n LOG.info(\"Creating table...\");\n admin.createTable(htd);\n LOG.info(admin.getClusterStatus());\n LOG.info(admin.listNamespaceDescriptors());\n LOG.info(\"Table created successfully.\");\n } else {\n LOG.warn(\"table already exists\");\n }\n } catch (IOException e) {\n LOG.error(\"Create table failed.\");\n } finally {\n if (admin != null) {\n try {\n // Close the Admin object.\n admin.close();\n } catch (IOException e) {\n LOG.error(\"Failed to close admin \", e);\n }\n }\n }\n LOG.info(\"Exiting testCreateTable.\");\n }", "public CreateData() {\n\t\t\n\t\t// TODO Auto-generated constructor stub\n\t}", "boolean createTable();", "@Override\r\n public Db_db createTable (Db_table table)\r\n {\r\n Db_db db = null;\r\n String query = \"CREATE TABLE IF NOT EXISTS \"+ table.getName() + \" (\"; \r\n String primaryKeyName = null;\r\n Set<Map.Entry<String, Db_tableColumn>> tableEntries;\r\n List<String> listOfUniqueKey = Lists.newArrayList();\r\n \r\n if(curConnection_ != null)\r\n {\r\n try\r\n {\r\n tableEntries = table.getEntrySet();\r\n for(Map.Entry<String, Db_tableColumn> entry: tableEntries)\r\n {\r\n Db_tableColumn entryContent = entry.getValue();\r\n \r\n if(entryContent.isPrimary() && primaryKeyName == null)\r\n {\r\n primaryKeyName = entryContent.getName();\r\n }\r\n else if(entryContent.isPrimary() && primaryKeyName != null)\r\n {\r\n throw new NumberFormatException();\r\n }\r\n \r\n if(itsAttributeMapper_ == null)\r\n {\r\n throw new NumberFormatException();\r\n }\r\n \r\n if(entryContent.isUnique())\r\n {\r\n listOfUniqueKey.add(entryContent.getName());\r\n }\r\n \r\n String mappedAttribute = this.itsAttributeMapper_.MapAttribute(entryContent.getAttributeName());\r\n if(entryContent.getAttribute().isEnum())\r\n {\r\n mappedAttribute += entryContent.getAttribute().buildEnumValueListString();\r\n }\r\n query += entryContent.getName() + \" \" + mappedAttribute \r\n + (entryContent.isAutoIncreasmnet()?\" AUTO_INCREMENT \":\" \")\r\n + (entryContent.isUnique()?\" UNIQUE, \": \", \");\r\n }\r\n \r\n query += \"PRIMARY KEY (\" + primaryKeyName + \"));\";\r\n try (Statement sm = curConnection_.createStatement()) {\r\n sm.executeUpdate(query);\r\n db = this.curDb_;\r\n }\r\n \r\n }catch(NumberFormatException e){System.out.print(e);}\r\n catch(SQLException e){System.out.print(query);this.CurConnectionFailed();}\r\n }\r\n return db;\r\n }", "public Hoppy insert(Hoppy hoppy, IdGenerateService<Long> idGenerateService) throws DataAccessException;", "interface WithCreate extends\n SqlElasticPoolOperations.DefinitionStages.WithDatabaseDtuMin,\n SqlElasticPoolOperations.DefinitionStages.WithDatabaseDtuMax,\n SqlElasticPoolOperations.DefinitionStages.WithDtu,\n SqlElasticPoolOperations.DefinitionStages.WithStorageCapacity,\n SqlElasticPoolOperations.DefinitionStages.WithDatabase,\n Resource.DefinitionWithTags<SqlElasticPoolOperations.DefinitionStages.WithCreate>,\n Creatable<SqlElasticPool> {\n }", "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:49.404 -0500\", hash_original_method = \"CD5C82C799E78C74801FDB521CEE7324\", hash_generated_method = \"CD5C82C799E78C74801FDB521CEE7324\")\n \nContext ()\n {\n copyTables();\n }", "OrTable createOrTable();", "public abstract void create();", "DT createDT();", "@Override\n public void createSchema(Properties props)\n {\n Statement statement;\n try\n {\n statement = connection.createStatement();\n \n //Drop Indexes\n dropIndex(statement, \"CONFFRIENDSHIP_INVITEEID\", \"CONFFRIENDSHIP\");\n dropIndex(statement, \"CONFFRIENDSHIP_INVITERID\", \"CONFFRIENDSHIP\");\n dropIndex(statement, \"PENDFRIENDSHIP_INVITEEID\", \"PENDFRIENDSHIP\");\n dropIndex(statement, \"PENDFRIENDSHIP_INVITERID\", \"PENDFRIENDSHIP\");\n dropIndex(statement, \"MANIPULATION_RID\", \"MANIPULATION\");\n dropIndex(statement, \"MANIPULATION_CREATORID\", \"MANIPULATION\");\n dropIndex(statement, \"RESOURCES_WALLUSERID\", \"RESOURCES\");\n dropIndex(statement, \"RESOURCE_CREATORID\", \"RESOURCES\");\n \n //Drop Tables\n dropTable(statement, \"CONFFRIENDSHIP\");\n dropTable(statement, \"PENDFRIENDSHIP\");\n dropTable(statement, \"MANIPULATION\");\n dropTable(statement, \"RESOURCES\");\n dropTable(statement, \"USERS\");\n \n //Create Tables\n statement.executeUpdate(\"CREATE TABLE CONFFRIENDSHIP \" + \"(INVITERID INTEGER NOT NULL, \" + \"INVITEEID INTEGER NOT NULL, \" + \"PRIMARY KEY (INVITERID, INVITEEID))\");\n statement.executeUpdate(\"CREATE TABLE PENDFRIENDSHIP \" + \"(INVITERID INTEGER NOT NULL, \" + \"INVITEEID INTEGER NOT NULL, \" + \"PRIMARY KEY (INVITERID, INVITEEID))\");\n statement.executeUpdate(\"CREATE TABLE MANIPULATION \" + \"(MID INTEGER NOT NULL, \" + \"MODIFIERID INTEGER NOT NULL, \" + \"RID INTEGER NOT NULL, \" + \"CREATORID INTEGER NOT NULL, \" + \"TIMESTAMP VARCHAR(200), \" + \"TYPE VARCHAR(200), \" + \"CONTENT VARCHAR(200), \" + \"PRIMARY KEY (MID,RID))\");\n statement.executeUpdate(\"CREATE TABLE RESOURCES \" + \"(RID INTEGER NOT NULL , \" + \"CREATORID INTEGER NOT NULL, \" + \"WALLUSERID INTEGER NOT NULL, \" + \"TYPE VARCHAR(200), \" + \"BODY VARCHAR(200), \" + \"DOC VARCHAR(200), \" + \"PRIMARY KEY (RID))\");\n statement.executeUpdate(\"CREATE TABLE USERS \" + \"(USERID INTEGER NOT NULL , \" + \"USERNAME VARCHAR(200), \" + \"PW VARCHAR(200), \" + \"FNAME VARCHAR(200), \" + \"LNAME VARCHAR(200), \" + \"GENDER VARCHAR(200),\" + \"DOB VARCHAR(200), \" + \"JDATE VARCHAR(200), \" + \"LDATE VARCHAR(200), \" + \"ADDRESS VARCHAR(200),\" + \"EMAIL VARCHAR(200), \" + \"TEL VARCHAR(200), \" + \"PRIMARY KEY (USERID))\");\n \n //Add Foreign Keys\n statement.executeUpdate(\"ALTER TABLE CONFFRIENDSHIP \" + \"ADD CONSTRAINT CONFFRIENDSHIP_USERS_FK1 FOREIGN KEY (INVITERID)\" + \"REFERENCES USERS (USERID) ON DELETE CASCADE\");\n statement.executeUpdate(\"ALTER TABLE CONFFRIENDSHIP \" + \"ADD CONSTRAINT CONFFRIENDSHIP_USERS_FK2 FOREIGN KEY (INVITEEID)\" + \"REFERENCES USERS (USERID) ON DELETE NO ACTION\");\n statement.executeUpdate(\"ALTER TABLE PENDFRIENDSHIP \" + \"ADD CONSTRAINT PENDFRIENDSHIP_USERS_FK1 FOREIGN KEY (INVITERID)\" + \"REFERENCES USERS (USERID) ON DELETE CASCADE\");\n statement.executeUpdate(\"ALTER TABLE PENDFRIENDSHIP \" + \"ADD CONSTRAINT PENDFRIENDSHIP_USERS_FK2 FOREIGN KEY (INVITEEID)\" + \"REFERENCES USERS (USERID) ON DELETE NO ACTION\");\n statement.executeUpdate(\"ALTER TABLE MANIPULATION \" + \"ADD CONSTRAINT MANIPULATION_RESOURCES_FK1 FOREIGN KEY (RID)\" + \"REFERENCES RESOURCES (RID) ON DELETE CASCADE\");\n statement.executeUpdate(\"ALTER TABLE MANIPULATION \" + \"ADD CONSTRAINT MANIPULATION_USERS_FK1 FOREIGN KEY (CREATORID)\" + \"REFERENCES USERS (USERID) ON DELETE NO ACTION\");\n statement.executeUpdate(\"ALTER TABLE MANIPULATION \" + \"ADD CONSTRAINT MANIPULATION_USERS_FK2 FOREIGN KEY (MODIFIERID)\" + \"REFERENCES USERS (USERID) ON DELETE NO ACTION\");\n statement.executeUpdate(\"ALTER TABLE RESOURCES \" + \"ADD CONSTRAINT RESOURCES_USERS_FK1 FOREIGN KEY (CREATORID)\" + \"REFERENCES USERS (USERID) ON DELETE CASCADE\");\n statement.executeUpdate(\"ALTER TABLE RESOURCES \" + \"ADD CONSTRAINT RESOURCES_USERS_FK2 FOREIGN KEY (WALLUSERID)\" + \"REFERENCES USERS (USERID) ON DELETE NO ACTION\");\n \n //Create Indexes\n buildIndexes(null);\n }\n catch (SQLException ex)\n {\n Logger.getLogger(WindowsAzureClientInit.class.getName()).log(Level.SEVERE, null, ex);\n System.out.println(\"Error in creating schema!\");\n }\n }", "public void createTable() throws LRException\n\t{\n\t\tgetBackground();\n\t\tDataHRecordData myData=(DataHRecordData)getData();\n\t\t// Create a new (empty) record\n\t\tcreate(new Hashtable(),myData);\n\t\tif (myData.record==null) throw new LRException(DataRMessages.nullRecord(getName()));\n\t\ttry\n\t\t{\n\t\t\tbackground.newTransaction();\n\t\t\tmyData.record.createNewTable(background.getClient(),true);\n\t\t}\n\t\tcatch (LDBException e) { setStatus(e); }\n\t}", "public boolean createTable(String input) throws IOException{\n\t\tString orgQuery = input;\n\t\torgQuery = orgQuery.trim();\n\t\tString query = input.toLowerCase().trim();\n\t\tboolean queryFailed = false;\n\t\t//Schema Instance \n\t\tSchema currentSchema = Schema.getSchemaInstance();\n\t\tString currentSchemaName = currentSchema.getCurrentSchema();\n\n\t\t//TableSchemaManager Instance\n\t\tTableSchemaManager currentTableSchemaManager = TableSchemaManager.getTableSchemaManagerInstance();\n\n\t\t//Extracting Table name\n\t\ttableName = orgQuery.substring(query.indexOf(\"table \")+6,query.indexOf(\"(\")).trim();\n\n\t\t//Updating SCHEMA.TABLE.TBL\n\t\tif(updateInformationSchemaTable()){\n\t\t\tqueryFailed = true;\n\t\t\treturn queryFailed;\n\t\t}\n\n\t\t//Extracting Table contents\n\t\tString tableContentsWithQuotes = orgQuery.substring(orgQuery.indexOf(\"(\")+1,orgQuery.length());\n\t\tString tableContents = tableContentsWithQuotes.replace(\"))\", \")\");\n\t\ttableContents = tableContents.trim();\n\n\t\tTableSchemaManager.ordinalMap = new TreeMap<Integer,List<String>>();\n\t\tTableSchemaManager.tableMap = new TreeMap<String,TreeMap<Integer,List<String>>>();\n\t\t\n\t\t//Creating n instances of Table helper\n\t\tString[] createTableContents = tableContents.split(\"\\\\,\"); \n\t\tnoOfColumns = createTableContents.length;\n\t\tCreateTableHelper[] th = new CreateTableHelper[noOfColumns];\n\n\t\t\n\t\t//Handles single row of Create Table \n\t\tfor(int item = 0; item < noOfColumns ; item++){\n\t\t\tth[item] = new CreateTableHelper(); \n\t\t\t//To remove any leading or trailing spaces\n\t\t\tcreateTableContents[item] = createTableContents[item].trim();\n\t\t\tString columnName = createTableContents[item].substring(0, createTableContents[item].indexOf(\" \"));\n\t\t\tth[item].setColumnName(columnName);\n\n\t\t\t//Setting Primary Key\n\t\t\tString primaryKeyExp = \"(.*)[pP][rR][iI][mM][aA][rR][yY](.*)\";\n\t\t\tif (createTableContents[item].matches(primaryKeyExp))\n\t\t\t\tth[item].setPrimaryKey(true);\n\t\t\telse\n\t\t\t\tth[item].setPrimaryKey(false);\n\n\t\t\t//Setting Null Value\t\n\t\t\tString notNullExp = \"(.*)[nN][uU][lL][lL](.*)\";\n\t\t\tif (createTableContents[item].matches(notNullExp))\n\t\t\t\tth[item].setNull(true);\n\t\t\telse\n\t\t\t\tth[item].setNull(false);\n\n\t\t\t//Extracting data types \n\t\t\t//BYTE\n\t\t\tString byteExp = \"(.*)[bB][yY][tT][eE](.*)\";\n\t\t\tif (createTableContents[item].matches(byteExp)){\n\t\t\t\tth[item].setDataType(\"BYTE\");\n\t\t\t}\n\t\t\t//SHORT\n\t\t\tString shortExp = \"(.*)[sS][hH][oO][rR][tT](.*)\";\n\t\t\tif (createTableContents[item].matches(shortExp)){\n\t\t\t\tth[item].setDataType(\"SHORT\");\n\t\t\t}\n\t\t\t//INT\n\t\t\tString intExp = \"(.*)[iI][nN][tT](.*)\";\n\t\t\tif (createTableContents[item].matches(intExp)){\n\t\t\t\tth[item].setDataType(\"INT\");\n\t\t\t}\n\t\t\t//LONG\n\t\t\tString longExp = \"(.*)[lL][oO][nN][gG](.*)\";\n\t\t\tif (createTableContents[item].matches(longExp)){\n\t\t\t\tth[item].setDataType(\"LONG\");\n\t\t\t}\n\t\t\t//CHAR\n\t\t\tString charExp = \"(.*)[cC][hH][aA][rR](.*)\";\n\t\t\tif (createTableContents[item].matches(charExp)){\n\t\t\t\tString size = createTableContents[item].substring(createTableContents[item].indexOf(\"(\")+1, createTableContents[item].indexOf(\")\"));\n\t\t\t\tth[item].setDataType(\"CHAR(\" + size + \")\");\n\t\t\t}\n\t\t\t//VARCHAR\n\t\t\tString varcharExp = \"(.*)[vV][aA][rR][cC][hH][aA][rR](.*)\";\n\t\t\tif (createTableContents[item].matches(varcharExp)){\n\t\t\t\tString size = createTableContents[item].substring(createTableContents[item].indexOf(\"(\")+1, createTableContents[item].indexOf(\")\"));\n\t\t\t\tth[item].setDataType(\"VARCHAR(\" + size + \")\");\n\t\t\t}\n\t\t\t//FLOAT\n\t\t\tString floatExp = \"(.*)[fF][lL][oO][aA][tT](.*)\";\n\t\t\tif (createTableContents[item].matches(floatExp)){\n\t\t\t\tth[item].setDataType(\"FLOAT\");\t\t\t\t\n\t\t\t}\n\t\t\t//DOUBLE\n\t\t\tString doubleExp = \"(.*)[dD][oO][uU][bB][lL][eE](.*)\";\n\t\t\tif (createTableContents[item].matches(doubleExp)){\n\t\t\t\tth[item].setDataType(\"DOUBLE\");\n\t\t\t}\n\t\t\t//DATETIME\n\t\t\tString dateTimeExp = \"(.*)[dD][aA][tT][eE][tT][iI][mM][eE](.*)\";\n\t\t\tif (createTableContents[item].matches(dateTimeExp)){\n\t\t\t\tth[item].setDataType(\"DATETIME\");\n\t\t\t}\n\t\t\t//DATE\n\t\t\tString dateExp = \"(.*)[dD][aA][tT][eE](.*)\";\n\t\t\tif (createTableContents[item].matches(dateExp)){\n\t\t\t\tth[item].setDataType(\"DATE\");\n\t\t\t}\n\n\t\t\tcurrentTableSchemaManager.newTableSchema(\n\t\t\t\t\ttableName,\n\t\t\t\t\titem,\n\t\t\t\t\tth[item].getColumnName(),\n\t\t\t\t\tth[item].getDataType(),\n\t\t\t\t\tth[item].isNull(),\n\t\t\t\t\tth[item].isPrimaryKey()\n\t\t\t\t\t);\n\n\t\t\t//Updating SCHEMA.COLUMNS.TBL\n\t\t\tupdateInformationSchemaColumn(\n\t\t\t\t\tth[item].getColumnName(),\n\t\t\t\t\titem,\n\t\t\t\t\tth[item].getDataType(),\n\t\t\t\t\tth[item].isNull(),\n\t\t\t\t\tth[item].isPrimaryKey()\n\t\t\t\t\t);\n\t\t\t//Create tables to insert index\n\t\t\tString newTableIndexName = currentSchemaName + \".\" + tableName + \".\" +th[item].getColumnName()+ \".tbl.ndx\";\n\t\t\tRandomAccessFile newTableIndexFile = new RandomAccessFile(newTableIndexName, \"rw\");\n\t\t\tnewTableIndexFile.close();\n\n\t\t}\n\n\t\tTableSchemaManager.tableMap.put(tableName, TableSchemaManager.ordinalMap);\n\t\tcurrentTableSchemaManager.updateTableSchema(currentSchemaName,tableName);\n\t\t\n\t\t//Create tables to insert data \n\t\tString newTableDataName = currentSchemaName + \".\" + tableName + \".tbl\";\n\t\tRandomAccessFile newTableDataFile = new RandomAccessFile(newTableDataName, \"rw\");\n\t\tnewTableDataFile.close();\n\t\treturn queryFailed;\n\t}", "public String createDSIndex(String dsID, String dschemaID, String attriName);", "private void createStressTestControlTable() {\n Column runId = new Column(\"RUN_ID\");\n runId.setMappedType(\"INTEGER\");\n runId.setPrimaryKey(true);\n runId.setRequired(true);\n Column clientCommitSleepMs = new Column(\"CLIENT_COMMIT_SLEEP_MS\");\n clientCommitSleepMs.setMappedType(\"BIGINT\");\n Column clientCommitRows = new Column(\"CLIENT_COMMIT_ROWS\");\n clientCommitRows.setMappedType(\"BIGINT\");\n Column serverCommitSleepMs = new Column(\"SERVER_COMMIT_SLEEP_MS\");\n serverCommitSleepMs.setMappedType(\"BIGINT\");\n Column serverCommitRows = new Column(\"SERVER_COMMIT_ROWS\");\n serverCommitRows.setMappedType(\"BIGINT\");\n Column payloadColumns = new Column(\"PAYLOAD_COLUMNS\");\n payloadColumns.setMappedType(\"INTEGER\");\n Column initialSeedSize = new Column(\"INITIAL_SEED_SIZE\");\n initialSeedSize.setMappedType(\"BIGINT\");\n Column duration = new Column(\"DURATION_MINUTES\");\n duration.setMappedType(\"BIGINT\");\n\n Table table = new Table(STRESS_TEST_CONTROL, runId, clientCommitSleepMs, clientCommitRows, serverCommitSleepMs, serverCommitRows,\n payloadColumns, initialSeedSize, duration);\n engine.getDatabasePlatform().createTables(true, true, table);\n }", "@Override\r\n\tpublic void create() {\n\r\n\t}", "Statement createStatement();", "Statement createStatement();", "Statement createStatement();", "public void doCreateTable();", "@Override\n public Pipe execute(DBMS engine) throws DBxicException {\n engine.storManager.createTable(table);\n engine.catalog.saveCatalog();\n return new MessageThroughPipe(\"Table \" + table.getName() + \" successfully created\");\n }", "@Override\n public void setUp() throws SQLException {\n connection.createStatement().executeUpdate(\n \"CREATE TABLE IF NOT EXISTS \\\"ENTRY\\\" (\" +\n \"\\\"SHARED_ID\\\" SERIAL PRIMARY KEY, \" +\n \"\\\"TYPE\\\" VARCHAR, \" +\n \"\\\"VERSION\\\" INTEGER DEFAULT 1)\");\n\n connection.createStatement().executeUpdate(\n \"CREATE TABLE IF NOT EXISTS \\\"FIELD\\\" (\" +\n \"\\\"ENTRY_SHARED_ID\\\" INTEGER REFERENCES \\\"ENTRY\\\"(\\\"SHARED_ID\\\") ON DELETE CASCADE, \" +\n \"\\\"NAME\\\" VARCHAR, \" +\n \"\\\"VALUE\\\" TEXT)\");\n\n connection.createStatement().executeUpdate(\n \"CREATE TABLE IF NOT EXISTS \\\"METADATA\\\" (\"\n + \"\\\"KEY\\\" VARCHAR,\"\n + \"\\\"VALUE\\\" TEXT)\");\n }", "private void m14053d() {\n try {\n File file = new File(f18051l);\n File file2 = new File(f18052m);\n if (!file.exists()) {\n file.mkdirs();\n }\n if (!file2.exists()) {\n file2.createNewFile();\n }\n if (file2.exists()) {\n SQLiteDatabase openOrCreateDatabase = SQLiteDatabase.openOrCreateDatabase(file2, null);\n openOrCreateDatabase.execSQL(\"CREATE TABLE IF NOT EXISTS bdcltb09(id CHAR(40) PRIMARY KEY,time DOUBLE,tag DOUBLE, type DOUBLE , ac INT);\");\n openOrCreateDatabase.execSQL(\"CREATE TABLE IF NOT EXISTS wof(id CHAR(15) PRIMARY KEY,mktime DOUBLE,time DOUBLE, ac INT, bc INT, cc INT);\");\n openOrCreateDatabase.setVersion(1);\n openOrCreateDatabase.close();\n }\n this.f18053a = true;\n } catch (Exception e) {\n }\n }", "interface WithDtu {\n /**\n * Sets the total shared DTU for the SQL Azure Database Elastic Pool.\n *\n * @param dtu total shared DTU for the SQL Azure Database Elastic Pool\n * @return The next stage of the definition.\n */\n @Deprecated\n SqlElasticPoolOperations.DefinitionStages.WithCreate withDtu(int dtu);\n }", "@POST\n @Produces({\"application/json\"})\n public String createDb() throws WebApplicationException {\n HibernateEntityManager emAdm = PersistenceManager.getInstance().getEntityManagerAdmin();\n SQLQuery qCreate = emAdm.getSession().createSQLQuery(\"CREATE DATABASE test_jeff template=postgis\");\n try{\n qCreate.executeUpdate();\n }catch(SQLGrammarException e){\n System.out.println(\"Error !!\" + e.getSQLException());\n emAdm.close();\n return e.getSQLException().getLocalizedMessage();\n }\n emAdm.close();\n Map properties = new HashMap();\n //change the connection string to the new db\n properties.put(\"hibernate.connection.url\", \"jdbc:postgresql_postGIS://192.168.12.36:5432/test_jeff\");\n EntityManagerFactory emf = Persistence.createEntityManagerFactory(\"dataPU\", properties); \n return \"Yeah\";\n }", "public abstract void createTables() throws DataServiceException;", "@Override\n\tpublic void create () {\n\n\t}", "@Test\n public void shouldCreateEpiDataGathering() {\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(0));\n\n Case caze = TestEntityCreator.createCase();\n TestEntityCreator.createEpiDataGathering(caze);\n\n // Assure that the burial has been successfully created\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(1));\n }", "Udt createUdt();", "OperacionColeccion createOperacionColeccion();", "public void create(AttributeList attributeList)\n {\n\n super.create(attributeList); \n \n OADBTransaction transaction = getOADBTransaction();\n \n // DEFAULT: supplier id is obtained from the table's sequence\n Number supplierId = transaction.getSequenceValue(\"FWK_TBX_SUPPLIERS_S\");\n setSupplierId(supplierId);\n\n // DEFAULT: start date should be set to sysdate\n setStartDate(transaction.getCurrentDBDate());\n\n \n }", "Definition createDefinition();", "H1 createH1();", "private static void createDatabase(String restrictedUser) throws ArcException {\n\t\tGenericPreparedStatementBuilder query;\n\n\t\t// clean database\n\t\tquery = new GenericPreparedStatementBuilder();\n\t\tquery.append(\"DROP SCHEMA IF EXISTS \" + DataObjectService.ARC_METADATA_SCHEMA + \" CASCADE;\");\n\t\tquery.append(\"DROP SCHEMA IF EXISTS \" + testSandbox1 + \" CASCADE;\");\n\t\tquery.append(\"DROP SCHEMA IF EXISTS public CASCADE;\");\n\t\tUtilitaireDao.get(0).executeRequest(c, query);\n\t\t\n\t\tBddPatcher patcher=new BddPatcher();\n\t\tpatcher.getProperties().setGitCommitId(newVersion);\n\t\tpatcher.getProperties().setDatabaseRestrictedUsername(userWithRestrictedRights);\n\n\t\t// metadata schema creation\n\t\tpatcher.bddScript(c);\n\t\t// sandbox schema creation\n\t\tpatcher.bddScript(c, testSandbox1, testSandbox2, testSandbox8);\n\t\t\n\t}", "Operacion createOperacion();", "private synchronized String processCreate(String query) {\r\n\t\tString[] valuesCommand = query.split(\" \");\r\n\t\tif ( valuesCommand.length != 3 )\r\n\t\t\treturn \"ERROR Bad syntaxe command CREATE - Usage : CREATE id initial_solde\";\r\n\t\tString id = valuesCommand[1];\r\n\t\tif ( this.bank.existAccount(id) ) {\r\n\t\t\treturn \"ERROR Account alwready exist\";\r\n\t\t}\r\n\t\tdouble number = Double.valueOf(valuesCommand[2]);\r\n\t\tthis.bank.createAccount(id, number);\r\n\t\treturn \"OK \" + this.bank.getLastOperation(id);\r\n\t}", "public void createNewSchema() throws SQLException {\n ResultSet resultSet = databaseStatement.executeQuery(\"select count(datname) from pg_database\");\n int uniqueID = 0;\n if(resultSet.next()) {\n uniqueID = resultSet.getInt(1);\n }\n if(uniqueID != 0) {\n uniqueID++;\n databaseStatement.executeQuery(\"CREATE DATABASE OSM\"+uniqueID+\";\");\n }\n }", "int insert(Lbt72TesuryoSumDPkey record);", "@Test(timeout = 4000)\n public void test124() throws Throwable {\n DefaultDBTable defaultDBTable0 = new DefaultDBTable();\n MockPrintWriter mockPrintWriter0 = new MockPrintWriter(\"Illegal column type format: \");\n String[] stringArray0 = new String[9];\n DBUniqueConstraint dBUniqueConstraint0 = new DBUniqueConstraint(defaultDBTable0, \"66i,cw\", true, stringArray0);\n NameSpec nameSpec0 = NameSpec.ALWAYS;\n SQLUtil.renderCreateTable(defaultDBTable0, true, nameSpec0, mockPrintWriter0);\n assertEquals(\"table\", defaultDBTable0.getObjectType());\n }", "int insert(NjProductTaticsRelation record);", "public de.uni_koblenz.jgralabtest.schemas.gretl.pddsl.Chassis createChassis();", "int insert(Disease record);", "private void creates() {\n \tDBPeer.fetchTableColumns();\n \tDBPeer.fetchTableRows();\n \tDBPeer.fetchTableIndexes();\n \t\n for (int i = 0; i < creates.size(); i++) {\n creates.get(i).init();\n }\n \n DBPeer.updateTableColumns();\n DBPeer.updateTableRows();\n DBPeer.updateTableIndexes();\n }", "InstAssignIndex createInstAssignIndex();", "WithCreate withCreationData(CreationData creationData);", "@Before\n public void createAndFillTable() {\n try {\n DBhandler dBhandler = new DBhandler(h2DbConnection);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "DataCfgTableInfo createTableIfNotExists(String dataCfgOid);", "H2 createH2();", "int insert(Lbm83ChohyokanriPkey record);", "HdbSequenceModel createHdbSequenceModel();", "DL createDL();", "For createFor();", "public org.oep.cmon.dao.tlct.model.DanhMucGiayTo create(long id);", "private Builder() {\n super(org.apache.gora.cascading.test.storage.TestRow.SCHEMA$);\n }", "public void createExempleDirect(ExempleDirect exempleDirect) throws DaoException;", "int insertSelective(NjProductTaticsRelation record);", "BIG createBIG();", "private void CreateDataIngestors() throws isisicatclient.IcatException_Exception {\n Grouping dataIngestors = new Grouping();\r\n dataIngestors.name = \"DataIngestors\";\r\n dataIngestors.id = port.create(sessionId, dataIngestors);\r\n dataIngestors = (Grouping) port.search(sessionId, \"Grouping[name='DataIngestors']\").get(0);\r\n\r\n List<String> ingestorTables = port.getEntityNames();\r\n\r\n ingestorTables.remove(\"Facility\");\r\n\r\n List<EntityBaseBean> ingestorRules = new ArrayList<>();\r\n for (String table : ingestorTables) {\r\n Rule rule = new Rule();\r\n rule.grouping = dataIngestors;\r\n rule.crudFlags = \"CRUD\"; //no delete permission for ingestors\r\n rule.what = table;\r\n ingestorRules.add(rule);\r\n }\r\n port.createMany(sessionId, ingestorRules);\r\n }", "H4 createH4();", "int insert(OrgIntegralDeductRule record);", "public void createDataTable() {\r\n Log.d(TAG, \"creating table\");\r\n String queryStr = \"\";\r\n String[] colNames = {Constants.COLUMN_NAME_ACC_X, Constants.COLUMN_NAME_ACC_Y, Constants.COLUMN_NAME_ACC_Z};\r\n queryStr += \"create table if not exists \" + Constants.TABLE_NAME;\r\n queryStr += \" ( id INTEGER PRIMARY KEY AUTOINCREMENT, \";\r\n for (int i = 1; i <= 50; i++) {\r\n for (int j = 0; j < 3; j++)\r\n queryStr += colNames[j] + \"_\" + i + \" real, \";\r\n }\r\n queryStr += Constants.COLUMN_NAME_ACTIVITY + \" text );\";\r\n execute(queryStr);\r\n Log.d(TAG, \"created table\");\r\n try {\r\n ContentValues values = new ContentValues();\r\n values.put(\"id\", 0);\r\n insertRowInTable(Constants.TABLE_NAME, values);\r\n Log.d(TAG,\"created hist table\");\r\n }catch (Exception e){\r\n Log.d(TAG,Constants.TABLE_NAME + \" table already exists\");\r\n }\r\n }", "public static void main(String[] args) {\n\t\tCreateTable createTable = new CreateTable();\n\n\t\tCity city = new City();\n\t\tcity.setId(1);\n\t\tcreateTable.execute(city);\n\n\t\tProvince province = new Province();\n\t\tprovince.setId(1);\n\t\tcreateTable.execute(province);\n\n\t\tTown town = new Town();\n\t\ttown.setId(1);\n\t\tcreateTable.execute(town);\n\n\t\tDetail detail = new Detail();\n\t\tdetail.setId(1);\n\t\tcreateTable.execute(detail);\n\n\t\tOrder order = new Order();\n\t\torder.setId(1);\n\t\tcreateTable.execute(order);\n\n\t\tBrand2 brand2 = new Brand2();\n\t\tbrand2.setId(1);\n\t\tcreateTable.execute(brand2);\n\n\t\tColor color = new Color();\n\t\tcolor.setId(1);\n\t\tcreateTable.execute(color);\n\n\t\tFeature feature = new Feature();\n\t\tfeature.setId(1);\n\t\tcreateTable.execute(feature);\n\n\t\tImg img = new Img();\n\t\timg.setId(1);\n\t\tcreateTable.execute(img);\n\n\t\tSku sku = new Sku();\n\t\tsku.setId(1);\n\t\tcreateTable.execute(sku);\n\n\t\tType type = new Type();\n\t\ttype.setId(1);\n\t\tcreateTable.execute(type);\n\n\t\tAddr addr = new Addr();\n\t\taddr.setId(1);\n\t\tcreateTable.execute(addr);\n\t\tcreateTable.execute(new Buyer());\n\n\t\t// 商品编号 商品名称 图片 新品 热卖 推荐 上下架 操作选项\n\t\tProduct product = new Product();\n\t\tproduct.setId(001);\n\t\tproduct.setNo(UUID.randomUUID().toString());\n\t\tproduct.setName(\"依琦莲2014瑜伽服套装新款 瑜珈健身服三件套 广场舞蹈服装 女瑜伽服送胸垫 长袖紫色\");\n\t\tproduct.setWeight(56.00);\n\t\tproduct.setIsNew(1); // 1是 0否\n\t\tproduct.setIsHot(1);\n\t\tproduct.setCreateTime(new Date());\n\t\tproduct.setCheckUserId(\"\");\n\t\tproduct.setCheckTime(new Date());\n\t\tproduct.setCreateUserId(\"\");\n\t\tproduct.setIsShow(1);\n\t\tproduct.setIsDel(1);\n\t\tproduct.setTypeId(1);\n\t\tproduct.setBrandId(1);\n\t\tproduct.setKeywords(\"\");\n\t\tproduct.setSales(36);\n\t\tproduct.setDescription(\"不是东西\");\n\t\tproduct.setPackageList(\"\");\n\t\tproduct.setFeature(\"头角狰狞\");\n\t\tproduct.setColor(\"blue\");\n\t\tproduct.setSize(\"L\"); // S,L,XXL\n\t\tcreateTable.execute(product);\n\n\t\t// insert into\n\t\t// Product(id,no,name,weight,isNew,isHot,sales,description,feature,size)value(1,\"11xzc3568\",\"依琦莲2014瑜伽服套装新款女瑜伽服送胸垫\n\t\t// 长袖紫色\",36.12,1,1,110,\"不是东西\",\"头角狰狞\",\"blue\",\"L\");\n\n\t\tEmployee employee = new Employee();\n\t\temployee.setId(1);\n\t\tcreateTable.execute(employee);\n\n\t}", "Vaisseau_ordonneeLaPlusHaute createVaisseau_ordonneeLaPlusHaute();", "private void createCheckingAccountsTable() {\n\t\ttry {\n\t\t\tStatement stmt = this.conn.createStatement();\n\t\t\tstmt.executeUpdate(\"CREATE TABLE checkingAccounts \"\n\t\t\t\t\t+ \"(id BIGINT GENERATED ALWAYS AS IDENTITY ( START WITH 1000000001, INCREMENT BY 1 ), \" + \"owner INT, \"\n\t\t\t\t\t+ \"balance DOUBLE, \" + \"intRate DOUBLE, \"\n\t\t\t\t\t+ \"timeCreated BIGINT, \" + \"lastPaidInterest DOUBLE, \"\n\t\t\t\t\t+ \"dateOfLastPaidInterest BIGINT)\");\n\t\t\tconn.commit();\n\t\t\tSystem.out.println(\"Created table checkingAccounts\");\n\t\t} catch (SQLException sqle) {\n\t\t\tSystem.err.println(\"Creation of checkingAccounts table FAILED\");\n\t\t\tSystem.err.println(sqle);\n\t\t}\n\t}", "@Ignore\n @Test\n public void testCreateIndex() {\n System.out.println(\"createIndex\");\n Util.commonServiceIPs=\"127.0.0.1\";\n \n EntityManager em=Util.getEntityManagerFactory(100).createEntityManager();\n EntityManager platformEm = Util.getPlatformEntityManagerFactory().createEntityManager();\n \n Client client = ESUtil.getClient(em,platformEm,1,false);\n \n RuntimeContext.dataobjectTypes = Util.getDataobjectTypes();\n String indexName = \"test000000\";\n try {\n ESUtil.createIndex(platformEm, client, indexName, true);\n }\n catch(Exception e)\n {\n \n }\n \n\n }", "public void createVirtualTable(){\n\n\t\t\n\t\tif(DBHandler.getConnection()==null){\n\t\t\treturn;\n\t\t}\n\n\t\tif(DBHandler.tableExists(name())){\n\t\t\treturn;\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tStatement s = DBHandler.getConnection().createStatement();\n\t\t\ts.execute(\"create virtual table \"+name()+\" using fts4(\"+struct()+\")\");\n\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\tMainFrame.print(e.getMessage());\n\t\t}\n\t}", "public int create (Section section) throws DataAccessException;", "protected abstract void createAttributes();", "private MetaSparqlRequest createInsertMT1() {\n\t\tString sparqlStr = \"\"+\n\t\t\t\t\"PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>\\r\\n\" + \n\t\t\t\t\"PREFIX ub: \"+_ontology+\"\\r\\n\" + \n\t\t\t\t\"INSERT DATA { GRAPH \"+_graph+\" { \"+\n\t\t\t\tbuilderBindInsert\n\t\t\t\t+\" } }\";\n\t\t\n\t\tSparqlObj sparql= new SparqlObj(sparqlStr) ;\n\t\tEndPoint endPointHost= new EndPoint(_protocol,_host,_port,\"/update\");\n\t\tMetaSparqlRequest msr = new MetaSparqlRequest(new SparqlRequest(sparql,endPointHost));\n\t\tmsr.setTripleInsert(createTripleBaseMT1());\n\t\treturn msr;\n\t}", "public void createTables(){\n Map<String, String> name_type_map = new HashMap<>();\n List<String> primaryKey = new ArrayList<>();\n try {\n name_type_map.put(KEY_SINK_NAME, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_SINK_ADDRESS, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_SINK_DETAIL, MyDatabase.TYPE_VARCHAR);\n primaryKey.add(KEY_SINK_ADDRESS);\n myDatabase.createTable(TABLE_SINK, name_type_map, primaryKey, null);\n }catch (MySQLException e){ //数据表已存在\n e.print();\n }\n try {\n name_type_map.clear();\n name_type_map.put(KEY_NODE_NAME, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_PARENT, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_DETAIL, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_ADDRESS,MyDatabase.TYPE_VARCHAR);\n primaryKey.clear();\n primaryKey.add(KEY_NODE_PARENT);\n primaryKey.add(KEY_NODE_ADDRESS);\n myDatabase.createTable(TABLE_NODE, name_type_map, primaryKey, null);\n }catch (MySQLException e){\n e.print();\n }\n\n try {\n name_type_map.clear();\n name_type_map.put(KEY_NODE_ADDRESS, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_PARENT, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_DATA_TIME, MyDatabase.TYPE_TIMESTAMP);\n name_type_map.put(KEY_DATA_VAL, MyDatabase.TYPE_FLOAT);\n primaryKey.clear();\n primaryKey.add(KEY_DATA_TIME);\n primaryKey.add(KEY_NODE_ADDRESS);\n primaryKey.add(KEY_NODE_PARENT);\n myDatabase.createTable(TABLE_DATA, name_type_map, primaryKey, null);\n }catch (MySQLException e) {\n e.print();\n }\n }", "int insert(ec_environment record);", "public void setup() throws SQLException {\n // Create ACARS table\n final String createTableSQL = \"CREATE TABLE IF NOT EXISTS ACARS (\"\n + \"date DATE, time TIME, frequency CHAR(7), \"\n + \"registration VARCHAR(7), flight CHAR(6), \"\n + \"mode CHAR, label CHAR(2), blockId CHAR, msgId CHAR(4), \"\n + \"text VARCHAR(255), \"\n + \"PRIMARY KEY (date, registration, flight, mode, label, blockId, msgId), \"\n + \"INDEX datetime_idx (date, time), \"\n + \"INDEX registration_idx (registration), \"\n + \"INDEX flight_idx (flight)\"\n + \")\";\n\n final Statement createTableStmt = connection.createStatement();\n createTableStmt.execute(createTableSQL);\n }", "TableInstance createTableInstance();", "private String createTableSQL()\n\t{\n\t\tStringBuffer str = new StringBuffer();\n\n\t\t// Keep track of the list of fields\n\t\tList<String> listFields = new ArrayList<String>();\n\n\t\t// Table command\n\t\tstr.append(\"CREATE TABLE \" + getFullPath() + \"( \");\n\t\tstr.append(createStandardGZFields());\n\n\t\t// Loop through all InputFields\n\t\tfor (InputFieldSet fieldSet : function.getInputFieldSets())\n\t\t{\n\t\t\tfor (InputField inputField : fieldSet.getInputFields())\n\t\t\t{\n\t\t\t\t// Phase 2 does not support repeating fields being journalled\n\t\t\t\tif (!Field.isRepeating(inputField))\n\t\t\t\t{\n\t\t\t\t\t// Field\n\t\t\t\t\tString fieldName = SQLToolbox.cvtToSQLFieldName(inputField.getId());\n\n\t\t\t\t\t// add if not yet existing\n\t\t\t\t\tif (listFields.indexOf(fieldName) == -1)\n\t\t\t\t\t{\n\t\t\t\t\t\tstr.append(\", \");\n\t\t\t\t\t\tString fieldDataType = inputField.getDataType();\n\t\t\t\t\t\tString fieldType = SQLToolbox.cvtToSQLFieldType(fieldDataType, inputField.getSize(), inputField\n\t\t\t\t\t\t\t\t\t\t.getDecimals());\n\t\t\t\t\t\tString fieldDefault = SQLToolbox.cvtToSQLDefault(fieldDataType);\n\t\t\t\t\t\tstr.append(fieldName + \" \" + fieldType + \" \" + \" not null default \" + fieldDefault);\n\t\t\t\t\t\tlistFields.add(fieldName);\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// End\n\t\tstr.append(\" ) \");\n\t\t// RCDFMT \" + getJournalRcdName());\n\n\t\treturn str.toString();\n\t}", "public org.oep.cmon.dao.dvc.model.ThuTuc2GiayTo create(long id);" ]
[ "0.6137034", "0.6020893", "0.5953024", "0.5871004", "0.58520657", "0.5824135", "0.5783128", "0.5781292", "0.5779935", "0.5768486", "0.57018137", "0.569296", "0.5677845", "0.566757", "0.56516117", "0.5639093", "0.56084186", "0.5601316", "0.55988264", "0.5587084", "0.5586368", "0.5579563", "0.55671966", "0.5562383", "0.55537105", "0.55511224", "0.5550222", "0.5547236", "0.55009055", "0.54889506", "0.5482187", "0.54807544", "0.5465443", "0.5454913", "0.54468626", "0.5434606", "0.5426381", "0.54197514", "0.5414243", "0.54073745", "0.5402808", "0.5390703", "0.5390526", "0.5390526", "0.5390526", "0.538945", "0.53878444", "0.53796816", "0.5375914", "0.53748345", "0.53730184", "0.5365049", "0.5364833", "0.5364805", "0.536257", "0.5361029", "0.5360632", "0.53598887", "0.5350994", "0.5339128", "0.5338244", "0.53296435", "0.5321595", "0.5320979", "0.53194505", "0.5318698", "0.5313326", "0.53126156", "0.53099495", "0.5306004", "0.5300889", "0.5293614", "0.529321", "0.52883255", "0.5281361", "0.5281042", "0.527843", "0.5270345", "0.526982", "0.52697945", "0.52608657", "0.5259804", "0.52563196", "0.5249798", "0.5247741", "0.5239433", "0.5224713", "0.5224455", "0.5222238", "0.5221105", "0.521778", "0.5213034", "0.5211071", "0.52098143", "0.5208245", "0.5207931", "0.52069414", "0.5205663", "0.52015704", "0.5196995", "0.5195414" ]
0.0
-1
CREATE BY ANH DUC
List<Account> coverListEmpDTOToListAccount(List<AccountDTO> accountDTOList);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int createTable(HbaseObj t);", "private void processCreate() throws HsqlException {\n\n boolean unique = false;\n int tableType;\n boolean isTempTable = false;\n String token;\n\n session.checkAdmin();\n session.checkDDLWrite();\n session.setScripting(true);\n\n if (tokenizer.isGetThis(Token.T_GLOBAL)) {\n tokenizer.getThis(Token.T_TEMPORARY);\n\n isTempTable = true;\n } else if (tokenizer.isGetThis(Token.T_TEMP)) {\n isTempTable = true;\n } else if (tokenizer.isGetThis(Token.T_TEMPORARY)) {\n isTempTable = true;\n }\n\n token = tokenizer.getSimpleToken();\n\n switch (Token.get(token)) {\n\n // table\n case Token.MEMORY :\n tokenizer.getThis(Token.T_TABLE);\n case Token.TABLE :\n tableType = isTempTable ? Table.TEMP_TABLE\n : database.getDefaultTableType();\n\n processCreateTable(tableType);\n\n return;\n\n case Token.CACHED :\n if (isTempTable) {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n\n tokenizer.getThis(Token.T_TABLE);\n processCreateTable(Table.CACHED_TABLE);\n\n return;\n\n case Token.TEXT :\n if (isTempTable) {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n\n tokenizer.getThis(Token.T_TABLE);\n processCreateTable(Table.TEXT_TABLE);\n\n return;\n\n default :\n if (isTempTable) {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n }\n\n switch (Token.get(token)) {\n\n // other objects\n case Token.ALIAS :\n processCreateAlias();\n break;\n\n case Token.SEQUENCE :\n processCreateSequence();\n break;\n\n case Token.SCHEMA :\n session.setScripting(false);\n processCreateSchema();\n break;\n\n case Token.TRIGGER :\n processCreateTrigger();\n break;\n\n case Token.USER :\n processCreateUser();\n break;\n\n case Token.ROLE :\n database.getGranteeManager().addRole(getUserIdentifier());\n break;\n\n case Token.VIEW :\n processCreateView();\n break;\n\n // index\n case Token.UNIQUE :\n unique = true;\n\n tokenizer.getThis(Token.T_INDEX);\n\n //fall thru\n case Token.INDEX :\n processCreateIndex(unique);\n break;\n\n default : {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n }\n }", "void create(DataTableDef def) throws IOException;", "CreationData creationData();", "protected abstract D createData();", "FromTable createFromTable();", "public void create() {\n\t\t\n\t}", "public void create() {\n\t\t\tdb.execSQL(AGENCYDB_CREATE+\".separete,.import agency.txt agency\");\n\t\t\tdb.execSQL(STOPSDB_CREATE+\".separete,.import stop_times.txt stop_times\");\n\t\t\t\n\t\t\t// Add 2 agencies for testing\n\t\t\t\n\t\t\t\n\t\t\tdb.setVersion(DATABASE_VERSION);\n\t\t}", "HdbdtiModel createHdbdtiModel();", "HdbSequenceElements createHdbSequenceElements();", "DD createDD();", "TD createTD();", "public String createTable(){\r\n return \"CREATE TABLE Doctor \" +\r\n \"(idDoctor decimal primary key, \" +\r\n \"firstNameDoctor char(14), \" +\r\n \"lastNameDoctor char(14), \" +\r\n \"costPerVisit integer,\" +\r\n \"qualification varchar(32))\";\r\n }", "private void createCDAccountsTable() {\n\t\ttry {\n\t\t\tStatement stmt = this.conn.createStatement();\n\t\t\tstmt.executeUpdate(\"CREATE TABLE cdAccounts \"\n\t\t\t\t\t+ \"(id BIGINT GENERATED ALWAYS AS IDENTITY ( START WITH 3000000001, INCREMENT BY 1 ), \" + \"owner INT, \"\n\t\t\t\t\t+ \"term INT, \" + \"balance DOUBLE, \" + \"intRate DOUBLE, \"\n\t\t\t\t\t+ \"timeCreated BIGINT, \" + \"lastPaidInterest DOUBLE, \"\n\t\t\t\t\t+ \"dateOfLastPaidInterest BIGINT)\");\n\t\t\tconn.commit();\n\t\t\tSystem.out.println(\"Created table cdAccounts\");\n\t\t} catch (SQLException sqle) {\n\t\t\tSystem.err.println(\"Creation of cdAccounts table FAILED\");\n\t\t\tSystem.err.println(sqle);\n\t\t}\n\t}", "public void createDienst()\n\t{\n\t\twriteDb(\"INSERT INTO dienstleistung (Bezeichnung, Preis)\" + \"VALUES('\" + typ + \"', '\" + preis +\"')\", getWriteCon());\n\t\tcommitDbConnection(getWriteCon());\n\t}", "public void create(){}", "@Override\n\tpublic String createTable() {\n\t\t\t\treturn \"CREATE TABLE history_table_view(id number(8) primary key not null ,sqltext text, pointid varchar2(1024), type varchar2(100))\";\n\t}", "public static void createTable() {\n\n // Create statement\n Statement statement = null;\n try {\n statement = Database.getDatabase().getConnection().createStatement();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n // Attempt to create table\n try {\n statement.execute(\n \"CREATE TABLE \" + Constants.SANITATION_TABLE + \"(\" +\n \"requestID INT PRIMARY KEY GENERATED ALWAYS AS IDENTITY (START WITH 1, INCREMENT BY 1),\" +\n \"nodeID VARCHAR(100) References \" + Constants.LOCATION_TABLE + \" (nodeID), \" +\n \"priority VARCHAR(10), \" +\n \"status VARCHAR(100), \" +\n \"description VARCHAR(100), \" +\n \"requesterID INT REFERENCES \" + Constants.USERS_TABLE + \"(userID), \" +\n \"requestTime TIMESTAMP, \" +\n \"servicerID INT REFERENCES \" + Constants.USERS_TABLE + \"(userID), \" +\n \"claimedTime TIMESTAMP, \" +\n \"completedTime TIMESTAMP, \" +\n \"CONSTRAINT priority_enum CHECK (priority in ('LOW', 'MEDIUM', 'HIGH')), \" +\n \"CONSTRAINT status_enum CHECK (status in ('INCOMPLETE', 'COMPLETE')))\"\n );\n } catch (SQLException | NullPointerException e) {\n e.printStackTrace();\n }\n }", "BTable createBTable();", "@Override\r\n\tpublic void create() {\n\t\t\r\n\t}", "@Override\n\tpublic void create() {\n\t\t\n\t}", "public abstract Anuncio creaAnuncioTematico();", "long createDatabase(long actor, String nameToDisplay, long proteinDBType, long sizeInBytes, boolean bPublic, boolean bReversed, ExperimentCategory category);", "TABLE createTABLE();", "private void processCreateTable(int type) throws HsqlException {\n\n String token = tokenizer.getName();\n HsqlName schemaname =\n session.getSchemaHsqlNameForWrite(tokenizer.getLongNameFirst());\n\n database.schemaManager.checkUserTableNotExists(session, token,\n schemaname.name);\n\n boolean isnamequoted = tokenizer.wasQuotedIdentifier();\n int[] pkCols = null;\n int colIndex = 0;\n boolean constraint = false;\n Table t = newTable(type, token, isnamequoted, schemaname);\n\n tokenizer.getThis(Token.T_OPENBRACKET);\n\n while (true) {\n token = tokenizer.getString();\n\n switch (Token.get(token)) {\n\n case Token.CONSTRAINT :\n case Token.PRIMARY :\n case Token.FOREIGN :\n case Token.UNIQUE :\n case Token.CHECK :\n\n // fredt@users : check for quoted reserved words used as column names\n constraint = !tokenizer.wasQuotedIdentifier()\n && !tokenizer.wasLongName();\n }\n\n tokenizer.back();\n\n if (constraint) {\n break;\n }\n\n Column newcolumn = processCreateColumn();\n\n t.addColumn(newcolumn);\n\n if (newcolumn.isPrimaryKey()) {\n Trace.check(pkCols == null, Trace.SECOND_PRIMARY_KEY,\n newcolumn.columnName.name);\n\n pkCols = new int[]{ colIndex };\n }\n\n token = tokenizer.getSimpleToken();\n\n if (token.equals(Token.T_COMMA)) {\n colIndex++;\n\n continue;\n }\n\n if (token.equals(Token.T_CLOSEBRACKET)) {\n break;\n }\n\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n\n HsqlArrayList tempConstraints = processCreateConstraints(t,\n constraint, pkCols);\n\n if (tokenizer.isGetThis(Token.T_ON)) {\n if (!t.isTemp) {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, Token.T_ON);\n }\n\n tokenizer.getThis(Token.T_COMMIT);\n\n token = tokenizer.getSimpleToken();\n\n if (token.equals(Token.T_DELETE)) {}\n else if (token.equals(Token.T_PRESERVE)) {\n t.onCommitPreserve = true;\n } else {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n\n tokenizer.getThis(Token.T_ROWS);\n }\n\n try {\n session.commit();\n\n Constraint primaryConst = (Constraint) tempConstraints.get(0);\n\n t.createPrimaryKey(null, primaryConst.core.mainColArray, true);\n\n if (primaryConst.core.mainColArray != null) {\n if (primaryConst.constName == null) {\n primaryConst.constName = t.makeSysPKName();\n }\n\n Constraint newconstraint =\n new Constraint(primaryConst.constName, t,\n t.getPrimaryIndex(),\n Constraint.PRIMARY_KEY);\n\n t.addConstraint(newconstraint);\n database.schemaManager.registerConstraintName(\n primaryConst.constName.name, t.getName());\n }\n\n for (int i = 1; i < tempConstraints.size(); i++) {\n Constraint tempConst = (Constraint) tempConstraints.get(i);\n\n if (tempConst.constType == Constraint.UNIQUE) {\n TableWorks tableWorks = new TableWorks(session, t);\n\n tableWorks.createUniqueConstraint(\n tempConst.core.mainColArray, tempConst.constName);\n\n t = tableWorks.getTable();\n }\n\n if (tempConst.constType == Constraint.FOREIGN_KEY) {\n TableWorks tableWorks = new TableWorks(session, t);\n\n tableWorks.createForeignKey(tempConst.core.mainColArray,\n tempConst.core.refColArray,\n tempConst.constName,\n tempConst.core.refTable,\n tempConst.core.deleteAction,\n tempConst.core.updateAction);\n\n t = tableWorks.getTable();\n }\n\n if (tempConst.constType == Constraint.CHECK) {\n TableWorks tableWorks = new TableWorks(session, t);\n\n tableWorks.createCheckConstraint(tempConst,\n tempConst.constName);\n\n t = tableWorks.getTable();\n }\n }\n\n database.schemaManager.linkTable(t);\n } catch (HsqlException e) {\n\n// fredt@users 20020225 - comment\n// if a HsqlException is thrown while creating table, any foreign key that has\n// been created leaves it modification to the expTable in place\n// need to undo those modifications. This should not happen in practice.\n database.schemaManager.removeExportedKeys(t);\n database.schemaManager.removeIndexNames(t.tableName);\n database.schemaManager.removeConstraintNames(t.tableName);\n\n throw e;\n }\n }", "@Override\n\tpublic void create() {\n\n\t}", "public void testCreateTable() {\n LOG.info(\"Entering testCreateTable.\");\n\n // Specify the table descriptor.\n HTableDescriptor htd = new HTableDescriptor(tableName);\n\n // Set the column family name to info.\n HColumnDescriptor hcd = new HColumnDescriptor(\"info\");\n\n // Set data encoding methods,HBase provides DIFF,FAST_DIFF,PREFIX\n // and PREFIX_TREE\n hcd.setDataBlockEncoding(DataBlockEncoding.FAST_DIFF);\n\n // Set compression methods, HBase provides two default compression\n // methods:GZ and SNAPPY\n // GZ has the highest compression rate,but low compression and\n // decompression effeciency,fit for cold data\n // SNAPPY has low compression rate, but high compression and\n // decompression effeciency,fit for hot data.\n // it is advised to use SANPPY\n hcd.setCompressionType(Compression.Algorithm.SNAPPY);\n\n htd.addFamily(hcd);\n\n Admin admin = null;\n try {\n // Instantiate an Admin object.\n admin = conn.getAdmin();\n if (!admin.tableExists(tableName)) {\n LOG.info(\"Creating table...\");\n admin.createTable(htd);\n LOG.info(admin.getClusterStatus());\n LOG.info(admin.listNamespaceDescriptors());\n LOG.info(\"Table created successfully.\");\n } else {\n LOG.warn(\"table already exists\");\n }\n } catch (IOException e) {\n LOG.error(\"Create table failed.\");\n } finally {\n if (admin != null) {\n try {\n // Close the Admin object.\n admin.close();\n } catch (IOException e) {\n LOG.error(\"Failed to close admin \", e);\n }\n }\n }\n LOG.info(\"Exiting testCreateTable.\");\n }", "public CreateData() {\n\t\t\n\t\t// TODO Auto-generated constructor stub\n\t}", "boolean createTable();", "@Override\r\n public Db_db createTable (Db_table table)\r\n {\r\n Db_db db = null;\r\n String query = \"CREATE TABLE IF NOT EXISTS \"+ table.getName() + \" (\"; \r\n String primaryKeyName = null;\r\n Set<Map.Entry<String, Db_tableColumn>> tableEntries;\r\n List<String> listOfUniqueKey = Lists.newArrayList();\r\n \r\n if(curConnection_ != null)\r\n {\r\n try\r\n {\r\n tableEntries = table.getEntrySet();\r\n for(Map.Entry<String, Db_tableColumn> entry: tableEntries)\r\n {\r\n Db_tableColumn entryContent = entry.getValue();\r\n \r\n if(entryContent.isPrimary() && primaryKeyName == null)\r\n {\r\n primaryKeyName = entryContent.getName();\r\n }\r\n else if(entryContent.isPrimary() && primaryKeyName != null)\r\n {\r\n throw new NumberFormatException();\r\n }\r\n \r\n if(itsAttributeMapper_ == null)\r\n {\r\n throw new NumberFormatException();\r\n }\r\n \r\n if(entryContent.isUnique())\r\n {\r\n listOfUniqueKey.add(entryContent.getName());\r\n }\r\n \r\n String mappedAttribute = this.itsAttributeMapper_.MapAttribute(entryContent.getAttributeName());\r\n if(entryContent.getAttribute().isEnum())\r\n {\r\n mappedAttribute += entryContent.getAttribute().buildEnumValueListString();\r\n }\r\n query += entryContent.getName() + \" \" + mappedAttribute \r\n + (entryContent.isAutoIncreasmnet()?\" AUTO_INCREMENT \":\" \")\r\n + (entryContent.isUnique()?\" UNIQUE, \": \", \");\r\n }\r\n \r\n query += \"PRIMARY KEY (\" + primaryKeyName + \"));\";\r\n try (Statement sm = curConnection_.createStatement()) {\r\n sm.executeUpdate(query);\r\n db = this.curDb_;\r\n }\r\n \r\n }catch(NumberFormatException e){System.out.print(e);}\r\n catch(SQLException e){System.out.print(query);this.CurConnectionFailed();}\r\n }\r\n return db;\r\n }", "public Hoppy insert(Hoppy hoppy, IdGenerateService<Long> idGenerateService) throws DataAccessException;", "interface WithCreate extends\n SqlElasticPoolOperations.DefinitionStages.WithDatabaseDtuMin,\n SqlElasticPoolOperations.DefinitionStages.WithDatabaseDtuMax,\n SqlElasticPoolOperations.DefinitionStages.WithDtu,\n SqlElasticPoolOperations.DefinitionStages.WithStorageCapacity,\n SqlElasticPoolOperations.DefinitionStages.WithDatabase,\n Resource.DefinitionWithTags<SqlElasticPoolOperations.DefinitionStages.WithCreate>,\n Creatable<SqlElasticPool> {\n }", "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:49.404 -0500\", hash_original_method = \"CD5C82C799E78C74801FDB521CEE7324\", hash_generated_method = \"CD5C82C799E78C74801FDB521CEE7324\")\n \nContext ()\n {\n copyTables();\n }", "OrTable createOrTable();", "public abstract void create();", "DT createDT();", "@Override\n public void createSchema(Properties props)\n {\n Statement statement;\n try\n {\n statement = connection.createStatement();\n \n //Drop Indexes\n dropIndex(statement, \"CONFFRIENDSHIP_INVITEEID\", \"CONFFRIENDSHIP\");\n dropIndex(statement, \"CONFFRIENDSHIP_INVITERID\", \"CONFFRIENDSHIP\");\n dropIndex(statement, \"PENDFRIENDSHIP_INVITEEID\", \"PENDFRIENDSHIP\");\n dropIndex(statement, \"PENDFRIENDSHIP_INVITERID\", \"PENDFRIENDSHIP\");\n dropIndex(statement, \"MANIPULATION_RID\", \"MANIPULATION\");\n dropIndex(statement, \"MANIPULATION_CREATORID\", \"MANIPULATION\");\n dropIndex(statement, \"RESOURCES_WALLUSERID\", \"RESOURCES\");\n dropIndex(statement, \"RESOURCE_CREATORID\", \"RESOURCES\");\n \n //Drop Tables\n dropTable(statement, \"CONFFRIENDSHIP\");\n dropTable(statement, \"PENDFRIENDSHIP\");\n dropTable(statement, \"MANIPULATION\");\n dropTable(statement, \"RESOURCES\");\n dropTable(statement, \"USERS\");\n \n //Create Tables\n statement.executeUpdate(\"CREATE TABLE CONFFRIENDSHIP \" + \"(INVITERID INTEGER NOT NULL, \" + \"INVITEEID INTEGER NOT NULL, \" + \"PRIMARY KEY (INVITERID, INVITEEID))\");\n statement.executeUpdate(\"CREATE TABLE PENDFRIENDSHIP \" + \"(INVITERID INTEGER NOT NULL, \" + \"INVITEEID INTEGER NOT NULL, \" + \"PRIMARY KEY (INVITERID, INVITEEID))\");\n statement.executeUpdate(\"CREATE TABLE MANIPULATION \" + \"(MID INTEGER NOT NULL, \" + \"MODIFIERID INTEGER NOT NULL, \" + \"RID INTEGER NOT NULL, \" + \"CREATORID INTEGER NOT NULL, \" + \"TIMESTAMP VARCHAR(200), \" + \"TYPE VARCHAR(200), \" + \"CONTENT VARCHAR(200), \" + \"PRIMARY KEY (MID,RID))\");\n statement.executeUpdate(\"CREATE TABLE RESOURCES \" + \"(RID INTEGER NOT NULL , \" + \"CREATORID INTEGER NOT NULL, \" + \"WALLUSERID INTEGER NOT NULL, \" + \"TYPE VARCHAR(200), \" + \"BODY VARCHAR(200), \" + \"DOC VARCHAR(200), \" + \"PRIMARY KEY (RID))\");\n statement.executeUpdate(\"CREATE TABLE USERS \" + \"(USERID INTEGER NOT NULL , \" + \"USERNAME VARCHAR(200), \" + \"PW VARCHAR(200), \" + \"FNAME VARCHAR(200), \" + \"LNAME VARCHAR(200), \" + \"GENDER VARCHAR(200),\" + \"DOB VARCHAR(200), \" + \"JDATE VARCHAR(200), \" + \"LDATE VARCHAR(200), \" + \"ADDRESS VARCHAR(200),\" + \"EMAIL VARCHAR(200), \" + \"TEL VARCHAR(200), \" + \"PRIMARY KEY (USERID))\");\n \n //Add Foreign Keys\n statement.executeUpdate(\"ALTER TABLE CONFFRIENDSHIP \" + \"ADD CONSTRAINT CONFFRIENDSHIP_USERS_FK1 FOREIGN KEY (INVITERID)\" + \"REFERENCES USERS (USERID) ON DELETE CASCADE\");\n statement.executeUpdate(\"ALTER TABLE CONFFRIENDSHIP \" + \"ADD CONSTRAINT CONFFRIENDSHIP_USERS_FK2 FOREIGN KEY (INVITEEID)\" + \"REFERENCES USERS (USERID) ON DELETE NO ACTION\");\n statement.executeUpdate(\"ALTER TABLE PENDFRIENDSHIP \" + \"ADD CONSTRAINT PENDFRIENDSHIP_USERS_FK1 FOREIGN KEY (INVITERID)\" + \"REFERENCES USERS (USERID) ON DELETE CASCADE\");\n statement.executeUpdate(\"ALTER TABLE PENDFRIENDSHIP \" + \"ADD CONSTRAINT PENDFRIENDSHIP_USERS_FK2 FOREIGN KEY (INVITEEID)\" + \"REFERENCES USERS (USERID) ON DELETE NO ACTION\");\n statement.executeUpdate(\"ALTER TABLE MANIPULATION \" + \"ADD CONSTRAINT MANIPULATION_RESOURCES_FK1 FOREIGN KEY (RID)\" + \"REFERENCES RESOURCES (RID) ON DELETE CASCADE\");\n statement.executeUpdate(\"ALTER TABLE MANIPULATION \" + \"ADD CONSTRAINT MANIPULATION_USERS_FK1 FOREIGN KEY (CREATORID)\" + \"REFERENCES USERS (USERID) ON DELETE NO ACTION\");\n statement.executeUpdate(\"ALTER TABLE MANIPULATION \" + \"ADD CONSTRAINT MANIPULATION_USERS_FK2 FOREIGN KEY (MODIFIERID)\" + \"REFERENCES USERS (USERID) ON DELETE NO ACTION\");\n statement.executeUpdate(\"ALTER TABLE RESOURCES \" + \"ADD CONSTRAINT RESOURCES_USERS_FK1 FOREIGN KEY (CREATORID)\" + \"REFERENCES USERS (USERID) ON DELETE CASCADE\");\n statement.executeUpdate(\"ALTER TABLE RESOURCES \" + \"ADD CONSTRAINT RESOURCES_USERS_FK2 FOREIGN KEY (WALLUSERID)\" + \"REFERENCES USERS (USERID) ON DELETE NO ACTION\");\n \n //Create Indexes\n buildIndexes(null);\n }\n catch (SQLException ex)\n {\n Logger.getLogger(WindowsAzureClientInit.class.getName()).log(Level.SEVERE, null, ex);\n System.out.println(\"Error in creating schema!\");\n }\n }", "public void createTable() throws LRException\n\t{\n\t\tgetBackground();\n\t\tDataHRecordData myData=(DataHRecordData)getData();\n\t\t// Create a new (empty) record\n\t\tcreate(new Hashtable(),myData);\n\t\tif (myData.record==null) throw new LRException(DataRMessages.nullRecord(getName()));\n\t\ttry\n\t\t{\n\t\t\tbackground.newTransaction();\n\t\t\tmyData.record.createNewTable(background.getClient(),true);\n\t\t}\n\t\tcatch (LDBException e) { setStatus(e); }\n\t}", "public boolean createTable(String input) throws IOException{\n\t\tString orgQuery = input;\n\t\torgQuery = orgQuery.trim();\n\t\tString query = input.toLowerCase().trim();\n\t\tboolean queryFailed = false;\n\t\t//Schema Instance \n\t\tSchema currentSchema = Schema.getSchemaInstance();\n\t\tString currentSchemaName = currentSchema.getCurrentSchema();\n\n\t\t//TableSchemaManager Instance\n\t\tTableSchemaManager currentTableSchemaManager = TableSchemaManager.getTableSchemaManagerInstance();\n\n\t\t//Extracting Table name\n\t\ttableName = orgQuery.substring(query.indexOf(\"table \")+6,query.indexOf(\"(\")).trim();\n\n\t\t//Updating SCHEMA.TABLE.TBL\n\t\tif(updateInformationSchemaTable()){\n\t\t\tqueryFailed = true;\n\t\t\treturn queryFailed;\n\t\t}\n\n\t\t//Extracting Table contents\n\t\tString tableContentsWithQuotes = orgQuery.substring(orgQuery.indexOf(\"(\")+1,orgQuery.length());\n\t\tString tableContents = tableContentsWithQuotes.replace(\"))\", \")\");\n\t\ttableContents = tableContents.trim();\n\n\t\tTableSchemaManager.ordinalMap = new TreeMap<Integer,List<String>>();\n\t\tTableSchemaManager.tableMap = new TreeMap<String,TreeMap<Integer,List<String>>>();\n\t\t\n\t\t//Creating n instances of Table helper\n\t\tString[] createTableContents = tableContents.split(\"\\\\,\"); \n\t\tnoOfColumns = createTableContents.length;\n\t\tCreateTableHelper[] th = new CreateTableHelper[noOfColumns];\n\n\t\t\n\t\t//Handles single row of Create Table \n\t\tfor(int item = 0; item < noOfColumns ; item++){\n\t\t\tth[item] = new CreateTableHelper(); \n\t\t\t//To remove any leading or trailing spaces\n\t\t\tcreateTableContents[item] = createTableContents[item].trim();\n\t\t\tString columnName = createTableContents[item].substring(0, createTableContents[item].indexOf(\" \"));\n\t\t\tth[item].setColumnName(columnName);\n\n\t\t\t//Setting Primary Key\n\t\t\tString primaryKeyExp = \"(.*)[pP][rR][iI][mM][aA][rR][yY](.*)\";\n\t\t\tif (createTableContents[item].matches(primaryKeyExp))\n\t\t\t\tth[item].setPrimaryKey(true);\n\t\t\telse\n\t\t\t\tth[item].setPrimaryKey(false);\n\n\t\t\t//Setting Null Value\t\n\t\t\tString notNullExp = \"(.*)[nN][uU][lL][lL](.*)\";\n\t\t\tif (createTableContents[item].matches(notNullExp))\n\t\t\t\tth[item].setNull(true);\n\t\t\telse\n\t\t\t\tth[item].setNull(false);\n\n\t\t\t//Extracting data types \n\t\t\t//BYTE\n\t\t\tString byteExp = \"(.*)[bB][yY][tT][eE](.*)\";\n\t\t\tif (createTableContents[item].matches(byteExp)){\n\t\t\t\tth[item].setDataType(\"BYTE\");\n\t\t\t}\n\t\t\t//SHORT\n\t\t\tString shortExp = \"(.*)[sS][hH][oO][rR][tT](.*)\";\n\t\t\tif (createTableContents[item].matches(shortExp)){\n\t\t\t\tth[item].setDataType(\"SHORT\");\n\t\t\t}\n\t\t\t//INT\n\t\t\tString intExp = \"(.*)[iI][nN][tT](.*)\";\n\t\t\tif (createTableContents[item].matches(intExp)){\n\t\t\t\tth[item].setDataType(\"INT\");\n\t\t\t}\n\t\t\t//LONG\n\t\t\tString longExp = \"(.*)[lL][oO][nN][gG](.*)\";\n\t\t\tif (createTableContents[item].matches(longExp)){\n\t\t\t\tth[item].setDataType(\"LONG\");\n\t\t\t}\n\t\t\t//CHAR\n\t\t\tString charExp = \"(.*)[cC][hH][aA][rR](.*)\";\n\t\t\tif (createTableContents[item].matches(charExp)){\n\t\t\t\tString size = createTableContents[item].substring(createTableContents[item].indexOf(\"(\")+1, createTableContents[item].indexOf(\")\"));\n\t\t\t\tth[item].setDataType(\"CHAR(\" + size + \")\");\n\t\t\t}\n\t\t\t//VARCHAR\n\t\t\tString varcharExp = \"(.*)[vV][aA][rR][cC][hH][aA][rR](.*)\";\n\t\t\tif (createTableContents[item].matches(varcharExp)){\n\t\t\t\tString size = createTableContents[item].substring(createTableContents[item].indexOf(\"(\")+1, createTableContents[item].indexOf(\")\"));\n\t\t\t\tth[item].setDataType(\"VARCHAR(\" + size + \")\");\n\t\t\t}\n\t\t\t//FLOAT\n\t\t\tString floatExp = \"(.*)[fF][lL][oO][aA][tT](.*)\";\n\t\t\tif (createTableContents[item].matches(floatExp)){\n\t\t\t\tth[item].setDataType(\"FLOAT\");\t\t\t\t\n\t\t\t}\n\t\t\t//DOUBLE\n\t\t\tString doubleExp = \"(.*)[dD][oO][uU][bB][lL][eE](.*)\";\n\t\t\tif (createTableContents[item].matches(doubleExp)){\n\t\t\t\tth[item].setDataType(\"DOUBLE\");\n\t\t\t}\n\t\t\t//DATETIME\n\t\t\tString dateTimeExp = \"(.*)[dD][aA][tT][eE][tT][iI][mM][eE](.*)\";\n\t\t\tif (createTableContents[item].matches(dateTimeExp)){\n\t\t\t\tth[item].setDataType(\"DATETIME\");\n\t\t\t}\n\t\t\t//DATE\n\t\t\tString dateExp = \"(.*)[dD][aA][tT][eE](.*)\";\n\t\t\tif (createTableContents[item].matches(dateExp)){\n\t\t\t\tth[item].setDataType(\"DATE\");\n\t\t\t}\n\n\t\t\tcurrentTableSchemaManager.newTableSchema(\n\t\t\t\t\ttableName,\n\t\t\t\t\titem,\n\t\t\t\t\tth[item].getColumnName(),\n\t\t\t\t\tth[item].getDataType(),\n\t\t\t\t\tth[item].isNull(),\n\t\t\t\t\tth[item].isPrimaryKey()\n\t\t\t\t\t);\n\n\t\t\t//Updating SCHEMA.COLUMNS.TBL\n\t\t\tupdateInformationSchemaColumn(\n\t\t\t\t\tth[item].getColumnName(),\n\t\t\t\t\titem,\n\t\t\t\t\tth[item].getDataType(),\n\t\t\t\t\tth[item].isNull(),\n\t\t\t\t\tth[item].isPrimaryKey()\n\t\t\t\t\t);\n\t\t\t//Create tables to insert index\n\t\t\tString newTableIndexName = currentSchemaName + \".\" + tableName + \".\" +th[item].getColumnName()+ \".tbl.ndx\";\n\t\t\tRandomAccessFile newTableIndexFile = new RandomAccessFile(newTableIndexName, \"rw\");\n\t\t\tnewTableIndexFile.close();\n\n\t\t}\n\n\t\tTableSchemaManager.tableMap.put(tableName, TableSchemaManager.ordinalMap);\n\t\tcurrentTableSchemaManager.updateTableSchema(currentSchemaName,tableName);\n\t\t\n\t\t//Create tables to insert data \n\t\tString newTableDataName = currentSchemaName + \".\" + tableName + \".tbl\";\n\t\tRandomAccessFile newTableDataFile = new RandomAccessFile(newTableDataName, \"rw\");\n\t\tnewTableDataFile.close();\n\t\treturn queryFailed;\n\t}", "public String createDSIndex(String dsID, String dschemaID, String attriName);", "private void createStressTestControlTable() {\n Column runId = new Column(\"RUN_ID\");\n runId.setMappedType(\"INTEGER\");\n runId.setPrimaryKey(true);\n runId.setRequired(true);\n Column clientCommitSleepMs = new Column(\"CLIENT_COMMIT_SLEEP_MS\");\n clientCommitSleepMs.setMappedType(\"BIGINT\");\n Column clientCommitRows = new Column(\"CLIENT_COMMIT_ROWS\");\n clientCommitRows.setMappedType(\"BIGINT\");\n Column serverCommitSleepMs = new Column(\"SERVER_COMMIT_SLEEP_MS\");\n serverCommitSleepMs.setMappedType(\"BIGINT\");\n Column serverCommitRows = new Column(\"SERVER_COMMIT_ROWS\");\n serverCommitRows.setMappedType(\"BIGINT\");\n Column payloadColumns = new Column(\"PAYLOAD_COLUMNS\");\n payloadColumns.setMappedType(\"INTEGER\");\n Column initialSeedSize = new Column(\"INITIAL_SEED_SIZE\");\n initialSeedSize.setMappedType(\"BIGINT\");\n Column duration = new Column(\"DURATION_MINUTES\");\n duration.setMappedType(\"BIGINT\");\n\n Table table = new Table(STRESS_TEST_CONTROL, runId, clientCommitSleepMs, clientCommitRows, serverCommitSleepMs, serverCommitRows,\n payloadColumns, initialSeedSize, duration);\n engine.getDatabasePlatform().createTables(true, true, table);\n }", "@Override\r\n\tpublic void create() {\n\r\n\t}", "Statement createStatement();", "Statement createStatement();", "Statement createStatement();", "public void doCreateTable();", "@Override\n public Pipe execute(DBMS engine) throws DBxicException {\n engine.storManager.createTable(table);\n engine.catalog.saveCatalog();\n return new MessageThroughPipe(\"Table \" + table.getName() + \" successfully created\");\n }", "@Override\n public void setUp() throws SQLException {\n connection.createStatement().executeUpdate(\n \"CREATE TABLE IF NOT EXISTS \\\"ENTRY\\\" (\" +\n \"\\\"SHARED_ID\\\" SERIAL PRIMARY KEY, \" +\n \"\\\"TYPE\\\" VARCHAR, \" +\n \"\\\"VERSION\\\" INTEGER DEFAULT 1)\");\n\n connection.createStatement().executeUpdate(\n \"CREATE TABLE IF NOT EXISTS \\\"FIELD\\\" (\" +\n \"\\\"ENTRY_SHARED_ID\\\" INTEGER REFERENCES \\\"ENTRY\\\"(\\\"SHARED_ID\\\") ON DELETE CASCADE, \" +\n \"\\\"NAME\\\" VARCHAR, \" +\n \"\\\"VALUE\\\" TEXT)\");\n\n connection.createStatement().executeUpdate(\n \"CREATE TABLE IF NOT EXISTS \\\"METADATA\\\" (\"\n + \"\\\"KEY\\\" VARCHAR,\"\n + \"\\\"VALUE\\\" TEXT)\");\n }", "private void m14053d() {\n try {\n File file = new File(f18051l);\n File file2 = new File(f18052m);\n if (!file.exists()) {\n file.mkdirs();\n }\n if (!file2.exists()) {\n file2.createNewFile();\n }\n if (file2.exists()) {\n SQLiteDatabase openOrCreateDatabase = SQLiteDatabase.openOrCreateDatabase(file2, null);\n openOrCreateDatabase.execSQL(\"CREATE TABLE IF NOT EXISTS bdcltb09(id CHAR(40) PRIMARY KEY,time DOUBLE,tag DOUBLE, type DOUBLE , ac INT);\");\n openOrCreateDatabase.execSQL(\"CREATE TABLE IF NOT EXISTS wof(id CHAR(15) PRIMARY KEY,mktime DOUBLE,time DOUBLE, ac INT, bc INT, cc INT);\");\n openOrCreateDatabase.setVersion(1);\n openOrCreateDatabase.close();\n }\n this.f18053a = true;\n } catch (Exception e) {\n }\n }", "interface WithDtu {\n /**\n * Sets the total shared DTU for the SQL Azure Database Elastic Pool.\n *\n * @param dtu total shared DTU for the SQL Azure Database Elastic Pool\n * @return The next stage of the definition.\n */\n @Deprecated\n SqlElasticPoolOperations.DefinitionStages.WithCreate withDtu(int dtu);\n }", "@POST\n @Produces({\"application/json\"})\n public String createDb() throws WebApplicationException {\n HibernateEntityManager emAdm = PersistenceManager.getInstance().getEntityManagerAdmin();\n SQLQuery qCreate = emAdm.getSession().createSQLQuery(\"CREATE DATABASE test_jeff template=postgis\");\n try{\n qCreate.executeUpdate();\n }catch(SQLGrammarException e){\n System.out.println(\"Error !!\" + e.getSQLException());\n emAdm.close();\n return e.getSQLException().getLocalizedMessage();\n }\n emAdm.close();\n Map properties = new HashMap();\n //change the connection string to the new db\n properties.put(\"hibernate.connection.url\", \"jdbc:postgresql_postGIS://192.168.12.36:5432/test_jeff\");\n EntityManagerFactory emf = Persistence.createEntityManagerFactory(\"dataPU\", properties); \n return \"Yeah\";\n }", "public abstract void createTables() throws DataServiceException;", "@Override\n\tpublic void create () {\n\n\t}", "@Test\n public void shouldCreateEpiDataGathering() {\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(0));\n\n Case caze = TestEntityCreator.createCase();\n TestEntityCreator.createEpiDataGathering(caze);\n\n // Assure that the burial has been successfully created\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(1));\n }", "Udt createUdt();", "OperacionColeccion createOperacionColeccion();", "public void create(AttributeList attributeList)\n {\n\n super.create(attributeList); \n \n OADBTransaction transaction = getOADBTransaction();\n \n // DEFAULT: supplier id is obtained from the table's sequence\n Number supplierId = transaction.getSequenceValue(\"FWK_TBX_SUPPLIERS_S\");\n setSupplierId(supplierId);\n\n // DEFAULT: start date should be set to sysdate\n setStartDate(transaction.getCurrentDBDate());\n\n \n }", "Definition createDefinition();", "H1 createH1();", "private static void createDatabase(String restrictedUser) throws ArcException {\n\t\tGenericPreparedStatementBuilder query;\n\n\t\t// clean database\n\t\tquery = new GenericPreparedStatementBuilder();\n\t\tquery.append(\"DROP SCHEMA IF EXISTS \" + DataObjectService.ARC_METADATA_SCHEMA + \" CASCADE;\");\n\t\tquery.append(\"DROP SCHEMA IF EXISTS \" + testSandbox1 + \" CASCADE;\");\n\t\tquery.append(\"DROP SCHEMA IF EXISTS public CASCADE;\");\n\t\tUtilitaireDao.get(0).executeRequest(c, query);\n\t\t\n\t\tBddPatcher patcher=new BddPatcher();\n\t\tpatcher.getProperties().setGitCommitId(newVersion);\n\t\tpatcher.getProperties().setDatabaseRestrictedUsername(userWithRestrictedRights);\n\n\t\t// metadata schema creation\n\t\tpatcher.bddScript(c);\n\t\t// sandbox schema creation\n\t\tpatcher.bddScript(c, testSandbox1, testSandbox2, testSandbox8);\n\t\t\n\t}", "Operacion createOperacion();", "private synchronized String processCreate(String query) {\r\n\t\tString[] valuesCommand = query.split(\" \");\r\n\t\tif ( valuesCommand.length != 3 )\r\n\t\t\treturn \"ERROR Bad syntaxe command CREATE - Usage : CREATE id initial_solde\";\r\n\t\tString id = valuesCommand[1];\r\n\t\tif ( this.bank.existAccount(id) ) {\r\n\t\t\treturn \"ERROR Account alwready exist\";\r\n\t\t}\r\n\t\tdouble number = Double.valueOf(valuesCommand[2]);\r\n\t\tthis.bank.createAccount(id, number);\r\n\t\treturn \"OK \" + this.bank.getLastOperation(id);\r\n\t}", "public void createNewSchema() throws SQLException {\n ResultSet resultSet = databaseStatement.executeQuery(\"select count(datname) from pg_database\");\n int uniqueID = 0;\n if(resultSet.next()) {\n uniqueID = resultSet.getInt(1);\n }\n if(uniqueID != 0) {\n uniqueID++;\n databaseStatement.executeQuery(\"CREATE DATABASE OSM\"+uniqueID+\";\");\n }\n }", "int insert(Lbt72TesuryoSumDPkey record);", "@Test(timeout = 4000)\n public void test124() throws Throwable {\n DefaultDBTable defaultDBTable0 = new DefaultDBTable();\n MockPrintWriter mockPrintWriter0 = new MockPrintWriter(\"Illegal column type format: \");\n String[] stringArray0 = new String[9];\n DBUniqueConstraint dBUniqueConstraint0 = new DBUniqueConstraint(defaultDBTable0, \"66i,cw\", true, stringArray0);\n NameSpec nameSpec0 = NameSpec.ALWAYS;\n SQLUtil.renderCreateTable(defaultDBTable0, true, nameSpec0, mockPrintWriter0);\n assertEquals(\"table\", defaultDBTable0.getObjectType());\n }", "int insert(NjProductTaticsRelation record);", "public de.uni_koblenz.jgralabtest.schemas.gretl.pddsl.Chassis createChassis();", "int insert(Disease record);", "private void creates() {\n \tDBPeer.fetchTableColumns();\n \tDBPeer.fetchTableRows();\n \tDBPeer.fetchTableIndexes();\n \t\n for (int i = 0; i < creates.size(); i++) {\n creates.get(i).init();\n }\n \n DBPeer.updateTableColumns();\n DBPeer.updateTableRows();\n DBPeer.updateTableIndexes();\n }", "InstAssignIndex createInstAssignIndex();", "WithCreate withCreationData(CreationData creationData);", "@Before\n public void createAndFillTable() {\n try {\n DBhandler dBhandler = new DBhandler(h2DbConnection);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "DataCfgTableInfo createTableIfNotExists(String dataCfgOid);", "H2 createH2();", "int insert(Lbm83ChohyokanriPkey record);", "HdbSequenceModel createHdbSequenceModel();", "DL createDL();", "For createFor();", "public org.oep.cmon.dao.tlct.model.DanhMucGiayTo create(long id);", "private Builder() {\n super(org.apache.gora.cascading.test.storage.TestRow.SCHEMA$);\n }", "public void createExempleDirect(ExempleDirect exempleDirect) throws DaoException;", "int insertSelective(NjProductTaticsRelation record);", "BIG createBIG();", "private void CreateDataIngestors() throws isisicatclient.IcatException_Exception {\n Grouping dataIngestors = new Grouping();\r\n dataIngestors.name = \"DataIngestors\";\r\n dataIngestors.id = port.create(sessionId, dataIngestors);\r\n dataIngestors = (Grouping) port.search(sessionId, \"Grouping[name='DataIngestors']\").get(0);\r\n\r\n List<String> ingestorTables = port.getEntityNames();\r\n\r\n ingestorTables.remove(\"Facility\");\r\n\r\n List<EntityBaseBean> ingestorRules = new ArrayList<>();\r\n for (String table : ingestorTables) {\r\n Rule rule = new Rule();\r\n rule.grouping = dataIngestors;\r\n rule.crudFlags = \"CRUD\"; //no delete permission for ingestors\r\n rule.what = table;\r\n ingestorRules.add(rule);\r\n }\r\n port.createMany(sessionId, ingestorRules);\r\n }", "H4 createH4();", "int insert(OrgIntegralDeductRule record);", "public void createDataTable() {\r\n Log.d(TAG, \"creating table\");\r\n String queryStr = \"\";\r\n String[] colNames = {Constants.COLUMN_NAME_ACC_X, Constants.COLUMN_NAME_ACC_Y, Constants.COLUMN_NAME_ACC_Z};\r\n queryStr += \"create table if not exists \" + Constants.TABLE_NAME;\r\n queryStr += \" ( id INTEGER PRIMARY KEY AUTOINCREMENT, \";\r\n for (int i = 1; i <= 50; i++) {\r\n for (int j = 0; j < 3; j++)\r\n queryStr += colNames[j] + \"_\" + i + \" real, \";\r\n }\r\n queryStr += Constants.COLUMN_NAME_ACTIVITY + \" text );\";\r\n execute(queryStr);\r\n Log.d(TAG, \"created table\");\r\n try {\r\n ContentValues values = new ContentValues();\r\n values.put(\"id\", 0);\r\n insertRowInTable(Constants.TABLE_NAME, values);\r\n Log.d(TAG,\"created hist table\");\r\n }catch (Exception e){\r\n Log.d(TAG,Constants.TABLE_NAME + \" table already exists\");\r\n }\r\n }", "public static void main(String[] args) {\n\t\tCreateTable createTable = new CreateTable();\n\n\t\tCity city = new City();\n\t\tcity.setId(1);\n\t\tcreateTable.execute(city);\n\n\t\tProvince province = new Province();\n\t\tprovince.setId(1);\n\t\tcreateTable.execute(province);\n\n\t\tTown town = new Town();\n\t\ttown.setId(1);\n\t\tcreateTable.execute(town);\n\n\t\tDetail detail = new Detail();\n\t\tdetail.setId(1);\n\t\tcreateTable.execute(detail);\n\n\t\tOrder order = new Order();\n\t\torder.setId(1);\n\t\tcreateTable.execute(order);\n\n\t\tBrand2 brand2 = new Brand2();\n\t\tbrand2.setId(1);\n\t\tcreateTable.execute(brand2);\n\n\t\tColor color = new Color();\n\t\tcolor.setId(1);\n\t\tcreateTable.execute(color);\n\n\t\tFeature feature = new Feature();\n\t\tfeature.setId(1);\n\t\tcreateTable.execute(feature);\n\n\t\tImg img = new Img();\n\t\timg.setId(1);\n\t\tcreateTable.execute(img);\n\n\t\tSku sku = new Sku();\n\t\tsku.setId(1);\n\t\tcreateTable.execute(sku);\n\n\t\tType type = new Type();\n\t\ttype.setId(1);\n\t\tcreateTable.execute(type);\n\n\t\tAddr addr = new Addr();\n\t\taddr.setId(1);\n\t\tcreateTable.execute(addr);\n\t\tcreateTable.execute(new Buyer());\n\n\t\t// 商品编号 商品名称 图片 新品 热卖 推荐 上下架 操作选项\n\t\tProduct product = new Product();\n\t\tproduct.setId(001);\n\t\tproduct.setNo(UUID.randomUUID().toString());\n\t\tproduct.setName(\"依琦莲2014瑜伽服套装新款 瑜珈健身服三件套 广场舞蹈服装 女瑜伽服送胸垫 长袖紫色\");\n\t\tproduct.setWeight(56.00);\n\t\tproduct.setIsNew(1); // 1是 0否\n\t\tproduct.setIsHot(1);\n\t\tproduct.setCreateTime(new Date());\n\t\tproduct.setCheckUserId(\"\");\n\t\tproduct.setCheckTime(new Date());\n\t\tproduct.setCreateUserId(\"\");\n\t\tproduct.setIsShow(1);\n\t\tproduct.setIsDel(1);\n\t\tproduct.setTypeId(1);\n\t\tproduct.setBrandId(1);\n\t\tproduct.setKeywords(\"\");\n\t\tproduct.setSales(36);\n\t\tproduct.setDescription(\"不是东西\");\n\t\tproduct.setPackageList(\"\");\n\t\tproduct.setFeature(\"头角狰狞\");\n\t\tproduct.setColor(\"blue\");\n\t\tproduct.setSize(\"L\"); // S,L,XXL\n\t\tcreateTable.execute(product);\n\n\t\t// insert into\n\t\t// Product(id,no,name,weight,isNew,isHot,sales,description,feature,size)value(1,\"11xzc3568\",\"依琦莲2014瑜伽服套装新款女瑜伽服送胸垫\n\t\t// 长袖紫色\",36.12,1,1,110,\"不是东西\",\"头角狰狞\",\"blue\",\"L\");\n\n\t\tEmployee employee = new Employee();\n\t\temployee.setId(1);\n\t\tcreateTable.execute(employee);\n\n\t}", "Vaisseau_ordonneeLaPlusHaute createVaisseau_ordonneeLaPlusHaute();", "private void createCheckingAccountsTable() {\n\t\ttry {\n\t\t\tStatement stmt = this.conn.createStatement();\n\t\t\tstmt.executeUpdate(\"CREATE TABLE checkingAccounts \"\n\t\t\t\t\t+ \"(id BIGINT GENERATED ALWAYS AS IDENTITY ( START WITH 1000000001, INCREMENT BY 1 ), \" + \"owner INT, \"\n\t\t\t\t\t+ \"balance DOUBLE, \" + \"intRate DOUBLE, \"\n\t\t\t\t\t+ \"timeCreated BIGINT, \" + \"lastPaidInterest DOUBLE, \"\n\t\t\t\t\t+ \"dateOfLastPaidInterest BIGINT)\");\n\t\t\tconn.commit();\n\t\t\tSystem.out.println(\"Created table checkingAccounts\");\n\t\t} catch (SQLException sqle) {\n\t\t\tSystem.err.println(\"Creation of checkingAccounts table FAILED\");\n\t\t\tSystem.err.println(sqle);\n\t\t}\n\t}", "@Ignore\n @Test\n public void testCreateIndex() {\n System.out.println(\"createIndex\");\n Util.commonServiceIPs=\"127.0.0.1\";\n \n EntityManager em=Util.getEntityManagerFactory(100).createEntityManager();\n EntityManager platformEm = Util.getPlatformEntityManagerFactory().createEntityManager();\n \n Client client = ESUtil.getClient(em,platformEm,1,false);\n \n RuntimeContext.dataobjectTypes = Util.getDataobjectTypes();\n String indexName = \"test000000\";\n try {\n ESUtil.createIndex(platformEm, client, indexName, true);\n }\n catch(Exception e)\n {\n \n }\n \n\n }", "public void createVirtualTable(){\n\n\t\t\n\t\tif(DBHandler.getConnection()==null){\n\t\t\treturn;\n\t\t}\n\n\t\tif(DBHandler.tableExists(name())){\n\t\t\treturn;\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tStatement s = DBHandler.getConnection().createStatement();\n\t\t\ts.execute(\"create virtual table \"+name()+\" using fts4(\"+struct()+\")\");\n\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\tMainFrame.print(e.getMessage());\n\t\t}\n\t}", "public int create (Section section) throws DataAccessException;", "protected abstract void createAttributes();", "private MetaSparqlRequest createInsertMT1() {\n\t\tString sparqlStr = \"\"+\n\t\t\t\t\"PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>\\r\\n\" + \n\t\t\t\t\"PREFIX ub: \"+_ontology+\"\\r\\n\" + \n\t\t\t\t\"INSERT DATA { GRAPH \"+_graph+\" { \"+\n\t\t\t\tbuilderBindInsert\n\t\t\t\t+\" } }\";\n\t\t\n\t\tSparqlObj sparql= new SparqlObj(sparqlStr) ;\n\t\tEndPoint endPointHost= new EndPoint(_protocol,_host,_port,\"/update\");\n\t\tMetaSparqlRequest msr = new MetaSparqlRequest(new SparqlRequest(sparql,endPointHost));\n\t\tmsr.setTripleInsert(createTripleBaseMT1());\n\t\treturn msr;\n\t}", "public void createTables(){\n Map<String, String> name_type_map = new HashMap<>();\n List<String> primaryKey = new ArrayList<>();\n try {\n name_type_map.put(KEY_SINK_NAME, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_SINK_ADDRESS, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_SINK_DETAIL, MyDatabase.TYPE_VARCHAR);\n primaryKey.add(KEY_SINK_ADDRESS);\n myDatabase.createTable(TABLE_SINK, name_type_map, primaryKey, null);\n }catch (MySQLException e){ //数据表已存在\n e.print();\n }\n try {\n name_type_map.clear();\n name_type_map.put(KEY_NODE_NAME, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_PARENT, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_DETAIL, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_ADDRESS,MyDatabase.TYPE_VARCHAR);\n primaryKey.clear();\n primaryKey.add(KEY_NODE_PARENT);\n primaryKey.add(KEY_NODE_ADDRESS);\n myDatabase.createTable(TABLE_NODE, name_type_map, primaryKey, null);\n }catch (MySQLException e){\n e.print();\n }\n\n try {\n name_type_map.clear();\n name_type_map.put(KEY_NODE_ADDRESS, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_PARENT, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_DATA_TIME, MyDatabase.TYPE_TIMESTAMP);\n name_type_map.put(KEY_DATA_VAL, MyDatabase.TYPE_FLOAT);\n primaryKey.clear();\n primaryKey.add(KEY_DATA_TIME);\n primaryKey.add(KEY_NODE_ADDRESS);\n primaryKey.add(KEY_NODE_PARENT);\n myDatabase.createTable(TABLE_DATA, name_type_map, primaryKey, null);\n }catch (MySQLException e) {\n e.print();\n }\n }", "int insert(ec_environment record);", "public void setup() throws SQLException {\n // Create ACARS table\n final String createTableSQL = \"CREATE TABLE IF NOT EXISTS ACARS (\"\n + \"date DATE, time TIME, frequency CHAR(7), \"\n + \"registration VARCHAR(7), flight CHAR(6), \"\n + \"mode CHAR, label CHAR(2), blockId CHAR, msgId CHAR(4), \"\n + \"text VARCHAR(255), \"\n + \"PRIMARY KEY (date, registration, flight, mode, label, blockId, msgId), \"\n + \"INDEX datetime_idx (date, time), \"\n + \"INDEX registration_idx (registration), \"\n + \"INDEX flight_idx (flight)\"\n + \")\";\n\n final Statement createTableStmt = connection.createStatement();\n createTableStmt.execute(createTableSQL);\n }", "TableInstance createTableInstance();", "private String createTableSQL()\n\t{\n\t\tStringBuffer str = new StringBuffer();\n\n\t\t// Keep track of the list of fields\n\t\tList<String> listFields = new ArrayList<String>();\n\n\t\t// Table command\n\t\tstr.append(\"CREATE TABLE \" + getFullPath() + \"( \");\n\t\tstr.append(createStandardGZFields());\n\n\t\t// Loop through all InputFields\n\t\tfor (InputFieldSet fieldSet : function.getInputFieldSets())\n\t\t{\n\t\t\tfor (InputField inputField : fieldSet.getInputFields())\n\t\t\t{\n\t\t\t\t// Phase 2 does not support repeating fields being journalled\n\t\t\t\tif (!Field.isRepeating(inputField))\n\t\t\t\t{\n\t\t\t\t\t// Field\n\t\t\t\t\tString fieldName = SQLToolbox.cvtToSQLFieldName(inputField.getId());\n\n\t\t\t\t\t// add if not yet existing\n\t\t\t\t\tif (listFields.indexOf(fieldName) == -1)\n\t\t\t\t\t{\n\t\t\t\t\t\tstr.append(\", \");\n\t\t\t\t\t\tString fieldDataType = inputField.getDataType();\n\t\t\t\t\t\tString fieldType = SQLToolbox.cvtToSQLFieldType(fieldDataType, inputField.getSize(), inputField\n\t\t\t\t\t\t\t\t\t\t.getDecimals());\n\t\t\t\t\t\tString fieldDefault = SQLToolbox.cvtToSQLDefault(fieldDataType);\n\t\t\t\t\t\tstr.append(fieldName + \" \" + fieldType + \" \" + \" not null default \" + fieldDefault);\n\t\t\t\t\t\tlistFields.add(fieldName);\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// End\n\t\tstr.append(\" ) \");\n\t\t// RCDFMT \" + getJournalRcdName());\n\n\t\treturn str.toString();\n\t}", "public org.oep.cmon.dao.dvc.model.ThuTuc2GiayTo create(long id);" ]
[ "0.6137034", "0.6020893", "0.5953024", "0.5871004", "0.58520657", "0.5824135", "0.5783128", "0.5781292", "0.5779935", "0.5768486", "0.57018137", "0.569296", "0.5677845", "0.566757", "0.56516117", "0.5639093", "0.56084186", "0.5601316", "0.55988264", "0.5587084", "0.5586368", "0.5579563", "0.55671966", "0.5562383", "0.55537105", "0.55511224", "0.5550222", "0.5547236", "0.55009055", "0.54889506", "0.5482187", "0.54807544", "0.5465443", "0.5454913", "0.54468626", "0.5434606", "0.5426381", "0.54197514", "0.5414243", "0.54073745", "0.5402808", "0.5390703", "0.5390526", "0.5390526", "0.5390526", "0.538945", "0.53878444", "0.53796816", "0.5375914", "0.53748345", "0.53730184", "0.5365049", "0.5364833", "0.5364805", "0.536257", "0.5361029", "0.5360632", "0.53598887", "0.5350994", "0.5339128", "0.5338244", "0.53296435", "0.5321595", "0.5320979", "0.53194505", "0.5318698", "0.5313326", "0.53126156", "0.53099495", "0.5306004", "0.5300889", "0.5293614", "0.529321", "0.52883255", "0.5281361", "0.5281042", "0.527843", "0.5270345", "0.526982", "0.52697945", "0.52608657", "0.5259804", "0.52563196", "0.5249798", "0.5247741", "0.5239433", "0.5224713", "0.5224455", "0.5222238", "0.5221105", "0.521778", "0.5213034", "0.5211071", "0.52098143", "0.5208245", "0.5207931", "0.52069414", "0.5205663", "0.52015704", "0.5196995", "0.5195414" ]
0.0
-1
TODO Autogenerated method stub
public ctCurso get_ctPuesto(int id) throws RunTime4GLException, SystemErrorException, Open4GLException, IOException, SQLException { BooleanHolder oplResultado = new BooleanHolder(); StringHolder opcTexto = new StringHolder(); ResultSetHolder tt_ctCurso = new ResultSetHolder(); Connection conexion = DBConexion.getConnection(); AppServer app = new AppServer(conexion); ctCurso obj = new ctCurso(); try { app.as_ctCurso_get("SISIMB", id, tt_ctCurso, oplResultado, opcTexto); ResultSet rs_tt_ctCurso = tt_ctCurso.getResultSetValue(); while (rs_tt_ctCurso.next()) { obj.setiIdCurso(rs_tt_ctCurso.getInt("iIdCurso")); obj.setcNombre(rs_tt_ctCurso.getString("cNombre")); obj.setiMinCup(rs_tt_ctCurso.getInt("iMinCup")); obj.setiMaxCup(rs_tt_ctCurso.getInt("iMaxCup")); obj.setDePrecio(rs_tt_ctCurso.getBigDecimal("dePrecio")); obj.setDeIva(rs_tt_ctCurso.getBigDecimal("deIva")); obj.setDeTotal(rs_tt_ctCurso.getBigDecimal("deTotal")); obj.setId(rs_tt_ctCurso.getBytes("id")); } } catch (Exception ex) { System.err.println(ex); } finally { app._release(); DBConexion.closeConnection(conexion); } return obj; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
On selecting a spinner item
@Override public void onItemSelected(AdapterView<?> parent, View view, int position, long id) { String item = parent.getItemAtPosition(position).toString(); switch (item){ case "Alabama": url = "https://driving-tests.org/alabama/al-dmv-drivers-handbook-manual/"; break; case "Alaska": url = "https://driving-tests.org/alaska/ak-dmv-drivers-handbook-manual/"; break; case "Arizona": url = "https://driving-tests.org/arizona/az-dmv-drivers-handbook-manual/"; break; case "Arkansas": url = "https://driving-tests.org/arkansas/ar-dmv-drivers-handbook-manual/"; break; case "California": url = "https://driving-tests.org/california/ca-dmv-drivers-handbook-manual/"; break; case "Colorado": url = "https://driving-tests.org/colorado/co-dmv-drivers-handbook-manual/"; break; case "Connecticut": url = "https://driving-tests.org/connecticut/ct-dmv-drivers-handbook-manual/"; break; case "Delaware": url = "https://driving-tests.org/delaware/de-dmv-drivers-handbook-manual/"; break; case "District of Columbia": url = "https://driving-tests.org/district-columbia/dc-dmv-drivers-handbook-manual/"; break; case "Florida": url = "https://driving-tests.org/florida/fl-dmv-drivers-handbook-manual/"; break; case "Georgia": url = "https://driving-tests.org/georgia/ga-dds-drivers-handbook-manual/"; break; case "Hawaii": url = "https://driving-tests.org/hawaii/hi-dmv-drivers-handbook-manual/"; break; case "Idaho": url = "https://driving-tests.org/idaho/id-dmv-drivers-handbook-manual/"; break; case "Illinois": url = "https://driving-tests.org/illinois/il-dmv-drivers-handbook-manual/"; break; case "Indiana": url = "https://driving-tests.org/indiana/in-bmv-drivers-handbook-manual/"; break; case "Iowa": url = "https://driving-tests.org/iowa/ia-dmv-drivers-handbook-manual/"; break; case "Kansas": url = "https://driving-tests.org/kansas/ks-dmv-drivers-handbook-manual/"; break; case "Kentucky": url = "https://driving-tests.org/kentucky/ky-dmv-drivers-handbook-manual/"; break; case "Louisiana": url = "https://driving-tests.org/louisiana/la-dmv-drivers-handbook-manual/"; break; case "Maine": url = "https://driving-tests.org/maine/me-dmv-drivers-handbook-manual/"; break; case "Maryland": url = "https://driving-tests.org/maryland/md-mva-drivers-handbook-manual/"; break; case "Massachusetts": url = "https://driving-tests.org/massachusetts/ma-rmv-drivers-handbook-manual/"; break; case "Michigan": url = "https://driving-tests.org/michigan/mi-dmv-drivers-handbook-manual/"; break; case "Minnesota": url = "https://driving-tests.org/minnesota/mn-dmv-drivers-handbook-manual/"; break; case "Mississippi": url = "https://driving-tests.org/mississippi/ms-dmv-drivers-handbook-manual/"; break; case "Missouri": url = "https://driving-tests.org/missouri/mo-dor-drivers-handbook-manual/"; break; case "Montana": url = "https://driving-tests.org/montana/mt-dmv-drivers-handbook-manual/"; break; case "Nebraska": url = "https://driving-tests.org/nebraska/ne-dmv-drivers-handbook-manual/"; break; case "Nevada": url = "https://driving-tests.org/nevada/nv-dmv-drivers-handbook-manual/"; break; case "New Hampshire": url = "https://driving-tests.org/new-hampshire/nh-dmv-drivers-handbook-manual/"; break; case "New Jersey": url = "https://driving-tests.org/new-jersey/nj-mvc-drivers-handbook-manual/"; break; case "New Mexico": url = "https://driving-tests.org/new-mexico/nm-mvd-drivers-handbook-manual/"; break; case "New York": url = "https://driving-tests.org/new-york/ny-dmv-drivers-handbook-manual/"; break; case "North Carolina": url = "https://driving-tests.org/north-carolina/nc-dmv-drivers-handbook-manual/"; break; case "North Dakota": url = "https://driving-tests.org/north-dakota/nd-dmv-drivers-handbook-manual/"; break; case "Ohio": url = "https://driving-tests.org/ohio/oh-bmv-drivers-handbook-manual/"; break; case "Oklahoma": url = "https://driving-tests.org/oklahoma/ok-dmv-drivers-handbook-manual/"; break; case "Oregon": url = "https://driving-tests.org/oregon/or-dmv-drivers-handbook-manual/"; break; case "Pennsylvania": url = "https://driving-tests.org/pennsylvania/pa-dot-drivers-handbook-manual/"; break; case "Rhode Island": url = "https://driving-tests.org/rhode-island/ri-dmv-drivers-handbook-manual/"; break; case "South Carolina": url = "https://driving-tests.org/south-carolina/sc-dmv-drivers-handbook-manual/"; break; case "South Dakota": url = "https://driving-tests.org/south-dakota/sd-dmv-drivers-handbook-manual/"; break; case "Tennessee": url = "https://driving-tests.org/tennessee/tn-dmv-drivers-handbook-manual/"; break; case "Texas": url = "https://driving-tests.org/texas/tx-dmv-drivers-handbook-manual/"; break; case "Utah": url = "https://driving-tests.org/utah/ut-dmv-drivers-handbook-manual/"; break; case "Vermont": url = "https://driving-tests.org/vermont/vt-dmv-drivers-handbook-manual/"; break; case "Virginia": url = "https://driving-tests.org/virginia/va-dmv-drivers-handbook-manual/"; break; case "Washington": url = "https://driving-tests.org/washington/wa-dol-drivers-handbook-manual/"; break; case "West Virginia": url = "https://driving-tests.org/west-virginia/wv-dmv-drivers-handbook-manual/"; break; case "Wisconsin": url = "https://driving-tests.org/wisconsin/wi-dmv-drivers-handbook-manual/"; break; case "Wyoming": url = "https://driving-tests.org/wyoming/wy-dmv-drivers-handbook-manual/"; break; default: break; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {\n }", "@Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {\n }", "@Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View v, int position, long id)\n {\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int pos, long id) {\n spinnerItemSelected = parent.getItemAtPosition(pos).toString();\n }", "void onItemSelected();", "void onItemSelected();", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position,\n long id) {\n\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view,\n int position, long id) {\n }", "@Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int position, long id)\n {\n }", "public void onItemSelected(AdapterView<?> parent, View view,\n int pos, long id) {\n\n }", "public void onItemSelected(int id);", "@Override\n\t\tpublic void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n\n\t\t}", "@Override\n public void onItemSelected(AdapterView<?> arg0, View arg1,\n int arg2, long arg3) {\n\n\n }", "public void onItemSelected(int position);", "@Override\n\t\tpublic void onItemSelected(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\tlong arg3) {\n\t\t\t\n\t\t}", "@Override\n public void onItemSelected(AdapterView<?> arg0, View arg1, int arg2,\n long arg3) {\n\n }", "@Override\n\tpublic void onItemSelected(AdapterView<?> parent, View view, int pos,\n\t\t\tlong id) {\n\t\t\n\t\t\n\t}", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n item = parent.getItemAtPosition(position).toString();\n isSelected = true;\n\n // Showing selected spinner item\n //Toast.makeText(parent.getContext(), \"Selected: \" + item, Toast.LENGTH_LONG).show();\n }", "public void onItemSelected(AdapterView<?> parent, View view,\n int pos, long id) {\n }", "public void onItemSelected(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n userType = (int) arg3;\n /* 将mySpinner 显示*/\n arg0.setVisibility(View.VISIBLE);\n }", "public void onItemSelected(String id);", "public void onItemSelected(String id);", "public void onItemSelected(String id);", "public void onItemSelected(String id);", "public void onItemSelected(String id);", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n SpinnerValue = (String)spinner.getSelectedItem();\n }", "@Override\n public void onItemSelected(AdapterView<?> arg0, View arg1, int position,long id) {\n\n\n\n\n }", "@Override\n\t\t\tpublic void onItemSelected(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long id) {\n\t\t\t}", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n String item = parent.getItemAtPosition(position).toString();\n\n // Showing selected spinner item\n Toast.makeText(parent.getContext(), \"Selected: \" + item, Toast.LENGTH_LONG).show();\n\n }", "@Override\n public void onItemSelected(View view, int position) {\n }", "@Override\n\tpublic void onItemSelected(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\tlong arg3) {\n\n\t}", "@Override\n\tpublic void onItemSelected(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\tlong arg3) {\n\n\t}", "@Override\n public void onItemSelected(AdapterView<?> arg0, View arg1,\n int arg2, long arg3) {\n String mselection = mSpinner.getSelectedItem().toString();\n Toast.makeText(getApplicationContext(), \"selected \" + mselection, 30).show();\n /**** do your code*****/\n\n if (mselection.equals(\"New Location\")){\n Intent i = new Intent(getApplicationContext(), NewLocation.class);\n startActivity(i);\n }\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n if (position != mClickTypeSelection) {\n setActionSpinner(true, position);\n }\n }", "public void onItemSelected(Long id);", "void onItemSelected(Bundle args);", "@Override\r\n public void onItemChosen(View labelledSpinner, AdapterView<?> adapterView, View itemView, int position, long id) {\r\n String selectedText = adapterView.getItemAtPosition(position).toString();\r\n switch (labelledSpinner.getId()) {\r\n case R.id.spinner_planets:\r\n //Toast.makeText(getActivity(), \"Selected: \" + selectedText, Toast.LENGTH_SHORT).show();\r\n selectTextSpinner = selectedText;\r\n break;\r\n // If you have multiple LabelledSpinners, you can add more cases here\r\n }\r\n }", "public void onItemSelected(AdapterView<?> parent, View v, \n\t int pos, long id) {\n\t }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n String item = (String) parent.getItemAtPosition(position);\n selectedSports = item;\n Log.d(\"testing Spinner\", \"Spinner item selected is: \" + selectedSports + \" \" + item.toString());\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view,\n int pos, long id) {\n choice=pos;\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n item = parent.getItemAtPosition(position).toString();\n //beaconselected.setText(item);\n\n // Showing selected spinner item\n if(!item.equals(\"select a beacon\")){\n //Toast.makeText(parent.getContext(), \"Selected: \" + item, Toast.LENGTH_LONG).show();\n x++;\n beaconManager.stopRanging(beaconRegion);\n t=0;\n //Toast.makeText(this, \"Search stopped\", Toast.LENGTH_SHORT).show();\n }\n\n\n\n }", "@Override\n public void onItemSelected(AdapterView<?> adapterView,\n View view, int i, long l) {\n mSpinnerLabel = adapterView.getItemAtPosition(i).toString();\n showText(view);\n }", "@Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {\n brand_id = String.valueOf(brand_list.get(i).getBrandId());\n brandName = brand_list.get(i).getBrand_name();\n\n Log.d(\"fsdklj\", brand_id + brandName);\n\n hitSpinnerSeries(brand_id);\n\n }", "public void addListenerOnSpinnerItemSelection() {\n spinner1.setOnItemSelectedListener(new CustomOnItemSelectedListener());\n }", "@Override\n public void onItemSelected(AdapterView<?> adapterView, View view,\n int position, long id) {\n //So this code is called when ever the spinner is clicked\n //Brug position til at populate editQty med indhold fra QtySpinner\n editQty.setText(\"\");\n editQty.clearFocus();\n }", "public void onItemSelected(AdapterView<?> parent, View view, \r\n int pos, long id) {\n\t\tString word = (String) parent.getItemAtPosition(pos);\r\n\t\tif (!word.equalsIgnoreCase(\"select a word from this list\")) {\r\n\t\t\tToast.makeText(this, \"You selected \\\"\" + parent.getItemAtPosition(pos) + \"\\\" from the Spinner\", Toast.LENGTH_LONG).show();\r\n\t\t}\r\n }", "@Override\n public void onItemSelected(MaterialSpinner view, int position, long id, Object item) {\n\n if(item.equals(\"Other\")){\n othereditText.setVisibility(View.VISIBLE);\n serviceSelected = othereditText.getText().toString().trim();\n }else{\n serviceSelected = item+\"\";\n }\n }", "@Override\n public void onItemSelected(AdapterView<?> arg0, View arg1,\n int pos, long arg3) {\n societyName = String.valueOf(societyNameSpinner\n .getSelectedItem());\n\n }", "@Override\n public void onItemSelected(AdapterView<?> parent2, View view2, int position2, long id2) {\n }", "public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n String item = parent.getItemAtPosition(position).toString();\n\n // Showing selected spinner item\n Toast.makeText(parent.getContext(), \"Selected: \" + item, Toast.LENGTH_LONG).show();\n }", "public void onItemSelected(String studentSelected);", "@Override\n\t\t\t\t\tpublic void onItemSelected(AdapterView<?> arg0, View arg1,\n\t\t\t\t\t\t\tint arg2, long arg3) {\n\t\t\t\t\t\tint position = gameSpinner.getSelectedItemPosition();\n\t\t\t\t\t\tif (macGames[+position] != \"-- Choose sport --\") {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t/*Toast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\t\t\t\"You have selected \" + macGames[+position],\n\t\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();*/\n\t\t\t\t\t\t\tchosenGame = macGames[+position];\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "private void spinner() {\n ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(this,\n R.array.planets_array, R.layout.simple_spinner_item_new);\n// Specify the layout to use when the list of choices appears\n adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n// Apply the adapter to the spinner\n// dropDownViewTheme.\n planetsSpinner.setAdapter(adapter);\n planetsSpinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n Object itemAtPosition = parent.getItemAtPosition(position);\n Log.d(TAG, \"onItemSelected: \" + itemAtPosition);\n\n String[] stringArray = getResources().getStringArray(R.array.planets_array);\n Toast.makeText(DialogListActivity.this, \"选择 \" + stringArray[position], Toast.LENGTH_SHORT).show();\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n Toast.makeText(DialogListActivity.this, \"未选择\", Toast.LENGTH_SHORT).show();\n }\n });\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position,\n long id) {\n nama_dokter2 = parent.getItemAtPosition(position).toString();\n\n // Showing selected spinner item\n Toast.makeText(parent.getContext(), \"You selected: \" + nama_dokter2,\n Toast.LENGTH_LONG).show();\n\n }", "@Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {\n\n // To retrieve the user's selected item in the Spinner, use getItemAtPosition().\n String spinnerLabel = adapterView.getItemAtPosition(i).toString();\n displayToast(spinnerLabel);\n }", "@Override\n\t\t\tpublic void onItemSelected(AdapterView<?> arg0, View arg1,\n\t\t\t\t\tint position, long arg3) {\n\t\t\t\tif (position == 1) {\n\t\t\t\t\t// show it\n\t\t\t\t\tsubjectSpinner.setVisibility(View.VISIBLE);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t// hide it\n\t\t\t\t\tsubjectSpinner.setVisibility(View.GONE);\n\t\t\t\t}\n\t\t\t}", "@Override\n public void onItemSelected(AdapterView<?> parent3, View view3, int position3, long id3) {\n }", "public void onItemSelected(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\tlong arg3) {\n\t\t\n\t}", "public void onNothingSelected(AdapterView<?> parent) {\n // Toast.makeText(getApplicationContext(), \"nada en el spinner\", Toast.LENGTH_LONG).show();\n }", "@Override\r\n\t\t\tpublic void onItemSelected(AdapterView<?> parent, View view, int pos, long id) {\n\t\t\t\thasilSpinJurusan = parent.getItemAtPosition(pos).toString();\r\n\t\t\t\tString[] parts = hasilSpinJurusan.split(\"--\");\r\n\t\t\t\tString kode = parts[0];\r\n\t\t\t\tkodeJurusan=kode;\r\n\t\t\t}", "@Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {\n id = i;\n }", "@RequiresApi(api = Build.VERSION_CODES.M)\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n TextView selectedItemTV = (TextView) parent.getSelectedView();\n if(selectedItemTV != null)\n selectedItemTV.setTextAppearance(R.style.SpinnerSelectedItem);\n }", "public void onItemSelected(AdapterView<?> adapterView, \n\t\t View view, int i, long l) {\n\t\t \tString selected2 = colorGraySpin.getSelectedItem().toString();\n\t\t\t Toast.makeText(PainActivity.this,\"You Selected : \"\n\t\t\t + selected2,Toast.LENGTH_SHORT).show(); \n\t\t if (selected2.equals(\"Colorscale\")) {\n\t\t \t setColorBrush(false);\n\t\t } else{\n\t\t \t setColorBrush(true);\n\t\t }\n\t\t \t\n\t\t }", "@Override\n public void onClick(View v)\n {\n mySpinner.performClick();\n int getPosition = (Integer) v.getTag();\n\n toggleSelection(getPosition);\n\n\n notifyDataSetChanged();\n\n /**\n * if clicked position is one\n * that means you want clear all select item in list\n */\n /* if (getPosition == 1)\n {\n clearList();\n }\n */\n /**\n * if clicked position is two\n * that means you want select all item in list\n */\n /* else if (getPosition == 2)\n {\n fillList();\n }*/\n }", "void onItemSelected(int index, T item) throws RemoteException;", "public void onItemSelected(AdapterView<?> parent, View view, int position, long id) \r\n\t{\n\t\tString food = parent.getItemAtPosition(position).toString();\r\n\t\t\r\n // Showing selected spinner item\r\n Toast.makeText(parent.getContext(), \"You selected: \" + food,\r\n Toast.LENGTH_LONG).show();\r\n\t\t\r\n\t}", "@Override\n\t\t\tpublic void onItemSelected(AdapterView<?> parentView, View selectedItemView, int position, long id){\n\t\t\t\tLog.v(LOG_TAG, \"Maze generation algorithm selection: \" + spinner.getSelectedItem().toString());\n\t\t\t}", "@Override\n public void onItemSelected(AdapterView<?> parent, View view,\n int position, long id) {\n\n\n try{\n String s = \"\";\n Log.e(\"mytag\",\"(String) parent.getItemAtPosition(position):\"+(String) parent.getItemAtPosition(position).toString().trim());\n if (parent.getItemAtPosition(position).toString().trim().equals(\"בחר\")){\n s = \"-1\";\n }else{\n s = String.valueOf(ctype_map.get(parent.getItemAtPosition(position).toString().trim()).getCtypeID());\n }\n setCcustomerSpinner(s);\n }catch(Exception e){\n helper.LogPrintExStackTrace(e);\n }\n Log.e(\"mytag\", (String) parent.getItemAtPosition(position));\n //statusID = db.getCallStatusByCallStatusName((String) parent.getItemAtPosition(position)).getCallStatusID();\n //statusName = db.getCallStatusByCallStatusName((String) parent.getItemAtPosition(position)).getCallStatusName();\n //Toast.makeText(getApplication(), \"status: \" + s, Toast.LENGTH_LONG).show();\n //Log.v(\"item\", (String) parent.getItemAtPosition(position));\n }", "@Override\n\tpublic void onItemSelected(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\tlong arg3) {\n\t\tsearchText = spinner1.getSelectedItem().toString();\n\t\tSystem.out.println(\"Selected option = \"+searchText);\n\t\t\n\t}", "public void onItemSelected(AdapterView<?> parent, View view, int position,\n long id) {\n nama_pasien2 = parent.getItemAtPosition(position).toString();\n\n // Showing selected spinner item\n Toast.makeText(parent.getContext(), \"You selected: \" + nama_pasien2,\n Toast.LENGTH_LONG).show();\n\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n String item = parent.getItemAtPosition(position).toString();\n tuning = position;\n setUpDisplay();\n\n // Showing selected spinner item\n if (tuner1 == 3) {\n Toast.makeText(TunerActivity.this, \"\" + item, Toast.LENGTH_LONG).show();\n }\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n switch (parent.getId()) {\n case R.id.fromspinner:\n fromitem = parent.getItemAtPosition(position)\n .toString().replaceAll(\" \", \"_\").toLowerCase();\n break;\n case R.id.tospinner:\n toitem = parent.getItemAtPosition(position)\n .toString().replaceAll(\" \", \"_\").toLowerCase();\n break;\n }\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n //NOTE: Position 0 is reserved for the manually added Prompt\n if (position > 0) {\n //Retrieving the Category Name of the selection\n mCategoryLastSelected = parent.getItemAtPosition(position).toString();\n //Calling the Presenter method to take appropriate action\n //(For showing/hiding the EditText field of Category OTHER)\n mPresenter.onCategorySelected(mCategoryLastSelected);\n } else {\n //On other cases, reset the Category Name saved\n mCategoryLastSelected = \"\";\n }\n }", "@Override\n\t\t\t\t\tpublic void onItemSelected(AdapterView<?> arg0, View arg1,\n int arg2, long arg3) {\n\t\t\t\t\t\tString sel = spinner.getSelectedItem().toString();\n\t\t\t\t\t\tLog.e(\"PowerSocketSensitive\", sel + \"\");\n\t\t\t\t\t}", "@Override\n\t\tpublic void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n\t\t\tListView listView = (ListView) parent;\n\t\t\tString item = (String) listView.getSelectedItem();\n//\t\t\tToast.makeText(SearchGroupActivity.this, \"onItemSelected = \" + item, Toast.LENGTH_LONG).show();\n\t\t}", "@Override\n\t\t\tpublic void onItemSelected(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long id) {\n\t\t\t\tif (spinner3.getSelectedItem().equals(\"Sedentary\")) {\n\t\t\t\t\tactive = 1.2;\n\t\t\t\t} else if (spinner3.getSelectedItem().equals(\"Lightly Active\")) {\n\t\t\t\t\tactive = 1.375;\n\t\t\t\t} else if (spinner3.getSelectedItem().equals(\n\t\t\t\t\t\t\"Moderately Active\")) {\n\t\t\t\t\tactive = 1.55;\n\t\t\t\t} else if (spinner3.getSelectedItem().equals(\"Highly Active\")) {\n\t\t\t\t\tactive = 1.725;\n\t\t\t\t} else if (spinner3.getSelectedItem().equals(\"Extra Active\")) {\n\t\t\t\t\tactive = 1.9;\n\t\t\t\t}\n\t\t\t}", "private void spinnerAction() {\n Spinner spinnerphonetype = (Spinner) findViewById(R.id.activity_one_phonetype_spinner);//phonetype spinner declaration\n ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(this,\n R.array.phone_spinner, android.R.layout.simple_spinner_item); //create the spinner array\n adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); //set the drop down function\n spinnerphonetype.setAdapter(adapter); //set the spinner array\n }", "@Override\n public void onItemSelected(AdapterView<?> parent4, View view4, int position4, long id4) {\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View spinnerView, int position,\n long spinnerId) {\n\n try {\n\n if (parent.getId() == R.id.aptNameSpinner) {\n\n if (SAConstants.OTHER.equals(apartmentNameSpinner.getItemAtPosition(position).toString())) {\n DialogFragment apartmentName = new NewApartmentDialog();\n apartmentName.show(getSupportFragmentManager(), \"\");\n }\n } else if (parent.getId() == R.id.aptTypeSpinnerSearch || parent.getId() == R.id.universityNamesSpinner) {\n addApartmentNames();\n }\n\n\n } catch (Exception e) {\n ErrorReporting.logReport(e);\n }\n\n }", "private void spinner() {\n spn_semester.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n id_database = position;\n if(spn_semester.getSelectedItemPosition() == 0){\n listadaptor1();\n }\n else if(spn_semester.getSelectedItemPosition() == 1){\n listadaptor2();\n }\n else{\n listadaptor3();\n }\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n //Nothing\n }\n });\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n if (position != mHoldTypeSelection) {\n setActionSpinner(false, position);\n }\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n item = parent.getItemAtPosition(position).toString();\n\n // Showing selected spinner item\n //Toast.makeText(parent.getContext(), \"Selected: \" + item, Toast.LENGTH_LONG).show();\n /*Intent people_intent= new Intent();\n people_intent.putExtra(\"people\",item);\n setResult(RESULT_OK,people_intent);\n finish();*/\n }", "public void onItemSelected(AdapterView<?> adapterView, \n\t\t View view, int i, long l) {\n\t\t \tString selected = spinner.getSelectedItem().toString();\n\t\t\t Toast.makeText(PainActivity.this,\"You Selected : \"\n\t\t\t + selected +\" brush \",Toast.LENGTH_SHORT).show(); \n\t\t \n\t\t \tif (selected.equals(\"Small\")) {\n\t\t \t\tdrawPaint.setStrokeWidth(20);\n\t\t \t} else if (selected.equals(\"Medium\")){\n\t\t \t\tdrawPaint.setStrokeWidth(40);\n\t\t \t} else {\n\t\t \t\tdrawPaint.setStrokeWidth(60);\n\t\t \t}\n\t\t }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n String item = parent.getItemAtPosition(position).toString();\n ArrayList<Integer> list = map.get(item);\n a = list.get(0);\n b = list.get(1);\n setupChart();\n // Showing selected spinner ite\n Toast.makeText(parent.getContext(), \"Selected: \" + item, Toast.LENGTH_LONG).show();\n }", "@Override\n public void onItemSelected(AdapterView<?> parent5, View view5, int position5, long id5) {\n }", "@Override\n public void onItemSelected(AdapterView<?> adapter, View v,\n int position, long id) {\n mappos = position;\n findmapinfo(position , adapter.getItemAtPosition(position).toString());\n \n // Showing selected spinner item\n \n }", "private void itemtypeSpinner() {\n ArrayAdapter<CharSequence> staticAdapter = ArrayAdapter\n .createFromResource(getContext(), R.array.select_array,\n android.R.layout.simple_spinner_item);\n\n // Specify the layout to use when the list of choices appears\n staticAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n\n // Apply the adapter to the spinner\n mItemTypeSpinnerA2.setAdapter(staticAdapter);\n\n mItemTypeSpinnerA2.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view,\n int position, long id) {\n String itemtypeText = (String) parent.getItemAtPosition(position);\n if (itemtypeText.equals(\"Mobile Phones\")) {\n\n mInputLayoutSerialNoA2.setVisibility(View.VISIBLE);\n mInputLayoutSerialNoA2.setClickable(true);\n mInputLayoutItemImeiA2.setVisibility(View.VISIBLE);\n mInputLayoutItemImeiA2.setClickable(true);\n\n\n } else if (itemtypeText.equals(\"Laptops\")) {\n\n mInputLayoutSerialNoA2.setVisibility(View.VISIBLE);\n mInputLayoutSerialNoA2.setClickable(true);\n mInputLayoutItemImeiA2.setVisibility(View.GONE);\n mInputLayoutItemImeiA2.setClickable(false);\n\n } else {\n mInputLayoutSerialNoA2.setVisibility(View.GONE);\n mInputLayoutSerialNoA2.setClickable(false);\n mInputLayoutItemImeiA2.setVisibility(View.GONE);\n mInputLayoutItemImeiA2.setClickable(false);\n }\n\n\n\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n mItemTypeSpinnerA2.getItemAtPosition(0);\n mInputLayoutSerialNoA2.setVisibility(View.GONE);\n mInputLayoutSerialNoA2.setClickable(false);\n mInputLayoutItemImeiA2.setVisibility(View.GONE);\n mInputLayoutItemImeiA2.setClickable(false);\n\n\n }\n });\n\n }", "@Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int index, long id) {\n // Take action depending on what was clicked\n switch (adapterView.getId()) {\n case R.id.year_spinner:\n try {\n year = Integer.parseInt((String) yearSpinner.getSelectedItem());\n populateMakeSpinner(year);\n newCar.setYear(year);\n Log.d(\"year_value\", Integer.toString(year));\n } catch (Exception e) { e.printStackTrace(); }\n break;\n case R.id.make_spinner:\n try {\n make = (String) makeSpinner.getSelectedItem();\n populateModelSpinner(make, year);\n newCar.setMake(make);\n Log.d(\"make_value\", make);\n } catch (Exception e) { e.printStackTrace(); }\n break;\n case R.id.model_spinner:\n try {\n model = (String) modelSpinner.getSelectedItem();\n populateTrimSpinner(model, make, year);\n newCar.setModel(model);\n Log.d(\"model_value\", model);\n } catch (Exception e) { e.printStackTrace(); }\n break;\n case R.id.trim_spinner:\n try {\n trim = (String) trimSpinner.getSelectedItem();\n int modelID = trimMap.get(trim);\n newCar.setTrim(trim);\n updateCarInfo(modelID);\n } catch (Exception e) { e.printStackTrace(); }\n break;\n }\n }", "@Override\r\n\tpublic boolean onNavigationItemSelected(int itemPosition, long itemId) {\r\n\t\t// Action to be taken after selecting a spinner item\r\n\t\treturn false;\r\n\t}", "@Override\n\t\t\tpublic void onItemSelected(AdapterView<?> arg0, View arg1,\n\t\t\t\t\tint arg2, long arg3) {\n\t\t\t\tindex1=arg2;\n\t\t\t\ttype0 = spn1.get(arg2).getType_id();\n\t\t\t\ttype_name = spn1.get(arg2).getType_name();\n\t\t\t\tHttpRequest(1, APIURL.CHECK.ADDARTICLE1, spn1.get(arg2)\n\t\t\t\t\t\t.getType_id(), \"\");\n\t\t\t\tspn3.clear();\n\t\t\t\tspinnerAdapter3.setList(spn3);\n\t\t\t\tspinnerAdapter3.notifyDataSetChanged();\n\t\t\t\tspn4.clear();\n\t\t\t\tspinnerAdapter4.setList(spn4);\n\t\t\t\tspinnerAdapter4.notifyDataSetChanged();\n\t\t\t\tspn5.clear();\n\t\t\t\tspinnerAdapter5.setList(spn5);\n\t\t\t\tspinnerAdapter5.notifyDataSetChanged();\n\t\t\t}", "@Override\n public void onItemSelected(AdapterView<?> arg0, View arg1,\n int arg2, long arg3) {\n actionType = String.valueOf(actionTypeSpiner\n .getSelectedItem());\n if (actionType == \"Upload\"\n || actionType.equals(\"Upload\")) {\n viewLay.setVisibility(View.GONE);\n action = true;\n fileNameTxt.setVisibility(View.GONE);\n doOpen();\n } else if (actionType == \"View\"\n || actionType.equals(\"View\")) {\n action = false;\n fileNameTxt.setVisibility(View.GONE);\n submitTxt.setEnabled(true);\n }\n }", "public void onItemSelected(AdapterView<?> parent, View view,\n int pos, long id) {\n\n if(parent.getId()==R.id.Branch_Spinner)\n mNotification.setBranch((String)parent.getItemAtPosition(pos));\n\n if(parent.getId()==R.id.Year_Spinner)\n mNotification.setYear((String)parent.getItemAtPosition(pos));\n\n if(parent.getId()==R.id.Section_Spinner)\n mNotification.setSection((String)parent.getItemAtPosition(pos));\n\n\n\n\n\n\n }", "public void onItemSelected(AdapterView<?> parent, View view, int pos, long id){\n this.mAssessmentType = parent.getItemAtPosition(pos).toString();\n }", "@Override\r\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n switch (position) {\r\n case 0:\r\n mode = 1;\r\n //mode = spinner.getSelectedItem().toString();\r\n break;\r\n case 1:\r\n mode = 2;\r\n //mode = spinner.getSelectedItem().toString();\r\n break;\r\n case 2:\r\n mode = 3;\r\n //mode = spinner.getSelectedItem().toString();\r\n break;\r\n }\r\n }" ]
[ "0.8101937", "0.8101937", "0.80715865", "0.8067969", "0.8067969", "0.8045854", "0.8045854", "0.8045854", "0.8044525", "0.8044457", "0.803459", "0.803459", "0.80322504", "0.8012349", "0.80110997", "0.801041", "0.799324", "0.7973094", "0.79713035", "0.79694265", "0.7965614", "0.7954492", "0.7920556", "0.7918062", "0.7908752", "0.7905685", "0.78892624", "0.7877675", "0.7877675", "0.7877675", "0.7877675", "0.7877675", "0.7875738", "0.787132", "0.78684884", "0.7849793", "0.7814666", "0.78009266", "0.78009266", "0.7794192", "0.7784938", "0.7766549", "0.7748782", "0.7724414", "0.7706388", "0.7689084", "0.7667053", "0.7660131", "0.7615996", "0.75019306", "0.7496903", "0.74761087", "0.74678165", "0.74664557", "0.7455748", "0.7432057", "0.7430355", "0.7426232", "0.7418576", "0.74153507", "0.74152684", "0.7413444", "0.7410379", "0.7403035", "0.7401089", "0.7370901", "0.7351161", "0.735023", "0.7346181", "0.73417604", "0.73407406", "0.73398614", "0.73214847", "0.73075163", "0.73056406", "0.72797984", "0.72780734", "0.7276099", "0.7272889", "0.7260912", "0.72575253", "0.7252238", "0.7231424", "0.7226689", "0.7216527", "0.72152925", "0.72088766", "0.72077835", "0.72029835", "0.71897525", "0.71882266", "0.71662694", "0.7163383", "0.7161234", "0.7153875", "0.71420026", "0.714025", "0.71369666", "0.71308124", "0.7127484", "0.7124449" ]
0.0
-1
Uri uriUrl = Uri.parse(url); Intent launchBrowser = new Intent(Intent.ACTION_VIEW, uriUrl);
private void goToUrl (String url) { Intent launchWebview = new Intent(this, ManualWebviewActivity.class); launchWebview.putExtra("url", url); startActivity(launchWebview); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void toUrl(String url){\n Uri uriUrl = Uri.parse(url);\n Intent launchBrowser = new Intent(Intent.ACTION_VIEW, uriUrl);\n startActivity(launchBrowser);\n }", "public void openBrowser(View view){\n String url = (String)view.getTag();\n\n Intent intent = new Intent();\n intent.setAction(Intent.ACTION_VIEW);\n intent.addCategory(Intent.CATEGORY_BROWSABLE);\n\n //pass the url to intent data\n intent.setData(Uri.parse(url));\n\n startActivity(intent);\n }", "private void openUrlInBrowser(String url) {\n if (!url.startsWith(\"http://\") && !url.startsWith(\"https://\")) {\n url = \"http://\" + url;\n }\n // Open the browser and point it to the given url\n Intent intent = new Intent(Intent.ACTION_VIEW);\n intent.setData(Uri.parse(url));\n startActivity(intent);\n }", "public void openBrowser(Context context, String url) {\n Intent i = new Intent(Intent.ACTION_VIEW);\n i.setData(Uri.parse(url));\n context.startActivity(i);\n }", "public void createBrowserIntent(View view){\n Uri uri = Uri.parse(\"https://www.linkedin.com/in/chidi-uwaleke-3769b9a8/\");\n\n //Step 2: Create a browserIntent with action 'Intent.ACTION_VIEW'\n Intent browserIntent = new Intent(Intent.ACTION_VIEW);\n\n //Step 3: Set the data of the intent\n browserIntent.setData(uri);\n\n //Step 4: Start the intent\n startActivity(browserIntent);\n }", "private void openBrowser(String Url) {\n \tif (Url != null && Url.trim().length()>0) {\n \t\tUri uri = Uri.parse(Url);\n \tIntent i = new Intent(Intent.ACTION_VIEW, uri);\n \tstartActivity(i);\n \t} \t\n }", "public void openWebPage(String url) {\n Intent intent= new Intent(Intent.ACTION_VIEW, Uri.parse(url));\n startActivity(intent);\n }", "private void openWebPage(String url) {\n Uri webpage = Uri.parse(\"http://\" + url);\n Intent intent = new Intent(Intent.ACTION_VIEW, webpage);\n if (intent.resolveActivity(getPackageManager()) != null) {\n startActivity(intent);\n }\n }", "public void openMuseumWebsite(String url){\n Intent intent = new Intent(Intent.ACTION_VIEW);\n intent.setData(Uri.parse(url));\n startActivity(intent);\n }", "private void openBrowser() {\r\n //http://必须有\r\n String url = urlText.getText().toString();\r\n if (!\"http\".equals(url.substring(0, 4))) {\r\n url = \"http://\" + url;\r\n }\r\n Uri uri = Uri.parse(url);//获取网址,并转换成URI\r\n Intent intent = new Intent(Intent.ACTION_VIEW, uri);//打开浏览器\r\n startActivity(intent);\r\n }", "private void openWebPage(String url) {\n Uri webpage = Uri.parse(url);\n Intent intent = new Intent(Intent.ACTION_VIEW, webpage);\n if (intent.resolveActivity(getActivity().getPackageManager()) != null) {\n startActivity(intent);\n }\n }", "public static void openBrowser(Context context, String url) {\n if (!url.startsWith(\"http://\") && !url.startsWith(\"https://\"))\n url = \"http://\" + url;\n Intent intent = new Intent(Intent.ACTION_VIEW);\n intent.setData(Uri.parse(url));\n context.startActivity(intent);\n }", "private void execURL(String link) {\n Uri webLink = Uri.parse(link);\n Intent openLink = new Intent(Intent.ACTION_VIEW, webLink);\n PackageManager pm = getPackageManager();\n List<ResolveInfo> handlers = pm.queryIntentActivities(openLink, 0);\n if (handlers.size() > 0)\n startActivity(openLink);\n }", "@Override\n public void onClick(View view) {\n Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(\"http://sozialmusfest.scalingo.io/\"));\n startActivity(browserIntent);\n }", "protected void WebClicked(View view){\n String url = this.itm.getItem(position).getUrl();\n if (!url.startsWith(\"http://\") && !url.startsWith(\"https://\"))\n url = \"http://\" + url;\n Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));\n try {\n startActivity(browserIntent);\n } catch (ActivityNotFoundException e){\n Toast.makeText(getBaseContext(), \"Webpage \" + url + \"does not exist\", Toast.LENGTH_SHORT).show();\n }\n }", "@OnClick({R.id.web_img, R.id.web})\n void OnClickWeb() {\n Uri webpage=Uri.parse(\"http://\" + getString(R.string.web));\n Intent intentW=new Intent(Intent.ACTION_VIEW, webpage);\n if (intentW.resolveActivity(getPackageManager()) != null) {\n startActivity(intentW);\n }\n }", "@Override\n public void onOpenWebsite(@Nullable String url) {\n if (url == null) return;\n Log.d(TAG, \"onOpenWebsite: Url:\" + url);\n\n Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));\n if (intent.resolveActivity(getPackageManager()) != null) {\n startActivity(intent);\n }\n }", "public static void openURL(final String url) {\n Intent intent = new Intent(Intent.ACTION_VIEW).setData(Uri.parse(url));\n _instance.startActivity(Intent.createChooser(intent, \"\"));\n }", "@Override\n public void onClick(View view) {\n //Convert the String URL into a URI object (to pass into the Intent constructor)\n Uri newsUri = Uri.parse(url);\n\n // Create a new intent to view the earthquake URI\n Intent websiteIntent = new Intent(Intent.ACTION_VIEW, newsUri);\n\n // Send the intent to launch a new activity\n startActivity(websiteIntent);\n }", "public static Intent openLink(String url) {\n // if protocol isn't defined use http by default\n if (!TextUtils.isEmpty(url) && !url.contains(\"://\")) {\n url = \"http://\" + url;\n }\n\n Intent intent = new Intent();\n intent.setAction(Intent.ACTION_VIEW);\n intent.setData(Uri.parse(url));\n return intent;\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent web = new Intent(Intent.ACTION_VIEW);\n\t\t\t\tweb.setData(Uri.parse(url));\n\t\t\t\tstartActivity(web);\n\t\t\t}", "public void openURL(Activity ctx, String url)\n {\n if (isConnected(ctx)) {\n try {\n Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));\n ctx.startActivity(browserIntent);\n } catch (Exception e) {\n\n }\n } else {\n Dialogs.getInstance().simpleNoInternet(ctx);\n }\n }", "public static void openURL(Context activity, String url) {\n Intent i = new Intent(Intent.ACTION_VIEW);\n i.setData(Uri.parse(url));\n activity.startActivity(i);\n }", "@Override\n public void onClick(View view) {\n Intent httpIntent = new Intent(Intent.ACTION_VIEW);\n httpIntent.setData(Uri.parse(\"http://bvmengineering.ac.in\"));\n\n startActivity(httpIntent);\n\n }", "void openUrl (String url);", "public void openUrlInBrowser(String URL) {}", "private void openUrl() throws IOException, URISyntaxException{\r\n if(Desktop.isDesktopSupported()){\r\n Desktop desktop = Desktop.getDesktop();\r\n desktop.browse(new URI(url));\r\n } else {\r\n Runtime runtime = Runtime.getRuntime();\r\n runtime.exec(\"xdg-open \" + url);\r\n }\r\n }", "@Override\n public void onClick(View view) {\n Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(\"http://sozialmusfest.scalingo.io/services\"));\n startActivity(browserIntent);\n }", "public static void openImageInBrowser(Context context, String url){\n Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));\n context.startActivity(browserIntent);\n }", "public void openSite(View view) {\n Intent toView = new Intent(Intent.ACTION_VIEW, Uri.parse(\"https://www.google.com\"));\n startActivity(toView);\n }", "@Override\n public void onClick(View view){\n Intent intentWeb = new Intent(Intent.ACTION_VIEW);\n intentWeb.setData(Uri.parse(buttonUrl.getText().toString()));\n startActivity(intentWeb); //lancement\n\n }", "public static void openWebPage(Context context, String url) {\n Intent intent = new Intent(Intent.ACTION_VIEW);\n intent.setData(Uri.parse(url));\n context.startActivity(intent);\n }", "@Override\r\n \t\t\tpublic void onClick(View v) {\n \t\t\t\tIntent browseIntent = new Intent( Intent.ACTION_VIEW , Uri.parse(urlStr) );\r\n startActivity(Intent.createChooser(browseIntent, \"Connecting...\"));\r\n \t\t\t}", "private void launchBrowser(URI uri) throws IOException\r\n {\r\n getDesktop().browse(uri);\r\n }", "@Override\n public void onClick(View v) {\n String Url= currentNews.getWebUrl();\n //sent intent to the website\n Intent intent = new Intent();\n intent.setAction(Intent.ACTION_VIEW);\n intent.addCategory(Intent.CATEGORY_BROWSABLE);\n intent.setData(Uri.parse(Url));\n getContext().startActivity(intent);\n }", "private static void openWebpage(String url) {\n try {\n new ProcessBuilder(\"x-www-browser\", url).start();\n } catch (IOException e) {\n log.error(e.getMessage(), e);\n }\n }", "protected void openExternal( String url , String type ) {\n if( type == null ) {\n openExternal( url );\n }\n else {\n Intent intent = new Intent(Intent.ACTION_VIEW);\n intent.setDataAndTypeAndNormalize(Uri.parse(url), type);\n if( getPackageManager().resolveActivity(intent,0) != null ) {\n intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);\n try {\n startActivity(intent);\n } catch (Exception e) {\n Log.d(\"openExternal\", e.getMessage());\n }\n }\n }\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\tIntent\tin=new Intent(Intent.ACTION_VIEW,Uri.parse(uri));\n\t\t\t\tstartActivity(in);\n\t\t\t}", "void openInAppBrowser(String url, String title, String subtitle, int errorMsg);", "public void funcionAppian(View v){\n Intent intent = new Intent(Intent.ACTION_VIEW);\n intent.setData(Uri.parse(\"https://ustglobalspaindemo.appiancloud.com/suite/tempo/news\"));\n if(intent.resolveActivity(getPackageManager())!= null){\n startActivity(intent);\n }\n }", "@Override\n public void onClick(View view) {\n String url = \"https://ownshopz.com/mobile-360-degree/\";\n Intent i = new Intent(Intent.ACTION_VIEW);\n i.setData(Uri.parse(url));\n startActivity(i);\n }", "@Override\n public void onClick(View v) {\n\n String url = \"https://club-omnisports-des-ulis.assoconnect.com/billetterie/offre/146926-a-adhesion-karate-2020-2021\";\n Intent i = new Intent(Intent.ACTION_VIEW);\n i.setData(Uri.parse(url));\n startActivity(i);\n\n }", "@Override\n public void onClick(View v) {\n Uri uri = Uri.parse(url);\n //Se crea un intent implicito para visualizar los links en un navegador\n Intent intent = new Intent(Intent.ACTION_VIEW, uri);\n //Se inicia la actividad del navegador\n activityt.startActivity(intent);\n }", "@Override\n public void onClick(View view) {\n Intent browser = new Intent(Intent.ACTION_VIEW, Uri.parse(\"https://petobesityprevention.org/\"));\n startActivity(browser);\n }", "@Override\n public void onClick(View v) {\n Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(getString(R.string.forecast_io_url)));\n startActivity(browserIntent);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n case R.id.action_open_new:\n String url = \"\";\n try{\n url = json.getString(\"url\");\n }\n catch (JSONException e){\n e.printStackTrace();\n }\n Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));\n startActivity(browserIntent);\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent\tin=new Intent(Intent.ACTION_VIEW,Uri.parse(uri2));\n\t\t\t\tstartActivity(in);\n\t\t\t\t\n\t\t\t}", "@Override\n public void onDownloadStart(String url, String userAgent,\n String contentDisposition, String mimetype,\n long contentLength) {\n\n startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(url)));\n }", "public boolean processUrl(String url, Context ctx) {\n List<ResolveInfo> resolveInfos = getAvailablePackagesForUrl(url, ctx);\n // filter the webbrowser > because the webview will replace it, using\n // google as simple url\n List<ResolveInfo> webBrowsers = getAvailablePackagesForUrl(\n \"http://www.google.com\", ctx);\n for (ResolveInfo resolveInfo : resolveInfos) {\n\n boolean found = false;\n for (ResolveInfo webBrowser : webBrowsers) {\n if (resolveInfo.activityInfo.packageName\n .equals(webBrowser.activityInfo.packageName)) {\n found = true;\n break;\n }\n }\n if (!found) {\n Intent intent = new Intent(Intent.ACTION_VIEW);\n intent.setData(Uri.parse(url));\n intent.setClassName(resolveInfo.activityInfo.packageName,\n resolveInfo.activityInfo.name);\n ctx.startActivity(intent);\n return true;\n }\n }\n return false;\n }", "private void openURL() {\n webview.loadUrl(\"http://192.168.0.116/webvitool/view/webvitool.php\");\n webview.requestFocus();\n }", "@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\n\t\t\t\t\tIntent webIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(\"http://www.google.com\"));\n\t\t\t\t\tcontext.startActivity(webIntent);\n\t\t\t\t\t\n\t\t\t\t}", "public void sharePage(){\n Intent shareIntent = new Intent(Intent.ACTION_VIEW);\n shareIntent.setData(Uri.parse(\"http://192.168.43.105:5000\"));//edit url\n startActivity(shareIntent);\n }", "@Override\n public void onClick(View v) {\n Intent rpIntent = new Intent(Intent.ACTION_VIEW);\n // Set the URL to be used.\n rpIntent.setData(Uri.parse(\"http://www.rp.edu.sg\"));\n startActivity(rpIntent);\n }", "@Override\n public void grindClicked() {\n Uri webpage = Uri.parse(\"http://www.grind-design.com\");\n Intent webIntent = new Intent(Intent.ACTION_VIEW, webpage);\n startActivity(webIntent);\n }", "public void searchProduct(String url){\n Intent intent = new Intent(Intent.ACTION_VIEW);\n intent.setData(Uri.parse(url));\n\n if(intent.resolveActivity(getContext().getPackageManager()) != null) {\n getContext().startActivity(intent);\n }\n }", "@Override\n public void onClick(View view) {\n Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(article.getLink())); // intent to show item using url\n Context context = view.getContext();\n context.startActivity(browserIntent);\n }", "private static Intent newFacebookIntent(PackageManager pm, String url) {\n Uri uri = Uri.parse(url);\n try {\n ApplicationInfo applicationInfo = pm.getApplicationInfo(\"com.facebook.katana\", 0);\n if (applicationInfo.enabled) {\n uri = Uri.parse(\"fb://facewebmodal/f?href=\" + url);\n }\n } catch (PackageManager.NameNotFoundException ignored) {\n }\n return new Intent(Intent.ACTION_VIEW, uri);\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tUri webpage = Uri.parse(currentItem.getStoryUrl());\n\n\t\t\t\t// Create web browser intent\n\t\t\t\tIntent storyOnWebIntent = new Intent(Intent.ACTION_VIEW, webpage);\n\n\t\t\t\t// Check web activity can be handled by the device and start activity\n\t\t\t\tif (storyOnWebIntent.resolveActivity(mContext.getPackageManager()) != null) {\n\t\t\t\t\tmContext.startActivity(storyOnWebIntent);\n\t\t\t\t}\n\n\t\t\t}", "public static void openWebsite(Context context, String url) {\n Uri articleUri = Uri.parse(url);\n Intent websiteIntent = new Intent(Intent.ACTION_VIEW, articleUri);\n context.startActivity(websiteIntent);\n }", "@Override\n public void onClick(View v) {\n Intent opnWebIntent = new Intent(getActivity(), WebViewActivity.class);\n opnWebIntent.putExtra(\"url\", \"http://www.mbtabackontrack.com/performance/index.html#/home\");\n startActivity(opnWebIntent);\n }", "public void accederClick(View view){\n //Declarar activity web\n Intent i = new Intent(this, ActivityWeb.class);\n\n //Enviar url a la activity web\n i.putExtra(\"url\", etUrlM.getText().toString());\n\n //Cargar Activity\n startActivity(i);\n }", "@Override\n\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\tIntent i = new Intent(Intent.ACTION_VIEW, Uri\n\t\t\t\t\t\t\t\t\t\t.parse(fullsitelink));\n\t\t\t\t\t\t\t\tstartActivity(i);\n\n\t\t\t\t\t\t\t}", "@Override\n public void onClick(View view) {\n Uri newsUri = Uri.parse(currentNews.getUrl());\n\n // Create a new intent to view the news URI\n Intent websiteIntent = new Intent(Intent.ACTION_VIEW, newsUri);\n\n // Send the intent to launch a new activity\n mContext.startActivity(websiteIntent);\n }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(\"http://www.gteducation.in\"));\n startActivity(intent);\n Toast.makeText(NoticeActivity.this,\"go to my website\",Toast.LENGTH_SHORT).show();\n\n }", "public static void openURL(String url) {\n try { //attempt to use Desktop library from JDK 1.6+\n Class<?> d = Class.forName(\"java.awt.Desktop\");\n d.getDeclaredMethod(\"browse\", new Class[] {java.net.URI.class}).invoke(\n d.getDeclaredMethod(\"getDesktop\").invoke(null),\n new Object[] {java.net.URI.create(url)});\n //above code mimicks: java.awt.Desktop.getDesktop().browse()\n }\n catch (Exception ignore) { //library not available or failed\n String osName = System.getProperty(\"os.name\");\n try {\n if (osName.startsWith(\"Mac OS\")) {\n Class.forName(\"com.apple.eio.FileManager\").getDeclaredMethod(\n \"openURL\", new Class[] {String.class}).invoke(null,\n new Object[] {url});\n }\n else if (osName.startsWith(\"Windows\"))\n Runtime.getRuntime().exec(\n \"rundll32 url.dll,FileProtocolHandler \" + url);\n else { //assume Unix or Linux\n String browser = null;\n for (String b : browsers)\n if (browser == null && Runtime.getRuntime().exec(new String[]\n {\"which\", b}).getInputStream().read() != -1)\n Runtime.getRuntime().exec(new String[] {browser = b, url});\n if (browser == null)\n throw new Exception(Arrays.toString(browsers));\n }\n }\n catch (Exception e) {\n JOptionPane.showMessageDialog(null, errMsg + \"\\n\" + e.toString());\n }\n }\n }", "public void onClick(View v) {\n\n Intent visitSite_intent = new Intent(MainActivity.this, DetailActivity.class);\n visitSite_intent.putExtra(\"url\",\"http://aanm-vvrsrpolytechnic.ac.in/\");\n startActivity(visitSite_intent);\n }", "@Override\n\t\tpublic void onClick(View v) {\n\t\t\tstartActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(\"http://www.facebook.com/mrinalkanti.ray\")));\n\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent = new Intent();\n\t\t\t\tintent.setClass(mContext, WebActivity.class);\n\t\t\t\tintent.putExtra(\"url\", \"http://iyuba.com/apps.php?mod=app&id=213\");\n\t\t\t\tstartActivity(intent);\n\t\t\t}", "public static final void openWebpage(URI uri) {\n Desktop desktop = Desktop.isDesktopSupported() ? Desktop.getDesktop() : null;\r\n if ((desktop != null) && (desktop.isSupported(Desktop.Action.BROWSE))) {\r\n try {\r\n desktop.browse(uri);\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent = new Intent();\n\t\t\t\tintent.setClass(mContext, WebActivity.class);\n\t\t\t\tintent.putExtra(\"url\", \"http://iyuba.com/apps.php?mod=app&id=209\");\n\t\t\t\tstartActivity(intent);\n\t\t\t}", "private void toWebViewActivity(){\n Intent toWebViewActivity = new Intent(this, AmazonActivity.class);\n startActivity(toWebViewActivity);\n }", "public void onDownloadStart(String url, String userAgent,\n String contentDisposition, String mimetype,\n long contentLength) {\n\n startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(url)));\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent = new Intent();\n\t\t\t\tintent.setClass(mContext, WebActivity.class);\n\t\t\t\tintent.putExtra(\"url\", \"http://iyuba.com/apps.php?mod=app&id=201\");\n\t\t\t\tstartActivity(intent);\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent = new Intent();\n\t\t\t\tintent.setClass(mContext, WebActivity.class);\n\t\t\t\tintent.putExtra(\"url\", \"http://iyuba.com/apps.php?mod=app&id=217\");\n\t\t\t\tstartActivity(intent);\n\t\t\t}", "public void openURL(String url) {\r\n\t\t\r\n\t\tfinal String errMsg = \"Error attempting to launch web browser\";\r\n\t\tString osName = System.getProperty(\"os.name\");\r\n\t\ttry {\r\n\t\t\tif (osName.startsWith(\"Mac OS\")) {\r\n\t\t\t\tClass fileMgr = Class.forName(\"com.apple.eio.FileManager\");\r\n\t\t\t\tMethod openURL = fileMgr.getDeclaredMethod(\"openURL\",\r\n\t\t\t\t\t\tnew Class[] {String.class});\r\n\t\t\t\topenURL.invoke(null, new Object[] {url});\r\n\t\t\t}\r\n\t\t\telse if (osName.startsWith(\"Windows\"))\r\n\t\t\t\tRuntime.getRuntime().exec(\"rundll32 url.dll,FileProtocolHandler \" + url);\r\n\t\t\telse { //assume Unix or Linux\r\n\t\t\t\tString[] browsers = {\r\n\t\t\t\t\t\t\"firefox\", \"opera\", \"konqueror\", \"epiphany\", \"mozilla\", \"netscape\" };\r\n\t\t\t\tString browser = null;\r\n\t\t\t\tfor (int count = 0; count < browsers.length && browser == null; count++)\r\n\t\t\t\t\tif (Runtime.getRuntime().exec(\r\n\t\t\t\t\t\t\tnew String[] {\"which\", browsers[count]}).waitFor() == 0)\r\n\t\t\t\t\t\tbrowser = browsers[count];\r\n\t\t\t\tif (browser == null)\r\n\t\t\t\t\tthrow new Exception(\"Could not find web browser\");\r\n\t\t\t\telse\r\n\t\t\t\t\tRuntime.getRuntime().exec(new String[] {browser, url});\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n//\t\t\tJOptionPane.showMessageDialog(null, errMsg + \":\\n\" + e.getLocalizedMessage());\r\n\t\t\tAboutDialog dlgSupport = new AboutDialog(actController.getUIInstance(), \"Support\", \t\"<html> Couldn't find web browser!\"+ \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"<br> Please start your browser and type in the following URL:\"+\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"<br> www.battleship.bymaxe.de</html>\");\r\n\t\t}\r\n\t}", "public ICurrentPage openNewWindow(String url);", "@Override\n public void onClick(View arg0) {\n Intent i = new Intent(getApplicationContext(), web.class);\n startActivity(i);\n }", "public void onClick(View view) {\n Intent intent = new Intent();\n intent.setAction(\"android.intent.action.VIEW\");\n intent.setType(\"text/plain\");\n intent.addCategory(\"android.intent.category.DEFAULT\");\n startActivity(intent);\n\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent = new Intent();\n\t\t\t\tintent.setClass(mContext, WebActivity.class);\n\t\t\t\tintent.putExtra(\"url\", \"http://iyuba.com/apps.php?mod=app&id=207\");\n\t\t\t\tstartActivity(intent);\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tString url = \"http://www.hoteltrip.com/\";\n\t\t\t\tIntent i = new Intent(Intent.ACTION_VIEW);\n\t\t\t\ti.setData(Uri.parse(url));\n\t\t\t\tstartActivity(i);\n\t\t\t}", "private void viewPageClicked() {\n //--\n //-- WRITE YOUR CODE HERE!\n //--\n try{\n Desktop d = Desktop.getDesktop();\n d.browse(new URI(itemView.getItem().getURL()));\n }catch(Exception e){\n e.printStackTrace();\n }\n\n showMessage(\"View clicked!\");\n }", "@SuppressWarnings(\"static-access\")\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent Intent = new Intent(android.content.Intent.ACTION_VIEW);\r\n\t\t\t\tString extension = android.webkit.MimeTypeMap\r\n\t\t\t\t\t\t.getFileExtensionFromUrl(Uri.fromFile((File) item.downFile).toString());\r\n\t\t\t\tString mimetype = android.webkit.MimeTypeMap.getSingleton().getMimeTypeFromExtension(extension);\r\n\t\t\t\tIntent.setDataAndType(Uri.fromFile((File) item.downFile), mimetype);\r\n\t\t\t\tIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\r\n\t\t\t\tmContext.startActivity(Intent);\r\n\t\t\t\tLogger.d(TAG, \"Intent\" + Intent);\r\n\t\t\t}", "@Override\n public void onClick(View view) {\n Intent Getintent = new Intent(Intent.ACTION_VIEW, Uri.parse(\"http://feedback.avriant.com\"));\n startActivity(Getintent);\n }", "@Override\n public void onClick(View v) {\n startBrowserActivity(MODE_SONIC, StorageNews.get(1).webUrl);\n\n //startActivity(intent);\n //Log.d(\"NNNNN\",StorageNews.toString());\n }", "@Override\n public void onClick(View v) {\n Uri uri = Uri.parse(\"https://www.google.com/?gws_rd=ssl#q=\" + mAnswer.getWord());\n Intent intent = new Intent(Intent.ACTION_VIEW, uri);\n startActivity(intent);\n }", "@Override\n public boolean onCreateWindow(WebView view, boolean isDialog,\n boolean isUserGesture, Message resultMsg) {\n\n WebView.HitTestResult result = view.getHitTestResult();\n String url = result.getExtra();\n\n if(url != null && url.indexOf(\"about:blank\")>-1){\n Intent intent = new Intent(Intent.ACTION_VIEW);\n intent.setData(Uri.parse(url));\n startActivity(intent);\n return true;\n }else{\n WebView newWebView = new WebView(MainActivity.this);\n view.addView(newWebView);\n WebView.WebViewTransport transport = (WebView.WebViewTransport) resultMsg.obj;\n\n transport.setWebView(newWebView);\n resultMsg.sendToTarget();\n return true;\n }\n\n }", "void openCustomTab(String url) {\n CustomTabsIntent.Builder builder = new CustomTabsIntent.Builder();\n // set toolbar color and/or setting custom actions before invoking build()\n builder.setToolbarColor(ContextCompat.getColor(this, R.color.colorPrimary));\n builder.addDefaultShareMenuItem();\n // Once ready, call CustomTabsIntent.Builder.build() to create a CustomTabsIntent\n CustomTabsIntent customTabsIntent = builder.build();\n // and launch the desired Url with CustomTabsIntent.launchUrl()\n customTabsIntent.launchUrl(this, Uri.parse(url));\n }", "@Override\n public void onClick(View v) {\n startBrowserActivity(MODE_SONIC, StorageNews.get(4).webUrl);\n\n //startActivity(intent);\n //Log.d(\"NNNNN\",StorageNews.toString());\n }", "@Override\n public void onClick(View v) {\n startBrowserActivity(MODE_SONIC, StorageNews.get(3).webUrl);\n\n //startActivity(intent);\n //Log.d(\"NNNNN\",StorageNews.toString());\n }", "@Override\n\tpublic boolean openURL(final String url) {\n\t\ttry {\n\t\t\tURI uri = new URI(url);\n\t\t\tif(Desktop.isDesktopSupported()) {\n\t\t\t\tfinal Desktop desktop = Desktop.getDesktop();\n\t\t\t\tdesktop.browse(uri);\n\t\t\t}\n\t\t\telse { //fallback if desktop API not supported\n\t\t\t\tfor (final String browser : BROWSERS) {\n\t\t\t\t\tString cmd = browser + \" \" + url;\n\t\t\t\t\tfinal Process p = Runtime.getRuntime().exec(cmd);\n\t\t\t\t\tif(p.waitFor() == 0)\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IOException ioe) {\n\t\t\tJOptionPane.showInputDialog(null, \"There was an error while attempting to open the system browser. \"\n\t\t\t\t\t+ \"\\nPlease copy and paste the following URL into your browser:\", url);\n\t\t\tlogger.info(\"Error opening system browser; displaying copyable link instead\");\n\t\t} catch (URISyntaxException e) {\n\t\t\tlogger.warn(\"This URI is invalid: \" + url, e);\n\t\t\treturn false;\n\t\t} catch (InterruptedException e) {\n\t\t\tlogger.warn(\"Browser process thread interrupted\");\n\t\t}\n\t\treturn true;\n\t}", "public static boolean openBrowser(final String url) {\n URI uri = null;\n \n try {\n uri = new URI(url);\n } catch (URISyntaxException e) {\n throw new IllegalArgumentException(\"URL has an incorrect format: \" + url);\n }\n\n return openBrowser(uri);\n\t}", "@Override\n public void onClick(View v) {\n startBrowserActivity(MODE_SONIC, StorageNews.get(2).webUrl);\n\n //startActivity(intent);\n //Log.d(\"NNNNN\",StorageNews.toString());\n }", "@Given(\"^launch the browser \\\"([^\\\"]*)\\\"$\")\n\tpublic void launch_the_browser(String url) throws Throwable {\n\t\tdriver = getDriver();\n\t\tdriver.get(url);\n\n\t}", "void openLinkInSystemBrowser(String url, int errorMsg);", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tswitch (requestCode) {\n\t\tcase 1:\n\t\t\tif(data != null){\n\t\t\t\tString result = data.getStringExtra(\"result\");\n\t\t\t\tif(result != null)\n\t\t\t\t\t//tv.setText(result);\n\t\t\t\t\tSystem.out.println(result);\n\t\t\t\tUri uri = Uri.parse(result); \n\t\t\t\tIntent it = new Intent(Intent.ACTION_VIEW, uri); \n\t\t\t\tstartActivity(it);\n\t\t\t}\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t}", "@Override\n public void onClick(View v) {\n Intent i = new Intent(ConfiguracionActivity.this, WebViewActivity.class);\n startActivity(i);\n\n // Opcion para navegador externo\n /*\n String url = getResources().getString(R.string.privacy_policy_url);\n Intent intentWeb = new Intent();\n intentWeb.setAction(Intent.ACTION_VIEW);\n intentWeb.setData(Uri.parse(url));\n startActivity(intentWeb);\n */\n }", "public static void openUrl(final Activity context, final String url,\n final boolean withoutTransition) {\n final Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));\n intent.setPackage(getAlternative(context));\n intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n\n context.startActivity(intent);\n\n if (withoutTransition) {\n context.overridePendingTransition(0, 0);\n }\n }", "public static void openUrl(final Activity context, final String url, final boolean withoutTransition) {\n final Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));\n intent.setPackage(getAlternative(context));\n intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n\n context.startActivity(intent);\n\n if (withoutTransition) {\n context.overridePendingTransition(0, 0);\n }\n }", "public static boolean openBrowser(final URI uri) {\n\t\tif (openURLWithDesktop(uri)) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\tfor (final String browser : BROWSERS) {\n\t\t\t\tif (openURLWithBrowser(uri.toString(), browser))\n\t\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\t\n\t\tJOptionPane.showInputDialog(null, \"GeneMANIA was unable to open your web browser.. \"\n\t\t\t\t+ \"\\nPlease copy the following URL and paste it into your browser:\", uri);\n\t\t\n\t\treturn false;\n\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tstartActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(\"http://www.twitter.com/mrinalk73720345\")));\n\t\t\t}" ]
[ "0.8826536", "0.86430156", "0.8142576", "0.80520153", "0.80460787", "0.8007352", "0.7997946", "0.7997543", "0.7949148", "0.79431385", "0.7835898", "0.78048104", "0.76659936", "0.7590681", "0.74954796", "0.7466064", "0.7441706", "0.7430349", "0.740573", "0.73812526", "0.7367868", "0.73633415", "0.73402935", "0.7336855", "0.7312083", "0.7288439", "0.72736174", "0.72649145", "0.7235392", "0.72324705", "0.7218389", "0.71764135", "0.7116092", "0.70990145", "0.7095194", "0.7061752", "0.70284647", "0.7018261", "0.69815564", "0.69713736", "0.6951604", "0.6944459", "0.6937225", "0.69195986", "0.69168234", "0.6914258", "0.68862444", "0.68795985", "0.685964", "0.68535715", "0.6852436", "0.6851439", "0.6846386", "0.68447137", "0.6820412", "0.68201494", "0.68059176", "0.6771878", "0.67628664", "0.67557836", "0.6747949", "0.67307115", "0.67243934", "0.6679416", "0.66591775", "0.66489506", "0.6644641", "0.6638932", "0.6614569", "0.66132766", "0.66069704", "0.66028047", "0.6601986", "0.65953803", "0.6574283", "0.6569029", "0.6568897", "0.6568599", "0.65676904", "0.65550137", "0.6514511", "0.6510144", "0.6508868", "0.64593184", "0.6454279", "0.64449376", "0.6444752", "0.64416647", "0.64391613", "0.6436643", "0.64260745", "0.642268", "0.64174867", "0.6377367", "0.6375467", "0.63676316", "0.6360528", "0.6356048", "0.6355729", "0.6339674" ]
0.7310851
25
TODO Autogenerated method stub
@Override public void onServiceConnected(ComponentName name, IBinder service) { Log.d("service", "onServiceConnected() " + name.getClassName()); mMyServ = ((MyService.LocalBinder) service).getService(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void onServiceDisconnected(ComponentName name) { Log.d("service", "onServiceDisconnected()" + name.getClassName()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
JosefCircleSingleLinkedList circleSingleLinkedList = new JosefCircleSingleLinkedList(); circleSingleLinkedList.add(5); circleSingleLinkedList.list(); circleSingleLinkedList.countBoy(1, 2, 5);
public static void main(String[] args) { JosefCirclePractice josefCirclePractice = new JosefCirclePractice(); josefCirclePractice.add(6); josefCirclePractice.show(); josefCirclePractice.countBoy(1, 2, 6); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testLinkedList(){\n LinkedListMethods testList = new LinkedListMethods();\n testList.addItem(1);\n testList.addItem(2);\n testList.addItem(3);\n Assertions.assertEquals(3,testList.count());\n\n //Test of deletion of node\n testList.remove( 1);\n Assertions.assertEquals(2,testList.count());\n\n //Test of size lo the list\n Assertions.assertEquals(2,testList.count());\n\n //Test of add node at particular index.\n testList.addItem(1,2);\n testList.addItem(8,3);\n Assertions.assertEquals(3,testList.count());\n }", "public void test() {\n singleLinkedList();\n\n }", "void operateLinkedList() {\n\n List linkedList = new LinkedList();\n linkedList.add( \"syed\" );\n linkedList.add( \"Mohammed\" );\n linkedList.add( \"Younus\" );\n System.out.println( linkedList );\n linkedList.set( 0, \"SYED\" );\n System.out.println( linkedList );\n linkedList.add( 0, \"Mr.\" );\n System.out.println( linkedList );\n\n\n }", "public CircleOfFifths(){fillArrayLists();}", "public LinkedListSum() {}", "public LinkedListDemo() {\r\n }", "public static void main(String[] args) {\n// ListNode listNode = linkedList.reverseList(linkedList.getHead());\n// linkedList.setHead(listNode);\n// linkedList.list();\n LinkedList list1 = new LinkedList();\n LinkedList list2 = new LinkedList();\n list1.add(2);\n list1.add(4);\n list1.add(3);\n\n list2.add(5);\n list2.add(6);\n list2.add(4);\n\n ListNode listNode = list1.addTwoNumbers(list1.getHead(), list2.getHead());\n System.out.println(listNode);\n\n }", "@Test\n\tpublic void test3(){\n\t\tDoubleLinkedList dll = new DoubleLinkedList(getList(5));\n\t\t\n\t\tassertEquals(1, dll.get(1));\n\t\t\n\t\tdll.add(dll.size(), 99);\n\t\tassertEquals(dll.get(dll.size() - 1), 99);\n\t\tdll.add(1, 100);\n\t\tassertEquals(dll.get(1), 100);\n\t\t\n\t\tdll.remove(6);\n\t\tassertEquals(dll.indexOf(99), -1);\n\t\t\n\t\tdll.clear();\n\t\tassertEquals(dll.size(), 0);\n\t\t\n\t\tdll.addAll(getList(0));\n\t\tassertEquals(dll.size(), 0);\n\t\tdll.addAll(getList(5));\n\t\tassertEquals(dll.size(), 5);\n\t\t\n\t\tdll.addAll(dll.size() - 1, getList(6));\n\t\tassertEquals(dll.size(), 11);\n\t}", "public LinkedListDemo() {\n\t\tlength = 0;\n\t\thead = new ListNode();\n\t\n\t}", "public static void main(String[] args) {\n doublyll dl_List = new doublyll(); \n //Add nodes to the list \n dl_List.addNode(10); \n dl_List.addNode(20); \n dl_List.addNode(30); \n dl_List.addNode(40); \n dl_List.addNode(50); \n \n //print the nodes of DoublyLinkedList \n dl_List.printNodes(); \n }", "public static void main(String[] args) {\n LinkedIntList list = new LinkedIntList();\n list.add(5);\n list.add(1);\n list.add(4);\n list.add(2);\n list.add(8);\n System.out.println(list);\n list.bubble();\n System.out.println(list);\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tLinkedListPracticeSingly ll = new LinkedListPracticeSingly(10);\r\n\t\tll.addAtHead(11);\r\n\t\tll.addAtHead(12);\r\n\t\tll.addAtHead(13);\r\n\t\tSystem.out.println(\"\\nData Size >>>>>> [\"+getSize()+\"]\");\r\n\t\tll.printList();\r\n\t\t\r\n\t\tll.addAtTail(8);\r\n\t\tSystem.out.println(\"\\nData Size >>>>>> [\"+getSize()+\"]\");\r\n\t\tll.printList();\r\n\t\t\r\n\t\tll.addAtTail(7);\r\n\t\tSystem.out.println(\"\\nData Size >>>>>> [\"+getSize()+\"]\");\r\n\t\tll.printList();\r\n\t\t\r\n\t\tll.addAtIndex(4,19);\r\n\t\tSystem.out.println(\"\\nData Size >>>>>> [\"+getSize()+\"]\");\r\n\t\tll.printList();\r\n\t\t\r\n\t\t//ll.addAtIndex(4,9);\r\n\t\t//ll.deleteAtIndex(4);\r\n\t\t//ll.printList();\r\n\t}", "@Test\n public void testGetListaCidadao() {\n System.out.println(\"getListaCidadao\");\n Cidadao cid = new Cidadao(\"teste\", 999999999, \"@\", \"4490-479\", 1111);\n Reparticao instance = new Reparticao(\"porto\", 1111, 4490, new ArrayList<>());\n instance.addCidadao(cid);\n\n DoublyLinkedList<Cidadao> expResult = new DoublyLinkedList<>();\n expResult.addLast(cid);\n DoublyLinkedList<Cidadao> result = instance.getListaCidadao().getListaCidadao();\n assertEquals(expResult, result);\n }", "public static void main(String[] args) {\n\t LinkedList<String> linkedList=new LinkedList<>();\n\t \n\t //add an element to the linkedlist\n\t linkedList.add(\"b\");\n\t \n\t //add an element to the first location of the linkedlist\n\t linkedList.addFirst(\"a\");\n\t \n\t //add an element to the end of the linkedlist\n\t linkedList.addLast(\"d\");\n\t \n\t //add an element to any location of the linkedlist\n\t linkedList.add(2, \"c\");\n\t \n\t System.out.println(linkedList);\n\t \n\t //check if the element is present in the linkedlist or not\n\t boolean isPresent=linkedList.contains(\"a\");\n\t System.out.println(\"Is 'a' present in the linkedList: \" +isPresent);\n\t isPresent=linkedList.contains(\"f\");\n\t System.out.println(\"Is 'f' present in the linkedList\" +isPresent);\n\t \n\t //get the index of a element in the list\n\t int index=linkedList.indexOf(\"c\");\n\t System.out.println(\"Index of 'f' in the list is\" +index);\n\t \n\t //get an elemnt of a particular index\n\t String element=linkedList.get(3);\n\t System.out.println(\"Element present in the index 3 is: \" +element);\n\t \n\t //get the size of the list\n\t int size=linkedList.size();\n\t System.out.println(\"size of the linked list is: \"+size);\n\t \n\t //remove one element from the list\n\t linkedList.remove(\"d\");\n\t \n\t System.out.println(linkedList);\n\t \n }", "public linkedList() { // constructs an initially empty list\r\n\r\n }", "void carteJouable(LinkedList<Carte> main, LinkedList<Carte> dernieresCartes, int payer);", "public CircularlyLinkedList() { }", "public CircularLinkedList() {\n head = new Node();\n head.next = head;\n size = 0;\n }", "public static void testAdd(LinkedList list) {\n\t\tNode n1 = new Node(\"1\");\n\t\tNode n2 = new Node(\"2\");\n\t\tNode n3 = new Node(\"3\");\n\t\tNode n4 = new Node(\"4\");\n\t\t\n\t\t// add to empty list\n\t\tlist.add(n2);\n\t\t\n\t\t// add to end of list\n\t\tlist.add(n4);\n\t\t\n\t\t// add in the middle\n\t\tlist.add(n3);\n\t\t\n\t\t// add at the head\n\t\tlist.add(n1);\n\t\t\n\t\tlist.printForward();\n\t\tSystem.out.println(\"Size: \" + list.getSize());\n\t}", "public static void main(String[] args)\n {\n SimpleLinkedList<Integer> num1 = new SimpleLinkedList<>();\n num1.push(7);\n num1.push(3);\n num1.push(6);\n num1.push(9);\n SimpleLinkedList<Integer> num2 = new SimpleLinkedList<>();\n num2.push(4);\n num2.push(5);\n num2.push(6);\n sum(num1, num2).printList();\n }", "public static void main(String[] args) {\n\t\tBasics linkedList = new Basics();\r\n\t\tlinkedList.head = new Node(1);\r\n\t\tNode second = new Node(2);\r\n\t\tNode third = new Node(3);\r\n\t\tlinkedList.head.next = second;\r\n\t\tsecond.next = third;\r\n\t\tlinkedList.pointer = linkedList.head;\r\n\t\twhile(linkedList.pointer.next != null) {\r\n\t\t\tSystem.out.println(linkedList.pointer.data);\r\n\t\t\tlinkedList.pointer = linkedList.pointer.next;\r\n\t\t}\r\n\t\tSystem.out.println(linkedList.pointer.data);\r\n\t\t\r\n\t}", "public void traverseList(Node head)\r\n\t{\r\n\t\tint count =0;\r\n\t\tSystem.out.print(\"Linked List - \");\r\n\t\twhile(head!= null)\r\n\t\t{\r\n\t\t\tSystem.out.print(head.data + \" \");\r\n\t\t\thead = head.next;\r\n\t\t\tcount++;\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"\\nTotal no of nodes in Linked List - \"+ count);\r\n\t}", "public static void main(String[] args) {\n\n ListNode l1 = new ListNode(5);\n// l1.next = new ListNode(8);\n// l1.next.next = new ListNode(3);\n//\n ListNode l2 = new ListNode(5);\n// l2.next=new ListNode(6);\n// l2.next.next = new ListNode(4);\n addTwoNumbers(l1, l2);\n\n\n }", "public void linkList(List<Student> list)\r\n\t{\r\n\t\tlist.add(s1);\r\n\t\tlist.add(s2);\r\n\t\tlist.add(s3);\r\n\t\tlist.add(s4);\r\n\t\tlist.add(s5);\r\n\t\tlist.add(s6);\r\n\t\tSystem.out.println(\"Objects of LinkedList\");\r\n\t\tfor(int i=0;i<list.size();i++)\r\n\t\t{\r\n\t\t\tSystem.out.println(list.get(i));\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"enter the choice:\");\r\n\t\tSystem.out.println(\"1. Delete an object 2. Add an object \");\r\n\t\tint choice = scanner.nextInt();\r\n\t\tif(choice==1)\r\n\t\t\tdeleteListObject(list);\r\n\t\telse \r\n\t\t\taddListObject(list);\r\n\t\t\t\t\r\n\t}", "public LinkedListStructureofaSinglyLinkedListClass() {\n\t\theadNode=null;\n\t\tsize=0;\n\t\t\n\t}", "public static void main(String[] args) {\n list = new LinkedList(0);\n\n // add more elements to LinkedList\n list.push(1);\n list.push(2);\n list.push(3);\n list.push(4);\n list.pop();\n list.pop();\n list.push(42);\n list.push(42);\n list.push(42);\n list.push(42);\n list.pop();\n list.pop();\n list.push(3);\n list.push(4);\n list.pop();\n list.remove(4);\n list.remove(3);\n list.remove(42);\n list.remove(0);\n list.remove(-42);\n list.remove(2);\n list.remove(0);\n list.remove(0);\n list.remove(0);\n list.remove(0);\n list.remove(0);\n list.remove(-1);\n\n\n\n for(int i = 0; i < list.getLength(); i++) {\n System.out.println(\"Print: list: \\t\\t\" + list.get(i));\n }\n }", "public static void main(String[] args) {\n// link.deleteAtIndex(1);\n// System.out.println(link.get(1));\n\n ListNode l1 = new ListNode(3);\n l1.add(9).add(9).add(9).add(9).add(9).add(9).add(9).add(9).add(9);\n ListNode l2 = new ListNode(7);\n N445TwoNumSum2 su = new N445TwoNumSum2();\n su.addTwoNumbers(l1,l2);\n }", "public LinkedList(){\n size=0;\n }", "public MySinglyLinkedList() { }", "public CircularDoublyLinkedList() {\r\n\t\tnumItems = 0;\r\n\r\n\t\t// create a dummy head node\r\n\t\thead = new DoublyNode(null);\r\n\t\thead.setPrev(head);\r\n\t\thead.setNext(head);\r\n\t}", "private void createNodes() {\n head = new ListNode(30);\n ListNode l2 = new ListNode(40);\n ListNode l3 = new ListNode(50);\n head.next = l2;\n l2.next = l3;\n }", "private static void test03() {\n\t ListNode n1 = new ListNode(1);\n\t ListNode n2 = new ListNode(2);\n\t ListNode n3 = new ListNode(3);\n\t ListNode n4 = new ListNode(4);\n\t ListNode n5 = new ListNode(5);\n\t ListNode n6 = new ListNode(6);\n\n\t n1.next = n2;\n\t n2.next = n3;\n\t n3.next = n4;\n\t n4.next = n5;\n\t n5.next = n6;\n\t n6.next = n6;\n\n\t System.out.println(meetingNode(n1));\n\t }", "@Test\n public void addToNonEmptyCircularList() {\n CircularDoubleLinkedListHW list= new CircularDoubleLinkedListHW();\n list.add(\"A\");\n list.add(\"C\");\n list.add(\"D\");\n list.add(\"E\");\n list.add(\"F\");\n list.add(\"G\");\n assertEquals(\"[A,C,D,E,F,G,]\", list.toString());\n assertEquals(6, list.size());\n //add to a specific index\n list.add(1, \"B\");\n list.add(5, \"B\");\n assertEquals(\"[A,B,C,D,E,B,F,G,]\", list.toString());\n assertEquals(8, list.size());\n //add to the first index\n list.add(0, \"B\");\n assertEquals(\"[B,A,B,C,D,E,B,F,G,]\", list.toString());\n assertEquals(9, list.size());\n //add to second half\n list.add(7, \"B\");\n assertEquals(\"[B,A,B,C,D,E,B,B,F,G,]\", list.toString());\n assertEquals(10, list.size());\n //add to last index\n list.add(10, \"B\");\n assertEquals(\"[B,A,B,C,D,E,B,B,F,G,B,]\", list.toString());\n assertEquals(11, list.size());\n }", "public CircularLinkedList()\n {\n current = null;\n size = 0;\n }", "public static void main ( String args[] ) {\r\n\t\t\r\n\t\t// test no-argument\r\n\t\tSystem.out.println(\"Testing no-argument constructor...\");\r\n\t\tIntNode list1 = new IntNode(); \r\n\t\tSystem.out.println(list1.toString());\r\n\t\t\r\n\t\t// test add\r\n\t\tSystem.out.println(\"Test add method on list1...\");\r\n\t\tlist1.addNodeAfterThis(51);\r\n\t\tlist1.addNodeAfterThis(47);\r\n\t\tlist1.addNodeAfterThis(68);\r\n\t\tSystem.out.println(list1.toString());\r\n\t\t\r\n\t\t// test toString on third node\r\n\t\tSystem.out.println(\"Testing toString on third node...\");\r\n\t\tSystem.out.println(list1.link.link.toString());\r\n\t\t\r\n\t\t// test remove\r\n\t\tSystem.out.println(\"Testing remove on node after 47...\");\r\n\t\t// move to 47\r\n\t\tlist1.link.link.removeNodeAfterThis();\r\n\t\tSystem.out.println( list1.toString());\r\n\t\t\r\n\t\t// testing constructor\r\n\t\tSystem.out.println(\"\\nTesting regular constructor and setting head node to 43...\");\r\n\t\tIntNode list2 = new IntNode(43, null);\r\n\t\tSystem.out.println(list2.toString());\r\n\t\t\r\n\t\t// add nodes\r\n\t\tSystem.out.println(\"Adding nodes to list2...\");\r\n\t\tlist2.addNodeAfterThis(87);\r\n\t\tlist2.addNodeAfterThis(18);\r\n\t\tlist2.addNodeAfterThis(73);\r\n\t\tSystem.out.println(list2.toString());\r\n\t\t\r\n\t\t// test listLength\r\n\t\tSystem.out.println(\"There are \" + listLength(list2) + \" nodes in list2.\\n\");\r\n\t\t\r\n\t\t// test set and get for link\r\n\t\tSystem.out.println(\"Removing node after 73 using set method...\");\r\n\t\t\t// removes node after 73 by GETting the link of the node after it and \r\n\t\t\t// SETting it to be the current link\r\n\t\t\tlist2.link.setLink(list2.link.link.getLink());\r\n\t\tSystem.out.println(list2.toString());\r\n\t\t\r\n\t\t// test listLength again\r\n\t\t\tSystem.out.println(\"There are \" + listLength(list2) + \" nodes in list2.\\n\");\r\n\t\t\r\n\t\t// testing set for node\r\n\t\tSystem.out.println(\"Changing third node to 86 using set method...\");\r\n\t\t\tlist2.link.link.setNode(86);\r\n\t\tSystem.out.println(list2.toString());\r\n\t\t\r\n\t\t\r\n\t\t// test search method\r\n\t\tSystem.out.println(\"\\nSearching for 86 in list2 using search method...\");\r\n\t\tif (search(list2, 86))\r\n\t\t\tSystem.out.println(\"86 was found in list2\");\r\n\t\telse\r\n\t\t\tSystem.out.println(\"86 was NOT found in list2\");\r\n\t\t\r\n\t\t// test search method\r\n\t\tSystem.out.println(\"\\nSearching for 87 in list2 using search method...\");\r\n\t\tif (search(list2, 87))\r\n\t\t\tSystem.out.println(\"87 was found in list2\");\r\n\t\telse\r\n\t\t\tSystem.out.println(\"87 was NOT found in list2\");\r\n\t\t\r\n\t\t// test listEvenNumber method\r\n\t\tSystem.out.println(\"\\nTesting listEvenNumber method...\");\r\n\t\tSystem.out.println(list1.toString());\r\n\t\tif( listEvenNumber(list1) < 2 )\r\n\t\t\tSystem.out.println(\"There is \" + listEvenNumber(list1) + \" even number in list1.\");\r\n\t\telse\r\n\t\t\tSystem.out.println(\"There are \" + listEvenNumber(list1) + \" even numbers in list1.\");\r\n\r\n\t\tSystem.out.println(list2.toString());\r\n\t\tif( listEvenNumber(list2) < 2 )\r\n\t\t\tSystem.out.println(\"There is \" + listEvenNumber(list2) + \" even number in list2.\");\r\n\t\telse\r\n\t\t\tSystem.out.println(\"There are \" + listEvenNumber(list2) + \" even numbers in list2.\");\r\n\t\t\r\n\t\t// test addToEnd\r\n\t\tSystem.out.println(\"\\nTesting addToEnd on both list1 and list2...\");\r\n\t\tlist1.addToEnd( 88 );\r\n\t\tlist2.addToEnd( 88 );\r\n\t\tSystem.out.println(list1.toString());\r\n\t\tSystem.out.println(list2.toString());\r\n\t\t\r\n\t\t// test sumLast\r\n\t\tSystem.out.println(\"\\nTesting sumLast on both list1 and list2...\");\r\n\t\tSystem.out.println(list1.toString());\r\n\t\tSystem.out.println(\"The sum of list1 is \" + sumLast(list1, 7) + \".\");\r\n\t\tSystem.out.println(list2.toString());\r\n\t\tSystem.out.println(\"The sum of list2 is \" + sumLast(list2, 7) + \".\");\r\n\t\t\r\n\t\tSystem.out.println(\"\\nTesting sumLast with parameter of 2(only the first 2)...\");\r\n\t\tSystem.out.println(list1.toString());\r\n\t\tSystem.out.println(\"The sum of list1 is \" + sumLast(list1, 2) + \".\");\r\n\t\tSystem.out.println(list2.toString());\r\n\t\tSystem.out.println(\"The sum of list2 is \" + sumLast(list2, 2) + \".\");\r\n\t\t\r\n\t\t// test copyOdd\r\n\t\tSystem.out.println(\"\\nTesting copyOdd method...\");\r\n\t\tSystem.out.println(list1.toString());\r\n\t\tSystem.out.println(\"The odd elements in list1 are \" + copyOdd(list1).toString());\r\n\t\tSystem.out.println(list2.toString());\r\n\t\tSystem.out.println(\"The odd elements in list2 are \" + copyOdd(list2).toString());\r\n\t\t\r\n\t\t// create new IntNode list\r\n\t\tIntNode list3 = new IntNode( 50, null );\r\n\t\tlist3.addNodeAfterThis(14);\r\n\t\tlist3.addNodeAfterThis(50);\r\n\t\tlist3.addNodeAfterThis(35);\r\n\t\tlist3.addNodeAfterThis(50);\r\n\t\tlist3.addNodeAfterThis(76);\r\n\t\t\r\n\t\t// test removeAll\r\n\t\tSystem.out.println(\"\\nlist3...\");\r\n\t\tSystem.out.println(list3.toString());\r\n\t\tSystem.out.println(\"\\nTesting removeAll on list3 with 50 as the int parameter...\");\r\n\t\tSystem.out.println(removeAll(list3, 50).toString());\r\n\t\t\r\n\t\t// test reverse\r\n\t\tSystem.out.println(\"\\nlist2...\");\r\n\t\tSystem.out.println(list2.toString());\r\n\t\tSystem.out.println(\"\\nTesting reverse on list2...\");\r\n\t\tSystem.out.println(reverse(list2).toString());\r\n\t\t\r\n\t\t// test hasCycle\r\n\t\tSystem.out.println(\"\\nTesting hasCycle on list1 and list3...\");\r\n\t\tSystem.out.println(list1.toString());\r\n\t\tif( hasCycle(list1) )\r\n\t\t\tSystem.out.println(\"list1 is cyclic.\");\r\n\t\telse\r\n\t\t\tSystem.out.println(\"list1 is acyclic.\");\r\n\t\t\r\n\t\tSystem.out.println(list3.toString());\r\n\t\tif( hasCycle(list3) )\r\n\t\t\tSystem.out.println(\"list3 is cyclic.\");\r\n\t\telse\r\n\t\t\tSystem.out.println(\"list3 is acyclic.\");\r\n\t\t\r\n\t}", "public MyLinkedList() {\n dummyHead = new Node();\n size = 0;\n }", "public MyLinkedList() {\n first = null;\n n = 0;\n }", "private static void appendTheSpecifiedElementToLinkedList() {\n\t\tLinkedList<Integer> list = new LinkedList<Integer>();\n\t\tlist.add(10);\n\t\tlist.add(20);\n\t\tlist.add(30);\n\t\tlist.add(40);\n\t\tlist.add(50);\n\t\tSystem.out.println(\"LinkedList is : \" + list);\n\n\t}", "public LinkedList(){\n this.size = 0;\n first = null;\n last = null;\n }", "public static void main(String args[]){\n DllNode nj = new DllNode(new Integer(25));\n DllNodeList nList = new DllNodeList();\n \n //Add the head element\n nList.addToHead(nj.info);\n \n System.out.print(\"Starting to execute the process\");\n //Use methods \"add to head\" and \"add to tail\" to build up the double linked lists\n for(long i=100; i < 121; i++){\n nList.addToTail(new Long(i));\n }\n \n for(long i=99; i >79; i--){\n \tnList.addToHead(new Long(i));\n }\n \n //Verify the list built\n nList.printAll();\n \n //Find an element in the list\n System.out.println(\"Is element 117 in the list? \" + nList.isInList(117));\n \n //Delete and confirm if the elment is deleted\n nList.delete(new Integer(25));\n nList.printAll();\n \n nList.delete(new Integer(111));\n nList.printAll();\n \n nList.delete(new Integer(120));\n nList.printAll();\n \n //Check delete from Tail and Delete from Head methods\n nList.deleteFromTail();\n nList.printAll();\n \n nList.deleteFromHead();\n nList.printAll();\n \n //Create and test a new list with only one element\n DllNode nj_new = new DllNode(new Integer(38));\n DllNodeList nList_new = new DllNodeList();\n nList_new.addToHead(nj_new.info);\n \n nList_new.printAll();\n \n //nList_new.delete(new Integer(38));\n //nList_new.deleteFromHead();\n nList_new.deleteFromTail();\n\n System.out.println(\" Should be nothing in the list \" );\n nList_new.printAll();\n \n }", "@Test\r\n public void testBasic() throws NoSuchFieldException, SecurityException, IllegalArgumentException, IllegalAccessException\r\n {\r\n DoublyLinkedList<Integer> list = new DoublyLinkedList<Integer>();\r\n assertEquals(\"[]\", list.toString());\r\n assertEquals(0, list.size());\r\n testLinks(list);\r\n list.insertTail(5);\r\n assertEquals(\"[5]\", list.toString());\r\n assertEquals(1, list.size());\r\n testLinks(list);\r\n list.insertTail(6);\r\n assertEquals(\"[5, 6]\", list.toString());\r\n assertEquals(2, list.size());\r\n testLinks(list);\r\n list.popLast();\r\n assertEquals(\"[5]\", list.toString());\r\n assertEquals(1, list.size());\r\n testLinks(list);\r\n list.popLast();\r\n assertEquals(\"[]\", list.toString());\r\n assertEquals(0, list.size());\r\n testLinks(list);\r\n }", "public DoublyLinkedList(){\r\n\r\n\t\thead = null;\r\n\t\ttail = null;\r\n\t\tcount = 0;\r\n\t}", "private static void test02() {\n\t ListNode n1 = new ListNode(1);\n\t ListNode n2 = new ListNode(2);\n\t ListNode n3 = new ListNode(3);\n\t ListNode n4 = new ListNode(4);\n\t ListNode n5 = new ListNode(5);\n\t ListNode n6 = new ListNode(6);\n\n\t n1.next = n2;\n\t n2.next = n3;\n\t n3.next = n4;\n\t n4.next = n5;\n\t n5.next = n6;\n\t n6.next = n3;\n\n\t System.out.println(meetingNode(n1));\n\t }", "public CircList() // constructor\r\n {\r\n count = 0; // no links on list yet\r\n current = null;\r\n }", "public MyLinkedList() \n\t{\n\t\t\n\t}", "private void printList() {\n if (head == null)\n return;\n ListNode current = head;\n int count = 0;\n while (current != null) {\n count++;\n System.out.print(current.data + \" \");\n current = current.next;\n }\n System.out.println();\n System.out.println(\"Number of nodes in the list are:: \" + count);\n }", "public LinkedList(){\n this.head = null;\n this.numNodes = 0;\n }", "public int Count()\n {\n\tint total = 0;\n\tnode cur = new node();\n\tcur = Head.Next;\n\tif(cur == Head)\n\t return total;\n\twhile(cur != Head)\n\t {\n\t\ttotal++;\n\t\tcur = cur.Next;\n\t }\n\treturn total;\n }", "public SingleLinkedList() {\r\n start = null;\r\n System.out.println(\"A List Object was created\");\r\n }", "public void makeCircular() {\n\t\t// write your code for makeCircular using the specification above\n\t\tNode noderef = head; \n\t\tif (this.size()==1){\n\t\t\tnoderef.next = head;\n\t\t\treturn;\n\t\t}\n\t\tif(this.size()==0){\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tfor(int counter=0; counter < this.size()-1; counter++){\n\t\t\tnoderef = noderef.next;\n\t\t}\n\t\tnoderef.next = head; \n\t}", "public static void main(String[] args) {\n\t LinkedList<String> linkedlist = new LinkedList<String>();\r\n\t \r\n\t // Step2: Add elements to LinkedList\r\n\t linkedlist.add(\"Tim\");\r\n\t linkedlist.add(\"Rock\");\r\n\t linkedlist.add(\"Hulk\");\r\n\t linkedlist.add(\"Rock\");\r\n\t linkedlist.add(\"James\");\r\n\t linkedlist.add(\"Rock\");\r\n\t \r\n\t //Searching first occurrence of element\r\n\t int firstIndex = linkedlist.indexOf(\"Rock\");\r\n\t System.out.println(\"First Occurrence: \" + firstIndex);\r\n\t \r\n\t //Searching last occurrence of element\r\n\t int lastIndex = linkedlist.lastIndexOf(\"Rock\");\r\n\t System.out.println(\"Last Occurrence: \" + lastIndex);\r\n\t \r\n\t // Getting First element of the List\r\n\t Object firstElement = linkedlist.getFirst();\r\n\t System.out.println(\"First Element is: \"+firstElement);\r\n\t \t \r\n\t \r\n\t // Displaying LinkedList elements\r\n\t System.out.println(\"LinkedList elements:\");\r\n\t Iterator it= linkedlist.iterator();\r\n\t while(it.hasNext()){\r\n\t System.out.println(it.next());\r\n\t }\r\n\t \r\n\t \r\n\t // Obtaining Sublist from the LinkedList -- sublist of LinkedList using subList(int startIndex, int endIndex)\r\n\t List sublist = linkedlist.subList(2,5);\r\n\t \r\n\t // Displaying SubList elements\r\n\t System.out.println(\"\\nSub List elements:\");\r\n\t Iterator subit= sublist.iterator();\r\n\t while(subit.hasNext()){\r\n\t System.out.println(subit.next());\r\n\t }\r\n\t \r\n\t sublist.remove(\"Item4\");\r\n\t System.out.println(\"\\nLinkedList elements After remove:\");\r\n\t Iterator it2= linkedlist.iterator();\r\n\t while(it2.hasNext()){\r\n\t System.out.println(it2.next());\r\n\t }\r\n\t \r\n\t \r\n\t}", "public static void main(String[] args)\n\t{\n\t\tSingleLinkedList slist = new SingleLinkedList();\n\t\t\n\t\tslist.addAtLast(10);\n slist.addAtLast(20);\n slist.addAtLast(30);\n slist.addAtLast(40);\n\t\t\n slist.printList();\n slist.addAtFirst(60);\n slist.addAtFirst(40);\n slist.addAtFirst(50);\n slist.printList();\n\t\t\n\t\tslist.deleteFirst();\n\t\tslist.printList();\n \n\t\tslist.deleteLast();\n\t\tslist.printList();\n\t\t\n slist.deleteElement(30);\n slist.printList();\n slist.deleteList();\n slist.printList();\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tSinglyLinkedList<Integer> linkedList = new SinglyLinkedList<Integer>();\r\n\t\tlinkedList.add(10);\r\n\t\tlinkedList.add(20);\r\n\t\tlinkedList.add(30);\r\n\t\t//linkedList.reverseDisplay();\r\n\t\tSystem.out.println(linkedList.get(1));\r\n\t\t//linkedList.display();\r\n\t\t//linkedList.display();\r\n\t\tlinkedList.delete(1);\r\n\t\t\r\n\t}", "public MyLinkedList()\n {\n head = new Node(null, null, tail);\n tail = new Node(null, head, null);\n }", "public static void main(String[] args) {\n ListNode head = new ListNode(10);\n ListNode secound = new ListNode(8);\n ListNode third = new ListNode(1);\n ListNode fourth = new ListNode(11);\n\n //Attach them together to from a list\n head.next = secound; // 10 ==> 8\n secound.next = third; // 10 ==> 8 ==> 1\n third.next = fourth; // 10 ==> 8 ==> 1 ==> 11 ====> null\n\n display(head);\n//\n// display(insertAtBeginning(head, 15));\n//\n// display(insertAtEnding(head, 1000));\n//\n// System.out.println(\"Length is : \" + length(head));\n\n deletAtPostion(head, 3);\n \n\n display(head);\n }", "public LinkedList(){\n count = 0;\n front = rear = null;\n }", "public static void main(String[] args) {\n\t\tLinkedList<Object> list = new LinkedList<Object>();\r\n\t\t\r\n\t\t//makes a random generator\r\n\t\tRandom r = new Random();\r\n\t\t\r\n\t\t//adds ten values to the list(alternating between strings and random ints from 0-990\r\n\t\tlist.add(\"str1\");\r\n\t\tlist.add(r.nextInt(100));\r\n\t\tlist.add(\"str2\");\r\n\t\tlist.add(r.nextInt(100));\r\n\t\tlist.add(\"str3\");\r\n\t\tlist.add(r.nextInt(100));\r\n\t\tlist.add(\"str4\");\r\n\t\tlist.add(r.nextInt(100));\r\n\t\tlist.add(\"str5\");\r\n\t\tlist.add(r.nextInt(100));\r\n\t\t\r\n\t\t//prints the list and its size\r\n\t\tSystem.out.print(\"List: \"+ list + \"\t Size: \" + list.size());\r\n\t\tSystem.out.println();\r\n\t\t\r\n\t\t//deletes the first node(head)\r\n\t\tlist.remove(0);\r\n\t\t\r\n\t\t//prints the list and its size\r\n\t\tSystem.out.print(\"List: \"+ list + \"\t Size: \" + list.size());\r\n\t\tSystem.out.println();\r\n\t\t\r\n\t\t//deletes the third node from the list\r\n\t\tlist.remove(2);\r\n\t\t\r\n\t\t//prints the list and its size\r\n\t\tSystem.out.print(\"List: \"+ list + \"\t Size: \" + list.size());\r\n\t\tSystem.out.println();\r\n\t\t\r\n\t\t//deletes the last node from the list\r\n\t\tlist.removeLast();\r\n\t\t\r\n\t\t//prints the list and its size\r\n\t\tSystem.out.print(\"List: \"+ list + \"\t Size: \" + list.size());\r\n\t\tSystem.out.println();\r\n\t}", "public CustomSinglyLinkedList()\n {\n head = null;\n tail = head;\n size = 0;\n }", "public SoretdLinkedListTest()\n {\n }", "@Test\n public void testGetCost_02() {\n System.out.println(\"getCost\");\n Skill s = new Skill(\"Java\", \"Technical\", 2, 3, Skill.PLUS_2);\n \n SkillsList instance = new SkillsList();\n instance.add(s);\n int result = instance.getCost();\n assertTrue(result==6);\n }", "public static void main(String[] args) {\r\n\t\tListNode head = new ListNode(1);\r\n\t\thead.next = new ListNode(2);\r\n\t\thead.next.next = new ListNode(3);\r\n\t\thead.next.next.next = new ListNode(4);\r\n\t\thead.next.next.next.next = new ListNode(5);\r\n\t\tSystem.out.println(\"Middle Node : 3 got : \" + findMiddle(head).value);\r\n\t\thead.next.next.next.next.next = new ListNode(6);\r\n\t\tSystem.out.println(\"Middle Node : 4 got : \" + findMiddle(head).value);\r\n\t\thead.next.next.next.next.next.next = new ListNode(7);\r\n\t\tSystem.out.println(\"Middle Node : 4 got : \" + findMiddle(head).value);\r\n\t}", "public SinglyLinkedList(){\n this.first = null;\n }", "public static void main(String args[]) {\n LinkedList list = new LinkedList();\n // add elements to the linked list\n list.add(\"M\");\n list.add(\"A\");\n list.add(\"N\");\n list.add(\"is\");\n list.add(\"#\");\n list.addLast(\"1\");\n list.addFirst(\"A\");\n list.add(0, \"A2\");\n System.out.println(\"The contents of the linked list are: \" + list); \n }", "public WCLinkedList(){\n size=0;\n head = null;\n tail = null;\n }", "public MyLinkedList() {\n length = 0;\n }", "public static void main(String[] args) {\n\n DoublyLinkedList Dll1= new DoublyLinkedList();\n\n// Dll1.push(1);\n// Dll1.push(2);\n// Dll1.push(3);\n// Dll1.push(4);\n// Dll1.insertAtEnd(5);\n// Dll1.insertAtEnd(6);\n// Dll1.deleteTail();\n// Dll1.printList();\n// Dll1.printReverse();\n// Dll1.deleteHead();\n\n }", "public static void main(String[] args) {\r\n\r\n \t//creates the scanner\r\n Scanner sc = new Scanner(System.in);\r\n\r\n //scans the first int\r\n int n = sc.nextInt();\r\n \r\n //creates n random numbers\r\n System.out.println(n + \" random integers between 0 and 99\");\r\n uppg4CircularLinkedList<Integer> list = new uppg4CircularLinkedList<Integer>();\r\n //add the numbers to the list\r\n for (int i = 0; i < n; i++)\r\n list.addlast((int)(Math.random() * (99-0)) + 0);\r\n //print the list\r\n System.out.println(list);\r\n System.out.println();\r\n\r\n //add a random number as last\r\n System.out.println(\"Random number will be added at the end of the list:\");\r\n list.addlast((int)(Math.random() * (99-0)) + 0);\r\n System.out.println(list);\r\n\r\n //add a random number as first\r\n System.out.println(\"Random number will be added at the front of the list:\");\r\n list.addfirst((int)(Math.random() * (99-0)) + 0);\r\n System.out.println(list);\r\n\r\n //remover the last number\r\n System.out.println(\"Number will be removed at the end of the list:\");\r\n list.removelast();\r\n System.out.println(list);\r\n\r\n //remove the first number\r\n System.out.println(\"Number will be removed at the front of the list:\");\r\n list.removefirst();\r\n System.out.println(list);\r\n }", "public MyLinkedList() {\n this.size = 0;\n this.head = new ListNode(0);\n }", "public static void main(String[] args) {\n MyLinkedList<Integer> list = new MyLinkedList<>();\n IntStream.rangeClosed(1, 10).forEach(i -> list.add(i));\n\n\n // for (int i = 0; i < list.size(); i++) {\n // System.out.println(list.get(i));\n // }\n\n list.add(4, 100);\n\n list.add(0, 200);\n list.add(0, 300);\n list.add(0, 400);\n list.add(0, 500);\n\n for (int i = 0; i < list.size(); i++) {\n System.out.println(list.get(i));\n }\n\n list.remove(0);\n list.remove(0);\n list.remove(2);\n\n list.remove();\n list.remove();\n for (int i = 0; i < list.size(); i++) {\n System.out.print(list.get(i) + \" \");\n }\n System.out.println();\n }", "public SinglyLinkedList() {\n this.head = null; \n }", "@Test\r\n\tpublic void testLinkedListRecursive() {\r\n\t\tassertNotNull(ll);\r\n\t\tassertTrue(ll.isEmpty());\r\n\t}", "@Test\n public void ListFactoryTester() {\n \tCalculator calculadora = new ImpCalculadora();\n \t//Se inicializan los factorys\n \tStackFactory<Integer> stackFactory = new StackFactory<Integer>();\n \tListFactory<Integer> listFactory = new ListFactory<Integer>();\n \tStack<Integer> stack;\n \tAbstractList<Integer> lista;\n \t\n \t lista = listFactory.getList(\"Lista Circular\");\n \t CircularList<Integer> list = (CircularList<Integer>) lista;\n // assert statements\n //Aquí se ejecutara nuestro test.\n \n assertEquals(0, list.size(), \"Se debe verificar que el list inicie vacío.\");\n list.addLast(10);\n list.addLast(5);\n int num2=list.removeLast();\n int num1= list.removeLast();\n int suma=calculadora.Calculate(num1,num2 , \"+\");\n int resta=calculadora.Calculate(num1,num2 , \"-\");\n int multiplicacion=calculadora.Calculate(num1,num2 , \"*\");\n int division=(int)(calculadora.Calculate(num1,num2 , \"/\"));\n assertEquals(15, suma, \"Se debe verificar que el resultado de la suma sea 15 y que funcione\");\n assertEquals(5, resta, \"Se debe verificar que el resultado de la resta sea 5 y que funcione\");\n assertEquals(2, division, \"Se debe verificar que el resultado de la division sea 2 y que funcione\");\n assertEquals(50, multiplicacion, \"Se debe verificar que el resultado de la multiplicacion sea 50 y que funcione\");\n }", "@Test\n public void testList() {\n SLNode one = new SLNode(1, null);\n SLNode twoOne = new SLNode(2, one);\n SLNode threeTwoOne = new SLNode(3, twoOne);\n\n SLNode x = SLNode.of(3, 2, 1);\n assertEquals(threeTwoOne, x);\n }", "public int sizeOfLinkedList(){\n\t\treturn size;\n\t}", "public int length(){\r\n int counter = 0;\r\n ListNode c = head;\r\n while(c != null){\r\n c = c.getLink();\r\n counter++;\r\n }\r\n return counter;\r\n }", "@Test\r\n public void testGet()\r\n {\r\n \tDoublyLinkedList<Integer> testDLL = new DoublyLinkedList<Integer>();\r\n testDLL.isEmpty();\r\n \r\n assertEquals( \"Check for node from an empty doubly linked list\", null, testDLL.get(0));\r\n \r\n testDLL.insertBefore(0,1);\r\n assertSame( \"Check for node with one item\", 1, testDLL.get(0));\r\n \r\n testDLL = new DoublyLinkedList<Integer>();\r\n testDLL.insertBefore(0,1);\r\n testDLL.insertBefore(1,2);\r\n testDLL.insertBefore(2,3);\r\n assertNull( \"Check if test gets node in position 0 of length 3\", testDLL.get(3) );\r\n assertEquals( \"Check if test gets node in position 2 of length 3\", Integer.valueOf(3), testDLL.get(2) );\r\n assertEquals( \"Check if test gets node in position 1 of length 3\", Integer.valueOf(2), testDLL.get(1) );\r\n \r\n testDLL.insertBefore(-4, 8);\r\n assertEquals( \"Check for node while node is not on doubly linked list\", null, testDLL.get(-4) );\r\n \r\n testDLL.insertBefore(360, 7);\r\n assertEquals( \"Check for node while node is not on doubly linked list\", null, testDLL.get(360) );\r\n \r\n \r\n }", "public static void main(String[] args) {\n\n Node n1 = new Node(5);\n n1.next = new Node(5);\n n1.next.next = new Node(5);\n\n Node n2 = new Node(5);\n n2.next = new Node(5);\n n2.next.next = new Node(5);\n\n AddTwoNumbers addTwoNumbers = new AddTwoNumbers();\n Node result = addTwoNumbers.add(n1,n2);\n\n while(result != null){\n System.out.println(result.data);\n result = result.next;\n }\n\n }", "public void add(int value) {\nNode newNode = new Node(value);\nif (head == null) {\nhead = newNode;\nsize++;\nreturn;\n}\nNode current = head;\nwhile (current.next != null) {\ncurrent = current.next;\n}\ncurrent.next = newNode;\nsize++;\n}", "public static void main(String[] args) {\n\t\t\n\t\tLinkListImpl list = new LinkListImpl();\n\t\tlist.insertAtLast(12);\n\t\tlist.insertAtLast(16);\n\t\tlist.insertAtLast(18);\n\t\tlist.insertAtLast(22);\n\t\tlist.insertAtLast(25);\n\t\tlist.insertAtIndex(15, 1);\n\t\tlist.insertAtIndex(10,0);\n\t\tSystem.out.println(\"Size of linked list is ->\"+list.Size());\n\t\tlist.PrintLinkedListElement();\n\t\tlist.removeNodeAt(3);\n\t\tlist.removeFirstNode();\t\t\n\t\tlist.removeLastNode();\n\t\tlist.PrintLinkedListElement();\n\t\tSystem.out.println(\"Size of linked list is ->\"+list.Size());\n\t\t\n\t}", "public static void main(String[] args) {\n List<Integer> linkedList = new LinkedList<Integer>();\r\n\r\n // Java 11 introduced var, here var is an identifier not an keyword\r\n var arrayList = new ArrayList<Integer>();\r\n\r\n // Old way of doing\r\n //LinkedList<Integer> list = new LinkedList<Integer>();\r\n\r\n //linkedList.add(10);\r\n\r\n\r\n dotiming(\"LinkedList\", linkedList);\r\n dotiming(\"ArrayList\", arrayList);\r\n\r\n int size = linkedList.size();\r\n System.out.println(size);\r\n int size1 = arrayList.size();\r\n System.out.println(size1);\r\n }", "public Node method2(Node head)\n {\n Node[] linkedList = new Node[100];\n int index = 0;\n while (head != null)\n {\n linkedList[index] = head;\n head = head.next;\n index++;\n }\n\n return linkedList[index/2];\n }", "public static void main(String[] args) {\n ListNode<Integer> head = new ListNode<>(5);\n LinkedListBasic<Integer> linkedListBasic = new LinkedListBasic<>();\n for (int i = 10; i < 50; i+=5){\n linkedListBasic.insertNewNode(i, head);\n }\n\n /*linkedListBasic.printLinkedList(head);\n reverseSubList(head, 2, 6);\n linkedListBasic.printLinkedList(head);*/\n\n linkedListBasic.printLinkedList(head);\n ListNode<Integer> newHead = reverseLinkedList2(head);\n linkedListBasic.printLinkedList(newHead);\n reverseSubList(newHead, 2, 6);\n linkedListBasic.printLinkedList(newHead);\n\n }", "public static void main(String[] args) {\n\t\tLinkedList list=new LinkedList();\n\t\tSystem.out.println(list.size());\n\t\tSystem.out.println(list.isEmpty());\n\t\tlist.insert(\"Primero\");\n\t\tlist.insert(\"Segundo\");\n\t\tSystem.out.println(list.isEmpty());\n\t\tSystem.out.println(list.size());\n\t\tlist.print();\n\t}", "public LinkedList () {\n\t\thead = null;\n\t\tcount = 0;\n\t}", "public static void main(String args[])\n {\n \n final int size = 30;\n LinkedList testList = new LinkedList();\n Random rand = new Random();\n for(int i = 0; i < size; i ++)\n {\n testList.addNode(rand.nextInt(1000));\n }\n\n // print the unsroted list\n testList.printList();\n System.out.println(\"\");\n \n // run BubbleSort on the list\n testList.BubbleSort();\n \n // print the sorted list\n testList.printList();\n \n \n /*\n // my test data, because random numbers\n // are silly to use for testing\n LinkedList testList = new LinkedList();\n testList.addNode(650);\n testList.addNode(500);\n testList.addNode(700);\n testList.addNode(200);\n testList.addNode(220);\n testList.addNode(190);\n testList.addNode(150);\n testList.addNode(780);\n testList.addNode(400);\n testList.addNode(900);\n testList.addNode(10);\n */\n \n }", "public CircleComponent()\n {\n circles = new ArrayList<>();\n circleCounter = 0;\n\n }", "public static void main(String[] args)\n {\n LinkedList list=new LinkedList();\n list=list.insert(list,11);\n list=list.insert(list,22);\n list=list.insert(list,33);\n list.Print(list.head);\n list.insertAt(1,12);\n System.out.println();\n list.Print(list.head);\n list.last(44);\n System.out.println();\n list.Print(list.head);\n list.deleteAt(4);\n System.out.println();\n list.Print(list.head);\n list.deleteBy(11);\n System.out.println();\n list.Print(list.head);\n\n\n }", "public static void main(String[] args) {\n LinkedList<String> students = new LinkedList<>();\n\n //Add students to Linked List\n students.add(\"Charlie\");\n students.add(\"Sally\");\n students.add(\"Morgan\");\n students.add(\"Taylor\");\n students.add(\"Jamie\");\n\n students.addFirst(\"Sarah\"); //add students name to the beginning of the list\n students.addLast(\"Hailey\"); //add students name to the end of the list\n students.add(2,\"Tara\"); //add students name to the index specified\n\n String firstStudent = students.getFirst(); //Gets the first students name on the list\n System.out.println(\"First \" + firstStudent); //Prints out the first students name on the list\n String lastStudent = students.getLast(); //Gets the last name on the list\n System.out.println(\"Last \" + lastStudent); //Prints out the last students name on the list\n System.out.println(students.size()); //Prints out the size of the list\n System.out.println(students); //Prints out the full list\n\n String secondStudent = students.get(1); //gets the student at the specified index\n System.out.println(\"Second \" + secondStudent); //prints the second student on the list because it is the index specified above\n\n int i = students.indexOf(\"Morgan\"); //gets the specific INDEX of the array for Morgan\n System.out.println(\"Index of Morgan \" + i); //prints out the index of Morgan to the screen\n\n students.removeFirst(); //removes first name on the list\n students.removeLast(); //removes last name on the list\n students.remove(\"Jamie\"); //removes specific name from the list\n students.remove(1); //removes the name at a specific index\n System.out.println(students); //prints out a new students list based off the changes made\n\n boolean hasTaylor = students.contains(\"Taylor\"); //searches and finds student named Taylor from the list\n System.out.println(hasTaylor); //prints out if the name is found on the list\n\n students.clear(); //clears the list out\n System.out.println(students); //prints out the cleared list\n\n\n }", "public abstract LinkedList<Node> getSuccessors();", "public MyLinkedList() {\n size = 0;\n head = null;\n tail = null;\n }", "public LinkedList () {\n\t\tMemoryBlock dummy;\n\t\tdummy = new MemoryBlock(0,0);\n\t\ttail = new Node(dummy);\n\t\tdummy = new MemoryBlock(0,0);\n\t\thead = new Node(dummy);\n\t\ttail.next = head;\n\t\thead.previous = tail;\n\t\tsize = 2;\n\t}", "public SinglyLinkedCircular()\n {\n head = null;\n }", "public LinkedList() {\n head = null;\n numElement = 0;\n }", "public static void main(String[] args) {\n\t\tPoint pont1 = new Point(10, 10);\n\t\tPoint pont2 = new Point(20, 20);\n\t\tPoint pont3 = new Point(21, 22);\n\t\tPoint pont4 = new Point(22, 22);\n\t\tLinkedList lista = new LinkedList(pont1);\n\t\tlista.addItem(pont2);\n\t\tlista.addItem(pont3);\n\t\tlista.addItem(pont4);\n\t\tlista.addItem(pont2);\n\t\tSystem.out.println(lista);\n\t\tSystem.out.println(lista.getNext());\n\t\tSystem.out.println(lista.getPrev());\n\t\tSystem.out.println(lista.getFirst());\n\t}", "public SinglyLinkedList() {\n this.len = 0;\n }", "public static void main(String[] args) {\n\t\tCircularLinkedList<Integer> cl = new CircularLinkedList<Integer>();\n\t\t\t\n\t\tcl.addAtStart(1);\n\t\tSystem.out.println(cl.toString());\n\t\tcl.addAtStart(2);\n\t\tSystem.out.println(cl.toString());\n\t\tcl.addAtStart(3);\n\t\tSystem.out.println(cl.toString());\n\t\t\n\t\tcl.addAtEnd(1);\n\t\tSystem.out.println(cl.toString());\n\t\tcl.addAtEnd(2);\n\t\tSystem.out.println(cl.toString());\n\t\tcl.addAtEnd(3);\n\t\tSystem.out.println(cl.toString());\n\t\n\t\tSystem.out.println(\"Delete at start:\");\n\t\tcl.deleteAtStart();\n\t\tSystem.out.println(cl.toString());\n\t\t\n\t\tSystem.out.println(\"Delete at end:\");\n\t\tcl.deleteAtEnd();\n\t\tSystem.out.println(cl.toString());\n\t\t\n\t\tSystem.out.println(\"The size of the stack: \" + cl.size);\n\t}", "public static void main(String[] args) {\n MergeAlternateLinkedList linkedList=new MergeAlternateLinkedList();\n MergeAlternateLinkedList linkedList1=new MergeAlternateLinkedList();\n linkedList.push(2);\n linkedList.push(3);\n linkedList.push(4);\n System.out.println(\"First list-\");\n linkedList.printList();\n linkedList1.push(5);\n linkedList1.push(6);\n linkedList1.push(7);\n System.out.println(\"Second list-\");\n linkedList1.printList();\n //merge two linkedlist\n linkedList.mergeList(linkedList1);\n System.out.println(\"Print modified merge linked list 2\");\n linkedList1.printList();\n\n\n }", "public static void main(String[] args) {\n operationLinkedList();\n }", "public static void main(String a[]){\n TwoSumLeet s = new TwoSumLeet();\n ListNode b0=new ListNode(5);\n ListNode b1=new ListNode(6);\n ListNode b2=new ListNode(4);\n ListNode a0=new ListNode(2);\n ListNode a1=new ListNode(4);\n ListNode a2=new ListNode(3);\n a0.next=a1;\n a1.next=a2;\n b0.next=b1;\n b1.next=b2;\n\n final ListNode answ = s.addTwoNumbers(a0, b0);\n\n for (ListNode y =answ; y != null; y=y.next)\n System.out.print(y.val+\" \");\n System.out.println();\n }", "public SingleLinkedList()\n {\n head = null;\n tail = null;\n size=0;\n }" ]
[ "0.667932", "0.6672353", "0.6238946", "0.6184373", "0.6033198", "0.59680754", "0.5953159", "0.59437674", "0.5932951", "0.5929314", "0.592416", "0.5909844", "0.58486396", "0.5840291", "0.5834406", "0.5806785", "0.57955825", "0.57909316", "0.57648444", "0.5757479", "0.5725617", "0.5721387", "0.56993645", "0.5676028", "0.5640773", "0.56340104", "0.55983824", "0.5598099", "0.55960834", "0.5595581", "0.5584465", "0.5582737", "0.5573883", "0.5564843", "0.5562553", "0.55580246", "0.5554791", "0.555067", "0.55483574", "0.55480933", "0.55472416", "0.5546266", "0.55459917", "0.55441076", "0.55326355", "0.5527262", "0.5523052", "0.55135876", "0.5493449", "0.54898655", "0.5483264", "0.54776454", "0.54766065", "0.5472274", "0.5471403", "0.5470708", "0.54660094", "0.54618704", "0.5456662", "0.54524225", "0.5445125", "0.5442471", "0.5441803", "0.5436635", "0.54350907", "0.5431059", "0.5423771", "0.54193914", "0.54078966", "0.5405349", "0.5402479", "0.53999746", "0.5399487", "0.5398055", "0.53900194", "0.5379135", "0.5374401", "0.53651947", "0.53633535", "0.5357057", "0.5354919", "0.53542084", "0.53504914", "0.53498214", "0.53363186", "0.53317493", "0.53278226", "0.5326367", "0.53260374", "0.53205323", "0.53200984", "0.5297257", "0.5292215", "0.5290786", "0.52906644", "0.5290198", "0.52851087", "0.5283302", "0.5281882", "0.52813166" ]
0.53368396
84
metodo para crear los botones
private void ponerBoton(String rotulo) { JButton boton = new JButton(rotulo); milamina2.add(boton); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void crearBotones() {\n\t\tJButton botonTropa;\n\t\tArrayList<Tropa> tropasJugador = getJuego().getTurnoActual().getJugador().getTropas();\n\t\tint posicion = 0;\n\t\tfor (int i = 0; i < CANTIDADBOTONES; ++i) {\n\t\t\tif (tropasJugador.size() > i && !tropasJugador.get(i).isEnJuego()) {\n\t\t\t\tbotonTropa = new JButton(\" \" + tropasJugador.get(i).getNombre());\n\t\t\t\tponerIconosBotones(botonTropa, tropasJugador.get(i).getNombre());\n\n\t\t\t} else if (tropasJugador.size() > i && tropasJugador.get(i).isEnJuego()) {\n\t\t\t\tbotonTropa = new JButton(\" \" + tropasJugador.get(i).getNombre() + \" (En juego)\");\n\t\t\t\tponerIconosBotones(botonTropa, tropasJugador.get(i).getNombre());\n\t\t\t\tbotonTropa.setEnabled(false);\n\t\t\t} else {\n\t\t\t\tposicion = i + 1;\n\t\t\t\tbotonTropa = new JButton(\"Tropa \" + posicion);\n\t\t\t\tbotonTropa.setEnabled(false);\n\t\t\t}\n\n\t\t\tbotones.add(botonTropa);\n\t\t\tpanelBotones.add(botonTropa);\n\t\t}\n\t}", "private void crearObjetos() {\n // crea los botones\n this.btnOK = new CCButton(this.OK);\n this.btnOK.setActionCommand(\"ok\");\n this.btnOK.setToolTipText(\"Confirmar la Operación\");\n \n this.btnCancel = new CCButton(this.CANCEL);\n this.btnCancel.setActionCommand(\"cancel\");\n this.btnCancel.setToolTipText(\"Cancelar la Operación\");\n \n // Agregar los eventos a los botones\n this.btnOK.addActionListener(this);\n this.btnCancel.addActionListener(this);\n }", "public void inicializarBotones() {\n\t\t\n\t\t// aņadimos listeners a los botones del panel 'login'\n\t\tthis.controladorLogin = new ControladorLogin(vista, modelo);\n\t\tthis.controladorLogin.addListeners();\n\t\t\n\t\t// aņadimos listeners a los botones del panel 'registro'\n\t\tthis.controladorRegistro = new ControladorRegistro(vista, modelo);\n\t\tthis.controladorRegistro.addListeners();\n\t\t\n\t\t// aņadimos listeners a los botones del panel 'bienvenida'\n\t\tthis.controladorBienvenida = new ControladorBienvenida(vista, modelo);\n\t\tthis.controladorBienvenida.addListeners();\n\t\t\n\t\t// aņadimos listeners a los botones del panel 'sel_billete'\n\t\tthis.controladorBillete = new ControladorBillete(vista, modelo);\n\t\tthis.controladorBillete.addListeners();\n\t\t\n\t\t// aņadimos listeners a los botones del panel 'sel_fecha'\n\t\tthis.controladorFecha = new ControladorFecha(vista, modelo);\n\t\tthis.controladorFecha.addListeners();\n\t\t\n\t\t// aņadimos listeners a los botones del panel 'detalles_compra'\n\t\tthis.controladorDetalles = new ControladorDetalles(vista, modelo);\n\t\tthis.controladorDetalles.addListeners();\n\t\t\n\t\t// aņadimos listeners a los botones del panel 'pago'\n\t\tthis.controladorPago = new ControladorPago(vista, modelo);\n\t\tthis.controladorPago.addListeners();\n\t\t\n\t\t// aņadimos listeners a los botones del panel \"fin_pago\"\n\t\tthis.controladorFinPago = new ControladorFinPago(vista, modelo);\n\t\tthis.controladorFinPago.addListeners();\n\t}", "private void cargarBotones() throws Exception{\n Image img = null;\n Image img2 = null;\n try {\n img = Lienzo.cargarImagen(\"imagenes/skip.png\");\n //img2 = Lienzo.cargarImagen(\"imagenes/skipHover.png\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n //añadimos los botones al menu\n Boton b =new BotonGeneral(img, img, \"Menu\", 900, 550, img.getWidth(null), img.getHeight(null));\n new ObservadorCredits(b);\n botones.add(b);\n }", "void spawnBot( String className, String login, String password, String messager ) {\n CoreData cdata = m_botAction.getCoreData();\n long currentTime;\n\n String rawClassName = className.toLowerCase();\n BotSettings botInfo = cdata.getBotConfig( rawClassName );\n\n if( botInfo == null ) {\n\n if(messager != null)\n m_botAction.sendChatMessage( 1, messager + \" tried to spawn bot of type \" + className + \". Invalid bot type or missing CFG file.\" );\n else\n m_botAction.sendChatMessage( 1, \"AutoLoader tried to spawn bot of type \" + className + \". Invalid bot type or missing CFG file.\" );\n\n m_botAction.sendSmartPrivateMessage( messager, \"That bot type does not exist, or the CFG file for it is missing.\" );\n return;\n }\n\n Integer maxBots = botInfo.getInteger( \"Max Bots\" );\n Integer currentBotCount = m_botTypes.get( rawClassName );\n\n if( maxBots == null ) {\n\n if(messager != null)\n m_botAction.sendChatMessage( 1, messager + \" tried to spawn bot of type \" + className + \". Invalid settings file. (MaxBots improperly defined)\" );\n else\n m_botAction.sendChatMessage( 1, \"AutoLoader tried to spawn bot of type \" + className + \". Invalid settings file. (MaxBots improperly defined)\" );\n\n m_botAction.sendSmartPrivateMessage( messager, \"The CFG file for that bot type is invalid. (MaxBots improperly defined)\" );\n return;\n }\n\n if( login == null && maxBots.intValue() == 0 ) {\n\n if(messager != null)\n m_botAction.sendChatMessage( 1, messager + \" tried to spawn bot of type \" + className + \". Spawning for this type is disabled on this hub.\" );\n else\n m_botAction.sendChatMessage( 1, \"AutoLoader tried to spawn bot of type \" + className + \". Spawning for this type is disabled on this hub.\" );\n\n m_botAction.sendSmartPrivateMessage( messager, \"Bots of this type are currently disabled on this hub. If you are running another hub, please try from it instead.\" );\n return;\n }\n\n if( currentBotCount == null ) {\n currentBotCount = new Integer( 0 );\n m_botTypes.put( rawClassName, currentBotCount );\n }\n\n if( login == null && currentBotCount.intValue() >= maxBots.intValue() ) {\n\n if(messager != null)\n m_botAction.sendChatMessage( 1, messager + \" tried to spawn a new bot of type \" + className + \". Maximum number already reached (\" + maxBots + \")\" );\n else\n m_botAction.sendChatMessage( 1, \"AutoLoader tried to spawn a new bot of type \" + className + \". Maximum number already reached (\" + maxBots + \")\" );\n\n m_botAction.sendSmartPrivateMessage( messager, \"Maximum number of bots of this type (\" + maxBots + \") has been reached.\" );\n return;\n }\n\n String botName, botPassword;\n currentBotCount = new Integer( getFreeBotNumber( botInfo ) );\n\n if( login == null || password == null ) {\n botName = botInfo.getString( \"Name\" + currentBotCount );\n botPassword = botInfo.getString( \"Password\" + currentBotCount );\n } else {\n botName = login;\n botPassword = password;\n }\n\n Session childBot = null;\n\n try {\n // FIXME: KNOWN BUG - sometimes, even when it detects that a class is updated, the loader\n // will load the old copy/cached class. Perhaps Java itself is caching the class on occasion?\n if( m_loader.shouldReload() ) {\n System.out.println( \"Reinstantiating class loader; cached classes are not up to date.\" );\n resetRepository();\n m_loader = m_loader.reinstantiate();\n }\n\n Class<? extends SubspaceBot> roboClass = m_loader.loadClass( \"twcore.bots.\" + rawClassName + \".\" + rawClassName ).asSubclass(SubspaceBot.class);\n String altIP = botInfo.getString(\"AltIP\" + currentBotCount);\n int altPort = botInfo.getInt(\"AltPort\" + currentBotCount);\n String altSysop = botInfo.getString(\"AltSysop\" + currentBotCount);\n\n if(altIP != null && altSysop != null && altPort > 0)\n childBot = new Session( cdata, roboClass, botName, botPassword, currentBotCount.intValue(), m_group, altIP, altPort, altSysop, true);\n else\n childBot = new Session( cdata, roboClass, botName, botPassword, currentBotCount.intValue(), m_group, true);\n } catch( ClassNotFoundException cnfe ) {\n Tools.printLog( \"Class not found: \" + rawClassName + \".class. Reinstall this bot?\" );\n return;\n }\n\n currentTime = System.currentTimeMillis();\n\n if( m_lastSpawnTime + SPAWN_DELAY > currentTime ) {\n m_botAction.sendSmartPrivateMessage( messager, \"Subspace only allows a certain amount of logins in a short time frame. Please be patient while your bot waits to be spawned.\" );\n\n if( m_spawnQueue.isEmpty() == false ) {\n int size = m_spawnQueue.size();\n\n if( size > 1 ) {\n m_botAction.sendSmartPrivateMessage( messager, \"There are currently \" + m_spawnQueue.size() + \" bots in front of yours.\" );\n } else {\n m_botAction.sendSmartPrivateMessage( messager, \"There is only one bot in front of yours.\" );\n }\n } else {\n m_botAction.sendSmartPrivateMessage( messager, \"You are the only person waiting in line. Your bot will log in shortly.\" );\n }\n\n if(messager != null)\n m_botAction.sendChatMessage( 1, messager + \" in queue to spawn bot of type \" + className );\n else\n m_botAction.sendChatMessage( 1, \"AutoLoader in queue to spawn bot of type \" + className );\n }\n\n String creator;\n\n if(messager != null) creator = messager;\n else creator = \"AutoLoader\";\n\n ChildBot newChildBot = new ChildBot( rawClassName, creator, childBot );\n addToBotCount( rawClassName, 1 );\n m_botStable.put( botName, newChildBot );\n m_spawnQueue.add( newChildBot );\n }", "void spawnBot( String className, String messager ) {\n spawnBot( className, null, null, messager);\n }", "private void crearBotones(){\n\t\tJPanel southPanel = new JPanel(new FlowLayout(FlowLayout.CENTER, 0, 15));\n\t\tsouthPanel.setOpaque(true);\n\t\tb1 = new JButton(\"Login\"); \n\n\t\tb1.addActionListener(new ActionListener(){\n\t\t\tpublic void actionPerformed(ActionEvent e){\n\t\t\t\tBorder borde = new LineBorder(Color.RED, 1);\n\t\t\t\tif(user.getText().trim().length()==0||password.getPassword().length==0){\n\t\t\t\t\tvalido = false;\n\t\t\t\t}else{\n\t\t\t\t\tplayer = new Player(user.getText().trim(), new String(password.getPassword()));\n\t\t\t\t\tvalido = player.estado;}\n\t\t\t\tif(!valido){\n\t\t\t\t\tupdate(getGraphics());\n\t\t\t\t\tgetGraphics().setFont(new Font(\"Dialog\", Font.PLAIN, 11));\n\t\t\t\t\tgetGraphics().drawString(\"User already exists or wrong password.\", 10, 190);\n\t\t\t\t\tb1.setBorder(borde);\n\t\t\t\t\tuser.setBorder(borde);\n\t\t\t\t\tpassword.setBorder(borde);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tenterAction = new EnterAction();\n\t\tpassword.getInputMap().put( KeyStroke.getKeyStroke(\"ENTER\"), \"doEnterAction\" ); \n\t\tpassword.getActionMap().put( \"doEnterAction\", enterAction );\n\n\t\tb1.setPreferredSize(new Dimension(90, 25));\n\t\tb1.setFont(new Font(\"Arial\", 1, 11));\n\t\tsouthPanel.add(b1);\n\t\tthis.add(southPanel, BorderLayout.SOUTH);\n\t}", "public void spawnRobots() {\n\t\tString robotName\t= \"\";\n\t\tPlayer newPlayer\t= null;\n\t\tint numberOfRobots \t= 0;\n\t\tint robotsPerPlayer = server.getRobotsPerPlayer();\n\t\tint numberOfPlayers = server.getPlayerCount();\n\t\tint robotsPerLevel\t= server.getRobotsPerLevel();\n\t\t\n\t\t// calculate how many robots that should be spawned\n\t\trobotsPerPlayer = robotsPerPlayer *\n\t\t\t\t\t\t (robotsPerLevel * \n\t\t\t\t\t\t currentLevel);\n\t\t\n\t\tnumberOfRobots \t= robotsPerPlayer *\n\t\t\t\t\t\t numberOfPlayers;\n\t\t\n\t\tfor(int i = 0; i < numberOfRobots; i++) {\n\t\t\trobotName \t\t\t= \"Robot\" + (i+1);\n\t\t\tnewPlayer = initPlayerToGameplane(robotName, \n\t\t\t\t\t\t\t\t \t\t\t PlayerType.Robot, \n\t\t\t\t\t\t\t\t \t\t\t 0, 0);\n\t\t\t\n\t\t\tHandleCommunication.broadcastToClient(null, \n\t\t\t\t\t\t\t\t\t\t\t\t server.getConnectedClientList(), \n\t\t\t\t\t\t\t\t\t\t\t\t SendSetting.AddPlayer, \n\t\t\t\t\t\t\t\t\t\t\t\t newPlayer, \n\t\t\t\t\t\t\t\t\t\t\t\t null);\n\t\t}\n\t}", "Commands createCommands();", "public static void createBot(com.azure.resourcemanager.botservice.BotServiceManager manager) {\n manager\n .channels()\n .createWithResponse(\n \"OneResourceGroupName\",\n \"samplebotname\",\n ChannelName.EMAIL_CHANNEL,\n new BotChannelInner()\n .withLocation(\"global\")\n .withProperties(\n new EmailChannel()\n .withProperties(\n new EmailChannelProperties()\n .withEmailAddress(\"[email protected]\")\n .withPassword(\"pwd\")\n .withIsEnabled(true))),\n Context.NONE);\n }", "public static void init() {\n // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\n\n frisbeeRollerFrisbeeRoller = new Talon(FRISBEE_ROLLER_CHANNEL);\n\n conveyorMotor = new Talon(CONV_MOTOR_CHANNEL);\n\n spatulaMotor = new Relay(SPATULA_MOTOR_CHANNEL);\n\n loadTalon = new Talon(LOADER_TALON);\n\n elevateTalon = new Talon(ELEVATE_TALON);\n\n try {\n driveTrainrearRightTalon = new CANJaguar(REAR_RIGHT_JAG_CHANNEL);\n\n driveTrainfrontRightTalon = new CANJaguar(FRONT_RIGHT_JAG_CHANNEL);\n\n driveTrainfrontLeftTalon = new CANJaguar(FRONT_LEFT_JAG_CHANNEL);\n\n driveTrainrearLeftTalon = new CANJaguar(REAR_LEFT_JAG_CHANNEL);\n\n shootershooterJag = new CANJaguar(SHOOTER_JAG_CHANNEL);\n } catch (CANTimeoutException ex) {\n ex.printStackTrace();\n }\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\n }", "public Chatbot(int seed)\r\n\t{\r\n\t\t// La mercancia es independiente de la personalidad del chatbot.\r\n\t\tmerchandise = \" Escudo Rubi: 1500 flurios \\n Espadon Escarlata: 1750 flurios \\n Tomo de Combustion Espontanea: 1000 flurios \\n Piedra Draconica Celeste: 2500 flurios \\n Pocion de recuperacion: 250 flurios.\\n Si quieres saber algo acerca de algun articulo solo tienes que preguntarlo.\\n\";\r\n\r\n\t\t// Lezalith - Personalidad: Servicial y carismatica.\r\n\t\tif ((seed % 2) == 0)\r\n\t\t{\r\n\t\t\tname = \"Lezalith\";\r\n\r\n\t\t\tgenericGreeting = \"Hola aventurero, en que puedo ayudarte?\";\r\n\t\t\tmorningGreeting = \"El sol despunta y tu preparandote para la batalla. Compra algo para que no tengas problemas a lo largo del dia!\";\r\n\t\t\tafternoonGreeting = \"Buenas tardes aventurero, necesitas equipamiento?\";\r\n\t\t\teveningGreeting = \"Buenas noches aventurero; ya estamos por cerrar, pero siempre puedo atender a una persona mas. Que necesitas?\";\r\n\r\n\t\t\tbuyingResponses = new String[2];\r\n\t\t\tbuyingResponses[0] = \"Conque quieres comprar algo huh? Te mostrare lo que tenemos a disponible:\";\r\n\t\t\tbuyingResponses[1] = \"Excelente, mira estos articulos por favor.\";\r\n\t\r\n\t\t\t\t\r\n\t\t\tarticlesInfo = new String[5];\r\n\r\n\t\t\tarticlesInfo[0] = \"El Escudo Rubi es un escudo emblematico de nuestro pais. Su leyenda se remonta a los origenes de la ciudad de Flur. No entrare en detalles, pero la leyenda cuenta que un viajero repelio una horda completa de esqueletos y que su escudo permanecio inmaculado tras semejante derroche de valentia.\\nEl escudo rubi no esta creado a partir de rubi, contrario a lo que se piensa popularmente, sino de piedra draconica rojiza que se asemeja a los rubies.\\nEsta cualidad le permite repeler incluso las llamaradas de algunas criaturas sin que el portador sufra herida alguna.\";\r\n\t\t\tarticlesInfo[1] = \"El Espadon Escarlata que vendemos aqui es una replica muy precisa del espadon descrito en la leyenda de Ruhium, el Sanguinario. Se cuenta que este hombre, de origenes inciertos, llego un dia a Flur con la intencion de arrasarla tal cual un vil bandido.\\n Pero basto con ver los hermosos prados que rodean la ciudad, y oir el melodico fluir de los riachuelos cercanos para que se esfumara cualquier pensamiento que no fuese vivir y proteger estos lares.\\n Su espadon, una hoja descomunal, que habia adquirido un color escarlata en su hoja por tanta sangre que un dia derramo; se convirtio en un simbolo de quietud y paz mental para nosotros.\";\r\n\t\t\tarticlesInfo[2] = \"El Tomo de Combustion Espontanea es uno de los hechizos basicos que aprenden los estudiantes de la escuela magica de la piromancia. A pesar de ser un hechizo de primerizos, es una herramienta muy util para todo el mundo. Requiere poco poder magico y solo se compone de tres versos, pero su efectividad es aterradora. Consiste en un hechizo capaz de prender en llamas a cualquier objetivo que este en tu campo de vision y en un radio de 15 metros. El objetivo continuara ardiendo hasta que su cuerpo de reduzca a cenizas, pero el fuego se disipara si pierdes al objetivo de vista o si las condiciones ambientales no permitan la combustion.\";\r\n\t\t\tarticlesInfo[3] = \"Los dragones poseen ciertas cualidades especiales que el resto de las especies no. Estas cualidades dependen del dragon, y usualmente puede distinguirseles por el color de las escamas. A medida que los dragones crecen, sus cuerpos producen una cristalizacion de la energia vital que irradia de su cuerpo. Cada cierto tiempo, los dragones expulsan de su cuerpo esta cristalizacion a modo de desecho y es lo que nosotros conocemos por piedra draconica. El color de la piedra coincide con el de las escamas del dragon que sintetizo esa piedra, y la piedra posee las mismas cualidades extraordinarias que este ultimo. En particular, la piedra de dragon celeste es una gema que expulsa un torrente de rayos a voluntad; pero requiere que su portador la cargue con energia magica para desatar su terrible poder.\";\r\n\t\t\tarticlesInfo[4] = \"La vieja y confiable pocion de recuperacion ha sacado de apuros tanto a principiantes como a expertos del mundo de las armas. Esta compuesta de muchos ingredientes regenerativos que apresuran enormemente tu regeneracion natural. \";\r\n\r\n\r\n\t\t\tbuyingArticles = new String[5];\r\n\t\t\tbuyingArticles[0] = \"Compraras un Escudo Rubi? Muy bien, son 1500 flurios. Tus enemigos flaquearan en voluntad al ver que ninguno de sus ataques lograra atravesar tu defensa.\";\r\n\t\t\tbuyingArticles[1] = \"Iras por el Espadon Escarlata, huh? Buena eleccion, son 1750 flurios. Siento lastima por esas pobres bestias que se atrevan a enfrentarte.\";\r\n\t\t\tbuyingArticles[2] = \"Te convencio el Tomo Magico? El precio es de 1000 flurios. Una ganga, no crees?. Tus enemigos no sabran que los hizo arder en llamas.\";\r\n\t\t\tbuyingArticles[3] = \"Son 2500 flurios por la Piedra Draconica. Una vez que logres cargarla, desataras un cataclismo en el campo de batalla. Recuerda usarla con prudencia.\";\r\n\t\t\tbuyingArticles[4] = \"Son 250 flurios por la Pocion. Hay que ser precavidos, verdad?\";\r\n\t\t\r\n\t\t\tnotEnough = \"Al parecer no tiene suficiente dinero. Por favor, trate de comprar algo que pueda permitirse con su dinero\";\r\n\r\n\t\t\tsellingResponse = \"Lo siento, en esta tienda no compramos a nuestros clientes. La tienda vecina se arruino un dia que llego un aventurero con 6 millones de huesos de monstruos. El pobre vendedor tuvo que comprarselos todos, y todo por seguir esa ridicula politica.\";\r\n\r\n\t\t\trumours = new String[3];\r\n\t\t\trumours[0] = \"La expedicion que salio hace unas semanas en busqueda del dragon maligno no ha vuelto aun. Temo que hayan fracasado en su objetivo.\";\r\n\t\t\trumours[1] = \"La caravana que suple mis articulos lleva 4 dias de retraso. Los habran asaltado goblins o algo?.\";\r\n\t\t\trumours[2] = \"La ciudad esta muy ajetreada estos dias. Todos temen un asalto nocturno de parte de los dragones anti-pactianos.\";\r\n\r\n\t\t\tmisheard = new String[3];\r\n\t\t\tmisheard[0] = \"Lo siento, creo que no puedo comprender algunas de las palabras que usas viajero. Podrias reformularme eso que has dicho?\";\r\n\t\t\tmisheard[1] = \"Creo que no he escuchado bien, que has dicho?\";\r\n\t\t\tmisheard[2] = \"Lamento no conocer el lenguaje de un modo tan habil como vos, pero es necesario que te rebajes a mi nivel para que nos entendamos.\\nPodrias describir eso con palabras mas cercanas a mi entendimiento?\";\r\n\r\n\t\t\tfarewell = \"Buena suerte, en realidad no la necesitas porque te has equipado aqui hahaha.\";\r\n\t\t}\r\n\r\n\t\t// Roxane - Personalidad: Agresiva y perezosa.\r\n\r\n\t\telse\r\n\t\t{\r\n\r\n\t\t\tname = \"Roxane\";\r\n\r\n\t\t\tgenericGreeting = \"*suspiro* Hola aventurero, echale el ojo a las existencias y avisame cuando vayas a comprar algo, si?\";\r\n\t\t\tmorningGreeting = \"Buenos dias aventurero. No te sientes somnoliento? Deberias volver a tu cama y dejarme dormir.\";\r\n\t\t\tafternoonGreeting = \"Buenas tardes, date una vuelta por la tienda y llevate algo, quieres?\";\r\n\t\t\teveningGreeting = \"Ya esta oscureciendo. Apresurate en comprar o te dejare dentro.\";\r\n\r\n\t\t\tbuyingResponses = new String[2];\r\n\t\t\tbuyingResponses[0] = \"Esta bien. Puedes escoger cualquier objeto de entre los que aqui se encuentran: \";\r\n\t\t\tbuyingResponses[1] = \"Si quieres comprar tendras que conformarte con lo que tenemos. Hay problemas en las rutas comerciales, asi que no hay mucha variedad.\";\r\n\r\n\t\t\tarticlesInfo = new String[5];\r\n\r\n\t\t\tarticlesInfo[0] = \"El Escudo Rubi que aqui vendemos es una replica exacta del legendario escudo de la famosa epica narrada todas las noches en los bares de Flur. El escudo que portaba el defensor de Flur salvaguardo a nuestro heroe de los infinitos golpes de las furibundas hordas de monstruos que azotaban nuestra ciudad.\\nNo pienses mal de el por ser una replica. Podria ser mejor que el original, pues posee propiedades magicas que lo vuelven aun mas impenetrable para cualquier ataque que desafie la fortaleza de este escudo.\";\r\n\t\t\tarticlesInfo[1] = \"Ruhium, el Sanguinario, blandio una espada como esta hace decadas. Era un hombre temido por todo el mundo que, enamorado de la belleza de nuestra ciudad y la quietud de sus alrededores, hizo de este lugar su hogar y lo defendio de los muchos invasores que asediaron Flur en esa epoca.\\nVer el espadon de Ruhium en batalla, era como ver la hoz de la muerte sesgando las vidas de sus adversarios. Eso no ha cambiado hasta el dia de hoy, pues nuestro Espadon Escarlata no tiene motivos para palidecer ante su modelo: El espadon de Rihium.\";\r\n\t\t\tarticlesInfo[2] = \"Ese tomo es el que estudian los principiantes de la piromancia. Puedes comprarlo si te apetece, pero a tu edad tal vez debas practicarlo en privado. Los estudiantes se reiran de ti si te ven lanzando ese hechizo tan simple. \";\r\n\t\t\tarticlesInfo[3] = \"Mi hermana explica esto con mayor precision, pero en pocas palabras, esta piedra puede almacenar grandes cantidades de energia magica y liberarla en forma de rayos. Se obtiene a partir de la cristalizacion magica del dragon de escamas celestes.\";\r\n\t\t\tarticlesInfo[4] = \"No hay mucho que explicar, verdad? El nombre lo dice todo. Ultimamente hemos vendido muchas de estas a algunos jovenes. Tal vez pueden generar adiccion...\";\r\n\r\n\t\t\tbuyingArticles = new String[5];\r\n\t\t\tbuyingArticles[0] = \"Te llevas el Escudo Rubi? Son 1500 flurios a cambio de una defensa inexpugnable. Una ganga, no?\";\r\n\t\t\tbuyingArticles[1] = \"Compraras el Espadon? Bueno, desde hoy no hay enemigo que pueda resistir tu furia. Pobres bestias. Son 1750 flurios\";\r\n\t\t\tbuyingArticles[2] = \"Quieres iniciarte en el mundo de la magia? Una vez que domines los conocimientos arcanos, bastara una palabra de tus labios para que cualquier enemigo caiga a tus pies. Son 1000 flurios, por favor.\";\r\n\t\t\tbuyingArticles[3] = \"Esa piedra de costara 2500 flurios. No se para que la quieres si no pareces poder cargarla de energia magica. Pero bueno, eres libre de desperdiciar tu dinero.\";\r\n\t\t\tbuyingArticles[4] = \"Son 250 flurios por la pocion. Estoy pensando seriamente en subir el precio de estas cosas, dada la alta demanda ultimamente, asi que compra todas las que puedas ahora que estan baratas.\";\r\n\r\n\t\t\tnotEnough = \"Sin dinero, no hay objeto; asi de simple. Compra otro objeto o vete.\";\r\n\r\n\t\t\tsellingResponse = \"Quieres llevarnos a la bancarrota? No se en que mundo las tiendas podrian comprar toda la basura que traen los aventureros desde afuera de la ciudad.\";\r\n\r\n\t\t\trumours = new String[3];\r\n\t\t\trumours[0] = \"Con el pacto de proteccion mutua entre humanos y dragones roto, ya no hay nada que garantice nuestra seguridad. Es mas, los mismos dragones anti pactianos son una amenaza presente.\";\r\n\t\t\trumours[1] = \"Al parecer, los estudiantes de las escuelas magicas ya no pueden salir al bosque a buscar ingredientes para pociones. Ultimamente las bestias abundan fuera de la ciudad.\";\r\n\t\t\trumours[2] = \"El explorador en jefe del gremio ha organizado una nueva expedicion hacia el pico sagrado. Dicen que un dragon muy sabio vive alli, y podria ayudarnos a entender porque los dragones han deshecho el pacto de proteccion mutua.\";\r\n\r\n\t\t\tmisheard = new String[3];\r\n\t\t\tmisheard[0] = \"Que palabras mas raras utilizas, no te he entendido nada.\";\r\n\t\t\tmisheard[1] = \"Crees que podrias decirme eso en palabras normales?\";\r\n\t\t\tmisheard[2] = \"...\";\r\n\r\n\t\t\tfarewell = \"Adios, aventurero. Sal en silencio por favor, intentare seguir durmiendo.\";\r\n\t\t}\r\n\t}", "private void createCommands()\n{\n exitCommand = new Command(\"Exit\", Command.EXIT, 0);\n helpCommand=new Command(\"Help\",Command.HELP, 1);\n backCommand = new Command(\"Back\",Command.BACK, 1);\n}", "public void createAndRegisterActors(){\n //stressAppNetworkService.getAbstractNetworkServiceList().forEach((type,ns)->{\n stressAppNetworkService.getChatNetworkServicePluginRootList().forEach(ns->{\n //System.out.println(\"Network Service type: \"+type);\n nsPublicKeyMap.put(ns.getPublicKey(), (ChatNetworkServicePluginRoot) ns);\n ((ChatNetworkServicePluginRoot) ns).setMessageReceiver(this);\n int actorCounter = 0;\n for(ActorProfile actor : actorProfileList){\n createAndRegisterActor(actor,(ChatNetworkServicePluginRoot) ns, actorCounter);\n actorCounter++;\n actorsCreated++;\n report(ReportType.ACTOR_CREATED);\n }\n nsStarted++;\n report(ReportType.NS_STARED);\n });\n }", "private void initComponents() {\r\n String textoBotones[]={\"Listado Almacen\", \r\n \"Listado por producto\",\"Pedidos por almacén\"};\r\n \r\n botones=new JButton[textoBotones.length];\r\n //Utilizo todo el fondo del JFrame\r\n contenedor=(ImagePanel) this.getContentPane();\r\n //Inicializo un layout\r\n contenedor.setLayout(new GridLayout(textoBotones.length, 1, 5, 5)); \r\n //Inicializo los objetos\r\n for (int x=0;x<textoBotones.length;x++) {\r\n botones[x]=new JButton();\r\n botones[x].setText(textoBotones[x]);\r\n botones[x].setActionCommand(Integer.toString(x));\r\n botones[x].addActionListener(this); \r\n contenedor.add(botones[x]);\r\n }\r\n }", "public static void createAlexaBot(com.azure.resourcemanager.botservice.BotServiceManager manager) {\n manager\n .channels()\n .createWithResponse(\n \"OneResourceGroupName\",\n \"samplebotname\",\n ChannelName.ALEXA_CHANNEL,\n new BotChannelInner()\n .withLocation(\"global\")\n .withProperties(\n new AlexaChannel()\n .withProperties(\n new AlexaChannelProperties().withAlexaSkillId(\"XAlexaSkillIdX\").withIsEnabled(true))),\n Context.NONE);\n }", "private void criaBotoes(){\n \tfor(int i=0; i<botao.length; i++){\n \tfor(int j=0;j<botao[i].length; j++){ \n \t\tbotao[i][j] = new JButton();\n \tpainel.add(botao[i][j]);\n \t}\n \n \t}\n\t}", "private void doConnect() throws Exception {\n try {\n Registry reg = LocateRegistry.getRegistry(conf.getNameServiceHost(), conf.getNameServicePort());\n server = (IChatServer) reg.lookup(conf.getServerName());\n } catch (RemoteException e) {\n throw new Exception(\"rmiregistry not found at '\" + conf.getNameServiceHost() + \":\" +\n conf.getNameServicePort() + \"'\");\n } catch (NotBoundException e) {\n throw new Exception(\"Server '\" + conf.getServerName() + \"' not found.\");\n }\n\n //Unir al bot al canal com a usuari\n //el Hashcode li afig un valor unic al nom, per a que ningu\n //li copie el nom com a usuari\n user = new ChatUser(\"bot \" + this.hashCode(), this);\n if (!server.connectUser(user))\n throw new Exception(\"Nick already in use\");\n\n //Comprovar si hi ha canals en el servidor.\n IChatChannel[] channels = server.listChannels();\n if (channels == null || channels.length == 0)\n throw new Exception(\"Server has no channels\");\n \n //Unir el bot a cadascun dels canals\n for (IChatChannel channel : channels) {\n channel.join(user);\n }\n\n System.out.println(\"Bot unit als canals i preparat.\");\n }", "public void spawnRubble() {\n\t\tString rubbleName \t= \"\";\n\t\tPlayer newPlayer \t= null; \n\t\tint numberOfRubble \t= server.getRubbleCount();\n\t\t\n\t\tfor(int i = 0; i < numberOfRubble; i++) {\n\t\t\trubbleName = \"Rubble\" + (i+1);\n\t\t\tnewPlayer = initPlayerToGameplane(rubbleName, \n\t\t\t\t\t\t\t\t\t\t\t PlayerType.Rubble, \n\t\t\t\t\t\t\t\t\t\t\t 0, 0);\n\t\t\t\n\t\t\tHandleCommunication.broadcastToClient(null, \n\t\t\t\t\t\t\t\t\t\t\t\t server.getConnectedClientList(), \n\t\t\t\t\t\t\t\t\t\t\t\t SendSetting.AddPlayer, \n\t\t\t\t\t\t\t\t\t\t\t\t newPlayer, \n\t\t\t\t\t\t\t\t\t\t\t\t null);\n\t\t}\n\t}", "public Botones() {\n initComponents();\n }", "public OI() {\n // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\n\n xBoxOne = new Joystick(0);\n \n autoRight = new JoystickButton(xBoxOne, 10);\n autoRight.whenPressed(new AutoRight());\n autoLeft = new JoystickButton(xBoxOne, 9);\n autoLeft.whenPressed(new AutoLeft());\n vision = new JoystickButton(xBoxOne, 7);\n vision.whenPressed(new SeekAndDriveTo());\n cameraSwitch = new JoystickButton(xBoxOne, 2);\n cameraSwitch.whenPressed(new CameraSwitch());\n latchCloseManual = new JoystickButton(xBoxOne, 6);\n latchCloseManual.whileHeld(new latchCloseManual());\n latchOpenManual = new JoystickButton(xBoxOne, 5);\n latchOpenManual.whileHeld(new latchOpenManual());\n toggleDirection = new JoystickButton(xBoxOne, 3);\n toggleDirection.whenPressed(new SwitchDirection());\n follow = new JoystickButton(xBoxOne, 8);\n follow.whenPressed(new follow());\n driveBackToDistance = new JoystickButton(xBoxOne, 1);\n driveBackToDistance.whenPressed(new AutoReverse());\n driveToDistance = new JoystickButton(xBoxOne, 4);\n driveToDistance.whenPressed(new AutoDrop());\n\n\n // SmartDashboard Buttons\n SmartDashboard.putData(\"Autonomous Command\", new AutonomousCommand());\n SmartDashboard.putData(\"DriveWithJoystick\", new DriveWithJoystick());\n SmartDashboard.putData(\"driveToDistance\", new driveToDistance());\n SmartDashboard.putData(\"HDriveJoystick\", new HDriveJoystick());\n SmartDashboard.putData(\"driveBackToDistance\", new driveBackToDistance());\n SmartDashboard.putData(\"follow\", new follow());\n SmartDashboard.putData(\"Climb\", new Climb());\n SmartDashboard.putData(\"SwitchDirection\", new SwitchDirection());\n SmartDashboard.putData(\"latchClose\", new latchClose());\n SmartDashboard.putData(\"latchOpen\", new latchOpen());\n SmartDashboard.putData(\"AutoDrop\", new AutoDrop());\n SmartDashboard.putData(\"AutoReverse\", new AutoReverse());\n SmartDashboard.putData(\"latchOpenManual\", new latchOpenManual());\n SmartDashboard.putData(\"latchCloseManual\", new latchCloseManual());\n SmartDashboard.putData(\"autoForwardBack\", new autoForwardBack());\n SmartDashboard.putData(\"kickForward\", new kickForward());\n SmartDashboard.putData(\"CameraSwitch\", new CameraSwitch());\n SmartDashboard.putData(\"Vision\", new Vision());\n SmartDashboard.putData(\"SeekAndDriveTo\", new SeekAndDriveTo());\n SmartDashboard.putData(\"turnRightTimed\", new turnRightTimed());\n SmartDashboard.putData(\"turnLeftTimed\", new turnLeftTimed());\n SmartDashboard.putData(\"driveForwardTimed\", new driveForwardTimed());\n SmartDashboard.putData(\"AutoRight\", new AutoRight());\n SmartDashboard.putData(\"AutoLeft\", new AutoLeft());\n SmartDashboard.putData(\"AutoMiddle\", new AutoMiddle());\n SmartDashboard.putData(\"SeekAndDriveSim\", new SeekAndDriveSim());\n\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\n }", "public void connect() {\n BotConnector newBot = new BotConnector();\n newBot.setEmail(this.email);\n newBot.setAuthenticationKey(key);\n newBot.setBotName(name);\n newBot.setRoom(room);\n //Start Listener Thread\n this.serverListener = new Thread(newBot, \"serverListener\");\n this.serverListener.start();\n }", "@Test\n public void botPlay() {\n Bot.randomBot(0);\n }", "public GameManager(List<String> botNames){\n\t\tdeck = new Deck();\n\t\ttable = new Table();\n\t\tplayers = new ArrayList<Bot>();\n\t\t\n\t\t//create player objects via reflection\n\t\tfor (String botName : botNames){\n\t\t\ttry {\n\t\t\t\tplayers.add(newInstance(botName));\n\t\t\t} catch (ClassNotFoundException | NoSuchMethodException\t| InstantiationException | \n\t\t\t\t\tIllegalAccessException| IllegalArgumentException | InvocationTargetException e) {\n\t\t\t\t\t\tSystem.err.println(\"No such bot class found: \" + botName);\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\tSystem.exit(1);\n\t\t\t}\n\t\t}\n\t}", "public static void init() {\n // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\n driveTrainmotor_leftFront = new Talon(1);\n LiveWindow.addActuator(\"DriveTrain\", \"motor_leftFront\", (Talon) driveTrainmotor_leftFront);\n \n driveTrainmotor_leftRear = new Talon(2);\n LiveWindow.addActuator(\"DriveTrain\", \"motor_leftRear\", (Talon) driveTrainmotor_leftRear);\n \n driveTrainmotor_rightFront = new Talon(3);\n LiveWindow.addActuator(\"DriveTrain\", \"motor_rightFront\", (Talon) driveTrainmotor_rightFront);\n \n driveTrainmotor_rightRear = new Talon(4);\n LiveWindow.addActuator(\"DriveTrain\", \"motor_rightRear\", (Talon) driveTrainmotor_rightRear);\n \n driveTrainRobotDrive = new RobotDrive(driveTrainmotor_leftFront, driveTrainmotor_leftRear,\n driveTrainmotor_rightFront, driveTrainmotor_rightRear);\n \n driveTrainRobotDrive.setSafetyEnabled(true);\n driveTrainRobotDrive.setExpiration(0.1);\n driveTrainRobotDrive.setSensitivity(0.5);\n driveTrainRobotDrive.setMaxOutput(1.0);\n\n liftmotor_Lift = new Talon(0);\n LiveWindow.addActuator(\"Lift\", \"motor_Lift\", (Talon) liftmotor_Lift);\n \n liftencoderLiftHeight = new Encoder(1, 2, true, EncodingType.k4X);\n LiveWindow.addSensor(\"Lift\", \"encoder LiftHeight\", liftencoderLiftHeight);\n liftencoderLiftHeight.setDistancePerPulse(1.0);\n liftencoderLiftHeight.setPIDSourceParameter(PIDSourceParameter.kRate);\n liftlimitBottom = new DigitalInput(0);\n LiveWindow.addSensor(\"Lift\", \"limitBottom\", liftlimitBottom);\n \n\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\n }", "public Telefone() {\n\t\t\n\t}", "private Grabber() {\n\t\tmotor = new CANTalon(Constants.grabberTalonMotorChannel);\n\t}", "public static void createNPC() {\n //create the good npc\n BSChristiansen.setName(\"BS_Christiansen\");\n BSChristiansen.setCurrentRoom(jungle);\n BSChristiansen.setDescription(\"The survivor of the plane crash look to be some kind of veteran soldier, \"\n + \"\\nbut he is heavly injured on his right leg so he cant move \");\n BSChristiansen.addDialog(\"If you want to survive on this GOD forsaken island, you \\nmust first find food and shelter.\"\n + \"\\nYou can craft items to help you survive, if you \\nhave the right components.\");\n BSChristiansen.addDialog(\"To escape the island you need a raft, \\nsome berries and fish so you can survive on the sea,\\nand a spear so you can hunt for more food\");\n\n //create the bad npc\n josephSchnitzel.setName(\"Joseph_Schnitzel\");\n josephSchnitzel.setCurrentRoom(mountain);\n josephSchnitzel.setDescription(\"A lonely surviver with very filthy hair, and a wierd smell of weinerschnitzel.\");\n josephSchnitzel.addDialog(\"Heeelloooo there my freshlooking friend, I am Joseph\\nSchnitzel, if you scratch my back I might scratch your's.\" + \"\\n\" + \"Go fetch me some eggs, or I'll kill you\");\n josephSchnitzel.addDialog(\"Talks to himself\\nis that muppet still alive\");\n josephSchnitzel.addDialog(\"Talks to himself\\nHow long is he going to last\");\n josephSchnitzel.addDialog(\"Talks to himself\\nI wonder what those noises were ing the cave\");\n josephSchnitzel.addDialog(\"GET THE HELL OUT OF MY WAY!!!\");\n josephSchnitzel.setDamageValue(100);\n\n //create another npc\n mysteriousCrab.setName(\"Mysterious_Crab\");\n mysteriousCrab.setCurrentRoom(cave);\n mysteriousCrab.setDescription(\"A mysterious crab that you dont really get why can talk\");\n mysteriousCrab.addDialog(\"MUHAHAHA i'm the finest and most knowledgeable \\ncrab of them all mr.Crab and know this island\\nlike the back of my hand! oh i mean claw...\"\n + \"\\nA Random fact: \"\n + \"to escape this island you need a raft, \\nsome berries and fish so you can survive on the sea,\\nand a spear so you can hunt for more food\");\n }", "public void registerCommands() {\n\t CommandSpec cmdCreate = CommandSpec.builder()\n\t .arguments(\n\t onlyOne(GenericArguments.string(Text.of(\"type\"))),\n\t onlyOne(GenericArguments.string(Text.of(\"id\"))))\n\t .executor(CmdCreate.getInstance())\n\t .permission(\"blockyarena.create\")\n\t .build();\n\n\t CommandSpec cmdRemove = CommandSpec.builder()\n\t .arguments(\n\t onlyOne(GenericArguments.string(Text.of(\"type\"))),\n\t onlyOne(GenericArguments.string(Text.of(\"id\"))))\n\t .executor(CmdRemove.getInstance())\n\t .permission(\"blockyarena.remove\")\n\t .build();\n\n\t CommandSpec cmdJoin = CommandSpec.builder()\n\t .arguments(\n\t onlyOne(GenericArguments.string(Text.of(\"mode\")))\n\t )\n\t .executor(CmdJoin.getInstance())\n\t .build();\n\n\t CommandSpec cmdQuit = CommandSpec.builder()\n\t .executor(CmdQuit.getInstance())\n\t .build();\n\n\t CommandSpec cmdEdit = CommandSpec.builder()\n\t .arguments(\n\t onlyOne(GenericArguments.string(Text.of(\"id\"))),\n\t onlyOne(GenericArguments.string(Text.of(\"type\"))),\n\t GenericArguments.optional(onlyOne(GenericArguments.string(Text.of(\"param\"))))\n\t )\n\t .executor(CmdEdit.getInstance())\n\t .permission(\"blockyarena.edit\")\n\t .build();\n\n\t CommandSpec cmdKit = CommandSpec.builder()\n\t .arguments(onlyOne(GenericArguments.string(Text.of(\"id\"))))\n\t .executor(CmdKit.getInstance())\n\t .build();\n\n\t CommandSpec arenaCommandSpec = CommandSpec.builder()\n\t .child(cmdEdit, \"edit\")\n\t .child(cmdCreate, \"create\")\n\t .child(cmdRemove, \"remove\")\n\t .child(cmdJoin, \"join\")\n\t .child(cmdQuit, \"quit\")\n\t .child(cmdKit, \"kit\")\n\t .build();\n\n\t Sponge.getCommandManager()\n\t .register(BlockyArena.getInstance(), arenaCommandSpec, \"blockyarena\", \"arena\", \"ba\");\n\t }", "public void createNewPlayer()\n\t{\n\t\t// Set up all badges.\n\t\tm_badges = new byte[42];\n\t\tfor(int i = 0; i < m_badges.length; i++)\n\t\t\tm_badges[i] = 0;\n\t\tm_isMuted = false;\n\t}", "private void registerCommands() {\n CommandSpec showBanpoints = CommandSpec.builder().permission(\"dtpunishment.banpoints.show\")\r\n .description(Text.of(\"Show how many Banpoints the specified player has \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))))\r\n .executor(childInjector.getInstance(CommandBanpointsShow.class)).build();\r\n\r\n CommandSpec addBanpoints = CommandSpec.builder().permission(\"dtpunishment.banpoints.add\")\r\n .description(Text.of(\"Add a specified amount of Banpoints to a player \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))),\r\n GenericArguments.onlyOne(GenericArguments.integer(Text.of(\"amount\"))))\r\n .executor(childInjector.getInstance(CommandBanpointsAdd.class)).build();\r\n\r\n CommandSpec removeBanpoints = CommandSpec.builder().permission(\"dtpunishment.banpoints.remove\")\r\n .description(Text.of(\"Remove a specified amount of Banpoints to a player \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))),\r\n GenericArguments.onlyOne(GenericArguments.integer(Text.of(\"amount\"))))\r\n .executor(childInjector.getInstance(CommandBanpointsRemove.class)).build();\r\n\r\n CommandSpec banpoints = CommandSpec.builder().permission(\"dtpunishment.banpoints\")\r\n .description(Text.of(\"Show the Banpoints help menu\")).arguments(GenericArguments.none())\r\n .child(showBanpoints, \"show\").child(addBanpoints, \"add\").child(removeBanpoints, \"remove\").build();\r\n\r\n Sponge.getCommandManager().register(this, banpoints, \"banpoints\", \"bp\");\r\n\r\n CommandSpec showMutepoints = CommandSpec.builder().permission(\"dtpunishment.mutepoints.show\")\r\n .description(Text.of(\"Show how many Mutepoints the specified player has \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))))\r\n .executor(childInjector.getInstance(CommandMutepointsShow.class)).build();\r\n\r\n CommandSpec addMutepoints = CommandSpec.builder().permission(\"dtpunishment.mutepoints.add\")\r\n .description(Text.of(\"Add a specified amount of Mutepoints to a player \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))),\r\n GenericArguments.onlyOne(GenericArguments.integer(Text.of(\"amount\"))))\r\n .executor(childInjector.getInstance(CommandMutepointsAdd.class)).build();\r\n\r\n CommandSpec removeMutepoints = CommandSpec.builder().permission(\"dtpunishment.mutepoints.add\")\r\n .description(Text.of(\"Add a specified amount of Mutepoints to a player \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))),\r\n GenericArguments.onlyOne(GenericArguments.integer(Text.of(\"amount\"))))\r\n .executor(childInjector.getInstance(CommandMutepointsRemove.class)).build();\r\n\r\n CommandSpec mutepoints = CommandSpec.builder().permission(\"dtpunishment.mutepoints\")\r\n .description(Text.of(\"Show the Mutepoints help menu\")).arguments(GenericArguments.none())\r\n .child(showMutepoints, \"show\").child(addMutepoints, \"add\").child(removeMutepoints, \"remove\").build();\r\n\r\n Sponge.getCommandManager().register(this, mutepoints, \"mutepoints\", \"mp\");\r\n\r\n CommandSpec playerInfo = CommandSpec.builder().permission(\"dtpunishment.playerinfo\")\r\n .description(Text.of(\"Show your info \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.optionalWeak(GenericArguments.requiringPermission(\r\n GenericArguments.user(Text.of(\"player\")), \"dtpunishment.playerinfo.others\"))))\r\n .executor(childInjector.getInstance(CommandPlayerInfo.class)).build();\r\n\r\n Sponge.getCommandManager().register(this, playerInfo, \"pinfo\", \"playerinfo\");\r\n\r\n CommandSpec addWord = CommandSpec.builder().permission(\"dtpunishment.word.add\")\r\n .description(Text.of(\"Add a word to the list of banned ones \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.string(Text.of(\"word\"))))\r\n .executor(childInjector.getInstance(CommandWordAdd.class)).build();\r\n\r\n Sponge.getCommandManager().register(this, addWord, \"addword\");\r\n\r\n CommandSpec unmute = CommandSpec.builder().permission(\"dtpunishment.mutepoints.add\")\r\n .description(Text.of(\"Unmute a player immediately (removing all mutepoints)\"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))))\r\n .executor(childInjector.getInstance(CommandUnmute.class)).build();\r\n\r\n CommandSpec reloadConfig = CommandSpec.builder().permission(\"dtpunishment.admin.reload\")\r\n .description(Text.of(\"Reload configuration from disk\"))\r\n .executor(childInjector.getInstance(CommandReloadConfig.class)).build();\r\n\r\n CommandSpec adminCmd = CommandSpec.builder().permission(\"dtpunishment.admin\")\r\n .description(Text.of(\"Admin commands for DTPunishment\")).child(reloadConfig, \"reload\")\r\n .child(unmute, \"unmute\").build();\r\n\r\n Sponge.getCommandManager().register(this, adminCmd, \"dtp\", \"dtpunish\");\r\n }", "public void createGame()\n {\n //call Client Controller's setState method with\n //a parameter of new ClientLobbyState()\n clientController.startMultiPlayerGame(\"GameLobby\");\n }", "private static EmbedBuilder JoinDM (){\n Color color = new Color(238,119,0);\n return new EmbedBuilder()\n .setColor(color)\n .setTitle(\"FyreBot\")\n .setDescription(\"Hey, I'm FyreBot! Thanks for inviting me to your server!\\n\\n\" +\n \"My prefix is `!` for example `!command`\\n\\n\" +\n \"To get started use `!help` to list all my commands!\\n\\n\" +\n \"I'm developed by `Drix#8197` so if you have any questions about me you should ask him.\");\n }", "public static void main(String args[]) throws Throwable {\n\t\tbots.add(new Bot(\"twitchusername1\", \"oauth:sai511esdfdmu3d7sdddhqvc8ssfkj\"));\n\t\tbots.add(new Bot(\"twitchusername2\", \"oauth:jb9c8kd4s4wsdfsdffg4rd5zd02dac\"));\n\t\t// ... \n\t\texe.invokeAll(bots);\n\t}", "public void crearAbonar(){\n \t\n getContentPane().setLayout(new BorderLayout());\n \n p1 = new JPanel();\n\t\tp2 = new JPanel();\n \n\t\t// Not used anymore\n\t\t//String[] a={\"Regresar\",\"Continuar\"},c={\"Cuenta\",\"Monto\"};\n \n\t\t// Layout : # row, # columns\n\t\tp1.setLayout(new GridLayout(1,2));\n \n\t\t// Create the JTextField : Cuenta\n\t\t// And add it to the panel\n tf = new JTextField(\"Cuenta\");\n textos.add(tf);\n tf.setPreferredSize(new Dimension(10,100));\n p1.add(tf);\n\n\t\t// Create the JTextField : Monto\n\t\t// And add it to the panel\n tf = new JTextField(\"Monto\");\n textos.add(tf);\n tf.setPreferredSize(new Dimension(10,100));\n p1.add(tf);\n \n // Add the panel to the Frame layout\n add(p1, BorderLayout.NORTH);\n \n // Create the button Regresar\n buttonRegresar = new JButton(\"Regresar\");\n botones.add(buttonRegresar);\n\n // Create the button Continuar\n buttonContinuar = new JButton(\"Continuar\");\n botones.add(buttonContinuar);\n \n // Layout : 1 row, 2 columns\n p2.setLayout(new GridLayout(1,2));\n \n // Add the buttons to the layout\n for(JButton x:botones){\n x.setPreferredSize(new Dimension(110,110));\n p2.add(x);\n }\n \n // Add the panel to the Frame layout\n add(p2, BorderLayout.SOUTH);\n }", "public void addBot(int x, int y) {\n\t\tbots.add(new Bot(x, y, width, height, botSize, bots));\n\t}", "public void createAI(int lobbyId)\n {\n //call Client Controller's addAIPlayer method\n clientController.addAIPlayer(new Difficulty(5, 5), lobbyId);\n }", "private void registerCommands() {\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.HOME.toString())) {\r\n\t\t\t(new HomeCommand(this)).register();\r\n\t\t\t(new SetHomeCommand(this)).register();\r\n\t\t\t(new DelHomeCommand(this)).register();\r\n\t\t\t(new ListHomesCommand(this)).register();\r\n\t\t\t(new NearbyHomesCommand(this)).register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.BACK.toString())) {\r\n\t\t\t(new Back(this)).register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.TPASK.toString())) {\r\n\t\t\t(new TeleportToggle(this)).register();\r\n\t\t\t(new TpAsk(this)).register();\r\n\t\t\t(new TpAskHere(this)).register();\r\n\t\t\t(new TeleportAccept(this)).register();\r\n\t\t\t(new TeleportDeny(this)).register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.TELEPORT.toString())) {\r\n\t\t\t(new Teleport(this)).register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.SPEED_SETTING.toString())) {\r\n\t\t\t(new SpeedCommand(this)).register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.FLY.toString())) {\r\n\t\t\t(new FlyCommand(this)).register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.GAMEMODE.toString())) {\r\n\t\t\tGameModeCommand gmc = new GameModeCommand(this);\r\n\t\t\tPlayerLoader loader = new PlayerLoader(true, false, false, false);\r\n\t\t\tGameModeLoader gml = new GameModeLoader(true);\r\n\t\t\tgmc.setLoader(gml);\r\n\t\t\tgml.setLoader(loader);\r\n\t\t\tgmc.register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.PLAYER_CMD.toString())) {\r\n\t\t\t// create command and player loader\r\n\t\t\tPlayerCommand pc = new PlayerCommand();\r\n\t\t\tPlayerLoader playerLoader = new PlayerLoader(true, false, false, false);\r\n\t\t\t\r\n\t\t\t// create components\r\n\t\t\tFeedComponent fc = new FeedComponent();\r\n\t\t\tfc.setLoader(playerLoader);\r\n\t\t\tStarveComponent sc = new StarveComponent();\r\n\t\t\tsc.setLoader(playerLoader);\r\n\t\t\tHealComponent hc = new HealComponent();\r\n\t\t\thc.setLoader(playerLoader);\r\n\t\t\tKillComponent kc = new KillComponent();\r\n\t\t\tkc.setLoader(playerLoader);\r\n\t\t\tBurnComponent bc = new BurnComponent();\r\n\t\t\tbc.setLoader(playerLoader);\r\n\t\t\tExtinguishComponent ec = new ExtinguishComponent();\r\n\t\t\tec.setLoader(playerLoader);\r\n\t\t\tLightningComponent lc = new LightningComponent();\r\n\t\t\tlc.setLoader(playerLoader);\r\n\t\t\tLightningEffectComponent lec = new LightningEffectComponent();\r\n\t\t\tlec.setLoader(playerLoader);\r\n\t\t\t\r\n\t\t\tPlayerLoader gcLoader = new PlayerLoader(false, false, false, false);\r\n\t\t\tBinaryLoader ooc = new BinaryLoader(true, BinaryLoader.BINARY.ENABLE_DISABLE);\r\n\t\t\tooc.setLoader(gcLoader);\r\n\t\t\t\r\n\t\t\tInvincibleComponent gc = new InvincibleComponent();\r\n\t\t\tgc.setLoader(ooc);\r\n\t\t\t\r\n\t\t\t// add components\r\n\t\t\tpc.addComponent(\"feed\", fc);\r\n\t\t\tpc.addComponent(\"starve\", sc);\r\n\t\t\tpc.addComponent(\"heal\", hc);\r\n\t\t\tpc.addComponent(\"invincible\", gc);\r\n\t\t\tpc.addComponent(\"kill\", kc);\r\n\t\t\tpc.addComponent(\"burn\", bc);\r\n\t\t\tpc.addComponent(\"extinguish\", ec);\r\n\t\t\tpc.addComponent(\"lightning\", lc);\r\n\t\t\tpc.addComponent(\"lightningeffect\", lec);\r\n\t\t\t\r\n\t\t\t// register command\r\n\t\t\tpc.register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.HAT.toString())) {\r\n\t\t\t// /hat command\r\n\t\t\t(new HatCommand()).register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.WORKBENCH_ENDERCHEST.toString())) {\r\n\t\t\t// /enderchest and /workbench commands\r\n\t\t\tWorkbenchCommand wb = new WorkbenchCommand();\r\n\t\t\twb.setPermission(\"karanteenials.inventory.workbench\");\r\n\t\t\twb.register();\r\n\t\t\t\r\n\t\t\tEnderChestCommand ec = new EnderChestCommand();\r\n\t\t\tec.setPermission(\"karanteenials.inventory.enderchest\");\r\n\t\t\tec.register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.CLEAR_INVENTORY.toString())) {\r\n\t\t\tClearInventoryCommand cic = new ClearInventoryCommand();\r\n\t\t\tPlayerLoader pl = new PlayerLoader(true, false, false, false);\r\n\t\t\tMaterialLoader ml = new MaterialLoader(true, false, false);\r\n\t\t\tpl.setLoader(ml);\r\n\t\t\tcic.setLoader(pl);\r\n\t\t\tpl.setPermission(\"karanteenials.inventory.clear-multiple\");\r\n\t\t\tcic.setPermission(\"karanteenials.inventory.clear\");\r\n\t\t\tcic.register();\r\n\t\t}\r\n\t\t\r\n\t\t// /nick command\r\n\t\t/*if(getSettings().getBoolean(KEY_PREFIX+KEYS.NICK.toString())) {\r\n\t\t\tNickCommand nc = new NickCommand();\r\n\t\t\tnc.register();\r\n\t\t}*/\r\n\t\t\r\n\t\t\r\n\t\t// /enchant command\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.ENCHANT_COMMAND.toString())) {\r\n\t\t\tEnchantCommand ec = new EnchantCommand();\r\n\t\t\t\r\n\t\t\tGiveEnchantmentComponent gec = new GiveEnchantmentComponent();\r\n\t\t\tgec.setPermission(\"karanteenials.enchant.set\");\r\n\t\t\t\r\n\t\t\tRemoveEnchantmentComponent rec = new RemoveEnchantmentComponent();\r\n\t\t\trec.setPermission(\"karanteenials.enchant.remove\");\r\n\t\t\t\r\n\t\t\tec.addComponent(\"give\", gec);\r\n\t\t\tec.addComponent(\"remove\", rec);\r\n\t\t\t\r\n\t\t\tEnchantmentLoader giveEnchLoader = new EnchantmentLoader();\r\n\t\t\tgec.setLoader(giveEnchLoader);\r\n\t\t\t\r\n\t\t\tEnchantmentLoader removeEnchLoader = new EnchantmentLoader();\r\n\t\t\trec.setLoader(removeEnchLoader);\r\n\t\t\t\r\n\t\t\tLevelLoader ll = new LevelLoader();\r\n\t\t\tgiveEnchLoader.setLoader(ll);\r\n\t\t\t\r\n\t\t\tec.register();\r\n\t\t}\r\n\t\t\r\n\t\t// /rtp command\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.RANDOM_TELEPORT.toString())) {\r\n\t\t\tRandomTeleport rtp = new RandomTeleport();\r\n\t\t\tPlayerLoader pl = new PlayerLoader(true, false, true, false);\r\n\t\t\trtp.setLoader(pl);\r\n\t\t\trtp.register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.NEAR_COMMAND.toString())) {\r\n\t\t\tNearCommand nc = new NearCommand();\r\n\t\t\tnc.setPermission(\"karanteenials.near\");\r\n\t\t\tnc.register();\r\n\t\t}\r\n\t}", "public Main()\n {\n createUsers();\n createFriendships();\n createMessages();\n\n }", "private void initRobots() {\n\t\tthis.robots.clear();\n\t\tGraphRobot robot = new GraphRobot();\n\t\tString info = game.toString();\n\t\ttry {\n\t\t\tJSONObject line = new JSONObject(info);\n\t\t\tJSONObject ttt = line.getJSONObject(\"GameServer\");\n\t\t\tint rs = ttt.getInt(\"robots\");\n\t\t\tfor(int a = 0;a<rs;a++) {\n\t\t\t\tgame.addRobot(a);\n\t\t\t}\n\t\t}\n\t\tcatch (JSONException e) {e.printStackTrace();}\n\n\t\tList<String> r = game.getRobots();\n\t\tfor(String s : r) {\n\t\t\trobot.initRobot(s);\n\t\t\tthis.robots.add(robot);\n\t\t}\n\t}", "public Telefone() {\n\t}", "private void createAgent() {\n logger.info(\"Creating agent\");\n iteration = 0;\n aiManager = new AIManager(configDialogInfo);\n aiManager.getAgent().addObserver(\"gameEngine\", this);\n AIBirth.generate(aiManager.getAgent());\n aiManager.start();\n }", "public static void init() {\n // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\n drivetrainSpeedController1 = new CANTalon(1);\n LiveWindow.addActuator(\"Drivetrain\", \"Speed Controller 1\", (CANTalon) drivetrainSpeedController1);\n \n drivetrainSpeedController2 = new CANTalon(2);\n LiveWindow.addActuator(\"Drivetrain\", \"Speed Controller 2\", (CANTalon) drivetrainSpeedController2);\n drivetrainSpeedController3 = new CANTalon(3);\n LiveWindow.addActuator(\"Drivetrain\", \"Speed Controller 2\", (CANTalon) drivetrainSpeedController3);\n drivetrainSpeedController4 = new CANTalon(4);\n LiveWindow.addActuator(\"Drivetrain\", \"Speed Controller 2\", (CANTalon) drivetrainSpeedController4);\n drivetrainSpeedController5 = new CANTalon(5);\n LiveWindow.addActuator(\"Drivetrain\", \"Speed Controller 2\", (CANTalon) drivetrainSpeedController5);\n drivetrainSpeedController6 = new CANTalon(6);\n LiveWindow.addActuator(\"Drivetrain\", \"Speed Controller 2\", (CANTalon) drivetrainSpeedController6);\n \n drivetrainRobotDrive21 = new RobotDrive(drivetrainSpeedController1, drivetrainSpeedController2, drivetrainSpeedController3, drivetrainSpeedController4, drivetrainSpeedController5, drivetrainSpeedController6);\n \n drivetrainRobotDrive21.setSafetyEnabled(true);\n drivetrainRobotDrive21.setExpiration(0.1);\n drivetrainRobotDrive21.setSensitivity(0.5);\n drivetrainRobotDrive21.setMaxOutput(1.0);\n\n\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\n }", "private void cargarBotones() {\n this.setLayout(new java.awt.GridBagLayout());\n\n jButtonPrimero = new JButton();\n jButtonAnterior = new JButton();\n jButtonSiguiente = new JButton();\n jButtonUltimo = new JButton();\n jLabelNumero = new JLabel();\n jLabelNumeroNum = new JLabel();\n\n jButtonPrimero.addActionListener(new java.awt.event.ActionListener() {\n @Override\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n botonesNavegacion(evt);\n }\n });\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 0;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;\n gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);\n this.add(jButtonPrimero, gridBagConstraints);\n\n jButtonAnterior.addActionListener(new java.awt.event.ActionListener() {\n @Override\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n botonesNavegacion(evt);\n }\n });\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 0;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;\n gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);\n this.add(jButtonAnterior, gridBagConstraints);\n\n jButtonSiguiente.addActionListener(new java.awt.event.ActionListener() {\n @Override\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n botonesNavegacion(evt);\n }\n });\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 0;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;\n gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);\n this.add(jButtonSiguiente, gridBagConstraints);\n\n jButtonUltimo.addActionListener(new java.awt.event.ActionListener() {\n @Override\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n botonesNavegacion(evt);\n }\n });\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 0;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;\n gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);\n this.add(jButtonUltimo, gridBagConstraints);\n\n jLabelNumero.setText(\"Registro nº: \");\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 0;\n gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);\n this.add(jLabelNumero, gridBagConstraints);\n\n jLabelNumeroNum.setText(\"1\");\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 0;\n gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);\n this.add(jLabelNumeroNum, gridBagConstraints);\n }", "public interface Bot extends Runnable {\r\n \r\n /** AOBot.State defines the various states that a bot can be in at any point in time. */\r\n public enum State {\r\n DISCONNECTED, CONNECTED, AUTHENTICATED, LOGGED_IN;\r\n } // end enum State\r\n \r\n /** Returns the current state of this bot. */\r\n State getState();\r\n \r\n /** \r\n * Returns the character that the bot is logged in as \r\n * (or null if the bot is not logged in).\r\n */\r\n CharacterInfo getCharacter();\r\n \r\n /** Returns the bot's current style sheet. */\r\n // AOBotStyleSheet getStyleSheet();\r\n \r\n /**\r\n * Reads the next packet from the server. \r\n * \r\n * @throws AOBotStateException if the bot is in the {@link State#DISCONNECTED} state\r\n * @throws IOException if an error occured while attempting to read a packet\r\n */\r\n Packet nextPacket() throws IOException;\r\n /**\r\n * Sends a packet to the server. \r\n * \r\n * @throws AOBotStateException if the bot is in the {@link State#DISCONNECTED} state\r\n * @throws IOException if an error occured while attempting to send a packet\r\n */\r\n void sendPacket(Packet packet) throws IOException;\r\n \r\n /**\r\n * Connects the bot to the server. This is simply a convience method,\r\n * {@code connect(server)} is equivalent to\r\n * {@code connect( server.getURL(), server.getPort() )}\r\n * \r\n * @throws NullPointerException if {@code server} is null\r\n * @throws AOBotStateException if the bot is not in the {@link State#DISCONNECTED} state\r\n * @throws IOException if an error occured while attempting to connect to the server\r\n *\r\n * @see ao.protocol.AODimensionAddress\r\n */\r\n void connect(DimensionAddress server) throws IOException;\r\n /**\r\n * Connects the bot to the server. \r\n * \r\n * @throws AOBotStateException if the bot is not in the {@link State#DISCONNECTED} state\r\n * @throws IOException if an error occured while attempting to connect to the server\r\n */\r\n void connect(String server, int port) throws IOException;\r\n /**\r\n * Authenticates a user with the server.\r\n * \r\n * @throws AOBotStateException if the bot is not in the {@link State#CONNECTED} state\r\n * @throws IOException if an error occured while attempting to authenticate the client with the server\r\n */\r\n void authenticate(String userName, String password) throws IOException;\r\n /**\r\n * Logs a character into the server. \r\n * \r\n * @throws AOBotStateException if the bot is not in the {@link State#AUTHENTICATED} state\r\n * @throws IOException if an error occured while attempting to log the client into the server\r\n */\r\n void login(CharacterInfo character) throws IOException;\r\n /**\r\n * Starts the bot. \r\n * \r\n * @throws AOBotStateException if the bot is not in the {@link State#LOGGED_IN} state\r\n */\r\n void start();\r\n /** \r\n * Disconnects the bot from the server. \r\n *\r\n * @throws IOException if an error occured while attempting to disconnect the client\r\n */\r\n void disconnect() throws IOException;\r\n \r\n /** Add a listener to this bot. */\r\n void addListener(BotListener l);\r\n /** Remove a listener from this bot. */\r\n void removeListener(BotListener l);\r\n /** Adds a logger to this bot. */\r\n void addLogger(BotLogger logger);\r\n /** Removes a logger from this bot. */\r\n void removeLogger(BotLogger logger);\r\n \r\n}", "public void instantiateTomes(){\n for (String tomeKey : this.getConfig().getConfigurationSection(\"tomes\").getKeys(false)){\n\n if (this.getConfig().getBoolean(\"tomes.\" + tomeKey + \".enabled\") == false){\n continue;\n }\n\n ArrayList<IQuest> questsToAddToTome = new ArrayList<IQuest>();\n for (String questKey : this.getConfig().getConfigurationSection(\"tomes.\" + tomeKey + \".quests\").getKeys(false)){\n for (IQuest quest : quests){\n if (questKey.equalsIgnoreCase(quest.getQuestName())){\n questsToAddToTome.add(quest);\n }\n }\n }\n\n //Fetch rewards of each tome\n ConfigurationSection itemsSection = Tomes.getInstance().getConfig().getConfigurationSection(\"tomes.\" + tomeKey + \".rewards.items\");\n ConfigurationSection weightsSection = Tomes.getInstance().getConfig().getConfigurationSection(\"tomes.\" + tomeKey + \".rewards.weights\");\n\n ArrayList<ItemStack> rewardsArray = new ArrayList<ItemStack>();\n\n if (itemsSection != null) {\n for (String key : itemsSection.getKeys(false)) {\n ItemStack item = itemsSection.getItemStack(key);\n\n for (int i = 0; i < Integer.parseInt(weightsSection.getString(key)); i++) {\n rewardsArray.add(item);\n }\n }\n }\n\n ConfigurationSection tomeConfig = this.getConfig().getConfigurationSection(\"tomes.\" + tomeKey);\n tomes.add(new Tome(\n tomeKey,\n tomeConfig.getString(\"displayName\"),\n tomeConfig.getInt(\"numberOfQuests\"),\n tomeConfig.getInt(\"cost\"),\n questsToAddToTome,\n rewardsArray\n ));\n\n\n }\n }", "void listBots( String className, String messager ) {\n Iterator<ChildBot> i;\n ChildBot bot;\n String rawClassName = className.toLowerCase();\n\n if( rawClassName.compareTo( \"hubbot\" ) == 0 ) {\n m_botAction.sendSmartPrivateMessage( messager, \"There is only one true master, and that is me.\" );\n } else if( getNumberOfBots( className ) == 0 ) {\n m_botAction.sendSmartPrivateMessage( messager, \"No bots of that type.\" );\n } else {\n m_botAction.sendSmartPrivateMessage( messager, className + \":\" );\n\n for( i = m_botStable.values().iterator(); i.hasNext(); ) {\n bot = i.next();\n\n if( bot != null )\n if( bot.getClassName().compareTo( className ) == 0 )\n m_botAction.sendSmartPrivateMessage( messager, bot.getBot().getBotName() + \" (in \" + bot.getBot().getBotAction().getArenaName() + \"), created by \" + bot.getCreator());\n }\n\n m_botAction.sendSmartPrivateMessage( messager, \"End of list\" );\n }\n }", "@Override\n protected void addButtons()\n {\n JLabel agentOptions = new JLabel(\"Client Options \", SwingConstants.CENTER);\n addComponentToGridBag(this, agentOptions, 0, 0, 1, 1, GridBagConstraints.CENTER, GridBagConstraints.BOTH);\n\n JButton agentSendMessage = new JButton(\"Send Message\");\n addComponentToGridBag(this, agentSendMessage, 0, 2, 1, 1, GridBagConstraints.CENTER, GridBagConstraints.BOTH);\n agentSendMessage.addActionListener((ActionEvent e) ->\n {\n String to = getTo();\n String content = getContent(to);\n sendMessage(to, content);\n });\n\n JButton agentShowPortal = new JButton(\"Show Portal\");\n addComponentToGridBag(this, agentShowPortal, 0, 3, 1, 1, GridBagConstraints.CENTER, GridBagConstraints.BOTH);\n agentShowPortal.addActionListener((ActionEvent e) ->\n {\n displayConnections();\n });\n\n JButton agentexit = new JButton(\"Exit\");\n addComponentToGridBag(this, agentexit, 0, 5, 1, 1, GridBagConstraints.CENTER, GridBagConstraints.BOTH);\n agentexit.addActionListener((ActionEvent e) ->\n {\n System.exit(0);\n });\n }", "public void agregarRobot(Robot robot);", "private void createNotificationChannels() {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {\n NotificationChannel channel1 = new NotificationChannel(CHANNEL_REMINDER_ID, \"Reminder Channel\",NotificationManager.IMPORTANCE_HIGH);\n channel1.setDescription(\"Reminder to drink water\");\n\n NotificationManager manager = getSystemService(NotificationManager.class);\n manager.createNotificationChannel(channel1);\n\n\n }\n }", "public void create(Lobby lobby) {\n for (LobbyPlayer player : lobby.getPlayers()) Firebase.registerListener(\"lobbies/\" + player.getLobbyCode(), onLobbyChange);\n Firebase.setDocument(\"lobbies/\" + lobby.getGameCode(), LobbyDTO.fromModel(lobby));\n }", "private CommandBrocker() {}", "ChildBot( String className, String creator, Session bot ) {\n m_bot = bot;\n m_creator = creator;\n m_className = className;\n }", "private void registerNeurons(){\n\t\tneurons.add(new ObstaclesDetectionNeuron(this));\n\t\tneurons.add(new AreaLimitDetectionNeuron(this));\n\t\tneurons.add(new ButtonHandlerNeuron(this));\n\t\tneurons.add(new BeeperNeuron(this));\n\t}", "private void createHumanPlayer() {\n humanPlayer = new Player(\"USER\");\n players[0] = humanPlayer;\n }", "private void createButtons() {\n\t\tfor (int x = 0; x < buttons.length; x++)\n\t\t\tfor (int y = 0; y < buttons[x].length; y++) {\n\t\t\t\tif ((x % 2 == 0 && y % 2 == 0) || (x % 2 == 1 && y % 2 == 1))\n\t\t\t\t\tbuttons[x][y] = new DarkButton();\n\t\t\t\telse\n\t\t\t\t\tbuttons[x][y] = new LightButton();\n\n\t\t\t\tbuttonListener(x, y);\n\t\t\t}\n\t\t\t\n\t\t\tinitButtonIcons();\n\t}", "public void teleopInit() {\n // Initalize test command\n Jagbot.isAutonomous = false;\n MessageWindow.write(1, \"Robot init\");\n //testCommand = new TestCommand();\n //testCommand.start();\n }", "private List<BotDescription> getBotsDescription( )\r\n {\r\n List<BotDescription> list = new ArrayList<BotDescription>( );\r\n\r\n for ( ChatBot bot : getBots( ) )\r\n {\r\n List<String> listLanguages = bot.getAvailableLanguages( );\r\n\r\n if ( listLanguages != null )\r\n {\r\n for ( String strLanguage : listLanguages )\r\n {\r\n BotDescription botDescription = new BotDescription( );\r\n Locale locale = new Locale( strLanguage );\r\n botDescription.setName( bot.getName( locale ) );\r\n botDescription.setDescription( bot.getDescription( locale ) );\r\n botDescription.setLanguage( locale.getDisplayLanguage( ) );\r\n botDescription.setAvatarUrl( bot.getAvatarUrl( ) );\r\n\r\n UrlItem url = new UrlItem( URL_BOT );\r\n url.addParameter( PARAMETER_BOT, bot.getKey( ) );\r\n url.addParameter( PARAMETER_LANGUAGE, strLanguage );\r\n botDescription.setUrl( url.getUrl( ) );\r\n list.add( botDescription );\r\n }\r\n }\r\n else\r\n {\r\n BotDescription botDescription = new BotDescription( );\r\n Locale locale = LocaleService.getDefault( );\r\n botDescription.setName( bot.getName( locale ) );\r\n botDescription.setDescription( bot.getDescription( locale ) );\r\n botDescription.setLanguage( locale.getDisplayLanguage( ) );\r\n botDescription.setAvatarUrl( bot.getAvatarUrl( ) );\r\n\r\n UrlItem url = new UrlItem( URL_BOT );\r\n url.addParameter( PARAMETER_BOT, bot.getKey( ) );\r\n url.addParameter( PARAMETER_LANGUAGE, locale.getLanguage( ) );\r\n botDescription.setUrl( url.getUrl( ) );\r\n list.add( botDescription );\r\n }\r\n }\r\n\r\n return list;\r\n }", "private void createPlayers() {\n // create human player first\n Player human = new Player(\"Player 1\", true);\n players.add(human);\n \n // create remaining AI Players\n for (int i = 0; i < numAIPlayers; i++) {\n Player AI = new Player(\"AI \" + (i + 1), false);\n players.add(AI);\n }\n }", "public void creaAziendaAgricola(){\n\t\tCantina nipozzano = creaCantina(\"Nipozzano\");\t\n\t\tBotte[] bottiNipozzano = new Botte[5+(int)(Math.random()*10)];\t\n\t\tfor(int i=0; i<bottiNipozzano.length; i++){\n\t\t\tbottiNipozzano[i] = creaBotte(nipozzano, i, (int)(Math.random()*10+1), tipologiaBotte[(int)(Math.random()*tipologiaBotte.length)]);\n\t\t}\t\t\n\t\tVigna mormoreto = creaVigna(\"Mormoreto\", 330, 25, EsposizioneVigna.sud, \"Terreni ricchi di sabbia, ben drenati. Discreta presenza di calcio. pH neutro o leggermente alcalino\");\n\t\tFilare[] filariMormoreto = new Filare[5+(int)(Math.random()*10)];\n\t\tfor(int i=0; i<filariMormoreto.length;i++){\n\t\t\tfilariMormoreto[i] = creaFilare(mormoreto, i, tipologiaFilare[(int)(Math.random()*tipologiaFilare.length)]);\n\t\t}\t\n\t\tVigna montesodi = creaVigna(\"Montesodi\", 400, 20, EsposizioneVigna.sud_ovest, \"Arido e sassoso, di alberese, argilloso e calcareo, ben drenato, poco ricco di sostanza organica\");\n\t\tFilare[] filariMontesodi = new Filare[5+(int)(Math.random()*10)];\n\t\tfor(int i=0; i<filariMontesodi.length;i++){\n\t\t\tfilariMontesodi[i] = creaFilare(montesodi, i, tipologiaFilare[(int)(Math.random()*tipologiaFilare.length)]);\n\t\t}\n\t\t/*\n\t\t * CANTINA: POMINO - VIGNETO BENEFIZIO\n\t\t */\n\t\t\n\t\tCantina pomino = creaCantina(\"Pomino\");\n\t\tBotte[] bottiPomino = new Botte[5+(int)(Math.random()*10)];\t\n\t\tfor(int i=0; i<bottiPomino.length; i++){\n\t\t\tbottiPomino[i] = creaBotte(pomino, i, (int)(Math.random()*10+1), tipologiaBotte[(int)(Math.random()*tipologiaBotte.length)]);\n\t\t}\n\t\tVigna benefizio = creaVigna(\"Benefizio\", 700, 9, EsposizioneVigna.sud_ovest, \"Terreni ricchi di sabbia, forte presenza di scheletro. Molto drenanti. Ricchi in elementi minerali. PH acido o leggermente acido.\");\n\t\tFilare[] filariBenefizio = new Filare[5+(int)(Math.random()*10)];\n\t\tfor(int i=0; i<filariBenefizio.length;i++){\n\t\t\tfilariBenefizio[i] = creaFilare(benefizio, i, tipologiaFilare[(int)(Math.random()*tipologiaFilare.length)]);\n\t\t}\n\t\t\n\t\taziendaAgricolaDAO.saveLuogo(nipozzano);\n\t\taziendaAgricolaDAO.saveLuogo(mormoreto);\n\t\taziendaAgricolaDAO.saveLuogo(montesodi);\n\t\t\n\t\taziendaAgricolaDAO.saveLuogo(pomino);\n\t\taziendaAgricolaDAO.saveLuogo(benefizio);\n\t\t\n\t\taziendaAgricolaDAO.saveResponsabile(responsabile(\"Giulio d'Afflitto\"));\n\t\taziendaAgricolaDAO.saveResponsabile(responsabile(\"Francesco Ermini\"));\n\n\t\t\n\t}", "public static void main(String args[]) {\n File config = new File(\"files/config.txt\");\n\n try {\n JavaBot.FileReader = new BufferedReader(new FileReader(config));\n String line = null;\n line = JavaBot.FileReader.readLine();\n\n while (line != null) {\n final String[] array = line.split(\"=\");\n\n if (array.length == 2) {\n JavaBot.configNameArray.add(array[0].replaceAll(\"=\", \"\").trim());\n JavaBot.configArray.add(array[1].trim());\n }\n\n line = JavaBot.FileReader.readLine();\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n JavaBot.getAllConfig();\n\n String[] channels = JavaBot.CHANNELS.split(SERVERS_SEPERATOR); \n String[] passwords = JavaBot.NICKSERV_PASSWORDS.split(SERVERS_SEPERATOR); \n String[] names = JavaBot.NAMES.split(SERVERS_SEPERATOR);\n\n /** TRIMMING VARIABLES */\n SERVERS_ARRAY = trimArray(SERVERS_ARRAY);\n channels = trimArray(channels);\n passwords = trimArray(passwords);\n names = trimArray(names);\n\n initPlugins();\n \n /** CLASSES onStart() */\n new onStart();\n\n /** PLUGINS onStart() */\n\n for (final javaBotPlugin plugin : plugins) {\n plugin.onStart();\n }\n\n for (int i = 0; i < SERVERS_ARRAY.length; i++) {\n JavaBot bot = new JavaBot();\n\n // setting of values respective to each instance of the bot\n bot.setServer(SERVERS_ARRAY[i]);\n bot.setBotName(names[i]);\n bot.setPassword(passwords[i]);\n bot.channels_array = channels[i].split(CHANNELS_SEPERATOR); // split up channels\n new Thread(bot).start();\n }\n }", "public Subsystem1() {\n // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\nspeedController1 = new PWMVictorSPX(0);\naddChild(\"Speed Controller 1\",speedController1);\nspeedController1.setInverted(false);\n \nspeedController2 = new PWMVictorSPX(1);\naddChild(\"Speed Controller 2\",speedController2);\nspeedController2.setInverted(false);\n \nspeedController3 = new PWMVictorSPX(2);\naddChild(\"Speed Controller 3\",speedController3);\nspeedController3.setInverted(false);\n \nspeedController4 = new PWMVictorSPX(3);\naddChild(\"Speed Controller 4\",speedController4);\nspeedController4.setInverted(false);\n \nmecanumDrive1 = new MecanumDrive(speedController1, speedController2,\nspeedController3, speedController4);\naddChild(\"Mecanum Drive 1\",mecanumDrive1);\nmecanumDrive1.setSafetyEnabled(true);\nmecanumDrive1.setExpiration(0.1);\nmecanumDrive1.setMaxOutput(1.0);\n\n \n\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\n }", "public void conectarControlador(Controlador c){\n int i = 1;\n for(BCE b : eleccion.getBotones()){\n b.getBoton().setActionCommand(\"\" + i++);\n b.getBoton().addActionListener(c);\n }\n btnRegistrar.addActionListener(c);\n }", "private void registerCommands(){\n getCommand(\"mineregion\").setExecutor(new MineRegionCommand());\n getCommand(\"cellblock\").setExecutor(new CellBlockCommand());\n getCommand(\"cell\").setExecutor(new CellCommand());\n getCommand(\"prisonblock\").setExecutor(new PrisonBlockCommand());\n getCommand(\"rankup\").setExecutor(new RankUpCommand());\n getCommand(\"portal\").setExecutor(new PortalCommand());\n }", "private void cargarBotones() {\n recordar_pass = findViewById(R.id.button_recordar);\n recordar_pass.setOnClickListener(new View.OnClickListener() {\n public void onClick(final View v) {\n //Antes de hacer la peticion al servidor hacemos las comprobaciones necesarias.\n if (textInputLayout_email.getText().toString().isEmpty() || textInputLayout_email.getText().toString().equals(\"\")) {\n mensaje=getResources().getString(R.string.debe_indicar_nombre_usuario_registrado);\n Snackbar.make(v, mensaje, Snackbar.LENGTH_LONG).setAction(\"Action\", null).show();\n } else {\n // Para cerrar el teclado antes de mostrar el AlertDialog\n InputMethodManager inputMethodManager = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);\n inputMethodManager.hideSoftInputFromWindow(textInputLayout_email.getWindowToken(), 0);\n //Dialogo que confirma el cambio de contraseña informado al usuario que se\n // le enviara un correo con la nueva contraseña auto generada.\n AlertDialog alertDialog = new AlertDialog.Builder(RecordarPass.this).create();\n alertDialog.setTitle(getResources().getString(R.string.recordarpasstitulo));\n alertDialog.setMessage(getResources().getString(R.string.mensaje_recordar_pass));\n alertDialog.setButton(AlertDialog.BUTTON_POSITIVE, getResources().getString(R.string.aceptar), new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n JSONObject json = new JSONObject();\n try {\n json.put(Tags.USUARIO, textInputLayout_email.getText().toString());\n //Se hace la peticion al servidor con el json que lleva dentro el email del usuario.\n json = JSONUtil.hacerPeticionServidor(\"usuarios/java/recuperar_contrasena/\", json);\n\n\n String p = json.getString(Tags.RESULTADO);\n //Comprobamos la conexión con el servidor\n if (p.contains(Tags.ERRORCONEXION)) {\n //Si no conecta imprime un snackbar\n mensaje=getResources().getString(R.string.error_conexion);\n Snackbar.make(v, mensaje, Snackbar.LENGTH_LONG).setAction(\"Action\", null).show();\n\n// return false;\n }\n else if (p.contains(Tags.OK)) {\n //Si el servidor devuelve OK y se ha generado una nueva\n // contraseña porque el usuario es correcto, tendra que mirar\n // el su correo para poder acceder a la apliacion con la nueva contraseña.\n mensaje= getResources().getString(R.string.mensaje_enviado);\n Snackbar.make(v, mensaje, Snackbar.LENGTH_LONG).setAction(\"Action\", null).show();\n finish();\n }\n //resultado falla por otro error\n else if (p.contains(Tags.ERROR)) {\n String msg = json.getString(Tags.MENSAJE);\n Snackbar.make(v, msg, Snackbar.LENGTH_LONG).setAction(\"Action\", null).show();\n\n// return false;\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n dialog.dismiss();\n }\n });\n\n alertDialog.setButton(AlertDialog.BUTTON_NEGATIVE, getResources().getString(R.string.cancelar), new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n });\n alertDialog.show();\n }\n }\n\n });\n }", "private void createNewChat() {\n if (advertisement.getUniqueOwnerID().equals(dataModel.getUserID())) {\n view.showCanNotSendMessageToYourselfToast();\n return;\n }\n\n dataModel.createNewChat(advertisement.getUniqueOwnerID(), advertisement.getOwner(), advertisement.getUniqueID(),\n advertisement.getImageUrl(), chatID -> view.openChat(chatID));\n }", "public DiscordBot() throws LoginException {\n // 1. Setup a EnumSet of GatewayIntent and load all permissions to list\n EnumSet<GatewayIntent> gatewayIntents = initializeGateways();\n // 2. Build JDA Api configuration with api token and permission list\n API = JDABuilder.create(TOKEN, gatewayIntents).build();\n }", "public Bot(int x, int y, int xMax, int yMax, int botSize, ArrayList<Bot> bots) {\n\t\tsens = new Sensors(x, y, xMax, yMax, botSize, bots);\n\t\tcloseBots = new ArrayList<Bot>();\n\t\ttickCount = (int) (Math.random() * 20);\n\t\tisActive = true;\n\t}", "private void createAndListen() {\n\n\t\t\n\t}", "private static void crearMuebles(Mueble[] muebles, Almacen[] almacenes) {\n\t\tfor (int i = 0; i < 15; i++) {\n\t\t\tmuebles[i] = new Mueble(\"mueble \"+ (i + 1) , 3, 3, 3);\n\t\t\t//hacemos aqui la asignacion de almacenes con random\n\t\t\tif(muebles[i].getAsignado()==false){\n\t\t\t\talmacenes[(int)(Math.random()*4)].guardarMueble(muebles[i]);\n\t\t\t\tmuebles[i].setAsignado(true);\n\t\t\t}\n\t\t}\n\t}", "public Bot(int x, int y, int xMax, int yMax, int botSize, ArrayList<Bot> bots) {\n\t\t\n\t\t// init the vars\n\t\tthis.charge = -1.5D;\n\t\tthis.desiredDirection = Math.random() * 360.0;\t// random starting direction\n\t\tthis.seenBots = new ArrayList<Bot>();\n\t\tthis.closeBots = new ArrayList<Bot>();\n\t\tthis.seenCharges = new ArrayList<Object>();\n\t\tthis.LEDs = new ArrayList<LED>();\n\t\tthis.closestWhiteLED = null;\n\t\tthis.botConnectedTo = null;\n\t\tthis.tickCount = (int) (Math.random() * 20);\n\t\tthis.isActive = true;\n\t\t\n\t\t// create the sensors\n\t\tthis.sens = new Sensors(x, y, xMax, yMax, botSize, bots, desiredDirection, this);\n\t\t\n\t\t// add the LEDs\n\t\tLEDs.add(new LED(this, 45));\n\t\tLEDs.add(new LED(this, 90));\n\t\tLEDs.add(new LED(this, 135));\n\t\tLEDs.add(new LED(this, 180));\n\t\tLEDs.add(new LED(this, 225));\n\t\tLEDs.add(new LED(this, 270));\n\t\tLEDs.add(new LED(this, 315));\n\t\tLEDManager = new LEDManager(this.LEDs);\n\t\t\n\t}", "public static void createLineBot(com.azure.resourcemanager.botservice.BotServiceManager manager) {\n manager\n .channels()\n .createWithResponse(\n \"OneResourceGroupName\",\n \"samplebotname\",\n ChannelName.LINE_CHANNEL,\n new BotChannelInner()\n .withLocation(\"global\")\n .withProperties(\n new LineChannel()\n .withProperties(\n new LineChannelProperties()\n .withLineRegistrations(\n Arrays\n .asList(\n new LineRegistration()\n .withChannelSecret(\"channelSecret\")\n .withChannelAccessToken(\"channelAccessToken\"))))),\n Context.NONE);\n }", "public void createGameButtons() {\n \tcreateGameButton(myResources.getString(\"startcommand\"), 1, GAME_BUTTON_XLOCATION, GAME_BUTTON_YLOCATION);\n \tcreateGameButton(myResources.getString(\"stopcommand\"), 0, GAME_BUTTON_XLOCATION * 3, GAME_BUTTON_YLOCATION);\n \tcreateGameButton(myResources.getString(\"speedup\"), SPEED_INCREASE, GAME_BUTTON_XLOCATION*5, GAME_BUTTON_YLOCATION);\n \tcreateGameButton(myResources.getString(\"slowdown\"), 1/SPEED_INCREASE, GAME_BUTTON_XLOCATION*7, GAME_BUTTON_YLOCATION);\n }", "public void crearP(){\n \t\n getContentPane().setLayout(new BorderLayout());\n \n // Create two JPanels one on top on the other\n p1 = new JPanel();\n p2 = new JPanel();\n \n // Set the grid layout \n p1.setLayout(new GridLayout(5,2));\n p2.setLayout(new GridLayout(2,1));\n \n //********************//\n // Create the buttons //\n //********************//\n \n buttonAbonar = new JButton(\"Abonar\");\n botones.add(buttonAbonar);\n \n buttonRetirar = new JButton(\"Retirar\");\n botones.add(buttonRetirar);\n\n buttonComprarPagar = new JButton(\"Comprar / Pagar\");\n botones.add(buttonComprarPagar);\n\n buttonComprarInversion = new JButton(\"Comprar Inversion\");\n botones.add(buttonComprarInversion);\n\n buttonRecibirTransferencia = new JButton(\"Recibir Transferencia\");\n botones.add(buttonRecibirTransferencia);\n\n buttonRealizarTransferencia = new JButton(\"Realizar Transferencia\"); \n botones.add(buttonRealizarTransferencia);\n\n buttonGenerarCorte = new JButton(\"Generar Corte\");\n botones.add(buttonGenerarCorte);\n\n buttonVerEstado= new JButton(\"Ver Estado Datos Banco\"); \n botones.add(buttonVerEstado);\n\n buttonAddConto= new JButton(\"Insertar Cuenta Credito\"); \n botones.add(buttonAddConto);\n buttonAddConto= new JButton(\"Insertar Cuenta Debito\"); \n botones.add(buttonAddConto);\n \n buttonAddUser= new JButton(\"Insertar Cliente\"); \n botones.add(buttonAddUser);\n \n // Set the size for the buttons\n for(JButton x:botones){\n x.setMaximumSize(new Dimension(250,250));\n x.setMinimumSize(new Dimension(200,200));\n x.setPreferredSize(new Dimension(200,200));\n // Adding the button to the view\n p1.add(x);\n }\n \n //***************************//\n // Adding a text to a JLabel //\n //***************************//\n\n labelPanel = new JLabel(\" Estado...\");\n p2.add(labelPanel);\n \n //*******************************//\n // Adding a text to a JTextField //\n // To display the errors..\t\t //\n //*******************************//\n \n tf = new JTextField(\"Detalles del error...\");\n textos.add(tf);\n p2.add(textos.get(0));\n \n // Setting the layout of the Panels\n add(p1, BorderLayout.WEST);\n add(p2, BorderLayout.CENTER);\n }", "private Button[] createButtonsAndLMessage() {\n\t\t\n\t\t// local buttom\n\t\tButton launchLocal = new Button(\"Launch Local Game\");\n\t\tlaunchLocal.setMaxWidth(Double.MAX_VALUE);\n\t\tlaunchLocal.setAlignment(Pos.CENTER);\n\t\tlaunchLocal.autosize();\n\t\tlaunchLocal.setOnAction(e -> {\n\t\t\t\n\t\t\ttry {\n\t\t\t\tif(checkingAllArguments()) {\n\t\t\t\t\tmenuMessage.setText(\"Game will start soon...\");\n\t\t\t\t\tlaunchLocal(new Stage());\n\t\t\t\t}\n\t\t\t } catch (Exception exception) { \n\t\t\t\t menuMessage.setText(\"Can't launch a local game : either a IP Address of a remote player is wrong or you didn't select 4 players\");\n\t\t\t } \n\t\t \n\t\t});\n\t\t\n\t\t// remote button\n\t\tButton launchRemote = new Button(\"Launch Remote Game\");\n\t\tlaunchRemote.setMaxWidth(Double.MAX_VALUE);\n\t\tlaunchRemote.setAlignment(Pos.CENTER);\n\t\tlaunchRemote.autosize();\n\t\tlaunchRemote.setOnAction(e -> { \n\t\t\t\n\t\t\ttry {\n\t\t\t\tmenuMessage.setText(\"Game will start as soon as the client is connected...\");\n\t\t\t\tlaunchRemote(new Stage());\n\t\t\t } catch (Exception exception) { \n\t\t\t\tmenuMessage.setText(\"Can't launch a remote game : Check your internet connection\");\n\t\t\t } \n\t\t}); \n\t\t\n\t\tButton[] toReturn = {launchLocal, launchRemote};\n\t\treturn toReturn;\n\t}", "BotQueue( ThreadGroup group, BotAction botAction ) {\n super( group, \"BotQueue\" );\n repository = new Vector<File>();\n m_group = group;\n m_lastSpawnTime = 0;\n m_botAction = botAction;\n directory = new File( m_botAction.getCoreData().getGeneralSettings().getString( \"Core Location\" ));\n\n int delay = m_botAction.getGeneralSettings().getInt( \"SpawnDelay\" );\n\n if( delay == 0 )\n SPAWN_DELAY = 20000;\n else\n SPAWN_DELAY = delay;\n\n if ( m_botAction.getGeneralSettings().getString( \"Server\" ).equals(\"localhost\") ||\n m_botAction.getGeneralSettings().getString( \"Server\" ).equals(\"127.0.0.1\"))\n SPAWN_DELAY = 100;\n\n resetRepository();\n\n m_botTypes = Collections.synchronizedMap( new HashMap<String, Integer>() );\n m_botStable = Collections.synchronizedMap( new HashMap<String, ChildBot>() );\n m_spawnQueue = Collections.synchronizedList( new LinkedList<ChildBot>() );\n\n m_botTypes.put( \"hubbot\", new Integer( 1 ));\n\n if( repository.size() == 0 ) {\n Tools.printLog( \"There are no bots to load. Did you set the Core Location parameter in setup.cfg improperly?\" );\n } else {\n System.out.println( \"Looking through \" + directory.getAbsolutePath()\n + \" for bots. \" + (repository.size() - 1) + \" child directories.\" );\n System.out.println();\n System.out.println(\"=== Loading bots ... ===\");\n }\n\n m_loader = new AdaptiveClassLoader( repository, getClass().getClassLoader() );\n }", "Drone createDrone();", "private void createAndShowGUI (){\n\n JustawieniaPowitalne = new JUstawieniaPowitalne();\n }", "public static void main(String[] args) throws Exception {\n Configuration configuration = new Configuration.Builder()\n .setName(\"Jew\") //Set the nick of the bot. CHANGE IN YOUR CODE\n .addServer(\"irc.ppy.sh\") //Join the freenode network\n .setServerPassword(\"c1907bb4\")\n .addAutoJoinChannel(\"#osu\")\n .addListener(new MyListener()) //Add our listener that will be called on Events\n .buildConfiguration();\n\n\n //Create our bot with the configuration\n PircBotX bot = new PircBotX(configuration);\n //Connect to the server\n bot.startBot();\n\n\n\n }", "private void agregarBotones() {\n boton = new JButton[20];\r\n //INICIALIZAMOS LOS BOTONES\r\n boton[0]=new JButton(\"CE\");\r\n boton[1]=new JButton(\"\");\r\n boton[2]=new JButton(\"\");\r\n boton[3]=new JButton(\"\");\r\n boton[4]=new JButton(\"7\");\r\n boton[5]=new JButton(\"8\");\r\n boton[6]=new JButton(\"9\");\r\n boton[7]=new JButton(\"/\");\r\n boton[8]=new JButton(\"4\");\r\n boton[9]=new JButton(\"5\");\r\n boton[10]=new JButton(\"6\");\r\n boton[11]=new JButton(\"*\");\r\n boton[12]=new JButton(\"1\");\r\n boton[13]=new JButton(\"2\");\r\n boton[14]=new JButton(\"3\");\r\n boton[15]=new JButton(\"-\");\r\n boton[16]=new JButton(\"0\");\r\n boton[17]=new JButton(\".\");\r\n boton[18]=new JButton(\"=\");\r\n boton[19]=new JButton(\"+\");\r\n //AGREAMOS LOS BOTONES AL PANEL BOTONES\r\n for(int i=0;i<20;i++){\r\n panel_botones.add(boton[i]);\r\n }\r\n //EVENTOS DE LOS BOTONES\r\n //OPERACIONES\r\n boton[19].addActionListener(new ActionListener(){\r\n @Override\r\n public void actionPerformed(ActionEvent evt){\r\n try{\r\n if(op1!=0)\r\n op1=op1+Double.parseDouble(caja.getText());\r\n else\r\n op1=Double.parseDouble(caja.getText());\r\n operacion=\"suma\";\r\n caja.setText(\"\");\r\n }catch(Exception err){}\r\n \r\n }\r\n });\r\n boton [15].addActionListener(new ActionListener(){\r\n @Override\r\n public void actionPerformed(ActionEvent evt){\r\n try{\r\n if(op1!=0)\r\n op1=op1-Double.parseDouble(caja.getText());\r\n else\r\n op1=Double.parseDouble(caja.getText());\r\n operacion=\"resta\";\r\n caja.setText(\"\");\r\n }catch(Exception err){}\r\n }\r\n });\r\n boton[11].addActionListener(new ActionListener(){\r\n @Override\r\n public void actionPerformed(ActionEvent evt){\r\n try{\r\n if(op1!=0)\r\n op1=op1*Double.parseDouble(caja.getText());\r\n else\r\n op1=Double.parseDouble(caja.getText());\r\n operacion=\"multiplicacion\";\r\n caja.setText(\"\");\r\n }catch(Exception err){}\r\n }\r\n });\r\n boton[7].addActionListener(new ActionListener(){\r\n @Override\r\n public void actionPerformed(ActionEvent evt){\r\n try{\r\n if(op1!=0)\r\n op1=op1/Double.parseDouble(caja.getText());\r\n else\r\n op1=Double.parseDouble(caja.getText());\r\n operacion=\"division\";\r\n caja.setText(\"\");\r\n }catch(Exception err){}\r\n }\r\n });\r\n //NUMEROS Y PUNTO DECIMAL\r\n boton[4].addActionListener(new ActionListener(){\r\n @Override\r\n public void actionPerformed(ActionEvent evt){\r\n if(nueva){caja.setText(\"\");nueva=false;}\r\n caja.setText(caja.getText()+\"7\");\r\n }\r\n });\r\n boton[5].addActionListener(new ActionListener(){\r\n @Override\r\n public void actionPerformed(ActionEvent evt){\r\n if(nueva){caja.setText(\"\");nueva=false;}\r\n caja.setText(caja.getText()+\"8\");\r\n }\r\n });\r\n boton[6].addActionListener(new ActionListener(){\r\n @Override\r\n public void actionPerformed(ActionEvent evt){\r\n if(nueva){caja.setText(\"\");nueva=false;}\r\n caja.setText(caja.getText()+\"9\");\r\n }\r\n });\r\n boton[8].addActionListener(new ActionListener(){\r\n @Override\r\n public void actionPerformed(ActionEvent evt){\r\n if(nueva){caja.setText(\"\");nueva=false;}\r\n caja.setText(caja.getText()+\"4\");\r\n }\r\n });\r\n boton[9].addActionListener(new ActionListener(){\r\n @Override\r\n public void actionPerformed(ActionEvent evt){\r\n if(nueva){caja.setText(\"\");nueva=false;}\r\n caja.setText(caja.getText()+\"5\");\r\n }\r\n });\r\n boton[10].addActionListener(new ActionListener(){\r\n @Override\r\n public void actionPerformed(ActionEvent evt){\r\n if(nueva){caja.setText(\"\");nueva=false;}\r\n caja.setText(caja.getText()+\"6\");\r\n }\r\n });\r\n boton[12].addActionListener(new ActionListener(){\r\n @Override\r\n public void actionPerformed(ActionEvent evt){\r\n if(nueva){caja.setText(\"\");nueva=false;}\r\n caja.setText(caja.getText()+\"1\");\r\n }\r\n });\r\n boton[13].addActionListener(new ActionListener(){\r\n @Override\r\n public void actionPerformed(ActionEvent evt){\r\n if(nueva){caja.setText(\"\");nueva=false;}\r\n caja.setText(caja.getText()+\"2\");\r\n }\r\n });\r\n boton[14].addActionListener(new ActionListener(){\r\n @Override\r\n public void actionPerformed(ActionEvent evt){\r\n if(nueva){caja.setText(\"\");nueva=false;}\r\n caja.setText(caja.getText()+\"3\");\r\n }\r\n });\r\n boton[16].addActionListener(new ActionListener(){\r\n @Override\r\n public void actionPerformed(ActionEvent evt){\r\n if(nueva){caja.setText(\"\");nueva=false;}\r\n caja.setText(caja.getText()+\"0\");\r\n }\r\n });\r\n boton[17].addActionListener(new ActionListener(){\r\n @Override\r\n public void actionPerformed(ActionEvent evt){\r\n if(nueva){caja.setText(\"\");nueva=false;}\r\n caja.setText(caja.getText()+\".\");\r\n }\r\n });\r\n //IGUAL\r\n boton[18].addActionListener(new ActionListener(){\r\n @Override\r\n public void actionPerformed(ActionEvent evt){\r\n try{\r\n op2=Double.parseDouble(caja.getText());\r\n }catch(Exception err){}\r\n if(operacion.equals(\"suma\")){\r\n double res=op1+op2;\r\n caja.setText(String.valueOf(res));\r\n op1=op2=0;\r\n operacion=\"\";\r\n }else if(operacion.equals(\"resta\")){\r\n double res=op1-op2;\r\n caja.setText(String.valueOf(res));\r\n op1=op2=0;\r\n operacion=\"\";\r\n }else if(operacion.equals(\"multiplicacion\")){\r\n double res=op1*op2;\r\n caja.setText(String.valueOf(res));\r\n op1=op2=0;\r\n operacion=\"\";\r\n }else if(operacion.equals(\"division\")){\r\n double res=op1/op2;\r\n caja.setText(String.valueOf(res));\r\n op1=op2=0;\r\n operacion=\"\";\r\n }\r\n nueva=true;\r\n }\r\n });\r\n //CE\r\n boton[0].addActionListener(new ActionListener(){\r\n @Override\r\n public void actionPerformed(ActionEvent evt){\r\n caja.setText(\"\");\r\n op1=op2=0;\r\n operacion=\"\";\r\n }\r\n });\r\n \r\n }", "protected Component createBotInfoPanel() {\n\t\tJPanel botInfoPanel = generatePanel(new GridLayout(2, 3), \"Bot Information\");\n\n\t\tbotInfoPanel.add(generateTextField(botPrefix = new JTextField(\"jmeterBot\", 10), \"Bot Prefix: \"));\n\t\tbotInfoPanel.add(generateTextField(channelPrefix = new JTextField(\"#jmeter\", 10), \"Channel Prefix: \"));\n\t\tbotInfoPanel.add(generateTextField(numChannels = new JTextField(\"1\", 10), \"Channels: \"));\n\t\tbotInfoPanel.add(generateTextField(command = new JTextField(\"?jmeter\", 10), \"Command: \"));\n\t\tbotInfoPanel.add(generateTextField(targetNick = new JTextField(\"\", 10), \"Target Nick: \"));\n\n\t\treturn botInfoPanel;\n\t}", "public void createHandlerAndRunnable(){\n handler = new Handler();\n runnable = new Runnable(){\n @Override\n public void run() {\n makegoaway();\n }\n };\n handler.postDelayed(runnable, SPLASH_DISPLAY_LENGHT);\n }", "@Override\n\tprotected void onInitialAgentsCreation() {\n\t\tSystem.out.println(\"Création drones\");\n\t\tDrone drone = null;\n\t\tDroneBuilder droneBuilder;\n\t\tfor (int i = 0; i < INITIAL_DRONE_COUNT; i++) {\n\t\t\tdrone = new Drone(this, getEnvironment().getRandom().nextInt(World.WIDTH), getEnvironment().getRandom().nextInt(World.HEIGHT));\n\t\t\tdroneBuilder = new DroneBuilder();\n\t\t\tdroneBuilder.setDrone(drone);\n\t\t\tdroneBuilder.buildBehaviorStates();\n\t\t\tdroneBuilder.buildAgentPhase();\n\t\t}\n\t}", "private void generateButtons(){\n\t\tint coordX = ThreadLocalRandom.current().nextInt(0, 16);\n\t\tint coordY = ThreadLocalRandom.current().nextInt(0, 16);\n\t\t//Button button = new Button(coordX, coordY);\n\t\t//buttons.put(0, button);\n\t}", "private void initChatbot(){\n final AIConfiguration config = new AIConfiguration(dialogFlowKey,\n AIConfiguration.SupportedLanguages.English,AIConfiguration.RecognitionEngine.System);\n aiDataService = new AIDataService(getActivity(),config);\n customAIServiceContext = AIServiceContextBuilder.buildFromSessionId(uuid);\n aiRequest = new AIRequest();\n\n }", "private void doJoin(){\n\n final String aggHost = System.getProperty(\"aggregate.host.uri\", \"\");\n if (aggHost.isEmpty()) {\n command(\"/aggregate\", \"addBot\", Record.of()\n .slot(\"node\", nodeUri().toString())\n .slot(\"key\", System.getProperty(\"device.name\", \"\")));\n } else {\n command(aggHost, \"/aggregate\", \"addBot\", Record.of()\n .slot(\"host\", hostUriHack().toString()) // ws://192.168.0.151:9001\n .slot(\"node\", nodeUri().toString()) // /bot/6\n .slot(\"key\", System.getProperty(\"device.name\", \"\")));// RaspiBot6|192.168.0.151:9001\n }\n }", "MiniBotXboxInputEventHandler(String _botName) {\n botName = _botName;\n }", "public void robotInit() {\n\t\toi = new OI();\n\t\t\n\t\tteleopCommand = new TeleopCommand();\n }", "@PostMapping(value=\"/random\")\n\t\tpublic Long newRandLobby(@RequestBody User user) {\n\t\t\t//Por cada lobby que haya en el servidor\n\t\t for(Long id : lobbies.keySet()) {\n\t\t \tif(!lobbies.get(id).isFull() && !lobbies.get(id).isPriv()) {\n\t\t \t\tif(lobbies.get(id).getUser1()!=null) {\n\t\t \t\t\tif(!lobbies.get(id).getUser1().getUserName().equals(user.getUserName())) {\n\t\t \t\t\t\t//El usuario 2 es el usuario que ha pedido unirse\n\t\t\t\t \t\tlobbies.get(id).setUser2(user);\n\t\t\t\t \t\t//Decimos que se ha llenado\n\t\t\t\t \t\tlobbies.get(id).setFull(true);\n\t\t\t\t \t\t//Paramos la ejecución del post devolviendo el id del Lobby\n\t\t\t\t \t\t\n\t\t\t\t \t\tChat chat = new Chat(user.getUserName()+\" se ha conectado.\",\"SERVER\");\n\t\t\t\t\t \tlobbies.get(id).addChat(chat);\n\t\t\t\t \t\treturn id;\n\t\t \t\t\t}else {\n\t\t \t\t\t\treturn 0L;\n\t\t \t\t\t}\n\t\t \t\t}else if(lobbies.get(id).getUser2()!=null){\n\t\t \t\t\tif(!lobbies.get(id).getUser2().getUserName().equals(user.getUserName())) {\n\t\t \t\t\t\t//El usuario 2 es el usuario que ha pedido unirse\n\t\t\t\t \t\tlobbies.get(id).setUser1(user);\n\t\t\t\t \t\t//Decimos que se ha llenado\n\t\t\t\t \t\tlobbies.get(id).setFull(true);\n\t\t\t\t \t\t//Paramos la ejecución del post devolviendo el id del Lobby\n\t\t\t\t \t\t\n\t\t\t\t \t\tChat chat = new Chat(user.getUserName()+\" se ha conectado.\",\"SERVER\");\n\t\t\t\t\t \tlobbies.get(id).addChat(chat);\n\t\t\t\t \t\treturn id;\n\t\t \t\t\t}else {\n\t\t \t\t\t\treturn 0L;\n\t\t \t\t\t}\n\t\t \t\t}else {\n\t\t \t\t\treturn 0L;\n\t\t \t\t}\n\t\t \t}\n\t\t }\n\t\t //Si no, pues creo un nuevo lobby con user como user1\n\t \tlong id = lastId.incrementAndGet();\n\t \tLobby lob = new Lobby(user,false);\n\t \tlobbies.put(id, lob);\n\t \tChat chat = new Chat(user.getUserName()+\" se ha conectado.\",\"SERVER\");\n\t \tlobbies.get(id).addChat(chat);\n\t \treturn id;\n\n\t\t}", "private void createPlayers() {\n\t\t//Randomize roles\n\t\tArrayList<AdventurerEnum> randomisedRoles = getRandomisedRoles();\n\t\tfor(int i=0; i<numPlayers; i++) \n\t\t\tcreateOnePlayer(randomisedRoles.get(i), i+1);\n\t}", "void createWires() {\n this.splitBoard(new Posn(0, 0), this.height, this.width);\n int counter = 0;\n for (int i = 0; i < this.width; i++) {\n for (int j = 0; j < this.height; j++) {\n nodes.set(counter, this.board.get(i).get(j));\n counter++;\n }\n }\n }", "private Button buttonEnviar(int posX, int posY) {\n Button botao = new Button();//Criando um novo botao\n botao.setLayoutX(posX);//Adicionando posicao X\n botao.setLayoutY(posY);//Adicionando posicao Y\n botao.setMinWidth(26);//Adicionando Largura Minima\n botao.setMinHeight(26);//Adicionando Altura Minima\n botao.setMaxWidth(26);//Adicionando Largura Maxima\n botao.setMaxHeight(26);//Adicionando Altura Maxima\n\n botao.setOnAction((ActionEvent e) -> {\n\n //Verificando se nenhum texto foi digitado\n if (this.mensagemText.getText().isEmpty()) {\n Alerta.erro(\"Erro ao enviar mensagem\",\"Erro: O campo de mensagem esta vazio\");\n } else {\n this.limparTextoCamadas();\n this.enviarMensagem(mensagemText.getText());\n this.mensagemText.setText(\"\");//Limpa a caixa de Texto\n }\n \n });//Atribuindo acao no botao\n\n botao.setGraphic(allImage.getImageView(\"enviar\"));\n\n return botao;\n }", "abstract ManagedChannel createChannel(List<ServerInfo> servers);", "public CreateUserCommand() {\n userReceiver = new UserReceiver();\n roleReceiver = new RoleReceiver();\n next = new GetRolesCommand();\n result = new CommandResult();\n }", "public void createChannels() {\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {\n NotificationChannel channel = new NotificationChannel(CHANNEL_ID,\n CHANNEL_NAME, NotificationManager.IMPORTANCE_DEFAULT);\n\n getManager().createNotificationChannel(channel);\n }\n\n }", "private void createBasicEnemies() {\n\t\tint xTemp1 = (int) app.random(60, 500);\n\t\tint xTemp2 = (int) app.random(650, 1140);\n\t\tint yTemp = -60;\n\t\t\n\t\t//Contador para crear enemigo cada cierto tiempo\n\t\tapp.frameRate(80);\n\t\t\n\t\t//Agregar enemigos basicos\n\t\tif (app.frameCount%120 == 0) {\n\t\t\tbasicEnemies1.add(new BasicEnemy(app, xTemp1, yTemp));\n\t\t\tbasicEnemies2.add(new BasicEnemy(app, xTemp2, yTemp));\n\t\t}\n\t\t\n\t\t//Agregar enemigos que disparan\t\t\n\t\tif (app.frameCount%250 == 0) {\n\t\t\thardEnemies1.add(new HardEnemy(app, xTemp1, yTemp));\n\t\t\thardEnemies2.add(new HardEnemy(app, xTemp2, yTemp));\n\t\t}\n\t}", "public void createChallenger() {\n\n Random random = new Random();\n if(currentTurn.getActivePlayers().size() != 1) {\n currentTurn.setCurrentPlayer(currentTurn.getActivePlayers().get(random.nextInt(currentTurn.getActivePlayers().size() - 1)));\n } else {\n currentTurn.setCurrentPlayer(currentTurn.getActivePlayers().get(0));\n }\n int i = onlinePlayers.indexOf(currentTurn.getCurrentPlayer());\n stateList.set(i, new Initialized(getCurrentTurn().getCurrentPlayer(), this));\n\n }", "public void randomiseBotDirections() {\n\t\tfor (int i = 0; i < bots.size(); i++) {\n\t\t\tbots.get(i).setDirection(Math.random() * 360);\n\t\t}\n\t}", "public void deshabilitarBotones()\n\t{\n\t\tbotonPlay.setClickable(false);\n\t\tbotonPause.setClickable(false);\n\t\tbotonPonerRingtone.setClickable(false);\n\t\tbotonDescargar.setClickable(false);\n\t}", "public modGenRoomControl() {\r\n //construct MbModule\r\n super();\r\n roomObjects = new HashMap(32);\r\n gui = new GUI();\r\n //we depend on the RemoteControl-module\r\n addDependency(\"RemoteControl\");\r\n //we depend on the ARNE-module\r\n addDependency(\"ARNE\");\r\n //register our packet data handler\r\n setPacketDataHandler(new PacketDataHandler());\r\n //we have a html-interface, so lets register it\r\n setHTMLInterface(new HTMLInterface());\r\n }", "private void setUpController(){\n\n SessionController.getInstance().addCommand(new PartyCreateCommand(\"PARTY_CREATE\"));\n SessionController.getInstance().addCommand(new PartyDetailsRetrieveCommand(\"PARTY_DETAILS_RETRIEVE\"));\n SessionController.getInstance().addCommand(new PartyInvitesRetrieveCommand(\"PARTY_INVITES_RETRIEVE\"));\n SessionController.getInstance().addCommand(new PartyLeaveCommand(\"PARTY_LEAVE\"));\n SessionController.getInstance().addCommand(new PartyMemberRemoveCommand(\"PARTY_MEMBER_REMOVE\"));\n SessionController.getInstance().addCommand(new PlayerCreateCommand(\"PLAYER_CREATE\"));\n SessionController.getInstance().addCommand(new PlayerInvitesRetrieveCommand(\"PLAYER_INVITES_RETRIEVE\"));\n SessionController.getInstance().addCommand(new PlayerLogOutCommand(\"PLAYER_LOG_OUT\"));\n }" ]
[ "0.7083733", "0.69310474", "0.65849394", "0.6394617", "0.6314018", "0.62205976", "0.6142983", "0.6099476", "0.60691714", "0.60223615", "0.5984801", "0.5935784", "0.59162974", "0.5878701", "0.5774798", "0.5749573", "0.5709357", "0.56629056", "0.5636707", "0.5604286", "0.5595015", "0.5587648", "0.5551137", "0.5551012", "0.5542939", "0.5526714", "0.55251086", "0.5482187", "0.54741514", "0.54656774", "0.5464318", "0.54520035", "0.5448712", "0.54425555", "0.54398584", "0.5436881", "0.54287565", "0.54283726", "0.54162574", "0.5415706", "0.5414772", "0.54101765", "0.5404068", "0.5393517", "0.5380698", "0.5378976", "0.5361391", "0.53529173", "0.53444445", "0.5337463", "0.5328072", "0.53265935", "0.53246814", "0.53199214", "0.5311557", "0.5303568", "0.5297771", "0.52931684", "0.5288704", "0.528158", "0.5281059", "0.52783376", "0.52747", "0.52599925", "0.5257786", "0.5256375", "0.52546394", "0.52340406", "0.52313775", "0.5226895", "0.52189773", "0.5213346", "0.520651", "0.51985556", "0.51972675", "0.51972276", "0.5197133", "0.51852936", "0.517548", "0.51751614", "0.5168567", "0.516129", "0.5154453", "0.5153604", "0.5144514", "0.5142013", "0.51390743", "0.5136144", "0.5125273", "0.5124276", "0.5116083", "0.5114767", "0.5114315", "0.51136583", "0.51127255", "0.51085335", "0.51076233", "0.5100775", "0.509792", "0.50947124", "0.5094404" ]
0.0
-1
Since Call is a oneshot type, clone it for each new observer.
@Override protected synchronized void subscribeActual(Observer<? super Response<T>> observer) { Call<T> call = originalCall.clone(); try { for (Annotation annotation : annotations) { if (annotation instanceof Cache) { time = ((Cache) annotation).time(); bindParams = ((Cache) annotation).bindParams(); break; } } MethodFactoryAdapter adapter = new MethodFactoryAdapter(call.request(), bindParams); MethodFactory factory = adapter.get(); HashMap<String, String> parseParameters = factory.parseParameters(); String url = call.request().url().toString(); boolean isFirst = true; StringBuffer buffer = new StringBuffer(); for (HashMap.Entry<String, String> entry : parseParameters.entrySet()) { String key = entry.getKey(); String value = entry.getValue(); if (isFirst) { buffer.append("?").append(key).append("=").append(value); isFirst = false; } else { buffer.append("&").append(key).append("=").append(value); } } String cacheUrl = url + buffer.toString(); long nowTime = System.currentTimeMillis(); fileName = cacheUrl + "&" + nowTime; cache = DiskLruCacheHelper.createCache(APP.app, URL_CACHE); String responseCacheData = DiskLruCacheHelper.readCacheToString(cache, cacheUrl); int indexOfTime = responseCacheData.indexOf("\n"); String[] times = responseCacheData.substring(0, indexOfTime).split(":"); responseCacheData = responseCacheData.substring(indexOfTime + 1); long diskCacheTime = Long.parseLong(times[1]); if (!TextUtils.isEmpty(responseCacheData) && diskCacheTime != -1 && nowTime - time <= diskCacheTime) { E e = new Gson().fromJson(responseCacheData, E.class); Response<T> cacheResponse = (Response<T>) Response.success(e); observer.onNext(cacheResponse); } else { cache.delete(); cache = null; } } catch (Exception e) { if (cache != null && !cache.isClosed()) { try { cache.delete(); } catch (IOException e1) { } call = null; } } CallDisposable disposable = new CallDisposable(call); observer.onSubscribe(disposable); boolean terminated = false; try { Response<T> response = call.execute(); E e = (E) response.body(); String responseData = new Gson().toJson(e); if (cache == null) { cache = DiskLruCacheHelper.createCache(APP.app, URL_CACHE); } DiskLruCacheHelper.writeStringToCache(cache, responseData, fileName); if (!disposable.isDisposed()) { observer.onNext(response); } if (!disposable.isDisposed()) { terminated = true; observer.onComplete(); } } catch (Throwable t) { Exceptions.throwIfFatal(t); if (terminated) { RxJavaPlugins.onError(t); } else if (!disposable.isDisposed()) { try { observer.onError(t); } catch (Throwable inner) { Exceptions.throwIfFatal(inner); RxJavaPlugins.onError(new CompositeException(t, inner)); } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public Call<Void> clone() {\n return new HttpCall(httpClient, endpoint, compressionEnabled, encodedSpans);\n }", "public Object clone()\n {\n IObserverList list = new IObserverList();\n \n for ( int i = 0; i < observers.size(); i++ )\n list.observers.addElement( observers.elementAt(i) );\n\n return list; \n }", "private void fetchNewCalls() {\n fetchCalls(QUERY_NEW_CALLS_TOKEN, true);\n }", "private void buildAndSendNotification(Call originalCall, ContactCacheEntry contactInfo) {\n // This can get called to update an existing notification after contact information has come\n // back. However, it can happen much later. Before we continue, we need to make sure that\n // the call being passed in is still the one we want to show in the notification.\n final Call call = getCallToShow(CallList.getInstance());\n if (call == null || !call.getId().equals(originalCall.getId())) {\n return;\n }\n\n final int callState = call.getState();\n\n // Check if data has changed; if nothing is different, don't issue another notification.\n final int iconResId = getIconToDisplay(call);\n Bitmap largeIcon = getLargeIconToDisplay(contactInfo, call);\n final String content =\n getContentString(call, contactInfo.userType);\n final String contentTitle = getContentTitle(contactInfo, call);\n\n final int notificationType;\n if (callState == Call.State.INCOMING || callState == Call.State.CALL_WAITING) {\n notificationType = NOTIFICATION_INCOMING_CALL;\n } else {\n notificationType = NOTIFICATION_IN_CALL;\n }\n final int color = InCallPresenter.getInstance().getPrimaryColorFromCall(call);\n\n if (!checkForChangeAndSaveData(iconResId, content, largeIcon, contentTitle, callState,\n notificationType, contactInfo.contactRingtoneUri,\n /// M: need update notification for video state changed during SRVCC @{\n call.getVideoState(), color)) {\n /// @}\n return;\n }\n\n if (largeIcon != null) {\n largeIcon = getRoundedIcon(largeIcon);\n }\n\n /*\n * This builder is used for the notification shown when the device is locked and the user\n * has set their notification settings to 'hide sensitive content'\n * {@see Notification.Builder#setPublicVersion}.\n */\n Notification.Builder publicBuilder = new Notification.Builder(mContext);\n publicBuilder.setSmallIcon(iconResId)\n .setColor(mContext.getResources().getColor(R.color.dialer_theme_color))\n // Hide work call state for the lock screen notification\n .setContentTitle(getContentString(call, ContactsUtils.USER_TYPE_CURRENT));\n setNotificationWhen(call, callState, publicBuilder);\n\n /*\n * Builder for the notification shown when the device is unlocked or the user has set their\n * notification settings to 'show all notification content'.\n */\n final Notification.Builder builder = getNotificationBuilder();\n builder.setPublicVersion(publicBuilder.build());\n\n // Set up the main intent to send the user to the in-call screen\n final PendingIntent inCallPendingIntent = createLaunchPendingIntent();\n builder.setContentIntent(inCallPendingIntent);\n\n // Set the intent as a full screen intent as well if a call is incoming\n if (notificationType == NOTIFICATION_INCOMING_CALL\n && !InCallPresenter.getInstance().isShowingInCallUi()) {\n configureFullScreenIntent(builder, inCallPendingIntent, call);\n // Set the notification category for incoming calls\n builder.setCategory(Notification.CATEGORY_CALL);\n }\n\n builder.setSmallIcon(iconResId);\n builder.setLargeIcon(largeIcon);\n /// M: CTA request, set sim color from call. @{\n // Google code:\n // builder.setColor(mContext.getResources().getColor(R.color.dialer_theme_color));\n builder.setColor(InCallPresenter.getInstance().getPrimaryColorFromCall(call));\n /// @}\n /// M: Add for [1A1H2W] @{\n// builder.setContentTitle(mContext.getString(R.string.two_incoming_calls));\n// if(!InCallUtils.isTwoIncomingCalls()) {\n// /// @}\n//\n// // Set the content\n// builder.setContentText(content);\n// builder.setContentTitle(contentTitle);\n//\n// final boolean isVideoUpgradeRequest = call.getSessionModificationState()\n// == Call.SessionModificationState.RECEIVED_UPGRADE_TO_VIDEO_REQUEST;\n// if (isVideoUpgradeRequest) {\n// appendCountdown(builder, content);\n// builder.setUsesChronometer(false);\n// addDismissUpgradeRequestAction(builder);\n// addAcceptUpgradeRequestAction(builder);\n// } else {\n// createIncomingCallNotification(call, callState, builder);\n// }\n//\n// addPersonReference(builder, contactInfo, call);\n// ///M: OP18Plugin <Status bar modification of vowifi quality >@{\n// ExtensionManager.getStatusBarExt().customizeNotification(\n// CallList.getInstance(), builder, largeIcon);\n// /// @}\n// }\n\n /*\n * Fire off the notification\n */\n Notification notification = builder.build();\n\n if (mDialerRingtoneManager.shouldPlayRingtone(callState, contactInfo.contactRingtoneUri)) {\n notification.flags |= Notification.FLAG_INSISTENT;\n notification.sound = contactInfo.contactRingtoneUri;\n AudioAttributes.Builder audioAttributes = new AudioAttributes.Builder();\n audioAttributes.setContentType(AudioAttributes.CONTENT_TYPE_MUSIC);\n audioAttributes.setUsage(AudioAttributes.USAGE_NOTIFICATION_RINGTONE);\n notification.audioAttributes = audioAttributes.build();\n if (mDialerRingtoneManager.shouldVibrate(mContext.getContentResolver())) {\n notification.vibrate = VIBRATE_PATTERN;\n }\n }\n if (mDialerRingtoneManager.shouldPlayCallWaitingTone(callState)) {\n Log.v(this, \"Playing call waiting tone\");\n mDialerRingtoneManager.playCallWaitingTone();\n }\n if (mCurrentNotification != notificationType && mCurrentNotification != NOTIFICATION_NONE) {\n Log.i(this, \"Previous notification already showing - cancelling \"\n + mCurrentNotification);\n mNotificationManager.cancel(mCurrentNotification);\n }\n Log.i(this, \"Displaying notification for \" + notificationType);\n mNotificationManager.notify(notificationType, notification);\n mCurrentNotification = notificationType;\n }", "@Override\n\tpublic Manager copy() {\n\t\treturn new Fire();\n\t}", "public void onDuplicate() {\n }", "public void fetchCalls() {\n cancelFetch();\n invalidate();\n fetchNewCalls();\n fetchOldCalls();\n }", "private void observerStuff() {\r\n\t\tfor (PirateShip pirate : pirates) {\r\n\t\t\tship.registerObserver(pirate);\r\n\t\t}\r\n\t}", "@Override\n public Collection<PhoneCall> getPhoneCalls() {\n return this.calls;\n }", "public void addPendingCallToProxy(IBinder iBinder) {\n HiLog.info(LOG_LABEL, \"addPendingCallToProxy\", new Object[0]);\n this.mRemote = iBinder;\n processLiveCallWhenServiceConnected();\n CallAudioState callAudioState = this.mPendingCallAudioState;\n if (callAudioState != null) {\n HiLog.info(LOG_LABEL, \"addPendingCallToProxy:onCallAudioStateChanged %{public}s\", new Object[]{callAudioState.toString()});\n onCallAudioStateChanged(this.mPendingCallAudioState);\n this.mPendingCallAudioState = null;\n }\n Boolean bool = this.mPendingCanAddCall;\n if (bool != null) {\n HiLog.info(LOG_LABEL, \"addPendingCallToProxy:onCanAddCallChanged %{public}s\", new Object[]{bool.toString()});\n onCanAddCallChanged(this.mPendingCanAddCall.booleanValue());\n this.mPendingCanAddCall = null;\n }\n }", "public void processLiveCallWhenServiceConnected() {\n if (!this.mCallMapById.isEmpty()) {\n for (Integer num : this.mCallMapById.keySet()) {\n Call callById = getCallById(num);\n if (!(callById == null || callById.getState() == 10 || callById.getState() == 7)) {\n HiLog.info(LOG_LABEL, \"processLiveCallWhenServiceConnected: still has call\", new Object[0]);\n addCall(callById);\n }\n }\n processCallAudioStateWhenServiceConnected();\n processCanAddCallWhenServiceConnected();\n }\n }", "private void getListAccountHandleMakeCall(Context context){\n mPhoneAccountIdList.clear();\n Cursor cursor = context.getContentResolver().query(CallLog.Calls.CONTENT_URI, null,\n null, null, null);\n int phoneAccountIdColumn = cursor.getColumnIndex(CallLog.Calls.PHONE_ACCOUNT_ID);\n while (cursor.moveToNext()){\n String id = cursor.getString(phoneAccountIdColumn);\n if (!mPhoneAccountIdList.contains(id)){\n mPhoneAccountIdList.add(id);\n }\n }\n }", "@Override\n @NoProxy\n public Set<BwAlarm> cloneAlarms() {\n Set<BwAlarm> rs = getAlarms();\n if (rs == null) {\n return null;\n }\n\n Set<BwAlarm> nrs = new TreeSet<>();\n\n for (BwAlarm al: rs) {\n nrs.add((BwAlarm)al.clone());\n }\n\n return nrs;\n }", "@Override // com.google.android.gms.internal.measurement.zzgi, java.lang.Object\n public /* synthetic */ Object clone() throws CloneNotSupportedException {\n zza zza2 = (zza) this.zzc.zza(zzf.zze, null, null);\n zza2.zza((zza) ((zzib) zzu()));\n return zza2;\n }", "void updateLocalCallLogs() {\n setIncludePairedCallLogs();\n buildCallLogsList();\n\n notifyCallDataChanged();\n }", "public Set getCalls() { return calls; }", "@Override\n public void onResponse(Call<CommunicationDM> call, Response<CommunicationDM> response) {\n progressDialog.dismiss();\n\n if (response.isSuccessful()) {\n try {\n commList.clear();\n commList.addAll(response.body().getSpecificCommRecord());\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n adapter.notifyDataSetChanged();\n }\n\n }\n }", "public Call[] getCalls();", "private static void addCall(Call call, ArrayList<Call> calls)\n {\n synchronized(calls)\n {\n if(call.getCallGroup() == null)\n calls.add(call);\n }\n }", "public Object clone() {\n\t\tListeningPointImpl lip =\n\t\t\tnew ListeningPointImpl(this.sipStack, this.port, null);\n\t\tlip.sipStack = this.sipStack;\n\t\treturn lip;\n\t}", "public void subscribeActual(Observer<? super Response<T>> observer) {\r\n Call clone = this.originalCall.clone();\r\n CallCallback callCallback = new CallCallback(clone, observer);\r\n observer.onSubscribe(callCallback);\r\n clone.enqueue(callCallback);\r\n }", "static void NotifyCorrespondingObservers() {}", "public CallRegistry() {\n\t\tidGen = new IdGenerator();\n\t\tidGen.reserve(NO_RESPONSE_EXPECTED);\n\t\tcurrentCalls = new LinkedHashMap<Integer, RegisteredCall>();\n\t\tcurrentIteration = new LinkedList<RegisteredCall>();\n\t}", "@Override\n public MultiCache clone () {\n return new MultiCache(this);\n }", "@Override\n protected Alpha clone() {\n try {\n Alpha alpha = (Alpha) super.clone();\n alpha.mListeners = new ArrayList<Listener>();\n return alpha;\n } catch (CloneNotSupportedException e) {\n throw new RuntimeException(e);\n }\n }", "public void replay() {\n for (InnerDisposable<T> rp : (InnerDisposable[]) this.observers.get()) {\n this.buffer.replay(rp);\n }\n }", "@Override\n public Object clone() {\n return super.clone();\n }", "protected abstract VerifiableSensorOperation doClone();", "public ResultObserver() {\r\n\t\tobservers = new ArrayList<Observer>();\r\n\t}", "@Override\n public void notifyObservers() {\n for (Observer observer : observers){\n // observers will pull the data from the observer when notified\n observer.update(this, null);\n }\n }", "public void prepareCallObject(){\n\n SipAudioCall.Listener listener = new SipAudioCall.Listener(){\n\n\n @Override\n public void onCallEstablished(SipAudioCall call) {\n// call.startAudio();\n// call.setSpeakerMode(true);\n Log.i(\"sip-->\", \"onCallEstablished\");\n\n\n if (mTotalTime == 0L){\n mPointTime = System.currentTimeMillis();\n mHandler.removeCallbacks(mUpdateTimeTask);\n mHandler.postDelayed(mUpdateTimeTask, 100);\n }\n }\n\n\n @Override\n public void onCallEnded(SipAudioCall call) {\n\n mHandler.removeCallbacks(mUpdateTimeTask);\n finish();\n\n// endCall();\n\n }\n\n };\n try {\n call = manager.takeAudioCall(IncomingCallService_new.incomingIntent, listener);\n\n sipNameIncome = call.getPeerProfile().getUserName();\n// updateStatus(\"Odebrano od \" + sipNameIncome);\n caller_name.setText(sipNameIncome);\n } catch (SipException e) {\n e.printStackTrace();\n }\n\n\n }", "public Observable()\n {\n observers = new HashSet<>();\n }", "private void fetchOldCalls() {\n fetchCalls(QUERY_OLD_CALLS_TOKEN, false);\n }", "@Override\n public void onChanged(List<Contact> updatedContacts) {\n adapter.clear();\n adapter.addAll(updatedContacts);\n }", "private static void createColdObservable() {\n var observable = Observable.just(1, 2, 3, 4, 5);\n\n observable.subscribe(item -> LOG.info(\"Observer 1: {}\", item));\n\n pause(1000);\n\n observable.subscribe(item -> LOG.info(\"Observer 2: {}\", item));\n }", "public Object clone() {\n \n\tQuerynotyfyaddressbol obj = new Querynotyfyaddressbol(getObjectsDatastore());\n\n\tobj.iNotifyaddress = iNotifyaddress; \n\n\treturn obj;\n }", "@Test\n public void initiallyAllPhoneCallsHaveTheSameCallee() {\n PhoneCall call = new PhoneCall(\"503-449-7833\", \"345-876-3456\", \"01/01/2020\", \"1:00 am\", \"01/01/2020\", \"1:00 am\");\n assertThat(call.getCallee(), containsString(\"34\"));\n }", "@Override\n public void onReceive(final Context context, Intent intent) {\n String from = intent.getStringExtra(\"from\");\n if(from.equals(\"added\")) {\n coaPresenter.requestDataCoaFromServer();\n }\n }", "public void duplicateClubEvent() {\n \n boolean modOK = modIfChanged();\n \n if (modOK) {\n ClubEvent clubEvent = position.getClubEvent();\n ClubEvent newClubEvent = clubEvent.duplicate();\n newClubEvent.setWhat(clubEvent.getWhat() + \" copy\");\n newClubEvent.setId(\"\");\n position = new ClubEventPositioned();\n position.setIndex (clubEventList.size());\n position.setClubEvent(newClubEvent);\n position.setNewClubEvent(true);\n localPath = \"\";\n display();\n }\n }", "@Override\n public void onCallsFetched(Map<ContactInfo, CallStatsDetails> calls) {\n if (getActivity() == null || getActivity().isFinishing()) {\n return;\n }\n\n mDataLoaded = true;\n mAdapter.updateData(calls, mFilterFrom, mFilterTo);\n mAdapter.updateDisplayedData(mCallTypeFilter, mSortByDuration);\n updateHeader();\n }", "public void disconnectLiveCalls() {\n if (!this.mCallMapById.isEmpty()) {\n for (Integer num : this.mCallMapById.keySet()) {\n Call callById = getCallById(num);\n if (!(callById == null || callById.getState() == 10 || callById.getState() == 7)) {\n HiLog.info(LOG_LABEL, \"disconnectLiveCalls: %{public}s.\", new Object[]{callById.toString()});\n callById.disconnect();\n }\n }\n this.mCallMapById.clear();\n }\n }", "private Observer<ArrayList<Station>> createStationListObserver() {\n return new Observer<ArrayList<Station>>() {\n @Override\n public void onChanged(@Nullable ArrayList<Station> newStationList) {\n\n }\n };\n }", "@Override\n\tpublic void NotifyObserver() {\n\n\t}", "private StreamCouponHistory(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n }", "void createincomingLobs()\n {\n iIncomingLobs.setLoadDetails(createloadDetails(\"loadDetails\"));\n iIncomingLobs.setLoad(0,createload(\"load\"));\n iIncomingLobs.setTotal(createtotal(\"total\"));\n }", "private static void removeCall(Call call, ArrayList<Call> calls)\n {\n synchronized(calls)\n {\n if(calls.contains(call))\n calls.remove(call);\n }\n }", "public CallInfo() {\n\t}", "@Override\n\tvoid receiveCall() {\n\n\t}", "public ArrayList<Observer> getObservers() { \n\t\treturn ui; \n\t}", "@Override\r\n\tpublic void notifyObservers() {\n\t\t\r\n\t}", "public void addCallToCallMap(Call call) {\n if (call != null && getIdByCall(call) == INVALID_KEY_SET_IN_MAP) {\n HiLog.info(LOG_LABEL, \"add call to map.\", new Object[0]);\n this.mCallMapById.put(Integer.valueOf(sCallId), call);\n sCallId++;\n }\n }", "@Test\n\tpublic void addCallReceived() {\n\t\tICallsService iCallsService = new CallsServiceImpl(new ArrayList<>());\n\t\tiCallsService.addCallReceived(new Call(1l));\n\t\tAssert.assertTrue(1 == iCallsService.findAll().size());\n\t}", "public void clearObservers(){\r\n\t\tobservers.clear();\r\n\t}", "public List<Call> addCall(Call call, String cid) throws CustomerNotFoundException {\r\n \treturn null;\r\n }", "@Override\n public void update(Observable observable, Object o) {\n if (o instanceof ObserverFlag){\n ObserverFlag observerFlag=(ObserverFlag) o;\n // Si on reçoit un packet on notifie nos observers en leur donnant le packet\n if (observerFlag.getFlag() == ObserverFlag.Flag.packetReceived){\n String received=observerFlag.getPacket().getClass().toString();\n System.out.println(\"Unicast : \"+received+\" from \"+observerFlag.getPacket().getSource().getPseudo()+\" at \"+observerFlag.getPacket().getSource().getAddress().toString());\n notifyObservers(observerFlag.getPacket());\n }else{\n // Sinon on supprime le Thread de notre liste.\n observable.deleteObserver(this);\n Discussion t=(Discussion) observable;\n chatRooms.remove(t.distant.getInetAddress());\n }\n }\n }", "public Call getCurrentCall();", "public CallSet() {}", "@Override\n\tpublic void receiveCall(Call call) {\n\t\tthis.call = call;\n\t\tcall.attend();\n\t}", "public void setObservers() {\n feedBackVM.isLoading.addOnPropertyChangedCallback(new Observable.OnPropertyChangedCallback() {\n @Override\n public void onPropertyChanged(Observable observable, int i) {\n if (feedBackVM.isLoading.get()) {\n showWaitingDialog(true);\n } else {\n showWaitingDialog(false);\n }\n }\n });\n\n feedBackVM.toastMsg.addOnPropertyChangedCallback(new Observable.OnPropertyChangedCallback() {\n @Override\n public void onPropertyChanged(Observable observable, int i) {\n toast(feedBackVM.toastMsg.get());\n feedBackVM.toastMsg.set(null);\n }\n });\n }", "@Override\n\tpublic Object deepCopy() {\n\t\tfinal UIAnimationMutable clone = new UIAnimationMutable(getName(), events.size(), controllers.size());\n\t\tfor (int i = 0, len = controllers.size(); i < len; ++i) {\n\t\t\tclone.controllers.add((UIController) controllers.get(i).deepCopy());\n\t\t}\n\t\tfor (int i = 0, len = events.size(); i < len; ++i) {\n\t\t\tfinal UIAttribute p = events.get(i);\n\t\t\tclone.events.add((UIAttribute) p.deepCopy());\n\t\t}\n\t\tclone.nextEventsAdditionShouldOverride = nextEventsAdditionShouldOverride;\n\t\tif (driver != null) {\n\t\t\tclone.driver = (UIAttribute) driver.deepCopy();\n\t\t}\n\t\treturn clone;\n\t}", "private void clearSeenInfo() {\n seenInfo_ = emptyProtobufList();\n }", "@Override\n\tpublic Object clone() {\n\t\tRemoteInfoList list = new RemoteInfoList();\n\t\tfor (RemoteInfo rInfo : rInfoList) {\n\t\t\tlist.add((RemoteInfo)rInfo.clone());\n\t\t}\n\t\t\n\t\treturn list;\n\t}", "public void getCallDetails()\n\t {\n\t @SuppressWarnings(\"deprecation\")\n\t String sortOrder = String.format(\"%s limit 100 \", CallLog.Calls.DATE + \" DESC\");\n\t managedCursor = managedQuery( CallLog.Calls.CONTENT_URI, null, null, null, sortOrder);\n\t int number = managedCursor.getColumnIndex( CallLog.Calls.NUMBER );\n\t int type = managedCursor.getColumnIndex( CallLog.Calls.TYPE );\n\t int date = managedCursor.getColumnIndex( CallLog.Calls.DATE);\n\t int duration = managedCursor.getColumnIndex( CallLog.Calls.DURATION);\n\t int id = managedCursor.getColumnIndex(CallLog.Calls._ID);\n\t \n\t while (managedCursor.moveToNext())\n\t {\n\t \n\t phoneNumber = managedCursor.getString(number);\n\t callType = managedCursor.getString(type);\n\t callDate = managedCursor.getString(date);\n\t contactName = getContactname(phoneNumber); \n\t call_id = managedCursor.getString(id);\n\t //contactId = getContactId(phoneNumber);\n\t \n\t //callDateTime = new Date(Long.valueOf(callDate));\n\t long seconds=Long.parseLong(callDate);\n\t SimpleDateFormat format1 = new SimpleDateFormat(\"dd-MM-yyyy hh:mm a\");\n\t callDateTime = format1.format(new Date(seconds));\n\t \n\t callDuration = managedCursor.getString(duration);\n\t \n\t String cType = null;\n\t \n\t int cTypeCode = Integer.parseInt(callType);\n\t \n\t switch(cTypeCode){\n\t \n\t case CallLog.Calls.OUTGOING_TYPE:\n\t cType = \"OUTGOING\";\n\t break;\n\t \n\t case CallLog.Calls.INCOMING_TYPE:\n\t cType= \"INCOMING\";\n\t break;\n\t \n\t case CallLog.Calls.MISSED_TYPE:\n\t cType = \"MISSED\";\n\t break;\n\t }\n\t \n\t CallData calldata=new CallData(cType, phoneNumber, contactName, callDateTime, callDuration, call_id);\n\t list.add(calldata);\n\t \n\t }\n\t \n\t // managedCursor.close();\n\t \n\t }", "public void outgoingCallCreated(CallEvent event)\n {\n CallShortcut.addCall(event.getSourceCall(), this.answeredCalls);\n }", "private void missedCall() {\n\n NotificationCompat.Builder nBuilder = new NotificationCompat.Builder(mContext);\n\n nBuilder.setSmallIcon(android.R.drawable.stat_notify_missed_call);\n\n nBuilder.setContentTitle(name);\n\n nBuilder.setContentText(resources.getString(R.string.missed_call));\n\n nBuilder.setColor(Color.rgb(4, 137, 209));\n\n nBuilder.setAutoCancel(true);\n\n Intent showCallLog = new Intent(Intent.ACTION_VIEW);\n\n showCallLog.setType(CallLog.Calls.CONTENT_TYPE);\n\n PendingIntent pendingIntent = PendingIntent.getActivity(mContext, 0, showCallLog, PendingIntent.FLAG_CANCEL_CURRENT);\n\n nBuilder.setContentIntent(pendingIntent);\n\n showCallLog.setType(CallLog.Calls.CONTENT_TYPE);\n\n notificationManager.notify(MISSED_CALL_NOTIFICATION, nBuilder.build());\n\n CallLogUtilities.addCallToLog(contentResolver, number, 0, CallLog.Calls.MISSED_TYPE, System.currentTimeMillis());\n\n }", "private void updateInCallNotification(final InCallState state, CallList callList) {\n /// M: [log optimize] @{\n /** Google log:\n Log.d(this, \"updateInCallNotification...\");\n */\n /// @}\n\n final Call call = getCallToShow(callList);\n\n if (call != null) {\n showNotification(call);\n } else {\n cancelNotification();\n }\n\n /// M: add for OP02 plugin. @{\n// ExtensionManager.getStatusBarExt().updateInCallNotification(call);\n /// @}\n }", "public Function clone();", "@Override\n public void onChanged(List<Contact> updatedContacts) {\n adapter.clear();\n adapter.addAll(updatedContacts);\n adapter.notifyDataSetChanged();\n }", "private void missedCall() {\n\n NotificationCompat.Builder nBuilder = new NotificationCompat.Builder(this);\n\n nBuilder.setSmallIcon(android.R.drawable.stat_notify_missed_call);\n\n nBuilder.setContentTitle(name);\n\n nBuilder.setContentText(resources.getString(R.string.missed_call));\n\n nBuilder.setColor(Color.rgb(4, 137, 209));\n\n nBuilder.setAutoCancel(true);\n\n Intent showCallLog = new Intent(Intent.ACTION_VIEW);\n\n showCallLog.setType(CallLog.Calls.CONTENT_TYPE);\n\n PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, showCallLog, PendingIntent.FLAG_CANCEL_CURRENT);\n\n nBuilder.setContentIntent(pendingIntent);\n\n showCallLog.setType(CallLog.Calls.CONTENT_TYPE);\n\n notificationManager.notify(MISSED_CALL_NOTIFICATION, nBuilder.build());\n\n CallLogUtilities.addCallToLog(contentResolver, number, 0, CallLog.Calls.MISSED_TYPE, System.currentTimeMillis());\n\n }", "@Override\n public void onChanged(List<Contact> contacts) {\n adapter.setContacts(contacts);\n }", "public void subscribe( Observer< S, Info > obs );", "public Object clone() throws CloneNotSupportedException {\n/* 206 */ CustomXYURLGenerator clone = (CustomXYURLGenerator)super.clone();\n/* 207 */ clone.urlSeries = new ArrayList(this.urlSeries);\n/* 208 */ return clone;\n/* */ }", "public static void mapCall(BasicPhoneCall phoneCall){\n loggedCalls.put(phoneCall.getSid(), phoneCall);\n }", "public void notifyState() {\n\t\tList<T> alldata = new ArrayList<T>(this.dataMap.values());\t\r\n\t\t// call them with the current data\r\n\t\t// for each observer call them\r\n\t\tfor( ModelEvents<T> observer : this.ObserverList){\r\n\t\t\tobserver.dataState(alldata);\r\n\t\t}\r\n\r\n\t}", "@Override\n\tpublic void callStatsUpdated(LinphoneCore lc, LinphoneCall call,\n\t\t\tLinphoneCallStats stats) {\n\t\t\n\t}", "@Override\n public void addPhoneCall(PhoneCall phoneCall) {\n this.calls.add(phoneCall);\n }", "private void setCountryObservers() {\n ArrayList<String> ownedCountryNameList = curPlayer.getOwnedCountryNameList();\n CountryChangedObserver observer = curPlayer.getCountryChangedObserver();\n for (String name : ownedCountryNameList) {\n Main.graphSingleton.get(name).getCountry().getCountryObservable().deleteObservers();\n Main.graphSingleton.get(name).getCountry().getCountryObservable().addObserver(observer);\n }\n }", "@Override\n public PhoneNumberCloneable clone() {\n try {\n return (PhoneNumberCloneable) super.clone();\n } catch (CloneNotSupportedException e) {\n throw new AssertionError(); // Can't happen}\n }\n }", "public void Duplicate()\n {\n\n tacc2 = tacc.clone();\n px2 = px.clone();\n py2 = py.clone();\n pz2 = pz.clone();\n\n tgyro2 = tgyro.clone();\n\n accx2 = accx.clone();\n accy2 = accy.clone();\n accz2 = accz.clone();\n\n lng2 = lng.clone();\n lat2 = lat.clone();\n }", "public interface MyCallbacl_refresherlist {\n\n void addtolist(GPScoords_price obj);\n void removefromlist(String obj);\n\n\n}", "@Override\n\tprotected LogisticTaskFareGroupView clone() {\n\t\tLogisticTaskFareGroupView ca = new LogisticTaskFareGroupView(getContext(), true);\n\t\tca.setOnChangeListener(onChangeListener);\n\t\treturn ca;\n\t}", "@Override\n public void getMemento() {\n List<ArrayList<Die>> old = new ArrayList<>();\n for(ArrayList<Die> ar : roundTrackMemento.peek()) {\n old.add(new ArrayList<>(ar));\n }\n this.dice = old;\n }", "private RCProxy() {\n\t\tstate = new DefaultState();\n\t\tSTBListener.instance().addObserver(this);\n\t}", "static void RemoveObserver(Ship a_ship){}", "public Call getCall() {\n\treturn call;\n }", "public interface Observer{\n //一发现别人有动静,自己也要行动起来\n public void update(String context);\n\n\n}", "public Object clone() {\n SIPMessage retval = null;\n try {\n retval = (SIPMessage) this.getClass().newInstance();\n } catch ( IllegalAccessException ex) {\n InternalErrorHandler.handleException(ex);\n } catch (InstantiationException ex) {\n InternalErrorHandler.handleException(ex);\n }\n ListIterator li = headers.listIterator();\n while(li.hasNext()) {\n SIPHeader sipHeader = (SIPHeader)((SIPHeader) li.next()).clone();\n retval.attachHeader(sipHeader);\n }\n if (retval instanceof SIPRequest) {\n SIPRequest thisRequest = (SIPRequest) this;\n RequestLine rl = (RequestLine)\n (thisRequest.getRequestLine()).clone();\n ((SIPRequest) retval).setRequestLine(rl);\n } else {\n SIPResponse thisResponse = (SIPResponse) this;\n StatusLine sl = (StatusLine)\n (thisResponse.getStatusLine()).clone();\n ((SIPResponse) retval).setStatusLine(sl);\n }\n \n if (this.getContent() != null) {\n try {\n\t\tObject newContent ;\n\t\tObject currentContent = this.getContent();\n\t\t// Check the type of the returned content.\n\t\tif (currentContent instanceof String ) {\n\t\t // If it is a string allocate a new string for the body\n\t\t newContent = new String\n\t\t\t\t(currentContent.toString());\n\t\t} else if ( currentContent instanceof byte[] ) {\n\t\t // If it is raw bytes allocate a new array of bytes\n\t\t // and copy over the content.\n\t\t int cl = ((byte[])currentContent).length;\n\t\t byte[] nc = new byte[cl];\n\t\t System.arraycopy((byte[])currentContent,0,nc,0,cl);\n\t\t newContent = nc;\n\t\t} else {\n\t\t // See if the object has a clone method that is public\n\t\t // If so invoke the clone method for the new content.\n\t\t Class cl = currentContent.getClass();\n\t\t try {\n\t\t Method meth = cl.getMethod(\"clone\",null);\n\t\t if (Modifier.isPublic(meth.getModifiers())) {\n\t\t\t newContent = meth.invoke(currentContent,null);\n\t\t } else {\n\t\t\t newContent = currentContent;\n\t\t }\n\t\t } catch (Exception ex) {\n\t\t\tnewContent = currentContent;\n\t\t }\n\t\t}\n retval.setContent\n (newContent,this.getContentTypeHeader());\n } catch (ParseException ex) { /** Ignore **/ }\n }\n \n return retval;\n }", "public void onCallStateChanged(int state, String incomingNumber) {\n if (state == 2) {\n\n String msg = \" New Phone Call Event. Incoming Number : \"+incomingNumber;\n int mID = 1;\n long when = System.currentTimeMillis();\n NotificationManager notificationManager = (NotificationManager) context\n .getSystemService(Context.NOTIFICATION_SERVICE);\n\n Intent notificationIntent = new Intent(context, afterCall.class);\n notificationIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n\n PendingIntent pendingIntent = PendingIntent.getActivity(context, 0,\n notificationIntent, PendingIntent.FLAG_UPDATE_CURRENT);\n\n\n Uri alarmSound = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);\n writeToFile(2, Calendar.getInstance().getTime().toString(), context);\n NotificationCompat.Builder mNotifyBuilder = new NotificationCompat.Builder(\n context).setSmallIcon(R.drawable.ic_launcher)\n .setContentTitle(\"Phone Call Made\")\n .setContentText(\"Touch to Take Survey\")\n .setSound(alarmSound)\n .setAutoCancel(true).setWhen(when)\n .setContentIntent(pendingIntent)\n .setVibrate(new long[]{1000, 1000, 1000, 1000, 1000});\n notificationManager.notify(mID,mNotifyBuilder.build());\n mID++;\n\n }\n }", "public BufferTWeak cloneMe() {\r\n BufferTWeak ib = new BufferTWeak(uc);\r\n ib.increment = increment;\r\n ib.set(new Object[objects.length]);\r\n for (int i = 0; i < objects.length; i++) {\r\n ib.objects[i] = this.objects[i];\r\n }\r\n ib.offset = this.offset;\r\n ib.count = this.count;\r\n return ib;\r\n }", "private GetCouponExchangeHistory(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n }", "private void setNotificationWhen(Call call, int state, Notification.Builder builder) {\n if (state == Call.State.ACTIVE) {\n builder.setUsesChronometer(true);\n builder.setWhen(call.getConnectTimeMillis());\n } else {\n builder.setUsesChronometer(false);\n }\n }", "@Override\n\tpublic void Notify() {\n\t\tfor (Observer observer : obs) {\n\t\t\tobserver.update();\n\t\t}\n\t}", "public void clearObservers() {\r\n\t\tobservers.clear();\r\n\t}", "public List<CallItem> findAllCalls() {\n\t\tString orderBy = CallsDBOpenHelper.COLUMN_CALL_DATE + \" DESC, \" + CallsDBOpenHelper.COLUMN_CALL_HOUR + \" DESC\";\n\t\tCursor cursor = dataBase.query(CallsDBOpenHelper.TABLE_CALLS, callsTable_allColumns,\n\t\t\t\tnull, null, null, null, orderBy);\n\n\t\tList<CallItem> calls = cursorToCallItemList(cursor);\n\t\treturn calls;\n\t}", "public void atacar() {\n notifyObservers();\n }", "public PhoneCall build() {\n return new PhoneCall(caller, callee, startTime, endTime);\n }", "private void setObservers() {\n evaluateDetailVM.isLoading.addOnPropertyChangedCallback(new Observable.OnPropertyChangedCallback() {\n @Override\n public void onPropertyChanged(Observable observable, int i) {\n if (evaluateDetailVM.isLoading.get()) {\n showWaitingDialog(true);\n } else {\n showWaitingDialog(false);\n }\n }\n });\n\n evaluateDetailVM.toastMsg.addOnPropertyChangedCallback(new Observable.OnPropertyChangedCallback() {\n @Override\n public void onPropertyChanged(Observable observable, int i) {\n toast(evaluateDetailVM.toastMsg.get());\n evaluateDetailVM.toastMsg.set(null);\n }\n });\n }", "public Lobby() {\r\n\t\tobservers = new ArrayList<Observer>(); // Initialize the list of observers ( empty at the begining)\r\n\t}", "private void copyCallMetadata(final LifeCycleEvent event,\n final CallMetadata data) throws URISyntaxException {\n final String source = event.getSource();\n data.setCallingDevice(source);\n final String target = event.getTarget();\n data.setCalledDevice(target);\n }", "public void notifyObserver() {\n\r\n for (Observer observer : observers) {\r\n\r\n observer.update(stockName, price);\r\n\r\n }\r\n }" ]
[ "0.5878624", "0.5760265", "0.53311443", "0.5307777", "0.5275344", "0.52683955", "0.51480603", "0.5122658", "0.5121232", "0.5094709", "0.5093175", "0.5076042", "0.5061288", "0.5038816", "0.5023205", "0.501669", "0.50132596", "0.50110024", "0.50000066", "0.49974555", "0.4983836", "0.4981475", "0.4971405", "0.49543947", "0.49421257", "0.49372295", "0.4936719", "0.4931064", "0.4919345", "0.48950437", "0.48831692", "0.48730996", "0.4871544", "0.48555648", "0.4854125", "0.48499355", "0.48467347", "0.48448563", "0.48420656", "0.4811535", "0.48043942", "0.48039106", "0.4787563", "0.47859356", "0.47801295", "0.47740424", "0.47706196", "0.47702262", "0.47695205", "0.47615886", "0.4757669", "0.4755118", "0.4747573", "0.4746626", "0.47365668", "0.4735749", "0.47356054", "0.47335723", "0.47272635", "0.4726711", "0.47238824", "0.47172362", "0.47141743", "0.47099122", "0.47080433", "0.47066188", "0.47009838", "0.4695669", "0.4692521", "0.46894407", "0.46841806", "0.46775213", "0.46737805", "0.46710816", "0.46689567", "0.4666535", "0.46623588", "0.46621883", "0.46531707", "0.4634588", "0.46335104", "0.46317032", "0.46264422", "0.46163648", "0.46141", "0.46101213", "0.46096602", "0.46085975", "0.45966554", "0.45938116", "0.4593716", "0.45907205", "0.4589491", "0.4581653", "0.45814866", "0.4581216", "0.45642307", "0.45607033", "0.4555187", "0.4555103" ]
0.57657903
1
Executes calls using the Dodona API.
public interface DodonaExecutor { /** * Executes the given call, synchronously. * * @param call the call to execute * @param indicator the progress indicator * @param <T> return type of the response * @return the response from the call */ @Nonnull <T> T execute(Function<? super DodonaClient, T> call, ProgressIndicator indicator); /** * Executes the given call, asynchronously. * * @param project the project * @param title the dialog title * @param cancellable whether this request can be cancelled * @param indicator the progress indicator * @param call the call to execute * @param <T> return type of the response * @return the response from the call */ @Nonnull <T> DodonaFuture<T> execute(@Nullable Project project, String title, boolean cancellable, ProgressIndicator indicator, Function<? super DodonaClient, ? extends T> call); /** * Executes the given call, asynchronously. * * @param call the call to execute * @param <T> type of the response * @return the response from the call */ @Nonnull <T> DodonaFuture<T> execute(Function<? super DodonaClient, ? extends T> call); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Api(1.1)\n public Response execute() throws HaloNetException {\n return mBuilder.mClient.request(mRequest);\n }", "@Nonnull\n\t<T> DodonaFuture<T> execute(Function<? super DodonaClient, ? extends T> call);", "public static void operation() {\n try ( QueryExecution qExec = QueryExecutionHTTP.service(dataURL).query(\"ASK{}\").build() ) {\n qExec.execAsk();\n System.out.println(\"Operation succeeded\");\n } catch (QueryException ex) {\n System.out.println(\"Operation failed: \"+ex.getMessage());\n }\n System.out.println();\n }", "@Nonnull\n\t<T> T execute(Function<? super DodonaClient, T> call,\n\t ProgressIndicator indicator);", "public void callCloudLogic(String sD,String sLat,String sLon,String eD,String eLat,String eLon) {\n EditText rid = (EditText)findViewById(R.id.editText);\n EditText uid = (EditText)findViewById(R.id.editText2);\n String rideId = rid.getText().toString();\n String userId = uid.getText().toString();\n\n // Create components of api request\n final String method = \"PUT\";\n final String path = \"/items\";\n final String body = \"\";\n final byte[] content = body.getBytes(StringUtils.UTF8);\n final Map parameters = new HashMap<>();\n parameters.put(\"rideId\", rideId);\n parameters.put(\"userId\", userId);\n parameters.put(\"startDate\",sD);\n parameters.put(\"startLat\",sLat);\n parameters.put(\"startLong\",sLon);\n parameters.put(\"endDate\",eD);\n parameters.put(\"endLat\",eLat);\n parameters.put(\"endLong\",eLon);\n final Map headers = new HashMap<>();\n\n // Use components to create the api request\n ApiRequest localRequest =\n new ApiRequest(apiClient.getClass().getSimpleName())\n .withPath(path)\n .withHttpMethod(HttpMethodName.valueOf(method))\n .withHeaders(headers)\n .addHeader(\"Content-Type\", \"application/json\")\n .withParameters(parameters);\n\n // Only set body if it has content.\n if (body.length() > 0) {\n localRequest = localRequest\n .addHeader(\"Content-Length\", String.valueOf(content.length))\n .withBody(content);\n }\n\n final ApiRequest request = localRequest;\n\n // Make network call on background thread\n new Thread(new Runnable() {\n @Override\n public void run() {\n apiClient.execute(request);\n }\n }).start();\n }", "ServiceResponse execute(RequestParameters request);", "public String execute() throws DomainApiException {\n try {\n initConnection();\n if (method == POST || method == PUT) {\n sendHttpRequest(buildBody());\n }\n return readHttpResponse();\n } catch (MalformedURLException ex) {\n throw new DomainApiException(ex);\n } catch (IOException ex) {\n throw new DomainApiException(ex);\n }\n }", "protected void execute() {\n \t// \"Demo Mode\" turns off the driveline for demonstration events so that we don't have to pull fuses.\n \t// Ideally, we only check this every few seconds to avoid performance implications at competitions.\n\t\tif ((++m_loops%500) == 0) { // at 20ms/loop, 50 loops per second, so limit query to 500 loops per 10 seconds\n\t\t\tm_demoMode = SmartDashboard.getBoolean(\"Demo Mode\", false);// default to false if not found in the table\n\t\t}\n\t\tif (!m_demoMode) {\n\t\t\tRobot.driveTrain.octaCanumDriveWithJoysticks(Robot.oi.joyLeft, Robot.oi.joyRight);\n \t}\n \t\n }", "@Override\n protected AccGitHuber doInBackground(Void... voids) {\n return executeRequest();\n }", "public void getResultsFromApi() {\n// if (! isGooglePlayServicesAvailable()) {\n// acquireGooglePlayServices();\n// } else if (mCredential.getSelectedAccountName() == null) {\n// chooseAccount();\n// } else if (! isDeviceOnline()) {\n//// mOutputText.setText(\"No network connection available.\");\n// } else {\n MakeRequestTask req = new MakeRequestTask(mCredential);\n AsyncTaskCompat.executeParallel(req);\n// }\n }", "public IOgcResponse executeRequest(Map<String, String> params);", "@Override\n protected String doInBackground(Void... params) {\n if(myApiService == null) {\n MyApi.Builder builder = new MyApi.Builder(AndroidHttp.newCompatibleTransport(), new AndroidJsonFactory(), null)\n // Local testing url (emulator is 10.0.2.2 or use local machine ip)\n // .setRootUrl(\"http://10.0.2.2:8080/_ah/api/\")\n .setRootUrl(\"https://androidjokes-155120.appspot.com/_ah/api/\");\n\n myApiService = builder.build();\n }\n\n // Grab a joke\n try {\n return myApiService.getJoke().execute().getData();\n } catch (IOException e) {\n return e.getMessage();\n }\n }", "@Test\n\tpublic void execute() {\n\t\tcommand.execute(request);\n\t}", "public void execute() {\n if (hasError())\n return;\n\n runLocally();\n runRemotely();\n }", "ResponseEntity execute();", "@Override\n\tpublic void run() {\n\t\tRequestBody body = RequestBody.create(this.jsonType, this.contents);\n\t\tRequest request = new Request.Builder()\n\t\t\t.url(this.serverURL)\n\t\t\t.post(body)\n\t\t\t.build();\n\t\t\n\t\ttry {\n\t\t\tResponse response = client.newCall(request).execute();\n\t\t\tString str = response.body().string();\n\t\t\t//logger.log(Level.INFO, \n\t\t\t//\t\tString.format(\"DEBUG postCallInfoToServerTask succeed: %s\", str));\n\t\t} catch (IOException e) {\n\t\t\tNetProphetLogger.logError(\"PostCallInfoTask.run\", e.toString());\n\t\t}\n\t}", "private void getResultsFromApi() {\n if (! isGooglePlayServicesAvailable()) {\n acquireGooglePlayServices();\n } else if (mCredential.getSelectedAccountName() == null) {\n chooseAccount();\n } else if (! isDeviceOnline()) {\n\n Toast.makeText(getApplicationContext(), \"No Network Connection\",\n Toast.LENGTH_SHORT).show();\n mOutputText.setText(\"No network connection available.\");\n } else {\n new MakeRequestTask(mCredential).execute();\n }\n }", "private void getResultsFromApi() {\r\n if (!isGooglePlayServicesAvailable()) {\r\n acquireGooglePlayServices();\r\n } else if (mCredential.getSelectedAccountName() == null) {\r\n chooseAccount();\r\n } else if (!isDeviceOnline()) {\r\n Toast.makeText(getActivity(), \"No network connection available.\", Toast.LENGTH_LONG).show();\r\n } else {\r\n new MakeRequestTask(mCredential).execute();\r\n }\r\n }", "void execute();", "void execute();", "void execute();", "void execute();", "void execute();", "void execute();", "void execute();", "protected void execute() {\n \tRobot.telemetry.setAutonomousStatus(\"Running \" + commandName + \": \" + distance);\n \tRobot.drivetrain.arcadeDrive(Robot.driveDistancePID.getOutput(), 0.0, false);\n }", "@Override\n public Map<String, Object> invoke(String id, String methodName, String requestType, List<ParaMeta> paraList) throws MSClientException {\n ReferenceServiceWarp referenceService = msCache.get(id);\n if(null==referenceService){\n throw new MSClientException(MSErrorType.MS_NOT_INIT_EXP);\n }\n InvokeContext context = new InvokeContext();\n context.setMethodName(methodName);\n context.setRequestType(requestType);\n context.setParaList(paraList);\n Command command = commandFactory.create(referenceService.getService(), context);\n Map<String, Object> result = null;\n try {\n result = command.execute();\n } catch (Exception e){\n if(null!=context.getExp()){\n throw MSExceptionHelpr.generateDsException(context.getExp());\n }\n throw MSExceptionHelpr.generateDsException(e);\n }finally {\n context = null;\n }\n return result;\n }", "public interface DataKPU {\n @GET(\"open/v1/api.php?cmd=wilayah_browse&\")\n Call<RWilayah> wilayah_browse(@Query(\"wilayah_id\") String idWil);\n}", "private AylaCallResponse execute(int method, AylaRestService rs)\n\t{\n\n\t\trequestRetryCounter = 3;\n\t\tAylaCallResponse commitResponse = null;\n\t\tBundle responseBundle = null;\n\n if (!AylaReachability.isCloudServiceAvailable()) {\n if (AylaReachability.isDeviceLanModeAvailable(null) && supportsLanModeResponse(method)) {\n // We aren't connected to the cloud, but we are connected to the LAN mode device\n AylaSystemUtils.saveToLog(\"%s, %s, %s:%d, %s\", \"V\", \"ExecuteRequest\", \"lanMode\", method, \"execute\");\n } else if (!supportsOfflineResponse(method)) {\n // Make sure the method supports cached results if we cannot reach the service.\\\n // return failure here\n AylaSystemUtils.saveToLog(\"%s, %s, %s:%d, %s\", \"E\", \"ExecuteRequest\", \"!cloud && !supportOffline\", method, \"execute\");\n responseBundle = new Bundle();\n responseBundle.putString(\"result\", rs.jsonResults); // response v3.07\n responseBundle.putInt(\"subTask\", rs.subTaskFailed);\n responseCode = AylaNetworks.AML_ERROR_UNREACHABLE;\n \n if (async) {\n receiver.send(responseCode, responseBundle);\n } else {\n commitResponse = new AylaCallResponse(responseCode, responseBundle);\n }\n return commitResponse;\n } else {\n AylaSystemUtils.saveToLog(\"%s, %s, %s:%d, %s\", \"V\", \"ExecuteRequest\", \"cached\", method, \"execute\");\n }\n }\n\n\t\tAylaCallResponse failureResponse = checkRequest(method, rs);\n\t\tif ( failureResponse != null ) {\n\t\t\treturn failureResponse;\n\t\t}\n\n\t\ttry{\n\t\t\tswitch(method)\n\t\t\t{\n\t\t\t\tcase AylaRestService.CREATE_GROUP_ZIGBEE:\n\t\t\t\t\tif (!url.equals(AylaSystemUtils.ERR_URL)) {\n\t\t\t\t\t\tsetUrlConnection(\"POST\", rs.url, NETWORK_TIMEOUT_CLOUD);\n\t\t\t\t\t\twriteData();\n\t\t\t\t\t\tcommitResponse = commit(rs);\n\t\t\t\t\t}\n\n\t\t\t\t\tbreak;\n\t\t\t\tcase AylaRestService.UPDATE_GROUP_ZIGBEE:\n\t\t\t\tcase AylaRestService.TRIGGER_GROUP_ZIGBEE:\n\t\t\t\t\tif (!url.equals(AylaSystemUtils.ERR_URL)) {\n\t\t\t\t\t\tsetUrlConnection(\"PUT\", rs.url, NETWORK_TIMEOUT_CLOUD);\n\t\t\t\t\t\twriteData();\n\t\t\t\t\t\tcommitResponse = commit(rs);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tsendToReceiver(rs);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase AylaRestService.DELETE_GROUP_ZIGBEE:\n\t\t\t\t\tif (!url.equals(AylaSystemUtils.ERR_URL)) {\n\t\t\t\t\t\tsetUrlConnection(\"DELETE\", rs.url, NETWORK_TIMEOUT_CLOUD);\n\t\t\t\t\t\tcommitResponse = commit(rs);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tsendToReceiver(rs);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase AylaRestService.CREATE_BINDING_ZIGBEE:\n\t\t\t\t\tif (!url.equals(AylaSystemUtils.ERR_URL)) {\n\t\t\t\t\t\tsetUrlConnection(\"POST\", rs.url, NETWORK_TIMEOUT_CLOUD);\n\t\t\t\t\t\twriteData();\n\t\t\t\t\t\tcommitResponse = commit(rs );\n\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase AylaRestService.UPDATE_BINDING_ZIGBEE:\n\t\t\t\t\tif (!url.equals(AylaSystemUtils.ERR_URL)) {\n\t\t\t\t\t\tsetUrlConnection(\"PUT\", rs.url, NETWORK_TIMEOUT_CLOUD);\n\t\t\t\t\t\twriteData();\n\t\t\t\t\t\tcommitResponse = commit(rs);\n\n\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase AylaRestService.DELETE_BINDING_ZIGBEE:\n\n\t\t\t\t\tif (!url.equals(AylaSystemUtils.ERR_URL)) {\n\t\t\t\t\t\tsetUrlConnection(\"DELETE\", rs.url, NETWORK_TIMEOUT_CLOUD);\n\t\t\t\t\t\tcommitResponse = commit(rs );\n\t\t\t\t\t} else {\n\t\t\t\t\t\tsendToReceiver(rs);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase AylaRestService.CREATE_SCENE_ZIGBEE:\n\t\t\t\t\tif (!url.equals(AylaSystemUtils.ERR_URL)) {\n\t\t\t\t\t\tsetUrlConnection(\"POST\", rs.url, NETWORK_TIMEOUT_CLOUD);\n\t\t\t\t\t\twriteData();\n\t\t\t\t\t\tcommitResponse = commit(rs);\n\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase AylaRestService.UPDATE_SCENE_ZIGBEE:\n\t\t\t\t\tif (!url.equals(AylaSystemUtils.ERR_URL)) {\n\t\t\t\t\t\tsetUrlConnection(\"PUT\", rs.url, NETWORK_TIMEOUT_CLOUD);\n\t\t\t\t\t\twriteData();\n\t\t\t\t\t\tcommitResponse = commit(rs);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase AylaRestService.RECALL_SCENE_ZIGBEE:\n\t\t\t\t\tif (!url.equals(AylaSystemUtils.ERR_URL)) {\n\t\t\t\t\t\tsetUrlConnection(\"PUT\", rs.url, NETWORK_TIMEOUT_CLOUD);\n\t\t\t\t\t\tcommitResponse = commit(rs);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase AylaRestService.DELETE_SCENE_ZIGBEE:\n\n\t\t\t\t\tif (!url.equals(AylaSystemUtils.ERR_URL)) {\n\t\t\t\t\t\tsetUrlConnection(\"DELETE\", rs.url, NETWORK_TIMEOUT_CLOUD);\n\t\t\t\t\t\tcommitResponse = commit(rs);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tsendToReceiver(rs);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase AylaRestService.CREATE_USER_SHARE:\n\t\t\t\t\tif (!url.equals(AylaSystemUtils.ERR_URL)) {\n\t\t\t\t\t\tsetUrlConnection(\"POST\", rs.url, NETWORK_TIMEOUT_CLOUD);\n\t\t\t\t\t\twriteData();\n\t\t\t\t\t\tcommitResponse = commit(rs);\n\t\t\t\t\t} else { // return errors to handler\n\t\t\t\t\t\tsendToReceiver(rs);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase AylaRestService.UPDATE_USER_SHARE:\n\t\t\t\t{\n\t\t\t\t\tif (!url.equals(AylaSystemUtils.ERR_URL)) {\n\t\t\t\t\t\tsetUrlConnection(\"PUT\", rs.url, NETWORK_TIMEOUT_CLOUD);\n\t\t\t\t\t\twriteData();\n\t\t\t\t\t\tcommitResponse = commit(rs);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else { // return errors to handler\n\t\t\t\t\t\tsendToReceiver(rs);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tcase AylaRestService.GET_USER_SHARE:\n\t\t\t\t\tif (!url.equals(AylaSystemUtils.ERR_URL)) {\n\t\t\t\t\t\tsetUrlConnection(\"GET\", rs.url, NETWORK_TIMEOUT_CLOUD);\n\t\t\t\t\t\tcommitResponse = commit(rs);\n\t\t\t\t\t} else { // return errors to handler\n\t\t\t\t\t\tsendToReceiver(rs);\n\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase AylaRestService.DELETE_USER_SHARE:\n\n\t\t\t\t\tif (!url.equals(AylaSystemUtils.ERR_URL)) {\n\t\t\t\t\t\tsetUrlConnection(\"DELETE\", rs.url, NETWORK_TIMEOUT_CLOUD);\n\t\t\t\t\t\tcommitResponse = commit(rs);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else { // return errors to handler\n\t\t\t\t\t\tsendToReceiver(rs);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\tcase AylaRestService.LOGIN_THROUGH_OAUTH :\t// Compound objects, no service API, just return to handler\n\t\t\t\t{\n\t\t\t\t\tsendToReceiver(rs);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase AylaRestService.CREATE_USER_CONTACT:\n\t\t\t\t\tif (!AylaSystemUtils.ERR_URL.equals(url)) {\n\t\t\t\t\t\tsetUrlConnection(\"POST\", rs.url, NETWORK_TIMEOUT_CLOUD);\n\t\t\t\t\t\twriteData();\n\t\t\t\t\t\tcommitResponse = commit(rs);\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tsendToReceiver(rs);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase AylaRestService.UPDATE_USER_CONTACT:\n\t\t\t\t\tif (!AylaSystemUtils.ERR_URL.equals(url)) {\n\t\t\t\t\t\tsetUrlConnection(\"PUT\", rs.url, NETWORK_TIMEOUT_CLOUD);\n\t\t\t\t\t\twriteData();\n\t\t\t\t\t\tcommitResponse = commit(rs);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tsendToReceiver(rs);\n\t\t\t\t\t}// end of if error_url.equals(url)\n\n\t\t\t\tbreak;\n\t\t\t\tcase AylaRestService.DELETE_USER_CONTACT:\n\t\t\t\t\tif (!AylaSystemUtils.ERR_URL.equals(url)) {\n\t\t\t\t\t\tsetUrlConnection(\"DELETE\", rs.url, NETWORK_TIMEOUT_CLOUD);\n\t\t\t\t\t\tcommitResponse = commit(rs);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tsendToReceiver(rs);\n\t\t\t\t\t}\n\n\t\t\t\t\tbreak;\n\t\t\t\tcase AylaRestService.CREATE_USER_METADATA:\n\t\t\t\t\tif (!url.equals(AylaSystemUtils.ERR_URL)) {\n\t\t\t\t\t\tsetUrlConnection(\"POST\", rs.url, NETWORK_TIMEOUT_CLOUD);\n\t\t\t\t\t\twriteData();\n\t\t\t\t\t\tcommitResponse = commit(rs);\n\t\t\t\t\t} else{\n\t\t\t\t\t\tresponseBundle = new Bundle();\n\t\t\t\t\t\tsendToReceiver(rs);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase AylaRestService.UPDATE_USER_METADATA:\n\t\t\t\t\tif (!url.equals(AylaSystemUtils.ERR_URL)) {\n\t\t\t\t\t\tsetUrlConnection(\"PUT\", rs.url, NETWORK_TIMEOUT_CLOUD);\n\t\t\t\t\t\twriteData();\n\t\t\t\t\t\tcommitResponse = commit(rs);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tsendToReceiver(rs);\n\t\t\t\t\t}\n\n\t\t\t\t\tbreak;\n\t\t\t\tcase AylaRestService.GET_USER_METADATA_BY_KEY:\n\t\t\t\t\tif (!url.equals(AylaSystemUtils.ERR_URL)) {\n\t\t\t\t\t\tsetUrlConnection(\"GET\", rs.url, NETWORK_TIMEOUT_CLOUD);\n\t\t\t\t\t\tcommitResponse = commit(rs);\n\t\t\t\t\t} else { // return errors to handler\n\t\t\t\t\t\tsendToReceiver(rs);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase AylaRestService.DELETE_USER_METADATA:\n\t\t\t\t{\n\t\t\t\t\tif (!url.equals(AylaSystemUtils.ERR_URL)) {\n\t\t\t\t\t\tsetUrlConnection(\"DELETE\", rs.url, NETWORK_TIMEOUT_CLOUD);\n\t\t\t\t\t\tcommitResponse = commit(rs);\n\t\t\t\t\t} else { // return errors to handler\n\t\t\t\t\t\tsendToReceiver(rs);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase AylaRestService.CREATE_DEVICE_METADATA:\n\t\t\t\t\tif (!url.equals(AylaSystemUtils.ERR_URL)) {\n\t\t\t\t\t\tsetUrlConnection(\"POST\", rs.url, NETWORK_TIMEOUT_CLOUD);\n\t\t\t\t\t\twriteData();\n\t\t\t\t\t\tcommitResponse = commit(rs);\n\n\t\t\t\t\t} else { // return errors to handler\n\t\t\t\t\t\tsendToReceiver(rs);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase AylaRestService.UPDATE_DEVICE_METADATA:\n\t\t\t\t{\n\t\t\t\t\tif (!url.equals(AylaSystemUtils.ERR_URL)) {\n\t\t\t\t\t\tsetUrlConnection(\"PUT\", rs.url, NETWORK_TIMEOUT_CLOUD);\n\t\t\t\t\t\twriteData();\n\t\t\t\t\t\tcommitResponse = commit(rs);\n\t\t\t\t\t} else { // return errors to handler\n\t\t\t\t\t\tsendToReceiver(rs);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase AylaRestService.GET_DEVICE_METADATA_BY_KEY:\n\t\t\t\t\tif (!url.equals(AylaSystemUtils.ERR_URL)) {\n\t\t\t\t\t\tsetUrlConnection(\"GET\", rs.url, NETWORK_TIMEOUT_CLOUD);\n\t\t\t\t\t\tcommitResponse = commit(rs);\n\t\t\t\t\t} else { // return errors to handler\n\t\t\t\t\t\tsendToReceiver(rs);\n\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase AylaRestService.DELETE_DEVICE_METADATA:\n\t\t\t\t\tif (!url.equals(AylaSystemUtils.ERR_URL)) {\n\t\t\t\t\t\tsetUrlConnection(\"DELETE\", rs.url, NETWORK_TIMEOUT_CLOUD);\n\t\t\t\t\t\tcommitResponse = commit(rs);\n\t\t\t\t\t} else { // return errors to handler\n\t\t\t\t\t\tsendToReceiver(rs);\n\n\t\t\t\t\t}\n\n\t\t\t\t\tbreak;\n\t\t\t\tcase AylaRestService.CREATE_LOG_IN_SERVICE:\n\t\t\t\t{\n\t\t\t\t\tif (!url.equals(AylaSystemUtils.ERR_URL)) {\n\t\t\t\t\t\tsetUrlConnection(\"POST\", rs.url, NETWORK_TIMEOUT_CLOUD);\n\t\t\t\t\t\twriteData();\n\t\t\t\t\t\tcommitResponse = commit(rs);\n\n\t\t\t\t\t} else { // return errors to handler\n\t\t\t\t\t\tsendToReceiver(rs);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase AylaRestService.CREATE_SCHEDULE_ACTION:\n\t\t\t\t\tif (!url.equals(AylaSystemUtils.ERR_URL)) {\n\t\t\t\t\t\tsetUrlConnection(\"POST\", rs.url, NETWORK_TIMEOUT_CLOUD);\n\t\t\t\t\t\twriteData();\n\t\t\t\t\t\tcommitResponse = commit(rs);\n\t\t\t\t\t} else { // return errors to handler\n\t\t\t\t\t\tsendToReceiver(rs);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase AylaRestService.UPDATE_SCHEDULE_ACTION:\n\t\t\t\t{\n\t\t\t\t\tif (!url.equals(AylaSystemUtils.ERR_URL)) {\n\t\t\t\t\t\tsetUrlConnection(\"PUT\", rs.url, NETWORK_TIMEOUT_CLOUD);\n\t\t\t\t\t\twriteData();\n\t\t\t\t\t\tcommitResponse = commit(rs);\n\t\t\t\t\t} else { // return errors to handler\n\t\t\t\t\t\tsendToReceiver(rs);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t\tcase AylaRestService.DELETE_SCHEDULE_ACTION:\n\t\t\t\t\tif (!url.equals(AylaSystemUtils.ERR_URL)) {\n\t\t\t\t\t\tsetUrlConnection(\"DELETE\", rs.url, NETWORK_TIMEOUT_CLOUD);\n\t\t\t\t\t\tcommitResponse = commit(rs);\n\t\t\t\t\t}\n\t\t\t\t\telse { // return errors to handler\n\t\t\t\t\t\tsendToReceiver(rs);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t//case AylaRestService.CREATE_SCHEDULE:\n\t\t\t\tcase AylaRestService.UPDATE_SCHEDULE:\n\t\t\t\tcase AylaRestService.CLEAR_SCHEDULE:\n\t\t\t\t\t//case AylaRestService.DELETE_SCHEDULE:\n\n\t\t\t\t{\n\t\t\t\t\tif (!url.equals(AylaSystemUtils.ERR_URL)) {\n\n\t\t\t\t\t\tsetUrlConnection(\"PUT\", rs.url, NETWORK_TIMEOUT_CLOUD);\n\t\t\t\t\t\twriteData();\n\t\t\t\t\t\tcommitResponse = commit(rs);\n\n\t\t\t\t\t} else { // return errors to handler\n\t\t\t\t\t\tsendToReceiver(rs);\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t\tcase AylaRestService.CREATE_SCHEDULE_ACTIONS: // only called on (url.equals(AylaSystemUtils.ERR_URL)\n\t\t\t\tcase AylaRestService.DELETE_SCHEDULE_ACTIONS: // only called on (url.equals(AylaSystemUtils.ERR_URL)\n\n\t\t\t\t\tif (!url.equals(AylaSystemUtils.ERR_URL)) {\n\t\t\t\t\t\tsetUrlConnection(\"DELETE\", rs.url, NETWORK_TIMEOUT_CLOUD);\n\t\t\t\t\t\tcommitResponse = commit(rs);\n\n\t\t\t\t\t} else { // return errors to handler\n\t\t\t\t\t\tsendToReceiver(rs);\n\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase AylaRestService.UPDATE_DEVICE:\n\t\t\t\t\tif(!url.equals(AylaSystemUtils.ERR_URL)){\n\t\t\t\t\t\tsetUrlConnection(\"PUT\", rs.url, NETWORK_TIMEOUT_CLOUD);\n\t\t\t\t\t\twriteData();\n\t\t\t\t\t\tcommitResponse = commit(rs);\n\n\t\t\t\t\t} else { // return errors to handler\n\t\t\t\t\t\tsendToReceiver(rs);\n\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase AylaRestService.SEND_NETWORK_PROFILE_LANMODE:\n\t\t\t\tcase AylaRestService.DELETE_NETWORK_PROFILE_LANMODE:\n\n\t\t\t\tcase AylaRestService.GET_DEVICES_LANMODE:\n\t\t\t\tcase AylaRestService.GET_NODES_LOCAL_CACHE:\n\t\t\t\tcase AylaRestService.CREATE_DATAPOINT_LANMODE:\n\t\t\t\tcase AylaRestService.CREATE_NODE_DATAPOINT_LANMODE:\n\n\t\t\t\tcase AylaRestService.GET_DATAPOINT_LANMODE:\n\t\t\t\tcase AylaRestService.GET_DATAPOINTS_LANMODE:\n\t\t\t\tcase AylaRestService.GET_PROPERTIES_LANMODE:\n\t\t\t\tcase AylaRestService.GET_NODES_CONNECTION_STATUS_ZIGBEE_LANMODE:\n\n\t\t\t\tcase AylaRestService.GET_NODE_PROPERTIES_LANMODE:\n\t\t\t\tcase AylaRestService.GET_NODE_DATAPOINT_LANMODE:\n\n\t\t\t\tcase AylaRestService.GET_PROPERTY_DETAIL_LANMODE:\n\t\t\t\t{\n\t\t\t\t\tresponseBundle = new Bundle();\n\t\t\t\t\tresponseBundle.putString(\"result\", rs.jsonResults); // response v3.07\n\t\t\t\t\tresponseBundle.putInt(\"subTask\", rs.subTaskFailed);\n\t\t\t\t\tresponseCode = rs.responseCode;\n\n\t\t\t\t\tif (async) {\n\t\t\t\t\t\treceiver.send(responseCode, responseBundle);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcommitResponse = new AylaCallResponse(responseCode, responseBundle);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase AylaRestService.GET_DATAPOINT_BLOB_SAVE_TO_FILE:\n\t\t\t\t{\n\t\t\t\t\tif (!url.equals(AylaSystemUtils.ERR_URL)) {\n\n\t\t\t\t\t\tsetUrlConnection(\"GET\", url, NETWORK_TIMEOUT_CLOUD, false);\n\t\t\t\t\t\t// For debug, reserved for future.\n//\t\t\t\t\t\tAylaSystemUtils.saveToLog(\"%s, %s, %s, %s, %s, %s.\", \"D\", tag,\n//\t\t\t\t\t\t\t\t\"getDatapointBlobSaveToFile\"\n//\t\t\t\t\t\t\t\t, \"url:\" + urlConnection.getURL()\n//\t\t\t\t\t\t\t\t, \"method:\" + urlConnection.getRequestMethod()\n//\t\t\t\t\t\t\t\t, \"headers:\" + headers);\n\t\t\t\t\t\tcommitResponse = commit(rs);\n\t\t\t\t\t} else { // return errors to handler\n\t\t\t\t\t\tsendToReceiver(rs);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase AylaRestService.GET_DEVICES:\n\t\t\t\tcase AylaRestService.GET_DEVICE_DETAIL:\n\t\t\t\tcase AylaRestService.GET_DEVICE_DETAIL_BY_DSN:\n\t\t\t\tcase AylaRestService.GET_NEW_DEVICE_CONNECTED:\n\t\t\t\tcase AylaRestService.GET_REGISTERED_NODES:\n\t\t\t\tcase AylaRestService.GET_DEVICE_NOTIFICATIONS:\n\t\t\t\tcase AylaRestService.GET_APP_NOTIFICATIONS:\n\t\t\t\tcase AylaRestService.GET_PROPERTIES:\n\t\t\t\tcase AylaRestService.GET_PROPERTY_DETAIL:\n\t\t\t\tcase AylaRestService.GET_DATAPOINTS:\n\t\t\t\tcase AylaRestService.GET_DATAPOINT_BY_ID:\n\n\t\t\t\tcase AylaRestService.GET_DATAPOINT_BLOB:\n\t\t\t\tcase AylaRestService.GET_PROPERTY_TRIGGERS:\n\t\t\t\tcase AylaRestService.GET_APPLICATION_TRIGGERS:\n\t\t\t\tcase AylaRestService.GET_REGISTRATION_CANDIDATE:\n\t\t\t\tcase AylaRestService.GET_GATEWAY_REGISTRATION_CANDIDATES:\n\n\t\t\t\tcase AylaRestService.GET_NEW_DEVICE_STATUS:\n\t\t\t\tcase AylaRestService.GET_NEW_DEVICE_SCAN_RESULTS_FOR_APS:\n\t\t\t\tcase AylaRestService.GET_MODULE_WIFI_STATUS:\n\t\t\t\tcase AylaRestService.GET_NEW_DEVICE_PROFILES:\n\t\t\t\tcase AylaRestService.GET_DEVICE_LANMODE_CONFIG:\n\t\t\t\tcase AylaRestService.GET_USER_INFO:\n\t\t\t\tcase AylaRestService.GET_SCHEDULES:\n\t\t\t\tcase AylaRestService.GET_SCHEDULE:\n\t\t\t\tcase AylaRestService.GET_SCHEDULE_ACTIONS:\n\t\t\t\tcase AylaRestService.GET_SCHEDULE_ACTIONS_BY_NAME:\n\t\t\t\tcase AylaRestService.GET_TIMEZONE:\n\t\t\t\tcase AylaRestService.GET_USER_METADATA:\n\t\t\t\tcase AylaRestService.GET_DEVICE_METADATA:\n\t\t\t\tcase AylaRestService.GET_USER_SHARES:\n\t\t\t\tcase AylaRestService.GET_USER_RECEIVED_SHARES:\n\t\t\t\tcase AylaRestService.GET_GROUP_ZIGBEE:\n\t\t\t\tcase AylaRestService.GET_GROUPS_ZIGBEE:\n\t\t\t\tcase AylaRestService.GET_BINDING_ZIGBEE:\n\t\t\t\tcase AylaRestService.GET_BINDINGS_ZIGBEE:\n\t\t\t\tcase AylaRestService.GET_SCENE_ZIGBEE:\n\t\t\t\tcase AylaRestService.GET_SCENES_ZIGBEE:\n\t\t\t\tcase AylaRestService.GET_NODES_CONNECTION_STATUS_ZIGBEE:\n\t\t\t\tcase AylaRestService.GET_USER_CONTACT:\n\t\t\t\tcase AylaRestService.GET_USER_CONTACT_LIST:\n\t\t\t\t{\n\t\t\t\t\tif (!url.equals(AylaSystemUtils.ERR_URL)) {\n\t\t\t\t\t\tString combinedParams = \"\";\n\n\t\t\t\t\t\tif(params!= null && !params.isEmpty()) {\n\t\t\t\t\t\t\tcombinedParams += \"?\";\n\t\t\t\t\t\t\tfor(AylaParcelableNVPair p : params) {\n\t\t\t\t\t\t\t\tif ( p.getName() != null && p.getValue() != null ) {\n\t\t\t\t\t\t\t\t\tString paramString = p.getName() + \"=\" + URLEncoder.encode(p.getValue(), \"UTF-8\");\n\t\t\t\t\t\t\t\t\tif (combinedParams.length() > 1) {\n\t\t\t\t\t\t\t\t\t\tcombinedParams += \"&\" + paramString;\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tcombinedParams += paramString;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\turl+=combinedParams;\n\t\t\t\t\t\tsetUrlConnection(\"GET\", url, NETWORK_TIMEOUT_CLOUD);\n\t\t\t\t\t\tcommitResponse = commit(rs);\n\n\t\t\t\t\t} else { // return errors to handler\n\t\t\t\t\t\tsendToReceiver(rs);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase AylaRestService.GET_MODULE_REGISTRATION_TOKEN:\n\t\t\t\t{\n\t\t\t\t\tif (!url.equals(AylaSystemUtils.ERR_URL)) {\n\t\t\t\t\t\tString combinedParams = \"\";\n\n\t\t\t\t\t\tif(params!= null && !params.isEmpty()) {\n\t\t\t\t\t\t\tcombinedParams += \"?\";\n\t\t\t\t\t\t\tfor(AylaParcelableNVPair p : params) {\n\t\t\t\t\t\t\t\tif ( p.getName() != null && p.getValue() != null ) {\n\t\t\t\t\t\t\t\t\tString paramString = p.getName() + \"=\" + URLEncoder.encode(p.getValue(), \"UTF-8\");\n\t\t\t\t\t\t\t\t\tif (combinedParams.length() > 1) {\n\t\t\t\t\t\t\t\t\t\tcombinedParams += \"&\" + paramString;\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tcombinedParams += paramString;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\turl+=combinedParams;\n\t\t\t\t\t\tsetUrlConnection(\"GET\", url, NETWORK_TIMEOUT_LAN);\n\t\t\t\t\t\tcommitResponse = commit(rs);\n\n\t\t\t\t\t} else { // return errors to handler\n\t\t\t\t\t\tsendToReceiver(rs);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase AylaRestService.POST_USER_LOGIN:\n\t\t\t\tcase AylaRestService.POST_USER_LOGOUT:\n\t\t\t\tcase AylaRestService.POST_USER_SIGNUP:\n\t\t\t\tcase AylaRestService.POST_USER_RESEND_CONFIRMATION:\n\t\t\t\tcase AylaRestService.POST_USER_RESET_PASSWORD:\n\t\t\t\tcase AylaRestService.POST_USER_REFRESH_ACCESS_TOKEN:\n\t\t\t\tcase AylaRestService.POST_USER_OAUTH_LOGIN:\n\t\t\t\tcase AylaRestService.POST_USER_OAUTH_AUTHENTICATE_TO_SERVICE:\n\t\t\t\t{\n\t\t\t\t\tif (!url.equals(AylaSystemUtils.ERR_URL)) {\n\n\t\t\t\t\t\tsetUrlConnection(\"POST\", rs.url, NETWORK_TIMEOUT_CLOUD);\n\t\t\t\t\t\twriteData();\n\t\t\t\t\t\tcommitResponse = commit(rs);\n\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else { // return user sign-up errors to handler\n\t\t\t\t\t\tsendToReceiver(rs);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcase AylaRestService.CREATE_DATAPOINT_BLOB_POST_TO_FILE:\n\t\t\t\t{\n\t\t\t/* Interact with amazon S3\n\t\t\t * authorization mechanism and param already in url\n\t\t\t * do not need header.*/\n\t\t\t\t\tif (!url.equals(AylaSystemUtils.ERR_URL)) {\n\t\t\t\t\t\tsetUrlConnection(\"PUT\", rs.url, NETWORK_TIMEOUT_CLOUD, false);\n\t\t\t\t\t\twriteData();\n\t\t\t\t\t\tcommitResponse = commit(rs);\n\t\t\t\t\t} else { // return user sign-up errors to handler\n\t\t\t\t\t\tsendToReceiver(rs);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase AylaRestService.PUT_USER_CHANGE_PASSWORD:\n\t\t\t\tcase AylaRestService.PUT_RESET_PASSWORD_WITH_TOKEN:\n\t\t\t\tcase AylaRestService.PUT_USER_CHANGE_INFO:\n\t\t\t\tcase AylaRestService.PUT_USER_SIGNUP_CONFIRMATION:\n\t\t\t\tcase AylaRestService.UPDATE_PROPERTY_TRIGGER:\n\t\t\t\tcase AylaRestService.UPDATE_APPLICATION_TRIGGER:\n\t\t\t\tcase AylaRestService.UPDATE_DEVICE_NOTIFICATION:\n\t\t\t\tcase AylaRestService.UPDATE_APP_NOTIFICATION:\n\t\t\t\tcase AylaRestService.PUT_DEVICE_FACTORY_RESET:\n\t\t\t\tcase AylaRestService.BLOB_MARK_FETCHED:\n\t\t\t\tcase AylaRestService.BLOB_MARK_FINISHED:\n\t\t\t\tcase AylaRestService.IDENTIFY_NODE:\n\t\t\t\tcase AylaRestService.UPDATE_USER_EMAIL:\n case AylaRestService.PUT_DISCONNECT_AP_MODE:\n\t\t\t\t{\n\t\t\t\t\tif (!url.equals(AylaSystemUtils.ERR_URL)) {\n\t\t\t\t\t\tsetUrlConnection(\"PUT\", rs.url, NETWORK_TIMEOUT_CLOUD);\n\t\t\t\t\t\twriteData();\n\t\t\t\t\t\tcommitResponse = commit(rs);\n\t\t\t\t\t} else { // return user sign-up errors to handler\n\t\t\t\t\t\tsendToReceiver(rs);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase AylaRestService.CREATE_DATAPOINT:\n\t\t\t\tcase AylaRestService.CREATE_BATCH_DATAPOINT:\n\t\t\t\tcase AylaRestService.CREATE_DATAPOINT_BLOB:\n\t\t\t\tcase AylaRestService.CREATE_PROPERTY_TRIGGER:\n\t\t\t\tcase AylaRestService.CREATE_APPLICATION_TRIGGER:\n\t\t\t\tcase AylaRestService.START_NEW_DEVICE_SCAN_FOR_APS:\n\t\t\t\tcase AylaRestService.REGISTER_DEVICE:\n\t\t\t\t\t//\tcase AylaRestService.SET_DEVICE_CONNECT_TO_NETWORK:\n\t\t\t\tcase AylaRestService.POST_LOCAL_REGISTRATION:\n\t\t\t\tcase AylaRestService.OPEN_REGISTRATION_WINDOW:\n\t\t\t\tcase AylaRestService.CREATE_TIMEZONE:\n\t\t\t\tcase AylaRestService.CREATE_DEVICE_NOTIFICATION:\n\t\t\t\tcase AylaRestService.CREATE_APP_NOTIFICATION:\n\t\t\t\t{\n\t\t\t\t\tsetUrlConnection(\"POST\", rs.url, NETWORK_TIMEOUT_CLOUD);\n\t\t\t\t\twriteData();\n\t\t\t\t\tcommitResponse = commit(rs);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tcase AylaRestService.SET_DEVICE_CONNECT_TO_NETWORK:\n\t\t\t\t{\n\t\t\t\t\t// request = new HttpPost(url);\n\n\t\t\t\t\tString urlQueryParams = \"\";\n\t\t\t\t\tif (!params.isEmpty()) {\n\t\t\t\t\t\turlQueryParams += \"?\";\n\t\t\t\t\t\tfor (AylaParcelableNVPair p : params) {\n\t\t\t\t\t\t\tString paramString = p.getName() + \"=\" + URLEncoder.encode(p.getValue(), \"UTF-8\");\n\t\t\t\t\t\t\tif (urlQueryParams.length() > 1) {\n\t\t\t\t\t\t\t\turlQueryParams += \"&\" + paramString;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\turlQueryParams += paramString;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t\turl = rs.url + urlQueryParams;\n\t\t\t\t\t//request = new HttpPost(url);\n\n\t\t\t\t\tsetUrlConnection(\"POST\", url, NETWORK_TIMEOUT_CLOUD);\n\t\t\t\t\twriteData();\n\t\t\t\t\tcommitResponse = commit(rs);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tcase AylaRestService.PUT_LOCAL_REGISTRATION:\n\t\t\t\tcase AylaRestService.PUT_NEW_DEVICE_TIME:\n\t\t\t\tcase AylaRestService.PUT_DATAPOINT: // used to mark blob fetched\n\t\t\t\tcase AylaRestService.UPDATE_TIMEZONE:\n\t\t\t\t{\n\t\t\t\t\tsetUrlConnection(\"PUT\", rs.url, NETWORK_TIMEOUT_CLOUD);\n\t\t\t\t\twriteData();\n\t\t\t\t\tcommitResponse = commit(rs);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tcase AylaRestService.DELETE:\n\t\t\t\tcase AylaRestService.DESTROY_DEVICE_NOTIFICATION:\n\t\t\t\tcase AylaRestService.DESTROY_APP_NOTIFICATION:\n\t\t\t\tcase AylaRestService.DESTROY_PROPERTY_TRIGGER:\n\t\t\t\tcase AylaRestService.DESTROY_APPLICATION_TRIGGER:\n\t\t\t\tcase AylaRestService.UNREGISTER_DEVICE:\n\t\t\t\tcase AylaRestService.DELETE_DEVICE_WIFI_PROFILE:\n\t\t\t\tcase AylaRestService.DELETE_USER:\n\t\t\t\t{\n\t\t\t\t\tsetUrlConnection(\"DELETE\", rs.url, NETWORK_TIMEOUT_CLOUD);\n\t\t\t\t\tcommitResponse = commit(rs);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t//\t\tcase AylaRestService.SECURE_SETUP_SESSION_COMPLETED:\n\t\t\t\tcase AylaRestService.PROPERTY_CHANGE_NOTIFIER:\n\t\t\t\t{\n\t\t\t\t\tsendToReceiver(rs);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase AylaRestService.REACHABILITY:\n\t\t\t\t{\n\t\t\t\t\tsendToReceiver(rs);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase AylaRestService.REGISTER_NEW_DEVICE:\t\t\t// Compound objects, no service API, just return to handler\n\t\t\t\t{\n\t\t\t\t\t// wait for completion if it's a synchronous call\n\t\t\t\t\tif (async == false) {\n\t\t\t\t\t\twhile (rs.jsonResults == null) {\n\t\t\t\t\t\t\ttry { //NOP\n\t\t\t\t\t\t\t\tThread.sleep(100);\n\t\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tresponseBundle = new Bundle();\n\t\t\t\t\tresponseBundle.putString(\"result\", rs.jsonResults); // response v3.07\n\t\t\t\t\tresponseBundle.putInt(\"subTask\", rs.subTaskFailed);\n\t\t\t\t\tresponseCode = rs.responseCode;\n\t\t\t\t\tif (async) {\n\t\t\t\t\t\treceiver.send(responseCode, responseBundle);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcommitResponse = new AylaCallResponse(responseCode, responseBundle);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase AylaRestService.CONNECT_TO_NEW_DEVICE: // Compound objects no service API, just return to handler\n\t\t\t\tcase AylaRestService.RETURN_HOST_WIFI_STATE: // Using host local calls, no service API, just return to handler\n\t\t\t\tcase AylaRestService.RETURN_HOST_SCAN:\n\t\t\t\tcase AylaRestService.RETURN_HOST_NETWORK_CONNECTION:\n\t\t\t\tcase AylaRestService.SET_HOST_NETWORK_CONNECTION:\n\t\t\t\tcase AylaRestService.DELETE_HOST_NETWORK_CONNECTION:\n\t\t\t\tcase AylaRestService.DELETE_HOST_NETWORK_CONNECTIONS:\n\t\t\t\tcase AylaRestService.RETURN_HOST_DNS_CHECK:\n\t\t\t\tcase AylaRestService.GROUP_ACK_ZIGBEE:\n\t\t\t\tcase AylaRestService.BINDING_ACK_ZIGBEE:\n\t\t\t\tcase AylaRestService.SCENE_ACK_ZIGBEE:\n\t\t\t\tcase AylaRestService.GET_NODES_CONNECTION_STATUS:\n\t\t\t\t{\n\t\t\t\t\t// wait for completion if it's a synchronous call\n\t\t\t\t\tif (async == false) {\n\t\t\t\t\t\twhile (rs.jsonResults == null) {\n\t\t\t\t\t\t\ttry { //NOP\n\t\t\t\t\t\t\t\tThread.sleep(100);\n\t\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tresponseBundle = new Bundle();\n\t\t\t\t\tresponseBundle.putString(\"result\", rs.jsonResults); // response v3.07\n\t\t\t\t\tresponseBundle.putInt(\"subTask\", rs.subTaskFailed);\n\t\t\t\t\tresponseCode = rs.responseCode;\n\t\t\t\t\tif (async) {\n\n\t\t\t\t\t\treceiver.send(responseCode, responseBundle);\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\tcommitResponse = new AylaCallResponse(responseCode, responseBundle);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase AylaRestService.CONNECT_NEW_DEVICE_TO_SERVICE:\n\t\t\t\tcase AylaRestService.CONFIRM_NEW_DEVICE_TO_SERVICE_CONNECTION: // Compound object\n\t\t\t\tcase AylaRestService.GET_NEW_DEVICE_WIFI_STATUS: // compound object\n\t\t\t\tcase AylaRestService.GET_NODES_CONNECTION_STATUS_LANMODE:\n\t\t\t\t{\n\t\t\t\t\tresponseBundle = new Bundle();\n\t\t\t\t\tresponseBundle.putString(\"result\", rs.jsonResults); // response v3.07\n\t\t\t\t\tresponseBundle.putInt(\"subTask\", rs.subTaskFailed);\n\t\t\t\t\tresponseCode = rs.responseCode;\n\n\t\t\t\t\treceiver.send(responseCode, responseBundle);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tdefault:\n\t\t\t\t\tAylaSystemUtils.saveToLog(\"%s, %s, %s, %s.\", \"E\", tag, \"execute\", \"method \" + method + \" unknown\");\n\t\t\t\t\tbreak;\n\t}\n\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t\tcloseResources();\n\t\t\tresponseBundle = new Bundle();\n\t\t\tresponseBundle.putString(\"result\", rs.jsonResults); // response v3.07\n\t\t\tresponseBundle.putInt(\"subTask\", rs.subTaskFailed);\n\t\t\tresponseCode = rs.responseCode;\n\t\t\tif (async) {\n\t\t\t\treceiver.send(responseCode, responseBundle);\n\t\t\t} else {\n\t\t\t\tcommitResponse = new AylaCallResponse(responseCode, responseBundle);\n\t\t\t}\n\t\t} finally{\n\t\t\tcloseResources();\n\t\t}\n\t\treturn commitResponse;\n\t}", "protected void execute() {\n \tRobot.DRIVE_SUBSYSTEM.tankDrive(expoDrive(RobotMap.DRIVE_EXPO_MIN,\n \t\t\t\t\t\t\t\t\t\t\t RobotMap.DRIVE_EXPO_DEADZONE,\n \t\t\t\t\t\t\t\t\t\t\t Robot.oi.getDriveLeftY(),\n \t\t\t\t\t\t\t\t\t\t\t RobotMap.DRIVE_EXPO_EXPO),\n \t\t\t\t\t\t\t\t\texpoDrive(RobotMap.DRIVE_EXPO_MIN,\n \t\t\t\t\t\t\t\t\t\t\t RobotMap.DRIVE_EXPO_DEADZONE,\n \t\t\t\t\t\t\t\t\t\t\t Robot.oi.getDriveRightY(),\n \t\t\t\t\t\t\t\t\t\t\t RobotMap.DRIVE_EXPO_EXPO));\n }", "public void execute();", "public void execute();", "public void execute();", "public void execute();", "public interface APIService {\n\n @POST(\"login.php\")\n Call<ResponseLogin> iniciosesion(@Body Cuenta cuenta);\n\n @POST(\"registrarEmpresa.php\")\n Call<PostResponse> registerEmpresa(@Body Cuenta cuenta);\n\n @GET(\"mostrarProyecto.php\")\n Call<ResponseProyecto> getProyectos(@Query(\"id_empresa\") String id);\n\n @GET(\"InfoEmpresa.php\")\n Call<ResponseEmpresa> getEmpresa(@Query(\"id_empresa\") String id);\n\n @POST(\"registrarProyecto.php\")\n Call<ResponseRegistrarProyecto> registerProyecto(@Body Proyecto proyecto);\n\n @POST(\"registrarDocumento.php\")\n Call<ResponseEntregable> registerEntregable(@Body EntregableP entregableP);\n\n @GET(\"mostrarDoc.php\")\n Call<ResponseMostrarEntregable> getEntregables(@Query(\"id_proyecto\") int id);\n\n @POST(\"registrarPersonal.php\")\n Call<PostResponse> registerPersonal(@Body Personal personal);\n\n @GET(\"mostrarPersonal.php\")\n Call<ResponsePersonal> getPersonal(@Query(\"id_empresa\") String id);\n\n @POST(\"registrarHistorial.php\")\n Call<PostResponse> registerHistorial(@Body Historial historial);\n\n @GET(\"mostrarHistorial.php\")\n Call<ResponseHistorial> getHistorial(@Query(\"id_proyecto\") int id);\n\n @GET(\"mostrarPerLibres.php\")\n Call<ResponsePersonalFree> getPersonalFree(@Query(\"id_empresa\") String id);\n\n @POST(\"registrarEquipoP.php\")\n Call<PostResponse> registerEquipo(@Body RegisterEquipo equipo);\n\n @GET(\"mostrarEquipoP.php\")\n Call<ResponseMostrarEquipo> getEquipo(@Query(\"id_proyecto\") int id);\n\n @GET(\"{entregable}\")\n @Streaming\n Call<ResponseBody> downloadFile(@Path(\"entregable\")String entregable);\n\n @POST(\"asignarJefe.php\")\n Call<PostResponse> asignarJefe(@Body Jefe jefe);\n\n @POST(\"proyectoEndFake.php\")\n Call<PostResponse> finishProyecto(@Body Proyecto proyecto);\n\n @POST(\"ModidTipo.php\")\n Call<PostResponse> updateTipo(@Body Jefe jefe);\n\n @GET(\"reporteJson.php\")\n Call<ResponseReportes> getReportes(@Query(\"idEmpresa\") String id);\n\n @POST(\"LoginEmJefe.php\")\n Call<ResponseUser> signIn(@Body Cuenta cuenta);\n\n @GET(\"ProyectoMostrarID.php\")\n Call<ResponseProyecto> getProject(@Query(\"idProyecto\") String id);\n\n\n}", "@SuppressWarnings(\"unchecked\")\n public <T> T execute() {\n return (T) fetchResponse(getCallToExecute());\n }", "public void run() {\n\t\tMzsCore core = DefaultMzsCore.newInstanceWithoutSpace();\n\t\tcapi = new Capi(core);\n\t\tint anzahlDefekte = (int) (anzahl * fehlerrate);\n\t\tTransactionReference transET = null;\n\t\tTransactionReference transAutos = null;\n\t\tContainerReference idContainer = null;\n\t\tArrayList<Long> ids = null;\n\t\ttry {\n\t\t\ttransAutos = capi.createTransaction(MzsConstants.TransactionTimeout.INFINITE, Config.locAutos);\n\t\t\ttransET = capi.createTransaction(MzsConstants.TransactionTimeout.INFINITE, Config.locET);\n\t\t\tidContainer = capi.lookupContainer(ContainerNames.ID, Config.locAutos, MzsConstants.RequestTimeout.TRY_ONCE, transAutos);\n\t\t\tids = capi.read(idContainer,\n\t\t\t\t\tFifoCoordinator.newSelector(MzsConstants.Selecting.COUNT_ALL),\n\t\t\t\t\tMzsConstants.RequestTimeout.ZERO, transAutos);\n\t\t} catch (MzsCoreException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t\ttry{\n\t\t\tthis.id = ids.get(ids.size()-1);\n\t\t}catch(Exception e){\n\t\t\tthis.id = 1;\n\t\t\te.printStackTrace();\n\t\t}\n\t\tlong entryID = id;\n\t\ttry {\n\t\t\tcapi.write(capi.lookupContainer(ContainerNames.ID,Config.locAutos,MzsConstants.RequestTimeout.TRY_ONCE,transAutos), new Entry(id));\n\t\t} catch (MzsCoreException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t\tfor (int zaehler = 1; zaehler <= anzahl; zaehler++) {\n\t\t\t// Warte 1-3 Sekunden\n\n\t\t\t// Bastel neues Teil\n\t\t\tentryID++;\n\t\t\tboolean defekt = false;\n\t\t\tif (zaehler <= anzahlDefekte)\n\t\t\t\tdefekt = true;\n\t\t\t\t\n\n\t\t\tSystem.err.println(\"Got component id: \" + entryID);\n\n\n\t\t\tEinzelteil teil = null;\n\n\t\t\t// Erstellung eines neuen Objekts von einem generischen Datentypen\n\t\t\ttry {\n\t\t\t\t@SuppressWarnings(\"rawtypes\")\n\t\t\t\tClass[] argsC = new Class[] { long.class, long.class,\n\t\t\t\t\t\tboolean.class };\n\t\t\t\tConstructor<? extends Einzelteil> constructor = type\n\t\t\t\t\t\t.getConstructor(argsC);\n\t\n\t\t\t\tteil = constructor.newInstance(new Object[] { entryID, id,\n\t\t\t\t\t\tdefekt });\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.err.println(\"Houston, we have a problem ...\");\n\t\t\t}\n\n\t\t\tSystem.err.println(\"Created new \" + type.getName());\n\t\t\tString containerName = \"\";\n\t\t\tif (type.getName().contains(\"einzelteile.Achse\")) {\n\t\t\t\tcontainerName = ContainerNames.ACHSEN;\n\t\t\t} else if (type.getName().contains(\"einzelteile.Bodenplatte\")) {\n\t\t\t\tcontainerName = ContainerNames.PLATTEN;\n\t\t\t} else if (type.getName().contains(\"einzelteile.Karosserie\")) {\n\t\t\t\tcontainerName = ContainerNames.KAROSSERIE;\n\t\t\t} else if (type.getName().contains(\"einzelteile.Lenkrad\")) {\n\t\t\t\tcontainerName = ContainerNames.LENKRAD;\n\t\t\t} else if (type.getName().contains(\"einzelteile.ReifenPaar\")){\n\t\t\t\tcontainerName = ContainerNames.REIFEN;\n\t\t\t} else if (type.getName().contains(\"einzelteile.Sitz\")){\n\t\t\t\tcontainerName = ContainerNames.SITZE;\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tcapi.write(capi.lookupContainer(containerName,Config.locET,MzsConstants.RequestTimeout.TRY_ONCE,transET), new Entry(teil));\n\t\t\t\tcapi.write(capi.lookupContainer(ContainerNames.ID,Config.locAutos,MzsConstants.RequestTimeout.TRY_ONCE,transAutos), new Entry(entryID));\n\t\t\t} catch (MzsCoreException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t\ttry {\n\t\t\tcapi.commitTransaction(transET);\n\t\t\tcapi.commitTransaction(transAutos);\n\t\t} catch (MzsCoreException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@GET(\"planetary/apod\")\n Call<APOD> getApod(\n @Query(\"date\") String date,\n @Query(\"api_key\") String API_KEY\n );", "public void run() {\n\t\t\t\tHttpURLConnection connection = null;\r\n\r\n\t\t\t\tPrintWriter printWriter = null;\r\n\t\t\t\tBufferedReader bufferedReader = null;\r\n\r\n\t\t\t\tStringBuffer response = new StringBuffer();\r\n\t\t\t\tStringBuffer request = new StringBuffer();\r\n\r\n\t\t\t\t// 组织请求参数\r\n\t\t\t\tif (null != params && !params.isEmpty()){\r\n\t\t\t\t\tfor (Map.Entry<String, String> entry : params.entrySet()){\r\n\t\t\t\t\t\trequest.append(entry.getKey()).append(\"=\").append(entry.getValue()).append(\"&\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//< 删除多余的&\r\n\t\t\t\t\trequest.deleteCharAt(request.length() - 1);\r\n\t\t\t\t}\r\n\t\t\t\tLog.d(\"HttpUtil\", request.toString());\r\n\r\n\t\t\t\ttry{\r\n\t\t\t\t\tURL url = new URL(address);\r\n\t\t\t\t\tconnection = (HttpURLConnection) url.openConnection();\r\n\t\t\t\t\tconnection.setRequestMethod(\"POST\");\r\n\t\t\t\t\tconnection.setRequestProperty(\"Content-Length\", String.valueOf(request.length()));\r\n\t\t\t\t\tconnection.setDoInput(true);\r\n\t\t\t\t\tconnection.setDoOutput(true);\r\n\t\t\t\t\tprintWriter = new PrintWriter(connection.getOutputStream());\r\n\t\t\t\t\tprintWriter.write(request.toString());\r\n\t\t\t\t\tprintWriter.flush();\r\n\r\n\t\t\t\t\tint responseCode = connection.getResponseCode();\r\n\t\t\t\t\tif(responseCode != 200){\r\n\t\t\t\t\t\tLog.d(\"HttpUtil\", \"Post Fail\");\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tLog.d(\"HttpUtil\", \"Post Success\");\r\n\t\t\t\t\t\tbufferedReader = new BufferedReader(new InputStreamReader(connection.getInputStream()));\r\n\t\t\t\t\t\tString line;\r\n\t\t\t\t\t\twhile ((line = bufferedReader.readLine()) != null) {\r\n\t\t\t\t\t\t\tresponse.append(line);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif(listener != null){\r\n\t\t\t\t\t\tlistener.onFinish(response.toString());\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}catch(Exception e){\r\n\t\t\t\t\tif(listener != null){\r\n\t\t\t\t\t\tlistener.onError(e);\r\n\t\t\t\t\t}\r\n\t\t\t\t}finally{\r\n\t\t\t\t\tif(connection != null){\r\n\t\t\t\t\t\tconnection.disconnect();\r\n\t\t\t\t\t}\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tif (printWriter != null) {\r\n\t\t\t\t\t\t\tprintWriter.close();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (bufferedReader != null) {\r\n\t\t\t\t\t\t\tbufferedReader.close();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} catch (IOException ex) {\r\n\t\t\t\t\t\tex.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t}", "@Override\n public byte[] execute() {\n return buildResponse();\n }", "@Override\r\n protected Void doInBackground(Void... params) {\r\n try {\r\n return postDataToApi();\r\n } catch (Exception e) {\r\n mLastError = e;\r\n cancel(true);\r\n return null;\r\n }\r\n }", "private void hitApiForActivateDeal() {\n appUtils.showProgressDialog(mActivity, false);\n HashMap<String, String> params = new HashMap<>();\n params.put(ApiKeys.DEAL_ID, dealData.getDealId());\n params.put(ApiKeys.DEAL_STATUS, \"1\");\n\n params.put(ApiKeys.DEAL_TITLE, etTitle.getText().toString().trim());\n params.put(ApiKeys.DEAL_DESCRIPTION, etDescription.getText().toString().trim());\n params.put(ApiKeys.TOTAL_ITEMS, etTotalItems.getText().toString().trim());\n params.put(ApiKeys.ORIGINAL_PRICE, etOriginalPrice.getText().toString().trim());\n params.put(ApiKeys.NEW_PRICE, tvNewPrice.getText().toString());\n params.put(ApiKeys.START_DATE_TIME, parseTime(etBeginTime.getText().toString().trim()));\n params.put(ApiKeys.END_DATE_TIME, parseTime(etEndTime.getText().toString().trim()));\n\n ApiInterface service = RestApi.createService(ApiInterface.class);\n Call<ResponseBody> call = service.deactivateDeal(AppSharedPrefs.getInstance(mActivity).\n getString(AppSharedPrefs.PREF_KEY.ACCESS_TOKEN, \"\"), appUtils.encryptData(params));\n ApiCall.getInstance().hitService(mActivity, call, new NetworkListener() {\n @Override\n public void onSuccess(int responseCode, String response) {\n try {\n JSONObject mainObject = new JSONObject(response);\n if (mainObject.getInt(\"CODE\") == 200) {\n appUtils.showToast(mActivity, getString(R.string.deal_activated));\n Intent intent = new Intent();\n intent.putExtra(Constants.DEAL_POSITION_KEY, position);\n intent.putExtra(Constants.DEAL_STATUS_KEY, \"1\");\n setResult(Constants.DEAL_ACTIVIATE_RESULT_CODE, intent);\n Intent intent1 = new Intent(Constants.REFRESH_RECCEIVER_KEY);\n // You can also include some extra data.\n intent1.putExtra(\"refresh\", true);\n LocalBroadcastManager.getInstance(mActivity).sendBroadcast(intent1);\n finish();\n } else if (mainObject.getInt(\"CODE\") == ApiKeys.UNAUTHORISED_CODE) {\n appUtils.logoutFromApp(mActivity, mainObject.optString(\"MESSAGE\"));\n } else {\n appUtils.showSnackBar(activityCreateDeal, mainObject.optString(\"MESSAGE\"));\n }\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n\n @Override\n public void onSuccessErrorBody(String response) {\n\n }\n\n @Override\n public void onFailure() {\n appUtils.showSnackBar(activityCreateDeal, getString(R.string.txt_something_went_wrong));\n }\n });\n\n }", "private void doRequest(String orden){\n if (method == 1){\n //EXECUTE RECIBIR PEDIDO\n doPost(orden, \"Recolectado por \" + usuario.getmUsuario(), VolleyController.RECIBIR_URL);\n } else if (method == 2){\n //EXECUTE ENTREGAR PEDIDO\n initComment(orden, \"Entregado por \" + usuario.getmUsuario() + \" a\", VolleyController.ENTREGAR_URL);\n } else if (method == 3){\n //GET COMMENT\n initComment(orden, usuario.getmUsuario(), VolleyController.INTENTAR_URL);\n } else if (method == 4){\n //EXECUTE DEVOLVER PRODUCTO\n initComment(orden, \"Se devuelve el pedido, \" + usuario.getmUsuario(), VolleyController.DEVOLVER_URL);\n }\n }", "public void doCall(){\n CalculatorPayload operation = newContent();\n\n ((PBFTClient)getProtocol()).syncCall(operation);\n }", "public void execute() {\n\n\t}", "public interface LooksoftMainApi {\n @GET(\"main\")\n Call<Data> loadData();\n}", "public static void main(String[]args) throws IOException {\n searchHistoryList();\n// queryGroup();\n// testgson();\n// queryLevelCode();\n// queryCode(\"queryAlertLevels\");\n// queryCode(\"queryAlertCategories\");\n// queryCode(\"queryAlertTypes\");\n// queryCode(\"queryAlertCode\");\n// sendPostNotify(\"http://10.138.16.192:8080/api/queryAlertingList\",\"{pageinfo:{currentPage:1,pageSize:10}}\");\n }", "private void hitApiForCreateDeal() {\n appUtils.showProgressDialog(mActivity,false);\n\n HashMap<String, String> params = new HashMap<>();\n params.put(ApiKeys.DEAL_TITLE, etTitle.getText().toString().trim());\n params.put(ApiKeys.DEAL_DESCRIPTION, etDescription.getText().toString().trim());\n params.put(ApiKeys.TOTAL_ITEMS, etTotalItems.getText().toString().trim());\n params.put(ApiKeys.ORIGINAL_PRICE, etOriginalPrice.getText().toString().trim());\n params.put(ApiKeys.NEW_PRICE, tvNewPrice.getText().toString());\n params.put(ApiKeys.START_DATE_TIME, parseTime(etBeginTime.getText().toString().trim()));\n params.put(ApiKeys.END_DATE_TIME, parseTime(etEndTime.getText().toString().trim()));\n\n ApiInterface service = RestApi.createService(ApiInterface.class);\n Call<ResponseBody> call = service.createDeal(AppSharedPrefs.getInstance(mActivity).\n getString(AppSharedPrefs.PREF_KEY.ACCESS_TOKEN, \"\"), appUtils.encryptData(params));\n ApiCall.getInstance().hitService(mActivity, call, new NetworkListener() {\n @Override\n public void onSuccess(int responseCode, String response) {\n CreateDealModel createDealModel = new Gson().fromJson(response, CreateDealModel.class);\n if (createDealModel.getCODE() == 200) {\n /*Intent intent = new Intent(mActivity, MerchantActivity.class);\n startActivity(intent);*/\n setResult(Constants.CREATE_DEAL_REQ_CODE);\n\n Intent intent1 = new Intent(Constants.REFRESH_RECCEIVER_KEY);\n // You can also include some extra data.\n intent1.putExtra(\"refresh\", true);\n LocalBroadcastManager.getInstance(mActivity).sendBroadcast(intent1);\n\n mActivity.finish();\n\n } else if (createDealModel.getCODE() == ApiKeys.UNAUTHORISED_CODE) {\n appUtils.logoutFromApp(mActivity, createDealModel.getMESSAGE());\n } else {\n appUtils.showSnackBar(mActivity.findViewById(android.R.id.content), createDealModel.getMESSAGE());\n }\n\n appUtils.hideProgressDialog(mActivity);\n }\n\n @Override\n public void onSuccessErrorBody(String response) {\n\n }\n\n @Override\n public void onFailure() {\n appUtils.hideProgressDialog(mActivity);\n appUtils.showSnackBar(mActivity.findViewById(android.R.id.content), getString(R.string.txt_something_went_wrong));\n\n }\n });\n\n }", "@Override\n protected String doInBackground(String... params) {\n return getResponse1(\"https://singlze.com/API/del_acc.php\");\n\n\n }", "public void execute() {\n\t\t\r\n\t}", "public void execute() {\n\t\t\r\n\t}", "public void execute() {\n\t\t\r\n\t}", "public void execute() {\n execute0();\n }", "@NonNull\n @Override\n @WorkerThread\n public Result<D> execute(@NonNull Bundle args) {\n\n JsonAdapter<D> adapter = getAdapter();\n\n try {\n return executeRequest(adapter, args);\n } catch (IOException e) {\n\n // If this exception is for a clear text violation, log it. We want to fix these.\n if (e instanceof UnknownServiceException) {\n Log.e(TAG, \"Unexpected error during network request.\", e);\n tracker.logError(e);\n }\n\n Result<D> result = Result.Builder.fromException(new IOFailureException(e));\n\n // Only do this if caching is enabled.\n if (constructCacheControl(args) == CacheControl.FORCE_NETWORK) {\n Log.d(TAG, \"Cache is disabled, do not attempt getting stale data.\");\n return result;\n }\n\n Log.d(TAG, \"Error while getting data, try to get stale data.\", e);\n // We try to get stale data at this point.\n args = new Bundle(args);\n args.putBoolean(ALLOW_STALENESS, true);\n\n try {\n Result<D> staleResult = executeRequest(adapter, args);\n Log.d(TAG, \"Stale data was found and used.\");\n // Add the result.\n return result.updateWith(staleResult);\n } catch (IOException e2) {\n Log.d(TAG, \"Stale data was not found.\", e2);\n // Just give up at this point.\n return result;\n }\n }\n }", "@Override\n protected String doInBackground(Void... params) {\n Connector con = new Connector();\n return con.send(urlAddress, data);\n }", "private void sendAllRiskData(){\n ApiInterface client = ServiceGenerator.createService(ApiInterface.class);\n\n\n Call<QouteHeadAllrisk> call=client.allrisk_quote(\"Token \"+userPreferences.getUserToken(), mItemValueA2.getText().toString());\n\n call.enqueue(new Callback<QouteHeadAllrisk>() {\n @Override\n public void onResponse(Call<QouteHeadAllrisk> call, Response<QouteHeadAllrisk> response) {\n Log.i(\"ResponseCode\", String.valueOf(response.code()));\n if(response.code()==400){\n showMessage(\"Check your internet connection\");\n mBtnLayout2A2.setVisibility(View.VISIBLE);\n mProgressbar.setVisibility(View.GONE);\n return;\n }else if(response.code()==429){\n showMessage(\"Too many requests on database\");\n mBtnLayout2A2.setVisibility(View.VISIBLE);\n mProgressbar.setVisibility(View.GONE);\n return;\n }else if(response.code()==500){\n showMessage(\"Server Error\");\n mBtnLayout2A2.setVisibility(View.VISIBLE);\n mProgressbar.setVisibility(View.GONE);\n return;\n }else if(response.code()==401){\n showMessage(\"Unauthorized access, please try login again\");\n mBtnLayout2A2.setVisibility(View.VISIBLE);\n mProgressbar.setVisibility(View.GONE);\n return;\n }\n\n try {\n if (!response.isSuccessful()) {\n\n try{\n APIError apiError= ErrorUtils.parseError(response);\n\n showMessage(\"Invalid Entry: \"+apiError.getErrors());\n Log.i(\"Invalid EntryK\",apiError.getErrors().toString());\n Log.i(\"Invalid Entry\",response.errorBody().toString());\n mBtnLayout2A2.setVisibility(View.VISIBLE);\n mProgressbar.setVisibility(View.GONE);\n\n }catch (Exception e){\n Log.i(\"InvalidEntry\",e.getMessage());\n Log.i(\"ResponseError\",response.errorBody().string());\n showMessage(\"Failed to Fetch Quote\"+e.getMessage());\n mBtnLayout2A2.setVisibility(View.VISIBLE);\n mProgressbar.setVisibility(View.GONE);\n\n }\n mBtnLayout2A2.setVisibility(View.VISIBLE);\n mProgressbar.setVisibility(View.GONE);\n return;\n }\n\n long quote_price=response.body().getData().getPrice();\n\n double roundOff = Math.round(quote_price*100)/100.00;\n\n Log.i(\"quote_price\", String.valueOf(quote_price));\n showMessage(\"Successfully Fetched Quote\");\n mBtnLayout2A2.setVisibility(View.VISIBLE);\n mProgressbar.setVisibility(View.GONE);\n\n\n // Fragment quoteBuyFragment3 = new MotorInsureFragment3();\n FragmentTransaction ft = getFragmentManager().beginTransaction();\n ft.replace(R.id.fragment_allrisk_form_container, AllriskFragment3.newInstance(userPreferences.getAllRiskItemType(), String.valueOf(roundOff)), AllriskFragment3.class.getSimpleName());\n ft.commit();\n }catch (Exception e){\n Log.i(\"policyResponse\", e.getMessage());\n mBtnLayout2A2.setVisibility(View.VISIBLE);\n mProgressbar.setVisibility(View.GONE);\n }\n\n }\n @Override\n public void onFailure(Call<QouteHeadAllrisk> call, Throwable t) {\n showMessage(\"Submission Failed \"+t.getMessage());\n Log.i(\"GEtError\",t.getMessage());\n mBtnLayout2A2.setVisibility(View.VISIBLE);\n mProgressbar.setVisibility(View.GONE);\n }\n });\n\n }", "CommandResult execute();", "@Override\n\t\tpublic void run() {\n\t\t\ttry {\n\t\t\t\tProxy proxy = new Proxy(Proxy.Type.HTTP, new InetSocketAddress(\n\t\t\t\t\t\t\"proxy.iiit.ac.in\", 8080));\n\t\t\t\tURL url = new URL(url1);\n\t\t\t\tHttpURLConnection connection = (HttpURLConnection) url\n\t\t\t\t\t\t.openConnection(proxy);\n\t\t\t\tconnection.setRequestMethod(\"POST\");\n\t\t\t\t// connection.setRequestProperty(\"Content-Type\",\n\t\t\t\t// \"application/x-www-form-urlencoded\");\n\n\t\t\t\tconnection.setRequestProperty(\"Content-Length\",\n\t\t\t\t\t\t\"\" + Integer.toString(parameters.getBytes().length));\n\t\t\t\tconnection.setRequestProperty(\"Content-Language\", \"en-US\");\n\n\t\t\t\tconnection.setUseCaches(false);\n\t\t\t\tconnection.setDoInput(true);\n\t\t\t\tconnection.setDoOutput(true);\n\n\t\t\t\t// Send request\n\t\t\t\tDataOutputStream wr = new DataOutputStream(\n\t\t\t\t\t\tconnection.getOutputStream());\n\t\t\t\twr.writeBytes(parameters);\n\t\t\t\twr.flush();\n\t\t\t\twr.close();\n\n\t\t\t\t// Get Response\n\t\t\t\tInputStream is = connection.getInputStream();\n\t\t\t\tBufferedReader rd = new BufferedReader(\n\t\t\t\t\t\tnew InputStreamReader(is));\n\t\t\t\tString line;\n\t\t\t\tStringBuffer response = new StringBuffer();\n\t\t\t\twhile ((line = rd.readLine()) != null) {\n\t\t\t\t\tresponse.append(line);\n\t\t\t\t\tresponse.append('\\r');\n\t\t\t\t}\n\t\t\t\trd.close();\n\t\t\t\t// return response.toString();\n\t\t\t\tlong tID = Thread.currentThread().getId();\n\t\t\t\tlong time = ManagementFactory.getThreadMXBean()\n\t\t\t\t\t\t.getThreadCpuTime(tID);\n\t\t\t\tSystem.out.println(\"My thread \" + tID + \" execution time: \"\n\t\t\t\t\t\t+ time + \" ns.\");\n\t\t\t\tsumTimes=sumTimes+time;\n\t\t\t\tconnection.disconnect();\n\t\t\t} catch (Exception e) {\n\n\t\t\t\te.printStackTrace();\n\t\t\t\t// return null;\n\n\t\t\t} finally {\n\n\t\t\t}\n\t\t}", "public void execute() {\r\n\t\r\n\t}", "@Override\n\t\t\tpublic Boolean execute() throws EvrythngException {\n\t\t\t\tHttpClient client = new DefaultHttpClient();\n\t\t\t\ttry {\n\t\t\t\t\t// Execute request (response status code will be automatically checked):\n\t\t\t\t\treturn command.execute(client) != null;\n\t\t\t\t} finally {\n\t\t\t\t\tcommand.shutdown(client);\n\t\t\t\t}\n\t\t\t}", "private void run() throws Exception {\n String url = getResources().getString(R.string.base_url)+\"users/stats/\";\n\n Request request = new Request.Builder()\n .url(url)\n .header(\"Authorization\", Config.getKey())\n .build();\n Response response = client.newCall(request).execute();\n if (!response.isSuccessful()) throw new IOException(\"Unexpected code \" + response);\n\n try {\n JSONObject jsonResponse = new JSONObject(response.body().string());\n stats.rankingPos = jsonResponse.getInt(Stats.rankingPosKey);\n stats.favoriteArea = jsonResponse.getString(Stats.favoriteAreaKey);\n stats.percentageCompleted = jsonResponse.getDouble(Stats.percentageCompletedKey);\n\n JSONArray categoriesResponse = jsonResponse.getJSONArray(Stats.areasKey);\n double categorie_percentage;\n double l1, l2, l3;\n stats.areas.clear();\n for(String cat : Stats.CATEGORIES) {\n categorie_percentage = 0;\n l1 = 0;\n l2 = 0;\n l3 = 0;\n for(int i = 0; i < categoriesResponse.length(); i++) {\n JSONObject area = categoriesResponse.getJSONObject(i);\n if (area.getString(Stats.areaNameKey).toLowerCase().equals(cat.toLowerCase())) {\n categorie_percentage = area.getDouble(Stats.areaPercKey);\n l1 = 100 * area.getDouble(Stats.level1Key);\n l2 = 100 * area.getDouble(Stats.level2Key);\n l3 = 100 * area.getDouble(Stats.level3Key);\n break;\n }\n }\n stats.areas.add(new Stats.PairAreaPercentage(cat, categorie_percentage, l1, l2, l3));\n }\n } catch (Exception e) {\n e.printStackTrace();\n Log.i(\"JSONError\", \"Erro na formatação do response\");\n }\n }", "protected void execute() {\n\n\t\tdouble left = Robot.oi.driver.getRawAxis(Robot.dp.joystick1);\n\t\tdouble right = -Robot.oi.driver.getRawAxis(Robot.dp.joystick2);\n\t\t\n\t\tif (Robot.dp.dc == DriveControl.TANK) {\n\t\t\tRobot.Drivetrain.drive(left, -right);\n\t\t} else {\n\t\t\tif (Robot.dp == DriverConfig.RORY) {\n\t\t\t\tRobot.Drivetrain.drive(left, right * 0.75);\n\t\t\t} else {\n\t\t\t\tRobot.Drivetrain.drive(left, right);\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "public static int doPost(String name, String id, Result r) {\n r.setValue(\"\");\n String response = \"\";\n int status = 0;\n String output =\"\";\n \n try {\n // Make call to a particular URL\n URL url = new URL(\"https://intense-lake-93564.herokuapp.com/menusection/\");\n HttpURLConnection conn = (HttpURLConnection) url.openConnection();\n // set request method to POST and send name value pair\n conn.setRequestMethod(\"POST\");\n conn.setDoOutput(true);\n conn.setRequestProperty(\"Accept\", \"text/plain\");\n // write to POST data area\n JSONObject objJson = new JSONObject();\n JSONObject objJsonSend = new JSONObject();\n try {\n objJson.put(\"id\", id);\n objJson.put(\"name\", name);\n objJsonSend.put(\"name\", name);\n } catch (JSONException ex) {\n Logger.getLogger(RestaurantApiClient.class.getName()).log(Level.SEVERE, null, ex);\n }\n String ans = objJson.toString();\n System.out.println(\"Request Body:\");\n System.out.println(objJsonSend.toString());\n OutputStreamWriter out = new OutputStreamWriter(conn.getOutputStream());\n out.write(ans);\n out.close();\n // get HTTP response code sent by server\n status = conn.getResponseCode();\n if (status != 200) {\n // not using msg\n String msg = conn.getResponseMessage();\n return conn.getResponseCode();\n }\n output = \"\";\n BufferedReader br = new BufferedReader(new InputStreamReader(\n (conn.getInputStream())));\n while ((output = br.readLine()) != null) {\n response += output; \n }\n conn.disconnect();\n //close the connection\n conn.disconnect();\n }\n // handle exceptions\n catch (MalformedURLException e) {\n e.printStackTrace();\n }\n catch (IOException e) {\n e.printStackTrace();\n } \n // return HTTP status\n r.setValue(response);\n return status; \n }", "@Override\n\tpublic void execute() throws Exception {\n\t\tAccount account = OperationContext.getContext().getAccount();\n\t\tHotelDao HDao = DaoManager.getInstance().getDao(HotelDao.class);\t\t\n\t\thotelId = HDao.getHotelIdByAccountId(account.getId());\n\t\thotel = HDao.getHotelByHotelId(hotelId);\t\t\n\t}", "public interface API {\n\n //Penyakit\n @GET(\"penyakitall/{page}/{count_page}\")\n Call<DiseaseResponse>\n getDiseaseList(@Path(\"page\") String page, @Path(\"count_page\") String count_page);\n\n @GET(\"penyakit/{page}/{count_page}\")\n Call<DiseaseResponse>\n getDiseaseListByLokasi(@Path(\"page\") String page, @Path(\"count_page\") String count_page, @Query(\"id_desa\") String id_desa);\n\n @POST(\"penyakit\")\n Call<DiseasePostResponse>\n postDisease(@Body DiseaseBody diseaseBody);\n @DELETE(\"penyakit\")\n Call<DeletePenyakitResponse> deletePenyakit(@Query(\"Id_penyakit\") String id_penyakit);\n\n @PUT(\"penyakit\")\n Call<PutPenyakitResponse> editPenyakit(@Query(\"Id_penyakit\") String id_penyakit,\n @Body PutPenyakitBody putPenyakitBody);\n\n @GET(\"tipepenyakit/{page}/{count_page}\")\n Call<TipePenyakitResponse>\n getTipePenyakitList(@Path(\"page\") String page, @Path(\"count_page\") String count_page);\n\n @POST(\"multimedia\")\n Call<MultimediaPostResponse>\n postMultimedia(@Body MultimediaBody multimediaBody);\n}", "@Override \n public void run() {\n\t\tString path = Urls.URL_32;\n\t\t\n\t\tMap<String, String> map = new HashMap<String, String>();\n\t\tmap.put(\"login-name-or-mobile\", username);\n\t\tmap.put(\"pwd\", password);\n\t \tList<BasicNameValuePair> params = HttpUtils.setParams(map);\n\t \t\n\t\tMap<String, String> map2 = new HashMap<String, String>();\n\t \tmap2.put(\"Accept-Encoding\", \"gzip, deflate\");\n\t \tmap2.put(\"Accept\", \"application/json\");\n\n\t \tMap<String,String> info = new HashMap<String,String>();\n\t\tString jsonStr = \"\";\n\t\ttry {\n\t\t\tjsonStr = RequestService.getInstance().getRequest(params, path, map2);\n\t\t\t\n\t\t\tif(jsonStr==null || \"null\".equals(jsonStr) || \"\".equals(jsonStr)){\n\t\t\t\tinfo.put(\"available\", \"0\");\n\t\t\t}else{\n\t\t\t\tHttpUtils.parseJson(jsonStr, info, null);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tMessage msg = new Message(); \n\t msg.what = Constants.NETWORK_ERROR;\n\t handler.sendMessage(msg); \n\t return;\n\t\t}\n\t\t\n Message msg = new Message(); \n msg.obj = info;\n msg.what = Constants.GET_BALANCE_SUCCESS;\n handler.sendMessage(msg); \n }", "public void execute() {\n }", "private static WsbcucotizacionesExecuteResponse execute(WebService.WsbcucotizacionesExecute parameters) {\r\n WebService.Wsbcucotizaciones service = new WebService.Wsbcucotizaciones();\r\n WebService.WsbcucotizacionesSoapPort port = service.getWsbcucotizacionesSoapPort();\r\n return port.execute(parameters);\r\n }", "@Override\n protected String doInBackground(String... params){\n\n try {\n //1. Create okHttp Client object\n OkHttpClient client = new OkHttpClient();\n\n Endpoint endpoint = new Endpoint();\n\n //2. Define request being sent to the server\n\n Request request = new Request.Builder()\n .url(endpoint.getUrl())\n .header(\"Connection\", \"close\")\n .build();\n\n //3. Transport the request and wait for response to process next\n Response response = client.newCall(request).execute();\n String result = response.body().string();\n setCode(response.code());\n return result;\n }\n catch(Exception e) {\n return null;\n }\n }", "protected void execute() {\n \t\n }", "protected void execute() {\n \t\n }", "@Override\n\tpublic void execute() {\n\t\tsuper.execute();\n\n\t\t// TBD Needs rewrite for multi tenant\n\t\ttry {\t\n\t\t\tif (async == null || !async)\n\t\t\t\tupdated = Crosstalk.getInstance().refresh(customer);\n\t\t\telse {\n\t\t\t\tfinal Long id = random.nextLong();\n\t\t\t\tfinal ApiCommand theCommand = this;\n\t\t\t\tThread thread = new Thread(new Runnable() {\n\t\t\t\t @Override\n\t\t\t\t public void run(){\n\t\t\t\t \ttry {\n\t\t\t\t\t\t\tupdated = Crosstalk.getInstance().refresh(customer);\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\terror = true;\n\t\t\t\t\t\t\tmessage = e.toString();\n\t\t\t\t\t\t}\n\t\t\t\t }\n\t\t\t\t});\n\t\t\t\tthread.start();\n\t\t\t\tasyncid = \"\" + id;\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "protected void doInvocation(){\n org.omg.CORBA.portable.Delegate delegate=StubAdapter.getDelegate(\n _target);\n // Initiate Client Portable Interceptors. Inform the PIHandler that\n // this is a DII request so that it knows to ignore the second\n // inevitable call to initiateClientPIRequest in createRequest.\n // Also, save the RequestImpl object for later use.\n _orb.getPIHandler().initiateClientPIRequest(true);\n _orb.getPIHandler().setClientPIInfo(this);\n InputStream $in=null;\n try{\n OutputStream $out=delegate.request(null,_opName,!_isOneWay);\n // Marshal args\n try{\n for(int i=0;i<_arguments.count();i++){\n NamedValue nv=_arguments.item(i);\n switch(nv.flags()){\n case ARG_IN.value:\n nv.value().write_value($out);\n break;\n case ARG_OUT.value:\n break;\n case ARG_INOUT.value:\n nv.value().write_value($out);\n break;\n }\n }\n }catch(Bounds ex){\n throw _wrapper.boundsErrorInDiiRequest(ex);\n }\n $in=delegate.invoke(null,$out);\n }catch(ApplicationException e){\n // REVISIT - minor code.\n // This is already handled in subcontract.\n // REVISIT - uncomment.\n //throw new INTERNAL();\n }catch(RemarshalException e){\n doInvocation();\n }catch(SystemException ex){\n _env.exception(ex);\n // NOTE: The exception should not be thrown.\n // However, JDK 1.4 and earlier threw the exception,\n // so we keep the behavior to be compatible.\n throw ex;\n }finally{\n delegate.releaseReply(null,$in);\n }\n }", "@Override \n public void run() {\n\t\tString path = Urls.URL_14;\n\t\t\n\t\tMap<String, String> map = new HashMap<String, String>();\n\n\t \tList<BasicNameValuePair> params = HttpUtils.setParams(map);\n\n\t \tLog.i(TAG, path);\n\t\t\n\t\tApkInfoItem apk = new ApkInfoItem();\n\t\ttry {\n\t\t\tString jsonStr = RequestService.getInstance().getRequest(params, path, new HashMap<String, String>());\n\t\t \tJSONObject jsonObject = new JSONObject(jsonStr);\n\t\t \t\n\t\t\tapk.setApkPath(jsonObject.getString(\"apkPath\"));\n\t\t\tapk.setVersion(jsonObject.getString(\"apkVersion\"));\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tMessage msg = new Message();\n\t\t\tmsg.obj = apk;\n\t\t\tmsg.what = Constants.GET_UPDATEINFO_ERROR;\n\t\t\thandler.sendMessage(msg);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tMessage msg = new Message();\n\t\tmsg.obj = apk;\n\t\tmsg.what = Constants.UPDATE_CLIENT;\n\t\thandler.sendMessage(msg);\n }", "protected void execute() { \n\n double move = driveCommand.getValue();\n double turn = angleCommand.getValue();\n\n SmartDashboard.putNumber(\"move\", move);\n SmartDashboard.putNumber(\"turn\", turn);\n //add the values to the drive class\n Robot.drive.arcadeDrive(-move, turn);\n // Robot.drive.setMoveVisionAssist(move);\n // Robot.drive.setTurnVisionAssist(turn);\n }", "public static CloseableHttpResponse callAPI(HttpRequestBase httpRequest, String token)\r\n\t throws Exception {\r\n\t final StringBuilder stringBuilder = new StringBuilder();\r\n\t final String methodName = \"/callAPI\";\r\n\t \r\n\t LOGGER.info(\"Entering \"\r\n\t + stringBuilder.delete(0, stringBuilder.length())\r\n\t .append(CLASSNAME).append(methodName).toString());\r\n\t CloseableHttpResponse response = null;\r\n\t try {\r\n\t httpRequest.addHeader(OktaConstantUtils.CONTENT_TYPE,\r\n\t OktaConstantUtils.APPL_JSON);\r\n\t httpRequest.addHeader(OktaConstantUtils.AUTHORIZATION, token);\r\n\t httpRequest.addHeader(OktaConstantUtils.CHARSET, OktaConstantUtils.UTF);\r\n\t response = client.execute(httpRequest);\r\n\t LOGGER.info(\"Exiting \"\r\n\t\t\t\t\t+ stringBuilder.delete(0, stringBuilder.length()).append(CLASSNAME)\r\n\t\t\t\t\t.append(methodName).toString());\r\n\t return response;\r\n\t } \r\n\t \r\n\t catch (Exception genExp) {\r\n\t \tLOGGER.error(\"Exception \"\r\n\t \t\t + stringBuilder.delete(0, stringBuilder.length())\r\n\t \t\t .append(CLASSNAME).append(genExp.getMessage()).toString());\r\n\t \tthrow genExp;\r\n\t } \r\n\t }", "protected void execute() \n {\n //System.out.print(sharedSensors.getAverageFilteredUltrasonic());\n //if (oi.getDriveMove() + oi.getDriveRotate() > 0) {\n if (DriverStation.getInstance().getBatteryVoltage() > 8) {\n drive.arcadeDrive(oi.getDriveMove(), oi.getDriveRotate(),true, oi.getUnrestrictedDrive(), false);\n } else {\n drive.arcadeDrive(oi.getDriveMove(), oi.getDriveRotate(),true, oi.getUnrestrictedDrive(), true);\n }\n //DriverStationLCD.getInstance().println(DriverStationLCD.Line.kUser6, 1,\"\"+oi.leftTrig2.get()+\" \"+oi.rightTrig2.get());\n //}\n // System.out.println(\"drive left:\" + drive.leftMotorSpeed);\n // System.out.println(\"drive right:\" + drive.rightMotorSpeed);\n // System.out.println(\"Ultrasonic Average:\" + sharedSensors.getAverageUltrasonicDistance());\n // System.out.println(\"Ultrasonic left:\" + sharedSensors.getLeftUltrasonicDistance());\n // System.out.println(\"Ultrasonic right:\" + sharedSensors.getRightUltrasonicDistance());\n }", "public interface DailyApiInterface {\n\n// \"http://api.openweathermap.org/data/2.5/weather?\n// q=Atlanta,GA&units=imperial&appid=6b0bff18a9694faebff99ad3cec72ed2;\n\n @GET(\"data/2.5/weather\")\n Call<DailyResponse> getDailyResponse(\n @Query(\"q\") String location,\n @Query(\"units\") String units,\n @Query(\"appId\") String appid);\n}", "public interface IMasterDataService {\n\t\n\t\n\t\n\t/**\n\t * Call web service asynchronously and get Language Response. \n\t * @param context\n\t * @return List<CollectionItem>\n\t * @throws InvalidJsonError\n\t * @throws JSONException\n\t * @throws TimeOutError\n\t * @throws ParseException\n\t * @throws RequestFail\n\t * @throws IOException\n\t */\n\t\n\tpublic List<CollectionItem> executeLanguageCollection(Context context, String languageBeforSetting) \n\t\t\tthrows InvalidJsonError, JSONException, TimeOutError, ParseException, RequestFail, IOException, ConnectionError, BookingTimeOutError;\n\n\t\n\t/**\n\t * Call web service asynchronously and get Station Response.\n\t * @param context\n\t * @return List<Station>\n\t * @throws InvalidJsonError\n\t * @throws JSONException\n\t * @throws TimeOutError\n\t * @throws ParseException\n\t * @throws RequestFail\n\t * @throws IOException\n\t */\n\tpublic List<Station> executeStationCollection(Context context, String languageBeforSetting, List<OriginDestinationRule> originDestinationRules) \n\tthrows InvalidJsonError, JSONException, TimeOutError, ParseException, RequestFail, IOException, ConnectionError, BookingTimeOutError;\n\t\n\tpublic List<OriginDestinationRule> executeOriginDestinationRules(Context context, String languageBeforSetting) \n\tthrows InvalidJsonError, JSONException, TimeOutError, ParseException, RequestFail, IOException, ConnectionError, BookingTimeOutError;\n\n\tpublic GeneralSetting executeGeneralSetting(Context context, String languageBeforSetting)throws Exception;\n\n\tpublic void executeClickToCallScenario(\n\t\t\tContext context, String languageBeforSetting)\n\t\t\tthrows InvalidJsonError, JSONException, TimeOutError,\n\t\t\tParseException, RequestFail, IOException, ConnectionError, BookingTimeOutError;\n\tpublic WizardResponse executeWizard(\n\t\t\tContext context, String languageBeforSetting, String whichContext)\n\t\t\tthrows InvalidJsonError, JSONException, TimeOutError,\n\t\t\tParseException, RequestFail, IOException, ConnectionError, BookingTimeOutError;\n\t\n\tpublic HomeBannerResponse executeHomeBanner(\n\t\t\tContext context, String languageBeforSetting)\n\t\t\tthrows InvalidJsonError, JSONException, TimeOutError,\n\t\t\tParseException, RequestFail, IOException, ConnectionError, BookingTimeOutError;\n\t\n\tpublic TrainIconResponse executeTrainIcons(\n\t\t\tContext context, String languageBeforSetting)\n\t\t\tthrows InvalidJsonError, JSONException, TimeOutError,\n\t\t\tParseException, RequestFail, IOException, ConnectionError, BookingTimeOutError;\n\n\tpublic void encryptDatabase(Context context);\n\tpublic void storeDefaultData(Context context, boolean isChangeLanguage);\n\tpublic void storeGeneralSettings( Context context, String language) throws IOException, Exception;\n\tpublic MasterDataResponse executeMasterData(Context context, String languageBeforSetting)\n\t\t\tthrows InvalidJsonError, JSONException, TimeOutError,\n\t\t\tParseException, RequestFail, IOException, ConnectionError, BookingTimeOutError;\n\t\n\tpublic void insertStationMatrix(Context context, List<OriginDestinationRule> originDestinationRules);\n\tpublic void insertStations(Context context, List<Station> stations);\n\n\tpublic void cleanLastModifiedHomeBanner(Context context);\n\tpublic TrainIconResponse storeTrainIcon(Context context) throws InvalidJsonError, JSONException;\n\tpublic GeneralSettingResponse getGeneralSettingFromPackage(Context context, String language)throws Exception;\n\n\n}", "public void execute() {\n\t\t\n\t}", "void execute(final T response);", "public interface Apiservice {\n\n @POST(\"mobile/login\")\n Call<UsuarioIngreso> postusuaruio(@Body Usuario usuario);\n\n @POST(\"mobile/FetchEBCDS\")\n Call<EBCD> getEBCD(@Body Codigo codigo);\n\n @POST(\"mobile/FetchInvoiceData\")\n Call<List<FetchInvoiceData>> fetchInvoiceData(@Body Codigo codigo);\n}", "public void getDataFromApi()\n {\n\n if(methodcode.equals(\"popular\"))\n {\n ApiInterface apiServicePopular =\n ApiClient.getClient().create(ApiInterface.class);\n // second response needed\n Call<MoviesResponse> callPopular = apiServicePopular.getPopularMovies(API_KEY,\"\");\n callPopular.enqueue(new Callback<MoviesResponse>() {\n @Override\n public void onResponse(Call<MoviesResponse>call, Response<MoviesResponse> response) {\n movies = response.body().getResults();\n Toast.makeText(getApplicationContext(),\"Popular Movies Received\",Toast.LENGTH_LONG).show();\n }\n\n @Override\n public void onFailure(Call<MoviesResponse>call, Throwable t) {\n // Log error here since request failed\n Toast.makeText(getApplicationContext(),\"Error in Receiving\",Toast.LENGTH_LONG).show();\n\n }\n });\n\n }\n else if(methodcode.equals(\"nowplaying\"))\n {\n ApiInterface apiServiceNowPlay =\n ApiClient.getClient().create(ApiInterface.class);\n // second response needed\n Call<MoviesResponse> callNowPlay = apiServiceNowPlay.getNowPlayingMovies(API_KEY,\"\");\n callNowPlay.enqueue(new Callback<MoviesResponse>() {\n @Override\n public void onResponse(Call<MoviesResponse>call, Response<MoviesResponse> response) {\n movies = response.body().getResults();\n Toast.makeText(getApplicationContext(),\"Now Playing Movies Received\",Toast.LENGTH_LONG).show();\n }\n\n @Override\n public void onFailure(Call<MoviesResponse>call, Throwable t) {\n // Log error here since request failed\n Toast.makeText(getApplicationContext(),\"Error in Receiving\",Toast.LENGTH_LONG).show();\n\n }\n });\n\n }\n else if(methodcode.equals(\"toprated\"))\n {\n ApiInterface apiServiceTopRated =\n ApiClient.getClient().create(ApiInterface.class);\n // second response needed\n Call<MoviesResponse> callTopRated = apiServiceTopRated.getTopRatedMovies(API_KEY,\"\");\n callTopRated.enqueue(new Callback<MoviesResponse>() {\n @Override\n public void onResponse(Call<MoviesResponse>call, Response<MoviesResponse> response) {\n movies = response.body().getResults();\n Toast.makeText(getApplicationContext(),\"TopRated Movies Received\",Toast.LENGTH_LONG).show();\n }\n\n @Override\n public void onFailure(Call<MoviesResponse>call, Throwable t) {\n // Log error here since request failed\n Toast.makeText(getApplicationContext(),\"Error in Receiving\",Toast.LENGTH_LONG).show();\n\n }\n });\n\n }\n else if(methodcode.equals(\"upcoming\"))\n {\n ApiInterface apiServiceUpcoming =\n ApiClient.getClient().create(ApiInterface.class);\n // second response needed\n Call<MoviesResponse> callUpcoming = apiServiceUpcoming.getPopularMovies(API_KEY,\"\");\n callUpcoming.enqueue(new Callback<MoviesResponse>() {\n @Override\n public void onResponse(Call<MoviesResponse>call, Response<MoviesResponse> response) {\n movies = response.body().getResults();\n Toast.makeText(getApplicationContext(),\"Upcoming Movies Received\",Toast.LENGTH_LONG).show();\n }\n\n @Override\n public void onFailure(Call<MoviesResponse>call, Throwable t) {\n // Log error here since request failed\n Toast.makeText(getApplicationContext(),\"Error in Receiving\",Toast.LENGTH_LONG).show();\n\n }\n });\n }\n else if(methodcode.equals(\"discover\"))\n {\n ApiInterface apiServiceDiscover =\n ApiClient.getClient().create(ApiInterface.class);\n // second response needed\n Call<MoviesResponse> callDiscover = apiServiceDiscover.getDiscoveredMovies(API_KEY,sortbydata,genredata,yeardata,\"\");\n callDiscover.enqueue(new Callback<MoviesResponse>() {\n @Override\n public void onResponse(Call<MoviesResponse>call, Response<MoviesResponse> response) {\n movies = response.body().getResults();\n Toast.makeText(getApplicationContext(),\"Searched Movies Received\",Toast.LENGTH_LONG).show();\n }\n\n @Override\n public void onFailure(Call<MoviesResponse>call, Throwable t) {\n // Log error here since request failed\n Toast.makeText(getApplicationContext(),\"Error in Receiving\",Toast.LENGTH_LONG).show();\n\n }\n });\n\n }\n\n }", "public static void main(String[] args) throws ApiException {\n String basePath = PropertyAccess.basePath();\n\n ApiClient apiClient = new ApiClient();\n if (basePath != null) {\n apiClient.setBasePath(basePath);\n }\n apiClient.setApiKey(PropertyAccess.apiKey());\n\n CloudApi cloudApi = new CloudApi(apiClient);\n\n System.out.println(\"HARDWARE\");\n cloudApi.findHardware(null).forEach(System.out::println);\n\n System.out.println(\"LOCATIONS\");\n cloudApi.findLocations(null).forEach(System.out::println);\n\n System.out.println(\"IMAGES\");\n cloudApi.findImages(null).forEach(System.out::println);\n\n }", "public interface DatosAPI\n{\n @GET(\"kspt-6t6c.json\")\n Call<List<CentrosAyuda>> obtenerLista();\n}", "ExecutionResult<Void> execute();", "@Test\n\tpublic void test_001() {\n\t\tfinal String EXPECTED_RESPONSE = \"{\\\"hello\\\": \\\"world\\\"}\";\n\t\tJdProgramRequestParms.put(\"U$FUNZ\", new StringValue(\"URL\"));\n\t\tJdProgramRequestParms.put(\"U$METO\", new StringValue(\"HTTP\"));\n\t\tJdProgramRequestParms.put(\"U$SVARSK\", new StringValue(\"http://www.mocky.io/v2/5185415ba171ea3a00704eed\"));\n\n\t\tList<Value> responseParms = JdProgram.execute(javaSystemInterface, JdProgramRequestParms);\n\t\tassertTrue(responseParms.get(2).asString().getValue().equals(EXPECTED_RESPONSE));\n\t}", "public void run() \r\n\t\t{\n\r\n\t\t\tMyNameValuePair NameValuePair1 = new MyNameValuePair(\"app\", \"api\");\r\n\t\t\tMyNameValuePair NameValuePair2 = new MyNameValuePair(\"mod\",\r\n\t\t\t\t\t\"Notifytion\");\r\n\t\t\tMyNameValuePair NameValuePair3 = new MyNameValuePair(\"act\",\r\n\t\t\t\t\t\"get_notify_by_count\");\r\n\t\t\tMyNameValuePair NameValuePair4 = new MyNameValuePair(\"oauth_token\",\r\n\t\t\t\t\tac.getOauth_token());\r\n\t\t\tMyNameValuePair NameValuePair5 = new MyNameValuePair(\r\n\t\t\t\t\t\"oauth_token_secret\", ac.getOauth_token_secret());\r\n\r\n\t\t\tString result = MHttpClient.post(ThinkSNSApplication.baseUrl,\r\n\t\t\t\t\tNameValuePair1, NameValuePair2, NameValuePair3,\r\n\t\t\t\t\tNameValuePair4, NameValuePair5);\r\n\t\t\tSystem.out.println(\"GetNotifyThread结果:\" + result);\r\n\r\n\t\t\tinfos = format(result);\r\n\t\t\t\r\n\t\t}", "public void execute () {\n // Gets values of Xbox joysticks from RobotContainer\n leftSpeed = robotcontainer.getXboxAxis(Constants.XBOX_LEFT_Y);\n rightSpeed = robotcontainer.getXboxAxis(Constants.XBOX_RIGHT_Y);\n\n if (Math.abs(leftSpeed) > Constants.DRV_DEADZONE || Math.abs(rightSpeed) > Constants.DRV_DEADZONE) {\n drive.drivePercentOutput(leftSpeed, rightSpeed);\n } \n\n }", "public static void main(String[] args) {\n\t\t\n\t\tRetrofit retrofit;\n\t\tLibroCallback libroCallback = new LibroCallback();\n\t\tLibroDeleteCallback libroDeleteCallback = new LibroDeleteCallback();\n\t\tLibroListCallback libroListCallback = new LibroListCallback();\n\t\tLibroPostCallback libroPostCallback = new LibroPostCallback();\n\t\tLibroPutCallback libroPutCallback = new LibroPutCallback();\n\t\tLibroMinMaxListCallback libroMinMaxListCallback = new LibroMinMaxListCallback();\n\t\tScanner sc = new Scanner(System.in);\n\t\tint opcion, id, minpag, maxpag;\n\t\tString tit, numpag;\n\t\t\n\t\tretrofit = new Retrofit.Builder()\n\t\t\t\t\t\t\t .baseUrl(SERVER_URL)\n\t\t\t\t\t\t\t .addConverterFactory(GsonConverterFactory.create())\n\t\t\t\t\t\t\t .build();\n\t\t\n\t\tLibroInterface libroInter = retrofit.create(LibroInterface.class);\n\n\t\tdo{\n\t\t\tdo\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Selecciona una opcion: \\n\");\n\t\t\t\tSystem.out.println(\"0.\tSalir\");\n\t\t\t\tSystem.out.println(\"1.\tObtener listado de libros\");\n\t\t\t\tSystem.out.println(\"2.\tObtener libro por id\");\n\t\t\t\tSystem.out.println(\"3.\tBorrar libro\");\n\t\t\t\tSystem.out.println(\"4.\tAñadir libro\");\n\t\t\t\tSystem.out.println(\"5.\tActualizar libro\");\n\t\t\t\tSystem.out.println(\"6.\tBuscar libro por paginas: \\n\");\n\n\t\t\t\topcion = sc.nextInt();\n\t\t\t\tif(opcion < 0 || opcion > 6)\n\t\t\t\t\tSystem.out.println(\"¡Solo entre 1 o 4, o 0 para salir!\");\n\t\t\t}while(opcion < 0 || opcion > 6);\n\n\t\t\tswitch (opcion){\n\n\t\t\t\tcase 1:\n\n\t\t\t\t\tSystem.out.println(\"Listado de libros: \\n\");\n\t\t\t\t\tlibroInter.getListaLibros().enqueue(libroListCallback);\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 2:\n\n\t\t\t\t\tSystem.out.println(\"Introduce el id del libro a mostrar: \");\n\t\t\t\t\tid = sc.nextInt();\n\t\t\t\t\tlibroInter.getLibro(id).enqueue(libroCallback);\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 3:\n\t\t\t\t\tSystem.out.println(\"Introduce el id del libro a borrar: \");\n\t\t\t\t\tid = sc.nextInt();\n\t\t\t\t\tlibroInter.deleteLibro(id).enqueue(libroDeleteCallback);\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 4:\n\t\t\t\t\tSystem.out.println(\"Introduce el los datos del nuevo libro: \\n\");\n\t\t\t\t\tSystem.out.println(\"Numero de Paginas: \");\n\t\t\t\t\tnumpag = sc.next();\n\t\t\t\t\tsc.nextLine();\n\t\t\t\t\tSystem.out.println(\"Titulo: \");\n\t\t\t\t\ttit = sc.nextLine();\n\t\t\t\t\tlibroInter.postLibro(new Libro(0, tit, numpag)).enqueue(libroPostCallback);\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 5:\n\t\t\t\t\tSystem.out.println(\"Introduce los datos y la id del libro a actualizar: \\n\");\n\t\t\t\t\tSystem.out.println(\"ID: \");\n\t\t\t\t\tid = sc.nextInt();\n\t\t\t\t\tSystem.out.println(\"Numero de Paginas: \");\n\t\t\t\t\tnumpag = sc.next();\n\t\t\t\t\tsc.nextLine();\n\t\t\t\t\tSystem.out.println(\"Titulo: \");\n\t\t\t\t\ttit = sc.nextLine();\n\t\t\t\t\tlibroInter.putLibro(new Libro(id, tit, numpag)).enqueue(libroPutCallback);\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 6:\n\t\t\t\t\tSystem.out.println(\"Introduce el maximo de paginas: \");\n\t\t\t\t\tSystem.out.println(\"Minimo: \");\n\t\t\t\t\tminpag = sc.nextInt();\n\t\t\t\t\tSystem.out.println(\"Maximo: \");\n\t\t\t\t\tmaxpag = sc.nextInt();\n\t\t\t\t\tlibroInter.getMinMaxPagLibro(minpag, maxpag).enqueue(libroMinMaxListCallback);\n\t\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}while(opcion != 0);\n\n\t}", "@Override\n protected void run(final Deque<String> params) throws Exception {\n LinkedList<String> arguments = new LinkedList<>();\n Map<Option, String> options =\n parseOptions(params, Option.class, arguments);\n\n if (options.isEmpty())\n throw new IllegalArgumentException(EXEC.help());\n\n String address = options.get(Option.DB_ADDRESS);\n String port = options.get(Option.DB_PORT);\n String methodName = options.get(Option.METHOD);\n\n if (null == address)\n throw new IllegalAccessException(\n \"The DB address cannot be null.\");\n if (null == port)\n throw new IllegalArgumentException(\n \"The DB port cannot be null.\");\n if (null == methodName) {\n // List all methods.\n System.out.println(\"No method specified. \"\n + \"The available method are:\\n\");\n for (Method method :\n ConfigurationService.class.getDeclaredMethods()) {\n if (validateMethod(method)) {\n System.out.println(\"\\t\" + printMethod(method));\n }\n }\n return;\n }\n\n // Parse the method arguments.\n List<Pair<OvsDbConverter.Entry, Object>> args =\n parseArguments(arguments);\n\n // Get the method corresponding to the name and argument list.\n Method method = getMethod(methodName, args);\n\n // Create the OVS-DB client.\n OvsDbDataClient client = new OvsDbDataClient();\n\n // Connect to the client.\n client.connect(address, port);\n try {\n\n log.info(\"Invoking method {} with {} arguments\", methodName,\n args);\n\n Object result = method.invoke(client, getValues(\n args, client.getNode()));\n\n log.info(\"Result:\\n{}\", result);\n\n } catch (final Throwable ex) {\n log.error(\"An error occurred while executing the OVS-DB \"\n + \"command \", ex);\n } finally {\n client.disconnect();\n }\n }", "@Override\n protected String doInBackground(String... strings) {\n try {\n Client c = new Client(Constants.URL_PROGNOSISCALCULATOR);\n c.setLongTimeout();\n request = strings[0];\n String response = c.sendPostJSON(strings[0]);\n\n ArrayList<PrognosisCalculationResult> items = new ArrayList<>();\n if(response.charAt(0) == '{') {\n JSONObject error = new JSONObject(response);\n if(error.has(\"Error Description\")) {\n this.error = error.getString(\"Error Description\");\n }\n } else {\n JSONArray array = new JSONArray(response);\n for (int i = 0; i < array.length(); i++) {\n JSONObject o = array.getJSONObject(i);\n PrognosisCalculationItem p = new PrognosisCalculationItem(o.getJSONObject(\"prognosis\"));\n Service s = new Service(o.getJSONObject(\"service\"));\n items.add(new PrognosisCalculationResult(p, s));\n }\n this.items = items;\n }\n return null;\n } catch (IOException e) {\n e.printStackTrace();\n } catch (JSONException e) {\n e.printStackTrace();\n }\n return null;\n }", "public static void main(String[] args) {\n\t\tDDEDataDownloadHelper ins = new DDEDataDownloadHelper();\n\t\tins.fetchDataFromWeb(\"600175\");\n\t}", "public interface PokeApiService {\n\n @GET(\"qvqk-dtmf.json\")\n Call<ArrayList<ViasRespuesta>> obtenerListaPokemon();\n}", "public final void run() {\n AppMethodBeat.i(108148);\n if (q.a(cVar2.aBx(), jSONObject2, (com.tencent.mm.plugin.appbrand.s.q.a) cVar2.aa(com.tencent.mm.plugin.appbrand.s.q.a.class)) == b.FAIL_SIZE_EXCEED_LIMIT) {\n aVar2.BA(\"convert native buffer parameter fail. native buffer exceed size limit.\");\n AppMethodBeat.o(108148);\n return;\n }\n String CS = j.CS(jSONObject2.optString(\"url\"));\n Object opt = jSONObject2.opt(\"data\");\n String optString = jSONObject2.optString(FirebaseAnalytics.b.METHOD);\n if (bo.isNullOrNil(optString)) {\n optString = \"GET\";\n }\n if (TextUtils.isEmpty(CS)) {\n aVar2.BA(\"url is null\");\n AppMethodBeat.o(108148);\n } else if (URLUtil.isHttpsUrl(CS) || URLUtil.isHttpUrl(CS)) {\n byte[] bArr = new byte[0];\n if (opt != null && d.CK(optString)) {\n if (opt instanceof String) {\n bArr = ((String) opt).getBytes(Charset.forName(\"UTF-8\"));\n } else if (opt instanceof ByteBuffer) {\n bArr = com.tencent.mm.plugin.appbrand.r.d.q((ByteBuffer) opt);\n }\n }\n synchronized (d.this.ioA) {\n try {\n if (d.this.ioA.size() >= d.this.ioB) {\n aVar2.BA(\"max connected\");\n ab.i(\"MicroMsg.AppBrandNetworkRequest\", \"max connected mRequestTaskList.size():%d,mMaxRequestConcurrent:%d\", Integer.valueOf(d.this.ioA.size()), Integer.valueOf(d.this.ioB));\n }\n } finally {\n while (true) {\n }\n AppMethodBeat.o(108148);\n }\n }\n } else {\n aVar2.BA(\"request protocol must be http or https\");\n AppMethodBeat.o(108148);\n }\n }", "public void execute(){\n\t\t\n\t}", "public static void main(String[] args) throws AxisFault, RemoteException {\n\t\tServicioDenunciaStub oStub = new ServicioDenunciaStub();\n\t\t// AGREGA\n\t\tDenunciaVO oDenunciaVO = new DenunciaVO();\n\t\toDenunciaVO.setTipo(\"Robo\");\n\t\toDenunciaVO.setDenuncia(\"Tan robandoooo\");\n\t\toDenunciaVO.setCiudad(\"temuco\");\n\t\toDenunciaVO.setSector(\"Las Quilas\");\n\t\toDenunciaVO.setFecha_creacion(\"12/10/2014\");\n\t\toDenunciaVO.setFecha_modificacion(\"13/10/2014\");\n\t\toDenunciaVO.setUsuario_creador(\"Cachulo\");\n\t\toDenunciaVO.setUsuario_modificador(\"Admin\");\n\t\toDenunciaVO.setFecha_user_modifica(\"12/12/2014\");\n\t\toDenunciaVO.setDesactivar(0);\n\t\t\n\t\t//AgregarDenunciaResponse objResponse = oStub.agregarDenuncia();\n\t\tAgregarDenuncia oAgregarDenuncia = new AgregarDenuncia();\n\t\toAgregarDenuncia.setODenunciaVO(oDenunciaVO);\n\t\toAgregarDenuncia.setCiudad(\"temuco\");\n\t\t\n\t\tAgregarDenunciaResponse objResponse = oStub.agregarDenuncia(oAgregarDenuncia);\n\t\tSystem.out.println(objResponse.get_return());\n\t\t\n\t\t\n\t}", "@Override\n\t\tprotected GetDeviceInfoRes doInBackground(Void... params) {\n\t\t\treturn JsonOA.getDeviceInfo();\n\t\t}", "protected void execute() {\n\n\t}", "protected void execute() {\n \tRobot.driveTrain.driveByArcade(_speed, 0);\n }" ]
[ "0.6486534", "0.62579775", "0.61372685", "0.5939997", "0.5934713", "0.58958167", "0.5796041", "0.5770591", "0.5696233", "0.56422687", "0.5632211", "0.5534038", "0.54720175", "0.54319954", "0.54208046", "0.5405774", "0.53977007", "0.53355855", "0.5334548", "0.5334548", "0.5334548", "0.5334548", "0.5334548", "0.5334548", "0.5334548", "0.53261435", "0.53255385", "0.5295187", "0.5265888", "0.5242557", "0.52281046", "0.52281046", "0.52281046", "0.52281046", "0.521915", "0.5200117", "0.5191274", "0.5190638", "0.5185738", "0.5179475", "0.5161084", "0.5156822", "0.5151118", "0.5146504", "0.51402706", "0.51312", "0.51246125", "0.5123085", "0.5118932", "0.51022464", "0.51022464", "0.51022464", "0.50995535", "0.50881886", "0.5086343", "0.5072982", "0.50608444", "0.5059397", "0.5051724", "0.50442845", "0.5038927", "0.5035342", "0.503422", "0.5033016", "0.5029896", "0.50287044", "0.50283337", "0.50265247", "0.5020907", "0.5018834", "0.5018834", "0.5015821", "0.5014176", "0.50054514", "0.50017226", "0.50002617", "0.499926", "0.49899474", "0.49829125", "0.49816063", "0.4979847", "0.49789163", "0.49741745", "0.4973177", "0.4967872", "0.49645472", "0.49633655", "0.49587902", "0.4956242", "0.4955865", "0.49548116", "0.49508822", "0.4950786", "0.4947256", "0.4946977", "0.49430114", "0.49339348", "0.49334082", "0.49321544", "0.49251127" ]
0.56694627
9
Executes the given call, synchronously.
@Nonnull <T> T execute(Function<? super DodonaClient, T> call, ProgressIndicator indicator);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Nullable\n public <RT> RT doSynchronousCall(final Call<RT> call) {\n try {\n return call.execute().body();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return null;\n }", "public static <T> T executeSync(Call<T> call) {\n try {\n Response<T> response = call.execute();\n if (response.isSuccessful()) {\n return response.body();\n } else {\n throw new RuntimeException(response.errorBody().string());\n }\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }", "@SuppressWarnings(\"rawtypes\")\n private void synchronousInvokeCallback(Callable call) {\n\n Future future = streamingSlopResults.submit(call);\n\n try {\n future.get();\n\n } catch(InterruptedException e1) {\n\n logger.error(\"Callback failed\", e1);\n throw new VoldemortException(\"Callback failed\");\n\n } catch(ExecutionException e1) {\n\n logger.error(\"Callback failed during execution\", e1);\n throw new VoldemortException(\"Callback failed during execution\");\n }\n\n }", "@Override\n public void callSync() {\n\n }", "public <T> T callWithSync(final Callable<T> callable) throws Exception {\n\t\tsynchronized (this.monitor) {\n\t\t\treturn callable.call();\n\t\t}\n\t}", "@Nonnull\r\n\tpublic static <T> Observable<T> invokeAsync(\r\n\t\t\t@Nonnull final Callable<? extends T> call) {\r\n\t\treturn invokeAsync(call, scheduler());\r\n\t}", "@Nonnull\n\t<T> DodonaFuture<T> execute(Function<? super DodonaClient, ? extends T> call);", "public void call(Runnable task) {\n if (asyncLogging) {\n executor.submit(task);\n } else {\n task.run();\n }\n }", "public abstract boolean dispatch(final CallRunner callTask) throws InterruptedException;", "@SuppressWarnings(\"unchecked\")\n public <T> T execute() {\n return (T) fetchResponse(getCallToExecute());\n }", "void call();", "public void execute() {\n if (hasError())\n return;\n\n runLocally();\n runRemotely();\n }", "public void doCall(){\n CalculatorPayload operation = newContent();\n\n ((PBFTClient)getProtocol()).syncCall(operation);\n }", "<T> AsyncResult<T> startProcess(Callable<T> task, AsyncCallback<T> callback);", "protected synchronized Object call(final String method, final Object... params) throws XmlRpcException {\r\n\r\n\t\tLOGGER.finest(\"Executing call \" + method + \" \" + Arrays.toString(params));\r\n\t\treturn client.execute(method, params);\r\n\t}", "void execute(final Callback callback);", "T call() throws EvalException, InterruptedException;", "<T> AsyncResult<T> startProcess(Callable<T> task);", "@Override\n public String call() throws Exception {\n if (!iAmSpecial) {\n blocker.await();\n }\n ran = true;\n return result;\n }", "public abstract void call();", "@Nonnull\r\n\tpublic static <T> Observable<T> invokeAsync(\r\n\t\t\t@Nonnull final Callable<? extends T> call,\r\n\t\t\t@Nonnull final Scheduler pool) {\r\n\t\treturn new Observable<T>() {\r\n\t\t\t@Override\r\n\t\t\t@Nonnull \r\n\t\t\tpublic Closeable register(@Nonnull final Observer<? super T> observer) {\r\n\t\t\t\treturn pool.schedule(new Runnable() {\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tobserver.next(call.call());\r\n\t\t\t\t\t\t\tobserver.finish();\r\n\t\t\t\t\t\t} catch (Throwable ex) {\r\n\t\t\t\t\t\t\tobserver.error(ex);\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\t}", "@Override\n public T call() {\n try {\n return callable.call();\n }\n catch (Throwable e) {\n Log.e(\"Scheduler\", \"call code exception: %s\", e);\n return null;\n }\n }", "private static void doCallAction(\n final Call call,\n final CallAction callAction)\n {\n new Thread()\n {\n public void run()\n {\n try\n {\n List<Call> calls;\n CallGroup group = call.getCallGroup();\n if(group != null)\n {\n calls = group.getCalls();\n }\n else\n {\n calls = new Vector<Call>();\n calls.add(call);\n }\n Call tmpCall;\n Iterator<? extends CallPeer> callPeers;\n CallPeer callPeer;\n\n for(int i = 0; i < calls.size(); ++i)\n {\n tmpCall = calls.get(i);\n final OperationSetBasicTelephony<?> opSet =\n tmpCall.getProtocolProvider()\n .getOperationSet(OperationSetBasicTelephony.class);\n callPeers = tmpCall.getCallPeers();\n while(callPeers.hasNext())\n {\n callPeer = callPeers.next();\n switch(callAction)\n {\n case ANSWER:\n if(callPeer.getState() ==\n CallPeerState.INCOMING_CALL)\n {\n opSet.answerCallPeer(callPeer);\n }\n break;\n case HANGUP:\n opSet.hangupCallPeer(callPeer);\n break;\n }\n }\n }\n\n }\n catch(OperationFailedException e)\n {\n logger.info(\n \"Failed to answer/hangup call via global shortcut\",\n e);\n }\n }\n }.start();\n\n\n }", "public Object call() throws Exception {\n return this.call();\n }", "@Override\n public void run()\n {\n final long expectedTimeBetweenCalls = TimeUnit.SECONDS.toMillis(1) / MAX_EXPECTED_EXECUTIONS_PER_SECOND;\n\n // Calculate the next call time, the first time should be immediate\n long nextCallTime = System.currentTimeMillis();\n\n // Execute the operation the required number of times\n for(int i = 0; i < NUM_EXECUTIONS; i++)\n {\n // Wait until the next call must be sent\n while(System.currentTimeMillis() < nextCallTime);\n\n // TODO Compute latency for each operation in milliseconds\n\n // Execute the operation, it will sleep for 10 milliseconds\n syncOpSimulator.executeOp();\n\n // TODO Record latency into histogram\n\n // TODO Compute accumulated latency and record it\n\n // Calculate the next time to call execute op\n nextCallTime += expectedTimeBetweenCalls;\n }\n\n finished = true;\n }", "T call(int callTimeout) throws Exception;", "@Override\n public void execute() throws EngineException {\n Object target = JavaReflectionUtil.getObject(this.target, \n callStatement.getEntries().subList(1,\n callStatement.getEntries().size() - 1));\n this.getParent().setResult(executeMethod(target, callStatement));\n pop();\n }", "@Override\n\tpublic void call() {\n\t\t\n\t}", "public void makeCall() {\n\n }", "public void execute() {\n\t\tlaunch();\n\t}", "public void execute() {\n execute0();\n }", "V call() throws StatusRuntimeException;", "@SuppressWarnings(\"unchecked\")\n public void execute() {\n execute(null, null);\n }", "private void doRemoteCall() {\n\n // Create the intent used to identify the bound service\n final Intent remoteBoundIntent = new Intent(this, MyRemoteBoundService.class);\n\n // Lets get a reference to it (asynchronously, hence the ServiceConnection object)\n bindService(remoteBoundIntent, new ServiceConnection() {\n @Override\n public void onServiceConnected(ComponentName name, IBinder service) {\n\n try {\n // Let's call it!\n (MyBoundServiceContract.Stub.asInterface(service)).doSomething(10);\n // We're done. Free the reference to the service\n unbindService(this);\n\n } catch (RemoteException e) {\n e.printStackTrace();\n }\n }\n\n @Override\n public void onServiceDisconnected(ComponentName name) {\n // Called upon unbind, just in case we need some cleanup\n }\n }, Context.BIND_AUTO_CREATE);\n }", "public static <V> V execute(String context, String uniqueLockId, String operationName, Callable<V> callable) throws Exception {\n String uniqueLockResource = getUniqueLockResource(context, uniqueLockId);\n Lock lock = getLock(uniqueLockResource);\n return LockUtils.executeInLock(uniqueLockResource, \"\", operationName, lock, callable);\n }", "RESPONSE_TYPE doSync(final RequestImpl _requestImpl) throws Exception;", "ExecutionResult<Void> execute();", "public void execute(){\n\t\tnew PayCarOrderTask().execute();\n\t}", "void execute(Handler handler, Callback callback);", "static void perform_call(String passed){\n\t\tint type = type_of_call(passed);\n\t\tswitch(type){\n\t\tcase 1:\n\t\t\tcall_without_condition(passed);\n\t\t\tbreak;\n\t\t}\n\t}", "@Override\n public void call(Void aVoid) {\n\n }", "public void dispatchCall(Call call) {\n\t\t/*\n\t\t * Try to route call to an employee with minimal rank\n\t\t */\n\t\tEmployee emp = getHandlerForCall(call);\n\t\tif(emp != null) {\n\t\t\temp.receiveCall(call);\n\t\t\tcall.setHandler(emp);\n\t\t}else {\n\t\t\t/*\n\t\t\t * Place the call into corresponding call\n\t\t\t * queue according to it's rank\n\t\t\t */\n\t\t\tcall.reply(\"Please wait for free employee to reply\");\n\t\t\tcallQueues.get(call.getRank().getValue()).add(call);\n\t\t}\n\t}", "public void runInExecutor() {\n this.executor.execute(this.callback);\n }", "protected ResultHolder<S, T> handleASyncServiceCall() {\n\n\t\t// Check we have a service action\n\t\tServiceAction action = getServiceAction();\n\t\tif (action == null) {\n\t\t\tthrow new IllegalStateException(\"No service action provided for polling.\");\n\t\t}\n\n\t\t// Generate a cache key so the polling result can be held\n\t\tif (!isUseCachedResult()) {\n\t\t\t//Generate a key\n\t\t\tsetServiceCacheKey(generateCacheKey());\n\t\t\t// Clear previous result\n\t\t\tsetServiceResult(null);\n\t\t}\n\n\t\t// Check we have a cache key\n\t\tString key = getServiceCacheKey();\n\t\tif (key == null) {\n\t\t\tthrow new IllegalStateException(\"No cache key provided for polling.\");\n\t\t}\n\n\t\t// Start Service action (will return result if already cached)\n\t\ttry {\n\t\t\tResultHolder result = SERVICE_HELPER.handleAsyncServiceCall(getServiceCache(), key, getServiceCriteria(), action);\n\t\t\tsetServiceRunning(true);\n\t\t\treturn result;\n\t\t} catch (RejectedTaskException e) {\n\t\t\t// Could not start service (usually no threads available). Try and start on the next poll.\n\t\t\tLOG.info(\"Could not start service in pool [\" + getServiceThreadPool() + \"]. Will try next poll.\");\n\t\t\tsetServiceRunning(false);\n\t\t\treturn null;\n\t\t}\n\t}", "@Api(1.1)\n public Response execute() throws HaloNetException {\n return mBuilder.mClient.request(mRequest);\n }", "private void Perform_CALL() throws RuntimeException\n {\n PCToStack();\n \n int k = Utils.GetOperand_XXXXXXX11111XXX1(mMBR);\n mPC = k + mMBR2;\n \n if (PC_BIT_SIZE == 22)\n clockTick();\n clockTick();\n clockTick();\n clockTick();\n \n return;\n }", "CompletableFuture<CalculationResult> goAsync(GoCommand goCommand);", "T call( @Nonnull final Object... args );", "public void callit();", "public void execute() {\n\t\t/* Create a new thread and kick it off */\n\t\tThread tempThread = new Thread(exec, \"ROSpec Executer\");\n\t\ttempThread.start();\n\t}", "public void processCall() {\n\t\tif (call == null)\n\t\t\treturn;\n\n\t\tString msg = new StringBuffer(\"Call processed on: \").append(new Date()).append(\" by: \")\n\t\t\t\t.append(CallCenterWorker.this.name).append(\" call length: \")\n\t\t\t\t.append(CallCenterWorker.this.call.getLenght()).toString();\n\t\tSystem.out.println(msg);\n\t\tCallCenterWorker.this.call = null;\n\t}", "public final void run() {\n final long contextID = Nodex.instance.getContextID();\n Runnable runner = new Runnable() {\n public void run() {\n try {\n final T result = execute();\n NodexInternal.instance.executeOnContext(contextID, new Runnable() {\n public void run() {\n completionHandler.onEvent(new Completion(result));\n }\n });\n } catch (final Exception e) {\n NodexInternal.instance.executeOnContext(contextID, new Runnable() {\n public void run() {\n completionHandler.onEvent(new Completion(e));\n }\n });\n } catch (Throwable t) {\n //Not much we can do, just log it\n t.printStackTrace(System.err);\n }\n }\n };\n\n NodexInternal.instance.executeInBackground(runner);\n }", "@Override\n\tpublic void run() {\n\t\tRequestBody body = RequestBody.create(this.jsonType, this.contents);\n\t\tRequest request = new Request.Builder()\n\t\t\t.url(this.serverURL)\n\t\t\t.post(body)\n\t\t\t.build();\n\t\t\n\t\ttry {\n\t\t\tResponse response = client.newCall(request).execute();\n\t\t\tString str = response.body().string();\n\t\t\t//logger.log(Level.INFO, \n\t\t\t//\t\tString.format(\"DEBUG postCallInfoToServerTask succeed: %s\", str));\n\t\t} catch (IOException e) {\n\t\t\tNetProphetLogger.logError(\"PostCallInfoTask.run\", e.toString());\n\t\t}\n\t}", "public void execute();", "public void execute();", "public void execute();", "public void execute();", "@Override\n\tpublic Integer call() throws Exception {\n\t\t\n\t\tTimeUnit.SECONDS.sleep(1);\n\t\treturn 2;\n\t}", "@SuppressWarnings({\"unused\", \"unchecked\"})\n public void execute(IN... ins) {\n asyncTask.execute(ins);\n }", "protected Object execScript(String call) {\r\n if (call==null||call.length()==0)\r\n return null;\r\n Desktop desktop = getDesktop();\r\n Object client = desktop.getClient();\r\n Doc doc = desktop.getDoc();\r\n \r\n int left = call.indexOf('(');\r\n String name = call.substring(0, left);\r\n String args = call.substring(left+1, call.length()-1);\r\n \r\n try {\r\n Object[] params;\r\n if (args.trim().length()==0)\r\n params = null;\r\n else\r\n params = Doc.parseParameters(doc, this, args);\r\n Method m = Doc.findMethod(client, name, params);\r\n return Doc.invokeMethod(m, client, params);\r\n } catch (OxyException e) {\r\n Desktop.warn(\"error invoking method \"+name+\" with args: \"+args, e);\r\n return null;\r\n }\r\n }", "@Override\n\tpublic void execute() {\n\t\tsuper.execute();\n\n\t\t// TBD Needs rewrite for multi tenant\n\t\ttry {\t\n\t\t\tif (async == null || !async)\n\t\t\t\tupdated = Crosstalk.getInstance().refresh(customer);\n\t\t\telse {\n\t\t\t\tfinal Long id = random.nextLong();\n\t\t\t\tfinal ApiCommand theCommand = this;\n\t\t\t\tThread thread = new Thread(new Runnable() {\n\t\t\t\t @Override\n\t\t\t\t public void run(){\n\t\t\t\t \ttry {\n\t\t\t\t\t\t\tupdated = Crosstalk.getInstance().refresh(customer);\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\terror = true;\n\t\t\t\t\t\t\tmessage = e.toString();\n\t\t\t\t\t\t}\n\t\t\t\t }\n\t\t\t\t});\n\t\t\t\tthread.start();\n\t\t\t\tasyncid = \"\" + id;\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\r\n\tpublic ResultSet call() throws Exception {\n\t\tif (statement.execute()) {\r\n\t\t\tpool.checkIn(conn);\r\n\t\t\treturn statement.getResultSet();\r\n\t\t}\r\n\t\tpool.checkIn(conn); // Release the connection back to the pool\r\n\t\treturn null;\r\n\t}", "Future_<V> submit(Callable_<V> task);", "@Override\n\tpublic Void call() throws Exception {\n\t\tlong money = ThreadLocalRandom.current().nextLong(0,21);\n\t\tUtility.p(callType + \" processing \" + money);\n\t\ttry {\n\t\tswitch ( callType ){\n\t\tcase myAccountYourAccount:\n\t\t\tlock.transferMoneyBad(myAccount,yourAccount,money);\n\t\t\tUtility.p(\"result myAccount:\" + myAccount );\n\t\t\tUtility.p(\"result yourAccount:\" + yourAccount);\n\t\t\tbreak;\n\t\tcase yourAccountMyAccount:\n\t\t\tlock.transferMoneyBad(yourAccount,myAccount,money);\n\t\t\tUtility.p(\"result yourAccount:\" + yourAccount);\n\t\t\tUtility.p(\"result myAccount:\" + myAccount );\n\t\t\tbreak;\n\t\tcase myAccountYourAccountHash:\n\t\t\tlock.transferMoney(myAccount,yourAccount,money);\n\t\t\tUtility.p(\"result myAccount:\" + myAccount );\n\t\t\tUtility.p(\"result yourAccount:\" + yourAccount);\n\t\t\tbreak;\n\t\tcase yourAccountMyAccountHash:\n\t\t\tlock.transferMoney(yourAccount,myAccount,money);\n\t\t\tUtility.p(\"result yourAccount:\" + yourAccount);\n\t\t\tUtility.p(\"result myAccount:\" + myAccount );\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tUtility.p(\"illegal type:\" + callType);\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\treturn null;\n\t}finally {\n\t\tUtility.p(\"exiting\");\n\t}\n\t}", "@Override\n public void execute() {\n Task<Void> task = new Task<Void>() {\n @Override\n protected Void call() throws Exception {\n exportData();\n return null;\n }\n\n @Override\n protected void succeeded(){\n callback.onSuccess();\n super.succeeded();\n }\n\n @Override\n protected void failed(){\n callback.onFail(this.getException());\n super.failed();\n }\n };\n new Thread(task).start();\n }", "public void executeASync (ProcessInfo pi)\r\n\t {\r\n\t }", "public void run() {\n try {\n System.out.println(\"Calling Process\");\n processRequest();\n\n } catch (Exception e) {\n System.out.println(\"Run Exception\" + e);\n }\n\n }", "private void executeConcurrently() {\n String[] commandArgs = SysLib.stringToArgs(command);\n prevPID = SysLib.exec(commandArgs); //run command\n command = \"\"; //clear command\n }", "@SuppressWarnings({\"unused\", \"unchecked\"})\n public void execute(Executor executor, IN... ins) {\n asyncTask.executeOnExecutor(executor, ins);\n }", "@Override\n\tpublic Response call() throws Exception {\n\t\tClientResponse response = callWebService(this.spaceEntry);\n\t\tthis.transId = (int) response.getEntity(Integer.class);\n\t\tresponse.close();\n\t\t/*wait for web service to provide tuple Object result*/\n\t\tawaitResult();\n\t\t\n\t\t/*return result*/\n\t\treturn result;\n\t}", "public static <T> T call(Function<CaseNotifierServiceGrpc.CaseNotifierServiceBlockingStub, T> methodToCall){\n ManagedChannel channel = null;\n try{\n channel = ManagedChannelBuilder.forAddress(\"192.168.1.91\", 8080).usePlaintext().build();\n CaseNotifierServiceGrpc.CaseNotifierServiceBlockingStub stub = CaseNotifierServiceGrpc.newBlockingStub(channel);\n T response = methodToCall.apply(stub);\n return response;\n } catch(StatusRuntimeException e){\n //TODO: what to do??\n Log.e(\"grpc\", e.getLocalizedMessage());\n throw e;\n }\n finally {\n if(channel != null)\n channel.shutdown();\n }\n }", "@Override\n\tpublic void execute() {\n\t\tcmdReceiver.send();\n\t}", "public String call() {\n return Thread.currentThread().getName() + \" executing ...\";\n }", "public synchronized JsonObject syncExecution(String remoteMethod, Map<String, String> params) {\n JsonObject remoteMethodJO = getRemoteMethodFromJson(remoteMethod);\n\n attachParams(remoteMethodJO, params);\n\n attachUUID(remoteMethodJO);\n String callSemantic = getCallSemanticFromJson(remoteMethodJO);\n\n System.out.println(\"Sending request: \" + remoteMethodJO.toString());\n String strRet = communicate.sendRequest(remoteMethodJO.toString().trim(), callSemantic);\n System.out.println(\"Returning response from server to inputstream: \" + strRet);\n String myReturn = strRet.trim();\n\n JsonParser parser = new JsonParser();\n\n return parser.parse(myReturn).getAsJsonObject();\n }", "public String call() throws Exception {\n LOG.info(\"Starting to process task\");\n Thread.sleep(5000);\n LOG.info(\"Task is now done\");\n return \"Camel rocks\";\n }", "public String call() throws Exception {\n LOG.info(\"Starting to process task\");\n Thread.sleep(5000);\n LOG.info(\"Task is now done\");\n return \"Camel rocks\";\n }", "public void executer(Callback callback){\n exec();\n if(callback != null){\n System.out.println(\" \" +\n \"[ Callback : callback() : 调用回调函数 ]\");\n callback.call();\n }\n }", "public Void execute() throws SocketTimeoutException, NetworkException, UnexpectedResponseException, SSLException {\n try {\n super.execute();\n } catch (Exception e) {\n Log.m1919i(this.TAG, \"<- call(failed) - mark it as success anyways\");\n }\n return null;\n }", "Future<Object> execCmd(byte[] cmd, byte[]... params);", "public abstract void execute(Task t);", "protected final boolean exec() {\n/* 94 */ this.result = compute();\n/* 95 */ return true;\n/* */ }", "public void call(T arg);", "public Object runAndGetResult() {\n run();\n return getResult();\n }", "public <T> T execute(final Callable<T> callable) throws Exception {\n int attempts = 0;\n int maxAttempts = retryPolicy.getMaxAttempts();\n long delay = retryPolicy.getDelay();\n TimeUnit timeUnit = retryPolicy.getTimeUnit();\n while(attempts < maxAttempts) {\n try {\n attempts++;\n beforeCall();\n T result = callable.call();\n afterCall(result);\n return result;\n } catch (Exception e) {\n onException(e);\n if (attempts >= maxAttempts) {\n onMaxAttempts(e);\n throw e;\n }\n beforeWait();\n sleep(timeUnit.toMillis(delay));\n afterWait();\n }\n }\n return null;\n }", "@Test public void asyncExecute() throws Exception\n {\n \n GlobalSettings.getInstance().setDefaultExecutor( new ThreadPoolExecutor( \"client-model\", 1));\n \n createClients( 1);\n\n final XioClient client = clients.get( 0);\n client.connect( address, port).await();\n \n final int count = 10000;\n final Semaphore semaphore = new Semaphore( 0);\n \n XioCallback cb = new XioCallback( count, semaphore);\n\n String xml = \n \"<script>\" +\n \" <mutex on='$value'>\" +\n \" <set target='$value'>$value + 1</set>\" +\n \" <return>string( $value)</return>\" +\n \" </mutex>\" +\n \"</script>\";\n\n try\n {\n synchronized( serverContext)\n {\n IModelObject valueNode = new ModelObject( \"value\");\n valueNode.setValue( -1);\n serverContext.set( \"value\", valueNode);\n }\n \n IModelObject script = new XmlIO().read( xml);\n StatefulContext context = new StatefulContext();\n \n for( int i=0; i<count; i++)\n {\n client.execute( context, i, new String[ 0], script, cb, 600000);\n assertTrue( cb.failed == -1);\n }\n }\n catch( Exception e)\n {\n e.printStackTrace( System.err);\n }\n \n //System.out.println( \"Finished sending ...\");\n \n semaphore.acquireUninterruptibly();\n //System.out.println( \"Done.\");\n }", "public DataObject doCall(DataObject subsystemMessage, boolean synchronous, FunctionCallback callback, FunctionCallbackHandler callbackHandler) throws SubsystemException {\n\t\tDataObject returnMessage = null;\r\n\t\t \r\n\t\ttry {\r\n\t\t\tLong myMessageID = new Long(getNextMessageID());\r\n\t\t\ttrackCurrentThreadOrCallBack(myMessageID, synchronous, callback, callbackHandler);\r\n\t\t\tDataObject meta = subsystemMessage.getDataObject(com.textserv.framework.subsystem.common.internal.Constants.SubsystemMeta);\r\n\t\t\tmeta.setString(com.textserv.framework.subsystem.calling.internal.async.Constants.AsyncSenderUniqueName, uniqueName);\r\n\t\t\tmeta.setLong(com.textserv.framework.subsystem.calling.internal.async.Constants.AysncMessageID, myMessageID);\r\n\t\t\tlogger.debug(\"AsyncMessageFunctionCallCaller.doCall sending message \" + subsystemMessage.toStringEncoded(true));\r\n\t\t\r\n\t\t\tasyncMessager.sendMessage(uniqueName, subsystemMessage);\r\n\t\t\tif (synchronous) {\r\n\t\t\t\tlong synchronousWaitTimeout = defaultSynchronousWaitTimeout;\r\n\t\t\t\t\tDataObject params = subsystemMessage.getDataObject(com.textserv.framework.subsystem.common.internal.Constants.Params);\r\n\t\t\t\t\tif ( params != null ) {\r\n\t\t\t\t\t\tif ( params.itemExists(com.textserv.framework.subsystem.common.internal.Constants.FuncTimeOut)) {\r\n\t\t\t\t\t\t\tsynchronousWaitTimeout = params.getLong(com.textserv.framework.subsystem.common.internal.Constants.FuncTimeOut);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturnMessage = makeCurrentThreadWaitIfNeeded(myMessageID,synchronousWaitTimeout);\r\n\t\t\t}\r\n\t\t} catch( Exception e ) {\r\n\t\t\tlogger.error(\"AsyncMessageFunctionCallCaller.doCall Exception in doCall\", e);\r\n\t\t\tif ( e instanceof SubsystemException ) {\r\n\t\t\t\tthrow (SubsystemException)e;\r\n\t\t\t} else {\r\n\t\t\t\tthrow new SubsystemException(\"Exception in doCall\", e);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn returnMessage;\r\n\t}", "static CompletableFuture<String> callAsync(Api2 ignored) {\n return CompletableFuture.supplyAsync(() -> {\n System.out.println(\"supplyAsync thread =:\" + Thread.currentThread().getName());\n throw new RuntimeException(\"oops\");\n });\n }", "@Override\n public V call() throws HttpRequestException {\n boolean bl = false;\n try {\n V v = this.run();\n return v;\n }\n catch (HttpRequestException httpRequestException) {\n bl = true;\n throw httpRequestException;\n }\n catch (IOException iOException) {\n bl = true;\n throw new HttpRequestException(iOException);\n }\n finally {\n this.done();\n }\n }", "@Deprecated\n public void deferCallUpdate(Call call);", "public void requestExtraSync()\n {\n executor.requestExtraSync();\n }", "public void runSequential() {\n int exitVal = -101;\n try {\n exitVal = tsk.executeTask(ss == null ? null : ss.getHiveHistory());\n } catch (Throwable t) {\n if (tsk.getException() == null) {\n tsk.setException(t);\n }\n LOG.error(\"Error in executeTask\", t);\n }\n if (tsk.getException() != null) {\n result.setTaskError(tsk.getException());\n }\n result.setExitVal(exitVal);\n taskQueue.releaseRunnable();\n }", "@Override\n public Object callStatic(Class receiver, Object arg1, @Nullable Object arg2, @Nullable Object arg3) throws Throwable {\n if (receiver.equals(ProcessGroovyMethods.class)) {\n Optional<Process> result = tryCallExecute(arg1, arg2, arg3);\n if (result.isPresent()) {\n return result.get();\n }\n }\n return super.callStatic(receiver, arg1, arg2, arg3);\n }", "public Object call(Object[] args) {\r\n return invoke(args);\r\n }", "@Override\r\n\tpublic String call() throws Exception {\n\t\tSystem.out.println(\"开始query\");\r\n\t\tThread.sleep(2000);\r\n\t\tString result = this.query + \"处理结束\";\r\n\t\treturn result;\r\n\t}", "public void requestResult(String value){\n if (mCurrentlyExecuting != null) return;\n AsyncRandom rand = new AsyncRandom();\n mCurrentlyExecuting = rand;\n mCurrentlyExecuting.execute(value);\n }", "@Override\n protected AccGitHuber doInBackground(Void... voids) {\n return executeRequest();\n }", "public TaskReturnType Run();", "@Override\n\tpublic void receiveCall(Call call) {\n\t\tthis.call = call;\n\t\tcall.attend();\n\t}", "void execute();", "void execute();" ]
[ "0.73061746", "0.6945751", "0.66940016", "0.6350054", "0.62250704", "0.6061081", "0.60228837", "0.5830823", "0.5677305", "0.56664264", "0.56267476", "0.55781215", "0.55646217", "0.5549782", "0.548686", "0.54237044", "0.54223263", "0.54219145", "0.5405656", "0.53438383", "0.5314865", "0.53143173", "0.53005004", "0.5295155", "0.52738523", "0.51840067", "0.5147836", "0.5136174", "0.51187867", "0.5116383", "0.50996286", "0.50628686", "0.50238997", "0.50132966", "0.5007311", "0.5004164", "0.5000157", "0.49964705", "0.49928588", "0.49928382", "0.49722826", "0.49685892", "0.49654734", "0.49604666", "0.49241415", "0.4919091", "0.4912297", "0.48955652", "0.4893989", "0.48802057", "0.48761678", "0.48530793", "0.4850238", "0.48299447", "0.48299447", "0.48299447", "0.48299447", "0.48289403", "0.48101908", "0.480804", "0.48060265", "0.47920546", "0.47909322", "0.4785688", "0.47759312", "0.47657913", "0.47652522", "0.47626707", "0.4759237", "0.47588944", "0.4751099", "0.47427002", "0.47412762", "0.47379977", "0.47270945", "0.47270945", "0.4725095", "0.47172236", "0.47117665", "0.4703891", "0.4703662", "0.46990553", "0.46752402", "0.4674363", "0.4674268", "0.46695182", "0.4669085", "0.4667372", "0.46653277", "0.46619007", "0.46587962", "0.4653713", "0.46403632", "0.46401963", "0.4638246", "0.4628455", "0.46256375", "0.46211928", "0.4619142", "0.4619142" ]
0.530159
22
Executes the given call, asynchronously.
@Nonnull <T> DodonaFuture<T> execute(@Nullable Project project, String title, boolean cancellable, ProgressIndicator indicator, Function<? super DodonaClient, ? extends T> call);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"rawtypes\")\n private void synchronousInvokeCallback(Callable call) {\n\n Future future = streamingSlopResults.submit(call);\n\n try {\n future.get();\n\n } catch(InterruptedException e1) {\n\n logger.error(\"Callback failed\", e1);\n throw new VoldemortException(\"Callback failed\");\n\n } catch(ExecutionException e1) {\n\n logger.error(\"Callback failed during execution\", e1);\n throw new VoldemortException(\"Callback failed during execution\");\n }\n\n }", "@Nullable\n public <RT> RT doSynchronousCall(final Call<RT> call) {\n try {\n return call.execute().body();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return null;\n }", "public static <T> T executeSync(Call<T> call) {\n try {\n Response<T> response = call.execute();\n if (response.isSuccessful()) {\n return response.body();\n } else {\n throw new RuntimeException(response.errorBody().string());\n }\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }", "@Nonnull\r\n\tpublic static <T> Observable<T> invokeAsync(\r\n\t\t\t@Nonnull final Callable<? extends T> call) {\r\n\t\treturn invokeAsync(call, scheduler());\r\n\t}", "public void call(Runnable task) {\n if (asyncLogging) {\n executor.submit(task);\n } else {\n task.run();\n }\n }", "<T> AsyncResult<T> startProcess(Callable<T> task, AsyncCallback<T> callback);", "@Override\n public void callSync() {\n\n }", "public <T> T callWithSync(final Callable<T> callable) throws Exception {\n\t\tsynchronized (this.monitor) {\n\t\t\treturn callable.call();\n\t\t}\n\t}", "@Nonnull\n\t<T> DodonaFuture<T> execute(Function<? super DodonaClient, ? extends T> call);", "void execute(final Callback callback);", "public abstract boolean dispatch(final CallRunner callTask) throws InterruptedException;", "<T> AsyncResult<T> startProcess(Callable<T> task);", "@Nonnull\r\n\tpublic static <T> Observable<T> invokeAsync(\r\n\t\t\t@Nonnull final Callable<? extends T> call,\r\n\t\t\t@Nonnull final Scheduler pool) {\r\n\t\treturn new Observable<T>() {\r\n\t\t\t@Override\r\n\t\t\t@Nonnull \r\n\t\t\tpublic Closeable register(@Nonnull final Observer<? super T> observer) {\r\n\t\t\t\treturn pool.schedule(new Runnable() {\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tobserver.next(call.call());\r\n\t\t\t\t\t\t\tobserver.finish();\r\n\t\t\t\t\t\t} catch (Throwable ex) {\r\n\t\t\t\t\t\t\tobserver.error(ex);\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\t}", "@SuppressWarnings(\"unchecked\")\n public <T> T execute() {\n return (T) fetchResponse(getCallToExecute());\n }", "public void execute() {\n if (hasError())\n return;\n\n runLocally();\n runRemotely();\n }", "@Override\n public void execute() {\n Task<Void> task = new Task<Void>() {\n @Override\n protected Void call() throws Exception {\n exportData();\n return null;\n }\n\n @Override\n protected void succeeded(){\n callback.onSuccess();\n super.succeeded();\n }\n\n @Override\n protected void failed(){\n callback.onFail(this.getException());\n super.failed();\n }\n };\n new Thread(task).start();\n }", "Future_<V> submit(Callable_<V> task);", "public void runInExecutor() {\n this.executor.execute(this.callback);\n }", "void call();", "@Override\n\tpublic void run() {\n\t\tRequestBody body = RequestBody.create(this.jsonType, this.contents);\n\t\tRequest request = new Request.Builder()\n\t\t\t.url(this.serverURL)\n\t\t\t.post(body)\n\t\t\t.build();\n\t\t\n\t\ttry {\n\t\t\tResponse response = client.newCall(request).execute();\n\t\t\tString str = response.body().string();\n\t\t\t//logger.log(Level.INFO, \n\t\t\t//\t\tString.format(\"DEBUG postCallInfoToServerTask succeed: %s\", str));\n\t\t} catch (IOException e) {\n\t\t\tNetProphetLogger.logError(\"PostCallInfoTask.run\", e.toString());\n\t\t}\n\t}", "private static void doCallAction(\n final Call call,\n final CallAction callAction)\n {\n new Thread()\n {\n public void run()\n {\n try\n {\n List<Call> calls;\n CallGroup group = call.getCallGroup();\n if(group != null)\n {\n calls = group.getCalls();\n }\n else\n {\n calls = new Vector<Call>();\n calls.add(call);\n }\n Call tmpCall;\n Iterator<? extends CallPeer> callPeers;\n CallPeer callPeer;\n\n for(int i = 0; i < calls.size(); ++i)\n {\n tmpCall = calls.get(i);\n final OperationSetBasicTelephony<?> opSet =\n tmpCall.getProtocolProvider()\n .getOperationSet(OperationSetBasicTelephony.class);\n callPeers = tmpCall.getCallPeers();\n while(callPeers.hasNext())\n {\n callPeer = callPeers.next();\n switch(callAction)\n {\n case ANSWER:\n if(callPeer.getState() ==\n CallPeerState.INCOMING_CALL)\n {\n opSet.answerCallPeer(callPeer);\n }\n break;\n case HANGUP:\n opSet.hangupCallPeer(callPeer);\n break;\n }\n }\n }\n\n }\n catch(OperationFailedException e)\n {\n logger.info(\n \"Failed to answer/hangup call via global shortcut\",\n e);\n }\n }\n }.start();\n\n\n }", "public void doCall(){\n CalculatorPayload operation = newContent();\n\n ((PBFTClient)getProtocol()).syncCall(operation);\n }", "void execute(Handler handler, Callback callback);", "public final void run() {\n final long contextID = Nodex.instance.getContextID();\n Runnable runner = new Runnable() {\n public void run() {\n try {\n final T result = execute();\n NodexInternal.instance.executeOnContext(contextID, new Runnable() {\n public void run() {\n completionHandler.onEvent(new Completion(result));\n }\n });\n } catch (final Exception e) {\n NodexInternal.instance.executeOnContext(contextID, new Runnable() {\n public void run() {\n completionHandler.onEvent(new Completion(e));\n }\n });\n } catch (Throwable t) {\n //Not much we can do, just log it\n t.printStackTrace(System.err);\n }\n }\n };\n\n NodexInternal.instance.executeInBackground(runner);\n }", "<T> CompletableFuture<T> submit(Callable<T> request);", "T call() throws EvalException, InterruptedException;", "T call(int callTimeout) throws Exception;", "@Override\n public void run()\n {\n final long expectedTimeBetweenCalls = TimeUnit.SECONDS.toMillis(1) / MAX_EXPECTED_EXECUTIONS_PER_SECOND;\n\n // Calculate the next call time, the first time should be immediate\n long nextCallTime = System.currentTimeMillis();\n\n // Execute the operation the required number of times\n for(int i = 0; i < NUM_EXECUTIONS; i++)\n {\n // Wait until the next call must be sent\n while(System.currentTimeMillis() < nextCallTime);\n\n // TODO Compute latency for each operation in milliseconds\n\n // Execute the operation, it will sleep for 10 milliseconds\n syncOpSimulator.executeOp();\n\n // TODO Record latency into histogram\n\n // TODO Compute accumulated latency and record it\n\n // Calculate the next time to call execute op\n nextCallTime += expectedTimeBetweenCalls;\n }\n\n finished = true;\n }", "public abstract void call();", "public interface IBugReportRpcAsync {\r\n\r\n /**\r\n * Submit a bug report.\r\n * @param bugReport Bug report to submit\r\n * @param callback Callback to be invoked after method call completes\r\n */\r\n void submitBugReport(BugReport bugReport, AsyncCallback<Void> callback);\r\n\r\n}", "@Override\n public T call() {\n try {\n return callable.call();\n }\n catch (Throwable e) {\n Log.e(\"Scheduler\", \"call code exception: %s\", e);\n return null;\n }\n }", "@Override\n public String call() throws Exception {\n if (!iAmSpecial) {\n blocker.await();\n }\n ran = true;\n return result;\n }", "CompletableFuture<CalculationResult> goAsync(GoCommand goCommand);", "private void doRemoteCall() {\n\n // Create the intent used to identify the bound service\n final Intent remoteBoundIntent = new Intent(this, MyRemoteBoundService.class);\n\n // Lets get a reference to it (asynchronously, hence the ServiceConnection object)\n bindService(remoteBoundIntent, new ServiceConnection() {\n @Override\n public void onServiceConnected(ComponentName name, IBinder service) {\n\n try {\n // Let's call it!\n (MyBoundServiceContract.Stub.asInterface(service)).doSomething(10);\n // We're done. Free the reference to the service\n unbindService(this);\n\n } catch (RemoteException e) {\n e.printStackTrace();\n }\n }\n\n @Override\n public void onServiceDisconnected(ComponentName name) {\n // Called upon unbind, just in case we need some cleanup\n }\n }, Context.BIND_AUTO_CREATE);\n }", "java.util.concurrent.Future<GetJobRunResult> getJobRunAsync(GetJobRunRequest getJobRunRequest);", "void executeAsync(long delayMs, Runnable task);", "public void execute() {\n\t\tlaunch();\n\t}", "@Nonnull\n\t<T> T execute(Function<? super DodonaClient, T> call,\n\t ProgressIndicator indicator);", "public void execute() {\n\t\t/* Create a new thread and kick it off */\n\t\tThread tempThread = new Thread(exec, \"ROSpec Executer\");\n\t\ttempThread.start();\n\t}", "static CompletableFuture<String> callAsync(Api2 ignored) {\n return CompletableFuture.supplyAsync(() -> {\n System.out.println(\"supplyAsync thread =:\" + Thread.currentThread().getName());\n throw new RuntimeException(\"oops\");\n });\n }", "Object run(Callback<String> callback, String input);", "public void executer(Callback callback){\n exec();\n if(callback != null){\n System.out.println(\" \" +\n \"[ Callback : callback() : 调用回调函数 ]\");\n callback.call();\n }\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tAbsTaskAsynCallBack.this.run();\n\t\t\t\tAbsTaskAsynCallBack.this.callback();\n\t\t\t}", "public void run() {\n try {\n System.out.println(\"Calling Process\");\n processRequest();\n\n } catch (Exception e) {\n System.out.println(\"Run Exception\" + e);\n }\n\n }", "public TaskReturnType Run();", "@Override\n\tpublic void execute() {\n\t\tsuper.execute();\n\n\t\t// TBD Needs rewrite for multi tenant\n\t\ttry {\t\n\t\t\tif (async == null || !async)\n\t\t\t\tupdated = Crosstalk.getInstance().refresh(customer);\n\t\t\telse {\n\t\t\t\tfinal Long id = random.nextLong();\n\t\t\t\tfinal ApiCommand theCommand = this;\n\t\t\t\tThread thread = new Thread(new Runnable() {\n\t\t\t\t @Override\n\t\t\t\t public void run(){\n\t\t\t\t \ttry {\n\t\t\t\t\t\t\tupdated = Crosstalk.getInstance().refresh(customer);\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\terror = true;\n\t\t\t\t\t\t\tmessage = e.toString();\n\t\t\t\t\t\t}\n\t\t\t\t }\n\t\t\t\t});\n\t\t\t\tthread.start();\n\t\t\t\tasyncid = \"\" + id;\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "ExecutionResult<Void> execute();", "@Override\n\tpublic void call() {\n\t\t\n\t}", "public interface AsyncResponce {\n\n /// Cette classe permet de realiser une callback dans une Async Task en overidant cette classe\n void ComputeResult(Object result);\n}", "public abstract void execute(Task t);", "public <T> T execute(final Callable<T> callable) throws Exception {\n int attempts = 0;\n int maxAttempts = retryPolicy.getMaxAttempts();\n long delay = retryPolicy.getDelay();\n TimeUnit timeUnit = retryPolicy.getTimeUnit();\n while(attempts < maxAttempts) {\n try {\n attempts++;\n beforeCall();\n T result = callable.call();\n afterCall(result);\n return result;\n } catch (Exception e) {\n onException(e);\n if (attempts >= maxAttempts) {\n onMaxAttempts(e);\n throw e;\n }\n beforeWait();\n sleep(timeUnit.toMillis(delay));\n afterWait();\n }\n }\n return null;\n }", "public interface Callable {\n void call(String name, String telNumber);\n}", "public void execute(){\n\t\tnew PayCarOrderTask().execute();\n\t}", "public void dispatchCall(Call call) {\n\t\t/*\n\t\t * Try to route call to an employee with minimal rank\n\t\t */\n\t\tEmployee emp = getHandlerForCall(call);\n\t\tif(emp != null) {\n\t\t\temp.receiveCall(call);\n\t\t\tcall.setHandler(emp);\n\t\t}else {\n\t\t\t/*\n\t\t\t * Place the call into corresponding call\n\t\t\t * queue according to it's rank\n\t\t\t */\n\t\t\tcall.reply(\"Please wait for free employee to reply\");\n\t\t\tcallQueues.get(call.getRank().getValue()).add(call);\n\t\t}\n\t}", "public void makeCall() {\n\n }", "public void run()\r\n/* 996: */ {\r\n/* 997:838 */ if (DefaultPromise.this.listeners == null) {\r\n/* 998: */ for (;;)\r\n/* 999: */ {\r\n/* :00:840 */ GenericFutureListener<?> l = (GenericFutureListener)poll();\r\n/* :01:841 */ if (l == null) {\r\n/* :02: */ break;\r\n/* :03: */ }\r\n/* :04:844 */ DefaultPromise.notifyListener0(DefaultPromise.this, l);\r\n/* :05: */ }\r\n/* :06: */ }\r\n/* :07:849 */ DefaultPromise.execute(DefaultPromise.this.executor(), this);\r\n/* :08: */ }", "<T> CompletableFuture<T> submit(Integer key, Callable<T> request);", "public String call() throws Exception {\n LOG.info(\"Starting to process task\");\n Thread.sleep(5000);\n LOG.info(\"Task is now done\");\n return \"Camel rocks\";\n }", "public String call() throws Exception {\n LOG.info(\"Starting to process task\");\n Thread.sleep(5000);\n LOG.info(\"Task is now done\");\n return \"Camel rocks\";\n }", "public Object call() throws Exception {\n return this.call();\n }", "@Override\r\n public void asyncExecute(String script)\r\n {\n\r\n }", "@Override\r\n\t\t\tpublic void onResponse(Call arg0, Response response) throws IOException {\n\t\t\t\tif (response.isSuccessful()) {\r\n\t\t\t\t\tonSuccess(callback, response.body().string());\r\n\t\t\t\t} else {\r\n\t\t\t\t\tonError(callback, response.message());\r\n\t\t\t\t}\r\n\t\t\t}", "void onResponse(Call<T> call, T response);", "@Override\n public void call(Void aVoid) {\n\n }", "void async(Callback<T> success, Callback<Throwable> error);", "Callable<E> getTask();", "private void runAsyncRequest(final FHAct pRequest,\n final FHActCallback pCallback) throws Exception {\n Thread testThread = new Thread() {\n @Override\n public void run() {\n try {\n Looper.prepare();\n pRequest.executeAsync(new FHActCallback() {\n\n @Override\n public void success(FHResponse pResponse) {\n System.out.println(\"Got response \" + pResponse.getRawResponse());\n pCallback.success(pResponse);\n Looper.myLooper().quit();\n }\n\n @Override\n public void fail(FHResponse pResponse) {\n System.out.println(\"Got error response : \"\n + pResponse.getRawResponse());\n pCallback.fail(pResponse);\n Looper.myLooper().quit();\n }\n });\n Looper.loop();\n } catch (Exception e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }\n\n };\n testThread.start();\n testThread.join();\n }", "public abstract void submit(Callable callable);", "@Override\r\n\tpublic String call() throws Exception {\n\t\tSystem.out.println(\"开始query\");\r\n\t\tThread.sleep(2000);\r\n\t\tString result = this.query + \"处理结束\";\r\n\t\treturn result;\r\n\t}", "public void execute();", "public void execute();", "public void execute();", "public void execute();", "@Override\r\n\tvoid execute(Runnable task);", "@Override\n public void execute(boolean refresh, Callback callback) {\n this.refresh = refresh;\n this.callback = callback;\n\n getInteractorExecutor().run(this);\n }", "Task poll();", "protected ResultHolder<S, T> handleASyncServiceCall() {\n\n\t\t// Check we have a service action\n\t\tServiceAction action = getServiceAction();\n\t\tif (action == null) {\n\t\t\tthrow new IllegalStateException(\"No service action provided for polling.\");\n\t\t}\n\n\t\t// Generate a cache key so the polling result can be held\n\t\tif (!isUseCachedResult()) {\n\t\t\t//Generate a key\n\t\t\tsetServiceCacheKey(generateCacheKey());\n\t\t\t// Clear previous result\n\t\t\tsetServiceResult(null);\n\t\t}\n\n\t\t// Check we have a cache key\n\t\tString key = getServiceCacheKey();\n\t\tif (key == null) {\n\t\t\tthrow new IllegalStateException(\"No cache key provided for polling.\");\n\t\t}\n\n\t\t// Start Service action (will return result if already cached)\n\t\ttry {\n\t\t\tResultHolder result = SERVICE_HELPER.handleAsyncServiceCall(getServiceCache(), key, getServiceCriteria(), action);\n\t\t\tsetServiceRunning(true);\n\t\t\treturn result;\n\t\t} catch (RejectedTaskException e) {\n\t\t\t// Could not start service (usually no threads available). Try and start on the next poll.\n\t\t\tLOG.info(\"Could not start service in pool [\" + getServiceThreadPool() + \"]. Will try next poll.\");\n\t\t\tsetServiceRunning(false);\n\t\t\treturn null;\n\t\t}\n\t}", "@Override\n\t\t\tpublic void callbackCall() {\n\t\t\t}", "@Api(1.1)\n public Response execute() throws HaloNetException {\n return mBuilder.mClient.request(mRequest);\n }", "@JavascriptInterface\n public String invoke(String feature, String action, String rawParams, String callback) {\n String response = mManager.invoke(feature, action, rawParams, callback);\n if (Log.isLoggable(HybridManager.TAG, Log.DEBUG)) {\n Log.d(HybridManager.TAG, \"blocking response is \" + response);\n }\n return response;\n }", "void submitBugReport(BugReport bugReport, AsyncCallback<Void> callback);", "void execute(Runnable job);", "public final void asyncExec( int outputs, Frame fr, boolean run_local){\n // Use first readable vector to gate home/not-home\n fr.checkCompatible(); // Check for compatible vectors\n if((_noutputs = outputs) > 0) _vid = fr.anyVec().group().reserveKeys(outputs);\n _fr = fr; // Record vectors to work on\n _nxx = (short)H2O.SELF.index(); _nhi = (short)H2O.CLOUD.size(); // Do Whole Cloud\n _run_local = run_local; // Run locally by copying data, or run globally?\n setupLocal0(); // Local setup\n H2O.submitTask(this); // Begin normal execution on a FJ thread\n }", "public void execute() {\n execute0();\n }", "protected abstract void afterCall(final Object result);", "public void executeASync (ProcessInfo pi)\r\n\t {\r\n\t }", "public static <V> V execute(String context, String uniqueLockId, String operationName, Callable<V> callable) throws Exception {\n String uniqueLockResource = getUniqueLockResource(context, uniqueLockId);\n Lock lock = getLock(uniqueLockResource);\n return LockUtils.executeInLock(uniqueLockResource, \"\", operationName, lock, callable);\n }", "void execute(final T response);", "public static AsyncResult async(Callable<Result> task) {\n return new AsyncResult(task);\n }", "protected abstract void asyncExecuteWorkFlow(String queryId, LogicalWorkflow workflow, IResultHandler\n resultHandler) throws ConnectorException;", "public interface Async {\n public void afterExec(JSONObject jsonObject);\n}", "@Override\n protected AccGitHuber doInBackground(Void... voids) {\n return executeRequest();\n }", "java.util.concurrent.Future<StartJobRunResult> startJobRunAsync(StartJobRunRequest startJobRunRequest);", "@Override\n public void execute() throws EngineException {\n Object target = JavaReflectionUtil.getObject(this.target, \n callStatement.getEntries().subList(1,\n callStatement.getEntries().size() - 1));\n this.getParent().setResult(executeMethod(target, callStatement));\n pop();\n }", "protected synchronized Object call(final String method, final Object... params) throws XmlRpcException {\r\n\r\n\t\tLOGGER.finest(\"Executing call \" + method + \" \" + Arrays.toString(params));\r\n\t\treturn client.execute(method, params);\r\n\t}", "V call() throws StatusRuntimeException;", "public void run(){\n try{\n doTask();\n } catch (IOException ex){\n throw new RuntimeException(ex);\n }\n }", "public String call() {\n return Thread.currentThread().getName() + \" executing ...\";\n }", "public void processCall() {\n\t\tif (call == null)\n\t\t\treturn;\n\n\t\tString msg = new StringBuffer(\"Call processed on: \").append(new Date()).append(\" by: \")\n\t\t\t\t.append(CallCenterWorker.this.name).append(\" call length: \")\n\t\t\t\t.append(CallCenterWorker.this.call.getLenght()).toString();\n\t\tSystem.out.println(msg);\n\t\tCallCenterWorker.this.call = null;\n\t}", "public Void execute() throws SocketTimeoutException, NetworkException, UnexpectedResponseException, SSLException {\n try {\n super.execute();\n } catch (Exception e) {\n Log.m1919i(this.TAG, \"<- call(failed) - mark it as success anyways\");\n }\n return null;\n }", "@Nonnull\r\n\tpublic static <T> Observable<T> invokeAsync(\r\n\t\t\t@Nonnull final Runnable run) {\r\n\t\treturn invokeAsync(run, scheduler());\r\n\t}" ]
[ "0.6755073", "0.664126", "0.6526205", "0.63575137", "0.6039121", "0.60121703", "0.5945902", "0.5941658", "0.5860679", "0.58405983", "0.5805437", "0.5778082", "0.5664884", "0.56635803", "0.5549722", "0.55362666", "0.5526414", "0.5508626", "0.54783916", "0.5444974", "0.5425729", "0.54248995", "0.5396066", "0.538636", "0.5362969", "0.53590584", "0.5336522", "0.5326154", "0.5305865", "0.5290047", "0.5274179", "0.52567655", "0.524608", "0.52401555", "0.52212214", "0.52105594", "0.5210024", "0.52090627", "0.51271576", "0.5118099", "0.5094024", "0.5073016", "0.50722814", "0.5071767", "0.5068916", "0.5050804", "0.5050187", "0.50421154", "0.5035923", "0.50354344", "0.5031032", "0.5016801", "0.5016089", "0.5015069", "0.50139076", "0.5006731", "0.5002706", "0.5002314", "0.5002314", "0.49996448", "0.49851722", "0.4980236", "0.49771607", "0.49746758", "0.49744448", "0.49720785", "0.496374", "0.4962496", "0.49593344", "0.49517015", "0.49517015", "0.49517015", "0.49517015", "0.49444443", "0.49431226", "0.4940002", "0.49313095", "0.49250266", "0.4915751", "0.4905023", "0.49017233", "0.48989403", "0.48981336", "0.4890895", "0.48880947", "0.4882039", "0.48810747", "0.48783347", "0.48777547", "0.48709983", "0.48697332", "0.48654884", "0.4864511", "0.48614997", "0.48593903", "0.48569793", "0.48447558", "0.48432702", "0.48347884", "0.4828899", "0.48215288" ]
0.0
-1
Executes the given call, asynchronously.
@Nonnull <T> DodonaFuture<T> execute(Function<? super DodonaClient, ? extends T> call);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"rawtypes\")\n private void synchronousInvokeCallback(Callable call) {\n\n Future future = streamingSlopResults.submit(call);\n\n try {\n future.get();\n\n } catch(InterruptedException e1) {\n\n logger.error(\"Callback failed\", e1);\n throw new VoldemortException(\"Callback failed\");\n\n } catch(ExecutionException e1) {\n\n logger.error(\"Callback failed during execution\", e1);\n throw new VoldemortException(\"Callback failed during execution\");\n }\n\n }", "@Nullable\n public <RT> RT doSynchronousCall(final Call<RT> call) {\n try {\n return call.execute().body();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return null;\n }", "public static <T> T executeSync(Call<T> call) {\n try {\n Response<T> response = call.execute();\n if (response.isSuccessful()) {\n return response.body();\n } else {\n throw new RuntimeException(response.errorBody().string());\n }\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }", "@Nonnull\r\n\tpublic static <T> Observable<T> invokeAsync(\r\n\t\t\t@Nonnull final Callable<? extends T> call) {\r\n\t\treturn invokeAsync(call, scheduler());\r\n\t}", "public void call(Runnable task) {\n if (asyncLogging) {\n executor.submit(task);\n } else {\n task.run();\n }\n }", "<T> AsyncResult<T> startProcess(Callable<T> task, AsyncCallback<T> callback);", "@Override\n public void callSync() {\n\n }", "public <T> T callWithSync(final Callable<T> callable) throws Exception {\n\t\tsynchronized (this.monitor) {\n\t\t\treturn callable.call();\n\t\t}\n\t}", "void execute(final Callback callback);", "public abstract boolean dispatch(final CallRunner callTask) throws InterruptedException;", "<T> AsyncResult<T> startProcess(Callable<T> task);", "@Nonnull\r\n\tpublic static <T> Observable<T> invokeAsync(\r\n\t\t\t@Nonnull final Callable<? extends T> call,\r\n\t\t\t@Nonnull final Scheduler pool) {\r\n\t\treturn new Observable<T>() {\r\n\t\t\t@Override\r\n\t\t\t@Nonnull \r\n\t\t\tpublic Closeable register(@Nonnull final Observer<? super T> observer) {\r\n\t\t\t\treturn pool.schedule(new Runnable() {\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tobserver.next(call.call());\r\n\t\t\t\t\t\t\tobserver.finish();\r\n\t\t\t\t\t\t} catch (Throwable ex) {\r\n\t\t\t\t\t\t\tobserver.error(ex);\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\t}", "@SuppressWarnings(\"unchecked\")\n public <T> T execute() {\n return (T) fetchResponse(getCallToExecute());\n }", "public void execute() {\n if (hasError())\n return;\n\n runLocally();\n runRemotely();\n }", "@Override\n public void execute() {\n Task<Void> task = new Task<Void>() {\n @Override\n protected Void call() throws Exception {\n exportData();\n return null;\n }\n\n @Override\n protected void succeeded(){\n callback.onSuccess();\n super.succeeded();\n }\n\n @Override\n protected void failed(){\n callback.onFail(this.getException());\n super.failed();\n }\n };\n new Thread(task).start();\n }", "Future_<V> submit(Callable_<V> task);", "public void runInExecutor() {\n this.executor.execute(this.callback);\n }", "void call();", "@Override\n\tpublic void run() {\n\t\tRequestBody body = RequestBody.create(this.jsonType, this.contents);\n\t\tRequest request = new Request.Builder()\n\t\t\t.url(this.serverURL)\n\t\t\t.post(body)\n\t\t\t.build();\n\t\t\n\t\ttry {\n\t\t\tResponse response = client.newCall(request).execute();\n\t\t\tString str = response.body().string();\n\t\t\t//logger.log(Level.INFO, \n\t\t\t//\t\tString.format(\"DEBUG postCallInfoToServerTask succeed: %s\", str));\n\t\t} catch (IOException e) {\n\t\t\tNetProphetLogger.logError(\"PostCallInfoTask.run\", e.toString());\n\t\t}\n\t}", "private static void doCallAction(\n final Call call,\n final CallAction callAction)\n {\n new Thread()\n {\n public void run()\n {\n try\n {\n List<Call> calls;\n CallGroup group = call.getCallGroup();\n if(group != null)\n {\n calls = group.getCalls();\n }\n else\n {\n calls = new Vector<Call>();\n calls.add(call);\n }\n Call tmpCall;\n Iterator<? extends CallPeer> callPeers;\n CallPeer callPeer;\n\n for(int i = 0; i < calls.size(); ++i)\n {\n tmpCall = calls.get(i);\n final OperationSetBasicTelephony<?> opSet =\n tmpCall.getProtocolProvider()\n .getOperationSet(OperationSetBasicTelephony.class);\n callPeers = tmpCall.getCallPeers();\n while(callPeers.hasNext())\n {\n callPeer = callPeers.next();\n switch(callAction)\n {\n case ANSWER:\n if(callPeer.getState() ==\n CallPeerState.INCOMING_CALL)\n {\n opSet.answerCallPeer(callPeer);\n }\n break;\n case HANGUP:\n opSet.hangupCallPeer(callPeer);\n break;\n }\n }\n }\n\n }\n catch(OperationFailedException e)\n {\n logger.info(\n \"Failed to answer/hangup call via global shortcut\",\n e);\n }\n }\n }.start();\n\n\n }", "public void doCall(){\n CalculatorPayload operation = newContent();\n\n ((PBFTClient)getProtocol()).syncCall(operation);\n }", "void execute(Handler handler, Callback callback);", "public final void run() {\n final long contextID = Nodex.instance.getContextID();\n Runnable runner = new Runnable() {\n public void run() {\n try {\n final T result = execute();\n NodexInternal.instance.executeOnContext(contextID, new Runnable() {\n public void run() {\n completionHandler.onEvent(new Completion(result));\n }\n });\n } catch (final Exception e) {\n NodexInternal.instance.executeOnContext(contextID, new Runnable() {\n public void run() {\n completionHandler.onEvent(new Completion(e));\n }\n });\n } catch (Throwable t) {\n //Not much we can do, just log it\n t.printStackTrace(System.err);\n }\n }\n };\n\n NodexInternal.instance.executeInBackground(runner);\n }", "<T> CompletableFuture<T> submit(Callable<T> request);", "T call() throws EvalException, InterruptedException;", "T call(int callTimeout) throws Exception;", "@Override\n public void run()\n {\n final long expectedTimeBetweenCalls = TimeUnit.SECONDS.toMillis(1) / MAX_EXPECTED_EXECUTIONS_PER_SECOND;\n\n // Calculate the next call time, the first time should be immediate\n long nextCallTime = System.currentTimeMillis();\n\n // Execute the operation the required number of times\n for(int i = 0; i < NUM_EXECUTIONS; i++)\n {\n // Wait until the next call must be sent\n while(System.currentTimeMillis() < nextCallTime);\n\n // TODO Compute latency for each operation in milliseconds\n\n // Execute the operation, it will sleep for 10 milliseconds\n syncOpSimulator.executeOp();\n\n // TODO Record latency into histogram\n\n // TODO Compute accumulated latency and record it\n\n // Calculate the next time to call execute op\n nextCallTime += expectedTimeBetweenCalls;\n }\n\n finished = true;\n }", "public abstract void call();", "public interface IBugReportRpcAsync {\r\n\r\n /**\r\n * Submit a bug report.\r\n * @param bugReport Bug report to submit\r\n * @param callback Callback to be invoked after method call completes\r\n */\r\n void submitBugReport(BugReport bugReport, AsyncCallback<Void> callback);\r\n\r\n}", "@Override\n public T call() {\n try {\n return callable.call();\n }\n catch (Throwable e) {\n Log.e(\"Scheduler\", \"call code exception: %s\", e);\n return null;\n }\n }", "@Override\n public String call() throws Exception {\n if (!iAmSpecial) {\n blocker.await();\n }\n ran = true;\n return result;\n }", "CompletableFuture<CalculationResult> goAsync(GoCommand goCommand);", "private void doRemoteCall() {\n\n // Create the intent used to identify the bound service\n final Intent remoteBoundIntent = new Intent(this, MyRemoteBoundService.class);\n\n // Lets get a reference to it (asynchronously, hence the ServiceConnection object)\n bindService(remoteBoundIntent, new ServiceConnection() {\n @Override\n public void onServiceConnected(ComponentName name, IBinder service) {\n\n try {\n // Let's call it!\n (MyBoundServiceContract.Stub.asInterface(service)).doSomething(10);\n // We're done. Free the reference to the service\n unbindService(this);\n\n } catch (RemoteException e) {\n e.printStackTrace();\n }\n }\n\n @Override\n public void onServiceDisconnected(ComponentName name) {\n // Called upon unbind, just in case we need some cleanup\n }\n }, Context.BIND_AUTO_CREATE);\n }", "java.util.concurrent.Future<GetJobRunResult> getJobRunAsync(GetJobRunRequest getJobRunRequest);", "void executeAsync(long delayMs, Runnable task);", "public void execute() {\n\t\tlaunch();\n\t}", "@Nonnull\n\t<T> T execute(Function<? super DodonaClient, T> call,\n\t ProgressIndicator indicator);", "public void execute() {\n\t\t/* Create a new thread and kick it off */\n\t\tThread tempThread = new Thread(exec, \"ROSpec Executer\");\n\t\ttempThread.start();\n\t}", "static CompletableFuture<String> callAsync(Api2 ignored) {\n return CompletableFuture.supplyAsync(() -> {\n System.out.println(\"supplyAsync thread =:\" + Thread.currentThread().getName());\n throw new RuntimeException(\"oops\");\n });\n }", "Object run(Callback<String> callback, String input);", "public void executer(Callback callback){\n exec();\n if(callback != null){\n System.out.println(\" \" +\n \"[ Callback : callback() : 调用回调函数 ]\");\n callback.call();\n }\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tAbsTaskAsynCallBack.this.run();\n\t\t\t\tAbsTaskAsynCallBack.this.callback();\n\t\t\t}", "public void run() {\n try {\n System.out.println(\"Calling Process\");\n processRequest();\n\n } catch (Exception e) {\n System.out.println(\"Run Exception\" + e);\n }\n\n }", "public TaskReturnType Run();", "@Override\n\tpublic void execute() {\n\t\tsuper.execute();\n\n\t\t// TBD Needs rewrite for multi tenant\n\t\ttry {\t\n\t\t\tif (async == null || !async)\n\t\t\t\tupdated = Crosstalk.getInstance().refresh(customer);\n\t\t\telse {\n\t\t\t\tfinal Long id = random.nextLong();\n\t\t\t\tfinal ApiCommand theCommand = this;\n\t\t\t\tThread thread = new Thread(new Runnable() {\n\t\t\t\t @Override\n\t\t\t\t public void run(){\n\t\t\t\t \ttry {\n\t\t\t\t\t\t\tupdated = Crosstalk.getInstance().refresh(customer);\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\terror = true;\n\t\t\t\t\t\t\tmessage = e.toString();\n\t\t\t\t\t\t}\n\t\t\t\t }\n\t\t\t\t});\n\t\t\t\tthread.start();\n\t\t\t\tasyncid = \"\" + id;\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "ExecutionResult<Void> execute();", "@Override\n\tpublic void call() {\n\t\t\n\t}", "public interface AsyncResponce {\n\n /// Cette classe permet de realiser une callback dans une Async Task en overidant cette classe\n void ComputeResult(Object result);\n}", "public abstract void execute(Task t);", "public <T> T execute(final Callable<T> callable) throws Exception {\n int attempts = 0;\n int maxAttempts = retryPolicy.getMaxAttempts();\n long delay = retryPolicy.getDelay();\n TimeUnit timeUnit = retryPolicy.getTimeUnit();\n while(attempts < maxAttempts) {\n try {\n attempts++;\n beforeCall();\n T result = callable.call();\n afterCall(result);\n return result;\n } catch (Exception e) {\n onException(e);\n if (attempts >= maxAttempts) {\n onMaxAttempts(e);\n throw e;\n }\n beforeWait();\n sleep(timeUnit.toMillis(delay));\n afterWait();\n }\n }\n return null;\n }", "public interface Callable {\n void call(String name, String telNumber);\n}", "public void execute(){\n\t\tnew PayCarOrderTask().execute();\n\t}", "public void dispatchCall(Call call) {\n\t\t/*\n\t\t * Try to route call to an employee with minimal rank\n\t\t */\n\t\tEmployee emp = getHandlerForCall(call);\n\t\tif(emp != null) {\n\t\t\temp.receiveCall(call);\n\t\t\tcall.setHandler(emp);\n\t\t}else {\n\t\t\t/*\n\t\t\t * Place the call into corresponding call\n\t\t\t * queue according to it's rank\n\t\t\t */\n\t\t\tcall.reply(\"Please wait for free employee to reply\");\n\t\t\tcallQueues.get(call.getRank().getValue()).add(call);\n\t\t}\n\t}", "public void makeCall() {\n\n }", "public void run()\r\n/* 996: */ {\r\n/* 997:838 */ if (DefaultPromise.this.listeners == null) {\r\n/* 998: */ for (;;)\r\n/* 999: */ {\r\n/* :00:840 */ GenericFutureListener<?> l = (GenericFutureListener)poll();\r\n/* :01:841 */ if (l == null) {\r\n/* :02: */ break;\r\n/* :03: */ }\r\n/* :04:844 */ DefaultPromise.notifyListener0(DefaultPromise.this, l);\r\n/* :05: */ }\r\n/* :06: */ }\r\n/* :07:849 */ DefaultPromise.execute(DefaultPromise.this.executor(), this);\r\n/* :08: */ }", "<T> CompletableFuture<T> submit(Integer key, Callable<T> request);", "public String call() throws Exception {\n LOG.info(\"Starting to process task\");\n Thread.sleep(5000);\n LOG.info(\"Task is now done\");\n return \"Camel rocks\";\n }", "public String call() throws Exception {\n LOG.info(\"Starting to process task\");\n Thread.sleep(5000);\n LOG.info(\"Task is now done\");\n return \"Camel rocks\";\n }", "public Object call() throws Exception {\n return this.call();\n }", "@Override\r\n public void asyncExecute(String script)\r\n {\n\r\n }", "@Override\r\n\t\t\tpublic void onResponse(Call arg0, Response response) throws IOException {\n\t\t\t\tif (response.isSuccessful()) {\r\n\t\t\t\t\tonSuccess(callback, response.body().string());\r\n\t\t\t\t} else {\r\n\t\t\t\t\tonError(callback, response.message());\r\n\t\t\t\t}\r\n\t\t\t}", "void onResponse(Call<T> call, T response);", "@Override\n public void call(Void aVoid) {\n\n }", "void async(Callback<T> success, Callback<Throwable> error);", "Callable<E> getTask();", "private void runAsyncRequest(final FHAct pRequest,\n final FHActCallback pCallback) throws Exception {\n Thread testThread = new Thread() {\n @Override\n public void run() {\n try {\n Looper.prepare();\n pRequest.executeAsync(new FHActCallback() {\n\n @Override\n public void success(FHResponse pResponse) {\n System.out.println(\"Got response \" + pResponse.getRawResponse());\n pCallback.success(pResponse);\n Looper.myLooper().quit();\n }\n\n @Override\n public void fail(FHResponse pResponse) {\n System.out.println(\"Got error response : \"\n + pResponse.getRawResponse());\n pCallback.fail(pResponse);\n Looper.myLooper().quit();\n }\n });\n Looper.loop();\n } catch (Exception e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }\n\n };\n testThread.start();\n testThread.join();\n }", "public abstract void submit(Callable callable);", "@Override\r\n\tpublic String call() throws Exception {\n\t\tSystem.out.println(\"开始query\");\r\n\t\tThread.sleep(2000);\r\n\t\tString result = this.query + \"处理结束\";\r\n\t\treturn result;\r\n\t}", "public void execute();", "public void execute();", "public void execute();", "public void execute();", "@Override\r\n\tvoid execute(Runnable task);", "@Override\n public void execute(boolean refresh, Callback callback) {\n this.refresh = refresh;\n this.callback = callback;\n\n getInteractorExecutor().run(this);\n }", "Task poll();", "protected ResultHolder<S, T> handleASyncServiceCall() {\n\n\t\t// Check we have a service action\n\t\tServiceAction action = getServiceAction();\n\t\tif (action == null) {\n\t\t\tthrow new IllegalStateException(\"No service action provided for polling.\");\n\t\t}\n\n\t\t// Generate a cache key so the polling result can be held\n\t\tif (!isUseCachedResult()) {\n\t\t\t//Generate a key\n\t\t\tsetServiceCacheKey(generateCacheKey());\n\t\t\t// Clear previous result\n\t\t\tsetServiceResult(null);\n\t\t}\n\n\t\t// Check we have a cache key\n\t\tString key = getServiceCacheKey();\n\t\tif (key == null) {\n\t\t\tthrow new IllegalStateException(\"No cache key provided for polling.\");\n\t\t}\n\n\t\t// Start Service action (will return result if already cached)\n\t\ttry {\n\t\t\tResultHolder result = SERVICE_HELPER.handleAsyncServiceCall(getServiceCache(), key, getServiceCriteria(), action);\n\t\t\tsetServiceRunning(true);\n\t\t\treturn result;\n\t\t} catch (RejectedTaskException e) {\n\t\t\t// Could not start service (usually no threads available). Try and start on the next poll.\n\t\t\tLOG.info(\"Could not start service in pool [\" + getServiceThreadPool() + \"]. Will try next poll.\");\n\t\t\tsetServiceRunning(false);\n\t\t\treturn null;\n\t\t}\n\t}", "@Override\n\t\t\tpublic void callbackCall() {\n\t\t\t}", "@Api(1.1)\n public Response execute() throws HaloNetException {\n return mBuilder.mClient.request(mRequest);\n }", "@JavascriptInterface\n public String invoke(String feature, String action, String rawParams, String callback) {\n String response = mManager.invoke(feature, action, rawParams, callback);\n if (Log.isLoggable(HybridManager.TAG, Log.DEBUG)) {\n Log.d(HybridManager.TAG, \"blocking response is \" + response);\n }\n return response;\n }", "void submitBugReport(BugReport bugReport, AsyncCallback<Void> callback);", "void execute(Runnable job);", "public final void asyncExec( int outputs, Frame fr, boolean run_local){\n // Use first readable vector to gate home/not-home\n fr.checkCompatible(); // Check for compatible vectors\n if((_noutputs = outputs) > 0) _vid = fr.anyVec().group().reserveKeys(outputs);\n _fr = fr; // Record vectors to work on\n _nxx = (short)H2O.SELF.index(); _nhi = (short)H2O.CLOUD.size(); // Do Whole Cloud\n _run_local = run_local; // Run locally by copying data, or run globally?\n setupLocal0(); // Local setup\n H2O.submitTask(this); // Begin normal execution on a FJ thread\n }", "public void execute() {\n execute0();\n }", "protected abstract void afterCall(final Object result);", "public void executeASync (ProcessInfo pi)\r\n\t {\r\n\t }", "public static <V> V execute(String context, String uniqueLockId, String operationName, Callable<V> callable) throws Exception {\n String uniqueLockResource = getUniqueLockResource(context, uniqueLockId);\n Lock lock = getLock(uniqueLockResource);\n return LockUtils.executeInLock(uniqueLockResource, \"\", operationName, lock, callable);\n }", "void execute(final T response);", "public static AsyncResult async(Callable<Result> task) {\n return new AsyncResult(task);\n }", "protected abstract void asyncExecuteWorkFlow(String queryId, LogicalWorkflow workflow, IResultHandler\n resultHandler) throws ConnectorException;", "public interface Async {\n public void afterExec(JSONObject jsonObject);\n}", "@Override\n protected AccGitHuber doInBackground(Void... voids) {\n return executeRequest();\n }", "java.util.concurrent.Future<StartJobRunResult> startJobRunAsync(StartJobRunRequest startJobRunRequest);", "@Override\n public void execute() throws EngineException {\n Object target = JavaReflectionUtil.getObject(this.target, \n callStatement.getEntries().subList(1,\n callStatement.getEntries().size() - 1));\n this.getParent().setResult(executeMethod(target, callStatement));\n pop();\n }", "protected synchronized Object call(final String method, final Object... params) throws XmlRpcException {\r\n\r\n\t\tLOGGER.finest(\"Executing call \" + method + \" \" + Arrays.toString(params));\r\n\t\treturn client.execute(method, params);\r\n\t}", "V call() throws StatusRuntimeException;", "public void run(){\n try{\n doTask();\n } catch (IOException ex){\n throw new RuntimeException(ex);\n }\n }", "public String call() {\n return Thread.currentThread().getName() + \" executing ...\";\n }", "public void processCall() {\n\t\tif (call == null)\n\t\t\treturn;\n\n\t\tString msg = new StringBuffer(\"Call processed on: \").append(new Date()).append(\" by: \")\n\t\t\t\t.append(CallCenterWorker.this.name).append(\" call length: \")\n\t\t\t\t.append(CallCenterWorker.this.call.getLenght()).toString();\n\t\tSystem.out.println(msg);\n\t\tCallCenterWorker.this.call = null;\n\t}", "public Void execute() throws SocketTimeoutException, NetworkException, UnexpectedResponseException, SSLException {\n try {\n super.execute();\n } catch (Exception e) {\n Log.m1919i(this.TAG, \"<- call(failed) - mark it as success anyways\");\n }\n return null;\n }", "@Nonnull\r\n\tpublic static <T> Observable<T> invokeAsync(\r\n\t\t\t@Nonnull final Runnable run) {\r\n\t\treturn invokeAsync(run, scheduler());\r\n\t}" ]
[ "0.6755073", "0.664126", "0.6526205", "0.63575137", "0.6039121", "0.60121703", "0.5945902", "0.5941658", "0.58405983", "0.5805437", "0.5778082", "0.5664884", "0.56635803", "0.5549722", "0.55362666", "0.5526414", "0.5508626", "0.54783916", "0.5444974", "0.5425729", "0.54248995", "0.5396066", "0.538636", "0.5362969", "0.53590584", "0.5336522", "0.5326154", "0.5305865", "0.5290047", "0.5274179", "0.52567655", "0.524608", "0.52401555", "0.52212214", "0.52105594", "0.5210024", "0.52090627", "0.51271576", "0.5118099", "0.5094024", "0.5073016", "0.50722814", "0.5071767", "0.5068916", "0.5050804", "0.5050187", "0.50421154", "0.5035923", "0.50354344", "0.5031032", "0.5016801", "0.5016089", "0.5015069", "0.50139076", "0.5006731", "0.5002706", "0.5002314", "0.5002314", "0.49996448", "0.49851722", "0.4980236", "0.49771607", "0.49746758", "0.49744448", "0.49720785", "0.496374", "0.4962496", "0.49593344", "0.49517015", "0.49517015", "0.49517015", "0.49517015", "0.49444443", "0.49431226", "0.4940002", "0.49313095", "0.49250266", "0.4915751", "0.4905023", "0.49017233", "0.48989403", "0.48981336", "0.4890895", "0.48880947", "0.4882039", "0.48810747", "0.48783347", "0.48777547", "0.48709983", "0.48697332", "0.48654884", "0.4864511", "0.48614997", "0.48593903", "0.48569793", "0.48447558", "0.48432702", "0.48347884", "0.4828899", "0.48215288" ]
0.5860679
8
Creates a new instance of MyPathResource
public MyPathResource() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Resource createResource();", "Path createPath();", "public <T> Config.Resource<T> toResource(Path path) {\n if (this.exists(path)) {\n return new Config.Resource.Filesystem<>(path);\n }\n return new Config.Resource.NotFound<>(path, this);\n }", "public MyResource() {\n System.out.println(\"creating Resource\");\n }", "public Object makeResource();", "ObjectResource createObjectResource();", "public ResourceFactory(){}", "public void initPath(Path p) {\r\n\tpath = new Path(p);\r\n}", "ResourceAPI createResourceAPI();", "public <T> Config.Resource<T> resource(String path) {\n return toResource(resolve(path));\n }", "public GenericResource() {\n }", "private Resource() {}", "public Resource createResourceSetWithResource(URI aPathToResource) {\r\n \t\tResource groupResource = null;\r\n \r\n \t\tif (aPathToResource != null) {\r\n \t\t\tResourceSet resourceSet = createResourceSet();\r\n \r\n \t\t\t// Create the resource for given group\r\n \t\t\tgroupResource = resourceSet.createResource(aPathToResource);\r\n \t\t}\r\n \t\treturn groupResource;\r\n \t}", "public GenericResource() {\r\n }", "public final @NotNull Resource resource(@NotNull String path) {\n return resource(path, ValueMap.EMPTY);\n }", "public PathAdapter() {\n }", "Service_Resource createService_Resource();", "public GenericResource()\r\n {\r\n }", "public GenericResource()\n {\n }", "public void initPath() {\r\n\t\tpath = new Path();\r\n\t}", "public ResourcePath() {\n //_externalFolder = \"file:///C:/Program%20Files/ESRI/GPT9/gpt/\";\n //_localFolder = \"gpt/\";\n}", "public synchronized Resource createResource(QName str) throws ModelException {\n\n // check whether we have it in the registry\n Resource r = (Resource)rmap.get(str);\n // System.err.println(\"Creating resource: \" + str + \", in rmap=\" + r);\n\n if(r == null) {\n r = new ResourceImpl(/*getUnusedNodeID(),*/ str);\n rmap.put(str, r);\n }\n return r;\n }", "protected abstract T createTestResource();", "public Path(String path) {\n this(null, path);\n }", "public Resource() {\n }", "public Resource() {\n }", "public TarefaResource() {\r\n }", "public interface PathService {\n /**\n * Used to get list of all paths\n *\n * @return list of all paths\n */\n public List<Path> getAllPaths();\n\n /**\n * Used to get a specific path\n *\n * @return path instance\n */\n public Path getPath(Integer id) throws ResourceNotFoundException;\n\n /**\n * Used to save or update a path\n *\n * @param Path path instance to save or update\n * @return path instance\n */\n public Path saveOrUpdatePath(Path path);\n}", "Ressource createRessource();", "public ProductResource() {\n }", "protected Resource newResource()\n\t{\n\t\tPackageResource packageResource = PackageResource.get(getScope(), getName(), getLocale(),\n\t\t\tgetStyle());\n\t\tif (packageResource != null)\n\t\t{\n\t\t\tlocale = packageResource.getLocale();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tthrow new IllegalArgumentException(\"package resource [scope=\" + getScope() + \",name=\" +\n\t\t\t\tgetName() + \",locale=\" + getLocale() + \"style=\" + getStyle() + \"] not found\");\n\t\t}\n\t\treturn packageResource;\n\t}", "public abstract Shape createPath();", "public void setResourcePath(IPath path) {\n setResourcePath(path != null ? path.toString() : \"\");\n }", "public MyPathDriver(/* add any constructor arguments here */) {\r\n\r\n // set all fields in your constructor here\r\n\r\n }", "public final XPath constructPath(){\r\n \tif(path == null){\r\n \t\tpath = new XPath(getPathArray());\r\n \t}\r\n\t\treturn path;\r\n }", "public ResourceOperation(long time, String path, String author, Type atype, Target target, String ipath) {\n super(time, path, author);\n this.actionType = atype;\n this.target = target;\n this.ipath = ipath;\n }", "private WebTestArtifact(String resource)\r\n {\r\n this(resource, \"GET\");\r\n }", "public ModelResource() {\n }", "public AddResource() {\n }", "@Test\n public void invokePathHandlerOnExistingResource2() {\n ctx.param(ParamNames.PATH, \"foo/bar.txt\");\n pathHandler.handle(ctx);\n ByteArrayOutputStream baos = (ByteArrayOutputStream)resp.outputStream();\n String s = new String(baos.toByteArray());\n ceq(\"foo/bar.txt\", s);\n }", "public StorageResource() {\n }", "private MyResource() {\n System.out.printf(\"[%s] has been created \\n\", MyResource.class.getSimpleName());\n }", "public PathExpressionIF createPathExpression();", "public External withPath(String path) {\n this.path = path;\n return this;\n }", "public StudentResource() {\n }", "public Resource createResourceFromUri(String uri)\n\t{\n\t\turi = this.replaceNamespacePrefixes(uri);\n\t\treturn this.model.createResource(uri);\n\t}", "public native void addResourcePath(final String name, final String resourcePath, final int type);", "public interface Pathable<T> {\n\n T forPath(String path);\n\n}", "@SuppressWarnings(\"null\")\n protected final @NotNull Resource ensureResourceExists(@NotNull String path) {\n if (StringUtils.isEmpty(path) || StringUtils.equals(path, \"/\")) {\n return resourceResolver.getResource(\"/\");\n }\n Resource resource = resourceResolver.getResource(path);\n if (resource != null) {\n return resource;\n }\n String parentPath = ResourceUtil.getParent(path);\n if (parentPath == null) {\n throw new IllegalArgumentException(\"Path has no parent: \" + path);\n }\n String name = ResourceUtil.getName(path);\n Resource parentResource = ensureResourceExists(parentPath);\n try {\n resource = resourceResolver.create(parentResource, name,\n ImmutableValueMap.of(JcrConstants.JCR_PRIMARYTYPE, JcrConstants.NT_UNSTRUCTURED));\n resourceResolver.commit();\n return resource;\n } catch (PersistenceException ex) {\n throw new RuntimeException(\"Unable to create resource at \" + path, ex);\n }\n }", "protected abstract String getResourcePath();", "public ResourceOperation(long time, String path, Type ctype, Target target, String ipath) {\n this(time, path, AbstractOperation.getUserName(), ctype, target, ipath);\n }", "public Diaryresource() {\r\n\t}", "Device_Resource createDevice_Resource();", "public WifisResource() {\r\n\r\n }", "public CarroResource() {\r\n }", "ObservablePath createObservablePath(final Path path) {\n return IOC.getBeanManager().lookupBean(ObservablePath.class).getInstance().wrap(path);\n }", "public PathTest() {\r\n \tsuper(null);\r\n }", "protected ValidatableResponse createResource(String path, JSONObject newResource) throws JSONException {\n return given()\n .header(HEADER_AUTHORIZATION, authenticated())\n .contentType(ContentType.JSON)\n .body(newResource.toString())\n .when()\n .post(path)\n .then()\n .contentType(ContentType.JSON)\n .statusCode(201);\n }", "protected ResourceRequest createRequest( ResourceMethod theMethod, Object ... thePathParameters ) {\r\n\t\treturn new ResourceRequest( this, theMethod, thePathParameters );\r\n\t}", "public Path getPath(Integer id) throws ResourceNotFoundException;", "protected abstract T createRessource();", "private ResourceFactory() {\r\n\t}", "public void init (String path, ResourceBundle bundle)\n {\n _path = path;\n _bundle = bundle;\n }", "public interface ResourceLocation\n{\n\t/**\n\t * Create a new location that represents this resource but with a\n\t * different extension.\n\t *\n\t * @param newExtension\n\t * @return\n\t */\n\tResourceLocation withExtension(String newExtension);\n\n\t/**\n\t * Resolve a path relative to this location.\n\t *\n\t * @param path\n\t * @return\n\t */\n\tResourceLocation resolve(String path);\n\n\t/**\n\t * Get the name of this resource.\n\t *\n\t * @return\n\t */\n\tString getName();\n}", "public DefaultCoupledResource() {\n }", "InformationResource createInformationResource();", "public FlightsResource() {\r\n }", "Network_Resource createNetwork_Resource();", "public StreamableClassPathResource(final String name) {\n super();\n this.name = name;\n }", "public SourceInterestMapResource() {\n }", "public final @NotNull Resource resource(@NotNull String path, @NotNull Object @NotNull ... properties) {\n return resource(path, MapUtil.toMap(properties));\n }", "private ResourcePackage() {}", "public BookResource() {\n }", "void createNode(String path);", "public abstract IResource getResource();", "ServiceDataResource createServiceDataResource();", "public QuoteResource() {\n }", "public static ResourceLocation constructResourceLocation(String name) {\n\t\treturn new ResourceLocation(name);\n\t}", "public ResourceUtils() {\r\n //stub\r\n }", "ResourceInstance createResource(String type) {\n Map<Resource.Type, String> mapIds = new HashMap<>();\n mapIds.put(Resource.Type.Cluster, clusterName);\n mapIds.put(Resource.Type.ClusterKerberosDescriptor, type);\n return createResource(Resource.Type.ClusterKerberosDescriptor, mapIds);\n }", "Resource create(Session session, IRI identifier, IRI type);", "public ProfileResource() {\n }", "public PathBuilder() {\n\t\tthis( null, true );\n\t}", "public Resource createRelative(String relativePath) throws IOException {\r\n\t\tthrow new FileNotFoundException(\"Cannot create a relative resource for \" + getDescription());\r\n\t}", "public WorkflowResource() {\r\n\t}", "public CardPath() {\n\t\tsuper();\n\t}", "public LinksResource() {\n }", "public Bpmn2ResourceImpl(URI uri) {\r\n super(uri);\r\n this.xmlHelper = new BpmnXmlHelper(this);\r\n this.uriHandler = new QNameURIHandler(xmlHelper);\r\n this.getDefaultLoadOptions().put(XMLResource.OPTION_URI_HANDLER, uriHandler);\r\n this.getDefaultSaveOptions().put(XMLResource.OPTION_URI_HANDLER, uriHandler);\r\n }", "public final @NotNull Resource resource(@NotNull String path, @NotNull Map<String, Object> properties) {\n String parentPath = ResourceUtil.getParent(path);\n if (parentPath == null) {\n throw new IllegalArgumentException(\"Path has no parent: \" + path);\n }\n\n // check if properties map contains maps representing child resources\n Map<String,Object> propertiesWihtoutChildren;\n Map<String,Map<String,Object>> children = getChildMaps(properties);\n if (!children.isEmpty()) {\n propertiesWihtoutChildren = new HashMap<>();\n for (Map.Entry<String, Object> entry : properties.entrySet()) {\n if (!children.containsKey(entry.getKey())) {\n propertiesWihtoutChildren.put(entry.getKey(), entry.getValue());\n }\n }\n }\n else {\n propertiesWihtoutChildren = properties;\n }\n\n // create resource\n Resource parentResource = ensureResourceExists(parentPath);\n String name = ResourceUtil.getName(path);\n Resource newResource;\n try {\n newResource = resourceResolver.create(parentResource, name, propertiesWihtoutChildren);\n } catch (PersistenceException ex) {\n throw new RuntimeException(\"Unable to create resource at \" + path, ex);\n }\n\n // create child resources\n for (Map.Entry<String,Map<String,Object>> entry : children.entrySet()) {\n resource(newResource, entry.getKey(), entry.getValue());\n }\n\n return newResource;\n }", "public ContatosResource() {\n }", "private static void createPath(Path path) {\r\n\t\tString tempStr = \"\";\r\n\t\tint finished = 1;\r\n\t\tint tempId = -1;\r\n\t\tList<GeoCoordinate> polyline = new ArrayList<GeoCoordinate>();\r\n\t\tList<Place> placeList = new ArrayList<Place>();\r\n\t\tContainerNII pathNii = new ContainerNII();\r\n\t\tPlace place;\r\n\t\t\r\n\t\twhile (finished == 1){\r\n\t\t\t\r\n\t\t\tplace = new Place();\r\n\t\t\tcreatePlace(place);\r\n\t\t\tplaceList.add(place);\r\n\t\t\tfinished = checkContinue(\"place\");\r\n\t\t}\r\n\t\tpath.setPlaces(placeList);\r\n\t\t\r\n\t\tif ((tempId = insertInteger(\"path id: \")) != -1)\r\n\t\t\tpath.setId(tempId);\t\r\n\t\t\r\n\t\tinsertNIIValues(pathNii, \"path\");\r\n\t\tpath.setNii(pathNii);\r\n\t\t\r\n\t\tif ((tempStr = insertString(\"path length: \")) != null)\r\n\t\t\tpath.setLength(tempStr);\r\n\t\t\r\n\t\tinsertPolyline(polyline, strPath);\r\n\t\tpath.setPolyline(polyline);\r\n\t\t\r\n\t\tif ((tempStr = insertString(\"path duration: \")) != null)\r\n\t\t\tpath.setDuration(tempStr);\r\n\t\t\r\n\t}", "public CwmResourceLocator createCwmResourceLocator();", "public static void createInstance(Model model, Resource instanceResource) {\r\n\t\tBase.createInstance(model, RDFS_CLASS, instanceResource);\r\n\t}", "public Resources() {\n this(DSL.name(\"Resources\"), null);\n }", "@Override\n protected PipeResourceAddress newResourceAddress0(String original, String location) {\n\n String pipeName = URIUtils.getAuthority(location);\n String pathName = URIUtils.getPath(location);\n if (pipeName == null) {\n throw new IllegalArgumentException(String.format(\"URI %s missing pipe name\", location));\n }\n if (pathName != null && !pathName.isEmpty()) {\n throw new IllegalArgumentException(String.format(PIPE_PATH_ERROR_MESSAGE, pipeName, pipeName, pathName));\n }\n\n URI uriLocation = URI.create(location);\n return new PipeResourceAddress(this, original, uriLocation);\n\n }", "public BoletajeResource() {\n }", "public CarResource() {\n }", "CollectionResource createCollectionResource();", "public free_args setPath(String path) {\n this.path = path;\n return this;\n }", "public static Paths getInstance(){\r\n if(instance == null){\r\n instance = new Paths();\r\n }\r\n return instance;\r\n }" ]
[ "0.70952535", "0.63552356", "0.6269494", "0.6226296", "0.6169349", "0.6167824", "0.61674505", "0.61246586", "0.6105013", "0.6098501", "0.6035784", "0.6031962", "0.602671", "0.60120213", "0.6011082", "0.6002738", "0.598419", "0.59780073", "0.59586775", "0.5955517", "0.59403944", "0.59170526", "0.5907309", "0.58334094", "0.5761284", "0.5761284", "0.5729017", "0.5697104", "0.56801945", "0.56631565", "0.56621355", "0.5655982", "0.5647185", "0.56435007", "0.5573232", "0.55731297", "0.5559132", "0.55550355", "0.5551291", "0.5549348", "0.554541", "0.5543205", "0.5537283", "0.5509016", "0.5508021", "0.5507308", "0.550212", "0.5500644", "0.54987043", "0.5496458", "0.5493295", "0.5487261", "0.54776216", "0.5475154", "0.54747057", "0.54598564", "0.5451731", "0.5439554", "0.5414745", "0.5408031", "0.540578", "0.54048616", "0.53960574", "0.5379859", "0.5377272", "0.5376375", "0.5373135", "0.53537446", "0.53518313", "0.5348822", "0.53482896", "0.5348202", "0.53393203", "0.5333395", "0.53210104", "0.5308499", "0.5304197", "0.52972704", "0.52957296", "0.52955323", "0.52948296", "0.5287703", "0.52713954", "0.5265671", "0.52650166", "0.5264446", "0.5264234", "0.526392", "0.5262796", "0.5244693", "0.52438164", "0.5238435", "0.5238406", "0.5232321", "0.52229047", "0.52218723", "0.5205698", "0.5204412", "0.52002925", "0.51924443" ]
0.8166594
0
PUT method for updating or creating an instance of MyPathResource
@PUT @Consumes("text/plain") public void putText(String content) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@PUT\n @Path(\"/update\")\n public void put() {\n System.out.println(\"PUT invoked\");\n }", "protected ValidatableResponse updateResource(String path, JSONObject newResource) throws JSONException {\n return given()\n .header(HEADER_AUTHORIZATION, authenticated())\n .contentType(ContentType.JSON)\n .body(newResource.toString())\n .when()\n .put(path)\n .then()\n .statusCode(204);\n }", "@PUT\n @Produces({ \"application/json\" })\n @Path(\"{id}\")\n @CommitAfter\n public abstract Response update(Person person);", "private void saveResourceAndRelationshipWithPath(Resource resource, Path path, Endpoint endpoint){\n endpoint.addRelationshipToResourceAndPath(resource, path);\n endpointRepository.save(endpoint);\n }", "@PUT\n\t@Consumes({\"text/turtle\",\"application/rdf+xml\"})\n\tResponse updateResource(String body, @HeaderParam(\"Accept\") String format);", "public Path saveOrUpdatePath(Path path);", "protected ValidatableResponse patchResource(String path, JSONObject newResource) throws JSONException {\n return given()\n .header(HEADER_AUTHORIZATION, authenticated())\n .contentType(ContentType.JSON)\n .body(newResource.toString())\n .when()\n .patch(path)\n .then()\n .statusCode(204);\n }", "@Headers({\n \"Content-Type:application/json\"\n })\n @PUT(\"users/{id}\")\n Call<Void> updateUser(\n @retrofit2.http.Path(\"id\") String id, @retrofit2.http.Body UserResource userResource\n );", "public interface IssueResource {\n\n @GET(\"/rest/api/2/issue/{issueKey}\")\n public Issue getIssue(@Path(\"issueKey\") String issueKey);\n\n @PUT(\"/rest/api/2/issue/{issueKey}\")\n public Issue updateIssue(@Path(\"issueKey\") String issueKey, @Body IssueUpdate issue);\n}", "@RequestMapping(value = \"/{id}\", method = RequestMethod.PUT)\n public void put(@PathVariable(\"id\") String id, HttpServletRequest req){\n throw new NotImplementedException(\"To be implemented\");\n }", "public ResponseTranslator put() {\n setMethod(\"PUT\");\n return doRequest();\n }", "@PUT\n @Path(\"/{register_id}\")\n @Consumes(MediaType.APPLICATION_JSON)\n Response update(@Valid @NotNull RegisterDTO registerDto, @PathParam(\"store_id\") Long storeId, @PathParam(\"register_id\") Long registerId);", "public int put(String json, String path)\n {\n\n Client client = Client.create();\n\n WebResource webResource = client.resource(getHostAddress() + \":\" + getPort() + \"/api/\" + path);\n ClientResponse response = webResource.type(\"application/json\").put(ClientResponse.class, json);\n\n\n int responser = response.getStatus();\n\n return responser;\n }", "public void\nsetPath(SoPath path)\n{\n // ref the input path\n if (path != null)\n path.ref();\n\n // nuke the old path\n if (pathOfInterest != null) {\n pathOfInterest.unref();\n pathOfInterest = null;\n }\n // and copy the new path\n if (path != null) {\n pathOfInterest = path.copy();\n pathOfInterest.ref();\n }\n\n // unref the input path\n if (path != null)\n path.unref();\n\n}", "@Override\n public final void doPut() {\n try {\n checkPermissions(getRequest());\n if (id == null) {\n throw new APIMissingIdException(getRequestURL());\n }\n\n final String inputStream = getInputStream();\n if (inputStream.length() == 0) {\n api.runUpdate(id, new HashMap<String, String>());\n return;\n }\n\n Item.setApplyValidatorMandatoryByDefault(false);\n final IItem item = getJSonStreamAsItem();\n api.runUpdate(id, getAttributesWithDeploysAsJsonString(item));\n } catch (final APIException e) {\n e.setApi(apiName);\n e.setResource(resourceName);\n throw e;\n\n }\n }", "public<T> Future<Void> update(String pathinfo) throws APIException, CadiException {\n\t\tfinal int idx = pathinfo.indexOf('?');\n\t\tfinal String qp; \n\t\tif(idx>=0) {\n\t\t\tqp=pathinfo.substring(idx+1);\n\t\t\tpathinfo=pathinfo.substring(0,idx);\n\t\t} else {\n\t\t\tqp=queryParams;\n\t\t}\n\n\t\tEClient<CT> client = client();\n\t\tclient.setMethod(PUT);\n\t\tclient.addHeader(CONTENT_TYPE, typeString(Void.class));\n\t\tclient.setQueryParams(qp);\n\t\tclient.setFragment(fragment);\n\t\tclient.setPathInfo(pathinfo);\n//\t\tclient.setPayload(new EClient.Transfer() {\n//\t\t\t@Override\n//\t\t\tpublic void transfer(OutputStream os) throws IOException, APIException {\n//\t\t\t}\n//\t\t});\n\t\tclient.send();\n\t\tqueryParams = fragment = null;\n\t\treturn client.future(null);\n\t}", "E update(ID id, E entity, RequestContext context);", "@Path(\"/{ID}\")\n @PUT\n @Consumes(MediaType.APPLICATION_JSON)\n @Produces(MediaType.APPLICATION_JSON)\n public Response update(@PathParam(\"ID\") String ID, Person person) \n throws NotFoundException, MissingInformationException {\n if(person == null) \n throw new MissingInformationException(\"No Person were found\");\n \n Document found = fetchByObjectId(ID);\n \n UpdateResult result = getCollection().updateOne(found, \n new Document(\"$set\", toDocument(person)));\n if(result.getModifiedCount() == 0)\n return Response.status(Response.Status.GONE).build();\n \n // Indicates nothing was modified at all\n return Response.status(Response.Status.ACCEPTED).build();\n }", "int updateByPrimaryKey(PathologyInfo record);", "@PUT\n\t@Path(\"/\")\n\t@Nonnull\n\t@Consumes(MediaType.APPLICATION_JSON)\n\t@Produces(MediaType.APPLICATION_JSON)\n\tExercise update(@Nonnull Exercise exercise);", "public interface PathService {\n /**\n * Used to get list of all paths\n *\n * @return list of all paths\n */\n public List<Path> getAllPaths();\n\n /**\n * Used to get a specific path\n *\n * @return path instance\n */\n public Path getPath(Integer id) throws ResourceNotFoundException;\n\n /**\n * Used to save or update a path\n *\n * @param Path path instance to save or update\n * @return path instance\n */\n public Path saveOrUpdatePath(Path path);\n}", "@RequestMapping(value = \"/test\", method = RequestMethod.PUT)\n public void test() {}", "public RestUtils setMethodPut()\n\t{\n\t\trestMethodDef.setHttpMethod(HttpMethod.PUT);\n\t\treturn this;\n\t}", "@PUT\n \t@Consumes({MediaType.APPLICATION_JSON })\n \tpublic Response putStep(Step step) {\n \t\tSystem.out.println(\"--> Step gotten: \"+step.toString());\n \t\tSystem.out.println(\"--> Step gotten: \"+step.getDate());\n \t\tSystem.out.println(\"--> Step gotten: \"+step.getId());\n\n \t\tResponse res;;\n \t\t\n \t\tif (step.getId() == 0) { // Create step\n \t\t\tres = Response.noContent().build();\n \t\t\tStep.saveStep(step);\n \t\t} else { // Modify step\n \t\t\tres = Response.created(uriInfo.getAbsolutePath()).build();\n \t\t\tStep.updateStep(step);\n \t\t}\n\n \t\treturn res;\n \t}", "@PUT\n @Path(\"{isbn}\")\n @Consumes(MediaType.APPLICATION_JSON)\n public Response updateBook(@PathParam(\"isbn\") String isbn, Book book) {\n //isbn in uri differs from isbn in book object. I do that because updateBook only gets a book object,\n //there's no possibility to check in service for the local var isbn because the json defined isbn is given to\n //the service\n if (!book.getIsbn().equals(\"\") && !isbn.equals(book.getIsbn())) {\n return Response.status(Response.Status.BAD_REQUEST)\n .entity(new JSONObject().put(\"Message\", \"Isbn differs from isbn specified in payload.\").toString())\n .build();\n }\n //no isbn in request json body\n else if (book.getIsbn().equals(\"\")) {\n book = new Book(book.getTitle(), book.getAuthor(), isbn);\n }\n\n //find and replace book object\n final BookServiceResult result = bookService.updateBook(book);\n return Response.status(result.getStatus().getStatusCode())\n .entity(getJsonFromServiceResult(result))\n .build();\n }", "@RequestMapping(method = RequestMethod.PUT, consumes = MediaType.APPLICATION_JSON_VALUE)\n //Request Body is requesting the student parameter\n public void updateStudent(@RequestBody Student student){\n studentService.updateStudent(student);\n }", "@Put\n public void storeRepresentation(Representation entity)\n throws ResourceException {\n try {\n JaxbRepresentation<Student> jaxbRep =\n new JaxbRepresentation<Student>(entity, Student.class);\n jaxbRep.validate(FileUtils.getSchema(STUDENT_INPUT_SCHEMA_PATH));\n Student updatedStudent = (Student)jaxbRep.getObject();\n dataService.putStudent(student, updatedStudent);\n getResponse().setEntity(\n new JaxbRepresentation(MediaType.TEXT_XML, updatedStudent));\n getResponse().setStatus(Status.SUCCESS_OK);\n } catch (SAXException ex) {\n logger.log(Level.SEVERE, ex.toString(), ex);\n throw new ResourceException(Status.CLIENT_ERROR_BAD_REQUEST, ex);\n } catch (Exception ex) {\n logger.log(Level.SEVERE, ex.toString(), ex);\n throw new ResourceException(Status.SERVER_ERROR_INTERNAL, ex);\n }\n }", "@PUT\n @Path(\"/register/{studentId}\")\n public void registerStudent() {\n }", "protected ValidatableResponse createResource(String path, JSONObject newResource) throws JSONException {\n return given()\n .header(HEADER_AUTHORIZATION, authenticated())\n .contentType(ContentType.JSON)\n .body(newResource.toString())\n .when()\n .post(path)\n .then()\n .contentType(ContentType.JSON)\n .statusCode(201);\n }", "@Test\n\tpublic void testUpdateResource()\n\t{\n\t\tLocalDate resDate = null;\n\t\t\n\t\tCategory cat = new Category();\n\t\tcat.setCatId(10);\n\t\tcat.setCatName(\"Clothing\");\n\t\t\n\t\tResource res = new Resource();\n\t\tres.setResId(10);\n\t\tres.setResDate(resDate);\n\t\tres.setCategory(cat);\n\t\tres.setResDescription(\"100% Cotton\");\n\t\tres.setResTitle(\"Shirt\");\n\t\tres.setResPrice(1000);\t\t\n\t\t\n\t\tres.setResId(20);\n\t\tMockito.when(resourceRepository.save(res)).thenReturn(res);\n\t\t\n\t\tassertEquals(res,resourceService.updateResource(res));\n\t\t\n\t}", "@Put\n\tpublic Representation put(Representation entity) {\n\t\tUserInfo userInfo = userInfoProvider.get();\n\t\tif (!userInfo.isSignedIn) {\n\t\t\t// TODO 401\n\t\t\treturn null;\n\t\t}\n\t\tMember member = memberDAO.readByUserId(userInfo.userId);\n\t\tKey theaterKey = Validation\n\t\t\t\t.getValidDSKey((String) getRequestAttributes()\n\t\t\t\t\t\t.get(\"theaterKey\"));\n\n\t\tif (!tmjDAO.memberHasAccessToTheater(\n\t\t\t\tKeyFactory.keyToString(memberDAO.getKey(member)),\n\t\t\t\tKeyFactory.keyToString(theaterKey))) {\n\t\t\t// TODO 401\n\t\t\treturn null;\n\t\t}\n\n\t\tKey locationKey = Validation\n\t\t\t\t.getValidDSKey((String) getRequestAttributes().get(\n\t\t\t\t\t\t\"locationKey\"));\n\n\t\t// check location belongs to given theaterKey\n\t\tif (!KeyFactory.keyToString(locationKey.getParent()).equals(\n\t\t\t\tKeyFactory.keyToString(theaterKey))) {\n\t\t\t// TODO 401\n\t\t\treturn null;\n\t\t}\n\n\t\t// Location locationOld = locationDAO.read(locationKey);\n\n\t\tLocation locationNew = null;\n\n\t\ttry {\n\t\t\tlocationNew = gson.fromJson(entity.getText(), Location.class);\n\t\t} catch (JsonParseException 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\t// TODO support partial operations\n\n\t\tlocationDAO.update(locationNew, locationKey);\n\n\t\t// TODO return locationNew with key info\n\t\treturn null;\n\t}", "@PutMapping(value = \"/update\", produces = \"application/json\")\n void update(@RequestParam int id, @RequestBody Patient patient);", "@RequestMapping(value = \"/shopressource\", method = RequestMethod.PUT)\n ShopRessource updateShopRessource(@RequestBody ShopRessource shopRessource);", "@PUT\n @Path(\"/\")\n public Response createOrUpdatePut(final EntityBody customEntity) {\n\n if (entityDefinition == null) {\n return Response.status(Status.NOT_FOUND).build();\n }\n entityDefinition.getService().createOrUpdateCustom(entityId, customEntity);\n return Response.status(Status.NO_CONTENT).build();\n }", "@PUT\n @Consumes\n public Response createOrReplaceObjectRdf(\n @HeaderParam(CONTENT_TYPE) final MediaType requestContentType,\n final InputStream requestBodyStream,\n @HeaderParam(CONTENT_DISPOSITION) final String contentDispositionRaw,\n @HeaderParam(\"If-Match\") final String ifMatch,\n @HeaderParam(LINK) final List<String> rawLinks,\n @HeaderParam(\"Digest\") final String digest)\n throws InvalidChecksumException, MalformedRdfException, UnsupportedAlgorithmException,\n PathNotFoundException {\n LOGGER.info(\"PUT to create resource with ID: {}\", externalPath());\n\n if (externalPath.contains(\"/\" + FedoraTypes.FCR_VERSIONS)) {\n handleRequestDisallowedOnMemento();\n\n return status(METHOD_NOT_ALLOWED).build();\n }\n\n hasRestrictedPath(externalPath);\n\n final var transaction = transaction();\n\n try {\n final List<String> links = unpackLinks(rawLinks);\n\n // If request is an external binary, verify link header before proceeding\n final ExternalContent extContent = extContentHandlerFactory.createFromLinks(links);\n\n final String interactionModel = checkInteractionModel(links);\n\n final FedoraId fedoraId = identifierConverter().pathToInternalId(externalPath());\n final boolean resourceExists = doesResourceExist(transaction, fedoraId, true);\n\n if (resourceExists) {\n\n if (httpConfiguration.putRequiresIfMatch() && StringUtils.isBlank(ifMatch)) {\n throw new ClientErrorException(\"An If-Match header is required\", 428);\n }\n\n final String resInteractionModel = resource().getInteractionModel();\n if (StringUtils.isNoneBlank(resInteractionModel, interactionModel) &&\n !Objects.equals(resInteractionModel, interactionModel)) {\n throw new InteractionModelViolationException(\"Changing the interaction model \" + resInteractionModel\n + \" to \" + interactionModel + \" is not allowed!\");\n }\n evaluateRequestPreconditions(request, servletResponse, resource(), transaction);\n }\n\n if (isGhostNode(transaction(), fedoraId)) {\n throw new GhostNodeException(\"Resource path \" + externalPath() + \" is an immutable resource.\");\n }\n\n if (!resourceExists && fedoraId.isDescription()) {\n // Can't PUT a description to a non-existant binary.\n final String message;\n if (fedoraId.asBaseId().isRepositoryRoot()) {\n message = \"The root of the repository is not a binary, so /\" + FCR_METADATA + \" does not exist.\";\n } else {\n message = \"Binary at path \" + fedoraId.asBaseId().getFullIdPath() + \" not found\";\n }\n throw new PathNotFoundException(message);\n }\n\n final var providedContentType = getSimpleContentType(requestContentType);\n\n final var created = new AtomicBoolean(false);\n\n if ((resourceExists && resource() instanceof Binary) ||\n (!resourceExists && isBinary(interactionModel,\n providedContentType,\n requestBodyStream != null && providedContentType != null,\n extContent != null))) {\n ensureArchivalGroupHeaderNotPresentForBinaries(links);\n\n final Collection<URI> checksums = parseDigestHeader(digest);\n final var binaryType = requestContentType != null ?\n requestContentType : DEFAULT_NON_RDF_CONTENT_TYPE;\n final var contentType = extContent == null ?\n binaryType.toString() : extContent.getContentType();\n\n final String originalFileName;\n final long contentSize;\n\n if (StringUtils.isNotBlank(contentDispositionRaw)) {\n final var contentDisposition = ContentDisposition.parse(contentDispositionRaw);\n originalFileName = contentDisposition.getFilename();\n contentSize = contentDisposition.getSize() == null ? -1L : contentDisposition.getSize();\n } else {\n originalFileName = \"\";\n contentSize = -1L;\n }\n\n doInDbTx(() -> {\n if (resourceExists) {\n replaceBinariesService.perform(transaction,\n getUserPrincipal(),\n fedoraId,\n originalFileName,\n contentType,\n checksums,\n requestBodyStream,\n contentSize,\n extContent);\n } else {\n createResourceService.perform(transaction,\n getUserPrincipal(),\n fedoraId,\n contentType,\n originalFileName,\n contentSize,\n links,\n checksums,\n requestBodyStream,\n extContent);\n created.set(true);\n }\n transaction.commitIfShortLived();\n });\n } else {\n final var contentType = requestContentType != null ? requestContentType : DEFAULT_RDF_CONTENT_TYPE;\n final Model model = httpRdfService.bodyToInternalModel(fedoraId, requestBodyStream,\n contentType, identifierConverter(), hasLenientPreferHeader());\n\n doInDbTxWithRetry(() -> {\n if (resourceExists) {\n replacePropertiesService.perform(transaction,\n getUserPrincipal(),\n fedoraId,\n model);\n } else {\n createResourceService.perform(transaction, getUserPrincipal(), fedoraId, links, model);\n created.set(true);\n }\n transaction.commitIfShortLived();\n });\n }\n\n LOGGER.debug(\"Finished creating resource with path: {}\", externalPath());\n\n return createUpdateResponse(getFedoraResource(transaction, fedoraId), created.get());\n } finally {\n transaction.releaseResourceLocksIfShortLived();\n }\n }", "@RequestMapping(method = RequestMethod.PUT)\n public <T extends Pet> void updatePet(@RequestBody T pet) {\n throw new UnsupportedOperationException();\n }", "HttpPut putRequest(HttpServletRequest request, String address) throws IOException;", "@PutMapping(\"/emp\")\n\tpublic ResponseEntity<EmployeeResource> updateEmp(@RequestBody EmployeeResource employeeResource)\n\t{\n\t\temployeeResource = employeeService.saveEmp(employeeResource);\n\t\t\n\t\treturn new ResponseEntity<>(employeeResource, HttpStatus.OK);\n\t}", "T put(T obj) throws DataElementPutException, RepositoryAccessDeniedException;", "@Override\n public DataObjectResponse<Agenda> handlePUT(DataObjectRequest<Agenda> request)\n {\n return super.handlePUT(request);\n }", "public NcrackClient onPath(String path) {\n this.path = Optional.of(path);\n return this;\n }", "@Path(\"/people\")\npublic interface PersonResource {\n\n /**\n * Returns an array of all the Person entities currently stored. Extra QueryParams can be added to enable filtering. Currently the 'sort' parameter will indicate what field the returned results will be sorted by.\n */\n @GET\n @Produces({ \"application/json\" })\n public abstract Response get(@QueryParam(\"sort\") String sort);\n\n /**\n * Adds a new Person instance\n */\n @POST\n @Produces({ \"application/json\" })\n @CommitAfter\n public abstract Response addNew(Person person);\n\n /**\n * Updates details about a Person\n */\n @PUT\n @Produces({ \"application/json\" })\n @Path(\"{id}\")\n @CommitAfter\n public abstract Response update(Person person);\n\n /**\n * Attempts to retrieve the Person represented by an Id\n */\n @GET\n @Path(\"{id}\")\n @Produces({ \"application/json\" })\n public abstract Response find(@PathParam(\"id\") Long id);\n\n}", "int updateByExample(@Param(\"record\") Resource record, @Param(\"example\") ResourceExample example);", "@RequestMapping(value = \"/tshirt\", method = RequestMethod.PUT)\n @ResponseStatus(value = HttpStatus.OK)\n public void updateTShirt(@RequestBody @Valid TShirt tShirt) {\n // Get the TShirt from the database\n TShirt tShirtFromDB = serviceLayer.getTShirt(tShirt.getId());\n\n // Update the TShirt if it is found in the database\n if (tShirtFromDB != null) {\n serviceLayer.updateTShirt(tShirt);\n } else {\n throw new IllegalArgumentException(\"There is no T-Shirt with id: \" + tShirt.getId());\n }\n }", "void setPath(String path);", "int updateByPrimaryKey(ResourcePojo record);", "@PutMapping\n public void updateUser(@RequestBody User user) { userService.updateUser(user);}", "int updateByPrimaryKeySelective(PathologyInfo record);", "@RestAPI\n \t@PreAuthorize(\"hasAnyRole('A')\")\n \t@RequestMapping(value = \"/api/{id}\", params = \"action=update\", method = RequestMethod.PUT)\n \tpublic HttpEntity<String> update(@PathVariable(\"id\") Long id) {\n \t\tagentManagerService.update(id);\n \t\treturn successJsonHttpEntity();\n \t}", "@PutMapping(\"/locations\")\n public Location updateLocation(@RequestBody Location location){\n\n service.saveItem(location);\n\n return location;\n }", "@PUT\n @Consumes({\"application/xml\", \"application/json\"})\n @Path(\"/{version}\")\n public String commit(@PathParam(\"version\") String version) {\n throw new UnsupportedOperationException();\n }", "int updateByPrimaryKey(Resource record);", "@PUT\n @Path(\"/{requirementId}\")\n @Consumes(MediaType.APPLICATION_JSON)\n @Produces(MediaType.APPLICATION_JSON)\n @ApiOperation(value = \"This method updates a specific requirement.\")\n @ApiResponses(value = {\n @ApiResponse(code = HttpURLConnection.HTTP_OK, message = \"Returns the updated requirement\", response = RequirementEx.class),\n @ApiResponse(code = HttpURLConnection.HTTP_UNAUTHORIZED, message = \"Unauthorized\"),\n @ApiResponse(code = HttpURLConnection.HTTP_NOT_FOUND, message = \"Not found\"),\n @ApiResponse(code = HttpURLConnection.HTTP_INTERNAL_ERROR, message = \"Internal server problems\")\n })\n public Response updateRequirement(@PathParam(\"requirementId\") int requirementId,\n @ApiParam(value = \"Requirement entity\", required = true) Requirement requirementToUpdate) {\n DALFacade dalFacade = null;\n try {\n String registratorErrors = service.bazaarService.notifyRegistrators(EnumSet.of(BazaarFunction.VALIDATION, BazaarFunction.USER_FIRST_LOGIN_HANDLING));\n if (registratorErrors != null) {\n ExceptionHandler.getInstance().throwException(ExceptionLocation.BAZAARSERVICE, ErrorCode.UNKNOWN, registratorErrors);\n }\n UserAgent agent = (UserAgent) Context.getCurrent().getMainAgent();\n long userId = agent.getId();\n Gson gson = new Gson();\n Vtor vtor = service.bazaarService.getValidators();\n vtor.validate(requirementToUpdate);\n if (vtor.hasViolations()) {\n ExceptionHandler.getInstance().handleViolations(vtor.getViolations());\n }\n dalFacade = service.bazaarService.getDBConnection();\n Integer internalUserId = dalFacade.getUserIdByLAS2PeerId(userId);\n boolean authorized = new AuthorizationManager().isAuthorized(internalUserId, PrivilegeEnum.Modify_REQUIREMENT, dalFacade);\n if (!authorized) {\n ExceptionHandler.getInstance().throwException(ExceptionLocation.BAZAARSERVICE, ErrorCode.AUTHORIZATION, Localization.getInstance().getResourceBundle().getString(\"error.authorization.requirement.modify\"));\n }\n if (requirementToUpdate.getId() != 0 && requirementId != requirementToUpdate.getId()) {\n ExceptionHandler.getInstance().throwException(ExceptionLocation.BAZAARSERVICE, ErrorCode.UNKNOWN, \"Id does not match\");\n }\n dalFacade.followRequirement(internalUserId, requirementToUpdate.getId());\n RequirementEx updatedRequirement = dalFacade.modifyRequirement(requirementToUpdate, internalUserId);\n service.bazaarService.getNotificationDispatcher().dispatchNotification(service, updatedRequirement.getLastupdated_time(), Activity.ActivityAction.UPDATE, updatedRequirement.getId(),\n Activity.DataType.REQUIREMENT, updatedRequirement.getComponents().get(0).getId(), Activity.DataType.COMPONENT, internalUserId);\n return Response.ok(gson.toJson(updatedRequirement)).build();\n } catch (BazaarException bex) {\n if (bex.getErrorCode() == ErrorCode.AUTHORIZATION) {\n return Response.status(Response.Status.UNAUTHORIZED).entity(ExceptionHandler.getInstance().toJSON(bex)).build();\n } else if (bex.getErrorCode() == ErrorCode.NOT_FOUND) {\n return Response.status(Response.Status.NOT_FOUND).entity(ExceptionHandler.getInstance().toJSON(bex)).build();\n } else {\n return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(ExceptionHandler.getInstance().toJSON(bex)).build();\n }\n } catch (Exception ex) {\n BazaarException bex = ExceptionHandler.getInstance().convert(ex, ExceptionLocation.BAZAARSERVICE, ErrorCode.UNKNOWN, \"\");\n return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(ExceptionHandler.getInstance().toJSON(bex)).build();\n } finally {\n service.bazaarService.closeDBConnection(dalFacade);\n }\n }", "public Client update(Client updated) throws EntityNotFoundException;", "public EndpointBuilder _path_(String _path_) {\n this.endpointImpl.setPath(_path_);\n return this;\n }", "@Test\n public void testExposesUpdate() throws Exception {\n Link customer = findCustomersLinks().iterator().next();\n byte[] bytes = Files.readAllBytes(Paths.get(\"src/test/resources/customer-update.txt\"));\n\n mockMvc\n .perform(put(customer.getHref())\n .contentType(MediaType.APPLICATION_JSON)\n .content(bytes))\n .andExpect(status().isNoContent());\n\n MockHttpServletResponse response2 = request(customer.getHref());\n\n assertThat(\"Firstname field was updated correctly\",\n JsonPath.read(response2.getContentAsString(), \"firstname\").toString(),\n is(\"Ralph\"));\n }", "public Response put(String path, String contentType, byte[] content)\n throws IOException {\n return put(cluster, path, contentType, content);\n }", "public void setPath(String path);", "public void PUT(String line) {\r\n\t\tanalisisURL(line);\r\n\t}", "public void updatePathAndFile(String path, String file){\r\n\t\tthis.path = path;\r\n\t\tthis.file = file;\r\n\t}", "public synchronized void update(long entry, String type, String path)\n throws IOException {\n if (type == null)\n throw new IllegalArgumentException(\"Type cannot be null\");\n if (path == null)\n throw new IllegalArgumentException(\"Path cannot be null\");\n \n // Check if the new path fits the current index\n int typeLengthInBytes = type.getBytes().length;\n int pathLengthInBytes = path.getBytes().length;\n \n // Make sure there is still room left for an additional entry. One entry\n // consists of the uuid, the path and a closing '\\n'\n if (typeLengthInBytes >= bytesPerType || pathLengthInBytes >= bytesPerPath) {\n \n // Make sure the type field is long enough\n int newBytesPerType = bytesPerType;\n if (typeLengthInBytes >= bytesPerType) {\n logger.info(\"Type doesn't fit, triggering index resize\");\n while (newBytesPerType < typeLengthInBytes)\n newBytesPerType *= 2;\n }\n \n // Make sure the path field is long enough\n int newBytesPerPath = bytesPerPath;\n if (pathLengthInBytes >= bytesPerPath) {\n logger.info(\"Path doesn't fit, triggering index resize\");\n while (newBytesPerPath < pathLengthInBytes)\n newBytesPerPath *= 2;\n }\n \n bytesPerSlot = resize(bytesPerId, newBytesPerType, newBytesPerPath);\n }\n \n long startOfEntry = IDX_START_OF_CONTENT + (entry * bytesPerSlot);\n \n // Write the path to the index\n idx.seek(startOfEntry);\n idx.skipBytes(bytesPerId);\n idx.write(type.getBytes());\n idx.write(new byte[bytesPerType - type.getBytes().length]);\n idx.write(path.getBytes());\n idx.writeChar('\\n');\n idx.write(new byte[bytesPerPath - pathLengthInBytes - 2]);\n \n logger.debug(\"Updated uri at address '{}' to {}\", entry, path);\n }", "public free_args setPath(String path) {\n this.path = path;\n return this;\n }", "@JsonProperty(\"path\")\r\n public void setPath(String path) {\r\n this.path = path;\r\n }", "@JsonProperty(\"path\")\r\n public void setPath(String path) {\r\n this.path = path;\r\n }", "Patient update(Patient patient);", "@Override\r\n @PutMapping(\"{id}\")\r\n public Action update(@Valid @RequestBody Action newObj, @PathVariable Long id) {\r\n Action action = findById(id);\r\n action.setUrl(null);\r\n action.setOverviewId(null);\r\n action.setPath(null);\r\n action.setType(newObj.getType());\r\n\r\n switch (action.getType()) {\r\n case External_Url:\r\n action.setUrl(newObj.getUrl());\r\n break;\r\n case Overview:\r\n action.setOverviewId(newObj.getOverviewId());\r\n break;\r\n case Path:\r\n action.setPath(newObj.getPath());\r\n break;\r\n }\r\n return service.save(action);\r\n }", "@PUT\n @Consumes(\"application/xml\")\n public void putXml(@PathParam(\"id\") String id, String content) {\n }", "@RequestMapping(value = \"/enquirys\",\n method = RequestMethod.PUT,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<Void> update(@Valid @RequestBody Enquiry enquiry) throws URISyntaxException {\n log.debug(\"REST request to update Enquiry : {}\", enquiry);\n if (enquiry.getId() == null) {\n return create(enquiry);\n }\n enquiryRepository.save(enquiry);\n return ResponseEntity.ok().build();\n }", "public void setResourcePath(String resourcePath) {\n //To change body of implemented methods use File | Settings | File Templates.\n }", "@Test\r\n\t public void updateAnExistingRouteFather(){\r\n\t\t this.routeFather.setDescription(\"yolo\");\r\n\t\t routeFatherDAO.update(this.routeFather);\r\n\t\t Assert.assertNotNull(\"it should returns not null\", this.routeFather);\r\n\t\t Assert.assertEquals(\"email should be yolo\", this.routeFather.getDescription(), \"yolo\");\r\n\t\t routeFatherDAO.delete(routeFather);\r\n\t\t \r\n\t }", "public void updatePath() {\n\t\tString oldPath = this.path;\n\t\tif (materializePath()) {\n\t\t\tPageAlias.create(this, oldPath);\n\t\t\tupdateChildPaths();\n\t\t}\n\t}", "int updRouteById(Route record) throws RouteNotFoundException;", "@Test\n public void invokePathHandlerOnExistingResource2() {\n ctx.param(ParamNames.PATH, \"foo/bar.txt\");\n pathHandler.handle(ctx);\n ByteArrayOutputStream baos = (ByteArrayOutputStream)resp.outputStream();\n String s = new String(baos.toByteArray());\n ceq(\"foo/bar.txt\", s);\n }", "E update(E entity);", "E update(E entity);", "@PutMapping(\"/{id}\")\n public void update(@PathVariable Long id, @RequestBody SignUpPayload payload) {\n\n }", "public <T extends Object> T put(String url, Class<T> clazz, Object entity) {\n\t if (entity == null) {\n\t return webResource.path(url).type(MediaType.APPLICATION_JSON).put(clazz);\n\t }\n\t\treturn webResource.path(url).type(MediaType.APPLICATION_JSON).put(clazz, entity);\n\t}", "@RequestMapping(value=\"/{id}\",method=RequestMethod.PUT,consumes=MediaType.APPLICATION_JSON_VALUE)\r\n\t\tpublic void updateDoctor(@RequestBody Doctor doctor){\r\n\t\t\t\r\n\t\t\tdoctorService.updateDoctor(doctor);\r\n\t\t\t\r\n\t\t}", "@JsonProperty(\"path\")\n public void setPath(String path) {\n this.path = path;\n }", "public HttpBuilder<E,T> setPath (String path)\n\t{\n\t\tthis.path = String.format(path);\n\t\treturn this;\n\t}", "@PUT\n @JWTTokenNeeded\n @Consumes({MediaType.APPLICATION_JSON})\n @Produces({MediaType.APPLICATION_JSON})\n public Response update(EscenarioDTO entidad) {\n logger.log(Level.INFO, \"entidad:{0}\", entidad);\n \n try {\n \tConciliacion entidadPadreJPA = null;\n if (entidad.getIdConciliacion() != null) {\n entidadPadreJPA = padreDAO.find(entidad.getIdConciliacion());\n if (entidadPadreJPA == null) {\n throw new DataNotFoundException(Response.Status.NOT_FOUND.getReasonPhrase() + entidad.getIdConciliacion());\n }\n }\n //Hallar La entidad actual para actualizarla\n Escenario entidadJPA = managerDAO.find(entidad.getId());\n if (entidadJPA != null) {\n entidadJPA.setFechaActualizacion(Date.from(Instant.now()));\n entidadJPA.setNombre(entidad.getNombre() != null ? entidad.getNombre() : entidadJPA.getNombre());\n entidadJPA.setImpacto(entidad.getImpacto() != null ? entidad.getImpacto() : entidadJPA.getImpacto());\n entidadJPA.setDescripcion(entidad.getDescripcion() != null ? entidad.getDescripcion() : entidadJPA.getDescripcion());\n \n Boolean actualizarConciliacion = false;\n entidadJPA.setConciliacion(entidad.getIdConciliacion() != null ? (entidadPadreJPA != null ? entidadPadreJPA : null) : entidadJPA.getConciliacion());\n \n Conciliacion conciliacionpadreactual = null;\n \n \n if (entidadJPA.getConciliacion() != null && !Objects.equals(entidadJPA.getConciliacion().getId(), entidad.getIdConciliacion())){\n actualizarConciliacion = true;\n conciliacionpadreactual = padreDAO.find(entidadJPA.getConciliacion().getId());\n }\n //entidadJPA.setConciliacion(entidad.getIdConciliacion() != null ? (entidadPadreJPA != null ? entidadPadreJPA : null) : entidadJPA.getConciliacion());\n managerDAO.edit(entidadJPA);\n if (actualizarConciliacion){\n if ((entidadPadreJPA != null)) {\n entidadPadreJPA.addEscenario(entidadJPA);\n padreDAO.edit(entidadPadreJPA);\n conciliacionpadreactual.removeEscenario(entidadJPA);\n padreDAO.edit(conciliacionpadreactual);\n }\n }\n LogAuditoria logAud = new LogAuditoria(this.modulo, Constantes.Acciones.EDITAR.name(), Date.from(Instant.now()), entidad.getUsername(), entidadJPA.toString());\n logAuditoriaDAO.create(logAud);\n \n ResponseWrapper wraper = new ResponseWrapper(true,I18N.getMessage(\"escenario.update\", entidad.getNombre()) ,entidadJPA.toDTO());\n \treturn Response.ok(wraper,MediaType.APPLICATION_JSON).build();\n }\n \n ResponseWrapper wraper = new ResponseWrapper(false,I18N.getMessage(\"escenario.notfound\", entidad.getNombre()));\n \treturn Response.ok(wraper,MediaType.APPLICATION_JSON).build();\n }catch (Exception e) {\n \tif(e.getCause() != null && (e.getCause() instanceof DataAlreadyExistException || e.getCause() instanceof DataNotFoundException)) {\n \t\tlogger.log(Level.SEVERE, e.getMessage(), e);\n \t\tResponseWrapper wraper = new ResponseWrapper(false, e.getCause().getMessage(), 500);\n \t\treturn Response.ok(wraper,MediaType.APPLICATION_JSON).build();\n \t}else {\n \t\tlogger.log(Level.SEVERE, e.getMessage(), e);\n \t\tResponseWrapper wraper = new ResponseWrapper(false, I18N.getMessage(\"general.readerror\"), 500);\n \t\treturn Response.ok(wraper,MediaType.APPLICATION_JSON).build();\n \t}\n }\n }", "@Override\n\tpublic void doPut(HttpRequest request, AbstractHttpResponse response)\n\t\t\tthrows IOException {\n\t\t\n\t}", "void doPut(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException;", "@Override\r\n\tpublic void updateResourceInformation() {\n\t}", "@RequestMapping(value=\"/update\", method = RequestMethod.PUT)\r\n\t @ResponseBody\r\n//\t public String updateUser(Long id, String userName, String phone, String email, String password, Date dateOfBirth, String userNotes) {\r\n\t public UserDto update(UserDto userDto) \r\n\t {\r\n\t\t return service.update(userDto);\r\n\t }", "@Override\n @PUT\n @Path(\"/update/{id}\")\n public void update(@PathParam(\"id\") int id, Author author) {\n EntityManager em = PersistenceUtil.getEntityManagerFactory().createEntityManager();\n AuthorDao authorDao = new AuthorDao(em);\n authorDao.update(id,author);\n }", "@Override\n\tpublic void updateResourceInformation() {\n\t}", "DcsResourceDO findResourceForUpdate(String resourceId);", "public void setResourcePath(IPath path) {\n setResourcePath(path != null ? path.toString() : \"\");\n }", "E update(E entity) throws ValidationException;", "@PutMapping(\"/products/{id}\")\r\n\tpublic Employee update(@RequestBody Employee employee, @PathVariable Integer id) {\r\n\t \r\n\t Employee exitEmployee= empService.get(id);\r\n\t empService.save(employee); \r\n\t return exitEmployee;\r\n\t}", "@PutMapping(\"/products\") \nprivate Products update(@RequestBody Products products) \n{ \nproductsService.saveOrUpdate(products); \nreturn products; \n}", "T update(T entity);", "T update(T entity);", "@Test(dependsOnMethods = {\"modifyResource\"})\n public void modifyNotExistingResource() throws Exception {\n showTitle(\"modifyNotExistingResource\");\n\n try {\n UmaResource resource = new UmaResource();\n resource.setName(\"Photo Album 3\");\n resource.setIconUri(\"http://www.example.com/icons/flower.png\");\n resource.setScopes(Arrays.asList(\"http://photoz.example.com/dev/scopes/view\", \"http://photoz.example.com/dev/scopes/all\"));\n\n getResourceService().updateResource(\"Bearer \" + pat.getAccessToken(), \"fake_resource_id\", resource);\n } catch (ClientErrorException ex) {\n System.err.println(ex.getResponse().readEntity(String.class));\n int status = ex.getResponse().getStatus();\n assertTrue(status != Response.Status.OK.getStatusCode(), \"Unexpected response status\");\n }\n }", "@PutMapping\n public ResponseEntity<IngredientDTO> updateIngredient(@RequestBody IngredientDTO ingredientDTO) throws URISyntaxException{\n if (ingredientDTO.getId() == null){\n return createIngredient(ingredientDTO);\n }\n IngredientDTO updatedIngredient = ingredientService.saveOrUpdateIngredient(ingredientDTO);\n return ResponseEntity.created(new URI(\"/api/ingredient/\" + updatedIngredient.getId()))\n .headers(HttpHeadersUtil.updateEntityAlert(ENTITY_NAME, updatedIngredient.getId().toString()))\n .body(updatedIngredient);\n }", "@Test\r\n\t public void updateANonExistingRouteFather(){\r\n\t\t RouteFather routeFather = new RouteFather(888988);\r\n\t\t routeFather = routeFatherDAO.update(routeFather);\r\n\t\t Assert.assertNull(\"it should returns null\", routeFather);\r\n\t }", "public void updateEntity();", "public void update()\n {\n modifier = coral.getCurrentSubject();\n modified = new Date();\n try\n {\n persistence.save(this);\n }\n catch(SQLException e)\n {\n throw new BackendException(\"failed to update resource's persitent image\", e);\n }\n try\n {\n Resource impl = coral.getStore().getResource(getId());\n coralEventHub.getGlobal().fireResourceChangeEvent(impl, modifier);\n }\n catch(EntityDoesNotExistException e)\n {\n throw new BackendException(\"inconsistent data\", e);\n }\n }", "public void setPath(Path path) {\n this.path = path;\n }", "@RequestMapping(path = \"/{appointmentId}\", method = RequestMethod.PUT, produces = \"application/json\", consumes = \"application/json\")\n\t@ResponseStatus(HttpStatus.OK)\n\tpublic Appointment update(@PathVariable Long appointmentId, @RequestBody Appointment appointment) {\n\t\treturn appointmentService.update(appointmentId, appointment);\n\t}" ]
[ "0.6909629", "0.68274903", "0.6424113", "0.62680984", "0.6261661", "0.6191063", "0.6056232", "0.6046694", "0.6037308", "0.59294087", "0.5897472", "0.58626264", "0.5792416", "0.56938547", "0.56673765", "0.5655308", "0.56321985", "0.56165653", "0.5583527", "0.55770266", "0.5561074", "0.5556793", "0.55097055", "0.55088335", "0.5477477", "0.54197997", "0.5400739", "0.5399867", "0.53961146", "0.53872824", "0.53754413", "0.53687155", "0.53378356", "0.5311961", "0.53027844", "0.52904916", "0.5283333", "0.5275399", "0.5265827", "0.52516687", "0.5239393", "0.5232635", "0.52288914", "0.5225574", "0.5217868", "0.52132624", "0.5187241", "0.51789415", "0.5178685", "0.51638734", "0.5154267", "0.5151433", "0.51470834", "0.5138702", "0.5131806", "0.51311177", "0.5130997", "0.51286876", "0.5128664", "0.5118095", "0.5116431", "0.51084644", "0.51079583", "0.51079583", "0.51038355", "0.5102975", "0.5100874", "0.5100425", "0.5089675", "0.50877035", "0.5085225", "0.50847864", "0.50812566", "0.5074111", "0.5074111", "0.5070427", "0.5067859", "0.5064921", "0.50621694", "0.505544", "0.50515693", "0.50512165", "0.5051092", "0.50446093", "0.5042114", "0.50420195", "0.50409067", "0.5033558", "0.50332975", "0.50243133", "0.5021715", "0.5020591", "0.5015213", "0.5015213", "0.5015151", "0.5013784", "0.5006796", "0.50049084", "0.5004665", "0.50027543", "0.5002518" ]
0.0
-1
ExStart ExFor:HtmlLoadOptions.ctor ExFor:HtmlLoadOptions.SupportVml ExSummary:Shows how to support conditional comments while loading an HTML document.
@Test (dataProvider = "supportVmlDataProvider") public void supportVml(boolean supportVml) throws Exception { HtmlLoadOptions loadOptions = new HtmlLoadOptions(); // If the value is true, then we take VML code into account while parsing the loaded document. loadOptions.setSupportVml(supportVml); // This document contains a JPEG image within "<!--[if gte vml 1]>" tags, // and a different PNG image within "<![if !vml]>" tags. // If we set the "SupportVml" flag to "true", then Aspose.Words will load the JPEG. // If we set this flag to "false", then Aspose.Words will only load the PNG. Document doc = new Document(getMyDir() + "VML conditional.htm", loadOptions); if (supportVml) Assert.assertEquals(ImageType.JPEG, ((Shape)doc.getChild(NodeType.SHAPE, 0, true)).getImageData().getImageType()); else Assert.assertEquals(ImageType.PNG, ((Shape)doc.getChild(NodeType.SHAPE, 0, true)).getImageData().getImageType()); //ExEnd Shape imageShape = (Shape)doc.getChild(NodeType.SHAPE, 0, true); if (supportVml) TestUtil.verifyImageInShape(400, 400, ImageType.JPEG, imageShape); else TestUtil.verifyImageInShape(400, 400, ImageType.PNG, imageShape); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public LagartoDOMBuilder enableHtmlMode() {\n\t\tconfig.ignoreWhitespacesBetweenTags = false; // collect all whitespaces\n\t\tconfig.parserConfig.setCaseSensitive(false); // HTML is case insensitive\n\t\tconfig.parserConfig.setEnableRawTextModes(true); // script and style tags are parsed as CDATA\n\t\tconfig.enabledVoidTags = true; // list of void tags\n\t\tconfig.selfCloseVoidTags = false; // don't self close void tags\n\t\tconfig.impliedEndTags = true; // some tags end is implied\n\t\tconfig.parserConfig.setEnableConditionalComments(false); // don't enable IE conditional comments\n\t\tconfig.parserConfig.setParseXmlTags(false); // enable XML mode in parsing\n\t\treturn this;\n\t}", "public AdmClientePreferencialHTML() {\n/* 191 */ this(StandardDocumentLoader.getInstance());\n/* */ \n/* 193 */ buildDocument();\n/* */ }", "public PoaMaestroMultivaloresHTML() {\n/* 253 */ this(StandardDocumentLoader.getInstance());\n/* */ \n/* 255 */ buildDocument();\n/* */ }", "public IndicadoresEficaciaHTML() {\n/* 163 */ this(StandardDocumentLoader.getInstance());\n/* */ \n/* 165 */ buildDocument();\n/* */ }", "public AdmClientePreferencialHTML(DocumentLoader loader, boolean buildDOM) {\n/* 224 */ this.fDocumentLoader = loader;\n/* */ \n/* 226 */ if (buildDOM)\n/* */ {\n/* 228 */ buildDocument();\n/* */ }\n/* */ }", "public AdmClientePreferencialHTML(DocumentLoader loader) { this(loader, true); }", "public AdmClientePreferencialHTML(boolean buildDOM) { this(StandardDocumentLoader.getInstance(), buildDOM); }", "public abstract WalkerDocument newDocument(String path, IOptions options) throws HtmlWalkerException;", "public PoaMaestroMultivaloresHTML(DocumentLoader loader, boolean buildDOM) {\n/* 286 */ this.fDocumentLoader = loader;\n/* */ \n/* 288 */ if (buildDOM)\n/* */ {\n/* 290 */ buildDocument();\n/* */ }\n/* */ }", "public IndicadoresEficaciaHTML(DocumentLoader loader, boolean buildDOM) {\n/* 196 */ this.fDocumentLoader = loader;\n/* */ \n/* 198 */ if (buildDOM)\n/* */ {\n/* 200 */ buildDocument();\n/* */ }\n/* */ }", "public void setInfoHtmlContent(String htmlInfoContent);", "public interface Options {\n\n /**\n * Returns true if Jasper issues a compilation error instead of a runtime\n * Instantiation error if the class attribute specified in useBean action\n * is invalid.\n */\n public boolean getErrorOnUseBeanInvalidClassAttribute();\n\n /**\n * Are we keeping generated code around?\n */\n public boolean getKeepGenerated();\n\n /**\n * Returns true if tag handler pooling is enabled, false otherwise.\n */\n public boolean isPoolingEnabled();\n\n /**\n * Are we supporting HTML mapped servlets?\n */\n public boolean getMappedFile();\n\n /**\n * Should errors be sent to client or thrown into stderr?\n */\n public boolean getSendErrorToClient();\n \n /**\n * Should we include debug information in compiled class?\n */\n public boolean getClassDebugInfo();\n\n /**\n * Background compile thread check interval in seconds\n */\n public int getCheckInterval();\n\n /**\n * Is Jasper being used in development mode?\n */\n public boolean getDevelopment();\n\n /**\n * Is the generation of SMAP info for JSR45 debugging suppressed?\n */\n public boolean isSmapSuppressed();\n\n /**\n * Indicates whether SMAP info for JSR45 debugging should be dumped to a\n * file.\n * Ignored is suppressSmap() is true\n */\n public boolean isSmapDumped();\n\n /**\n * Should white spaces between directives or actions be trimmed?\n */\n public boolean getTrimSpaces();\n\n /**\n * Class ID for use in the plugin tag when the browser is IE. \n */\n public String getIeClassId();\n\n /**\n * What is my scratch dir?\n */\n public File getScratchDir();\n\n /**\n * What classpath should I use while compiling the servlets\n * generated from JSP files?\n */\n public String getClassPath();\n\n // START PWC 1.2 6311155\n /**\n * Gets the system class path.\n *\n * @return The system class path\n */\n public String getSystemClassPath();\n // END PWC 1.2 6311155\n\n /**\n * Compiler to use.\n */\n public String getCompiler();\n\n /**\n * The compiler target VM, e.g. 1.1, 1.2, 1.3, 1.4, or 1.5.\n */\n public String getCompilerTargetVM();\n\n /**\n * Compiler source VM, e.g. 1.3, 1.4, or 1.5.\n */\n public String getCompilerSourceVM(); \n\n /**\n * The name of class that implements JavaCompiler, used for Java compilations.\n */\n public String getCompilerClassName();\n\n /**\n * The cache for the location of the TLD's\n * for the various tag libraries 'exposed'\n * by the web application.\n * A tag library is 'exposed' either explicitely in \n * web.xml or implicitely via the uri tag in the TLD \n * of a taglib deployed in a jar file (WEB-INF/lib).\n *\n * @return the instance of the TldScanner\n * for the web-application.\n */\n public TldScanner getTldScanner();\n\n /**\n * Java platform encoding to generate the JSP\n * page servlet.\n */\n public String getJavaEncoding();\n\n /**\n * boolean flag to tell Ant whether to fork JSP page compilations.\n */\n public boolean getFork();\n\n /**\n * Obtain JSP configuration informantion specified in web.xml. \n */\n public JspConfig getJspConfig();\n\n /**\n * Is generation of X-Powered-By response header enabled/disabled?\n */\n public boolean isXpoweredBy();\n\n /**\n * Obtain a Tag Plugin Manager\n */\n public TagPluginManager getTagPluginManager();\n\n /**\n * Are Text strings to be generated as char arrays?\n */\n public boolean genStringAsCharArray();\n\n /**\n * Are text strings to be generated as byte arrays, if the page is\n * unbuffered?\n */\n public boolean genStringAsByteArray();\n\n /**\n * If the buffer attribute for the page directive is not specified,\n * is the default \"none\"?\n */\n public boolean isDefaultBufferNone();\n\n /**\n * Modification test interval.\n */\n public int getModificationTestInterval();\n\n // BEGIN S1AS 6181923\n /**\n * Returns the value of the usePrecompiled (or use-precompiled) init\n * param.\n */\n public boolean getUsePrecompiled();\n // END S1AS 6181923\n\n // START SJSWS\n /**\n * Gets initial capacity of HashMap which maps JSPs to their corresponding\n * servlets.\n */\n public int getInitialCapacity();\n // END SJSWS \n\n // START SJSAS 6384538\n public boolean isValidationEnabled();\n // END SJSAS 6384538\n\n /**\n * If class files are generated as byte arrays, should they be saved to\n * disk at the end of compilations?\n */\n\n public boolean getSaveBytecode();\n\n}", "public PoaMaestroMultivaloresHTML(boolean buildDOM) { this(StandardDocumentLoader.getInstance(), buildDOM); }", "public PoaMaestroMultivaloresHTML(DocumentLoader loader) { this(loader, true); }", "private static void createOverviewSection(String path, Configuration c, String classesList, String propList, String dataPropList, String annotationProps, String namedIndividuals, Properties lang){\n if((c.getOverviewPath()!=null) && (!\"\".equals(c.getOverviewPath()))){\n WidocoUtils.copyExternalResource(c.getOverviewPath(), new File(path+File.separator+\"overview-\"+c.getCurrentLanguage()+\".html\"));\n }else{\n String overViewSection = \"<html>\"+Constants.getOverviewSectionTitleAndPlaceHolder(c, lang);\n if(!\"\".equals(classesList) && classesList!=null){\n overViewSection+=(\"<h4>\"+lang.getProperty(Constants.LANG_CLASSES)+\"</h4>\\n\");\n overViewSection+=(classesList);\n }\n if(!\"\".equals(propList) && propList!=null){\n overViewSection+=(\"<h4>\"+lang.getProperty(Constants.LANG_OBJ_PROP)+\"</h4>\");\n overViewSection+=(propList);\n }\n if(!\"\".equals(dataPropList) && dataPropList!=null){\n overViewSection+=(\"<h4>\"+lang.getProperty(Constants.LANG_DATA_PROP)+\"</h4>\");\n overViewSection+=(dataPropList);\n }\n if(!\"\".equals(annotationProps) && annotationProps!=null && c.isIncludeAnnotationProperties()){\n overViewSection+=(\"<h4>\"+lang.getProperty(Constants.LANG_ANN_PROP)+\"</h4>\");\n overViewSection+=(annotationProps);\n }\n if(!\"\".equals(namedIndividuals) && namedIndividuals!=null && c.isIncludeNamedIndividuals()){\n overViewSection+=(\"<h4>\"+lang.getProperty(Constants.LANG_NAMED_INDIV)+\"</h4>\");\n overViewSection+=(namedIndividuals);\n }\n //add the webvowl diagram, if selected\n if(c.isCreateWebVowlVisualization()){\n overViewSection +=\"<iframe align=\\\"center\\\" width=\\\"100%\\\" height =\\\"500px\\\" src=\\\"webvowl/index.html#\\\"></iframe> \";\n }\n overViewSection+=\"</html>\\n\";\n saveDocument(path+File.separator+\"overview-\"+c.getCurrentLanguage()+\".html\", overViewSection,c);\n }\n }", "public IndicadoresEficaciaHTML(DocumentLoader loader) { this(loader, true); }", "public interface IViewConfiguration {\r\n\r\n\t/** Get the filter defining how to handle conditional directives */\r\n\tIViewFilter getViewFilter();\r\n\t\r\n\t/** Get the fixed macros (macro name or name=value).\r\n\t * This array should not change after creation since this\r\n\t * configuration is stored in a view.\r\n\t */\r\n\tCollection<IDefine> getMacros();\r\n\r\n\t/**\r\n\t * Get the configuration for the parser. This may differ based\r\n\t * on SDK (i.e. different include paths or different keywords, etc.)\r\n\t */\r\n\tIViewParserConfiguration getViewParserConfiguration();\r\n}", "void commonConstruction () {\n\n if (inFile != null) {\n dataParent = inFile.getParent();\n }\n if (inURL != null) {\n dataParent = \"www\";\n }\n context = new HTMLContext();\n context.setFile(this);\n context.entityTranslation = false;\n\t\thtmlChar = new HTMLCharacter (context);\n }", "@Test\n\tpublic void testHTMLAsXML(){\n \tFile xml = new File(testData,\"html/htmlsidekick.html\");\n \t\n \tBuffer b = TestUtils.openFile(xml.getPath());\n\t\t\n \t// wait for end of parsing\n \tdoInBetween(new Runnable(){\n \t\t\tpublic void run(){\n \t\t\t\taction(\"sidekick.parser.xml-switch\",1);\n \t\t}}, \n \t\tmessageOfClassCondition(sidekick.SideKickUpdate.class),\n \t\t10000);\n\t\t\n \taction(\"sidekick-tree\");\n \tPause.pause(2000);\n\n \tHyperlinkSource src = HTMLHyperlinkSource.create();\n\t\tfinal Hyperlink h = src.getHyperlink(TestUtils.view().getBuffer(), 3319);\n\t\tassertNotNull(h);\n\t\tassertTrue(h instanceof jEditOpenFileHyperlink);\n\t\tassertEquals(67, h.getStartLine());\n\t\tassertEquals(67, h.getEndLine());\n\t\tGuiActionRunner.execute(new GuiTask() {\n\t\t\t\n\t\t\t@Override\n\t\t\tprotected void executeInEDT() throws Throwable {\n\t\t\t\th.click(TestUtils.view());\n\t\t\t}\n\t\t});\n\t\t\n\t\tassertEquals(\"jeditresource:/SideKick.jar!/index.html\",TestUtils.view().getBuffer().getPath());\n\t\t\n\t\tTestUtils.close(TestUtils.view(), TestUtils.view().getBuffer());\n\t\tTestUtils.close(TestUtils.view(), b);\n\t}", "private void initOptions() {\n\t\t// TODO: ???\n\t\t// additional input docs via --dir --includes --excludes --recursive\n\t\t// --loglevel=debug\n\t\t// --optionally validate output as well?\n\t\t\n\t\tthis.sb = new StringBuffer();\n\t\tArrayList options = new ArrayList();\n\t\toptions.add( new LongOpt(\"help\", LongOpt.NO_ARGUMENT, null, 'h') );\n\t\toptions.add( new LongOpt(\"version\", LongOpt.NO_ARGUMENT, null, 'v') );\t\t\n\t\toptions.add( new LongOpt(\"query\", LongOpt.REQUIRED_ARGUMENT, sb, 'q') );\n\t\toptions.add( new LongOpt(\"base\", LongOpt.REQUIRED_ARGUMENT, sb, 'b') );\n\t\toptions.add( new LongOpt(\"var\", LongOpt.REQUIRED_ARGUMENT, sb, 'P') );\n\t\toptions.add( new LongOpt(\"out\", LongOpt.REQUIRED_ARGUMENT, sb, 'o') );\n\t\toptions.add( new LongOpt(\"algo\", LongOpt.REQUIRED_ARGUMENT, sb, 'S') );\n\t\toptions.add( new LongOpt(\"encoding\", LongOpt.REQUIRED_ARGUMENT, sb, 'E') );\n\t\toptions.add( new LongOpt(\"indent\", LongOpt.REQUIRED_ARGUMENT, sb, 'I') );\t\n\t\toptions.add( new LongOpt(\"strip\", LongOpt.NO_ARGUMENT, null, 's') );\t\t\n\t\toptions.add( new LongOpt(\"update\", LongOpt.REQUIRED_ARGUMENT, sb, 'u') );\t\n\t\toptions.add( new LongOpt(\"xinclude\", LongOpt.NO_ARGUMENT, null, 'x') );\t\t\n\t\toptions.add( new LongOpt(\"explain\", LongOpt.NO_ARGUMENT, null, 'e') );\n\t\toptions.add( new LongOpt(\"noexternal\", LongOpt.NO_ARGUMENT, null, 'n') );\t\t\n\t\toptions.add( new LongOpt(\"runs\", LongOpt.REQUIRED_ARGUMENT, sb, 'r') );\n\t\toptions.add( new LongOpt(\"iterations\", LongOpt.REQUIRED_ARGUMENT, sb, 'i') );\n\t\toptions.add( new LongOpt(\"docpoolcapacity\", LongOpt.REQUIRED_ARGUMENT, sb, 'C') );\n\t\toptions.add( new LongOpt(\"docpoolcompression\", LongOpt.REQUIRED_ARGUMENT, sb, 'D') );\n\t\toptions.add( new LongOpt(\"nobuilderpool\", LongOpt.NO_ARGUMENT, null, 'p') );\n\t\toptions.add( new LongOpt(\"debug\", LongOpt.NO_ARGUMENT, null, 'd') );\t\t\n\t\toptions.add( new LongOpt(\"validate\", LongOpt.REQUIRED_ARGUMENT, sb, 'V') ); \n\t\toptions.add( new LongOpt(\"namespace\", LongOpt.REQUIRED_ARGUMENT, sb, 'W') ); \n\t\toptions.add( new LongOpt(\"schema\", LongOpt.REQUIRED_ARGUMENT, sb, 'w') );\n\t\toptions.add( new LongOpt(\"filterpath\", LongOpt.REQUIRED_ARGUMENT, sb, 'f') );\n\t\toptions.add( new LongOpt(\"filterquery\", LongOpt.REQUIRED_ARGUMENT, sb, 'F') );\n\t\toptions.add( new LongOpt(\"xomxpath\", LongOpt.NO_ARGUMENT, null, 'N') );\t\t\n\t\t\n////\t\toptions.add( new LongOpt(\"loglevel\", LongOpt.REQUIRED_ARGUMENT, sb, 'l') ); setLogLevels(Level.INFO);\n\t\t\t\n\t\tthis.longOpts = new LongOpt[options.size()];\n\t\toptions.toArray(this.longOpts);\t\t\n\t}", "public IndicadoresEficaciaHTML(boolean buildDOM) { this(StandardDocumentLoader.getInstance(), buildDOM); }", "@Override\n @SuppressWarnings(\"static-access\")\n public void setJCLIOptions() {\n Option Help = new Option(\"h\", \"help\", false, \"Show Help.\");\n this.jcOptions.addOption(Help);\n this.jcOptions.addOption(OptionBuilder.withLongOpt(\"file\").withDescription(\"File to Convert\").isRequired(false).hasArg().create(\"f\"));\n //this.jcOptions.addOption(OptionBuilder.withLongOpt(\"outputfile\").withDescription(\"Output File\").isRequired(false).hasArg().create(\"of\"));\n OptionGroup jcGroup = new OptionGroup();\n jcGroup.addOption(OptionBuilder.withLongOpt(\"texttobinary\").withDescription(\"Convert text to Binary\").create(\"ttb\"));\n jcGroup.addOption(OptionBuilder.withLongOpt(\"binarytotext\").withDescription(\"Convert binary to text\").create(\"btt\"));\n this.jcOptions.addOptionGroup(jcGroup);\n }", "void initialize(int options) {\n\n\t}", "@Test\n\tpublic void testHTML(){\n \tFile xml = new File(testData,\"html/htmlsidekick.html\");\n \t\n \tBuffer b = TestUtils.openFile(xml.getPath());\n\t\t\n \t// wait for end of parsing\n \tdoInBetween(new Runnable(){\n \t\t\tpublic void run(){\n \t\t\t\taction(\"sidekick-parse\",1);\n \t\t}}, \n \t\tmessageOfClassCondition(sidekick.SideKickUpdate.class),\n \t\t10000);\n\t\t\n \taction(\"sidekick-tree\");\n \tPause.pause(2000);\n\n \tHyperlinkSource src = HTMLHyperlinkSource.create();\n\t\tfinal Hyperlink h = src.getHyperlink(TestUtils.view().getBuffer(), 3319);\n\t\tassertNotNull(h);\n\t\tassertTrue(h instanceof jEditOpenFileHyperlink);\n\t\tassertEquals(67, h.getStartLine());\n\t\tassertEquals(67, h.getEndLine());\n\t\tGuiActionRunner.execute(new GuiTask() {\n\t\t\t\n\t\t\t@Override\n\t\t\tprotected void executeInEDT() throws Throwable {\n\t\t\t\th.click(TestUtils.view());\n\t\t\t}\n\t\t});\n\t\t\n\t\tassertEquals(\"jeditresource:/SideKick.jar!/index.html\",TestUtils.view().getBuffer().getPath());\n\t\t\n\t\tTestUtils.close(TestUtils.view(), TestUtils.view().getBuffer());\n\t\tTestUtils.close(TestUtils.view(), b);\n\t}", "public abstract WalkerDocument newDocument(IOptions options);", "public AdvConditionParser()\n{\n //nothing to do\n}", "public void buildDocument() {\n/* 310 */ setDocument(getDocumentLoader().getDocument(getClass()), \"text/html\", \"ISO-8859-1\");\n/* */ \n/* 312 */ syncAccessMethods();\n/* */ }", "public void setHTML(String html);", "public AdmClientePreferencialHTML(AdmClientePreferencialHTML src) {\n/* 209 */ this.fDocumentLoader = src.getDocumentLoader();\n/* */ \n/* 211 */ setDocument((Document)src.getDocument().cloneNode(true), src.getMIMEType(), src.getEncoding());\n/* */ \n/* 213 */ syncAccessMethods();\n/* */ }", "public HTMLFile (String inFileName) {\n inFile = new File(inFileName);\n inName = inFileName;\n inURL = null;\n commonConstruction();\n }", "default boolean supportsOptions() {\n return false;\n }", "private void loadHelpContent() {\n\t\tGson gson = new GsonBuilder().setPrettyPrinting().create();\n\t\tBufferedReader br;\n\t\ttry {\n\t\t\tbr = new BufferedReader(\n\t\t\t\t\tnew UnicodeReader(new FileInputStream(new File(getHelpContentFilePath())), \"UTF-8\"));\n\t\t\tsx3ConfigurationHelp = gson.fromJson(br, SX3ConfiguartionHelp.class);\n\t\t\tSX3Manager.getInstance().setSx3ConfiguartionHelp(sx3ConfigurationHelp);\n\t\t} catch (FileNotFoundException e) {\n\t\t\tsx3ConfigurationHelp = new SX3ConfiguartionHelp();\n\t\t\tSX3Manager.getInstance().addLog(\"<span style='color:red;'>\" + e.getMessage() + \".</span><br>\");\n\n\t\t}\n\t}", "@Test(groups = { \"tree\" })\n\tpublic void testLoadViaInlineHtml() throws Exception {\n\t\t\tstartupTest(\"treeLoadViaInlineHtml.html\",null);\n\n\t\t\t//Verify the url\n\t\t\tString url = getBrowserUrl();\n\t\t\tlog(\"URL##########\"+ url);\n\n\t\t\t// Verify if the title of the page is correct\n\t\t\tverifyTitle(\"Incorrect page title;\", TITLE_INLINEHTML);\n\t\t\tcheckPageContent(TITLE_INLINEHTML);\n\n\t\t\t//Find the tree element\n\t\t\tWebElement tree = getElement(\"id=tree\");\n\t\t\tlog(\"Found Element for id=tree \" + tree.toString());\n\n\t\t\tcommonLoadTestForHtml();\n\n }", "public void buildDocument() {\n/* 220 */ setDocument(getDocumentLoader().getDocument(getClass()), \"text/html\", \"ISO-8859-1\");\n/* */ \n/* 222 */ syncAccessMethods();\n/* */ }", "public HTMLFile (URL url, String label) {\n this.inFile = null;\n inURL = url;\n inName = url.toString();\n commonConstruction();\n context.setType (label);\n }", "protected abstract void initializeOptions(Options options);", "private XhtmlUtils()\n\t{\n\t}", "public void enableRawInlineHtml()\n {\n rawInlineHtmlEnabled = true;\n }", "@Test\n \tpublic void testRAssign() throws IOException{\n \t\tString testString = \"DemoClinicalOnlyModel <- setRefClass(Class = \\\"CINModel\\\",...\";\n \t\tString actualResult = processor.markdown2Html(testString, false);\n \t\t//there should be no space between the less than and the dash:\n \t\tassertTrue(actualResult.contains(\"&lt;-\"));\n \t}", "public void buildDocument() {\n/* 248 */ setDocument(getDocumentLoader().getDocument(getClass()), \"text/html\", \"ISO-8859-1\");\n/* */ \n/* 250 */ syncAccessMethods();\n/* */ }", "void computeHTMLFeatures() throws Exception{\n\t\tcountTagStatistics();\n\t\thtmlGlobalTagStatistics();\n\t\ttagInHeadStatistics();\n\t\thtmlStatisticsDiv();\n\t\thtmlStaticsticsParagraphs();\n\t\thtmlKeyWords();\n\t\tnormalizeData();\n\t}", "public abstract IOptions newDocumentOptions();", "@Test\n public void commentGetHtmlStart() {\n // White-Box! Temporär mit NotNull-Test ersetzt\n // assertEquals(\"<i><font color=\\\"grey\\\">\", comment.htmlStart());\n assertNotNull(comment.htmlStart());\n }", "IViewParserConfiguration getViewParserConfiguration();", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_terms_and_condition, container, false);\n\n\n webView = (WebView) view.findViewById(R.id.webView);\n // displaying content in WebView from html file that stored in assets folder\n webView.getSettings().setJavaScriptEnabled(true);\n //webView.loadUrl(\"file:///android_res/raw/\" + \"terms_and_condition.html\");\n if (AppController.isBaseUrl) {\n webView.loadUrl(AppController.devURL + AppController.terms_and_conditions);\n } else {\n webView.loadUrl(AppController.prodURL + AppController.terms_and_conditions);\n }\n return view;\n }", "@Test\n public void test06() throws Throwable {\n String string0 = Evaluation.makeOptionString((Classifier) null, true);\n assertEquals(\"\\n\\nGeneral options:\\n\\n-h or -help\\n\\tOutput help information.\\n-synopsis or -info\\n\\tOutput synopsis for classifier (use in conjunction with -h)\\n-t <name of training file>\\n\\tSets training file.\\n-T <name of test file>\\n\\tSets test file. If missing, a cross-validation will be performed\\n\\ton the training data.\\n-c <class index>\\n\\tSets index of class attribute (default: last).\\n-x <number of folds>\\n\\tSets number of folds for cross-validation (default: 10).\\n-no-cv\\n\\tDo not perform any cross validation.\\n-split-percentage <percentage>\\n\\tSets the percentage for the train/test set split, e.g., 66.\\n-preserve-order\\n\\tPreserves the order in the percentage split.\\n-s <random number seed>\\n\\tSets random number seed for cross-validation or percentage split\\n\\t(default: 1).\\n-m <name of file with cost matrix>\\n\\tSets file with cost matrix.\\n-l <name of input file>\\n\\tSets model input file. In case the filename ends with '.xml',\\n\\ta PMML file is loaded or, if that fails, options are loaded\\n\\tfrom the XML file.\\n-d <name of output file>\\n\\tSets model output file. In case the filename ends with '.xml',\\n\\tonly the options are saved to the XML file, not the model.\\n-v\\n\\tOutputs no statistics for training data.\\n-o\\n\\tOutputs statistics only, not the classifier.\\n-i\\n\\tOutputs detailed information-retrieval statistics for each class.\\n-k\\n\\tOutputs information-theoretic statistics.\\n-classifications \\\"weka.classifiers.evaluation.output.prediction.AbstractOutput + options\\\"\\n\\tUses the specified class for generating the classification output.\\n\\tE.g.: weka.classifiers.evaluation.output.prediction.PlainText\\n-p range\\n\\tOutputs predictions for test instances (or the train instances if\\n\\tno test instances provided and -no-cv is used), along with the \\n\\tattributes in the specified range (and nothing else). \\n\\tUse '-p 0' if no attributes are desired.\\n\\tDeprecated: use \\\"-classifications ...\\\" instead.\\n-distribution\\n\\tOutputs the distribution instead of only the prediction\\n\\tin conjunction with the '-p' option (only nominal classes).\\n\\tDeprecated: use \\\"-classifications ...\\\" instead.\\n-r\\n\\tOnly outputs cumulative margin distribution.\\n-xml filename | xml-string\\n\\tRetrieves the options from the XML-data instead of the command line.\\n-threshold-file <file>\\n\\tThe file to save the threshold data to.\\n\\tThe format is determined by the extensions, e.g., '.arff' for ARFF \\n\\tformat or '.csv' for CSV.\\n-threshold-label <label>\\n\\tThe class label to determine the threshold data for\\n\\t(default is the first label)\\n\", string0);\n }", "public HtmlDocument(Content htmlTree) {\n docContent = htmlTree;\n }", "java.util.Optional<Boolean> getLoadContents();", "@Test(timeout = 4000)\n public void test076() throws Throwable {\n String string0 = Evaluation.makeOptionString((Classifier) null, true);\n assertNotNull(string0);\n }", "public LibraryAnalysis(String option) throws IOException{\n \n if(option.equals(\"1\")){\n loadEnAfinnLibrary();\n } \n else if(option.equals(\"2\"))\n {\n loadFrAfinnLibrary(); \n }\n else if(option.equals(\"3\")){\n mohanLibrary = myLibrary.getLibrary();\n }\n else if(option.equals(\"4\")){\n loadEnAfinnLibrary();\n mohanLibrary = myLibrary.getLibrary();\n loadStopWords();\n }\n }", "public void testIncludeMode()\r\n {\r\n IncludeDirective include = \r\n new IncludeDirective( IncludeDirective.REF, null, \"value\", PROPERTIES );\r\n assertEquals( \"mode\", IncludeDirective.REF, include.getMode() );\r\n }", "public void validateOptions() throws XDocletException\n {\n // WebSphere does not require a template url or a destination file\n //\n // super.validateOptions();\n }", "public void initOptions(String[] args) {\n\t\tCL_Initializer.CL_init(args);\n\t\tCL_Initializer.checkParsing(args);\n\t\tCL_Initializer.initImagingScheme();\n\t\tCL_Initializer.initDataSynthesizer();\n\t}", "public HTMLFile (File inFile) {\n this.inFile = inFile;\n inName = inFile.toString();\n inURL = null;\n commonConstruction();\n }", "private void startHtmlPage(PrintWriter out,ITestResult result)\r\n\t{\r\n\t\tout.println(\"<html>\");\r\n\t\tout.println(\"<head>\");\r\n\t\tout.println(\"<meta content=\\\"text/html; charset=UTF-8\\\" http-equiv=\\\"content-type\\\"/><meta content=\\\"cache-control\\\" http-equiv=\\\"no-cache\\\"/><meta content=\\\"pragma\\\" http-equiv=\\\"no-cache\\\"/>\");\r\n\t\tout.println(\"<style type=\\\"text/css\\\">\");\r\n\t\tout.println(\"body, table {\");\r\n\t\tout.println(\"font-family: Verdana, Arial, sans-serif;\");\r\n\t\tout.println(\"font-size: 12;\");\r\n\t\tout.println(\"}\");\r\n\t\t\r\n\t\tout.println(\"table {\");\r\n\t\tout.println(\"border-collapse: collapse;\");\r\n\t\tout.println(\"border: 1px solid #ccc;\");\r\n\t\tout.println(\"}\");\r\n\t\t\r\n\t\tout.println(\"th, td {\");\r\n\t\tout.println(\"padding-left: 0.3em;\");\r\n\t\tout.println(\"padding-right: 0.3em;\");\r\n\t\tout.println(\"}\");\r\n\t\t\r\n\t\tout.println(\"a {\");\r\n\t\tout.println(\"text-decoration: none;\");\r\n\t\tout.println(\"}\");\r\n\t\t\r\n\t\tout.println(\".title {\");\r\n\t\tout.println(\"font-style: italic;\");\r\n\t\tout.println(\"background-color: #B2ACAC;\");\r\n\t\tout.println(\"}\");\r\n\t\t\r\n\t\tout.println(\".selected {\");\r\n\t\tout.println(\"background-color: #ffffcc;\");\r\n\t\tout.println(\"}\");\r\n\t\t\r\n\t\tout.println(\".status_done {\");\r\n\t\tout.println(\"background-color: #eeffee;\");\r\n\t\tout.println(\"}\");\r\n\t\t\r\n\t out.println(\".status_passed {\");\r\n\t out.println(\"background-color: #ccffcc;\");\r\n\t out.println(\"}\");\r\n\t\t\r\n\t out.println(\".status_failed {\");\r\n\t out.println(\"background-color: #ffcccc;\");\r\n\t out.println(\"}\");\r\n\t\t\r\n\t out.println(\".status_maybefailed {\");\r\n\t out.println(\"background-color: #ffffcc;\");\r\n\t out.println(\"}\");\r\n\t\t\r\n\t out.println(\".breakpoint {\");\r\n\t out.println(\"background-color: #cccccc;\");\r\n\t out.println(\"border: 1px solid black;\");\r\n\t out.println(\"}\");\r\n\t out.println(\"</style>\");\r\n\t out.println(\"<title>Test results</title>\");\r\n\t out.println(\"</head>\");\r\n\t out.println(\"<body>\");\r\n\t out.println(\"<h1>Test results </h1>\");\r\n\t out.println(\"<h2>Test Name: \"+className+\".\"+result.getName()+\"</h2>\");\r\n\t \r\n\t out.println(\"<table border=\\\"1\\\">\");\r\n\t out.println(\"<tbody>\");\r\n\t out.println(\"<tr>\");\r\n\t out.println(\"<td><b>Selenium-Command</b></td>\");\r\n\t out.println(\"<td><b>Parameter-1</b></td>\");\r\n\t\tout.println(\"<td><b>Parameter-2</b></td>\");\r\n\t\tout.println(\"<td><b>Status</b></td>\");\r\n\t\tout.println(\"<td><b>Screenshot</b></td>\");\r\n\t\tout.println(\"<td><b>Calling-Class with Linenumber</b></td>\");\r\n\t\tout.println(\"</tr>\");\r\n\t\t\r\n\t}", "void compileIf() {\n\n tagBracketPrinter(IF_TAG, OPEN_TAG_BRACKET);\n try {\n compileIfHelper();\n } catch (IOException e) {\n e.printStackTrace();\n }\n tagBracketPrinter(IF_TAG, CLOSE_TAG_BRACKET);\n }", "HTML createHTML();", "public void htmlReference(View v){\n Intent intent = new Intent(this, HtmlTagsActivity.class);\n startActivity(intent);\n }", "@Test (dataProvider = \"blockImportDataProvider\")\r\n public void blockImport(/*BlockImportMode*/int blockImportMode) throws Exception\r\n {\n final String HTML = \"\\n <html>\\n <div style='border:dotted'>\\n <div style='border:solid'>\\n <p>paragraph 1</p>\\n <p>paragraph 2</p>\\n </div>\\n </div>\\n </html>\";\r\n MemoryStream stream = new MemoryStream(Encoding.getUTF8().getBytes(HTML));\r\n\r\n HtmlLoadOptions loadOptions = new HtmlLoadOptions();\r\n // Set the new mode of import HTML block-level elements.\r\n loadOptions.setBlockImportMode(blockImportMode);\r\n \r\n Document doc = new Document(stream, loadOptions);\r\n doc.save(getArtifactsDir() + \"HtmlLoadOptions.BlockImport.docx\");\r\n //ExEnd\r\n }", "@Test\n public void test05() throws Throwable {\n Vote vote0 = new Vote();\n String string0 = Evaluation.makeOptionString(vote0, true);\n assertEquals(\"\\n\\nGeneral options:\\n\\n-h or -help\\n\\tOutput help information.\\n-synopsis or -info\\n\\tOutput synopsis for classifier (use in conjunction with -h)\\n-t <name of training file>\\n\\tSets training file.\\n-T <name of test file>\\n\\tSets test file. If missing, a cross-validation will be performed\\n\\ton the training data.\\n-c <class index>\\n\\tSets index of class attribute (default: last).\\n-x <number of folds>\\n\\tSets number of folds for cross-validation (default: 10).\\n-no-cv\\n\\tDo not perform any cross validation.\\n-split-percentage <percentage>\\n\\tSets the percentage for the train/test set split, e.g., 66.\\n-preserve-order\\n\\tPreserves the order in the percentage split.\\n-s <random number seed>\\n\\tSets random number seed for cross-validation or percentage split\\n\\t(default: 1).\\n-m <name of file with cost matrix>\\n\\tSets file with cost matrix.\\n-l <name of input file>\\n\\tSets model input file. In case the filename ends with '.xml',\\n\\ta PMML file is loaded or, if that fails, options are loaded\\n\\tfrom the XML file.\\n-d <name of output file>\\n\\tSets model output file. In case the filename ends with '.xml',\\n\\tonly the options are saved to the XML file, not the model.\\n-v\\n\\tOutputs no statistics for training data.\\n-o\\n\\tOutputs statistics only, not the classifier.\\n-i\\n\\tOutputs detailed information-retrieval statistics for each class.\\n-k\\n\\tOutputs information-theoretic statistics.\\n-classifications \\\"weka.classifiers.evaluation.output.prediction.AbstractOutput + options\\\"\\n\\tUses the specified class for generating the classification output.\\n\\tE.g.: weka.classifiers.evaluation.output.prediction.PlainText\\n-p range\\n\\tOutputs predictions for test instances (or the train instances if\\n\\tno test instances provided and -no-cv is used), along with the \\n\\tattributes in the specified range (and nothing else). \\n\\tUse '-p 0' if no attributes are desired.\\n\\tDeprecated: use \\\"-classifications ...\\\" instead.\\n-distribution\\n\\tOutputs the distribution instead of only the prediction\\n\\tin conjunction with the '-p' option (only nominal classes).\\n\\tDeprecated: use \\\"-classifications ...\\\" instead.\\n-r\\n\\tOnly outputs cumulative margin distribution.\\n-xml filename | xml-string\\n\\tRetrieves the options from the XML-data instead of the command line.\\n-threshold-file <file>\\n\\tThe file to save the threshold data to.\\n\\tThe format is determined by the extensions, e.g., '.arff' for ARFF \\n\\tformat or '.csv' for CSV.\\n-threshold-label <label>\\n\\tThe class label to determine the threshold data for\\n\\t(default is the first label)\\n\\nOptions specific to weka.classifiers.meta.Vote:\\n\\n-S <num>\\n\\tRandom number seed.\\n\\t(default 1)\\n-B <classifier specification>\\n\\tFull class name of classifier to include, followed\\n\\tby scheme options. May be specified multiple times.\\n\\t(default: \\\"weka.classifiers.rules.ZeroR\\\")\\n-D\\n\\tIf set, classifier is run in debug mode and\\n\\tmay output additional info to the console\\n-P <path to serialized classifier>\\n\\tFull path to serialized classifier to include.\\n\\tMay be specified multiple times to include\\n\\tmultiple serialized classifiers. Note: it does\\n\\tnot make sense to use pre-built classifiers in\\n\\ta cross-validation.\\n-R <AVG|PROD|MAJ|MIN|MAX|MED>\\n\\tThe combination rule to use\\n\\t(default: AVG)\\n\\nSynopsis for weka.classifiers.meta.Vote:\\n\\nClass for combining classifiers. Different combinations of probability estimates for classification are available.\\n\\nFor more information see:\\n\\nLudmila I. Kuncheva (2004). Combining Pattern Classifiers: Methods and Algorithms. John Wiley and Sons, Inc..\\n\\nJ. Kittler, M. Hatef, Robert P.W. Duin, J. Matas (1998). On combining classifiers. IEEE Transactions on Pattern Analysis and Machine Intelligence. 20(3):226-239.\", string0);\n }", "public AdvConditionParser(boolean debugMe)\n{\n yydebug=debugMe;\n}", "public CopsOptionParser() {\n\t\tsuper();\n\t\taddOption(HELP);\n\t\taddOption(SCENARIO);\n\t\taddOption(VALIDATE_ONLY);\n\t\taddOption(CONF);\n\n\t}", "public Conditional(){\n\t\tint m,n;\n\t\tLexer.lex();//skip over \"if\"\n\t\tLexer.lex();//skip over '('\n\t\tcpr=new ComparisonExpr();\n\t\tLexer.lex();//skip over ')'\n\t\tswitch(cpr.op){\n\t\tcase '<':\n\t\t\tCode.gen(\"if_icmpge \");\n\t\t\tbreak;\n\t\tcase '>':\n\t\t\tCode.gen(\"if_icmple \");\n\t\t\tbreak;\n\t\tcase '=':\n\t\t\tCode.gen(\"if_icmpne \");\n\t\t\tbreak;\n\t\tcase '!':\n\t\t\tCode.gen(\"if_icmpeq \");\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\tn=Code.getPtr();\n\t\tCode.gen(\"\");\n\t\tCode.gen(\"\");\n\t\tstmt=new Statement();\n\t\tif(Lexer.nextToken==Token.KEY_ELSE){//have an else part\n\t\t\tCode.gen(\"goto \");\n\t\t\tm=Code.getPtr();\n\t\t\tCode.gen(\"\");\n\t\t\tCode.gen(\"\");\n\t\t\tCode.backpatch(n, Integer.toString(Code.getPtr()));\n\t\t\tLexer.lex();\n\t\t\tstmtr=new Statement();\n\t\t\tCode.backpatch(m, Integer.toString(Code.getPtr()));\n\t\t}else{\n\t\t\tCode.backpatch(n, Integer.toString(Code.getPtr()));\n\t\t}\n\t\t\n\t}", "public static Options prepareOptions() {\n Options options = new Options();\n\n options.addOption(\"f\", \"forceDeleteIndex\", false,\n \"Force delete index if index already exists.\");\n options.addOption(\"h\", \"help\", false, \"Show this help information and exit.\");\n options.addOption(\"r\", \"realTime\", false, \"Keep for backwards compabitlity. No Effect.\");\n options.addOption(\"t\", \"terminology\", true, \"The terminology (ex: ncit_20.02d) to load.\");\n options.addOption(\"d\", \"directory\", true, \"Load concepts from the given directory\");\n options.addOption(\"xc\", \"skipConcepts\", false,\n \"Skip loading concepts, just clean stale terminologies, metadata, and update latest flags\");\n options.addOption(\"xm\", \"skipMetadata\", false,\n \"Skip loading metadata, just clean stale terminologies concepts, and update latest flags\");\n options.addOption(\"xl\", \"skipLoad\", false,\n \"Skip loading data, just clean stale terminologies and update latest flags\");\n options.addOption(\"xr\", \"report\", false, \"Compute and return a report instead of loading data\");\n\n return options;\n }", "@Test\n public void parserHtml() throws JSONException, IOException {\n }", "private void initWebView(){ \r\n WebEngine webEngine = viewerPane.getEngine();\r\n webEngine.load(\"http://www.google.com\");\r\n }", "public void testNullMode()\r\n {\r\n try\r\n {\r\n new IncludeDirective( null, null, \"value\", PROPERTIES );\r\n fail( \"no-NPE\" );\r\n }\r\n catch( NullPointerException e )\r\n {\r\n // success\r\n }\r\n }", "public HTMLFile (URL url) {\n this.inFile = null;\n inURL = url;\n inName = url.toString();\n commonConstruction();\n }", "public void testOptions() {\n \n Classifier testClassifier = null;\n try {\n testClassifier = ((Classifier) m_Classifier.getClass()\n\t .newInstance());\n } catch (InstantiationException e) {\n e.printStackTrace();\n } catch (IllegalAccessException e) {\n e.printStackTrace();\n }\n \n setOptionsWereValid(true);\n setErrorText(null);\n updateDescriptionText();\n \n try {\n testClassifier.setOptions(m_Classifier.getOptions());\n } catch (Exception e) {\n \n setOptionsWereValid(false);\n setErrorText(e.getMessage());\n }\n \n updateDescriptionText();\n }", "protected abstract void initUnSupportedFeatures();", "public void showLoadXML(Properties p);", "@SuppressLint(\"SetJavaScriptEnabled\")\n private void configWebView() {\n mWebView = new WebView(getApplicationContext());\n mWebViewContainer.addView(mWebView);\n WebSettings settings = mWebView.getSettings();\n\n // 设置无图模式\n //settings.setBlockNetworkImage(SPUtil.getBoolean(Constants.SETTING_NO_IMAGE));\n\n // 设置离线设置\n //boolean offline = SPUtil.getBoolean(Constants.SETTING_AUTO_DOWNLOAD);\n //settings.setAppCacheEnabled(offline);\n //settings.setDomStorageEnabled(offline);\n //settings.setDatabaseEnabled(offline);\n\n // 设置缓存模式\n //boolean netWorkAvailable = NetWorkUtil.isNetWorkAvailable(AppUtil.getAppContext());\n //settings.setCacheMode(netWorkAvailable ? WebSettings.LOAD_DEFAULT : WebSettings.LOAD_CACHE_ONLY);\n\n // 设置大号字体\n /* if (SPUtil.getBoolean(Constants.SETTING_BIG_FONT)) {\n settings.setMinimumFontSize(25);\n }*/\n\n // 激活java script\n settings.setJavaScriptEnabled(true);\n\n // 充满全屏\n settings.setLoadWithOverviewMode(true);\n\n // 适配移动端屏幕\n settings.setLayoutAlgorithm(WebSettings.LayoutAlgorithm.SINGLE_COLUMN);\n\n // 支持缩放\n settings.setSupportZoom(true);\n settings.setBuiltInZoomControls(true);\n\n // 设置可以访问文件内容\n settings.setAllowContentAccess(true);\n\n // 设置夜景模式\n //mWebView.setDayOrNight(!isNightMode());\n }", "public PoaMaestroMultivaloresHTML(PoaMaestroMultivaloresHTML src) {\n/* 271 */ this.fDocumentLoader = src.getDocumentLoader();\n/* */ \n/* 273 */ setDocument((Document)src.getDocument().cloneNode(true), src.getMIMEType(), src.getEncoding());\n/* */ \n/* 275 */ syncAccessMethods();\n/* */ }", "public SCMLReader() {}", "@Nullable\n @Override\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_condition, container, false);\n webView = v.findViewById(R.id.webView);\n webView.loadUrl(\"http://www.mazad-sa.net/ma5dom/api/webview\");\n return v;\n\n }", "public static void main (String[] args) {\r\n try {\r\n BufferedReader in = new BufferedReader(\r\n new InputStreamReader(\r\n new FileInputStream(new File(\"D:\\\\bitext.html\")), \"UTF-8\"));\r\n\r\n String s;\r\n StringBuffer b = new StringBuffer();\r\n while( (s = in.readLine()) != null) {\r\n b.append(s );\r\n }\r\n String page= b.toString();\r\n HTMLParser parser = new HTMLParser(page.getBytes(\"UTF-8\"));\r\n //parser.getTagValue (\"meta\");\r\n //System.out.println();\r\n\r\n System.out.println(parser.htmlParsing (false, null, null, false));\r\n //System.out.println(htmlParsing (page3, \"euc-kr\"));\r\n\r\n\r\n } catch (Throwable t) {\r\n t.printStackTrace ();\r\n }\r\n }", "@Override\n\t/**\n\t * does nothing because comments are disabled for classes \n\t * \n\t * @param c\n\t */\n\tpublic void setComment(String c) {\n\t}", "public URL getHtmlDescription();", "public DynamicDriveToolTipTagFragmentGenerator(String title, int style) {\n/* 75 */ this.title = title;\n/* 76 */ this.style = style;\n/* */ }", "public static final SubLObject setup_kb_hl_supports_file() {\n access_macros.register_macro_helper($sym8$DO_KB_HL_SUPPORT_DEPENDENTS_HELPER, $sym9$DO_KB_HL_SUPPORT_DEPENDENTS);\n Structures.register_method(print_high.$print_object_method_table$.getGlobalValue(), $dtp_kb_hl_support$.getGlobalValue(), Symbols.symbol_function($sym19$KB_HL_SUPPORT_PRINT_FUNCTION_TRAMPOLINE));\n Structures.def_csetf($sym20$KB_HLS_ID, $sym21$_CSETF_KB_HLS_ID);\n Equality.identity($sym12$KB_HL_SUPPORT);\n Structures.register_method(Sxhash.$sxhash_method_table$.getGlobalValue(), $dtp_kb_hl_support$.getGlobalValue(), Symbols.symbol_function($sym28$SXHASH_KB_HL_SUPPORT_METHOD));\n Structures.register_method(print_high.$print_object_method_table$.getGlobalValue(), $dtp_kb_hl_support_content$.getGlobalValue(), Symbols.symbol_function($sym36$KB_HL_SUPPORT_CONTENT_PRINT_FUNCTION_TRAMPOLINE));\n Structures.def_csetf($sym37$KB_HLSC_ARGUMENT, $sym38$_CSETF_KB_HLSC_ARGUMENT);\n Structures.def_csetf($sym39$KB_HLSC_DEPENDENTS, $sym40$_CSETF_KB_HLSC_DEPENDENTS);\n Equality.identity($sym29$KB_HL_SUPPORT_CONTENT);\n subl_macro_promotions.declare_defglobal($sym43$_KB_HL_SUPPORTS_FROM_IDS_);\n access_macros.register_macro_helper($sym53$DO_KB_HL_SUPPORTS_TABLE, $sym54$DO_KB_HL_SUPPORTS);\n subl_macro_promotions.declare_defglobal($sym58$_KB_HL_SUPPORT_INDEX_);\n subl_macro_promotions.declare_defglobal($sym65$_KB_HL_SUPPORTS_BEING_CREATED_);\n access_macros.register_macro_helper($sym75$PROCESS_TMS_KB_HL_SUPPORT_QUEUE, $sym76$WITH_KB_HL_SUPPORT_REJUSTIFICATION);\n access_macros.register_macro_helper($sym78$CREATE_KB_HL_SUPPORT_DUMP_ID_TABLE, $sym79$WITH_KB_HL_SUPPORT_DUMP_ID_TABLE);\n return NIL;\n }", "static void init() {\n ReplaceRule.define(\"endcomment\",\r\n new Regex(\"\\\\*/\",\"*/${POP}</font>\"));\r\n Comment3 = (new Regex(\"/\\\\*\",\"<font color=\"+\r\n CommentColor+\">/*${+endcomment}\"));\r\n\r\n // Jasmine stuff\r\n Regex.define(\"JasmineEnabled\",\"\",new Validator() {\r\n public int validate(String src,int begin,int end) {\r\n return jasmine_enabled ? end : -1;\r\n }\r\n });\r\n colorize.add(\r\n \"s{(??JasmineEnabled)^\\\\s*;\\\\s*&gt;&gt;.*}\"+\r\n \"{<HR><H3>$&</H3>}\");\r\n colorize.add(\r\n \"s{(??JasmineEnabled)(?:^|\\\\s)\\\\s*;.*}\"+\r\n \"{<font color=\"+CommentColor+\">$&</font>}\");\r\n colorize.add(\r\n \"s{(??JasmineEnabled)\\\\b(?:catch|class|end|field|\"+\r\n \"implements|interface|limit|line|method|source|super|\"+\r\n \"throws|var|stack|locals)\\\\b}{<font color=\"+\r\n DirectiveColor+\"><b>$&</b></font>}\");\r\n colorize.add(\r\n \"s{(??JasmineEnabled)^\\\\w+:}{<font color=\"+\r\n LabelColor+\"><b>$&</b></font>}\");\r\n\r\n // stick all replacement rules into the Transformer\r\n colorize.add(DQuotes);\r\n colorize.add(SQuotes);\r\n colorize.add(Comment1);\r\n colorize.add(Comment2);\r\n colorize.add(Comment3);\r\n colorize.add(PrimitiveTypes);\r\n colorize.add(Keywords);\r\n colorize.add(java_lang);\r\n colorize.add(oper);\r\n colorize.add(Regex.perlCode(\r\n \"s'\\\\w*(Error|Exception|Throwable)\\\\b'<font color=red>$&</font>'\"));\r\n\r\n ReplaceRule.define(\"colorize\",colorize);\r\n\r\n ReplaceRule.define(\"jascode\",new ReplaceRule() {\r\n public void apply(StringBufferLike sb,RegRes rr) {\r\n String s1 = rr.stringMatched(1);\r\n if(s1 != null && s1.equals(\"jas\"))\r\n jasmine_enabled = true;\r\n }\r\n });\r\n\r\n Regex r = new Regex(\"(?i)<(java|jas)code([^>]*?)>\\\\s*\",\r\n \"<!-- made by java2html, \"+\r\n \"see http://javaregex.com -->\"+\r\n \"<table $2 ><tr><td bgcolor=\"+\r\n DocumentBackgroundColor+\r\n \"><pre>${jascode}${+colorize}\");\r\n r.optimize();\r\n\r\n colorize.add(new Regex(\"(?i)\\\\s*</(?:java|jas)code>\",\r\n \"</pre></td></tr></table>${POP}\"));\r\n\r\n html_replacer = r.getReplacer();\r\n\r\n Transformer DoPre = new Transformer(true);\r\n DoPre.add(\"s'(?i)\\\\s*</(?:jav|jas)acode>'$&$POP'\");\r\n DoPre.add(\"s'<'&lt;'\");\r\n DoPre.add(\"s'>'&gt;'\");\r\n DoPre.add(\"s'&'&amp;'\");\r\n ReplaceRule.define(\"DOPRE\",DoPre);\r\n pretran_html = new Regex(\"(?i)<javacode[^>]*>\",\"$&${+DOPRE}\").getReplacer();\r\n pretran_java = DoPre.getReplacer();\r\n }", "public void preDefine()\n\t{\n\t\tASPManager mgr = getASPManager();\n\n\t\theadblk = mgr.newASPBlock(\"HEAD\");\n\n\t\theadblk.disableDocMan();\n\n\t\theadblk.addField(\"OBJID\").\n setHidden();\n\n headblk.addField(\"OBJVERSION\").\n setHidden();\n \n headblk.addField(\"OBJSTATE\").\n setHidden();\n \n headblk.addField(\"OBJEVENTS\").\n setHidden();\n\n\t\theadblk.addField(\"LU_NAME\").\n\t\tsetMandatory().\n\t\tsetMaxLength(8).\n\t\tsetReadOnly().\n\t\tsetHidden();\n\n\t\theadblk.addField(\"KEY_REF\").\n\t\tsetMandatory().\n\t\tsetMaxLength(600).\n\t\tsetReadOnly().\n\t\tsetHidden();\n\n\t\theadblk.addField(\"VIEW_NAME\").\n\t\tsetHidden().\n\t\tsetFunction(\"''\");\n\n\t\theadblk.addField(\"DOC_COUNT\").\n\t\tsetHidden();\n\n\t\theadblk.addField(\"SLUDESC\").\n\t\tsetSize(20).\n\t\tsetMaxLength(2000).\n\t\tsetReadOnly().\n\t\tsetFunction(\"OBJECT_CONNECTION_SYS.GET_LOGICAL_UNIT_DESCRIPTION(:LU_NAME)\").\n\t\tsetLabel(\"DOCMAWDOCREFERENCESLUDESCRIPTION: Object\");\n\n\t\theadblk.addField(\"SINSTANCEDESC\").\n\t\tsetSize(20).\n\t\tsetMaxLength(2000).\n\t\tsetReadOnly().\n\t\tsetFunction(\"OBJECT_CONNECTION_SYS.GET_INSTANCE_DESCRIPTION(:LU_NAME,'',:KEY_REF)\").\n\t\tsetLabel(\"DOCMAWDOCREFERENCESINSTANCEDESC: Object Key\");\n\n\t\theadblk.addField(\"DOC_OBJECT_DESC\").\n\t\tsetReadOnly().\n\t\tsetMaxLength(200).\n\t\tsetLabel(\"DOCMAWDOCREFERENCEDOCOBJECTDESC: Object Desc\");\n\n\t\theadblk.addField(\"STATE\").\n setReadOnly().\n setSize(10).\n setLabel(\"DOCMAWDOCREFERENCESTATE: State\");\n\t\t\n\t\theadblk.addField(\"INFO\").\n\t\tsetHidden().\n\t\tsetFunction(\"''\");\n\n\t\theadblk.addField(\"ATTRHEAD\").\n\t\tsetHidden().\n\t\tsetFunction(\"''\");\n\n\t\theadblk.addField(\"ACTION\").\n\t\tsetHidden().\n\t\tsetFunction(\"''\");\n\n\t\theadblk.setView(\"DOC_REFERENCE\");\n\t\theadblk.defineCommand(\"DOC_REFERENCE_API\",\"New__,Modify__,Remove__,Set_Lock__,Set_Unlock__\");\n\n\t\theadset = headblk.getASPRowSet();\n\n\t\theadbar = mgr.newASPCommandBar(headblk);\n\t\theadbar.disableCommand(headbar.FIND);\n\t\theadbar.disableCommand(headbar.DUPLICATEROW);\n\t\theadbar.disableCommand(headbar.NEWROW);\n\t\theadbar.disableCommand(headbar.EDITROW);\n\t\theadbar.disableCommand(headbar.DELETE);\n\t\theadbar.disableCommand(headbar.BACK);\n\n headbar.addSecureCustomCommand(\"SetLock\", \"DOCMAWDOCREFERENCESETLOCK: Lock\", \"DOC_REFERENCE_API.Set_Lock__\");\n headbar.addSecureCustomCommand(\"SetUnlock\", \"DOCMAWDOCREFERENCESETUNLOCK: Unlock\", \"DOC_REFERENCE_API.Set_Unlock__\");\n\n headbar.addCommandValidConditions(\"SetLock\", \"OBJSTATE\", \"Enable\", \"Unlocked\");\n headbar.addCommandValidConditions(\"SetUnlock\", \"OBJSTATE\", \"Enable\", \"Locked\");\n \n\t\theadtbl = mgr.newASPTable(headblk);\n\t\theadtbl.setTitle(mgr.translate(\"DOCMAWDOCREFERENCECONDOCU: Connected Documents\"));\n\n\n\t\theadlay = headblk.getASPBlockLayout();\n\t\theadlay.setDialogColumns(2);\n\t\theadlay.setDefaultLayoutMode(headlay.SINGLE_LAYOUT);\n\n\n\t\t//\n\t\t// Connected documents\n\t\t//\n\n\t\titemblk = mgr.newASPBlock(\"ITEM\");\n\n\t\titemblk.disableDocMan();\n\n\t\titemblk.addField(\"ITEM_OBJID\").\n\t\tsetHidden().\n\t\tsetDbName(\"OBJID\");\n\n\t\titemblk.addField(\"ITEM_OBJVERSION\").\n\t\tsetHidden().\n\t\tsetDbName(\"OBJVERSION\");\n\n\t\titemblk.addField(\"ITEM_LU_NAME\").\n\t\tsetMandatory().\n\t\tsetHidden().\n\t\tsetDbName(\"LU_NAME\");\n\n\t\titemblk.addField(\"ITEM_KEY_REF\").\n\t\tsetMandatory().\n\t\tsetHidden().\n\t\tsetDbName(\"KEY_REF\");\n\t\t\n\t\titemblk.addField(\"VIEW_FILE\").\n setFunction(\"''\").\n setReadOnly().\n unsetQueryable().\n setLabel(\"DOCMAWDOCREFERENCEVIEWFILE: View File\").\n setHyperlink(\"../docmaw/EdmMacro.page?PROCESS_DB=VIEW&DOC_TYPE=ORIGINAL\", \"DOC_CLASS,DOC_NO,DOC_SHEET,DOC_REV\", \"NEWWIN\").\n setAsImageField();\n\t\t\n\t\titemblk.addField(\"CHECK_IN_FILE\").\n setFunction(\"''\").\n setReadOnly().\n unsetQueryable().\n setLabel(\"DOCMAWDOCREFERENCECHECKINFILE: Check In File\").\n setHyperlink(\"../docmaw/EdmMacro.page?PROCESS_DB=CHECKIN&DOC_TYPE=ORIGINAL\", \"DOC_CLASS,DOC_NO,DOC_SHEET,DOC_REV\", \"NEWWIN\").\n setAsImageField();\n\n\t\titemblk.addField(\"DOC_CLASS\").\n\t\tsetSize(10).\n\t\tsetMaxLength(12).\n\t\tsetMandatory().\n\t\tsetUpperCase().\n\t\tsetReadOnly().\n\t\tsetDynamicLOV(\"DOC_CLASS\").\n\t\tsetLOVProperty(\"TITLE\",mgr.translate(\"DOCMAWDOCREFERENCEDOCCLASS1: List of Document Class\")).\n\t\tsetCustomValidation(\"DOC_CLASS\",\"SDOCCLASSNAME,KEEP_LAST_DOC_REV,KEEP_LAST_DOC_REV_DB\").//Bug Id 85361\n\t\tsetLabel(\"DOCMAWDOCREFERENCEDOCCLASS: Doc Class\");\n\n\t\titemblk.addField(\"SDOCCLASSNAME\").\n\t\tsetDbName(\"DOC_NAME\").\n\t\tsetSize(10).\n\t\tsetReadOnly().\n\t\tsetLabel(\"DOCMAWDOCREFERENCESDOCCLASSNAME: Doc Class Desc\");\n\t\t\n\t\titemblk.addField(\"SUB_CLASS\").\n setSize(10).\n setReadOnly().\n setHidden().\n setDynamicLOV(\"DOC_SUB_CLASS\",\"DOC_CLASS\").\n setLabel(\"DOCMAWDOCREFERENCESSUBCLASS: Sub Class\");\n\t\t\n\t\titemblk.addField(\"SUB_CLASS_NAME\").\n setSize(10).\n setReadOnly().\n setLabel(\"DOCMAWDOCREFERENCESSUBCLASSNAME: Sub Class Name\");\n\n\t\titemblk.addField(\"DOC_CODE\").\n setSize(20).\n setReadOnly().\n setLabel(\"DOCMAWDOCREFERENCESDOCCODE: Doc Code\");\n\t\t\n\t\titemblk.addField(\"INNER_DOC_CODE\").\n setSize(20).\n setReadOnly().\n setLabel(\"DOCMAWDOCREFERENCESINNERDOCCODE: Inner Doc Code\");\n\t\t\n\t\titemblk.addField(\"SDOCTITLE\").\n\t\tsetDbName(\"DOC_TITLE\").\n\t\tsetSize(40).\n\t\tsetReadOnly().\n\t\tsetFieldHyperlink(\"DocIssue.page\", \"PAGE_URL\", \"DOC_CLASS,DOC_NO,DOC_SHEET,DOC_REV\").\n\t\tsetLabel(\"DOCMAWDOCREFERENCESDOCTITLE: Title\");\n\n\t\titemblk.addField(\"DOC_REV\").\n\t\tsetSize(20).\n\t\tsetMandatory().\n\t\tsetUpperCase().\n\t\tsetReadOnly().\n\t\tsetDynamicLOV(\"DOC_ISSUE\",\"DOC_CLASS,DOC_NO,DOC_SHEET\").\n\t\tsetLOVProperty(\"TITLE\",mgr.translate(\"DOCMAWDOCREFERENCEDOCREV1: List of Document Revision\")).\n\t\tsetLabel(\"DOCMAWDOCREFERENCEDOCREV: Doc Rev\");\n\t\t\n\t\titemblk.addField(\"DOC_STATE\").\n setSize(10).\n setReadOnly().\n setLabel(\"DOCMAWDOCREFERENCESDOCSTATE: Doc State\");\n\t\t\n\t\titemblk.addField(\"CONNECTED_PERSON\").\n setSize(10).\n setReadOnly().\n setDynamicLOV(\"PERSON_INFO_LOV\").\n setLabel(\"DOCMAWDOCREFERENCECONNECTEDPERSON: Connected Person\");\n\t\t\n\t\titemblk.addField(\"CONNECTED_PERSON_NAME\").\n setSize(10).\n setReadOnly().\n setFunction(\"Person_Info_API.Get_Name(:CONNECTED_PERSON)\").\n setLabel(\"DOCMAWDOCREFERENCECONNECTEDPERSONNAME: Connected Person Name\");\n\t\tmgr.getASPField(\"CONNECTED_PERSON\").setValidation(\"CONNECTED_PERSON_NAME\");\n\t\t\n\t\titemblk.addField(\"CONNECTED_DATE\", \"Date\").\n setSize(10).\n setReadOnly().\n setLabel(\"DOCMAWDOCREFERENCECONNECTEDDATE: Connected Date\");\n\t\t\n\t\titemblk.addField(\"SEND_UNIT_NAME\").\n setSize(20).\n setReadOnly().\n setLabel(\"DOCMAWDOCREFERENCESSENDUNITNAME: Send Unit Name\");\n\t\t\n\t\titemblk.addField(\"SIGN_PERSON\").\n setSize(10).\n setReadOnly().\n setLabel(\"DOCMAWDOCREFERENCESSIGNPERSON: Sign Person\");\n\t\t\n\t\titemblk.addField(\"COMPLETE_DATE\", \"Date\").\n setSize(10).\n setReadOnly().\n setLabel(\"DOCMAWDOCREFERENCESCOMPLETEDATE: Complete Date\");\n\n\t\titemblk.addField(\"DOCTSATUS\").\n\t\tsetSize(20).\n\t\tsetReadOnly().\n\t\tsetFunction(\"substr(DOC_ISSUE_API.Get_State(DOC_CLASS,DOC_NO,DOC_SHEET,DOC_REV),1,200)\").\n\t\tsetLabel(\"DOCMAWDOCREFERENCEDOCTSATUS: Status\");\n\n\t\t//\n\t\t// Hidden Fields\n\t\t//\n\t\t\n\t\titemblk.addField(\"DOC_NO\").\n setSize(20).\n setMaxLength(120).\n setMandatory().\n setUpperCase().\n setHidden().\n setLOV(\"DocNumLov.page\",\"DOC_CLASS\").\n setCustomValidation(\"DOC_CLASS,DOC_NO,DOC_SHEET,DOC_REV\",\"SDOCTITLE,DOC_CLASS,DOC_NO,DOC_SHEET,DOC_REV,SDOCCLASSNAME,KEEP_LAST_DOC_REV,KEEP_LAST_DOC_REV_DB\").//Bug Id 85361\n setLOVProperty(\"TITLE\",mgr.translate(\"DOCMAWDOCREFERENCEDOCNO1: List of Document No\")).\n setLabel(\"DOCMAWDOCREFERENCEDOCNO: Doc No\");\n\t\t\n\t\titemblk.addField(\"DOC_SHEET\").\n setSize(20).\n //Bug 61028, Start\n setMaxLength(10).\n //Bug 61028, End\n setMandatory().\n setUpperCase().\n setHidden().\n setDynamicLOV(\"DOC_ISSUE_LOV1\",\"DOC_CLASS,DOC_NO,DOC_REV\").\n setLOVProperty(\"TITLE\", mgr.translate(\"DOCMAWDOCREFERENCEDOCSHEET1: List of Doc Sheets\")).\n setLabel(\"DOCMAWDOCREFERENCEDOCSHEET: Doc Sheet\");\n\t\t\n\t\titemblk.addField(\"CATEGORY\").\n setSize(20).\n setMaxLength(5).\n setUpperCase().\n setHidden().\n setDynamicLOV(\"DOC_REFERENCE_CATEGORY\").\n setLOVProperty(\"TITLE\",mgr.translate(\"DOCMAWDOCREFERENCEDOCAT: List of Document Category\")).\n setLabel(\"DOCMAWDOCREFERENCECATEGORY: Association Category\");\n\n itemblk.addField(\"COPY_FLAG\").\n setSize(20).\n setMandatory().\n setSelectBox().\n setHidden().\n enumerateValues(\"Doc_Reference_Copy_Status_API\").\n setLabel(\"DOCMAWDOCREFERENCECOPYFLAG: Copy Status\");\n\n itemblk.addField(\"KEEP_LAST_DOC_REV\").\n setSize(20).\n setMaxLength(100).\n setMandatory().\n setSelectBox().\n setHidden().\n unsetSearchOnDbColumn().\n enumerateValues(\"Always_Last_Doc_Rev_API\").\n setCustomValidation(\"KEEP_LAST_DOC_REV,DOC_CLASS,DOC_NO,DOC_SHEET,DOC_REV\",\"DOC_REV,KEEP_LAST_DOC_REV_DB\").//Bug Id 85361\n setLabel(\"DOCMAWDOCREFERENCEKEEPLASTDOCREV: Update Revision\");\n\n //Bug Id 85361. Start\n itemblk.addField(\"KEEP_LAST_DOC_REV_DB\").\n setHidden().\n unsetSearchOnDbColumn().\n setFunction(\"Always_Last_Doc_Rev_API.Encode(:KEEP_LAST_DOC_REV)\");\n //Bug Id 85361. End\n\n itemblk.addField(\"SURVEY_LOCKED_FLAG\").\n setSize(20).\n setMandatory().\n setSelectBox().\n setHidden().\n enumerateValues(\"LOCK_DOCUMENT_SURVEY_API\").\n unsetSearchOnDbColumn().\n //Bug 57719, Start\n setCustomValidation(\"SURVEY_LOCKED_FLAG\",\"SURVEY_LOCKED_FLAG_DB\").\n //Bug 57719, End\n setLabel(\"DOCMAWDOCREFERENCESURVEYLOCKEDFLAG: Doc Connection Status\");\n\t\t\n\t\titemblk.addField(\"SURVEY_LOCKED_FLAG_DB\").\n setHidden().\n unsetSearchOnDbColumn().\n setFunction(\"Lock_Document_Survey_Api.Encode(:SURVEY_LOCKED_FLAG)\");\n\t\t\n\t\titemblk.addField(\"FILE_TYPE\").\n\t\tsetHidden().\n\t\tsetFunction(\"EDM_FILE_API.GET_FILE_TYPE(DOC_CLASS,DOC_NO,DOC_SHEET,DOC_REV,'ORIGINAL')\");\n\n\t\t//Bug Id 67336, start\n\t\titemblk.addField(\"STRUCTURE\").\n\t\tsetHidden().\n\t\tsetFunction(\"DOC_TITLE_API.Get_Structure_(DOC_CLASS,DOC_NO)\");\n\t\t//Bug Id 67336, end\n\n\t\t// Bug Id 89939, start\n\t\titemblk.addField(\"CAN_ADD_TO_BC\").\n\t\tsetHidden().\n\t\tsetFunction(\"DOC_ISSUE_API.can_add_to_bc(DOC_CLASS, DOC_NO, DOC_SHEET, DOC_REV)\");\n\t\t\n\t\titemblk.addField(\"BRIEFCASE_NO\"). \n\t\tsetHidden().\n\t\tsetDynamicLOV(\"DOC_BC_LOV1\").\n\t\tsetFunction(\"DOC_BRIEFCASE_ISSUE_API.GET_BRIEFCASE_NO(DOC_CLASS,DOC_NO,DOC_SHEET,DOC_REV)\");\n\t\t\n\t\titemblk.addField(\"EDMSTATUS\").\n\t\tsetHidden().\n\t\tsetFunction(\"EDM_FILE_API.GET_DOC_STATE_NO_USER(DOC_CLASS, DOC_NO, DOC_SHEET, DOC_REV, 'ORIGINAL')\");\n\t\t\n\t\titemblk.addField(\"IS_ELE_DOC\").\n setCheckBox(\"FALSE,TRUE\").\n setFunction(\"EDM_FILE_API.Have_Edm_File(:DOC_CLASS,:DOC_NO,:DOC_SHEET,:DOC_REV)\").\n setReadOnly().\n setHidden().\n setLabel(\"DOCMAWDOCREFERENCEISELEDOC: Is Ele Doc\").\n setSize(5);\n\t\t\n\t\titemblk.addField(\"PAGE_URL\").\n setFunction(\"Doc_Issue_API.Get_Page_Url(:DOC_CLASS,:DOC_NO,:DOC_SHEET,:DOC_REV)\").\n setReadOnly().\n setHidden();\n\t\t\n\t\titemblk.addField(\"TEMP_EDIT_ACCESS\").\n\t\tsetFunction(\"NVL(Doc_Class_API.Get_Temp_Doc(:DOC_CLASS), 'FALSE') || NVL(Doc_Issue_API.Get_Edit_Access_For_Rep_(:DOC_CLASS,:DOC_NO,:DOC_SHEET,:DOC_REV), 'FALSE')\").\n\t\tsetHidden();\n\t\t\n\t\titemblk.addField(\"COMP_DOC\").\n setFunction(\"NVL(Doc_Class_API.Get_Comp_Doc(:DOC_CLASS), 'FALSE')\").\n setHidden();\n\t\t\n\t\titemblk.addField(\"TEMP_DOC\").\n setFunction(\"NVL(Doc_Class_API.Get_Temp_Doc(:DOC_CLASS), 'FALSE')\").\n setHidden();\n\t\t\n\t\titemblk.addField(\"DOC_OBJSTATE\").\n setFunction(\"DOC_ISSUE_API.Get_Objstate__(:DOC_CLASS,:DOC_NO,:DOC_SHEET,:DOC_REV)\").\n setHidden().\n setLabel(\"DOCMAWDOCISSUESTATE: Doc Status\");\n\t\t\n\t\titemblk.addField(\"CHECK_CONNECTED_PERSON\").\n\t\tsetFunction(\"DECODE(connected_person, Person_Info_API.Get_Id_For_User(Fnd_Session_API.Get_Fnd_User), 'TRUE', 'FALSE')\").\n\t\tsetReadOnly().\n\t\tsetLabel(\"DOCMAWDOCREFERENCECHECKCONNECTEDPERSON: Check Connected Person\").\n setHidden();\n\t\t\n\t\titemblk.addField(\"TRANSFERED\").\n\t\tsetCheckBox(\"FALSE,TRUE\").\n\t\tsetReadOnly().\n setHidden();\n\t\t// Bug Id 89939, end\n\n\t\titemblk.setView(\"DOC_REFERENCE_OBJECT\");\n\t\titemblk.defineCommand(\"DOC_REFERENCE_OBJECT_API\",\"New__,Modify__,Remove__\");\n\t\titemblk.setMasterBlock(headblk);\n\t\titemset = itemblk.getASPRowSet();\n\t\titembar = mgr.newASPCommandBar(itemblk);\n\t\titembar.enableCommand(itembar.FIND);\n\t\titembar.disableCommand(itembar.NEWROW);\n\t\titembar.disableCommand(itembar.DUPLICATEROW);\n\t\titembar.disableCommand(itembar.OVERVIEWEDIT);\n\t\titembar.disableCommand(itembar.DELETE);\n\t\titembar.disableCommand(itembar.EDITROW);\n\t\t\n\t\t//Bug 57719, Start, Added check on function checkLocked()\n\t\titembar.defineCommand(itembar.SAVERETURN,\"saveReturnITEM\",\"checkLocked()\");\n\t\t//Bug 57719, End\n\t\titembar.defineCommand(itembar.OKFIND, \"okFindITEMWithErrorMsg\");\n\t\titembar.defineCommand(itembar.COUNTFIND,\"countFindITEM\");\n\t\titembar.defineCommand(itembar.NEWROW, \"newRowITEM\");\n\t\titembar.defineCommand(itembar.SAVENEW, \"saveNewITEM\");\n\t\titembar.defineCommand(itembar.DELETE, \"deleteITEM\");\n\t\t\n\t\t//Bug Id 85487, Start\n\t\titembar.addCustomCommand(\"createNewDoc\", mgr.translate(\"DOCMAWDOCREFERENCECREATEDOC: Create New Document\"));\n\t\titembar.addSecureCustomCommand(\"createConnectDefDoc\", mgr.translate(\"DOCMAWDOCREFERENCECREATECONNDEFDOC: Create And Connect Document...\"), \"DOC_REFERENCE_OBJECT_API.New__\", \"../common/images/toolbar/\" + mgr.getLanguageCode() + \"/createConnectDefDoc.gif\", true);\n\t\t// itembar.setCmdConfirmMsg(\"createConnectDefDoc\", \"DOCMAWDOCREFERENCECREATECONNDEFDOCMSG: Confirm create and connect document?\");\n\t\titembar.addSecureCustomCommand(\"insertExistingDoc\",mgr.translate(\"DOCMAWDOCREFERENCEINEXISTDOC: Insert Existing Document...\"), \"DOC_REFERENCE_OBJECT_API.New__\", \"../common/images/toolbar/\" + mgr.getLanguageCode() + \"/addDocument.gif\", true);\n\t\titembar.addCustomCommandSeparator();\n\t\titembar.forceEnableMultiActionCommand(\"createNewDoc\");\n\t\titembar.forceEnableMultiActionCommand(\"createConnectDefDoc\");\n\t\titembar.forceEnableMultiActionCommand(\"insertExistingDoc\");\n\t\titembar.removeFromRowActions(\"insertExistingDoc\");\n\t\titembar.removeFromRowActions(\"createNewDoc\");\n\t\titembar.removeFromRowActions(\"createConnectDefDoc\");\n\t\t//Bug Id 85487, End\n\n\t\t//Bug Id 89939, start\n\t\t// itembar.addSecureCustomCommand(\"startAddingToBriefcase\",\"DOCMAWDOCREFERENCEADDTOBC: Add to Briefcase...\",\"DOC_BRIEFCASE_ISSUE_API.Add_To_Briefcase\"); \n\t\t// itembar.addCustomCommand(\"goToBriefcase\",\"DOCMAWDOCREFERENCEGOTOBC: Go to Briefcase\"); \n\t\t// itembar.addCommandValidConditions(\"goToBriefcase\",\"BRIEFCASE_NO\",\"Disable\",null);\n\t\t//Bug Id 89939, end\n\n\t\t// File Operations\n\t\t// itembar.addSecureCustomCommand(\"editDocument\",mgr.translate(\"DOCMAWDOCREFERENCEEDITDOC: Edit Document\"),\"DOCUMENT_ISSUE_ACCESS_API.Get_Document_Access\"); //Bug Id 70286\n\t\titembar.addSecureCustomCommand(\"deleteDoc\",mgr.translate(\"DOCMAWDOCREFERENCEDELETEDOC: Delete\"),\"DOC_REFERENCE_OBJECT_API.Remove__\"); //Bug Id 70286\n\t\titembar.setCmdConfirmMsg(\"deleteDoc\", \"DOCMAWDOCREFERENCEDELETEDOCCONFIRM: Confirm delete document(s)?\");\n\t\titembar.addCustomCommandSeparator();\n\t\titembar.addSecureCustomCommand(\"viewOriginal\",mgr.translate(\"DOCMAWDOCREFERENCEVIEVOR: View Document\"),\"DOCUMENT_ISSUE_ACCESS_API.Get_Document_Access\"); //Bug Id 70286\n\t\titembar.addSecureCustomCommand(\"checkInDocument\",mgr.translate(\"DOCMAWDOCREFERENCECHECKINDOC: Check In Document\"),\"DOCUMENT_ISSUE_ACCESS_API.Get_Document_Access\"); //Bug Id 70286\n\t\t// itembar.addSecureCustomCommand(\"undoCheckOut\",mgr.translate(\"DOCMAWDOCREFERENCEUNDOCHECKOUT: Undo Check Out Document\"),\"DOCUMENT_ISSUE_ACCESS_API.Get_Document_Access\"); //Bug Id 70286\n\t\t// itembar.addSecureCustomCommand(\"viewOriginalWithExternalViewer\",mgr.translate(\"DOCMAWDOCREFERENCEVIEWOREXTVIEWER: View Document with Ext. App\"),\"DOCUMENT_ISSUE_ACCESS_API.Get_Document_Access\"); //Bug Id 70286\n\t\t// itembar.addSecureCustomCommand(\"viewCopy\",mgr.translate(\"DOCMAWDOCREFERENCEVIEWCO: View Copy\"),\"DOCUMENT_ISSUE_ACCESS_API.Get_Document_Access\"); //Bug Id 70286\n\t\t// itembar.addSecureCustomCommand(\"printDocument\",mgr.translate(\"DOCMAWDOCREFERENCEPRINTDOC: Print Document\"),\"DOCUMENT_ISSUE_ACCESS_API.Get_Document_Access\"); //Bug Id 70286\n\t\t// itembar.addSecureCustomCommand(\"copyFileTo\",mgr.translate(\"DOCMAWDOCISSUECOPYFILETO: Copy File To...\"),\"DOCUMENT_ISSUE_ACCESS_API.Get_Document_Access\"); //Bug Id 70286\n\t\t// itembar.addSecureCustomCommand(\"sendToMailRecipient\",mgr.translate(\"DOCMAWDOCREFERENCEWSENDMAIL: Send by E-mail...\"),\"DOCUMENT_ISSUE_ACCESS_API.Get_Document_Access\"); //Bug Id 70286\n\t\titembar.addCustomCommand(\"documentInfo\",mgr.translate(\"DOCMAWDOCREFERENCEDOCINFO: Document Info...\"));\n\n\t\titembar.addCommandValidConditions(\"checkInDocument\", \"TEMP_EDIT_ACCESS\", \"Enable\", \"TRUETRUE\");\n\t\titembar.addCommandValidConditions(\"checkInDocument\", \"CHECK_CONNECTED_PERSON\", \"Disable\", \"FALSE\");\n\t\titembar.addCommandValidConditions(\"checkInDocument\", \"TRANSFERED\", \"Disable\", \"TRUE\");\n\t\titembar.addCommandValidConditions(\"checkInDocument\", \"SURVEY_LOCKED_FLAG_DB\", \"Disable\", \"1\");\n\t\t\n\t\titembar.addCommandValidConditions(\"deleteDoc\", \"TEMP_EDIT_ACCESS\", \"Disable\", \"TRUEFALSE\");\n\t\titembar.addCommandValidConditions(\"deleteDoc\", \"CHECK_CONNECTED_PERSON\", \"Disable\", \"FALSE\");\n\t\titembar.addCommandValidConditions(\"deleteDoc\", \"TRANSFERED\", \"Disable\", \"TRUE\");\n\t\titembar.addCommandValidConditions(\"deleteDoc\", \"SURVEY_LOCKED_FLAG_DB\", \"Disable\", \"1\");\n\t\t\n\t\t// Add operations to comand groups\n\t\t// itembar.addCustomCommandGroup(\"FILE\", mgr.translate(\"DOCMAWDOCREFERENCEFILECMDGROUP: File Operations\"));\n\t\t// itembar.setCustomCommandGroup(\"editDocument\", \"FILE\");\n\t\t// itembar.setCustomCommandGroup(\"checkInDocument\", \"FILE\");\n\t\t// itembar.setCustomCommandGroup(\"undoCheckOut\", \"FILE\");\n\t\t// itembar.setCustomCommandGroup(\"viewOriginal\", \"FILE\");\n\t\t// itembar.setCustomCommandGroup(\"viewOriginalWithExternalViewer\", \"FILE\");\n\t\t// itembar.setCustomCommandGroup(\"viewCopy\", \"FILE\");\n\t\t// itembar.setCustomCommandGroup(\"printDocument\", \"FILE\");\n\t\t// itembar.setCustomCommandGroup(\"copyFileTo\", \"FILE\");\n\n\n\t\titembar.enableMultirowAction();\n\t\t// itembar.removeFromMultirowAction(\"viewOriginalWithExternalViewer\");\n\t\t// itembar.removeFromMultirowAction(\"undoCheckOut\");\n\n\n\t\titemtbl = mgr.newASPTable(itemblk);\n\t\titemtbl.setTitle(mgr.translate(\"DOCMAWDOCREFERENCEDOCUCC: Documents\"));\n\t\titemtbl.enableRowSelect();\n\n\t\titemlay = itemblk.getASPBlockLayout();\n\t\titemlay.setDialogColumns(2);\n\t\titemlay.setDefaultLayoutMode(itemlay.MULTIROW_LAYOUT);\n\n\t\titemlay.setSimple(\"CONNECTED_PERSON_NAME\");\n\t\t\n\t\t//\n\t\t// Create and connect documents\n\t\t//\n\n\t\tdlgblk = mgr.newASPBlock(\"DLG\");\n\n\t\tdlgblk.addField(\"DLG_DOC_CLASS\").\n\t\tsetSize(20).\n\t\tsetDynamicLOV(\"DOC_CLASS\").\n\t\tsetMandatory().\n\t\tsetUpperCase().\n\t\tsetCustomValidation(\"DLG_DOC_CLASS\",\"DLG_DOC_REV,FIRST_SHEET_NO,NUMBER_GENERATOR,NUM_GEN_TRANSLATED,ID1,ID2\").\n\t\tsetLabel(\"DOCMAWDOCREFERENCEDLGDOCCLASS: Doc Class\");\n\n\t\tdlgblk.addField(\"DLG_DOC_NO\").\n\t\tsetSize(20).\n\t\tsetMandatory().\n\t\tsetUpperCase().\n\t\tsetLabel(\"DOCMAWDOCREFERENCEDLGDOCNO: No\");\n\n\t\tdlgblk.addField(\"FIRST_SHEET_NO\").\n\t\tsetSize(20).\n\t\tsetMandatory().\n\t\tsetUpperCase().\n\t\tsetLabel(\"DOCMAWDOCREFERENCEFIRSTSHEETNO: First Sheet No\");\n\n\t\tdlgblk.addField(\"DLG_DOC_REV\").\n\t\tsetSize(20).\n\t\tsetMandatory().\n\t\tsetUpperCase().\n\t\tsetLabel(\"DOCMAWDOCREFERENCEDLGDOCTITLE: Revision\");\n\n\t\tdlgblk.addField(\"DLG_DOC_TITLE\").\n\t\tsetSize(20).\n\t\tsetMandatory().\n\t\tsetLabel(\"DOCMAWDOCREFERENCEDLGDOCREV: Title\");\n\n\t\t// Configurable doc no\n\n\t\tdlgblk.addField(\"NUMBER_GENERATOR\").\n\t\tsetHidden().\n\t\tsetFunction(\"''\");\n\n\t\tdlgblk.addField(\"NUM_GEN_TRANSLATED\").\n\t\tsetReadOnly().\n\t\tsetUpperCase().\n\t\tsetFunction(\"''\").\n\t\tsetLabel(\"DOCREFERENCENUMBERGENERATOR: Number Generator\");\n\n\n\t\tdlgblk.addField(\"ID1\").\n\t\tsetReadOnly().\n\t\tsetFunction(\"''\").\n\t\tsetUpperCase().\n\t\tsetLOV(\"Id1Lov.page\").\n\t\tsetLabel(\"DOCREFERENCENUMBERCOUNTERID1: Number Counter ID1\");\n\n\t\tdlgblk.addField(\"ID2\").\n\t\tsetSize(20).\n\t\tsetUpperCase().\n\t\tsetMaxLength(30).\n\t\tsetFunction(\"''\").\n\t\tsetLOV(\"Id2Lov.page\",\"ID1\").\n\t\tsetLabel(\"DOCREFERENCENUMBERCOUNTERID2: Number Counter ID2\");\n\n\t\tdlgblk.addField(\"BOOKING_LIST\").\n\t\tsetSize(20).\n\t\tsetMaxLength(30).\n\t\tsetUpperCase().\n\t\tsetFunction(\"''\").\n\t\tsetLOV(\"BookListLov.page\", \"ID1,ID2\").//Bug Id 73606\n\t\tsetLabel(\"DOCREFERENCEBOOKINGLIST: Booking List\");\n\n\t\tdlgblk.setTitle(mgr.translate(\"DOCMAWDOCREFERENCECREANDCONNDOC: Create and Connect New Document\"));\n\n\t\tdlgset = dlgblk.getASPRowSet();\n\t\tdlgbar = mgr.newASPCommandBar(dlgblk);\n\t\tdlgbar.enableCommand(dlgbar.OKFIND);\n\t\tdlgbar.defineCommand(dlgbar.OKFIND,\"dlgOk\");\n\t\tdlgbar.enableCommand(dlgbar.CANCELFIND);\n\t\tdlgbar.defineCommand(dlgbar.CANCELFIND,\"dlgCancel\");\n\n\t\tdlglay = dlgblk.getASPBlockLayout();\n\t\tdlglay.setDialogColumns(2);\n\t\tdlglay.setDefaultLayoutMode(dlglay.CUSTOM_LAYOUT);\n\t\tdlglay.setEditable();\n\n\n\t\t//\n\t\t// dummy block\n\t\t//\n\n\t\tdummyblk = mgr.newASPBlock(\"DUMMY\");\n\n\t\tdummyblk.addField(\"DOC_TYPE\");\n\t\tdummyblk.addField(\"RETURN\");\n\t\tdummyblk.addField(\"ATTR\");\n\t\tdummyblk.addField(\"TEMP1\");\n\t\tdummyblk.addField(\"TEMP2\");\n\t\tdummyblk.addField(\"TEMP3\");\n\t\tdummyblk.addField(\"DUMMY\");\n\t\tdummyblk.addField(\"DUMMY_TYPE\");\n\t\tdummyblk.addField(\"DUMMY1\");\n\t\tdummyblk.addField(\"DUMMY2\");\n\t\tdummyblk.addField(\"DUMMY3\");\n\t\tdummyblk.addField(\"DUMMY4\");\n\t\tdummyblk.addField(\"DUMMY5\");\n\t\tdummyblk.addField(\"DUMMY6\");\n\t\tdummyblk.addField(\"LOGUSER\");\n\t\tdummyblk.addField(\"OUT_1\");\n\t}", "private DefaultHTMLs(String contents){\r\n\t\tthis.contents = contents;\r\n\t}", "go.micro.runtime.RuntimeOuterClass.CreateOptions getOptions();", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\tView view = inflater.inflate(R.layout.fragment_lesson_web_view, container,\r\n\t\t\t\tfalse);\r\n\t\tlessonWeb = (WebView) view.findViewById(R.id.webview);\r\n\t\tString sourceLesson = getArguments().getString(lessonWebUrl);\r\n\t\tlessonWeb.loadUrl(sourceLesson);\r\n\t\t\r\n\t\treturn view;\r\n\t}", "Set<? extends Doclet.Option> getSupportedOptions();", "public IfCondition() {\r\n super();\r\n }", "public TrecWebDocument() {\r\n try {\r\n startTag = XML_START_TAG.getBytes(\"utf-8\");\r\n endTag = XML_END_TAG.getBytes(\"utf-8\");\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }", "@DISPID(1610743816) //= 0x60020008. The runtime will prefer the VTID if present\r\n @VTID(15)\r\n int viewOptions();", "public DOMWriter(boolean can, String dH, String dT)\n{\n canonical = can;\n docHeader = dH;\n docType = dT;\n}", "public HtmlTree()\n {\n // do nothing\n }", "public LagartoDOMBuilder enableXmlMode() {\n\t\tconfig.ignoreWhitespacesBetweenTags = true; // ignore whitespaces that are non content\n\t\tconfig.parserConfig.setCaseSensitive(true); // XML is case sensitive\n\t\tconfig.parserConfig.setEnableRawTextModes(false); // all tags are parsed in the same way\n\t\tconfig.enabledVoidTags = false; // there are no void tags\n\t\tconfig.selfCloseVoidTags = false; // don't self close empty tags (can be changed!)\n\t\tconfig.impliedEndTags = false; // no implied tag ends\n\t\tconfig.parserConfig.setEnableConditionalComments(false); // disable IE conditional comments\n\t\tconfig.parserConfig.setParseXmlTags(true); // enable XML mode in parsing\n\t\treturn this;\n\t}", "@Override\n\tpublic void initialize(UimaContext context){\n\t\t\n\t\ttry {\n\t\t\tsuper.initialize(context);\n\t\t} catch (ResourceInitializationException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t\ttry {\n\t\t//\tread = true;\n\t\t\tdocument = Jsoup.connect(\"https://en.wikipedia.org/wiki/Ubiquitous_Knowledge_Processing_Lab\").get();\n\t\t\tdocElements = document.select(\"body\");\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 title = doc.title();\n\t}", "private static JSAP prepCmdLineParser()\n throws Exception {\n final JSAP jsap = new JSAP();\n\n final FlaggedOption site_xml = new FlaggedOption(\"hbase_site\")\n .setStringParser(JSAP.STRING_PARSER)\n .setDefault(\"/etc/hbase/conf/hbase-site.xml\")\n .setRequired(true)\n .setShortFlag('c')\n .setLongFlag(JSAP.NO_LONGFLAG);\n site_xml.setHelp(\"Path to hbase-site.xml\");\n jsap.registerParameter(site_xml);\n\n final FlaggedOption jmxremote_password = new FlaggedOption(\"jmxremote_password\")\n .setStringParser(JSAP.STRING_PARSER)\n .setDefault(\"/etc/hbase/conf/jmxremote.password\")\n .setRequired(true)\n .setShortFlag('j')\n .setLongFlag(JSAP.NO_LONGFLAG);\n jmxremote_password.setHelp(\"Path to jmxremote.password.\");\n jsap.registerParameter(jmxremote_password);\n\n final FlaggedOption throttleFactor = new FlaggedOption(\"throttleFactor\")\n .setStringParser(JSAP.INTEGER_PARSER)\n .setDefault(\"1\")\n .setRequired(false)\n .setShortFlag('t')\n .setLongFlag(JSAP.NO_LONGFLAG);\n throttleFactor.setHelp(\"Throttle factor to limit the compaction queue. The default (1) limits it to num threads / 1\");\n jsap.registerParameter(throttleFactor);\n\n final FlaggedOption num_cycles = new FlaggedOption(\"numCycles\")\n .setStringParser(JSAP.INTEGER_PARSER)\n .setDefault(\"1\")\n .setRequired(false)\n .setShortFlag('n')\n .setLongFlag(JSAP.NO_LONGFLAG);\n num_cycles.setHelp(\"Number of iterations to run. The default is 1. Set to 0 to run forever.\");\n jsap.registerParameter(num_cycles);\n\n final FlaggedOption pauseInterval = new FlaggedOption(\"pauseInterval\")\n .setStringParser(JSAP.INTEGER_PARSER)\n .setDefault(\"30000\")\n .setRequired(false)\n .setShortFlag('p')\n .setLongFlag(JSAP.NO_LONGFLAG);\n pauseInterval.setHelp(\"Time (in milliseconds) to pause between compactions.\");\n jsap.registerParameter(pauseInterval);\n\n final FlaggedOption waitInterval = new FlaggedOption(\"waitInterval\")\n .setStringParser(JSAP.INTEGER_PARSER)\n .setDefault(\"60000\")\n .setRequired(false)\n .setShortFlag('w')\n .setLongFlag(JSAP.NO_LONGFLAG);\n waitInterval.setHelp(\"Time (in milliseconds) to wait between \" +\n \"time (are we there yet?) checks.\");\n jsap.registerParameter(waitInterval);\n\n DateStringParser date_parser = DateStringParser.getParser();\n date_parser.setProperty(\"format\", \"HH:mm\");\n\n final FlaggedOption startTime = new FlaggedOption(\"startTime\")\n .setStringParser(date_parser)\n .setDefault(\"01:00\")\n .setRequired(true)\n .setShortFlag('s')\n .setLongFlag(JSAP.NO_LONGFLAG);\n startTime.setHelp(\"Time to start compactions.\");\n jsap.registerParameter(startTime);\n\n final FlaggedOption endTime = new FlaggedOption(\"endTime\")\n .setStringParser(date_parser)\n .setDefault(\"07:00\")\n .setRequired(true)\n .setShortFlag('e')\n .setLongFlag(JSAP.NO_LONGFLAG);\n endTime.setHelp(\"Time to stop compactions.\");\n jsap.registerParameter(endTime);\n\n final FlaggedOption dryRun = new FlaggedOption(\"dryRun\")\n .setStringParser(JSAP.BOOLEAN_PARSER)\n .setDefault(\"false\")\n .setRequired(false)\n .setShortFlag('d')\n .setLongFlag(JSAP.NO_LONGFLAG);\n dryRun.setHelp(\"Don't actually do any compactions or splits.\");\n jsap.registerParameter(dryRun);\n\n final FlaggedOption maxSplitSize = new FlaggedOption(\"maxSplitSize_in_MB\")\n .setStringParser(JSAP.LONG_PARSER)\n .setDefault(\"4096\")\n .setRequired(false)\n .setShortFlag('m')\n .setLongFlag(JSAP.NO_LONGFLAG);\n maxSplitSize.setHelp(\"Maximum size for store files (in MB) at which a region is split.\");\n jsap.registerParameter(maxSplitSize);\n\n final FlaggedOption splitsEnabled = new FlaggedOption(\"splitsEnabled\")\n .setStringParser(JSAP.BOOLEAN_PARSER)\n .setDefault(\"false\")\n .setRequired(false)\n .setShortFlag('h')\n .setLongFlag(JSAP.NO_LONGFLAG);\n splitsEnabled.setHelp(\"Do splits (default split size will be 256MB unless specified).\");\n jsap.registerParameter(splitsEnabled);\n\n final FlaggedOption table_names = new FlaggedOption(\"tableNames\")\n .setStringParser(JSAP.STRING_PARSER)\n .setRequired(false)\n .setShortFlag(JSAP.NO_SHORTFLAG)\n .setLongFlag(\"tableNames\")\n .setList(true)\n .setListSeparator(',');\n table_names.setHelp(\"Specific table names to check against (default is all)\");\n jsap.registerParameter(table_names);\n\n final FlaggedOption files_keep = new FlaggedOption(\"filesKeep\")\n .setStringParser(JSAP.INTEGER_PARSER)\n .setRequired(false)\n .setShortFlag('f')\n .setLongFlag(\"filesKeep\")\n .setDefault(\"5\");\n files_keep.setHelp(\"Number of storefiles to look for before compacting (default is 5)\");\n jsap.registerParameter(files_keep);\n\n\n return jsap;\n }", "public XMLDocument ()\r\n\t{\r\n\t\tthis (DEFAULT_XML_VERSION, true);\r\n\t}", "protected void DefineFlag()\n {\n String flagStr = \"-ci -d -h -hs -i:STR -n -o:STR -p -s:STR -t:INT -ti -v -x:STR\";\n \n // init the system option\n systemOption_ = new Option(flagStr);\n // Add the full name for flags\n systemOption_.SetFlagFullName(\"-ci\", \"Print_Config_Info\");\n systemOption_.SetFlagFullName(\"-d\", \"Print_Operation_Details\");\n systemOption_.SetFlagFullName(\"-h\", \"Help\");\n systemOption_.SetFlagFullName(\"-hs\", \"Hierarchy_Struture\");\n systemOption_.SetFlagFullName(\"-i\", \"Input_File\");\n systemOption_.SetFlagFullName(\"-n\", \"No_Output\");\n systemOption_.SetFlagFullName(\"-o\", \"Output_File\");\n systemOption_.SetFlagFullName(\"-p\", \"Show_Prompt\");\n systemOption_.SetFlagFullName(\"-s\", \"Field_Separator\");\n systemOption_.SetFlagFullName(\"-t\", \"Term_Field\");\n systemOption_.SetFlagFullName(\"-ti\", \"Display_Filtered_Input\");\n systemOption_.SetFlagFullName(\"-v\", \"Version\");\n systemOption_.SetFlagFullName(\"-x\", \"Load_Configuration_file\");\n }", "final public boolean requiresCHV()\r\n {\r\n return requires_CHV;\r\n }", "private EscidocConfiguration() throws SystemException {\r\n System.setProperty(\"java.awt.headless\", \"true\");\r\n this.properties = loadProperties();\r\n }", "@Test\n\tpublic void testLocalLinkHTMLAsXML(){\n \tFile xml = new File(testData,\"html/htmlsidekick.html\");\n \t\n \tBuffer b = TestUtils.openFile(xml.getPath());\n\t\t\n \t// wait for end of parsing\n \tdoInBetween(new Runnable(){\n \t\t\tpublic void run(){\n \t\t\t\taction(\"sidekick.parser.xml-switch\",1);\n \t\t}}, \n \t\tmessageOfClassCondition(sidekick.SideKickUpdate.class),\n \t\t10000);\n\t\t\n \taction(\"sidekick-tree\");\n \tPause.pause(2000);\n\n \tHyperlinkSource src = new HTMLHyperlinkSource();\n\t\tfinal Hyperlink h = src.getHyperlink(TestUtils.view().getBuffer(), 893);\n\t\tassertNotNull(h);\n\t\tassertTrue(h instanceof jEditOpenFileAndGotoHyperlink);\n\t\tassertEquals(29, h.getStartLine());\n\t\tassertEquals(29, h.getEndLine());\n\t\tGuiActionRunner.execute(new GuiTask() {\n\t\t\t\n\t\t\t@Override\n\t\t\tprotected void executeInEDT() throws Throwable {\n\t\t\t\th.click(TestUtils.view());\n\t\t\t}\n\t\t});\n\t\t\n\t\t// moved same file, but below\n\t\tassertEquals(b.getPath(),TestUtils.view().getBuffer().getPath());\n\t\tassertEquals(114, TestUtils.view().getTextArea().getCaretLine());\n\t\t\n\t\tTestUtils.close(TestUtils.view(), b);\n\t}", "public View() {\n // (this constructor is here just for the javadoc tag)\n }" ]
[ "0.560362", "0.5515084", "0.5235874", "0.5187604", "0.51788443", "0.51782715", "0.5056567", "0.4943571", "0.48350173", "0.48188233", "0.48153365", "0.47972557", "0.47458586", "0.47389325", "0.47015482", "0.46999922", "0.46944964", "0.46816787", "0.45823303", "0.45606324", "0.4559882", "0.45584232", "0.45561627", "0.45480365", "0.44868213", "0.4472866", "0.4465915", "0.44181332", "0.44145462", "0.44110307", "0.44098437", "0.43934917", "0.437727", "0.43711743", "0.4364936", "0.43586877", "0.43555143", "0.4345161", "0.4337865", "0.4333538", "0.4330752", "0.4329994", "0.43216673", "0.4320675", "0.43203935", "0.43165138", "0.43038687", "0.43028626", "0.4298977", "0.4295284", "0.42900562", "0.4278317", "0.42720574", "0.42685622", "0.42671543", "0.4261511", "0.42569953", "0.4253548", "0.42398548", "0.42353684", "0.42337358", "0.4209627", "0.42025375", "0.42018667", "0.41933373", "0.4188128", "0.41808286", "0.41773227", "0.41757843", "0.41721117", "0.41606927", "0.4159527", "0.41582426", "0.41553447", "0.41532743", "0.41523805", "0.4149054", "0.41483492", "0.41431192", "0.4137921", "0.4136394", "0.41322997", "0.4131844", "0.41302007", "0.41274166", "0.412626", "0.4126203", "0.4126043", "0.41199696", "0.4115401", "0.41145822", "0.4114186", "0.41109043", "0.41050264", "0.41048715", "0.41047338", "0.4100487", "0.41003677", "0.4093475", "0.40932316" ]
0.58592653
0
JAVAadded data provider for test method
@DataProvider(name = "supportVmlDataProvider") public static Object[][] supportVmlDataProvider() throws Exception { return new Object[][] { {true}, {false}, }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@DataProvider\r\n\t\t public Object[][] getTestData()\r\n\t\t\t{\r\n\t\t\t \r\n\t\t\t\treturn TestUtil.getData(suiteProductDescPageXls,this.getClass().getSimpleName());\r\n\t\t\t}", "@DataProvider(name = \"TestDataMahindra\")\n\tpublic Object[][] amazonProviderMethod() {\n\t\treturn new Object[][] { { \"Club Mahindra\",\"Some Title\" ,\"No Comments because the place is awesome\",\"https://www.tripadvisor.in/\"}};\n\t}", "@DataProvider\n public Object[][] Data() \n {\n return new Object[][]\n {\n {\"a\" ,\"aaaa\" },\n { \"b\" ,\"bbb\"},\n {\"c\" ,\"ccc\"}\n \n };\n }", "@Test\n void loadData() {\n }", "public void testGetBasedata() {\n }", "public void testSetBasedata() {\n }", "@DataProvider\r\npublic Object[][] getData()\r\n{\n\tObject[][] data=new Object[3][3];\r\n\tdata[0][0]=\"1abcd\";\r\n\tdata[0][1]=\"1xyz\";\r\n\tdata[0][2]=\"1dsaf\";\r\n\t\r\n\t\r\n\tdata[1][0]=\"2abcd\";\r\n\tdata[1][1]=\"2xyz\";\r\n\tdata[1][2]=\"2dsaf\";\r\n\t\r\n\tdata[2][0]=\"3abcd\";\r\n\tdata[2][1]=\"3xyz\";\r\n\tdata[2][2]=\"3dsaf\";\r\n\t\r\n\t\r\n\t\r\n\t\r\n\treturn data;\r\n\t\r\n\t\r\n}", "@DataProvider\r\n public Object[][] testData() {\r\n\r\n return new Object[][]{\r\n {\"Hidden\", \"Archived\"},\r\n {\"Required\", \"Draft\"},\r\n {\"Hidden\", \"Public\"}\r\n };\r\n }", "@DataProvider(name=\"BookData\")\n public Object[][] getData()\n {\n\n return new Object[][] {{\"once\", \"1111\"},{\"twice\",\"2222\"},{\"thrice\",\"3333\"}};\n }", "@DataProvider\n public Object[][] getData()\n {\n\t Object[][] data=new Object[1][6];\n\t //0th row\n\t data[0][0]=\"Arun Raja\";\n\t data[0][1]=\"A\";\n\t data[0][2]=\"[email protected]\";\n\t data[0][3]=\"Test Lead\";\n\t data[0][4]=\"8971970444\";\n\t data[0][5]=\"Attra\";\n\t return data;\n }", "public static void populateData() {\n\n }", "DataFactory getDataFactory();", "@DataProvider(name = \"populateTestDataProvider\")\n public Object[][] populateTestDataProvider() {\n return new Object[][] { { true }, { false } };\n }", "@DataProvider(name=\"Unverified test data\")\n\t\n\tpublic String[][] getTestData()\n\t {\n\t\tlog.info(\"reading exceldata\");\n\t\tString[][] testRecords=getData(\"Other.xlsx\", \"Unverified\");\n\t\treturn testRecords;\n\t }", "@DataProvider\r\n\tpublic static Object[][] loginTestData() {\r\n\t\t\r\n\t\tIExcelDataManager edm = new AddMultEmpExcel(\"testdata/OHRMTestData-Priya.xlsx\", \"OHRM-New-Emp-Data\", \"NewEmpData\");\r\n\t\treturn edm.getData();\r\n\t\t\r\n\t\t// A new overload in case excel has only one sheet\r\n\t\t//tableToReturn = edm.getExcelData(\"filePath\" , \"tableName\");\r\n\t\t\r\n\t\t// tableToReturn.length ---- Gives us row count\r\n\t\t/*\r\n\t\tfor(int i=0;i<tableToReturn.length;i++)\r\n\t\t{\r\n\t\t\t//tableToReturn[0].length ---- Col count in 0th row\r\n\t\t\t//for(int j=0;j<tableToReturn[i].length;j++)\r\n\t\t\t//{\r\n\t\t\t\t\r\n\t\t\t\tif(tableToReturn[i][0]==null)\r\n\t\t\t\t\tFirstName = \"\";\r\n\t\t\t\telse \r\n\t\t\t\t\tFirstName= tableToReturn[i][0].toString();\r\n\t\t\t\t\r\n\t\t\t\tif(tableToReturn[i][1]==null)\r\n\t\t\t\t\tMiddleName = \"\";\r\n\t\t\t\telse \r\n\t\t\t\t\tMiddleName = tableToReturn[i][1].toString();\r\n\t\t\t\t\r\n\t\t\t\tif(tableToReturn[i][1]==null)\r\n\t\t\t\t\tLastName = \"\";\r\n\t\t\t\telse \r\n\t\t\t\t\tLastName = tableToReturn[i][1].toString();\r\n\t\t}\r\n\t\t*/\r\n\t\t\r\n\t}", "@DataProvider(name=\"testdata\")\n\tpublic Object[][] getData()\n\t{\t\n\t\tString projectPath = System.getProperty(\"user.dir\");\n\t\tObject[][] data= testData(projectPath+\"/excel/data.xlsx\", \"Sheet1\");\n\t\treturn data;\n\t}", "@Override\n public BaseDataProvider creatDataProvider() {\n return null;\n }", "private void createTestData(String lang) {\n CreateCallback<ShoppingList> callback = new CreateCallback<ShoppingList>() {\n @Override\n public void onSuccess(ShoppingList object) {\n //refresh data\n mainFragment.setShownShoppingListsToArchived(false);\n }\n\n @Override\n public void onFailure() {\n //not used here\n }\n };\n (new TestData()).createTestData(getContentResolver(), lang, callback);\n }", "@Test\n public void checkDataValue() {\n\n manager.getAllExpense(new DatabaseCallback() {\n @Override\n public void onDataLoaded(List<ExpenseEntity> lists) {\n assertEquals(lists.size(),2);\n }\n\n @Override\n public void onAdded() {\n\n }\n\n @Override\n public void onQueryAll() {\n\n }\n });\n\n }", "@Test\n @UseDataProvider(\"dataWithIncorrectDataType\")\n public void incorrectDataTypeInDataProvider(int executionCount, String string) {\n }", "@DataProvider(name = \"test1\")\n\tpublic Object[][] createData1() {\n\t return new Object[][] {\n\t { \"Cedric\", new Integer(36) },\n\t { \"Anne\", new Integer(37)},\n\t };\n\t}", "@Test (dataProvider=\"testdata\")\r\n\r\n\r\n\r\n\t //public void testAdd(Integer exp, Inputs i) {\r\n\r\n\t public void testAdd(Integer exp, int a, int b) {\n\r\n\t assertEquals( exp, (Integer) calci.add(a,b));\r\n\r\n\t //fail(\"expected exceotion didn't occur\");\r\n\r\n\t //assertTrue(false);\r\n\r\n\t }", "DataStore getDataStore ();", "@DataProvider\n public Object[][] correctData() {\n return new Object[][]{\n {\"nikol344265\", \"NikolR4551\"}\n };\n }", "@DataProvider ( name = \"AddressSaveOptionTestData\" )\r\n\t\r\n\tpublic static String[][] getAddressSaveOptionTestData(){\r\n\t\t\r\n\t\tString[][] AddressSaveOptionTestData;\r\n\t\t\r\n\t\tAddressSaveOptionTestData = TestDataInput.getMatchedInputTableRowsForApplCodeAndTestDataType(\r\n\t\tAddress.TestDataSheetName,\r\n\t\tTestApplicationParams.getCurrentTestApplication(),\r\n\t\t\"AddressSaveOptionTest\");\r\n\t\t\t\r\n\t\treturn (AddressSaveOptionTestData);\r\n\t\t\r\n\t}", "@DataProvider(name=\"Booksdata\")\n public Object[][] data()\n {\n\t return new Object[][] { {\"teste11\",\"011\"},{\"teset22\",\"022\"},{\"teset33\",\"033\"} };\n }", "void populateData();", "public interface DataProvider<T> {\n T getData(String key);\n}", "@Ignore\n\t\[email protected](dataProvider = \"dp\")\n\t\tprivate void dataProviderWithParameterKey(@ParameterKey(\"key_0\") String param_0, String param_1) {\n\t\t}", "@DataProvider\n\tpublic Object[][] Authentication() throws Exception {\n\t\tExcelUtils_3.setExcelFile(\"D:/Projects/Java Project/ActiTime_Project/src/TestNG_Example_15/TestData.xlsx\",\"Sheet1\");\t\t\n\t\tsTestCaseName = this.toString();\n\t\tSystem.out.println(\"sTestCaseName \" + sTestCaseName );\n\t\t// From above method we get long test case name including package and\n\t\t// class name etc.\n\n\t\t// The below method will refine your test case name, exactly the name\n\t\t// use have used\n\n\t\tsTestCaseName = ExcelUtils_3.getTestCaseName(sTestCaseName);\n\n\t\t// Fetching the Test Case row number from the Test Data Sheet\n\t\t// Getting the Test Case name to get the TestCase row from the Test Data\n\t\t// Excel sheet\n\n\t\tiTestCaseRow = ExcelUtils_3.getRowContains(sTestCaseName, 0);\n\n\t\tObject[][] testObjArray = ExcelUtils_3.getTableArray(\"D:/Projects/Java Project/ActiTime_Project/src/TestNG_Example_15/TestData.xlsx\",\"Sheet1\", iTestCaseRow);\n\n\t\treturn (testObjArray);\n\n\t}", "@Override\n\tpublic void saveTestingData() {\n\t\t\n\t}", "public ParcoursDataService() {\n this.repository = new JeeRepository();\n }", "@Test (dataProvider= \"My data provider\")\r\n\tpublic void TestCalcParamitarized(String in1,String Op, String in2,String Expec){ //.... 1- Parameterized test method -Define method input parameters-\r\n\t\tCalc(in1, Op, in2);\r\n\t\tassertResult(Expec);\t\t\r\n\t}", "private void initData(){\n\n }", "public interface BaseDataProvider {\n String FireFoxProfileFromComputer = \"firefox.profile\";\n String FireFoxLocationFromPC = \"firefox.location.from.pc\";\n String ChromeLocationFromPC = \"chrome.location.from.pc\";\n String LOOPME_BIZ = \"loopme.biz\";\n String propertiesFile = \"src/test/resources/TestData.properties\";\n String APACH_LOG = \"org.apache.commons.logging.Log\";\n String JDK_14_LOGGER = \"org.apache.commons.logging.impl.Jdk14Logger\";\n String SOUCELABS_SELENIUM_VERSION = \"selenium.version\";\n String SOUCELABS_FIREFOXE_VERSION = \"firefox.version\";\n String SOUCELABS_IE_VERSION = \"ie.version\";\n String SOUCELABS_OS_WINDOWS7_PLATFORM = \"os.windows7.platform\";\n String SOUCELABS_MACOS_PLATFORM = \"os.macos.platform\";\n String SOUCELABS_OPERA_VERSION = \"opera.version\";\n String SOUCELABS_SAFARI_VERSION = \"safari.version\";\n String BROWSER_SAFARI = \"safari\";\n String BROWSER_FIREFOX = \"firefox\";\n String BROWSER_CHROME = \"chrome\";\n String BROWSER_INTERNET_EXPLORER= \"ie\";\n\n}", "public void GetDataBaseData() {\n }", "protected void loadData()\n {\n }", "@DataProvider(name = \"data\")\n\tpublic Object[][] testDataSupplier() throws Exception {\n\t\tString filePath = \"C:\\\\Users\\\\rekha\\\\OneDrive\\\\Desktop\\\\CP- SAT\\\\Screenshot\\\\Rediffdata.xlsx\";\n\n\t\t// read excel file using file input stream, using Apache POI\n\t\tFileInputStream fis = new FileInputStream(new File(filePath));\n\t\tXSSFWorkbook wb = new XSSFWorkbook(fis);\n\t\tXSSFSheet sheet = wb.getSheet(\"Sheet1\");\n\n\t\t// calculate total number of rows and columns so that we can iterate over it.\n\t\tint totalNumberOfRows = sheet.getLastRowNum()+1 ;\n\t\tint totalNumberOfCols = sheet.getRow(0).getLastCellNum();\n\n\t\t// create an object array. which will store the test data from excel file\n\t\tObject[][] testdata1 = new Object[totalNumberOfRows][totalNumberOfCols];\n\n\t\tfor (int i = 1; i < totalNumberOfRows; i++) {\n\t\t\tfor (int j = 0; j < totalNumberOfCols; j++) {\n\n\t\t\t\ttestdata1[i][j] = sheet.getRow(i).getCell(j).toString();\n\t\t\t}\n\t\t}\n\t\treturn testdata1;\n\t}", "@Test\n public void testCSesionInicioxData2() {\n System.out.println(\"testCSesionInicioxData\");\n CSesion instance = new CSesion();\n DataProveedor TC = new DataProveedor(\"153\", \"tim123\", \"[email protected]\", \"Tim\", \"Cook\", new Date(60, 10, 1));\n instance.inicioSesion(TC);\n }", "DataProviders retrieveProviders() throws RepoxException;", "DataProviders retrieveProviders() throws RepoxException;", "void setDataProvider(AbstractDataProvider<WorkerDTO> provider);", "public interface loadDataService {\n public List<Row> getComboContent( String sType,String comboType, Map<String,String[]> parameterMap , usersInfo loggedUser) throws Exception;\n public Result getGridContent(PagingObject po, String gridType,Map<String,String[]> parameterMap,String searchText , usersInfo loggedUser,String statusID,String from,String where ) throws Exception;\n public List<listInfo> loadStrukturList(String partID,long langID) throws Exception;\n public finalInfo getOrgInfo(long treeID) throws Exception;\n public categoryFinalInfo getCategoryInfo(long treeID) throws Exception;\n public carriersInfo getCariesInfo(long carryID) throws Exception;\n public carriersInfo getOrganizationInfo(long carryID) throws Exception;\n public List<contact> getOrgContacts(long treeID) throws Exception;\n public person getEmployeeInfo( long empId) throws Exception;\n public List<examples> getExamplesInfo(long exmpID,String langID) throws Exception;\n public List<contact> getPersonContact(long perID) throws Exception;\n public List<docList> loadQRphoto(Connection con, long exmplID,long picType) throws Exception;\n public List<docList> loadPhoto(Connection con, long exmplID,long picType) throws Exception;\n public List<docList> getExamplesPictures(Connection cc, long relID, long relType) throws Exception;\n public List<examples> getExamplesOperation(Connection cc, long relID, long langID) throws Exception;\n public int checkUser(String uName) throws Exception;\n public int checkDictRecord(String text, int dictType,String org,String pos) throws Exception ;\n public usersInfo loadUserInfo(String pID) throws Exception;\n public List<person> loadEmpList( int OrgID) throws Exception;\n public List<Row> getSelectContent( String type, Map<String, String[]> parameterMap , usersInfo loggedUser) throws Exception;\n public List<subjElement> getADVSearchMenuList(String partID) throws Exception;\n public String getADVInfo(String paramID,String paramVal,String val,String cond,String typ)throws Exception;\n public List<listInfo> loadComboForAdvancedSearch(String prmID,long parametr) throws Exception;\n public List<docList> loadRightPanelPhoto(long realID, int iType) throws Exception;\n public List<categoryFinalInfo> getCategoryStructure(long catID, int id) throws Exception;\n}", "@Test\n public void getItemProvider()\n {\n assertNotNull(timeline.getItemProvider());\n }", "private void initData() {\n\n }", "private void addMockData() {\n League league1 = new League(\"1\", \"Premier League\");\n League league2 = new League(\"2\", \"La Liga\");\n League league3 = new League(\"3\", \"Bundesliga\");\n\n leagueList.add(league1);\n leagueList.add(league2);\n leagueList.add(league3);\n }", "PersistentDataHolder getDataHolder();", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "protected abstract void retrievedata();", "@Test\n public void testInsertData() throws Exception {\n//TODO: Test goes here... \n }", "public DatabeneFormatsTestDataProvider() {\n this.basePath = SystemInfo.getCurrentDir();\n }", "public interface DataAccessor {\n}", "public interface IXMLDataProvider {\r\n \r\n /**\r\n * Returns the root node of the XML file.\r\n * @return\tthe root node of the XML file\r\n * @throws TestDataException\tthrown, when parsing errors occur\r\n */\r\n public Node getRootNode() throws Exception;\r\n \r\n /**\r\n * Returns the number of XML data nodes matching the given node name\r\n * @param parent the parent node where to look for child nodes with the specified name\r\n * @param nodeName\tthe node name\r\n * @return\tthe number of nodes in the XML file\r\n * @throws TestDataException\tusually thrown when parsing errors occur\r\n */\r\n public int countNodesByName(Node parent, String nodeName) throws Exception;\r\n \r\n /**\r\n * Returns an array containing all nodes matching thi given node name\r\n * @param parent\tthe parent node where to look for nodes with the specified node name\r\n * @param nodeName\tthe name of the node\r\n * @return\tan array containing all node names, if there are no nodes matching the geven name, NULL is returned\r\n * @throws TestDataException\tusually thrown when parsing errors occur\r\n */\r\n public Node [] getNodesByName(Node parent, String nodeName) throws Exception;\r\n \r\n /**\r\n * Returns the node value of a given node.\r\n * @param node\tthe requested node\r\n * @return\ta string representing the node value\r\n * @throws TestDataException\tusually thrown when parsing errors occur\r\n */\r\n public String getNodeValue(Node node) throws Exception;\r\n \r\n \r\n /**\r\n * Returns the attribute value of a given attribute name within the provided node.\r\n * @param node\tthe node where to look for the attribute\r\n * @param attributeName\tthe name of the attribute to look for\r\n * @return\ta string representing the attribute value\r\n * @throws TestDataException\tusually thrown when parsing errors occur\r\n */\r\n public String getAttributeValue(Node node, String attributeName) throws Exception;\r\n \r\n public int getNumAttributes(Node node) throws Exception ;\r\n \r\n /**\r\n * Parses an XML file specified by the given file name.\r\n * @param fileName\tthe file name of the XML file\r\n * @throws TestDataException\tusually thrown when parsing errors occur\r\n */\r\n public void parse(String fileName) throws Exception;\r\n}", "public interface SomeDataService {\n\n\t// Dummy class to be used as mock interface with Mockito.\n\tint[] retrieveAllData();\n}", "public interface TDgapWsDailyStatProvider extends BaseProvider<TDgapWsDailyStat> {\n PageInfo<Map<String, Object>> list(Map<String, Object> params);\n\n public int stateDailyLog(Date time);\n\n public void testPageHelper();\n\n}", "@Test(dataProviderClass = DataproviderRegistration.class,\n dataProvider= \"RegistrationTestDataProvider\", enabled=true, description=\"Login\",groups={\"Smoke\"},priority=1)\n public void testWithDataProvider( String firstname,String middlename,String lastname,String countryname,\n String address,String phone,\n String currentEmail,\n String currentrepassword,\n String currentPassword) {\n Registration reg = new Registration(driver, firstname, middlename, lastname, countryname, address, phone, currentEmail,\n currentrepassword, currentPassword);\n reg.createScoutaccount();\n reg.createaccount();\n WebDriverWait wait = new WebDriverWait(driver, 10);\n wait.until(ExpectedConditions.urlToBe(\"http://ec2-52-53-181-39.us-west-1.compute.amazonaws.com/sign-in.html\"));\n Assert.assertEquals(driver.getCurrentUrl(), \"http://ec2-52-53-181-39.us-west-1.compute.amazonaws.com/sign-in.html\");\n Loginpage log1 = new Loginpage(driver, currentEmail, currentPassword);\n log1.clickLogin();\n WebDriverWait wait1 = new WebDriverWait(driver, 10);\n wait1.until(ExpectedConditions.urlToBe(\"http://ec2-52-53-181-39.us-west-1.compute.amazonaws.com/talents.html\"));\n Assert.assertEquals(driver.getCurrentUrl(), \"http://ec2-52-53-181-39.us-west-1.compute.amazonaws.com/talents.html\");\n }", "public interface DataProvider {\n /**\n * @param userName\n * @param password\n * @return Authenticated used.\n */\n User authenticate(String userName, String password);\n\n ArrayList<POI> getPois();\n}", "@Test(dataProvider = \"getData\") //dataProvider value should be equal to @DataProvider method name\r\n\tpublic void doLogin(String text) throws InterruptedException \r\n\t{\n\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"C://Automation//chromedriver_win32//chromedriver.exe\");\r\n\t\tdriver=new ChromeDriver();\r\n\r\n\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\r\n\t\tdriver.manage().window().maximize();\r\n\t\tdriver.get(\"http://www.google.com\");\r\n\t\tdriver.findElement(By.xpath(\"//input[@title='Search']\")).sendKeys(text);\r\n\t\tdriver.findElement(By.name(\"btnK\")).click();\r\n\t\tThread.sleep(7000);\r\n\t\tdriver.quit();\r\n\t}", "@Test(dataProvider = \"inputs\", dataProviderClass=TestData.class)\n\tpublic void testMethod(String firstName, String lastName, String age) {\n\t\tSystem.out.println(\"first name: \" + firstName);\n\t\tSystem.out.println(\"last name: \" + lastName);\n\t\tSystem.out.println(\"Age: \" + age);\n\t}", "public void InitData() {\n }", "public interface ITestDataAnalyzer {\n List<INameValue> getAllTestInputs();\n INameValue getTestInput(String name);\n List<INameValue> getAllExpectedValues();\n INameValue getExpectedValue(String name);\n List<TestValueResult> getValueResults(List<INameValue> actualValues);\n}", "@DataProvider()\n\tpublic Object[][] getData() {\n\t\t\n\t\treturn ConstantsArray.getArrayData();\n\t}", "@DataProvider(name = \"employee\")\n public Object[][] getEmployee() {\n return new Object[][] {{generateEmployee()}};\n }", "@Test\r\n public void UserServiceTest_RetrievePresenter()\r\n {\r\n UserService service = new UserService(); \r\n List<User> users = null;\r\n try {\r\n users = service.getPresenterList();\r\n } catch (SQLException e) {\r\n fail();\r\n System.out.println(e);\r\n } \r\n }", "@DataProvider(name = \"dataForTest\")\n public Object[][] dataForTest() throws URISyntaxException {\n final String FAILED_REDIRECT = \"https://www.freecodecamp.com/email-signin\";\n return new Object[][] {\n // postive test - correct email and pwd\n {\"\", \"\", \"Welcome to Free Code Camp.\",\n new URI(\"https://www.freecodecamp.com/\" + SUCCESS_SIGN_IN_URL_STRING) },\n // negative test - for null email and pwd\n {null, null, FAILED_TEXT, new URI(FAILED_REDIRECT)},\n // negative - empty string email and pwd\n {\"\", \"\", FAILED_TEXT, new URI(FAILED_REDIRECT)},\n // negative - non-empty wrong email and correct pwd\n {\"[email protected]\", \"\", FAILED_TEXT, new URI(FAILED_REDIRECT)},\n // negative - correct email and non-empty wrong pwd\n {\"\", \"123\", FAILED_REDIRECT, new URI(FAILED_REDIRECT)},\n // negative - correct email and wrong pwd with special characters\n {\"\", \":/?=&\", FAILED_REDIRECT, new URI(FAILED_REDIRECT)},\n };\n }", "InlineDataExample createInlineDataExample();", "public DataStoreTest( String testName )\n {\n super( testName );\n }", "@DataProvider ( name = \"CreditCardTestData\" )\r\n\t\r\n\tpublic static String[][] getTestDataForCreditCardValidations(){\r\n\t\t\r\n\t\tString[][] CreditCardCheckTestData ;\r\n\t\t\r\n\t\tCreditCardCheckTestData = TestDataInput.getMatchedInputTableRowsForApplCodeAndTestDataType(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tPaymentMethod.TestDataSheetName,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tTestApplicationParams.getCurrentTestApplication(),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"CreditCardTest\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t \t\t\r\n\t\treturn (CreditCardCheckTestData);\r\n\t\t\r\n\t}", "@Test\n\tpublic void testFetchResult_with_proper_data() {\n\t}", "@Test\n public void findAllEngineerPositions() {\n Map<String, String> employees = getEmployees();\n// Your code here\n }", "public void generateData()\n {\n }", "private static void createDemoData() {\n if (userManager.user_map.isEmpty() || accountManager.account_map.isEmpty() || banknoteManager.banknotes.isEmpty()) {\n if (userManager.user_map.isEmpty()) {\n userManager.createAccount(BankManager.class.getSimpleName(), \"jen\", \"1234\");\n userManager.createAccount(Teller.class.getSimpleName(), \"pete\", \"1234\");\n userManager.createAccount(Customer.class.getSimpleName(), \"steve\", \"1234\");\n }\n\n if (accountManager.account_map.isEmpty()) {\n accountManager.addAccount(CreditCard.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Youth.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Saving.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Chequing.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(CreditLine.class.getSimpleName(), Collections.singletonList(\"steve\"));\n }\n\n if (banknoteManager.banknotes.isEmpty()) {\n banknoteManager.banknotes = new HashMap<>();\n for (int d : banknoteManager.DENOMINATIONS) {\n banknoteManager.banknotes.put(String.valueOf(d), 50);\n }\n }\n }\n }", "public interface DBHelper {\n\n boolean insertUserData(String username);\n\n\n String getData();\n\n}", "public void testADDWithData() throws Exception {\n String data =\"Some words about Helen of Troy\";\n doAdd(data, null);\n }", "public interface DataSource {\r\n\t\r\n\tstatic final String FILE_PATH = \"plugins/DataManager/\";\r\n\t\r\n\tpublic void setup();\r\n\t\r\n\tpublic void close();\r\n\r\n\tpublic boolean set(String pluginKey, String dataKey, String data) ;\r\n\t\r\n\tpublic boolean set(String pluginKey, String dataKey, int data);\r\n\t\r\n\tpublic boolean set(String pluginKey, String dataKey, long data);\r\n\t\r\n\tpublic boolean set(String pluginKey, String dataKey, float data);\r\n\t\r\n\tpublic boolean set(String pluginKey, String dataKey, double data);\r\n\t\r\n\tpublic boolean set(String pluginKey, String dataKey, boolean data);\r\n\r\n\tpublic boolean set(String pluginKey, String dataKey, List<String> data);\r\n\t\r\n\tpublic Optional<String> getString(String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<Integer> getInt(String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<Long> getLong(String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<Float> getFloat(String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<Double> getDouble(String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<Boolean> getBoolean(String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<List<String>> getList(String pluginKey, String dataKey);\r\n\r\n\tpublic boolean set(UUID uuid, String pluginKey, String dataKey, String data) ;\r\n\t\r\n\tpublic boolean set(UUID uuid, String pluginKey, String dataKey, int data);\r\n\t\r\n\tpublic boolean set(UUID uuid, String pluginKey, String dataKey, long data);\r\n\t\r\n\tpublic boolean set(UUID uuid, String pluginKey, String dataKey, float data);\r\n\t\r\n\tpublic boolean set(UUID uuid, String pluginKey, String dataKey, double data);\r\n\t\r\n\tpublic boolean set(UUID uuid, String pluginKey, String dataKey, boolean data);\r\n\r\n\tpublic boolean set(UUID uuid, String pluginKey, String dataKey, List<String> data);\r\n\t\r\n\tpublic Optional<String> getString(UUID uuid, String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<Integer> getInt(UUID uuid, String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<Long> getLong(UUID uuid, String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<Float> getFloat(UUID uuid, String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<Double> getDouble(UUID uuid, String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<Boolean> getBoolean(UUID uuid, String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<List<String>> getList(UUID uuid, String pluginKey, String dataKey);\r\n\t\r\n\tpublic boolean addGroup(String group, String pluginKey);\r\n\t\r\n\tpublic boolean deleteGroup(String group, String pluginKey);\r\n\t\r\n\tpublic boolean isGroup(String group, String pluginKey);\r\n\t\r\n\tpublic boolean addMember(UUID uuid, String group, String pluginKey);\r\n\t\r\n\tpublic boolean removeMember(UUID uuid, String group, String pluginKey);\r\n\t\r\n\tpublic boolean isMember(UUID uuid, String group, String pluginKey);\r\n\t\r\n\tpublic Optional<List<UUID>> getMemberIDs(String group, String pluginKey);\r\n\t\r\n\tpublic List<String> getGroups(String pluginKey);\r\n\t\r\n\tpublic List<String> getGroups(UUID uuid, String pluginKey);\r\n\t\r\n\tpublic boolean set(String group, String pluginKey, String dataKey, String data);\r\n\t\r\n\tpublic boolean set(String group, String pluginKey, String dataKey, int data);\r\n\t\r\n\tpublic boolean set(String group, String pluginKey, String dataKey, long data);\r\n\t\r\n\tpublic boolean set(String group, String pluginKey, String dataKey, float data);\r\n\t\r\n\tpublic boolean set(String group, String pluginKey, String dataKey, double data);\r\n\t\r\n\tpublic boolean set(String group, String pluginKey, String dataKey, boolean data);\r\n\r\n\tpublic boolean set(String group, String pluginKey, String dataKey, List<String> data);\r\n\t\r\n\tpublic Optional<String> getString(String group, String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<Integer> getInt(String group, String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<Long> getLong(String group, String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<Float> getFloat(String group, String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<Double> getDouble(String group, String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<Boolean> getBoolean(String group, String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<List<String>> getList(String group, String pluginKey, String dataKey);\r\n\r\n\tpublic boolean set(UUID uuid, String group, String pluginKey, String dataKey, String data) ;\r\n\t\r\n\tpublic boolean set(UUID uuid, String group, String pluginKey, String dataKey, int data);\r\n\t\r\n\tpublic boolean set(UUID uuid, String group, String pluginKey, String dataKey, long data);\r\n\t\r\n\tpublic boolean set(UUID uuid, String group, String pluginKey, String dataKey, float data);\r\n\t\r\n\tpublic boolean set(UUID uuid, String group, String pluginKey, String dataKey, double data);\r\n\t\r\n\tpublic boolean set(UUID uuid, String group, String pluginKey, String dataKey, boolean data);\r\n\r\n\tpublic boolean set(UUID uuid, String group, String pluginKey, String dataKey, List<String> data);\r\n\t\r\n\tpublic Optional<String> getString(UUID uuid, String group, String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<Integer> getInt(UUID uuid, String group, String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<Long> getLong(UUID uuid, String group, String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<Float> getFloat(UUID uuid, String group, String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<Double> getDouble(UUID uuid, String group, String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<Boolean> getBoolean(UUID uuid, String group, String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<List<String>> getList(UUID uuid, String group, String pluginKey, String dataKey);\r\n\r\n}", "public interface HelperDataManager {\n\n\t/**\n\t * add data to the workingset.\n\t * \n\t * @param data\n\t */\n\tpublic void putData(HelperData data);\n\n\t/**\n\t * retrieve data of the given type, or null if not available.\n\t * \n\t * @param type\n\t * the type of the data to retrieve\n\t * @return the data\n\t */\n\tpublic Data getData(HelperDataType type);\n\n\t/**\n\t * @return all the {@link HelperDataType}s for which data is available\n\t */\n\tpublic List<HelperDataType> getDataTypes();\n\n\t/**\n\t * sets the data of tyhe given type as active one.\n\t * \n\t * @param dataType\n\t */\n\tpublic void setActiveHelperData(HelperDataType dataType);\n\t\n\t/**\n\t * @return the actually active Helper-Data\n\t */\n\tpublic Data getActiveHelperData();\n\t\n\t/**\n\t * adds a listener\n\t * \n\t * @param listener\n\t * the listener to add\n\t */\n\tpublic void addListener(HelperDataManagerListener listener);\n\n\t/**\n\t * removes a listener\n\t * \n\t * @param listener\n\t * the listener to remove\n\t */\n\tpublic void removeListener(HelperDataManagerListener listener);\n}", "public WebRowSetDataProvider() {\n }", "@Test\n public void NewDataAvailableTest() {\n String vatNumber = \"vatNumber\";\n Date birthDate = new Date(000000000);\n String fiscalCode = \"fiscalCodeTest00\";\n String password = \"password\";\n Individual individual = new Individual(fiscalCode, \"name\", \"surname\", password, birthDate, 40.5f, 10.0f);\n userController.addIndividual(individual);\n ThirdParty thirdParty = new ThirdParty(vatNumber,\"thirdParty\", password);\n userController.addThirdParty(thirdParty);\n thirdPartyService.addIndividualRequest(thirdParty, individual, true);\n IndividualData individualData = new IndividualData(new Date(00000000), 60f ,120f ,150f ,50f );\n List individualDataList= new ArrayList();\n individualDataList.add(individualData);\n individualData.setIndividual(individual);\n individualService.saveData(individualDataList);\n\n assertEquals(thirdPartyService.getNewDataNotificationList(thirdParty,individual).size(),1);\n }", "@Before\r\n\tpublic void setUp() throws Exception {\r\n\r\n\t\tpd = new PreparedData();\r\n\r\n\t}", "private void addSampleData() {\r\n }", "public interface CodDataService {\n\n /**\n * 获取配置\n * @return 全部配置\n */\n Map<String, String> getConfig();\n\n /**\n * 获取数据\n */\n String getDataValue(String key);\n\n /**\n *\n * @param key\n * @return\n */\n CodDataConfigDto getData(String key);\n\n\n /**\n * 设置数据\n * @param key key\n * @param value value\n */\n void setData(String key, String value);\n\n /**\n * 设置数据\n * @param key key\n * @param value value\n * @param name 配置名称\n */\n void setData(String key, String value, String name);\n\n /**\n * 设置数据\n * @param key key\n * @param value value\n * @param name 配置名称\n * @param sort 序号\n */\n void setData(String key, String value, String name, String sort);\n\n /**\n * 设置数据\n * @param key key\n * @param value value\n * @param name 配置名称\n * @param sort 序号\n * @param desc 描述\n */\n void setData(String key, String value, String name, String desc, String sort);\n\n /**\n * 删除\n * @param key key\n */\n void delete(String key);\n\n}", "@Test\n\tpublic void testfindTheGreaatestFromAllData() {\n\t\twhen(dataServiceMock.retrieveAllData()).thenReturn(new int[] { 1, 2, 3 });\n\t\t// SomeBusinessImpl impl = new SomeBusinessImpl(dataServiceMock);\n\t\tassertEquals(impl.findTheGreaatestFromAllData(), 3);\n\t}", "@Test\n public void shouldProcessData() throws Exception {\n }", "@Ignore\n\t\[email protected](dataProvider = \"dp\")\n\t\tprivate void dataProviderWithoutKey(String param_0, String param_1) {\n\t\t}", "@DDDataProvider(datafile = \"testdata/Team3Search and Sort.xlsx\", sheetName = \"SearchItem\", testcaseID = \"\", runmode = \"No\")\n@Test(dataProvider = \"dd-dataprovider\", dataProviderClass = TestUtil.class)\n\npublic void TC_SearchProductwithInValiddata(Hashtable<String, String> datatable) throws InterruptedException, UnsupportedEncodingException, GeneralSecurityException{\n\tSearchPage searchpage = new SearchPage(driver);\n\tExtentTest Obj = ExtentTestManager.getTest();\n\t\n\tExtentTestManager.getTest().log(Status.PASS, \"Testcase 1 : Search for the product with Invalid data\");\n\tLoginPage loginPage = new LoginPage(driver);\n\tExtentTestManager.getTest().log(Status.PASS, \"Step 1 : Successfully singed in with Valid credentials\");\n\tloginPage.login(datatable.get(\"UserName\"), Base64.decrypt(datatable.get(\"Password\")));\n\tThread.sleep(1000);\n\t\n\tString searchvalue =datatable.get(\"ProductName\");\n\tsearchpage.getSearchBar().sendKeys(searchvalue);\n\tExtentTestManager.getTest().log(Status.PASS, \"Step 2 : Successfully entered \" +searchvalue+ \" in the search bar\");\n\t\n\tsearchpage.getsearchBtn().click();\n\tExtentTestManager.getTest().log(Status.PASS, \"Step 3 : Successfully clicked on the search button\");\n\tThread.sleep(500);\n\t\t\n\tExtentTestManager.getTest().log(Status.PASS, \"Step 4 : User entered invalid data: \" + searchpage.getnoDataFoundMsg().getText() + \".\");\n\t\n\t\n\t\t\t\n}", "public final void testGetUserData() {\n assertEquals(hello.userData, n.getUserData());\n }", "@DataProvider\n private Object[][] provideForTestCanDecode() {\n return new Object[][] {\n { TEST_FILE1, true },\n { TEST_FILE2, true },\n { TEST_FILE_NO_CONFIG, false },\n };\n }", "@Test\n public void dataVersionTest() {\n // TODO: test dataVersion\n }", "@Test(priority=1, dataProvider = \"dp\", timeOut=5000, invocationCount=10)\n\tpublic void loginDataProvider(String n, String s) {\n\t\t//\n\t}", "private void initData() {\n }", "@Test\n public void testGetAnalyzedData() {\n System.out.println(\"getAnalyzedData\");\n \n }", "public void initData() {\n }", "public void initData() {\n }", "protected @Override\r\n abstract void initData();", "DataModel createDataModel();", "public void initData(){\r\n \r\n }", "@Override\n\tpublic void getData() {\n\t\t\n\t}", "private void InitData() {\n\t}", "@Test\n public void testQueryList(){\n }", "@Test\n public void testInsertDataWSSuccess() {\n try {\n \tProviderDAO providerDAO = new ProviderDAOImpl();\n \tProvider provider = new Provider();\n \tPersonDAO personDAO = new PersonDAOImpl();\n \tPerson person = new Person();\n \tperson = personDAO.getPersonById(\"1\");\n \tprovider = providerDAO.getProviderByPerson(person);\n \tString retVal = providerDAO.insertDataWS(provider);\n \t\n \tif (retVal != null) {\n \t\tAssert.assertTrue(true);\n \t\tSystem.out.println(\"[testInsertDataWSSuccess] - \" + retVal);\n \t} else {\n \t\tAssert.assertTrue(false);\n \t}\n\n } catch (Exception e) {\n Assert.assertFalse(false);\n }\n }", "@DataProvider(name=\"dataset\")\r\n\tpublic static Object[][] getdata() throws IOException{\r\n\t\tObject [][] ob= new IO().getdataset(\"./dataset.csv\");\t\r\n\treturn ob;\r\n\t}" ]
[ "0.6898096", "0.6889451", "0.6735876", "0.6704479", "0.6684681", "0.6673519", "0.6590674", "0.65790355", "0.6549763", "0.6497317", "0.6469336", "0.64678746", "0.6439686", "0.6429753", "0.6366909", "0.6350328", "0.6343701", "0.6285762", "0.62525785", "0.6213626", "0.6203615", "0.6118809", "0.60914415", "0.6090584", "0.60767996", "0.60278535", "0.60185504", "0.6005838", "0.5978693", "0.5949274", "0.5948762", "0.594413", "0.59154797", "0.5909975", "0.5907002", "0.5896634", "0.5878572", "0.58718336", "0.58704126", "0.5868734", "0.5868734", "0.5854074", "0.58465743", "0.5831049", "0.5825504", "0.5812731", "0.58114535", "0.5795323", "0.57917947", "0.57846653", "0.5780328", "0.5779384", "0.5777522", "0.57622135", "0.5758891", "0.5753552", "0.57499886", "0.57487565", "0.57470775", "0.57441807", "0.57433504", "0.572577", "0.57232165", "0.57161903", "0.57025063", "0.56992286", "0.5696126", "0.56921995", "0.5687929", "0.56835693", "0.5678349", "0.5676433", "0.5671908", "0.56684107", "0.56654537", "0.5661762", "0.5660842", "0.56593186", "0.56580013", "0.565739", "0.5656859", "0.5640657", "0.5638376", "0.56337625", "0.5632469", "0.563198", "0.5629978", "0.562871", "0.5623908", "0.5621214", "0.5613211", "0.5606293", "0.5606293", "0.5600109", "0.55995387", "0.55992496", "0.55890244", "0.5583801", "0.5574861", "0.5569978", "0.5560983" ]
0.0
-1
ExStart ExFor:HtmlLoadOptions.WebRequestTimeout ExSummary:Shows how to set a time limit for web requests when loading a document with external resources linked by URLs.
@Test //ExSkip public void webRequestTimeout() throws Exception { // Create a new HtmlLoadOptions object and verify its timeout threshold for a web request. HtmlLoadOptions options = new HtmlLoadOptions(); // When loading an Html document with resources externally linked by a web address URL, // Aspose.Words will abort web requests that fail to fetch the resources within this time limit, in milliseconds. Assert.assertEquals(100000, options.getWebRequestTimeout()); // Set a WarningCallback that will record all warnings that occur during loading. ListDocumentWarnings warningCallback = new ListDocumentWarnings(); options.setWarningCallback(warningCallback); // Load such a document and verify that a shape with image data has been created. // This linked image will require a web request to load, which will have to complete within our time limit. String html = $"\n <html>\n <img src=\"{ImageUrl}\" alt=\"Aspose logo\" style=\"width:400px;height:400px;\">\n </html>\n "; // Set an unreasonable timeout limit and try load the document again. options.setWebRequestTimeout(0); Document doc = new Document(new MemoryStream(Encoding.getUTF8().getBytes(html)), options); Assert.assertEquals(2, warningCallback.warnings().size()); // A web request that fails to obtain an image within the time limit will still produce an image. // However, the image will be the red 'x' that commonly signifies missing images. Shape imageShape = (Shape)doc.getChild(NodeType.SHAPE, 0, true); Assert.assertEquals(924, imageShape.getImageData().getImageBytes().length); // We can also configure a custom callback to pick up any warnings from timed out web requests. Assert.assertEquals(WarningSource.HTML, warningCallback.warnings().get(0).getSource()); Assert.assertEquals(WarningType.DATA_LOSS, warningCallback.warnings().get(0).getWarningType()); Assert.assertEquals($"Couldn't load a resource from \'{ImageUrl}\'.", warningCallback.warnings().get(0).getDescription()); Assert.assertEquals(WarningSource.HTML, warningCallback.warnings().get(1).getSource()); Assert.assertEquals(WarningType.DATA_LOSS, warningCallback.warnings().get(1).getWarningType()); Assert.assertEquals("Image has been replaced with a placeholder.", warningCallback.warnings().get(1).getDescription()); doc.save(getArtifactsDir() + "HtmlLoadOptions.WebRequestTimeout.docx"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void pageLoadTimeout()\n {\n\n driver.manage().timeouts().pageLoadTimeout(30, TimeUnit.SECONDS);\n driver.get(\"https://www.google.com/\");\n\n /*\n In the code above, if your page does not load within 30 seconds, WebDriverException will be thrown.\n\n Selenium Timeouts must be included to create effective, comprehensive and seamlessly running test cases.\n This article intends to help in this regard by briefly explaining how Timeouts work,\n and how they can be incorporated into Selenium test scripts.\n */\n }", "private Document getPageWithRetries(URL url) throws IOException {\n Document doc;\n int retries = 3;\n while (true) {\n sendUpdate(STATUS.LOADING_RESOURCE, url.toExternalForm());\n LOGGER.info(\"Retrieving \" + url);\n doc = Http.url(url)\n .referrer(this.url)\n .cookies(cookies)\n .get();\n if (doc.toString().contains(\"IP address will be automatically banned\")) {\n if (retries == 0) {\n throw new IOException(\"Hit rate limit and maximum number of retries, giving up\");\n }\n LOGGER.warn(\"Hit rate limit while loading \" + url + \", sleeping for \" + IP_BLOCK_SLEEP_TIME + \"ms, \" + retries + \" retries remaining\");\n retries--;\n try {\n Thread.sleep(IP_BLOCK_SLEEP_TIME);\n } catch (InterruptedException e) {\n throw new IOException(\"Interrupted while waiting for rate limit to subside\");\n }\n }\n else {\n return doc;\n }\n }\n }", "WebPage limit(int limit);", "public static void setImageLoadingTimeout(long newTimeout) {\n ImageLoader.setTimeout(newTimeout);\n }", "abstract protected long getDefaultRelTimeoutMillis();", "public static long getImageLoadingTimeout() {\n return ImageLoader.getTimeout();\n }", "public HttpTrafficGenerator(long timeout, URL website) {\n\t\tthis.timeout = timeout;\n\t\tthis.website = website;\n\n\t\tworker = new Thread(this, \"HttpTrafficGenerator\");\n\t}", "protected void loadURL(String thisURL) {\n\t\tgetDriver().get(thisURL);\n\t\ttry {\n\t\t\tThread.sleep(2000);\n\t\t} catch (Exception e) {\n\t\t\t// nothing\n\t\t}\n\t}", "protected int maxTimeout() { return 15*1000*1000; }", "@Override\n\tpublic void setMaxNumOfUrls(int maxNumOfUrls) {\n\t\t\n\t}", "public void cancelLoadUrl() {\n\t\t\n\t}", "@SuppressWarnings(\"deprecation\")\n\tpublic void timeout()\n\t{\n\t\ttry {\n\t\t\tbyte[] fileData = Server.readFileAsString(\"./resource/400.html\");\n\t\t\tString header = Server.ConstructHttpHeader(400, \"html\", fileData.length);\n\t\t\toutStream.writeBytes(header);\n\t\t\toutStream.write(fileData);\t\n\t\t\tthis.stop();\n\t\t} catch(IOException e) {\n\t\t\tSystem.out.println(\"Timeout Error\");\n\t\t}\n\t\ttry {\n\t\t\toutStream.flush();\n\t\t\t/* Interaction with this client complete, close() the socket */\n\t\t\tclientSock.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public HttpTrafficGenerator(long timeout) {\n\t\tthis.timeout = timeout;\n\n\t\tworker = new Thread(this, \"HttpTrafficGenerator\");\n\t\ttry {\n\t\t\twebsite = new URL(\"http://google.com\");\n\t\t} catch (MalformedURLException e) {\n\t\t\tthrow new IllegalStateException(\"Internal error\", e);\n\t\t}\n\t}", "void setStartTimeout(int startTimeout);", "private void webDriverTimeout(){\n try {\n Thread.sleep(TIMEOUT_SHORT);\n } catch (InterruptedException e){\n e.printStackTrace();\n }\n }", "public final GetHTTP setConnectionTimeout(final String connectionTimeout) {\n properties.put(CONNECTION_TIMEOUT_PROPERTY, connectionTimeout);\n return this;\n }", "public void setResponseTimeOut(int timeOut)\n {\n fResponseTimeOut = timeOut;\n }", "@Test\n public void testSocketTimeout(){\n CloseableHttpClient client = HttpClients.createDefault();\n HttpGet httpGet = new HttpGet(URL + \"/http/testSocketTimeout\");\n RequestConfig requestConfig = RequestConfig.custom().setSocketTimeout(3500).build();\n httpGet.setConfig(requestConfig);\n try {\n CloseableHttpResponse response = client.execute(httpGet);\n System.out.println(EntityUtils.toString(response.getEntity()));\n } catch (Exception e){\n e.printStackTrace();\n }\n }", "private String webFetch1(String aURL, String aEncoding) {\n String result = \"\";\n long start = System.currentTimeMillis();\n Scanner scanner = null;\n URLConnection connection = null;\n try {\n //Ref: http://stackoverflow.com/questions/86824/why-would-a-java-net-connectexception-connection-timed-out-exception-occur-wh\n URL url = new URL(aURL);\n connection = url.openConnection(); //this doesn't talk to the network yet\n connection.setConnectTimeout(TIMEOUT); \n connection.setReadTimeout(TIMEOUT);\n connection.connect(); //actually connects; this shouldn't be needed here, since getInputStream is supposed to do it in the background\n scanner = new Scanner(connection.getInputStream(), aEncoding); \n scanner.useDelimiter(END_OF_INPUT);\n result = scanner.next();\n }\n catch (IOException ex) {\n long end = System.currentTimeMillis();\n long time = end - start;\n fLogger.severe(\n \"Problem connecting to \" + aURL + \" Encoding:\" + aEncoding + \n \". Exception: \" + ex.getMessage() + \" \" + ex.toString() + \" Cause:\" + ex.getCause() + \n \" Connection Timeout: \" + connection.getConnectTimeout() + \"msecs. Read timeout:\" + connection.getReadTimeout() + \"msecs.\"\n + \" Time taken to fail: \" + time + \" msecs.\"\n );\n }\n finally {\n if (scanner != null) scanner.close();\n }\n return result;\n }", "protected int minTimeout() { return 500; }", "void getHTML(String req) {\n html = \"\";\n int r;\n BufferedInputStream in = null;\n BufferedInputStream imgIn = null;\n boolean retry;\n Vector imageRd = new Vector(0);\n/*\n do {\n retry = false;\n try {\n\tin = new BufferedInputStream(url.openStream(), 4096);\n\t//\t System.out.println(\"DoneOpening input stream\");\n }\n catch (IOException ioe) {\n\trbe.stats.error(\"Unable to open URL.\" , url.toExternalForm());\n\tioe.printStackTrace();\n\tretry=true;\n System.err.println(\"Set retry=true, then continue...\");\n\tcontinue;\n }\n try {\n\t \n\t //\t while(in.available() == 0){\n\t // System.out.println(\"Nothing available on input stream!\");\n\t //}\n \n\t while ((r = in.read(buffer, 0, buffer.length))!=-1) {\n\t if (r>0) {\n\t\t html = html + new String(buffer, 0, r);\n\t }\n\t //\t System.out.print(\".\");\n\t }\n\t \n }\n catch (IOException ioe) {\n\trbe.stats.error(\"Unable to read HTML from URL.\" , \n\t\t\turl.toExternalForm());\n\tretry=true;\n\tcontinue;\n }\n\n if (retry) {\n\t try {\n\t if (waitKey) {\n\t\t rbe.getKey();\n\t }\n\t else {\n\t\t sleep(1000L);\n\t }\n\t }\n\t catch (InterruptedException inte) {\n\t System.out.println(\"In getHTML, caught interrupted exception!\");\n\t return;\n\t }\t \n }\n } while (retry);\n \n try {\n in.close();\n }\n catch (IOException ioe) {\n rbe.stats.error(\"Unable to close URL.\" , url.toExternalForm());\n }\n*/\n long startTime = System.currentTimeMillis();\n byte[] res = this.clientProxy.getHTMLText(req);\n long endTime = System.currentTimeMillis();\n this.html = new String(res);\n\n //System.out.println(html);\n\n /******\n html =\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"JIGSAW-SESSION-ID=kjfljelejl_343434223_32\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"I_ID=563 \" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"I_ID=534 \" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"I_ID=564 \" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"I_ID=568 \" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\";\n ****/\n\n // Scan for image requests, and request those.\n int cur = 0;\n\n // Suppress image requests.\n if (!RBE.getImage) return;\n\n URL url = null;\n try {\n url = new URL(req);\n } catch (MalformedURLException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n findImg(html, url, imgPat, srcPat, quotePat, imageRd);\n findImg(html, url, inputPat, srcPat, quotePat, imageRd);\n\n if (DEBUG > 2) {\n System.out.println(\"Found \" + imageRd.size() + \" images.\");\n }\n while (imageRd.size() > 0) {\n int max = imageRd.size();\n int min = Math.max(max - rbe.maxImageRd, 0);\n int i;\n try {\n for (i = min; i < max; i++) {\n ImageReader rd = (ImageReader) imageRd.elementAt(i);\n //\tSystem.out.println(\"EB #\" + sessionID+ \"reading image: \" + rd.imgURLStr);\n // TODO TODO FETCHING IMAGES IS BUGGY !!!!!!!\n if (!rd.readImage()) {\n if (DEBUG > 2) {\n System.out.println(\"Read \" + rd.tot + \" bytes from \" +\n rd.imgURLStr);\n }\n imageRd.removeElementAt(i);\n i--;\n max--;\n }\n }\n } catch (Exception inte) {\n System.out.println(\"In getHTML, caught exception!\");\n return;\n }\n }\n }", "private static int getPageLoadWaitTime()\n\t{\n\t\tString pageLoadWaitTime = System.getProperty(PAGE_LOAD_TIME_KEY);\n\t\t\n\t\tif (pageLoadWaitTime == null || pageLoadWaitTime.isEmpty())\n\t\t{ \n\t\t\treturn pageLoadWaitDefaultTime;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn Integer.parseInt(pageLoadWaitTime);\n\t\t}\n\t}", "public DocumentRetrievalTask(String url, KMLRoot context, String featureRef, long timeout)\n {\n this.docUrl = url;\n this.context = context;\n this.featureRef = featureRef;\n this.timeout = timeout;\n }", "public void testURL()\r\n {\r\n\r\n BufferedReader in = null;\r\n PrintStream holdErr = System.err;\r\n String errMsg = \"\";\r\n try\r\n {\r\n\r\n this.setSuccess(false);\r\n\r\n PrintStream fileout = new PrintStream(new FileOutputStream(\"testURLFile.html\"));\r\n System.setErr(fileout);\r\n System.err.println(\"testURL() - entry\");\r\n\r\n System.getProperties().put(\"https.proxyHost\", \"\" + this.getProxyHost());\r\n System.getProperties().put(\"https.proxyPort\", \"\" + this.getProxyPort());\r\n System.getProperties().put(\"http.proxyHost\", \"\" + this.getProxyHost());\r\n System.getProperties().put(\"http.proxyPort\", \"\" + this.getProxyPort());\r\n // System.getProperties().put(\"java.protocol.handler.pkgs\", \"com.sun.net.ssl.internal.www.protocol\");\r\n\r\n URL url = new URL(\"http://www.msn.com\");\r\n\r\n CookieModule.setCookiePolicyHandler(null); // Accept all cookies\r\n // Set the Authorization Handler\r\n // This will let us know waht we are missing\r\n DefaultAuthHandler.setAuthorizationPrompter(this);\r\n HTTPConnection con = new HTTPConnection(url);\r\n con.setDefaultHeaders(new NVPair[] { new NVPair(\"User-Agent\", \"Mozilla/4.5\")});\r\n con.setDefaultAllowUserInteraction(false);\r\n HTTPResponse headRsp = con.Head(url.getFile());\r\n HTTPResponse rsp = con.Get(url.getFile());\r\n\r\n int sts = headRsp.getStatusCode();\r\n if (sts < 300)\r\n {\r\n System.err.println(\"No authorization required to access \" + url);\r\n this.setSuccess(true);\r\n }\r\n else if (sts >= 400 && sts != 401 && sts != 407)\r\n {\r\n System.err.println(\"Error trying to access \" + url + \":\\n\" + headRsp);\r\n }\r\n else if (sts == 407)\r\n {\r\n System.err.println(\r\n \"Error trying to access \"\r\n + url\r\n + \":\\n\"\r\n + headRsp\r\n + \"\\n\"\r\n + \"<HTML><HEAD><TITLE>Proxy authorization required</TITLE></HEAD>\");\r\n this.setMessage(\"Error trying to access \" + url + \":\\n\" + headRsp + \"\\n\" + \"Proxy authorization required\");\r\n }\r\n // Start reading input\r\n in = new BufferedReader(new InputStreamReader(rsp.getInputStream()));\r\n String inputLine;\r\n\r\n while ((inputLine = in.readLine()) != null)\r\n {\r\n System.err.println(inputLine);\r\n }\r\n // All Done - We were success\r\n\r\n in.close();\r\n\r\n }\r\n catch (ModuleException exc)\r\n {\r\n errMsg = \"ModuleException caught: \" + exc;\r\n errMsg += \"\\nVerify Host Domain address and Port\";\r\n System.err.println(errMsg);\r\n }\r\n catch (ProtocolNotSuppException exc)\r\n {\r\n errMsg = \"ProtocolNotSuppException caught: \" + exc;\r\n errMsg += \"\\nVerify Host Domain address and Port\";\r\n System.err.println(errMsg);\r\n }\r\n catch (MalformedURLException exc)\r\n {\r\n errMsg = \"MalformedURLException caught: \" + exc;\r\n errMsg += \"\\nVerify Host Domain address and Port\";\r\n System.err.println(errMsg);\r\n }\r\n catch (FileNotFoundException exc)\r\n {\r\n errMsg = \"FileNotFoundException caught: \" + exc;\r\n errMsg += \"\\nVerify Host Domain address and Port\";\r\n System.err.println(errMsg);\r\n }\r\n catch (IOException exc)\r\n {\r\n errMsg = \"IOException caught: \" + exc;\r\n errMsg += \"\\nVerify Host Domain address and Port\";\r\n System.err.println(errMsg);\r\n }\r\n finally\r\n {\r\n System.err.println(\"testURL() - exit\");\r\n System.setErr(holdErr);\r\n if (in != null)\r\n {\r\n try\r\n {\r\n in.close(); // ENSURE we are CLOSED\r\n }\r\n catch (Exception exc)\r\n {\r\n // Do Nothing, It will be throwing an exception \r\n // if it cannot close the buffer\r\n }\r\n }\r\n this.setMessage(errMsg);\r\n System.gc();\r\n }\r\n\r\n }", "public long GetTimeout() { return timeout; }", "public void ImplicitlyWait_PageLoadTimeout() throws InterruptedException {\r\n\t//declaration of chrome driver\r\n\tSystem.setProperty(\"webdriver.chrome.driver\",\"C:\\\\chromedriver.exe\");\r\n\t WebDriver driver=new ChromeDriver(); \r\n\t \r\n\t\t\tdriver.manage().timeouts().pageLoadTimeout(20, TimeUnit.SECONDS);\r\n\t\t\t\r\n\t //Navigated to the webpage\r\n\tdriver.get(\"https://contentstack.built.io\");\r\n \tdriver.findElement(By.linkText(\"Forgot password?\")).click();\r\n \t\r\n //driver.quit();\r\n}", "long getTimeout();", "public void setConnectionTimeOut(int connectionTimeOut) {\n this.connectionTimeOut = connectionTimeOut;\n }", "private void setTimedOut() {\n\t\tthis.timedOut.set(true);\n\t}", "public void testBrokenLinks() throws InterruptedException {\n\t\tJavascriptExecutor jse = (JavascriptExecutor) (driver);\n\t\ttry {\n\t\t\tThread.sleep(5000);\n\t\t} catch (InterruptedException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\t\tList<WebElement> allLinks = driver.findElements(By.xpath(\"//a\"));\n\n\t\tint totalLinks = 0, failedLinks = 0;\n\n\t\tfor (WebElement link : allLinks) {\n\t\t\tString src = link.getAttribute(\"href\");\n\t\t\t// System.out.println(src);\n\n\t\t\tif (null != src && src.trim().startsWith(\"javascript\")) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (null != src && (!(src.startsWith(\"http://\") || src.startsWith(\"https://\")))) {\n\t\t\t\tsrc = baseUrl + src;\n\n\t\t\t}\n\t\t\t// System.out.println(\"Source:\"+src);\n\t\t\tif (null != src) {\n\t\t\t\ttotalLinks++;\n\t\t\t\tThread.sleep(200);\n\t\t\t\t// String linkName=link.getText();\n\t\t\t\tString linkName = ((String) jse.executeScript(\"var e=arguments[0];return e.innerText;\", link))\n\t\t\t\t\t\t.replaceAll(\"\\n\", \"\").trim();\n\t\t\t\tif (linkName.trim().equals(\"\"))\n\t\t\t\t\tThread.sleep(200);\n\t\t\t\t{\n\t\t\t\t\tlinkName = ((String) jse.executeScript(\"var e=arguments[0];return e.innerHTML;\", link))\n\t\t\t\t\t\t\t.replaceAll(\"\\n\", \"\").trim();\n\t\t\t\t}\n\t\t\t\tURL url;\n\t\t\t\tHttpURLConnection conn;\n\t\t\t\tint response = 0;\n\t\t\t\ttry {\n\t\t\t\t\turl = new URL(src);\n\t\t\t\t\tconn = (HttpURLConnection) url.openConnection();\n\t\t\t\t\tresponse = conn.getResponseCode();\n\t\t\t\t\tif (response != HttpURLConnection.HTTP_OK) {\n\t\t\t\t\t\tSystem.out.println(\"Link: \" + linkName + \"is broken\");\n\t\t\t\t\t\tSystem.out.println(\"Broken URL: \" + src);\n\t\t\t\t\t\tSystem.out.println(\"Resonse is: \" + response);\n\t\t\t\t\t\tfailedLinks++;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"Link: \" + linkName + \"is Working\");\n\t\t\t\t\t}\n\t\t\t\t} catch (MalformedURLException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tSystem.out.println(\"Link: \" + linkName + \"is broken\");\n\t\t\t\t\tfailedLinks++;\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tSystem.out.println(\"Link: \" + linkName + \"is broken\");\n\t\t\t\t\tfailedLinks++;\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"Total Links Verified:\" + totalLinks + \"\\n Failed Links Count :\" + failedLinks);\n\n\t}", "private void loadPage(QUrl url, int width, int height, int timeout) {\n // This is an event-based application. So we have to wait until\n // \"loadFinished(bool)\" raised.\n long cancelAt = System.currentTimeMillis() + timeout;\n loading = true;\n loadingResult = false; // Default\n\n // TODO: fromEncoded() needs to be used in some situations. Some\n // sort of flag should be passed in to WebkitRenderer maybe?\n // self._page.mainFrame().load(QUrl.fromEncoded(url))\n\n page.mainFrame().load(url);\n while (loading) {\n if (timeout > 0 && System.currentTimeMillis() >= cancelAt) {\n throw new RuntimeException(\"Request timed out on \" + url);\n }\n while (QApplication.hasPendingEvents()) {\n QCoreApplication.processEvents();\n }\n }\n\n log.debug(\"Processing result\");\n\n if (!loadingResult) {\n log.warn(\"Failed to load \" + url);\n }\n\n // Set initial viewport (the size of the \"window\")\n final QSize size = page.mainFrame().contentsSize();\n log.debug(\"contentsSize: \" + size);\n\n if (width > 0) {\n size.setWidth(width);\n }\n if (height > 0) {\n size.setHeight(height);\n }\n\n window.resize(size);\n }", "public void setConnectionTimeout(int connectionTimeout) {\r\n this.connectionTimeout = connectionTimeout;\r\n }", "public void setConnectionTimeout(Duration connectionTimeout) {\n this.connectionTimeout = connectionTimeout;\n }", "public void load(String url);", "private void doWaitDueToLongResponse(BaseRequest request, long responseTime, String uri) {\n try {\n AgentConfig config = request.getLogUtil().getAgentConfig();\n long maxAgentResponseTime = config.getMaxAgentResponseTime();\n if (maxAgentResponseTime < responseTime) {\n long waitTime = Math.min(config.getMaxAgentWaitTime(), responseTime);\n LOG.warn(request.getLogUtil().getLogMessage(\"Response time to slow | delaying \" + waitTime + \" ms | url --> \" + uri, LogEventType.Script));\n Thread.sleep(waitTime);\n }\n } catch (InterruptedException e) {\n LOG.warn(\"Interrupted\", e);\n }\n }", "public void setConnectionTimeout(int connectionTimeout)\r\n\t{\r\n\t\tthis.connectionTimeout = connectionTimeout;\r\n\t}", "public Duration getHttpRequestReadTimeout()\n {\n return httpRequestReadTimeout;\n }", "private String loadFromNetwork(String urlString) throws IOException {\n InputStream stream = null;\n String str =\"\";\n\n try {\n stream = downloadUrl(urlString);\n str = readIt(stream, 450000);\n } finally {\n if (stream != null) {\n stream.close();\n }\n }\n return str;\n }", "public void setNortpTimeout(int seconds);", "public static void m5827f() {\n if (f4669a != null) {\n f4669a.m12578a(\"webview_max_polling_error\", null);\n }\n Answers.getInstance().logCustom(new CustomEvent(\"webview_max_polling_error\"));\n }", "public void testBrokenLinks(String fileName) {\n\t\tJavascriptExecutor jse = (JavascriptExecutor) (driver);\n\t\ttry {\n\t\t\tThread.sleep(5000);\n\t\t} catch (InterruptedException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\t\tList<WebElement> allLinks = driver.findElements(By.xpath(\"//a\"));\n\n\t\tint totalLinks = 0, failedLinks = 0;\n\n\t\tfor (WebElement link : allLinks) {\n\t\t\tString src = link.getAttribute(\"href\");\n\t\t\t// System.out.println(src);\n\t\t\tif (null != src && src.trim().startsWith(\"javascript\")) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (null != src && (!(src.startsWith(\"http://\") || src.startsWith(\"https://\")))) {\n\t\t\t\tsrc = baseUrl + src;\n\t\t\t}\n\t\t\t// System.out.println(\"Source:\"+src);\n\t\t\tif (null != src) {\n\t\t\t\ttotalLinks++;\n\t\t\t\t// String linkName=link.getText();\n\t\t\t\tString linkName = ((String) jse.executeScript(\"var e=arguments[0];return e.innerText;\", link))\n\t\t\t\t\t\t.replaceAll(\"\\n\", \"\").trim();\n\t\t\t\tif (linkName.trim().equals(\"\")) {\n\t\t\t\t\tlinkName = ((String) jse.executeScript(\"var e=arguments[0];return e.innerHTML;\", link))\n\t\t\t\t\t\t\t.replaceAll(\"\\n\", \"\").trim();\n\t\t\t\t}\n\t\t\t\tURL url;\n\t\t\t\tHttpURLConnection conn;\n\t\t\t\tint response = 0;\n\t\t\t\ttry {\n\t\t\t\t\turl = new URL(src);\n\t\t\t\t\tconn = (HttpURLConnection) url.openConnection();\n\t\t\t\t\tresponse = conn.getResponseCode();\n\t\t\t\t\tif (response != HttpURLConnection.HTTP_OK) {\n\t\t\t\t\t\tSystem.out.println(\"Link: \" + linkName + \"is broken\");\n\t\t\t\t\t\tSystem.out.println(\"Broken URL: \" + src);\n\t\t\t\t\t\tSystem.out.println(\"Resonse is: \" + response);\n\t\t\t\t\t\tfailedLinks++;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"Link: \" + linkName + \"is Working\");\n\t\t\t\t\t}\n\t\t\t\t} catch (MalformedURLException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tSystem.out.println(\"Link: \" + linkName + \"is broken\");\n\t\t\t\t\tfailedLinks++;\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tSystem.out.println(\"Link: \" + linkName + \"is broken\");\n\t\t\t\t\tfailedLinks++;\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"Total Links Verified:\" + totalLinks + \"\\n Failed Links Count :\" + failedLinks);\n\n\t\twriteToExcel(fileName);\n\t}", "public long getTimeout() { return timeout; }", "public void configure() throws IOException {\n\n\n mWebClient = new WebClient(BrowserVersion.getDefault());\n\n // 1 启动JS\n mWebClient.getOptions().setJavaScriptEnabled(true);\n // 2 禁用Css,可避免自动二次请求CSS进行渲染\n mWebClient.setCssErrorHandler(new SilentCssErrorHandler());\n mWebClient.setAjaxController(new NicelyResynchronizingAjaxController());\n mWebClient.getOptions().setCssEnabled(true);\n // 3 启动客户端重定向\n mWebClient.getOptions().setRedirectEnabled(true);\n\n mWebClient.getOptions().setAppletEnabled(false);\n\n mWebClient.getOptions().setPopupBlockerEnabled(true);\n\n // 4 js运行错误时,是否抛出异常\n //mWebClient.getOptions().setThrowExceptionOnScriptError(false);\n // 5 设置超时\n mWebClient.getOptions().setTimeout(20000);\n\n //HtmlPage htmlPage = mWebClient.getPage();\n // 等待JS驱动dom完成获得还原后的网页\n mWebClient.waitForBackgroundJavaScript(50000);\n\n }", "@Override\n public void onReceivedError(WebView view, WebResourceRequest request, WebResourceError error) {\n Log.v(\"WVClient.onReceiveError\", \" receieved an error\" + error);\n\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n onSendUpdate(\"WVClient has received an error!\");\n }\n });\n\n //do what would be done in processHTML but avoid anything to do with scraping, move onto next page\n crawlComplete = false;\n\n if (masterEmailSet.size() > 20){\n //if more than twenty emails have been discovered, the crawl is done\n crawlComplete = true;\n }\n\n if (masterEmailSet.size() > 0 && !searchTerm.equals(\"\")){\n //if at least one email with the search term has been found, crawl is done\n crawlComplete = true;\n }\n\n\n if (collectedLinks.iterator().hasNext() && !crawlComplete){\n //if there's another link and crawl isn't deemed complete, hit next URL\n browser.post(new Runnable() {\n @Override\n public void run() {\n Log.v(\"processHTML\", \" loading page on browser:\" + collectedLinks.iterator().next());\n visitedLinks.add(collectedLinks.iterator().next());\n browser.loadUrl(collectedLinks.iterator().next());\n }\n });\n }\n }", "@Override\n public void onReceivedError(final WebView view, int errorCode, String description, String failingUrl) {\n Log.w(TAG, String.format(\"%d: Could not load %s: %s\", errorCode, failingUrl, description));\n view.loadData(getString(R.string.blank_page), \"text/html\", null);\n Toast.makeText(activity, \"Network error\", Toast.LENGTH_SHORT).show();\n final String retryUrl = failingUrl;\n new Handler().postDelayed(new Runnable() {\n @Override\n public void run() {\n Toast.makeText(activity, \"Retrying...\", Toast.LENGTH_SHORT).show();\n view.loadUrl(retryUrl);\n }\n }, 5000);\n //super.onReceivedError(view, errorCode, description, failingUrl);\n }", "public int getTimeout();", "@Test\n public void testOptions() throws Exception {\n\n HttpURLConnection result = HttpUtil.options(\"http://localhost:9090/ehcache/rest/doesnotexist/1\");\n assertEquals(200, result.getResponseCode());\n assertEquals(\"application/vnd.sun.wadl+xml\", result.getContentType());\n\n String responseBody = HttpUtil.inputStreamToText(result.getInputStream());\n assertNotNull(responseBody);\n assertTrue(responseBody.matches(\"(.*)GET(.*)\"));\n assertTrue(responseBody.matches(\"(.*)PUT(.*)\"));\n assertTrue(responseBody.matches(\"(.*)DELETE(.*)\"));\n assertTrue(responseBody.matches(\"(.*)HEAD(.*)\"));\n }", "private void loadUrlInternal(String url) {\n\t\twebEngine.load(url);\n\t}", "public void waitForPageToLoad(long timeout) {\n\t\tlong startTime = System.currentTimeMillis();\n\t\twhile ((System.currentTimeMillis() - startTime) < timeout * 1000) {\n\t\t\tboolean pageLoaded = (String) getExecutor().executeScript(\"return document.readyState\") == \"complete\";\n\t\t\tif (pageLoaded) {\n\t\t\t\treturn;\n\t\t\t} else {\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(500);\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}", "public void setHttpClientRequestTimeout(int timeout) {\n this.requestTimeout = timeout;\n this.customized = true;\n }", "public final GetHTTP setDataTimeout(final String dataTimeout) {\n properties.put(DATA_TIMEOUT_PROPERTY, dataTimeout);\n return this;\n }", "public void setTimeOut(long timeOut) {\n _timeOut = timeOut;\n }", "@Override\n public void onVersionFileDownloadTimeout() {\n\n }", "public void setMaxHtmlSize(int maxHtmlSize)\n {\n this._maxHtmlSize = maxHtmlSize;\n }", "public void setTimeout(int timeout);", "@BeforeClass\n public void GotoURL() {\n\t\tString URL = Base.GetDataFromPropertiesFile(\"url1\");\n\t\t// set implicit wt at page level\n\t\t\t\tdriver.manage().timeouts().implicitlyWait(300, TimeUnit.SECONDS);\n\t\tdriver.get(URL);\n\t\t\n\n\t \n }", "@Test\n public void testConnectionNoIdleTimeout() throws Exception {\n long timeoutMillis = TimeUnit.SECONDS.toMillis(CONNECTION_IDLE_TIMEOUT_SECS) + 500;\n URL url = new URL(resolveURI(\"/v1/timeout/\" + timeoutMillis));\n HttpURLConnection urlConnection = openURL(url);\n Assert.assertEquals(200, urlConnection.getResponseCode());\n urlConnection.disconnect();\n }", "public int getBatchDownloadWaitTime()\n {\n return 1000; \n }", "public int getSignedUrlDuration();", "public final GetHTTP removeConnectionTimeout() {\n properties.remove(CONNECTION_TIMEOUT_PROPERTY);\n return this;\n }", "abstract public void setLoadingTime(long time);", "private void searchNext(CrawlingSession executor, Link link) {\n HTMLLinkExtractor htmlLinkExtractor = HTMLLinkExtractor.getInstance();\n// htmlLinkExtractor.setWorking(link);\n \n Source source = CrawlingSources.getInstance().getSource(link.getSourceFullName());\n if(source == null) return;\n \n SessionStore store = SessionStores.getStore(source.getCodeName());\n if(store == null) return;\n\n List<Link> collection = htmlLinkExtractor.getLinks(link, /*link.getSource(),*/ pagePaths);\n// List<Link> collection = htmlLinkExtractor.getLinks(srResource);\n List<Link> nextLinks = createNextLink(link, collection);\n if(nextLinks.size() < 1) return;\n if(userPaths == null && contentPaths == null) {\n executor.addElement(nextLinks, link.getSourceFullName());\n return;\n }\n \n \n if(nextLinks.size() < 2) {\n executor.addElement(nextLinks, link.getSourceFullName());\n }\n \n// long start = System.currentTimeMillis();\n \n int [] posts = new int[nextLinks.size()];\n for(int i = 0; i < nextLinks.size(); i++) {\n try {\n posts[i] = PageDownloadedTracker.searchCode(nextLinks.get(i), true);\n } catch (Throwable e) {\n posts[i] = -1;\n LogService.getInstance().setThrowable(link.getSourceFullName(), e);\n// executor.abortSession();\n// return;\n }\n }\n \n int max = 1;\n for(int i = 0; i < posts.length; i++) {\n if(posts[i] > max) max = posts[i];\n }\n \n// System.out.println(\" thay max post la \"+ max);\n \n List<Link> updateLinks = new ArrayList<Link>();\n for(int i = 0; i < posts.length; i++) {\n if(posts[i] >= max) continue;\n updateLinks.add(nextLinks.get(i));\n }\n \n// long end = System.currentTimeMillis();\n// System.out.println(\"step. 4 \"+ link.getUrl()+ \" xu ly cai ni mat \" + (end - start));\n \n executor.addElement(updateLinks, link.getSourceFullName());\n \n /*int minPost = -1;\n Link minLink = null;\n List<Link> updateLinks = new ArrayList<Link>();\n for(int i = 0; i < nextLinks.size(); i++) {\n Link ele = nextLinks.get(i);\n int post = 0;\n try {\n post = PostForumTrackerService2.getInstance().read(ele.getAddressCode());\n } catch (Exception e) {\n LogService.getInstance().setThrowable(link.getSource(), e);\n }\n if(post < 1) {\n updateLinks.add(ele);\n continue;\n } \n\n if(minPost < 0 || post < minPost){\n minLink = ele;\n minPost = post; \n } \n }\n\n if(minLink != null) updateLinks.add(minLink);\n executor.addElement(updateLinks, link.getSource());*/\n }", "public void setTimeout(int newTimeout) {\n this.timeout = newTimeout;\n }", "public void setRemoteRequestTimeout(String value) {\n\t\tnew LabeledText(OpenShiftLabel.TextLabels.REMOTE_REQUEST_TIMEOUT).setText(value);\n\t}", "public Integer getWebLinkSize() {\r\n\t\treturn webLinks.size();\t\t\r\n\t}", "int getTimeout();", "private int DownloadFile(URL url) {\n try {\n //---simulate taking some time to download a file---\n thread.sleep(5000);\n } catch (InterruptedException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n return 100;\n }", "public static void m5846r() {\n if (f4669a != null) {\n f4669a.m12578a(\"webview_load_error\", null);\n }\n Answers.getInstance().logCustom(new CustomEvent(\"webview_load_error\"));\n }", "public ArrayList<String> webCrawling(){\n\t\t\tfor(i=780100; i<790000; i++){\r\n\t\t\t\ttry{\r\n\t\t\t\tdoc = insertPage(i);\r\n\t\t\t\t//Thread.sleep(1000);\r\n\t\t\t\t}catch (Exception e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t\tif(doc != null){\r\n\t\t\t\t\tElement ele = doc.select(\"div.more_comment a\").first();\r\n\t\t\t\t\t//System.out.println(ele.attr(\"href\"));\r\n\t\t\t\t\tcommentCrawling(ele.attr(\"href\"));//��۸�� ���� ��ũ\r\n\t\t\t\t\tcommentCrawlingList(commentURList);\r\n\t\t\t\t\tcommentURList = new ArrayList<String>();//��ũ ����� �ߺ��ǰ� ���̴� �� �����ϱ� ���� �ʱ�ȭ �۾�\r\n\t\t\t\t\tSystem.out.println(i+\"��° ������\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn replyComment;\r\n\t\t//return urlList.get(0);\r\n\t}", "public long timeout(long timeout);", "private void checkTimeout() {\n/* 169 */ if (this.socket != null) {\n/* */ \n/* 171 */ long i = this.keepaliveTimeoutMs;\n/* */ \n/* 173 */ if (this.listRequests.size() > 0)\n/* */ {\n/* 175 */ i = 5000L;\n/* */ }\n/* */ \n/* 178 */ long j = System.currentTimeMillis();\n/* */ \n/* 180 */ if (j > this.timeLastActivityMs + i)\n/* */ {\n/* 182 */ terminate(new InterruptedException(\"Timeout \" + i));\n/* */ }\n/* */ } \n/* */ }", "public HTMLFile (URL url) {\n this.inFile = null;\n inURL = url;\n inName = url.toString();\n commonConstruction();\n }", "private static int getAjaxLoadWaitTime()\n\t{\n\t\tString ajaxLoadWaitTime = System.getProperty(AJAX_LOAD_TIME_KEY);\n\t\t\n\t\tif (ajaxLoadWaitTime == null || ajaxLoadWaitTime.isEmpty())\n\t\t{ \n\t\t\treturn ajaxWaitDefaultTime;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn Integer.parseInt(ajaxLoadWaitTime);\n\t\t}\n\t}", "public int getNortpTimeout();", "public void setInCallTimeout(int seconds);", "public Duration getHttpRequestConnectTimeout()\n {\n return httpRequestConnectTimeout;\n }", "T setStartTimeout(Integer timeout);", "public void setReadTimeout(int readTimeout){\n return; //TODO codavaj!!\n }", "public void loadPage(){\r\n\r\n driver.get(getPAGE_Url());\r\n driver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);\r\n\r\n }", "void timedOut();", "private static boolean pingURL(String url, int timeout) {\n try {\n HttpURLConnection connection = (HttpURLConnection) new URL(url).openConnection();\n connection.setConnectTimeout(timeout);\n connection.setReadTimeout(timeout);\n connection.setRequestMethod(\"HEAD\");\n int responseCode = connection.getResponseCode();\n return (200 <= responseCode && responseCode <= 399);\n } catch (IOException exception) {\n return false;\n }\n }", "@Test(priority = 1)\n public void testIsPageLoad() throws MalformedURLException {\n\t\tassertTrue(true);\n }", "public void setQueryTimeout(int queryTimeout) {\n\t\tthis.queryTimeout = queryTimeout;\n\t}", "public void setConnectionTimeout(double connectionTimeout) {\n this.connectionTimeout = connectionTimeout;\n saveProperties();\n }", "private void downloadRange() throws IOException{\n HttpURLConnection httpURLConnection = (HttpURLConnection) new URL(urlString).openConnection();\n httpURLConnection.setConnectTimeout(CONNECT_TIMEOUT);\n httpURLConnection.setReadTimeout(READ_TIMEOUT);\n httpURLConnection.setRequestProperty(\"Range\", \"bytes=\" + range.getStart() + \"-\" + range.getEnd());\n int responseCode = httpURLConnection.getResponseCode();\n InputStream inputStream = null;\n for (int i = 1 ; i <= MAX_RETRIES ; i++) {\n try {\n inputStream = httpURLConnection.getInputStream();\n break;\n }catch (SocketTimeoutException e){\n if (i == MAX_RETRIES){\n //TODO find how to stop all threads\n System.err.println(\"got timeout exception. shutting down...\");\n System.exit(1);\n }\n }\n }\n System.out.println(\"DEBUG: Range: start:\" + range.getStart() + \" end: \" + range.getEnd() + \" Response code: \" + responseCode);\n// httpURLConnection.setRequestMethod(\"GET\");\n int lastChunkSize = range.getLength().intValue() % CHUNK_SIZE;\n int i = 0;\n long rangeLength = range.getLength();\n int chunkSize = CHUNK_SIZE;\n long rangesum = range.getStart();\n int part = (int) Math.ceil(rangeLength / (double) CHUNK_SIZE); //calculate how many times we need to iterate to read X chunks in the given range\n //inputStream.skip(range.getStart());\n int getSize = chunkSize;\n while(true) {\n try {\n byte[] byteChunk = new byte[CHUNK_SIZE];\n //jump to the right place in the range to read the next chunk\n //check whether are there enough tokens to read the chunk\n if (limitDownload) {\n tokenBucket.take(CHUNK_SIZE);\n }\n //case: last chunk is smaller than chunk_size\n// if (lastChunkSize != 0 && i == (part - 1)) {\n// chunkSize = lastChunkSize;\n// }\n if (fileSize == range.getStart() + (CHUNK_SIZE * i) + (rangeLength % CHUNK_SIZE)) {\n chunkSize = (int) rangeLength % CHUNK_SIZE;\n byteChunk = new byte[chunkSize];\n }\n //reDo the read operation if the operation reads less than the bytes it should read\n int output = inputStream.read(byteChunk, 0, chunkSize);\n if (range.getEnd() < rangesum) {\n break;\n } else if (output == -1) {\n break;\n } else if (output != chunkSize) {\n int output1 = inputStream.read(byteChunk, output, chunkSize - output);\n if (output1 != chunkSize - output) {\n inputStream.read(byteChunk, output, chunkSize - output - output1);\n }\n }\n outQueue.add(new Chunk(byteChunk, range.getStart() + (CHUNK_SIZE * i), chunkSize));\n i++;\n rangesum += 4096;\n } catch (SocketTimeoutException e){\n System.err.println(\"got timeout exception. shutting down...\");\n System.exit(1);\n }\n }\n\n System.out.println(\"finished download\");\n }", "@Test\n public void testSetTimeout() throws Exception {\n MockPIFrame frame = startSession();\n int timeout = 4000;\n\n // 1. driver requests setTimeout, server replies \"OK\" without contacting the browser\n sendCommand(\"setTimeout\", \"100\", \"\").expectResult(\"OK\");\n // 2. driver requests open\n DriverRequest open = sendCommand(\"open\", \"blah.html\", \"\", timeout);\n // 3. original frame receives open request; replies \"OK\"\n frame.expectCommand(\"open\", \"blah.html\", \"\");\n frame.sendResult(\"OK\");\n // 4. normally, a new frame instance would come into existence, and\n // send back a \"START\". But instead, too much time passes.\n sleepForAtLeast(timeout);\n // 5. server replies to driver with an error message\n String result = open.getResult();\n boolean hasTimeoutMessage = result.contains(\"timed out waiting for window\");\n assertTrue(\"wrong error message on timeout\", hasTimeoutMessage);\n }", "private void m43018h() throws IOException {\n this.f40240k = (HttpURLConnection) new URL(this.f40231b).openConnection();\n this.f40240k.setRequestMethod(\"GET\");\n this.f40240k.setReadTimeout(20000);\n this.f40240k.setConnectTimeout(15000);\n this.f40240k.setUseCaches(false);\n this.f40240k.setDefaultUseCaches(false);\n this.f40240k.setInstanceFollowRedirects(true);\n this.f40240k.setDoInput(true);\n for (C13157a header : this.f40233d) {\n this.f40240k.addRequestProperty(header.mo42192a(), header.mo42193b());\n }\n }", "public DynamicHTMLWrapper(String FullLink) throws URISyntaxException, IOException, InterruptedException {\n this.source = FullLink;\n this.fetcher = new DynamicHTMLFetcher(FullLink);\n this.driver = (WebDriver) fetcher.driver;\n }", "private static HttpURLConnection createDefaultConnection(String url) throws IOException {\n HttpURLConnection connection = (HttpURLConnection) (new URL(url)).openConnection();\n connection.setReadTimeout(20000);\n connection.setConnectTimeout(20000);\n return connection;\n }", "void loadScript(URL url) throws IOException, ScriptRunnerException;", "protected void addIdleTimeoutWithDuration_software_amazon_awscdk_core_Duration_AsReferencePropertyDescriptor(\n\t\t\tObject object) {\n\t\titemPropertyDescriptors.add(createItemPropertyDescriptor(\n\t\t\t\t((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),\n\t\t\t\tgetString(\n\t\t\t\t\t\t\"_UI_ApplicationLoadBalancerBuilder_elasticloadbalancingv2_idleTimeoutWithDuration_software_amazon_awscdk_core_Duration_AsReference_feature\"),\n\t\t\t\tgetString(\"_UI_PropertyDescriptor_description\",\n\t\t\t\t\t\t\"_UI_ApplicationLoadBalancerBuilder_elasticloadbalancingv2_idleTimeoutWithDuration_software_amazon_awscdk_core_Duration_AsReference_feature\",\n\t\t\t\t\t\t\"_UI_ApplicationLoadBalancerBuilder_elasticloadbalancingv2_type\"),\n\t\t\t\tAwsworkbenchPackage.Literals.APPLICATION_LOAD_BALANCER_BUILDER_ELASTICLOADBALANCINGV2__IDLE_TIMEOUT_WITH_DURATION_SOFTWARE_AMAZON_AWSCDK_CORE_DURATION_AS_REFERENCE,\n\t\t\t\ttrue, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));\n\t}", "public void setHttpClientTimeout(int timeout) {\n this.connectTimeout = timeout;\n this.customized = true;\n }", "public static void waitForURL (String url, int timer)\n\t{\n\t\tWebDriver driver = getDriver ();\n\t\tWebDriverWait wait = new WebDriverWait (driver, timer);\n\t\twait.until (ExpectedConditions.refreshed (ExpectedConditions.urlContains (url)));\n\t}", "public int getTimeout() {\n return params.getTimeout() * 1000;\n }", "public void setTimeout (double seconds) {\n multiPathTimeout = seconds;\n }", "public void setTimeout(double timeout){\n this.timeout = timeout;\n }", "public void setMultiPathTimeout (double seconds) {\n multiPathTimeout = seconds;\n }", "public AdmClientePreferencialHTML(DocumentLoader loader) { this(loader, true); }", "@Test(timeout = 4000)\n public void test378() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n errorPage0._getXhtmlAttributes();\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n }", "public void setPolitenessDelay(int milliseconds)\n\t{\n\t\tif (milliseconds < 0)\n\t\t{\n\t\t\treturn;\n\t\t}\n\t\tif (milliseconds > 10000)\n\t\t{\n\t\t\tmilliseconds = 10000;\n\t\t}\n\t\tPageFetcher.setPolitenessDelay(milliseconds);\n\t}" ]
[ "0.5939669", "0.54019123", "0.53313637", "0.53205955", "0.5288206", "0.5228548", "0.5169568", "0.5115598", "0.51074207", "0.5092369", "0.5090142", "0.5083667", "0.50599813", "0.50539553", "0.50506395", "0.5049815", "0.5011012", "0.50077623", "0.49664122", "0.4912552", "0.49067086", "0.4878272", "0.48420185", "0.4833488", "0.48328808", "0.48317796", "0.48063934", "0.48031783", "0.47999772", "0.47805125", "0.47645032", "0.47587204", "0.47374332", "0.47302422", "0.47147003", "0.47076133", "0.46680036", "0.46490285", "0.46377182", "0.46369997", "0.46336687", "0.46294764", "0.4628518", "0.4626277", "0.4622772", "0.4621676", "0.46201935", "0.4603435", "0.4602907", "0.4584595", "0.45815837", "0.45813012", "0.45670667", "0.4559912", "0.45534876", "0.45454234", "0.4538887", "0.45379335", "0.4533087", "0.45257926", "0.45256162", "0.45218068", "0.45181248", "0.45179048", "0.4514643", "0.45107412", "0.451068", "0.45022583", "0.4500578", "0.45005032", "0.449848", "0.44958135", "0.44889602", "0.4485704", "0.44822535", "0.4480494", "0.4479965", "0.4473813", "0.4471928", "0.44712496", "0.44701505", "0.44685194", "0.44610262", "0.4455183", "0.44544357", "0.4451272", "0.44464225", "0.44446668", "0.44445017", "0.44438598", "0.44424677", "0.4437157", "0.44366956", "0.44262373", "0.4424951", "0.44176656", "0.44114935", "0.44109514", "0.44104213", "0.4407688" ]
0.7471022
0
ExStart ExFor:HtmlLoadOptions.ctor(LoadFormat,String,String) ExFor:LoadOptions.ctor(LoadFormat, String, String) ExFor:LoadOptions.LoadFormat ExFor:LoadFormat ExSummary:Shows how to specify a base URI when opening an html document. Suppose we want to load an .html document that contains an image linked by a relative URI while the image is in a different location. In that case, we will need to resolve the relative URI into an absolute one. We can provide a base URI using an HtmlLoadOptions object.
@Test public void baseUri() throws Exception { HtmlLoadOptions loadOptions = new HtmlLoadOptions(LoadFormat.HTML, "", getImageDir()); Assert.assertEquals(LoadFormat.HTML, loadOptions.getLoadFormat()); Document doc = new Document(getMyDir() + "Missing image.html", loadOptions); // While the image was broken in the input .html, our custom base URI helped us repair the link. Shape imageShape = (Shape)doc.getChildNodes(NodeType.SHAPE, true).get(0); Assert.assertTrue(imageShape.isImage()); // This output document will display the image that was missing. doc.save(getArtifactsDir() + "HtmlLoadOptions.BaseUri.docx"); //ExEnd doc = new Document(getArtifactsDir() + "HtmlLoadOptions.BaseUri.docx"); Assert.assertTrue(((Shape)doc.getChild(NodeType.SHAPE, 0, true)).getImageData().getImageBytes().length > 0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public AdmClientePreferencialHTML(DocumentLoader loader) { this(loader, true); }", "public HTMLFile (URL url) {\n this.inFile = null;\n inURL = url;\n inName = url.toString();\n commonConstruction();\n }", "void setBaseUri(String baseUri);", "public AdmClientePreferencialHTML() {\n/* 191 */ this(StandardDocumentLoader.getInstance());\n/* */ \n/* 193 */ buildDocument();\n/* */ }", "public void loadHtml(final String baseUrl, final String html, final String encoding,\n final String historyUrl) {\n loadDataWithBaseURL(baseUrl, html, \"text/html\", encoding, historyUrl);\n }", "public PoaMaestroMultivaloresHTML() {\n/* 253 */ this(StandardDocumentLoader.getInstance());\n/* */ \n/* 255 */ buildDocument();\n/* */ }", "public HTMLFile (URL url, String label) {\n this.inFile = null;\n inURL = url;\n inName = url.toString();\n commonConstruction();\n context.setType (label);\n }", "public HTMLFile (String inFileName) {\n inFile = new File(inFileName);\n inName = inFileName;\n inURL = null;\n commonConstruction();\n }", "public void loadHtml(final String baseUrl, final String html) {\n loadHtml(baseUrl, html, null);\n }", "IParser setServerBaseUrl(String theUrl);", "public void setBaseURL(final String url) {\r\n String location = url;\r\n //-- remove filename if necessary:\r\n if (location != null) { \r\n int idx = location.lastIndexOf('/');\r\n if (idx < 0) idx = location.lastIndexOf('\\\\');\r\n if (idx >= 0) {\r\n int extIdx = location.indexOf('.', idx);\r\n if (extIdx > 0) {\r\n location = location.substring(0, idx);\r\n }\r\n }\r\n }\r\n \r\n try {\r\n _resolver.setBaseURL(new URL(location));\r\n } catch (MalformedURLException except) {\r\n // try to parse the url as an absolute path\r\n try {\r\n LOG.info(Messages.format(\"mapping.wrongURL\", location));\r\n _resolver.setBaseURL(new URL(\"file\", null, location));\r\n } catch (MalformedURLException except2) { }\r\n }\r\n }", "public PoaMaestroMultivaloresHTML(DocumentLoader loader) { this(loader, true); }", "RaptureURI getBaseURI();", "public DynamicHTMLWrapper(String baseURL, String relativeURL) throws URISyntaxException, IOException, InterruptedException {\n this.baseURL = baseURL;\n this.source = baseURL + relativeURL;\n this.fetcher = new DynamicHTMLFetcher(baseURL + relativeURL);\n this.driver = (WebDriver) fetcher.driver;\n }", "public HTMLFile (File inFile) {\n this.inFile = inFile;\n inName = inFile.toString();\n inURL = null;\n commonConstruction();\n }", "public abstract String getBaseURL();", "public void loadHtml(final String html) {\n loadHtml(null, html);\n }", "@Override\n protected void load(){\n this.driver.get(super.URL_BASE.concat(this.url));\n }", "public void loadHtml(final String baseUrl, final String html, final String historyUrl) {\n loadHtml(baseUrl, html, \"utf-8\", historyUrl);\n }", "public URL getBaseHref() {\n return baseHref;\n }", "public IndicadoresEficaciaHTML(DocumentLoader loader) { this(loader, true); }", "public IndicadoresEficaciaHTML() {\n/* 163 */ this(StandardDocumentLoader.getInstance());\n/* */ \n/* 165 */ buildDocument();\n/* */ }", "@Override\n\tpublic URL getBaseURL() {\n\t\tURL url = null;\n\t\tString buri = getBaseURI();\n\t\tif (buri != null) {\n\t\t\ttry {\n\t\t\t\turl = new URL(buri);\n\t\t\t} catch (MalformedURLException e) {\n\t\t\t\ttry {\n\t\t\t\t\tString docuri = document.getDocumentURI();\n\t\t\t\t\tif (docuri != null) {\n\t\t\t\t\t\tURL context = new URL(docuri);\n\t\t\t\t\t\turl = new URL(context, buri);\n\t\t\t\t\t}\n\t\t\t\t} catch (MalformedURLException e1) {\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn url;\n\t}", "FullUriTemplateString baseUri();", "public HtmlPage(String h){\r\n\t\t//extract the hrefs:\r\n\t\tHREF.setHref(getHrefs(h));\r\n\t\t//extract the encoding:\r\n\t\t\r\n\t}", "public AbstractHtmlParser(final String url) {\n super(url);\n }", "public URL makeBase(URL startingURL);", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n \n\n // Create the WebEngine\n final WebEngine web = webView.getEngine();\n String urlweb=\"http://google.com\";\n\n // LOad the Start-Page\n web.load(urlweb);\n \n }", "public DefaultHref(String baseUrl)\r\n {\r\n this.parameters = new HashMap();\r\n setFullUrl(baseUrl);\r\n }", "public URL getDocumentBase() {\n/* 158 */ return this.stub.getDocumentBase();\n/* */ }", "public AdmClientePreferencialHTML(AdmClientePreferencialHTML src) {\n/* 209 */ this.fDocumentLoader = src.getDocumentLoader();\n/* */ \n/* 211 */ setDocument((Document)src.getDocument().cloneNode(true), src.getMIMEType(), src.getEncoding());\n/* */ \n/* 213 */ syncAccessMethods();\n/* */ }", "@Override\n public URL getHtmlUrl() throws MalformedURLException {\n URL endpoint = new URL(this.avatarUrl);\n String protocol = this.avatarUrl.startsWith(\"https://\") ? \"https://\" : \"http://\";\n return new URL(protocol + endpoint.getHost() + \":\" + endpoint.getPort() + \"/\" + this.name);\n }", "void commonConstruction () {\n\n if (inFile != null) {\n dataParent = inFile.getParent();\n }\n if (inURL != null) {\n dataParent = \"www\";\n }\n context = new HTMLContext();\n context.setFile(this);\n context.entityTranslation = false;\n\t\thtmlChar = new HTMLCharacter (context);\n }", "public void setHyperlinkBase(String hyperlinkBase)\r\n {\r\n m_hyperlinkBase = hyperlinkBase;\r\n }", "public HelpWindow(File file) \n {\n setFrameIcon(); //set the icon shown on the top left side of the frame\n \n this.initComponents(); //initialises various components\n\n /*\n * Set the page to the JEditorPane\n */\n try \n {\n currentPage = file.toURI().toURL(); //URL of the html to be displayed\n \n this.mainEditorPane.setContentType(\"txt/html\");\n //this.mainEditorPane.setText(defaultURL);\n \n this.mainEditorPane.setPage(currentPage);\n } \n catch (IOException ex) \n {\n ex.printStackTrace();\n }\n }", "@Override\n public Source resolve(String href, String base) throws TransformerException\n {\n\tif (!href.isEmpty() && URI.create(href).isAbsolute())\n\t{\n\t if (log.isDebugEnabled()) log.debug(\"Resolving URI: {} against base URI: {}\", href, base);\n\t URI uri = URI.create(base).resolve(href);\n return resolve(uri);\n\t}\n\telse\n\t{\n\t if (log.isDebugEnabled()) log.debug(\"Stylesheet self-referencing its doc - let the processor handle resolving\");\n\t return null;\n\t}\n }", "public void load(String url);", "public DefaultDocumentSource(URL base, String urlstring) throws IOException\n {\n super(base, urlstring);\n URL url = DataURLHandler.createURL(base, urlstring);\n con = createConnection(url);\n is = null;\n }", "public abstract WalkerDocument newDocument(String path, IOptions options) throws HtmlWalkerException;", "public AdmClientePreferencialHTML(DocumentLoader loader, boolean buildDOM) {\n/* 224 */ this.fDocumentLoader = loader;\n/* */ \n/* 226 */ if (buildDOM)\n/* */ {\n/* 228 */ buildDocument();\n/* */ }\n/* */ }", "@Override\r\n\t\tpublic boolean shouldOverrideUrlLoading(WebView view, String url) {\n\r\n\r\n\t\t\tview.loadUrl(\"https://docs.google.com/viewer?url=\"+url);\r\n\r\n\t\t\treturn true;\r\n\r\n\t\t}", "@Override\n public String getBaseUri() {\n return null;\n }", "public PoaMaestroMultivaloresHTML(PoaMaestroMultivaloresHTML src) {\n/* 271 */ this.fDocumentLoader = src.getDocumentLoader();\n/* */ \n/* 273 */ setDocument((Document)src.getDocument().cloneNode(true), src.getMIMEType(), src.getEncoding());\n/* */ \n/* 275 */ syncAccessMethods();\n/* */ }", "public HelpWindow(URL url) \n {\n setFrameIcon(); //set the icon shown on the top left side of the frame\n\n this.initComponents(); //initialises various components\n\n /*\n * Set the page to the JEditorPane\n */\n try \n {\n currentPage = url;\n this.mainEditorPane.setContentType(\"txt/html\");\n this.mainEditorPane.setPage(currentPage);\n } \n catch (IOException ex) \n {\n ex.printStackTrace();\n }\n }", "@Test(groups = { \"tree\" })\n\tpublic void testLoadViaInlineHtml() throws Exception {\n\t\t\tstartupTest(\"treeLoadViaInlineHtml.html\",null);\n\n\t\t\t//Verify the url\n\t\t\tString url = getBrowserUrl();\n\t\t\tlog(\"URL##########\"+ url);\n\n\t\t\t// Verify if the title of the page is correct\n\t\t\tverifyTitle(\"Incorrect page title;\", TITLE_INLINEHTML);\n\t\t\tcheckPageContent(TITLE_INLINEHTML);\n\n\t\t\t//Find the tree element\n\t\t\tWebElement tree = getElement(\"id=tree\");\n\t\t\tlog(\"Found Element for id=tree \" + tree.toString());\n\n\t\t\tcommonLoadTestForHtml();\n\n }", "@Override\n\tpublic void initialize(URL arg, ResourceBundle rb) { }", "public void setBaseURL(String val) {\n\n\t\tbaseURL = val;\n\n\t}", "private String getBaseUri() {\n\t\treturn null;\n\t}", "private static URI determineDocBaseURI(URI docURI, Document doc) {\n\n // Note: The first base element with a href attribute is considered\n // valid in HTML. See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base.\n var baseElem = doc.selectFirst(\"base[href]\");\n return baseElem != null ? docURI.resolve(baseElem.attr(\"href\")) : docURI;\n }", "public interface HTMLGetter {\n public Document get(String url) throws Exception;\n}", "private void loadNormal(Context ctx, ImageLoader img) {\r\n RequestOptions options = getCommonOptions(img);\r\n\r\n Glide.with(ctx).load(img.getUrl()).apply(options).into(img.getImgView());\r\n }", "@Override\n\tprotected String getHttpBaseUrl() {\n\t\treturn this.properties.getHttpUrlBase();\n\t}", "@org.junit.Test\n public void constrCompelemBaseuri1() {\n final XQuery query = new XQuery(\n \"fn:base-uri(element elem {attribute xml:base {\\\"http://www.example.com\\\"}})\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertStringValue(false, \"http://www.example.com\")\n );\n }", "@Override\n public void onLoad(String url) {\n \n }", "public IndicadoresEficaciaHTML(IndicadoresEficaciaHTML src) {\n/* 181 */ this.fDocumentLoader = src.getDocumentLoader();\n/* */ \n/* 183 */ setDocument((Document)src.getDocument().cloneNode(true), src.getMIMEType(), src.getEncoding());\n/* */ \n/* 185 */ syncAccessMethods();\n/* */ }", "public static void setBaseURL() {\n\n\t\tRestAssured.baseURI = DataReader.dataReader(\"baseURL\");\n\t}", "@Override\r\n \tpublic File getLoadPath() {\n \t\treturn null;\r\n \t}", "public ResourceSite( Class<?> baseClass, String baseDir) {\n super( toResourceURI( baseClass, baseDir));\n }", "java.lang.String getResourceUri();", "@Test(groups = { \"tree\" })\n\t\tpublic void testLoadViaGetURL() throws Exception {\n\t\t\t\tstartupTest(\"treeLoadViaGetURL.html\",null);\n\n\t\t\t\t//Verify the url\n\t\t\t\tString url = getBrowserUrl();\n\t\t\t\tlog(\"URL##########\"+ url);\n\n\t\t\t\t// Verify if the title of the page is correct\n\t\t\t\tverifyTitle(\"Incorrect page title;\", TITLE_GETURL);\n\t\t\t\tcheckPageContent(TITLE_GETURL);\n\n\t\t\t\tcommonLoadTestForJson();\n\n\n }", "protected String overwriteSwaggerDefaultUrl(String html) {\n\t\treturn html.replace(Constants.SWAGGER_UI_DEFAULT_URL, StringUtils.EMPTY);\n\t}", "public Source resolve(String href, String base) throws TransformerException {\n\t\treturn null;\n\t}", "public abstract String getOutputUrl();", "@Override\n\tpublic void initialize(URL url, ResourceBundle rB) {\n\t\tbrowse.setDisable(true);\n\t\trecognize.setDisable(true);\n\t\treset.setDisable(true);\n\t\toutClassLabel.setVisible(false);\n\t\toutClassLabel.setText(\"Not Found\");\n\t\tprogressBar.setProgress(0.0);\n\t\tprogressBar.setVisible(true);\n\t\tprogressLabel.setText(\"Initializing..\");\n\t\tprogressLabel.setVisible(true);\n\t\tbrowseImage.setImage(new Image(\"file:resources/ui/no_image.jpg\"));\n\t\tinterestImage.setImage(new Image(\"file:resources/ui/no_image.jpg\"));\n\n\t}", "@Override\r\n\t\tpublic void initialize(URL arg0, ResourceBundle arg1) {\n\t\t\t\r\n\t\t}", "@Override\r\n\t\tpublic String getBaseURI()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "@Override\r\n \tpublic File getLoadPath(String subArea) {\n \t\treturn null;\r\n \t}", "public PoaMaestroMultivaloresHTML(DocumentLoader loader, boolean buildDOM) {\n/* 286 */ this.fDocumentLoader = loader;\n/* */ \n/* 288 */ if (buildDOM)\n/* */ {\n/* 290 */ buildDocument();\n/* */ }\n/* */ }", "public void setHTML(String html);", "public DefaultDocumentSource(URL url) throws IOException\n {\n super(url);\n con = createConnection(url);\n is = null;\n }", "public void setSource(URL url) throws IOException {\n\t\tFile f = new File(url.getFile());\n\t\tif (f.isAbsolute()) {\n\t\t\tsourceFile = url;\n\t\t\timg = ImageIO.read(f);\n\t\t\tthis.isRelativePath = false;\n\t\t} else {\n\t\t\tsourceFile = new URL(SymbologyFactory.SymbolLibraryPath\n\t\t\t\t\t+ File.separator + f.getPath());\n\t\t\timg = ImageIO.read(f);\n\t\t\tthis.isRelativePath = true;\n\t\t}\n\t}", "@Override\n protected void parseURL(URL url, String spec, int start, int end) {\n if (end < start) {\n return;\n }\n String parseString = \"\";\n if (start < end) {\n parseString = spec.substring(start, end).replace('\\\\', '/');\n }\n super.parseURL(url, parseString, 0, parseString.length());\n }", "public Saml2AuthHelper(String baseOAuthUrl)\n {\n if (baseOAuthUrl != null && !baseOAuthUrl.isEmpty())\n {\n this.baseUrl = Uri.parse(baseOAuthUrl);\n }\n }", "public void setImageLoader(ImageLoader imageLoader) {\n/* 248 */ this.loader = imageLoader;\n/* */ }", "File getLoadLocation();", "@org.junit.Test\n public void constrCompelemBaseuri2() {\n final XQuery query = new XQuery(\n \"fn:base-uri(exactly-one((<elem xml:base=\\\"http://www.example.com\\\">{element a {}}</elem>)/a))\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertStringValue(false, \"http://www.example.com\")\n );\n }", "public HtmlParserImpl(final String url) throws ParserException {\n\t\tsuper(url);\n\t}", "public abstract Builder setBaseOptions(BaseOptions value);", "@Test\n public void loadPage_HandleDoubleDotsAtRoot() throws Exception {\n final String htmlContent\n = \"<html><head><title>foo</title></head><body>\\n\"\n + \"</body></html>\";\n\n final WebClient client = getWebClient();\n\n final MockWebConnection webConnection = new MockWebConnection();\n webConnection.setDefaultResponse(htmlContent);\n client.setWebConnection(webConnection);\n\n HtmlPage page = client.getPage(\"http://www.somewhere.org/..\");\n assertEquals(\"http://www.somewhere.org/\", page.getWebResponse().getWebRequest().getUrl());\n\n page = client.getPage(\"http://www.somewhere.org/../test\");\n assertEquals(\"http://www.somewhere.org/test\", page.getWebResponse().getWebRequest().getUrl());\n\n // many\n page = client.getPage(\"http://www.somewhere.org/../../..\");\n assertEquals(\"http://www.somewhere.org/\", page.getWebResponse().getWebRequest().getUrl());\n }", "@Override\r\n\tpublic void initialize(URL arg0, ResourceBundle arg1) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void initialize(URL arg0, ResourceBundle arg1) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void initialize(URL arg0, ResourceBundle arg1) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void initialize(URL arg0, ResourceBundle arg1) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void initialize(URL arg0, ResourceBundle arg1) {\n\t\t\r\n\t}", "@Override\n\tpublic void initialize(URL arg0, ResourceBundle arg1) {\n\t\t\n\t\t\n\t}", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n \n }", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n bundle = ResourceBundle.getBundle(\"net.sourceforge.tessboxeditor.Gui\"); // NOI18N\n imageFolder = new File(prefs.get(\"ImageFolder\", System.getProperty(\"user.home\")));\n }", "private void initWebView(){ \r\n WebEngine webEngine = viewerPane.getEngine();\r\n webEngine.load(\"http://www.google.com\");\r\n }", "@Override\n\tpublic void initialize(URL arg0, ResourceBundle arg1) {\n\t}", "@Override\n\tpublic void initialize(URL arg0, ResourceBundle arg1) {\n\t}", "public String getBaseUri() {\n\t\treturn baseUri;\n\t}", "@Override\n public boolean shouldOverrideUrlLoading(WebView view, String url) {\n view.loadUrl(url, extraHeaders);\n return true;\n }", "public URL getHtmlDescription();", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n }", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n }", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n }", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n }", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n }", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n }", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n }" ]
[ "0.54902816", "0.5450354", "0.53971446", "0.53868955", "0.52427936", "0.52204436", "0.5218899", "0.52121705", "0.5183884", "0.51703084", "0.5168762", "0.5152381", "0.51185036", "0.5106206", "0.5075833", "0.5068102", "0.501061", "0.50007546", "0.49977365", "0.49710536", "0.49550658", "0.4938886", "0.4917609", "0.49107003", "0.49106836", "0.4909397", "0.48981282", "0.48879763", "0.4883911", "0.48610732", "0.48575115", "0.48437577", "0.48436898", "0.48371682", "0.4833629", "0.4828993", "0.48177496", "0.47992617", "0.4796836", "0.4792189", "0.4791429", "0.47913224", "0.47220054", "0.47164825", "0.47102568", "0.46965146", "0.46957088", "0.46878323", "0.4678581", "0.4662874", "0.4641535", "0.46401644", "0.46356538", "0.46332932", "0.46299258", "0.46225393", "0.46203655", "0.46090552", "0.46066868", "0.46053284", "0.46046215", "0.45995155", "0.4597748", "0.45894393", "0.45870134", "0.45819226", "0.45679057", "0.45592302", "0.4555826", "0.45519117", "0.45509285", "0.45469764", "0.45466828", "0.45324343", "0.4522306", "0.45111254", "0.45104077", "0.45072147", "0.44985303", "0.4495139", "0.4495139", "0.4495139", "0.4495139", "0.4495139", "0.4491899", "0.44899124", "0.4477847", "0.44744584", "0.4471248", "0.4471248", "0.44704953", "0.44699445", "0.446727", "0.44606385", "0.44606385", "0.44606385", "0.44606385", "0.44606385", "0.44606385", "0.44606385" ]
0.74619627
0
ExStart ExFor:HtmlLoadOptions.PreferredControlType ExSummary:Shows how to set preferred type of document nodes that will represent imported and elements.
@Test public void getSelectAsSdt() throws Exception { final String HTML = "\n <html>\n <select name='ComboBox' size='1'>\n <option value='val1'>item1</option>\n <option value='val2'></option> \n </select>\n </html>\n "; HtmlLoadOptions htmlLoadOptions = new HtmlLoadOptions(); htmlLoadOptions.setPreferredControlType(HtmlControlType.STRUCTURED_DOCUMENT_TAG); Document doc = new Document(new MemoryStream(Encoding.getUTF8().getBytes(HTML)), htmlLoadOptions); NodeCollection nodes = doc.getChildNodes(NodeType.STRUCTURED_DOCUMENT_TAG, true); StructuredDocumentTag tag = (StructuredDocumentTag) nodes.get(0); //ExEnd Assert.assertEquals(2, tag.getListItems().getCount()); Assert.assertEquals("val1", tag.getListItems().get(0).getValue()); Assert.assertEquals("val2", tag.getListItems().get(1).getValue()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setPreferredType(String preferredType){\n m_preferredType = preferredType;\n }", "void setControlType(org.landxml.schema.landXML11.TrafficControlType.Enum controlType);", "void xsetControlType(org.landxml.schema.landXML11.TrafficControlType controlType);", "public void setDocumentType (String DocumentType);", "public void setType(int type) {\n \t\tbrowserType = type;\n \t\tif (type == FILE_BROWSER) {\n \t\t\tdialogLabel = Messages.RemoteResourceBrowser_fileLabel;\n \t\t\tsetTitle(Messages.RemoteResourceBrowser_fileTitle);\n \t\t} else if (type == DIRECTORY_BROWSER) {\n \t\t\tdialogLabel = Messages.RemoteResourceBrowser_directoryLabel;\n \t\t\tsetTitle(Messages.RemoteResourceBrowser_directoryTitle);\n \t\t} else {\n \t\t\tdialogLabel = Messages.RemoteResourceBrowser_resourceLabel;\n \t\t\tsetTitle(Messages.RemoteResourceBrowser_resourceTitle);\n \t\t}\n \t}", "@AutoEscape\n\tpublic String getDocumentType();", "protected abstract Type loadDefaultElement();", "public void pageChanged(String inputDocument, String modelType, boolean documentTypeSelected)\n {\n \n if (inputDocument.endsWith(\".docx\") || inputDocument.endsWith(\".odt\")) //$NON-NLS-1$ //$NON-NLS-2$\n {\n isSpreadsheet = false;\n \n if (documentTypeSelected)\n {\n valueToRecognizeReq = controller.getIDRegexOrStyle();\n RecognizedTree newTree = controller.getStylesAndRegex();\n tree.getChildren().clear();\n if (newTree != null)\n {\n tree.getChildren().addAll(newTree.getChildren());\n }\n }\n \n boolean b = Constants.SYSML_EXTENSION.equals(modelType) || Constants.UML_EXTENSION.equals(modelType);\n \n descriptionComposite.setAttributeComboVisible(b);\n } \n else\n {\n isSpreadsheet = true;\n\n if (documentTypeSelected)\n {\n valueToRecognizeReq = controller.getIDColumn();\n RecognizedTree newTree = controller.getColumns();\n tree.getChildren().clear();\n if (newTree != null)\n {\n tree.getChildren().addAll(newTree.getChildren());\n }\n }\n }\n \n if (documentTypeSelected)\n {\n descriptionText = controller.getDescriptionEndText();\n descriptionRegex = controller.getDescriptionRegex();\n }\n \n updateWizard();\n \n if (inputDocument != null)\n {\n if (inputDocument.contains(\"file:\")) //$NON-NLS-1$\n {\n currentFileSystem = new File(URI.createURI(inputDocument).toFileString());\n controller.setCurrentFileSystem(currentFileSystem);\n }\n else if (inputDocument.contains(\"platform:\")) //$NON-NLS-1$\n {\n currentFile = ResourcesPlugin.getWorkspace().getRoot().getFile(new Path(URI.createURI(inputDocument).toPlatformString(true)));\n controller.setCurrentFile(currentFile);\n if (currentFile != null)\n {\n currentFileSystem = currentFile.getLocation().toFile();\n controller.setCurrentFileSystem(currentFileSystem);\n }\n }\n else\n {\n currentFile = ResourcesPlugin.getWorkspace().getRoot().getFileForLocation(new Path(URI.createURI(inputDocument).toFileString()));\n controller.setCurrentFile(currentFile);\n if (currentFile != null)\n {\n currentFileSystem = currentFile.getLocation().toFile();\n controller.setCurrentFileSystem(currentFileSystem);\n }\n }\n }\n setDocumentFile(currentFileSystem);\n }", "public void setLoadType(String loadType)\r\n\t{\r\n\t\tthis.loadType = loadType;\r\n\t}", "public void setDocumentType(String documentType);", "public String getPreferredType() {\n return m_preferredType;\n }", "Control getControl(String controlType);", "public AdmClientePreferencialHTML() {\n/* 191 */ this(StandardDocumentLoader.getInstance());\n/* */ \n/* 193 */ buildDocument();\n/* */ }", "public String getDocumentType();", "org.landxml.schema.landXML11.TrafficControlType.Enum getControlType();", "public void setLBR_CNAB240DocType (String LBR_CNAB240DocType);", "@ApiModelProperty(value = \"class type of target specification\")\n\n\n public String getType() {\n return type;\n }", "public String getLBR_CNAB240DocType();", "@Override\n FieldOptions getRoleActivityFieldOptions(VitroRequest vreq) throws Exception {\n\t\treturn new ConstantFieldOptions(\n\t\t \"\", \"Select type\", \n\t\t \"http://purl.org/ontology/bibo/AcademicArticle\", \"Academic Article\",\n \"http://purl.org/ontology/bibo/Article\", \"Article\",\n \"http://purl.org/ontology/bibo/AudioDocument\", \"Audio Document\",\n \"http://purl.org/ontology/bibo/AudioVisualDocument\", \"Audio-Visual Document\",\n \"http://purl.org/ontology/bibo/Bill\", \"Bill\",\n \"http://vivoweb.org/ontology/core#Blog\", \"Blog\",\n \"http://vivoweb.org/ontology/core#BlogPosting\", \"Blog Posting\",\n \"http://purl.org/ontology/bibo/Book\", \"Book\",\n \"http://purl.org/ontology/bibo/BookSection\", \"Book Section\",\n \"http://purl.org/ontology/bibo/Brief\", \"Brief\",\n \"http://vivoweb.org/ontology/core#CaseStudy\", \"Case Study\",\n \"http://vivoweb.org/ontology/core#Catalog\", \"Catalog\",\n \"http://purl.org/ontology/bibo/Chapter\", \"Chapter\",\n \"http://purl.org/spar/fabio/ClinicalGuideline\", \"Clinical Guideline\",\n \"http://purl.org/ontology/bibo/Code\", \"Code\",\n \"http://purl.org/ontology/bibo/CollectedDocument\", \"Collected Document\",\n \"http://purl.org/spar/fabio/Comment\", \"Comment\",\n \"http://vivoweb.org/ontology/core#ConferencePaper\", \"Conference Paper\",\n \"http://vivoweb.org/ontology/core#ConferencePoster\", \"Conference Poster\",\n \"http://purl.org/ontology/bibo/CourtReporter\", \"Court Reporter\",\n \"http://vivoweb.org/ontology/core#Database\", \"Database\",\n \"http://purl.org/ontology/bibo/LegalDecision\", \"Decision\",\n \"http://purl.org/ontology/bibo/DocumentPart\", \"Document Part\",\n \"http://purl.org/ontology/bibo/EditedBook\", \"Edited Book\",\n \"http://vivoweb.org/ontology/core#EditorialArticle\", \"Editorial Article\",\n \"http://purl.org/spar/fabio/Erratum\", \"Erratum\",\n \"http://purl.org/ontology/bibo/Excerpt\", \"Excerpt\",\n \"http://purl.org/ontology/bibo/Film\", \"Film\",\n \"http://purl.org/ontology/bibo/Image\", \"Image\",\n \"http://purl.org/ontology/bibo/Issue\", \"Issue\",\n \"http://purl.org/ontology/bibo/Journal\", \"Journal\",\n \"http://purl.obolibrary.org/obo/IAO_0000013\", \"Journal Article\",\n \"http://purl.org/ontology/bibo/LegalCaseDocument\", \"Legal Case Document\",\n \"http://purl.org/ontology/bibo/LegalDocument\", \"Legal Document\",\n \"http://purl.org/ontology/bibo/Legislation\", \"Legislation\",\n \"http://purl.org/ontology/bibo/Letter\", \"Letter\",\n \"http://purl.org/ontology/bibo/Magazine\", \"Magazine\",\n \"http://purl.org/ontology/bibo/Manual\", \"Manual\",\n \"http://purl.org/ontology/bibo/Manuscript\", \"Manuscript\",\n \"http://purl.org/ontology/bibo/Map\", \"Map\",\n \"http://vivoweb.org/ontology/core#Newsletter\", \"Newsletter\",\n \"http://purl.org/ontology/bibo/Newspaper\", \"Newspaper\",\n \"http://vivoweb.org/ontology/core#NewsRelease\", \"News Release\",\n \"http://purl.org/ontology/bibo/Note\", \"Note\",\n \"http://purl.org/ontology/bibo/Patent\", \"Patent\",\n \"http://purl.org/ontology/bibo/Periodical\", \"Periodical\",\n \"http://purl.org/ontology/bibo/PersonalCommunicationDocument\", \"Personal Communication Document\",\n \"http://purl.org/ontology/bibo/Proceedings\", \"Proceedings\",\n \"http://purl.obolibrary.org/obo/OBI_0000272\", \"protocol\",\n \"http://purl.org/ontology/bibo/Quote\", \"Quote\",\n \"http://purl.org/ontology/bibo/ReferenceSource\", \"Reference Source\",\n \"http://purl.org/ontology/bibo/Report\", \"Report\",\n \"http://vivoweb.org/ontology/core#ResearchProposal\", \"Research Proposal\",\n \"http://vivoweb.org/ontology/core#Review\", \"Review\",\n \"http://vivoweb.org/ontology/core#Score\", \"Score\",\n \"http://vivoweb.org/ontology/core#Screenplay\", \"Screenplay\",\n \"http://purl.org/ontology/bibo/Series\", \"Series\",\n \"http://purl.org/ontology/bibo/Slide\", \"Slide\",\n \"http://purl.org/ontology/bibo/Slideshow\", \"Slideshow\",\n \"http://vivoweb.org/ontology/core#Speech\", \"Speech\",\n \"http://purl.org/ontology/bibo/Standard\", \"Standard\",\n \"http://purl.org/ontology/bibo/Statute\", \"Statute\",\n \"http://purl.org/ontology/bibo/Thesis\", \"Thesis\",\n \"http://vivoweb.org/ontology/core#Translation\", \"Translation\",\n \"http://vivoweb.org/ontology/core#Video\", \"Video\",\n \"http://purl.org/ontology/bibo/Webpage\", \"Webpage\",\n \"http://purl.org/ontology/bibo/Website\", \"Website\",\n \"http://vivoweb.org/ontology/core#WorkingPaper\", \"Working Paper\"\n );\n }", "public void setC_DocType_ID (int C_DocType_ID);", "public void setC_DocType_ID (int C_DocType_ID);", "public AdmClientePreferencialHTML(DocumentLoader loader) { this(loader, true); }", "Type getHtmlInputFieldType();", "public String getElementType()\n {\n return \"FormBuilder Link Element\";\n }", "List<GWTJahiaNodeType> getContentTypes(List<String> baseTypes, boolean includeSubTypes, boolean displayStudioElement) throws GWTJahiaServiceException;", "public Integer getOptContentType() { return(content_type); }", "org.apache.xmlbeans.impl.xb.xsdschema.SelectorDocument.Selector addNewSelector();", "Set<? extends Doclet.Option> getSupportedOptions();", "@Override\n public String getDefaultRenderKitId() {\n return \"HTML_BASIC\";\n }", "public void setC_DocTypeTarget_ID (int C_DocTypeTarget_ID);", "public void setControlFlowHeader(ElementHeader controlFlowHeader)\n {\n this.controlFlowHeader = controlFlowHeader;\n }", "@VTID(13)\n void setType(\n excel.XlPageBreak rhs);", "public int getRenderType()\n {\n return 40;\n }", "@Override\n\tpublic Selector getType() {\n\t\treturn Selector.MODULUS;\n\t}", "@JsonProperty(\"type\")\n @ApiModelProperty(value = \"How the node is processed.\")\n public TypeEnum getType() {\n return type;\n }", "RecommendationRenderType getRenderType();", "@Override\n\tabstract public void setDefaultHTMLUserAgentSheet();", "private int determineDocType(DocumentAccessBean argDocument) {\n\n\tint docType = DOCTYPES.NO_PROCESSING;\n\t\n\tif (argDocument != null) {\n\t\ttry {\n\t\t\tif (argDocument.getEJBRef() instanceof I13nAct)\n\t\t\t\tdocType = DOCTYPES.I13NACT;\n\t\t\telse if (argDocument.getEJBRef() instanceof ChangeAct)\n\t\t\t\tdocType = DOCTYPES.CHANGEACT;\n\t\t\telse if (argDocument.getEJBRef() instanceof InwayBill)\n\t\t\t\tdocType = DOCTYPES.EXT_IN;\n\t\t\telse if (argDocument.getEJBRef() instanceof OutWayBill)\n\t\t\t\tdocType = DOCTYPES.EXT_OUT;\n\t\t\telse if (argDocument.getEJBRef() instanceof InternalWayBill)\n\t\t\t\tdocType = DOCTYPES.INT_IN;\n\t\t\telse if (argDocument.getEJBRef() instanceof PayOffAct)\n\t\t\t\tdocType = DOCTYPES.PAYOFF;\n\t\t\telse if (argDocument.getEJBRef() instanceof SurplusAct)\n\t\t\t\tdocType = DOCTYPES.SURPLUS;\n\t\t\telse if (argDocument.getEJBRef() instanceof AssemblingAct) {\n\t\t\t\tAssemblingActAccessBean aact = new AssemblingActAccessBean(argDocument.getEJBRef());\n\t\t\t\tif (\"A\".equals(aact.getOperationType()))\n\t\t\t\t\tdocType = DOCTYPES.BLOK_IN;\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"PLATINUM-SYNC: cannot determine document type\");\n\t\t\te.printStackTrace(System.out);\n\t\t}\n\t}\n\t\n\tlogIt(\"Determine document type, type=\" + docType);\n\treturn docType;\n}", "public String getDocumentType() {\n return this.documentType;\n }", "private void setControlsForMethodType ( String methodType ) {\n \t\tif (getCurrentTestType().equalsIgnoreCase(JAX_RS) &&\n \t\t\t\t(methodType.equalsIgnoreCase(GET) ||\n \t\t\t\t methodType.equalsIgnoreCase(OPTIONS))) {\n \t\t\tbodyText.setEnabled(false);\n \t\t\ttreeRequestBody.getTree().setEnabled(false);\n \t\t} else {\n \t\t\tbodyText.setEnabled(true);\n \t\t\ttreeRequestBody.getTree().setEnabled(true);\n \t\t}\n \t}", "@Override\n\tpublic int getType() {\n\t\treturn 1;\n\t}", "public JTypeView(JNODE aCD) { super(aCD); }", "public void ach_doc_type_txt_test () {\n\t\t\n\t}", "@Override\n\tpublic String type() {\n\t\treturn \"Leather Green color open folder : You have choose Leather Green color open folder\";\n\t}", "private void handleLCTypeChange() {\n\t\tString lc = cbLoadingCharge.getText();\n\t\tif (optionB[3].equals(lc)) {\n\t\t\ttxtLC_article.setEnabled(false);\n\t\t\ttxtLC_article.setText(EMPTYSTRING);\n\t\t} else {\n\t\t\ttxtLC_article.setEnabled(true);\n\t\t}\n\t}", "void setRendererType(String rendererType);", "public String getReaderType() {\n\t\treturn \"DleseCollectionDocReader\";\n\t}", "ElementSetNameType createElementSetNameType();", "private String getDocumentType(Document doc) {\n List<Node> nodes = doc.childNodes();\n for (Node node : nodes) {\n if (node instanceof DocumentType) {\n DocumentType documentType = (DocumentType) node;\n\n return documentType.toString().toLowerCase();\n }\n }\n return \"This document does not declare its DOCTYPE\";\n }", "@Override\n public int getRenderType()\n {\n return 22;\n }", "org.landxml.schema.landXML11.TrafficControlType xgetControlType();", "public void setViewType(int viewType)\n {\n this.viewType = viewType;\n }", "public void selectUrlType(String inURL) {\n\n try {\n URL url = new URL(inURL);\n String[] fileType = url.getFile().split(\"[.]\");\n int itemCount = fileType.length;\n if (fileType[itemCount - 1].contains(\"txt\") || fileType[itemCount - 1].contains(\"cells\")) {\n theUrlType = \"Text Url\";\n } else if (fileType[itemCount - 1].contains(\"rle\")) {\n theUrlType = \"RLE Url\";\n Decoder RLE = new Decoder();\n RLE.readAndDecodeURL(inURL);\n }\n\n } catch (Exception e) {\n dialog.urlError();\n }\n }", "public int getRenderType()\n {\n return 2;\n }", "public void setElementType(String element_type) {\n\t\tthis.element_type = element_type;\n\t}", "@DOMSupport(DomLevel.THREE)\r\n @Property DocumentType getDoctype();", "@Override\n\tpublic void setType(String type) {\n\t}", "@Override\n public String getType() {\n return super.getType().toLowerCase();\n }", "private TypeOrder getTypeOrder() {\n\t\tif (JjsUtils.closureStyleLiteralsNeeded(this.options)) {\n\t\t\treturn TypeOrder.ALPHABETICAL;\n\t\t}\n\t\tif (this.options.useDetailedTypeIds()) {\n\t\t\treturn TypeOrder.NONE;\n\t\t}\n\t\treturn this.options.isIncrementalCompileEnabled()\n\t\t\t\t? TypeOrder.ALPHABETICAL\n\t\t\t\t: TypeOrder.FREQUENCY;\n\t}", "protected void setType(String requiredType){\r\n type = requiredType;\r\n }", "private void setControlsForWSType ( String wsType ) {\n \t\tif (wsType.equalsIgnoreCase(JAX_WS)) {\n \t\t\tbodyText.setEnabled(true);\n \t\t\ttreeRequestBody.getTree().setEnabled(true);\n \t\t\tparmsList.setEnabled(false);\n \t\t\tparmsList.removeAll();\n \t\t\tdlsList.setEnabled(false);\n \n \t\t\tString emptySOAP = \n \t\t\t\tgenerateSampleSOAP(null, null, false);\n \t\t\temptySOAP = WSTestUtils.addNLsToXML(emptySOAP);\n \n \t\t\tif (bodyText.getText().trim().length() == 0) {\n \t\t\t\tbodyText.setText(emptySOAP);\n \t\t\t\ttreeRequestBody.setInput(emptySOAP);\n \t\t\t}\n \t\t\topenWSDLToolItem.setEnabled(true);\n \t\t}\n \t\telse if (wsType.equalsIgnoreCase(JAX_RS)) {\n \t\t\tbodyText.setEnabled(true);\n \t\t\ttreeRequestBody.getTree().setEnabled(true);\n \t\t\tparmsList.setEnabled(true);\n \t\t\tdlsList.setEnabled(true);\n \t\t\topenWSDLToolItem.setEnabled(false);\n \n \t\t\tif (bodyText.getText().trim().length() > 0) {\n \t\t\t\tbodyText.setText(EMPTY_STRING);\n \t\t\t\ttreeRequestBody.setInput(null);\n //\t\t\t\tgetCurrentHistoryEntry().setBody(EMPTY_STRING);\n \t\t\t}\n \t\t}\n \t\tsetMenusForCurrentState();\n \t}", "void setTrafficControl(org.landxml.schema.landXML11.TrafficControlDocument.TrafficControl trafficControl);", "public java.lang.String getFieldHtmlType() {\n return fieldHtmlType;\n }", "@Test (dataProvider = \"blockImportDataProvider\")\r\n public void blockImport(/*BlockImportMode*/int blockImportMode) throws Exception\r\n {\n final String HTML = \"\\n <html>\\n <div style='border:dotted'>\\n <div style='border:solid'>\\n <p>paragraph 1</p>\\n <p>paragraph 2</p>\\n </div>\\n </div>\\n </html>\";\r\n MemoryStream stream = new MemoryStream(Encoding.getUTF8().getBytes(HTML));\r\n\r\n HtmlLoadOptions loadOptions = new HtmlLoadOptions();\r\n // Set the new mode of import HTML block-level elements.\r\n loadOptions.setBlockImportMode(blockImportMode);\r\n \r\n Document doc = new Document(stream, loadOptions);\r\n doc.save(getArtifactsDir() + \"HtmlLoadOptions.BlockImport.docx\");\r\n //ExEnd\r\n }", "public void loadPreferecences()\n {\n // Load preferences for chapter\n chapterPref = Activator.getDefault().getPluginPreferences().getBoolean(PREFERENCE_FOR_CHAPTER);\n if (controller != null)\n { \n\t\t\tcontroller.setHierarchical(chapterPref);\n\t\t}\n // Load preferences for value to recognize req\n String pref = Activator.getDefault().getPluginPreferences().getString(PREFERENCE_FOR_VALUE_TO_RECOGNIZE_REQ);\n if (pref != null && pref.length() > 0)\n {\n Serializer<RecognizedElement> serializer = new Serializer<RecognizedElement>();\n RecognizedElement element = serializer.unSerialize(pref);\n if (element != null)\n {\n valueToRecognizeReq = element;\n }\n }\n\n // Load preferences for attributes list\n pref = Activator.getDefault().getPluginPreferences().getString(PREFERENCE_FOR_LIST_RECOGNIZED_ELEMENT);\n if (pref != null && pref.length() > 0)\n {\n Serializer<Collection<RecognizedElement>> serializer = new Serializer<Collection<RecognizedElement>>();\n Collection<RecognizedElement> paramDecoded = serializer.unSerialize(pref);\n if (paramDecoded != null && paramDecoded.size() > 0)\n {\n for (Iterator<RecognizedElement> iterator = paramDecoded.iterator(); iterator.hasNext();)\n {\n tree.add((RecognizedElement) iterator.next());\n }\n }\n }\n \n // Load preferences for the description\n descriptionChecked = Activator.getDefault().getPluginPreferences().getBoolean(PREFERENCE_FOR_DESCRIPTION);\n }", "protected Control createContents(Composite parent) {\n\t\tgetOverlayStore().load();\r\n\t\tgetOverlayStore().start();\r\n Composite composite = createContainer(parent);\r\n \r\n // The layout info for the preference page\r\n GridLayout gridLayout = new GridLayout();\r\n gridLayout.marginHeight = 0;\r\n gridLayout.marginWidth = 0;\r\n composite.setLayout(gridLayout);\r\n \r\n // A panel for the preference page\r\n Composite defPanel = new Composite(composite, SWT.NONE);\r\n GridLayout layout = new GridLayout();\r\n int numColumns = 2;\r\n layout.numColumns = numColumns;\r\n defPanel.setLayout(layout);\r\n GridData gridData =\r\n new GridData(GridData.FILL_BOTH | GridData.GRAB_HORIZONTAL | GridData.GRAB_VERTICAL);\r\n defPanel.setLayoutData(gridData);\r\n \r\n\r\n // Browser options\r\n\t\tGroup wrappingGroup= createGroup(numColumns, defPanel, \"Web Browser\");\r\n\t\tString labelText= \"Use tabbed browsing\";\r\n\t\tlabelText= \"Used tabbed browsing\";\r\n\t\taddCheckBox(wrappingGroup, labelText, CFMLPreferenceConstants.P_TABBED_BROWSER, 1);\r\n \r\n // File paths\r\n createFilePathGroup(defPanel);\r\n \r\n // Images tooltips\r\n\t\tGroup imageGroup= createGroup(numColumns, defPanel, \"Images\");\r\n\t\tlabelText= \"Show Image Tooltips (restart required)\";\r\n\t\taddCheckBox(imageGroup, labelText, CFMLPreferenceConstants.P_IMAGE_TOOLTIPS, 1);\r\n \t\t\r\n\t\t// default help url\r\n\t\tGroup helpGroup= createGroup(numColumns, defPanel, \"External Help Documentation\");\r\n\t\tlabelText= \"Default URL:\";\r\n\t\taddTextField(helpGroup, labelText, CFMLPreferenceConstants.P_DEFAULT_HELP_URL, 50, 0, null);\r\n\t\tlabelText= \"Use external broswer\";\r\n\t\taddCheckBox(helpGroup, labelText, CFMLPreferenceConstants.P_HELP_URL_USE_EXTERNAL_BROWSER, 1);\r\n \r\n // Template Sites\r\n \r\n // createTemplateSitesPathGroup(defPanel);\r\n\r\n\t\tinitializeFields();\r\n\t\tapplyDialogFont(defPanel);\r\n\r\n\t\treturn composite;\r\n }", "public String getLBR_MDFeDocType();", "public String getDocumentType() {\n return documentType;\n }", "String getViewType();", "@ApiModelProperty(value = \"When sub-classing, this defines the super-class\")\n\n\n public String getBaseType() {\n return baseType;\n }", "@ApiModelProperty(value = \"When sub-classing, this defines the super-class\")\n\n\n public String getBaseType() {\n return baseType;\n }", "public AdmClientePreferencialHTML(AdmClientePreferencialHTML src) {\n/* 209 */ this.fDocumentLoader = src.getDocumentLoader();\n/* */ \n/* 211 */ setDocument((Document)src.getDocument().cloneNode(true), src.getMIMEType(), src.getEncoding());\n/* */ \n/* 213 */ syncAccessMethods();\n/* */ }", "public String getOntologyType(){\r\n\t\treturn null;\r\n\t}", "@Test(dataProvider = \"setZoomTypeDataProvider\")\n public void setZoomType(int zoomType) throws Exception {\n Document doc = new Document();\n DocumentBuilder builder = new DocumentBuilder(doc);\n builder.writeln(\"Hello world!\");\n\n // Set the \"ZoomType\" property to \"ZoomType.PageWidth\" to get Microsoft Word\n // to automatically zoom the document to fit the width of the page.\n // Set the \"ZoomType\" property to \"ZoomType.FullPage\" to get Microsoft Word\n // to automatically zoom the document to make the entire first page visible.\n // Set the \"ZoomType\" property to \"ZoomType.TextFit\" to get Microsoft Word\n // to automatically zoom the document to fit the inner text margins of the first page.\n doc.getViewOptions().setZoomType(zoomType);\n\n doc.save(getArtifactsDir() + \"ViewOptions.SetZoomType.doc\");\n //ExEnd\n\n doc = new Document(getArtifactsDir() + \"ViewOptions.SetZoomType.doc\");\n\n Assert.assertEquals(zoomType, doc.getViewOptions().getZoomType());\n }", "private void setPreferredNetworkType(int r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.setPreferredNetworkType(int):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.setPreferredNetworkType(int):void\");\n }", "@Override\n\t\t\t\t\tpublic void beginLoad(int type) {\n\n\t\t\t\t\t}", "public void setReviewType(java.lang.String value);", "public String getElementType()\n {\n return elementType;\n }", "public void setLBR_MDFeDocType (String LBR_MDFeDocType);", "void setClassType(String classType);", "public SelectorType getType() {\r\n\t\treturn type;\r\n\t}", "public final native void setType(String type) /*-{\n this.setType(type);\n }-*/;", "@Override\n\tpublic void setEditorType(java.lang.String editorType) {\n\t\t_scienceApp.setEditorType(editorType);\n\t}", "@Override\n\tpublic Class<?> getRecommendedClassifier() {\n\t\treturn null;\n\t}", "void setControlSchema(Schema controlSchema);", "private void handleLRCTypeChange() {\n\t\tString lrc = cbLRC.getText();\n\n\t\tif (optionA[1].equals(lrc))\n\t\t\tbtnLRCPop.setEnabled(true);\n\t\telse {\n\t\t\tbtnLRCPop.setEnabled(false);\n\t\t}\n\t}", "public String getBrowserType(){\n\t\treturn browserType;\n\t}", "public PoaMaestroMultivaloresHTML() {\n/* 253 */ this(StandardDocumentLoader.getInstance());\n/* */ \n/* 255 */ buildDocument();\n/* */ }", "void setType(java.lang.String type);", "NegotiationType getNegotiationType();", "public void preDefine()\n\t{\n\t\tASPManager mgr = getASPManager();\n\n\t\theadblk = mgr.newASPBlock(\"HEAD\");\n\n\t\theadblk.disableDocMan();\n\n\t\theadblk.addField(\"OBJID\").\n setHidden();\n\n headblk.addField(\"OBJVERSION\").\n setHidden();\n \n headblk.addField(\"OBJSTATE\").\n setHidden();\n \n headblk.addField(\"OBJEVENTS\").\n setHidden();\n\n\t\theadblk.addField(\"LU_NAME\").\n\t\tsetMandatory().\n\t\tsetMaxLength(8).\n\t\tsetReadOnly().\n\t\tsetHidden();\n\n\t\theadblk.addField(\"KEY_REF\").\n\t\tsetMandatory().\n\t\tsetMaxLength(600).\n\t\tsetReadOnly().\n\t\tsetHidden();\n\n\t\theadblk.addField(\"VIEW_NAME\").\n\t\tsetHidden().\n\t\tsetFunction(\"''\");\n\n\t\theadblk.addField(\"DOC_COUNT\").\n\t\tsetHidden();\n\n\t\theadblk.addField(\"SLUDESC\").\n\t\tsetSize(20).\n\t\tsetMaxLength(2000).\n\t\tsetReadOnly().\n\t\tsetFunction(\"OBJECT_CONNECTION_SYS.GET_LOGICAL_UNIT_DESCRIPTION(:LU_NAME)\").\n\t\tsetLabel(\"DOCMAWDOCREFERENCESLUDESCRIPTION: Object\");\n\n\t\theadblk.addField(\"SINSTANCEDESC\").\n\t\tsetSize(20).\n\t\tsetMaxLength(2000).\n\t\tsetReadOnly().\n\t\tsetFunction(\"OBJECT_CONNECTION_SYS.GET_INSTANCE_DESCRIPTION(:LU_NAME,'',:KEY_REF)\").\n\t\tsetLabel(\"DOCMAWDOCREFERENCESINSTANCEDESC: Object Key\");\n\n\t\theadblk.addField(\"DOC_OBJECT_DESC\").\n\t\tsetReadOnly().\n\t\tsetMaxLength(200).\n\t\tsetLabel(\"DOCMAWDOCREFERENCEDOCOBJECTDESC: Object Desc\");\n\n\t\theadblk.addField(\"STATE\").\n setReadOnly().\n setSize(10).\n setLabel(\"DOCMAWDOCREFERENCESTATE: State\");\n\t\t\n\t\theadblk.addField(\"INFO\").\n\t\tsetHidden().\n\t\tsetFunction(\"''\");\n\n\t\theadblk.addField(\"ATTRHEAD\").\n\t\tsetHidden().\n\t\tsetFunction(\"''\");\n\n\t\theadblk.addField(\"ACTION\").\n\t\tsetHidden().\n\t\tsetFunction(\"''\");\n\n\t\theadblk.setView(\"DOC_REFERENCE\");\n\t\theadblk.defineCommand(\"DOC_REFERENCE_API\",\"New__,Modify__,Remove__,Set_Lock__,Set_Unlock__\");\n\n\t\theadset = headblk.getASPRowSet();\n\n\t\theadbar = mgr.newASPCommandBar(headblk);\n\t\theadbar.disableCommand(headbar.FIND);\n\t\theadbar.disableCommand(headbar.DUPLICATEROW);\n\t\theadbar.disableCommand(headbar.NEWROW);\n\t\theadbar.disableCommand(headbar.EDITROW);\n\t\theadbar.disableCommand(headbar.DELETE);\n\t\theadbar.disableCommand(headbar.BACK);\n\n headbar.addSecureCustomCommand(\"SetLock\", \"DOCMAWDOCREFERENCESETLOCK: Lock\", \"DOC_REFERENCE_API.Set_Lock__\");\n headbar.addSecureCustomCommand(\"SetUnlock\", \"DOCMAWDOCREFERENCESETUNLOCK: Unlock\", \"DOC_REFERENCE_API.Set_Unlock__\");\n\n headbar.addCommandValidConditions(\"SetLock\", \"OBJSTATE\", \"Enable\", \"Unlocked\");\n headbar.addCommandValidConditions(\"SetUnlock\", \"OBJSTATE\", \"Enable\", \"Locked\");\n \n\t\theadtbl = mgr.newASPTable(headblk);\n\t\theadtbl.setTitle(mgr.translate(\"DOCMAWDOCREFERENCECONDOCU: Connected Documents\"));\n\n\n\t\theadlay = headblk.getASPBlockLayout();\n\t\theadlay.setDialogColumns(2);\n\t\theadlay.setDefaultLayoutMode(headlay.SINGLE_LAYOUT);\n\n\n\t\t//\n\t\t// Connected documents\n\t\t//\n\n\t\titemblk = mgr.newASPBlock(\"ITEM\");\n\n\t\titemblk.disableDocMan();\n\n\t\titemblk.addField(\"ITEM_OBJID\").\n\t\tsetHidden().\n\t\tsetDbName(\"OBJID\");\n\n\t\titemblk.addField(\"ITEM_OBJVERSION\").\n\t\tsetHidden().\n\t\tsetDbName(\"OBJVERSION\");\n\n\t\titemblk.addField(\"ITEM_LU_NAME\").\n\t\tsetMandatory().\n\t\tsetHidden().\n\t\tsetDbName(\"LU_NAME\");\n\n\t\titemblk.addField(\"ITEM_KEY_REF\").\n\t\tsetMandatory().\n\t\tsetHidden().\n\t\tsetDbName(\"KEY_REF\");\n\t\t\n\t\titemblk.addField(\"VIEW_FILE\").\n setFunction(\"''\").\n setReadOnly().\n unsetQueryable().\n setLabel(\"DOCMAWDOCREFERENCEVIEWFILE: View File\").\n setHyperlink(\"../docmaw/EdmMacro.page?PROCESS_DB=VIEW&DOC_TYPE=ORIGINAL\", \"DOC_CLASS,DOC_NO,DOC_SHEET,DOC_REV\", \"NEWWIN\").\n setAsImageField();\n\t\t\n\t\titemblk.addField(\"CHECK_IN_FILE\").\n setFunction(\"''\").\n setReadOnly().\n unsetQueryable().\n setLabel(\"DOCMAWDOCREFERENCECHECKINFILE: Check In File\").\n setHyperlink(\"../docmaw/EdmMacro.page?PROCESS_DB=CHECKIN&DOC_TYPE=ORIGINAL\", \"DOC_CLASS,DOC_NO,DOC_SHEET,DOC_REV\", \"NEWWIN\").\n setAsImageField();\n\n\t\titemblk.addField(\"DOC_CLASS\").\n\t\tsetSize(10).\n\t\tsetMaxLength(12).\n\t\tsetMandatory().\n\t\tsetUpperCase().\n\t\tsetReadOnly().\n\t\tsetDynamicLOV(\"DOC_CLASS\").\n\t\tsetLOVProperty(\"TITLE\",mgr.translate(\"DOCMAWDOCREFERENCEDOCCLASS1: List of Document Class\")).\n\t\tsetCustomValidation(\"DOC_CLASS\",\"SDOCCLASSNAME,KEEP_LAST_DOC_REV,KEEP_LAST_DOC_REV_DB\").//Bug Id 85361\n\t\tsetLabel(\"DOCMAWDOCREFERENCEDOCCLASS: Doc Class\");\n\n\t\titemblk.addField(\"SDOCCLASSNAME\").\n\t\tsetDbName(\"DOC_NAME\").\n\t\tsetSize(10).\n\t\tsetReadOnly().\n\t\tsetLabel(\"DOCMAWDOCREFERENCESDOCCLASSNAME: Doc Class Desc\");\n\t\t\n\t\titemblk.addField(\"SUB_CLASS\").\n setSize(10).\n setReadOnly().\n setHidden().\n setDynamicLOV(\"DOC_SUB_CLASS\",\"DOC_CLASS\").\n setLabel(\"DOCMAWDOCREFERENCESSUBCLASS: Sub Class\");\n\t\t\n\t\titemblk.addField(\"SUB_CLASS_NAME\").\n setSize(10).\n setReadOnly().\n setLabel(\"DOCMAWDOCREFERENCESSUBCLASSNAME: Sub Class Name\");\n\n\t\titemblk.addField(\"DOC_CODE\").\n setSize(20).\n setReadOnly().\n setLabel(\"DOCMAWDOCREFERENCESDOCCODE: Doc Code\");\n\t\t\n\t\titemblk.addField(\"INNER_DOC_CODE\").\n setSize(20).\n setReadOnly().\n setLabel(\"DOCMAWDOCREFERENCESINNERDOCCODE: Inner Doc Code\");\n\t\t\n\t\titemblk.addField(\"SDOCTITLE\").\n\t\tsetDbName(\"DOC_TITLE\").\n\t\tsetSize(40).\n\t\tsetReadOnly().\n\t\tsetFieldHyperlink(\"DocIssue.page\", \"PAGE_URL\", \"DOC_CLASS,DOC_NO,DOC_SHEET,DOC_REV\").\n\t\tsetLabel(\"DOCMAWDOCREFERENCESDOCTITLE: Title\");\n\n\t\titemblk.addField(\"DOC_REV\").\n\t\tsetSize(20).\n\t\tsetMandatory().\n\t\tsetUpperCase().\n\t\tsetReadOnly().\n\t\tsetDynamicLOV(\"DOC_ISSUE\",\"DOC_CLASS,DOC_NO,DOC_SHEET\").\n\t\tsetLOVProperty(\"TITLE\",mgr.translate(\"DOCMAWDOCREFERENCEDOCREV1: List of Document Revision\")).\n\t\tsetLabel(\"DOCMAWDOCREFERENCEDOCREV: Doc Rev\");\n\t\t\n\t\titemblk.addField(\"DOC_STATE\").\n setSize(10).\n setReadOnly().\n setLabel(\"DOCMAWDOCREFERENCESDOCSTATE: Doc State\");\n\t\t\n\t\titemblk.addField(\"CONNECTED_PERSON\").\n setSize(10).\n setReadOnly().\n setDynamicLOV(\"PERSON_INFO_LOV\").\n setLabel(\"DOCMAWDOCREFERENCECONNECTEDPERSON: Connected Person\");\n\t\t\n\t\titemblk.addField(\"CONNECTED_PERSON_NAME\").\n setSize(10).\n setReadOnly().\n setFunction(\"Person_Info_API.Get_Name(:CONNECTED_PERSON)\").\n setLabel(\"DOCMAWDOCREFERENCECONNECTEDPERSONNAME: Connected Person Name\");\n\t\tmgr.getASPField(\"CONNECTED_PERSON\").setValidation(\"CONNECTED_PERSON_NAME\");\n\t\t\n\t\titemblk.addField(\"CONNECTED_DATE\", \"Date\").\n setSize(10).\n setReadOnly().\n setLabel(\"DOCMAWDOCREFERENCECONNECTEDDATE: Connected Date\");\n\t\t\n\t\titemblk.addField(\"SEND_UNIT_NAME\").\n setSize(20).\n setReadOnly().\n setLabel(\"DOCMAWDOCREFERENCESSENDUNITNAME: Send Unit Name\");\n\t\t\n\t\titemblk.addField(\"SIGN_PERSON\").\n setSize(10).\n setReadOnly().\n setLabel(\"DOCMAWDOCREFERENCESSIGNPERSON: Sign Person\");\n\t\t\n\t\titemblk.addField(\"COMPLETE_DATE\", \"Date\").\n setSize(10).\n setReadOnly().\n setLabel(\"DOCMAWDOCREFERENCESCOMPLETEDATE: Complete Date\");\n\n\t\titemblk.addField(\"DOCTSATUS\").\n\t\tsetSize(20).\n\t\tsetReadOnly().\n\t\tsetFunction(\"substr(DOC_ISSUE_API.Get_State(DOC_CLASS,DOC_NO,DOC_SHEET,DOC_REV),1,200)\").\n\t\tsetLabel(\"DOCMAWDOCREFERENCEDOCTSATUS: Status\");\n\n\t\t//\n\t\t// Hidden Fields\n\t\t//\n\t\t\n\t\titemblk.addField(\"DOC_NO\").\n setSize(20).\n setMaxLength(120).\n setMandatory().\n setUpperCase().\n setHidden().\n setLOV(\"DocNumLov.page\",\"DOC_CLASS\").\n setCustomValidation(\"DOC_CLASS,DOC_NO,DOC_SHEET,DOC_REV\",\"SDOCTITLE,DOC_CLASS,DOC_NO,DOC_SHEET,DOC_REV,SDOCCLASSNAME,KEEP_LAST_DOC_REV,KEEP_LAST_DOC_REV_DB\").//Bug Id 85361\n setLOVProperty(\"TITLE\",mgr.translate(\"DOCMAWDOCREFERENCEDOCNO1: List of Document No\")).\n setLabel(\"DOCMAWDOCREFERENCEDOCNO: Doc No\");\n\t\t\n\t\titemblk.addField(\"DOC_SHEET\").\n setSize(20).\n //Bug 61028, Start\n setMaxLength(10).\n //Bug 61028, End\n setMandatory().\n setUpperCase().\n setHidden().\n setDynamicLOV(\"DOC_ISSUE_LOV1\",\"DOC_CLASS,DOC_NO,DOC_REV\").\n setLOVProperty(\"TITLE\", mgr.translate(\"DOCMAWDOCREFERENCEDOCSHEET1: List of Doc Sheets\")).\n setLabel(\"DOCMAWDOCREFERENCEDOCSHEET: Doc Sheet\");\n\t\t\n\t\titemblk.addField(\"CATEGORY\").\n setSize(20).\n setMaxLength(5).\n setUpperCase().\n setHidden().\n setDynamicLOV(\"DOC_REFERENCE_CATEGORY\").\n setLOVProperty(\"TITLE\",mgr.translate(\"DOCMAWDOCREFERENCEDOCAT: List of Document Category\")).\n setLabel(\"DOCMAWDOCREFERENCECATEGORY: Association Category\");\n\n itemblk.addField(\"COPY_FLAG\").\n setSize(20).\n setMandatory().\n setSelectBox().\n setHidden().\n enumerateValues(\"Doc_Reference_Copy_Status_API\").\n setLabel(\"DOCMAWDOCREFERENCECOPYFLAG: Copy Status\");\n\n itemblk.addField(\"KEEP_LAST_DOC_REV\").\n setSize(20).\n setMaxLength(100).\n setMandatory().\n setSelectBox().\n setHidden().\n unsetSearchOnDbColumn().\n enumerateValues(\"Always_Last_Doc_Rev_API\").\n setCustomValidation(\"KEEP_LAST_DOC_REV,DOC_CLASS,DOC_NO,DOC_SHEET,DOC_REV\",\"DOC_REV,KEEP_LAST_DOC_REV_DB\").//Bug Id 85361\n setLabel(\"DOCMAWDOCREFERENCEKEEPLASTDOCREV: Update Revision\");\n\n //Bug Id 85361. Start\n itemblk.addField(\"KEEP_LAST_DOC_REV_DB\").\n setHidden().\n unsetSearchOnDbColumn().\n setFunction(\"Always_Last_Doc_Rev_API.Encode(:KEEP_LAST_DOC_REV)\");\n //Bug Id 85361. End\n\n itemblk.addField(\"SURVEY_LOCKED_FLAG\").\n setSize(20).\n setMandatory().\n setSelectBox().\n setHidden().\n enumerateValues(\"LOCK_DOCUMENT_SURVEY_API\").\n unsetSearchOnDbColumn().\n //Bug 57719, Start\n setCustomValidation(\"SURVEY_LOCKED_FLAG\",\"SURVEY_LOCKED_FLAG_DB\").\n //Bug 57719, End\n setLabel(\"DOCMAWDOCREFERENCESURVEYLOCKEDFLAG: Doc Connection Status\");\n\t\t\n\t\titemblk.addField(\"SURVEY_LOCKED_FLAG_DB\").\n setHidden().\n unsetSearchOnDbColumn().\n setFunction(\"Lock_Document_Survey_Api.Encode(:SURVEY_LOCKED_FLAG)\");\n\t\t\n\t\titemblk.addField(\"FILE_TYPE\").\n\t\tsetHidden().\n\t\tsetFunction(\"EDM_FILE_API.GET_FILE_TYPE(DOC_CLASS,DOC_NO,DOC_SHEET,DOC_REV,'ORIGINAL')\");\n\n\t\t//Bug Id 67336, start\n\t\titemblk.addField(\"STRUCTURE\").\n\t\tsetHidden().\n\t\tsetFunction(\"DOC_TITLE_API.Get_Structure_(DOC_CLASS,DOC_NO)\");\n\t\t//Bug Id 67336, end\n\n\t\t// Bug Id 89939, start\n\t\titemblk.addField(\"CAN_ADD_TO_BC\").\n\t\tsetHidden().\n\t\tsetFunction(\"DOC_ISSUE_API.can_add_to_bc(DOC_CLASS, DOC_NO, DOC_SHEET, DOC_REV)\");\n\t\t\n\t\titemblk.addField(\"BRIEFCASE_NO\"). \n\t\tsetHidden().\n\t\tsetDynamicLOV(\"DOC_BC_LOV1\").\n\t\tsetFunction(\"DOC_BRIEFCASE_ISSUE_API.GET_BRIEFCASE_NO(DOC_CLASS,DOC_NO,DOC_SHEET,DOC_REV)\");\n\t\t\n\t\titemblk.addField(\"EDMSTATUS\").\n\t\tsetHidden().\n\t\tsetFunction(\"EDM_FILE_API.GET_DOC_STATE_NO_USER(DOC_CLASS, DOC_NO, DOC_SHEET, DOC_REV, 'ORIGINAL')\");\n\t\t\n\t\titemblk.addField(\"IS_ELE_DOC\").\n setCheckBox(\"FALSE,TRUE\").\n setFunction(\"EDM_FILE_API.Have_Edm_File(:DOC_CLASS,:DOC_NO,:DOC_SHEET,:DOC_REV)\").\n setReadOnly().\n setHidden().\n setLabel(\"DOCMAWDOCREFERENCEISELEDOC: Is Ele Doc\").\n setSize(5);\n\t\t\n\t\titemblk.addField(\"PAGE_URL\").\n setFunction(\"Doc_Issue_API.Get_Page_Url(:DOC_CLASS,:DOC_NO,:DOC_SHEET,:DOC_REV)\").\n setReadOnly().\n setHidden();\n\t\t\n\t\titemblk.addField(\"TEMP_EDIT_ACCESS\").\n\t\tsetFunction(\"NVL(Doc_Class_API.Get_Temp_Doc(:DOC_CLASS), 'FALSE') || NVL(Doc_Issue_API.Get_Edit_Access_For_Rep_(:DOC_CLASS,:DOC_NO,:DOC_SHEET,:DOC_REV), 'FALSE')\").\n\t\tsetHidden();\n\t\t\n\t\titemblk.addField(\"COMP_DOC\").\n setFunction(\"NVL(Doc_Class_API.Get_Comp_Doc(:DOC_CLASS), 'FALSE')\").\n setHidden();\n\t\t\n\t\titemblk.addField(\"TEMP_DOC\").\n setFunction(\"NVL(Doc_Class_API.Get_Temp_Doc(:DOC_CLASS), 'FALSE')\").\n setHidden();\n\t\t\n\t\titemblk.addField(\"DOC_OBJSTATE\").\n setFunction(\"DOC_ISSUE_API.Get_Objstate__(:DOC_CLASS,:DOC_NO,:DOC_SHEET,:DOC_REV)\").\n setHidden().\n setLabel(\"DOCMAWDOCISSUESTATE: Doc Status\");\n\t\t\n\t\titemblk.addField(\"CHECK_CONNECTED_PERSON\").\n\t\tsetFunction(\"DECODE(connected_person, Person_Info_API.Get_Id_For_User(Fnd_Session_API.Get_Fnd_User), 'TRUE', 'FALSE')\").\n\t\tsetReadOnly().\n\t\tsetLabel(\"DOCMAWDOCREFERENCECHECKCONNECTEDPERSON: Check Connected Person\").\n setHidden();\n\t\t\n\t\titemblk.addField(\"TRANSFERED\").\n\t\tsetCheckBox(\"FALSE,TRUE\").\n\t\tsetReadOnly().\n setHidden();\n\t\t// Bug Id 89939, end\n\n\t\titemblk.setView(\"DOC_REFERENCE_OBJECT\");\n\t\titemblk.defineCommand(\"DOC_REFERENCE_OBJECT_API\",\"New__,Modify__,Remove__\");\n\t\titemblk.setMasterBlock(headblk);\n\t\titemset = itemblk.getASPRowSet();\n\t\titembar = mgr.newASPCommandBar(itemblk);\n\t\titembar.enableCommand(itembar.FIND);\n\t\titembar.disableCommand(itembar.NEWROW);\n\t\titembar.disableCommand(itembar.DUPLICATEROW);\n\t\titembar.disableCommand(itembar.OVERVIEWEDIT);\n\t\titembar.disableCommand(itembar.DELETE);\n\t\titembar.disableCommand(itembar.EDITROW);\n\t\t\n\t\t//Bug 57719, Start, Added check on function checkLocked()\n\t\titembar.defineCommand(itembar.SAVERETURN,\"saveReturnITEM\",\"checkLocked()\");\n\t\t//Bug 57719, End\n\t\titembar.defineCommand(itembar.OKFIND, \"okFindITEMWithErrorMsg\");\n\t\titembar.defineCommand(itembar.COUNTFIND,\"countFindITEM\");\n\t\titembar.defineCommand(itembar.NEWROW, \"newRowITEM\");\n\t\titembar.defineCommand(itembar.SAVENEW, \"saveNewITEM\");\n\t\titembar.defineCommand(itembar.DELETE, \"deleteITEM\");\n\t\t\n\t\t//Bug Id 85487, Start\n\t\titembar.addCustomCommand(\"createNewDoc\", mgr.translate(\"DOCMAWDOCREFERENCECREATEDOC: Create New Document\"));\n\t\titembar.addSecureCustomCommand(\"createConnectDefDoc\", mgr.translate(\"DOCMAWDOCREFERENCECREATECONNDEFDOC: Create And Connect Document...\"), \"DOC_REFERENCE_OBJECT_API.New__\", \"../common/images/toolbar/\" + mgr.getLanguageCode() + \"/createConnectDefDoc.gif\", true);\n\t\t// itembar.setCmdConfirmMsg(\"createConnectDefDoc\", \"DOCMAWDOCREFERENCECREATECONNDEFDOCMSG: Confirm create and connect document?\");\n\t\titembar.addSecureCustomCommand(\"insertExistingDoc\",mgr.translate(\"DOCMAWDOCREFERENCEINEXISTDOC: Insert Existing Document...\"), \"DOC_REFERENCE_OBJECT_API.New__\", \"../common/images/toolbar/\" + mgr.getLanguageCode() + \"/addDocument.gif\", true);\n\t\titembar.addCustomCommandSeparator();\n\t\titembar.forceEnableMultiActionCommand(\"createNewDoc\");\n\t\titembar.forceEnableMultiActionCommand(\"createConnectDefDoc\");\n\t\titembar.forceEnableMultiActionCommand(\"insertExistingDoc\");\n\t\titembar.removeFromRowActions(\"insertExistingDoc\");\n\t\titembar.removeFromRowActions(\"createNewDoc\");\n\t\titembar.removeFromRowActions(\"createConnectDefDoc\");\n\t\t//Bug Id 85487, End\n\n\t\t//Bug Id 89939, start\n\t\t// itembar.addSecureCustomCommand(\"startAddingToBriefcase\",\"DOCMAWDOCREFERENCEADDTOBC: Add to Briefcase...\",\"DOC_BRIEFCASE_ISSUE_API.Add_To_Briefcase\"); \n\t\t// itembar.addCustomCommand(\"goToBriefcase\",\"DOCMAWDOCREFERENCEGOTOBC: Go to Briefcase\"); \n\t\t// itembar.addCommandValidConditions(\"goToBriefcase\",\"BRIEFCASE_NO\",\"Disable\",null);\n\t\t//Bug Id 89939, end\n\n\t\t// File Operations\n\t\t// itembar.addSecureCustomCommand(\"editDocument\",mgr.translate(\"DOCMAWDOCREFERENCEEDITDOC: Edit Document\"),\"DOCUMENT_ISSUE_ACCESS_API.Get_Document_Access\"); //Bug Id 70286\n\t\titembar.addSecureCustomCommand(\"deleteDoc\",mgr.translate(\"DOCMAWDOCREFERENCEDELETEDOC: Delete\"),\"DOC_REFERENCE_OBJECT_API.Remove__\"); //Bug Id 70286\n\t\titembar.setCmdConfirmMsg(\"deleteDoc\", \"DOCMAWDOCREFERENCEDELETEDOCCONFIRM: Confirm delete document(s)?\");\n\t\titembar.addCustomCommandSeparator();\n\t\titembar.addSecureCustomCommand(\"viewOriginal\",mgr.translate(\"DOCMAWDOCREFERENCEVIEVOR: View Document\"),\"DOCUMENT_ISSUE_ACCESS_API.Get_Document_Access\"); //Bug Id 70286\n\t\titembar.addSecureCustomCommand(\"checkInDocument\",mgr.translate(\"DOCMAWDOCREFERENCECHECKINDOC: Check In Document\"),\"DOCUMENT_ISSUE_ACCESS_API.Get_Document_Access\"); //Bug Id 70286\n\t\t// itembar.addSecureCustomCommand(\"undoCheckOut\",mgr.translate(\"DOCMAWDOCREFERENCEUNDOCHECKOUT: Undo Check Out Document\"),\"DOCUMENT_ISSUE_ACCESS_API.Get_Document_Access\"); //Bug Id 70286\n\t\t// itembar.addSecureCustomCommand(\"viewOriginalWithExternalViewer\",mgr.translate(\"DOCMAWDOCREFERENCEVIEWOREXTVIEWER: View Document with Ext. App\"),\"DOCUMENT_ISSUE_ACCESS_API.Get_Document_Access\"); //Bug Id 70286\n\t\t// itembar.addSecureCustomCommand(\"viewCopy\",mgr.translate(\"DOCMAWDOCREFERENCEVIEWCO: View Copy\"),\"DOCUMENT_ISSUE_ACCESS_API.Get_Document_Access\"); //Bug Id 70286\n\t\t// itembar.addSecureCustomCommand(\"printDocument\",mgr.translate(\"DOCMAWDOCREFERENCEPRINTDOC: Print Document\"),\"DOCUMENT_ISSUE_ACCESS_API.Get_Document_Access\"); //Bug Id 70286\n\t\t// itembar.addSecureCustomCommand(\"copyFileTo\",mgr.translate(\"DOCMAWDOCISSUECOPYFILETO: Copy File To...\"),\"DOCUMENT_ISSUE_ACCESS_API.Get_Document_Access\"); //Bug Id 70286\n\t\t// itembar.addSecureCustomCommand(\"sendToMailRecipient\",mgr.translate(\"DOCMAWDOCREFERENCEWSENDMAIL: Send by E-mail...\"),\"DOCUMENT_ISSUE_ACCESS_API.Get_Document_Access\"); //Bug Id 70286\n\t\titembar.addCustomCommand(\"documentInfo\",mgr.translate(\"DOCMAWDOCREFERENCEDOCINFO: Document Info...\"));\n\n\t\titembar.addCommandValidConditions(\"checkInDocument\", \"TEMP_EDIT_ACCESS\", \"Enable\", \"TRUETRUE\");\n\t\titembar.addCommandValidConditions(\"checkInDocument\", \"CHECK_CONNECTED_PERSON\", \"Disable\", \"FALSE\");\n\t\titembar.addCommandValidConditions(\"checkInDocument\", \"TRANSFERED\", \"Disable\", \"TRUE\");\n\t\titembar.addCommandValidConditions(\"checkInDocument\", \"SURVEY_LOCKED_FLAG_DB\", \"Disable\", \"1\");\n\t\t\n\t\titembar.addCommandValidConditions(\"deleteDoc\", \"TEMP_EDIT_ACCESS\", \"Disable\", \"TRUEFALSE\");\n\t\titembar.addCommandValidConditions(\"deleteDoc\", \"CHECK_CONNECTED_PERSON\", \"Disable\", \"FALSE\");\n\t\titembar.addCommandValidConditions(\"deleteDoc\", \"TRANSFERED\", \"Disable\", \"TRUE\");\n\t\titembar.addCommandValidConditions(\"deleteDoc\", \"SURVEY_LOCKED_FLAG_DB\", \"Disable\", \"1\");\n\t\t\n\t\t// Add operations to comand groups\n\t\t// itembar.addCustomCommandGroup(\"FILE\", mgr.translate(\"DOCMAWDOCREFERENCEFILECMDGROUP: File Operations\"));\n\t\t// itembar.setCustomCommandGroup(\"editDocument\", \"FILE\");\n\t\t// itembar.setCustomCommandGroup(\"checkInDocument\", \"FILE\");\n\t\t// itembar.setCustomCommandGroup(\"undoCheckOut\", \"FILE\");\n\t\t// itembar.setCustomCommandGroup(\"viewOriginal\", \"FILE\");\n\t\t// itembar.setCustomCommandGroup(\"viewOriginalWithExternalViewer\", \"FILE\");\n\t\t// itembar.setCustomCommandGroup(\"viewCopy\", \"FILE\");\n\t\t// itembar.setCustomCommandGroup(\"printDocument\", \"FILE\");\n\t\t// itembar.setCustomCommandGroup(\"copyFileTo\", \"FILE\");\n\n\n\t\titembar.enableMultirowAction();\n\t\t// itembar.removeFromMultirowAction(\"viewOriginalWithExternalViewer\");\n\t\t// itembar.removeFromMultirowAction(\"undoCheckOut\");\n\n\n\t\titemtbl = mgr.newASPTable(itemblk);\n\t\titemtbl.setTitle(mgr.translate(\"DOCMAWDOCREFERENCEDOCUCC: Documents\"));\n\t\titemtbl.enableRowSelect();\n\n\t\titemlay = itemblk.getASPBlockLayout();\n\t\titemlay.setDialogColumns(2);\n\t\titemlay.setDefaultLayoutMode(itemlay.MULTIROW_LAYOUT);\n\n\t\titemlay.setSimple(\"CONNECTED_PERSON_NAME\");\n\t\t\n\t\t//\n\t\t// Create and connect documents\n\t\t//\n\n\t\tdlgblk = mgr.newASPBlock(\"DLG\");\n\n\t\tdlgblk.addField(\"DLG_DOC_CLASS\").\n\t\tsetSize(20).\n\t\tsetDynamicLOV(\"DOC_CLASS\").\n\t\tsetMandatory().\n\t\tsetUpperCase().\n\t\tsetCustomValidation(\"DLG_DOC_CLASS\",\"DLG_DOC_REV,FIRST_SHEET_NO,NUMBER_GENERATOR,NUM_GEN_TRANSLATED,ID1,ID2\").\n\t\tsetLabel(\"DOCMAWDOCREFERENCEDLGDOCCLASS: Doc Class\");\n\n\t\tdlgblk.addField(\"DLG_DOC_NO\").\n\t\tsetSize(20).\n\t\tsetMandatory().\n\t\tsetUpperCase().\n\t\tsetLabel(\"DOCMAWDOCREFERENCEDLGDOCNO: No\");\n\n\t\tdlgblk.addField(\"FIRST_SHEET_NO\").\n\t\tsetSize(20).\n\t\tsetMandatory().\n\t\tsetUpperCase().\n\t\tsetLabel(\"DOCMAWDOCREFERENCEFIRSTSHEETNO: First Sheet No\");\n\n\t\tdlgblk.addField(\"DLG_DOC_REV\").\n\t\tsetSize(20).\n\t\tsetMandatory().\n\t\tsetUpperCase().\n\t\tsetLabel(\"DOCMAWDOCREFERENCEDLGDOCTITLE: Revision\");\n\n\t\tdlgblk.addField(\"DLG_DOC_TITLE\").\n\t\tsetSize(20).\n\t\tsetMandatory().\n\t\tsetLabel(\"DOCMAWDOCREFERENCEDLGDOCREV: Title\");\n\n\t\t// Configurable doc no\n\n\t\tdlgblk.addField(\"NUMBER_GENERATOR\").\n\t\tsetHidden().\n\t\tsetFunction(\"''\");\n\n\t\tdlgblk.addField(\"NUM_GEN_TRANSLATED\").\n\t\tsetReadOnly().\n\t\tsetUpperCase().\n\t\tsetFunction(\"''\").\n\t\tsetLabel(\"DOCREFERENCENUMBERGENERATOR: Number Generator\");\n\n\n\t\tdlgblk.addField(\"ID1\").\n\t\tsetReadOnly().\n\t\tsetFunction(\"''\").\n\t\tsetUpperCase().\n\t\tsetLOV(\"Id1Lov.page\").\n\t\tsetLabel(\"DOCREFERENCENUMBERCOUNTERID1: Number Counter ID1\");\n\n\t\tdlgblk.addField(\"ID2\").\n\t\tsetSize(20).\n\t\tsetUpperCase().\n\t\tsetMaxLength(30).\n\t\tsetFunction(\"''\").\n\t\tsetLOV(\"Id2Lov.page\",\"ID1\").\n\t\tsetLabel(\"DOCREFERENCENUMBERCOUNTERID2: Number Counter ID2\");\n\n\t\tdlgblk.addField(\"BOOKING_LIST\").\n\t\tsetSize(20).\n\t\tsetMaxLength(30).\n\t\tsetUpperCase().\n\t\tsetFunction(\"''\").\n\t\tsetLOV(\"BookListLov.page\", \"ID1,ID2\").//Bug Id 73606\n\t\tsetLabel(\"DOCREFERENCEBOOKINGLIST: Booking List\");\n\n\t\tdlgblk.setTitle(mgr.translate(\"DOCMAWDOCREFERENCECREANDCONNDOC: Create and Connect New Document\"));\n\n\t\tdlgset = dlgblk.getASPRowSet();\n\t\tdlgbar = mgr.newASPCommandBar(dlgblk);\n\t\tdlgbar.enableCommand(dlgbar.OKFIND);\n\t\tdlgbar.defineCommand(dlgbar.OKFIND,\"dlgOk\");\n\t\tdlgbar.enableCommand(dlgbar.CANCELFIND);\n\t\tdlgbar.defineCommand(dlgbar.CANCELFIND,\"dlgCancel\");\n\n\t\tdlglay = dlgblk.getASPBlockLayout();\n\t\tdlglay.setDialogColumns(2);\n\t\tdlglay.setDefaultLayoutMode(dlglay.CUSTOM_LAYOUT);\n\t\tdlglay.setEditable();\n\n\n\t\t//\n\t\t// dummy block\n\t\t//\n\n\t\tdummyblk = mgr.newASPBlock(\"DUMMY\");\n\n\t\tdummyblk.addField(\"DOC_TYPE\");\n\t\tdummyblk.addField(\"RETURN\");\n\t\tdummyblk.addField(\"ATTR\");\n\t\tdummyblk.addField(\"TEMP1\");\n\t\tdummyblk.addField(\"TEMP2\");\n\t\tdummyblk.addField(\"TEMP3\");\n\t\tdummyblk.addField(\"DUMMY\");\n\t\tdummyblk.addField(\"DUMMY_TYPE\");\n\t\tdummyblk.addField(\"DUMMY1\");\n\t\tdummyblk.addField(\"DUMMY2\");\n\t\tdummyblk.addField(\"DUMMY3\");\n\t\tdummyblk.addField(\"DUMMY4\");\n\t\tdummyblk.addField(\"DUMMY5\");\n\t\tdummyblk.addField(\"DUMMY6\");\n\t\tdummyblk.addField(\"LOGUSER\");\n\t\tdummyblk.addField(\"OUT_1\");\n\t}", "@Override\n public int getRenderType()\n {\n return 31;\n }", "public String getShortType() { return \"Tech\"; }", "private void renderRequire(Tag headTag) {\n if (!dojoTypes.isEmpty()) {\n Tag scriptTag = headTag.addChild(new CompositeTag(HtmlElement.SCRIPT));\n scriptTag.addAttribute(\"type\", \"text/javascript\");\n StringBuilder body = new StringBuilder();\n for (String type : dojoTypes) {\n body.append(\" dojo.require(\\\"\");\n body.append(type);\n body.append(\"\\\");\\n\");\n }\n ContentTag contentTag = scriptTag.addChild(new ContentTag(body.toString()));\n contentTag.setContentType(ContentType.COMMENTED_CDATA);\n }\n }", "public void setClientType(Byte clientType) {\r\n this.clientType = clientType;\r\n }", "@XmlAttribute(name=\"elementClass\")\n public void setElementType(String elementType)\n {\n this.elementType = elementType;\n }", "void setChunkType(String aChunkType);", "public String getElementClass ();", "private void setContentTypeImmediate(AppsCustomizePagedView.ContentType type) {\n onTabChangedStart();\n onTabChangedEnd(type);\n }", "public ChangeTypeAction(JavaEditor editor) {\n this(editor.getEditorSite());\n fEditor = editor;\n setEnabled(SelectionConverter.getInputAsCompilationUnit(fEditor) != null);\n }" ]
[ "0.5644197", "0.53338015", "0.5265263", "0.51637197", "0.5122417", "0.50474924", "0.5044786", "0.49813607", "0.49802667", "0.4975232", "0.49676928", "0.4954692", "0.48199132", "0.48168898", "0.4796957", "0.47726518", "0.47675943", "0.47622868", "0.4734271", "0.4702178", "0.4702178", "0.46945086", "0.4687649", "0.46026048", "0.45986992", "0.4597072", "0.4505958", "0.44970706", "0.44566453", "0.44482303", "0.443755", "0.4437298", "0.44290596", "0.44132", "0.44123766", "0.44116917", "0.44037268", "0.43979228", "0.43906304", "0.43842232", "0.4377767", "0.43744695", "0.4370884", "0.43662423", "0.43657434", "0.43655583", "0.4362311", "0.43577865", "0.43528828", "0.43420744", "0.43357053", "0.43332985", "0.43329343", "0.43271038", "0.4319578", "0.43191046", "0.43173343", "0.43102366", "0.4309303", "0.43090636", "0.4307255", "0.4300357", "0.42962497", "0.42959526", "0.42933583", "0.42933142", "0.4292854", "0.42920583", "0.4291524", "0.42831862", "0.42831862", "0.4282466", "0.4255073", "0.4252732", "0.4249952", "0.42440534", "0.42391568", "0.42362928", "0.42265287", "0.421875", "0.42171544", "0.42137647", "0.421074", "0.42088848", "0.4206533", "0.42043912", "0.42008883", "0.4197394", "0.41786072", "0.41778204", "0.4177134", "0.41771233", "0.4175413", "0.41743094", "0.41705394", "0.4162635", "0.41583294", "0.41568866", "0.4154281", "0.41534194" ]
0.41619596
96
ExStart ExFor:HtmlLoadOptions.IgnoreNoscriptElements ExSummary:Shows how to ignore HTML elements.
@Test (dataProvider = "ignoreNoscriptElementsDataProvider") public void ignoreNoscriptElements(boolean ignoreNoscriptElements) throws Exception { final String HTML = "\n <html>\n <head>\n <title>NOSCRIPT</title>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n <script type=\"text/javascript\">\n alert(\"Hello, world!\");\n </script>\n </head>\n <body>\n <noscript><p>Your browser does not support JavaScript!</p></noscript>\n </body>\n </html>"; HtmlLoadOptions htmlLoadOptions = new HtmlLoadOptions(); htmlLoadOptions.setIgnoreNoscriptElements(ignoreNoscriptElements); Document doc = new Document(new MemoryStream(Encoding.getUTF8().getBytes(HTML)), htmlLoadOptions); doc.save(getArtifactsDir() + "HtmlLoadOptions.IgnoreNoscriptElements.pdf"); //ExEnd Aspose.Pdf.Document pdfDoc = new Aspose.Pdf.Document(getArtifactsDir() + "HtmlLoadOptions.IgnoreNoscriptElements.pdf"); TextAbsorber textAbsorber = new TextAbsorber(); textAbsorber.Visit(pdfDoc); Assert.AreEqual(ignoreNoscriptElements ? "" : "Your browser does not support JavaScript!", textAbsorber.Text); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@DataProvider(name = \"ignoreNoscriptElementsDataProvider\")\r\n\tpublic static Object[][] ignoreNoscriptElementsDataProvider() throws Exception\r\n\t{\r\n\t\treturn new Object[][]\r\n\t\t{\r\n\t\t\t{true},\r\n\t\t\t{false},\r\n\t\t};\r\n\t}", "public void setIdxSearchNoHtml(boolean idxSearchNoHtml) {\n Preferences prefs = getPreferences();\n prefs.putBoolean(PROP_SEARCH_NO_HTML, idxSearchNoHtml);\n }", "public boolean isIdxSearchNoHtml() {\n Preferences prefs = getPreferences();\n return prefs.getBoolean(PROP_SEARCH_NO_HTML, false);\n }", "private boolean temNoScript() {\r\n\t\tif (!procurouNoScript) {\r\n\t\t\ttemnoscript = regras.verificaNoscript(codHTML);\r\n\t\t\tprocurouNoScript = true;\r\n\t\t}\r\n\t\treturn temnoscript;\r\n\t}", "public void setIgnore() {\n\t\t\tignore = true;\n\t\t}", "static void ignore() {\n }", "protected boolean shouldIgnoreContent() {\n return empty;\n }", "private static void prePageFetch() {\n WEB_CLIENT.getOptions().setJavaScriptEnabled(false);\n WEB_CLIENT.getOptions().setThrowExceptionOnFailingStatusCode(false);\n\n // just turns off all the red stuff from the console\n java.util.logging.Logger.getLogger(\"com.gargoylesoftware.htmlunit\").setLevel(Level.OFF);\n }", "IParser setDontEncodeElements(Collection<String> theDontEncodeElements);", "public LagartoDOMBuilder enableHtmlMode() {\n\t\tconfig.ignoreWhitespacesBetweenTags = false; // collect all whitespaces\n\t\tconfig.parserConfig.setCaseSensitive(false); // HTML is case insensitive\n\t\tconfig.parserConfig.setEnableRawTextModes(true); // script and style tags are parsed as CDATA\n\t\tconfig.enabledVoidTags = true; // list of void tags\n\t\tconfig.selfCloseVoidTags = false; // don't self close void tags\n\t\tconfig.impliedEndTags = true; // some tags end is implied\n\t\tconfig.parserConfig.setEnableConditionalComments(false); // don't enable IE conditional comments\n\t\tconfig.parserConfig.setParseXmlTags(false); // enable XML mode in parsing\n\t\treturn this;\n\t}", "@org.junit.Test\n public static final void testNabobsOfNegativism() {\n junit.framework.TestCase.assertEquals(\"<noscript></noscript>\", eu.stamp_project.reneri.instrumentation.StateObserver.observe(\"org.owasp.html.HtmlSanitizerTest|testNabobsOfNegativism()|0\", org.owasp.html.HtmlSanitizerTest.sanitize(\"<noscript><evil></noscript>\")));\n junit.framework.TestCase.assertEquals(\"<noscript>I <b>&lt;3</b> Ponies</noscript>\", eu.stamp_project.reneri.instrumentation.StateObserver.observe(\"org.owasp.html.HtmlSanitizerTest|testNabobsOfNegativism()|1\", org.owasp.html.HtmlSanitizerTest.sanitize(\"<noscript>I <b><3</b> Ponies</noscript>\")));\n junit.framework.TestCase.assertEquals(\"<noscript>I <b>&lt;3</b> Ponies</noscript>\", eu.stamp_project.reneri.instrumentation.StateObserver.observe(\"org.owasp.html.HtmlSanitizerTest|testNabobsOfNegativism()|2\", org.owasp.html.HtmlSanitizerTest.sanitize(\"<NOSCRIPT>I <b><3</b> Ponies</noscript><evil>\")));\n junit.framework.TestCase.assertEquals(\"<noframes>I <b>&lt;3</b> Ponies</noframes>\", eu.stamp_project.reneri.instrumentation.StateObserver.observe(\"org.owasp.html.HtmlSanitizerTest|testNabobsOfNegativism()|3\", org.owasp.html.HtmlSanitizerTest.sanitize(\"<noframes>I <b><3</b> Ponies</noframes><evil>\")));\n junit.framework.TestCase.assertEquals(\"<noembed>I <b>&lt;3</b> Ponies</noembed>\", eu.stamp_project.reneri.instrumentation.StateObserver.observe(\"org.owasp.html.HtmlSanitizerTest|testNabobsOfNegativism()|4\", org.owasp.html.HtmlSanitizerTest.sanitize(\"<noembed>I <b><3</b> Ponies</noembed><evil>\")));\n junit.framework.TestCase.assertEquals(\"<noxss>I <b>&lt;3</b> Ponies</noxss>\", eu.stamp_project.reneri.instrumentation.StateObserver.observe(\"org.owasp.html.HtmlSanitizerTest|testNabobsOfNegativism()|5\", org.owasp.html.HtmlSanitizerTest.sanitize(\"<noxss>I <b><3</b> Ponies</noxss><evil>\")));\n junit.framework.TestCase.assertEquals(\"&lt;noscript&gt;I &lt;b&gt;&lt;3&lt;/b&gt; Ponies&lt;/noscript&gt;\", eu.stamp_project.reneri.instrumentation.StateObserver.observe(\"org.owasp.html.HtmlSanitizerTest|testNabobsOfNegativism()|6\", org.owasp.html.HtmlSanitizerTest.sanitize(\"<xmp><noscript>I <b><3</b> Ponies</noscript></xmp>\")));\n }", "private void preserveNecessaryTag() {\n Whitelist whitelist = Whitelist.none();\n whitelist.addTags(\"br\", \"h2\", \"a\", \"img\", \"p\", \"b\", \"i\", \"pre\", \"li\");\n\n // preserve img and its src value\n whitelist.addAttributes(\"img\", \"src\");\n // allow this protocol inside img src attribute value\n whitelist.addProtocols(\"img\", \"src\", \"http\", \"https\", \"data\", \"cid\");\n\n // preserve anchor and its href value\n whitelist.addAttributes(\"a\", \"href\");\n // allow this protocols value inside href attribute value\n whitelist.addProtocols(\"a\", \"href\", \"http\", \"https\", \"data\", \"cid\");\n\n postBodyHTMLContent = Jsoup.clean(postBodyHTMLContent, whitelist);\n }", "@Ignore\r\n\tpublic void ignoreTest() {\r\n\t\tSystem.out.println(\"in ignore test\");\r\n\t}", "public AdmClientePreferencialHTML(DocumentLoader loader) { this(loader, true); }", "@Ignore\n\t public void ignoreTest() {\n\t System.out.println(\"in ignore test\");\n\t }", "public void negateUnxepectedTagPenalty() {\n\t\tnegateUnxepectedTagPenalty = true;\n\t}", "public void enableRawInlineHtml()\n {\n rawInlineHtmlEnabled = true;\n }", "public void testIsAntiElement() throws Exception {\n assertFalse(cfg.isAntiElement(\"anti-test\"));\n cfg.associateStylisticAndAntiElements(\"test\", \"anti-test\", null);\n assertFalse(cfg.isAntiElement(\"test\"));\n assertTrue(cfg.isAntiElement(\"anti-test\"));\n\n cfg.associateStylisticAndAntiElements(\"bold\", \"anti-bold\", null);\n assertFalse(cfg.isAntiElement(\"bold\"));\n assertFalse(cfg.isAntiElement(\"ANTI-BOLD\"));\n assertTrue(cfg.isAntiElement(\"anti-test\"));\n assertTrue(cfg.isAntiElement(\"anti-bold\"));\n }", "public AdmClientePreferencialHTML() {\n/* 191 */ this(StandardDocumentLoader.getInstance());\n/* */ \n/* 193 */ buildDocument();\n/* */ }", "protected String getNoScriptMessage() {\n return \"You have to enable javascript in your browser to use an application built with Vaadin.\";\n }", "public void setIgnoreWarnings(boolean ignoreWarnings) {\n\t\tthis.ignoreWarnings = ignoreWarnings;\n\t}", "public void test545067() throws Exception\n {\n // should NOT output:\n // line 3 column 1 - Warning: <p> isn't allowed in <head> elements\n // since body tags implicitly terminate the <head> section\n\n // ok in jtidy r7\n\n executeTidyTest(\"545067.html\");\n assertLogDoesntContains(\"<head>\");\n }", "public void testScriptTags_AllLocalContent() throws Exception {\n final String content\n = \"<html>\"\n + \"<head><title>foo</title>\"\n + \"<script>One</script>\" // no language specifed - assume javascript\n + \"<script language='javascript'>Two</script>\"\n + \"<script type='text/javascript'>Three</script>\"\n + \"<script type='text/perl'>Four</script>\" // type is unsupported language\n + \"</head>\"\n + \"<body>\"\n + \"<p>hello world</p>\"\n + \"</body></html>\";\n final List collectedScripts = new ArrayList();\n loadPageAndCollectScripts(content, collectedScripts);\n\n // The last expected is the dummy stub that is needed to initialize the javascript engine\n final List expectedScripts = Arrays.asList( new String[]{\n \"One\", \"Two\", \"Three\", \"\" } );\n\n assertEquals( expectedScripts, collectedScripts );\n }", "private boolean isIgnoredByTag(ExtensionContext context) {\n AnnotatedElement element = context.getElement().get();\n return isIgnoredByTag(element);\n }", "public void test438956() throws Exception\n {\n // line 3 column 1 - Warning: plain text isn't allowed in <head> elements\n // line 6 column 1 - Warning: discarding unexpected <body>\n // Info: Doctype given is \"-//W3C//DTD HTML 4.01 Transitional//EN\"\n // Info: Document content looks like HTML 4.01 Transitional\n // 2 warnings, 0 errors were found!\n\n executeTidyTest(\"438956.html\");\n\n assertWarnings(2);\n }", "public void test427827() throws Exception\n {\n // line 6 column 1 - Warning: missing </a> before <a>\n // line 7 column 6 - Warning: discarding unexpected </a>\n // 2 warnings, 0 errors were found!\n\n executeTidyTest(\"427827.html\");\n assertWarnings(2);\n }", "@Test(groups = { \"tree\" })\n\tpublic void testLoadViaInlineHtml() throws Exception {\n\t\t\tstartupTest(\"treeLoadViaInlineHtml.html\",null);\n\n\t\t\t//Verify the url\n\t\t\tString url = getBrowserUrl();\n\t\t\tlog(\"URL##########\"+ url);\n\n\t\t\t// Verify if the title of the page is correct\n\t\t\tverifyTitle(\"Incorrect page title;\", TITLE_INLINEHTML);\n\t\t\tcheckPageContent(TITLE_INLINEHTML);\n\n\t\t\t//Find the tree element\n\t\t\tWebElement tree = getElement(\"id=tree\");\n\t\t\tlog(\"Found Element for id=tree \" + tree.toString());\n\n\t\t\tcommonLoadTestForHtml();\n\n }", "public void setIgnoreTextEvent(boolean bIgnoreTextEvent) {\n m_bIgnoreTextEvent = bIgnoreTextEvent;\n }", "public void test435917b() throws Exception\n {\n // line 11 column 1 - Warning: <input> attribute with missing trailing quote mark\n\n // should not report:\n // line 11 column 2 - Warning: <input> unknown attribute value \"null\"\n\n executeTidyTest(\"435917.html\");\n assertLogDoesntContains(\"null\");\n }", "public void setIgnored(Boolean ignored) {\n this.ignored = ignored;\n }", "public IndicadoresEficaciaHTML(DocumentLoader loader) { this(loader, true); }", "public boolean ignore()\n {\n return nameValues.getValue( FormTags.LINK_TYPE )[0].equals( \"Ignore\" );\n }", "public boolean isRawInlineHtmlEnabled()\n {\n \treturn rawInlineHtmlEnabled;\n }", "@Test(groups = {\"ignoreDirective\"})\n\tpublic void testIgnoreDirectiveShouldApplyToLinesLexedDuringLookaheadOperations()\n\t{\n\t\tString[] code = {\n\t\t\t\"void [function () {\",\n\t\t \" /* jshint ignore:start */\",\n\t\t \" ?\",\n\t\t \" /* jshint ignore:end */\",\n\t\t \"}];\"\n\t\t};\n\t\t\n\t\tth.test(code);\n\t\t\n\t\tcode = new String[] {\n\t\t\t\"(function () {\",\n\t\t \" /* jshint ignore:start */\",\n\t\t \" ?\",\n\t\t \" /* jshint ignore:end */\",\n\t\t \"}());\"\n\t\t};\n\t\t\n\t\tth.test(code);\n\t}", "@Test\n public void testParseDOMToExistenceValidationWidgetPlusIgnoredElemSucceeds()\n {\n FixtureProperties properties = parser.parse(DefaultConfigurationParserMockDOMs\n .createDOMToExistenceValidationWidgetPlusIgnoredElem());\n verifyCommonPropertiesAssertions(properties);\n }", "@Test (dataProvider = \"blockImportDataProvider\")\r\n public void blockImport(/*BlockImportMode*/int blockImportMode) throws Exception\r\n {\n final String HTML = \"\\n <html>\\n <div style='border:dotted'>\\n <div style='border:solid'>\\n <p>paragraph 1</p>\\n <p>paragraph 2</p>\\n </div>\\n </div>\\n </html>\";\r\n MemoryStream stream = new MemoryStream(Encoding.getUTF8().getBytes(HTML));\r\n\r\n HtmlLoadOptions loadOptions = new HtmlLoadOptions();\r\n // Set the new mode of import HTML block-level elements.\r\n loadOptions.setBlockImportMode(blockImportMode);\r\n \r\n Document doc = new Document(stream, loadOptions);\r\n doc.save(getArtifactsDir() + \"HtmlLoadOptions.BlockImport.docx\");\r\n //ExEnd\r\n }", "@Override\n\tpublic boolean isScriptable() {\n\t\treturn false;\n\t}", "boolean ignoreExternal();", "@Override\n\tpublic String[] OnExclusions() {\n\t\treturn new String[] {\"sqlid\", \"item\"};\n\t}", "@Override\n\tpublic void suppress() {\n\n\t}", "@Override\n\tpublic String getCustomHtmlHeaders()\n\t{\n\t\treturn null;\n\t}", "public static String ClearJavaScriptTags(String strHTML) {\r\n\t\tstrHTML = strHTML.replaceAll(\"\\n\", \"<br/>\");\r\n\t\tString nohtml = strHTML.replaceAll(\"<script>\", \"\");\r\n\t\tnohtml = nohtml.replaceAll(\"</script>\", \"\");\r\n\t\treturn nohtml;\r\n\t\t// strHTML.rep\r\n\t}", "@org.junit.Test\n public static final void testInnerHTMLIE8() {\n junit.framework.TestCase.assertEquals(\"<div title=\\\"&#96;&#96;onmouseover&#61;alert(1337) \\\"></div>\", eu.stamp_project.reneri.instrumentation.StateObserver.observe(\"org.owasp.html.HtmlSanitizerTest|testInnerHTMLIE8()|0\", org.owasp.html.HtmlSanitizerTest.sanitize(\"<div title=\\\"``onmouseover=alert(1337)\\\">\")));\n }", "protected void createIgnoreAnnotations() {\n\t\tString source = \"http://www.polarsys.org/capella/2007/ImpactAnalysis/Ignore\";\t\n\t\taddAnnotation\n\t\t (architectureAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceImplementationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceUseEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (providedInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (requiredInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (actorCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\n\t}", "public IndicadoresEficaciaHTML() {\n/* 163 */ this(StandardDocumentLoader.getInstance());\n/* */ \n/* 165 */ buildDocument();\n/* */ }", "public void test427834() throws Exception\n {\n // no warnings\n executeTidyTest(\"427834.html\");\n assertNoWarnings();\n }", "void Ignore(T ex);", "public void test435922() throws Exception\n {\n // line 6 column 1 - Warning: <input> isn't allowed in <body> elements\n // line 7 column 3 - Warning: inserting implicit <form>\n // line 7 column 3 - Warning: missing </form>\n // line 7 column 3 - Warning: <form> lacks \"action\" attribute\n // Info: Doctype given is \"-//W3C//DTD HTML 4.01 Transitional//EN\"\n // Info: Document content looks like HTML 4.01 Transitional\n // 4 warnings, 0 errors were found!\n\n executeTidyTest(\"435922.html\");\n assertWarnings(4);\n }", "@Override\r\n\tpublic void beforeScript(String arg0, WebDriver arg1) {\n\t\t\r\n\t}", "public void ignoreChildren() {\r\n this.isIgnoreChildren = true;\r\n }", "public static void ignoreElements() {\n Observable.fromIterable(Utils.getData())\n .ignoreElements()\n .subscribe(new MyCompletableObserver());\n }", "@Override\r\n\tpublic DTextArea setHtmlOnError(final String script) {\r\n\t\tsuper.setHtmlOnError(script) ;\r\n\t\treturn this ;\r\n\t}", "public String htmlParsing(boolean isImgAltTag, String[] denyId, String[] denyClass, boolean onlyHead) throws Exception {\r\n HTMLBlock block = parse();\r\n\r\n boolean isAppend = true, isDenyClass = false;\r\n String tagType;\r\n String startTag = \"\";\r\n ArrayList htmlList = new ArrayList();\r\n \r\n while(block.hasMoreTokens()) {\r\n Token token = block.nextToken();\r\n\r\n if(token.getTag() != null && token.getType() != Token.TEXT) {\r\n tagType = token.getTag().getLowerCaseType();\r\n \r\n String className = token.getTag().getAttributeValue(\"class\");\r\n for(int i=0; className != null && denyClass != null && i < denyClass.length; i++) {\r\n if(denyClass[i].equals(className)) {\r\n isAppend = false;\r\n isDenyClass = true;\r\n startTag = token.getTag().getLowerCaseType();\r\n break;\r\n }\r\n }\r\n\r\n if(tagType.equals(\"div\")) {\r\n String id = token.getTag().getAttributeValue(\"id\");\r\n for(int i=0; denyId != null && i < denyId.length; i++) {\r\n if(denyId[i].equals(id)) {\r\n isAppend = false;\r\n break;\r\n }\r\n }\r\n }\r\n\r\n if(tagType.equals(\"/div\")) {\r\n isAppend = true;\r\n }\r\n if(isDenyClass && token.getTag().getLowerCaseType().equals(\"/\"+startTag)) {\r\n isDenyClass = false;\r\n isAppend = true;\r\n startTag = \"\";\r\n }\r\n }\r\n\r\n if(isAppend) {\r\n htmlList.add(token);\r\n }\r\n }\r\n\r\n StringBuffer res = new StringBuffer();\r\n \r\n if(onlyHead) {\r\n \tint bodyIndex = 0;\r\n \t\r\n \tfor(int i=0; i<htmlList.size(); i++) {\r\n \t\tToken t = (Token) htmlList.get(i);\r\n \t\t\r\n \t\tif(t.getTag() != null && t.getTag().getLowerCaseType().equals(\"body\")) {\r\n \t\t\tbodyIndex = i;\r\n \t\t\t\r\n \t\t\tbreak;\r\n \t\t}\r\n \t}\r\n \t\r\n \twhile(true) {\r\n \t\tToken t = (Token) htmlList.get(bodyIndex);\r\n \t\t\r\n \t\tString strHtml = t.toString();\r\n \t\t\tstrHtml = strHtml.replace('\\t',' ');\r\n strHtml = strHtml.replace('\\r',' ');\r\n strHtml = strHtml.replace('\\n',' ');\r\n strHtml = strHtml.trim();\r\n \t\t\t\r\n \t\t\tres.append(strHtml);\r\n \t\t\t\r\n \t\t\tif(t.getTag() != null && t.getTag().getLowerCaseType().equals(\"/body\")) {\r\n \t\t\t\tbreak;\r\n \t\t\t} else {\r\n \t\t\t\tbodyIndex++;\r\n \t\t\t}\r\n \t}\r\n \t/*\r\n \t if(t.getTag().getLowerCaseType().equals(\"body\") && onlyHead) {\r\n \t\tfor(int idx=i; idx < htmlList.size(); idx++) {\r\n \t\t\tt = (Token) htmlList.get(idx);\r\n \t\t\t\r\n \t\t\tString strHtml = t.toString();\r\n \t\t\tstrHtml = strHtml.replace('\\t',' ');\r\n strHtml = strHtml.replace('\\r',' ');\r\n strHtml = strHtml.replace('\\n',' ');\r\n strHtml = strHtml.trim();\r\n \t\t\t\r\n \t\t\tres.append(strHtml);\r\n \t\t\t\r\n \t\t\tif(t.getTag() != null && t.getTag().getLowerCaseType().equals(\"/body\"))\r\n \t\t\t\tbreak;\r\n \t\t}\r\n \t\tbreak;\r\n \t}\r\n \t */\r\n } else {\r\n \tfor (int i=0 ; i < htmlList.size(); i++) {\r\n Token t = (Token) htmlList.get(i);\r\n //파싱된 데이터가 text이면 ...\r\n if(t.getType() == STRING) {\r\n String strHtml = t.getText();\r\n //strHtml = convertFormattedTextToPlaintext(strHtml);\r\n strHtml = strHtml.replace('\\t',' ');\r\n strHtml = strHtml.replace('\\r',' ');\r\n strHtml = strHtml.replace('\\n',' ');\r\n strHtml = StringUtil.trimDuplecateSpace(strHtml);\r\n strHtml = addSpace(strHtml);\r\n res.append(strHtml);\r\n } else if(t.getType() == Token.TAG) {\r\n if(isImgAltTag && (t.getTag().getLowerCaseType().equals(\"img\") || t.getTag().getLowerCaseType().equals(\"area\"))) {\r\n if(t.getTag().getAttributeValue(\"alt\") != null) {\r\n res.append(t.getTag().getAttributeValue(\"alt\"));\r\n }\r\n }\r\n }\r\n }\r\n }\r\n \r\n return res.toString();\r\n }", "public void test427810() throws Exception\n {\n // line 1 column 1 - Warning: missing <!DOCTYPE> declaration\n // line 8 column 1 - Warning: <blink> is not approved by W3C\n // line 9 column 1 - Warning: <wbr> is not approved by W3C\n // line 10 column 1 - Warning: <nobr> is not approved by W3C\n // Info: Document content looks like HTML Proprietary\n // 4 warnings, 0 errors were found!\n\n executeTidyTest(\"427810.html\");\n assertWarnings(4);\n }", "@Override\r\n\tpublic DTextArea setHtmlOnAbort(final String script) {\r\n\t\tsuper.setHtmlOnAbort(script) ;\r\n\t\treturn this ;\r\n\t}", "@Override\n\tpublic void beforeScript(String arg0, WebDriver arg1) {\n\n\t}", "@Override\r\n public void beforeScript(final String arg0, final WebDriver arg1) {\n\r\n }", "public boolean getIgnoreAttachedBody();", "public static void setNoAnalysis() {\n noAnalysis = true;\n }", "@Test(expected = IllegalArgumentException.class)\n public void testParseDOMToUIElemOnlyFails()\n {\n parser.parse(DefaultConfigurationParserMockDOMs.createDOMToUIElemOnly());\n fail(\"Should have thrown an IllegalArgumentException\");\n }", "public boolean aIE() {\n return false;\n }", "private void htmlStaticsticsParagraphs() throws Exception{\n\t\tElements listP = htmlParsed.select(\"p\");\n\t\tMap<String,Boolean> option = new HashMap<>();\n\t\toption.put(\"currency\", true);\n\t\toption.put(\"table\", true);\n\t\toption.put(\"list\", true);\n\t\toption.put(\"p\", true);\n\t\ttextStatisticsElements(listP, \"p\", option);\n\t\tcomputeElementstatistics(listP, \"p\", option);\n\t}", "public static String stripHTML(final String in) {\n\t return in.replaceAll(\"</?(A|a|B|b|BR|br|DD|dd|DL|dl|DT|dt|H2|h2|I|i|LI|li|P|p|PRE|pre|TT|tt|UL|ul|BLOCKQUOTE|blockquote)\\\\s*[^>]*>\",\"\");\n// return in.replaceAll(\"<\\\\w+\\\\s*[^>]>\",\"\");\n //return in.replaceAll(\"<(B|BR)\\\\s*[^>]*>\",\"\");\n\t}", "@Test\n public void parserHtml() throws JSONException, IOException {\n }", "public interface TestIgnoreInInterface<T> extends testjava.TestIgnoreInInterfaceBase<T> {\n\tT getTest();\n\tvoid testMethod();\n}", "@Override\n\tprotected String[] ignoreFields() {\n\t\treturn null;\n\t}", "public void setIgnoredReasons(List<AXProperty> ignoredReasons) {\n this.ignoredReasons = ignoredReasons;\n }", "public String getHtmlDescription() {\n\t\treturn null;\n\t}", "@Test\r\n @Ignore\r\n public void testGetPasteSite() {\r\n }", "@Override\r\n\tpublic DTextArea setHtmlOnEmptied(final String script) {\r\n\t\tsuper.setHtmlOnEmptied(script) ;\r\n\t\treturn this ;\r\n\t}", "public void setIgnoreWhitespace(boolean ignoreWhitespace) {\r\n this.ignoreWhitespace = ignoreWhitespace;\r\n }", "public void containsNoneIn(Iterable<?> excluded) {\n containsNone(\"contains no elements in\", excluded);\n }", "public synchronized void ignoreSpeechRecognitionResults() {\r\n\t\t\r\n\t\t//Instead of stopping the speech recognition we are ignoring it's results\r\n\t\tignoreSpeechRecognitionResults = true;\r\n\t\t\r\n\t}", "@Test\n public void test() throws IOException {\n String url = \"http://blog.csdn.net/seatomorrow/article/details/48393547\";\n Readability readability = new Readability(getDoc(url)); // URL\n readability.init();\n String cleanHtml = readability.outerHtml();\n System.out.println(cleanHtml);\n }", "@Test\r\n @Ignore\r\n public void testRun() {\r\n }", "public void testZeroDirectiveTypes() throws Exception {\n File file = getResourceFile(\"/testdata/javascript/head.js\");\n DirectiveBasedJavascriptGroup jg = new DirectiveBasedJavascriptGroup(\"testDummy\", file.getParentFile(),\n file.getName(), new ArrayList<DirectiveType<?>>(), EnumSet.of(JavascriptGeneratorMode.TESTING));\n DirectiveParser dp = new DirectiveParser(jg, jg.getStartFile());\n dp.parseFile();\n goldFileText(dp.generate(JavascriptGeneratorMode.PRODUCTION), \".js\");\n }", "protected String getIgnoreIfExistsLabel()\n {\n return this.bundle.getString(\"CHK_IGNORE_HEADER_IF_EXISTS\" /* NOI18N */);\n }", "protected Set<EStructuralFeature> getFeaturesToIgnore() {\r\n return ImmutableSet.of();\r\n }", "public PoaMaestroMultivaloresHTML(DocumentLoader loader) { this(loader, true); }", "@Test\n public void testTolerantParsing() {\n assertExtract(\"/html/rdfa/oreilly-invalid-datatype.html\", false);\n }", "@Override\n\tpublic String getInnerText() {\n\t\treturn null;\n\t}", "IParser setSuppressNarratives(boolean theSuppressNarratives);", "public Boolean isIgnored() {\n return ignored;\n }", "private String filterScriptMarkup(HttpServletRequest request, HttpServletResponse response, CMAbstractCode code) {\n //construct xmlFilters to strip RichText from <div> and <p> tags\n Markup unfilteredCode = code.getCode();\n List<XMLFilter> filters = new ArrayList<>();\n filters.addAll(xmlFilterFactory.createFilters(request, response, unfilteredCode, \"script\"));\n filters.add(new ScriptFilter());\n\n //strip <div> and <p> from markup\n StringWriter writer = new StringWriter();\n ScriptSerializer handler = new ScriptSerializer(writer);\n unfilteredCode.writeOn(filters, handler);\n return writer.getBuffer().toString();\n }", "public PoaMaestroMultivaloresHTML() {\n/* 253 */ this(StandardDocumentLoader.getInstance());\n/* */ \n/* 255 */ buildDocument();\n/* */ }", "boolean ignoreInner();", "public void testIgnored(Description description) throws java.lang.Exception {\n test.skip(description.getDisplayName());\n System.out.println(\"Execution of test case ignored : \" + description.getMethodName());\n }", "Boolean ignoreExceptions();", "String getSkipExtension();", "@Override\n public boolean isNoTitle() {\n return true;\n }", "public void handleScript(HtmlObjects.Script t)\n {\n }", "@Override\r\n\tpublic String getInnerText() {\n\t\treturn null;\r\n\t}", "public void setIgnoreAttachedBody(boolean flag);", "public static String removeAllScriptTags(final String page)\n {\n return removeAllTags(page, SCRIPT_TAG_PATTERN);\n }", "@Override\n public boolean ignoreAbsorbedDamage() {\n return false;\n }", "@Override\n public boolean ignoreAbsorbedDamage() {\n return false;\n }", "public static void main(String[] args) {\n\t\tQueue<HtmlTag> tags = new LinkedList<HtmlTag>();\n\t\ttags.add(new HtmlTag(\"b\", true)); // <b>\n\t\ttags.add(new HtmlTag(\"b\", false)); // </b>\n\t\ttags.add(new HtmlTag(\"br\")); // <br/>\n\t\t\n\t\t// Your code here\t\n HtmlValidator test = new HtmlValidator(tags);\n System.out.println(\"Before modifications: \" + test.getTags()); \n HtmlTag tagC = new HtmlTag(\"c\"); \n test.addTag(tagC);\n System.out.println(\"After adding <C>:\" + test.getTags());\n test.removeAll(\"b\");\n System.out.println(\"After removing <b>:\" + test.getTags()); \n System.out.println(\"Validation:\");\n test.validate();\n\t}", "public static String stripHtml( String source )\n {\n String regex =\n \"</?(a|b|big|body|br|center|dd|dl|dt|em|embed|font|form|h1|h2|h3|h4|h5|h6|head|hr|html|i|it|img|input|li|link|menu|meta|ol|option|p|small|strike|strong|table|td|th|title|tr|tt|u|ul).*?>\";\n Pattern p = Pattern.compile( regex, Pattern.DOTALL | Pattern.CASE_INSENSITIVE );\n return p.matcher( source ).replaceAll( \"\" );\n }", "public void setIgnoreErrors(boolean b) {\n ignoreErrors = b;\n }", "public boolean ignore() {\n\t\tif(ignoreT<=0) return false; // if ignoreT is 0, the user gets control again\n\t\telse return true; // otherwise the user doesn't have control\n\t}" ]
[ "0.641789", "0.5617784", "0.54418474", "0.5300294", "0.5255939", "0.5251305", "0.51277435", "0.5096707", "0.508545", "0.508006", "0.5044368", "0.50032187", "0.49815702", "0.49500567", "0.49404624", "0.49152505", "0.49036393", "0.48965642", "0.48953396", "0.48535538", "0.4769585", "0.47641718", "0.4759473", "0.47326055", "0.4725092", "0.47217876", "0.4713431", "0.46981764", "0.4697441", "0.46944225", "0.46927732", "0.4691993", "0.46819207", "0.46789277", "0.4650692", "0.46386194", "0.46341687", "0.4628953", "0.4619274", "0.45578426", "0.4543751", "0.45363292", "0.45320153", "0.45259795", "0.45175895", "0.45107293", "0.45054704", "0.45008805", "0.44957614", "0.44902807", "0.4481324", "0.447718", "0.44761488", "0.44744664", "0.44717735", "0.44659853", "0.4462802", "0.44610313", "0.4460625", "0.4441859", "0.44368726", "0.4436289", "0.44276807", "0.44198173", "0.44147366", "0.44072452", "0.43982998", "0.43967664", "0.43932", "0.43898878", "0.4380762", "0.4373441", "0.43651092", "0.43577713", "0.435497", "0.43443123", "0.43432045", "0.4340136", "0.433752", "0.43300694", "0.43227416", "0.43223304", "0.43203717", "0.43184564", "0.43161407", "0.4311413", "0.43104663", "0.4307117", "0.43068108", "0.43066648", "0.4299173", "0.42967924", "0.42882192", "0.42878294", "0.42859855", "0.42859855", "0.4279831", "0.42797175", "0.4277034", "0.42767945" ]
0.81806076
0
JAVAadded data provider for test method
@DataProvider(name = "ignoreNoscriptElementsDataProvider") public static Object[][] ignoreNoscriptElementsDataProvider() throws Exception { return new Object[][] { {true}, {false}, }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@DataProvider\r\n\t\t public Object[][] getTestData()\r\n\t\t\t{\r\n\t\t\t \r\n\t\t\t\treturn TestUtil.getData(suiteProductDescPageXls,this.getClass().getSimpleName());\r\n\t\t\t}", "@DataProvider(name = \"TestDataMahindra\")\n\tpublic Object[][] amazonProviderMethod() {\n\t\treturn new Object[][] { { \"Club Mahindra\",\"Some Title\" ,\"No Comments because the place is awesome\",\"https://www.tripadvisor.in/\"}};\n\t}", "@DataProvider\n public Object[][] Data() \n {\n return new Object[][]\n {\n {\"a\" ,\"aaaa\" },\n { \"b\" ,\"bbb\"},\n {\"c\" ,\"ccc\"}\n \n };\n }", "@Test\n void loadData() {\n }", "public void testGetBasedata() {\n }", "public void testSetBasedata() {\n }", "@DataProvider\r\npublic Object[][] getData()\r\n{\n\tObject[][] data=new Object[3][3];\r\n\tdata[0][0]=\"1abcd\";\r\n\tdata[0][1]=\"1xyz\";\r\n\tdata[0][2]=\"1dsaf\";\r\n\t\r\n\t\r\n\tdata[1][0]=\"2abcd\";\r\n\tdata[1][1]=\"2xyz\";\r\n\tdata[1][2]=\"2dsaf\";\r\n\t\r\n\tdata[2][0]=\"3abcd\";\r\n\tdata[2][1]=\"3xyz\";\r\n\tdata[2][2]=\"3dsaf\";\r\n\t\r\n\t\r\n\t\r\n\t\r\n\treturn data;\r\n\t\r\n\t\r\n}", "@DataProvider\r\n public Object[][] testData() {\r\n\r\n return new Object[][]{\r\n {\"Hidden\", \"Archived\"},\r\n {\"Required\", \"Draft\"},\r\n {\"Hidden\", \"Public\"}\r\n };\r\n }", "@DataProvider(name=\"BookData\")\n public Object[][] getData()\n {\n\n return new Object[][] {{\"once\", \"1111\"},{\"twice\",\"2222\"},{\"thrice\",\"3333\"}};\n }", "@DataProvider\n public Object[][] getData()\n {\n\t Object[][] data=new Object[1][6];\n\t //0th row\n\t data[0][0]=\"Arun Raja\";\n\t data[0][1]=\"A\";\n\t data[0][2]=\"[email protected]\";\n\t data[0][3]=\"Test Lead\";\n\t data[0][4]=\"8971970444\";\n\t data[0][5]=\"Attra\";\n\t return data;\n }", "public static void populateData() {\n\n }", "DataFactory getDataFactory();", "@DataProvider(name = \"populateTestDataProvider\")\n public Object[][] populateTestDataProvider() {\n return new Object[][] { { true }, { false } };\n }", "@DataProvider(name=\"Unverified test data\")\n\t\n\tpublic String[][] getTestData()\n\t {\n\t\tlog.info(\"reading exceldata\");\n\t\tString[][] testRecords=getData(\"Other.xlsx\", \"Unverified\");\n\t\treturn testRecords;\n\t }", "@DataProvider\r\n\tpublic static Object[][] loginTestData() {\r\n\t\t\r\n\t\tIExcelDataManager edm = new AddMultEmpExcel(\"testdata/OHRMTestData-Priya.xlsx\", \"OHRM-New-Emp-Data\", \"NewEmpData\");\r\n\t\treturn edm.getData();\r\n\t\t\r\n\t\t// A new overload in case excel has only one sheet\r\n\t\t//tableToReturn = edm.getExcelData(\"filePath\" , \"tableName\");\r\n\t\t\r\n\t\t// tableToReturn.length ---- Gives us row count\r\n\t\t/*\r\n\t\tfor(int i=0;i<tableToReturn.length;i++)\r\n\t\t{\r\n\t\t\t//tableToReturn[0].length ---- Col count in 0th row\r\n\t\t\t//for(int j=0;j<tableToReturn[i].length;j++)\r\n\t\t\t//{\r\n\t\t\t\t\r\n\t\t\t\tif(tableToReturn[i][0]==null)\r\n\t\t\t\t\tFirstName = \"\";\r\n\t\t\t\telse \r\n\t\t\t\t\tFirstName= tableToReturn[i][0].toString();\r\n\t\t\t\t\r\n\t\t\t\tif(tableToReturn[i][1]==null)\r\n\t\t\t\t\tMiddleName = \"\";\r\n\t\t\t\telse \r\n\t\t\t\t\tMiddleName = tableToReturn[i][1].toString();\r\n\t\t\t\t\r\n\t\t\t\tif(tableToReturn[i][1]==null)\r\n\t\t\t\t\tLastName = \"\";\r\n\t\t\t\telse \r\n\t\t\t\t\tLastName = tableToReturn[i][1].toString();\r\n\t\t}\r\n\t\t*/\r\n\t\t\r\n\t}", "@DataProvider(name=\"testdata\")\n\tpublic Object[][] getData()\n\t{\t\n\t\tString projectPath = System.getProperty(\"user.dir\");\n\t\tObject[][] data= testData(projectPath+\"/excel/data.xlsx\", \"Sheet1\");\n\t\treturn data;\n\t}", "@Override\n public BaseDataProvider creatDataProvider() {\n return null;\n }", "private void createTestData(String lang) {\n CreateCallback<ShoppingList> callback = new CreateCallback<ShoppingList>() {\n @Override\n public void onSuccess(ShoppingList object) {\n //refresh data\n mainFragment.setShownShoppingListsToArchived(false);\n }\n\n @Override\n public void onFailure() {\n //not used here\n }\n };\n (new TestData()).createTestData(getContentResolver(), lang, callback);\n }", "@Test\n public void checkDataValue() {\n\n manager.getAllExpense(new DatabaseCallback() {\n @Override\n public void onDataLoaded(List<ExpenseEntity> lists) {\n assertEquals(lists.size(),2);\n }\n\n @Override\n public void onAdded() {\n\n }\n\n @Override\n public void onQueryAll() {\n\n }\n });\n\n }", "@Test\n @UseDataProvider(\"dataWithIncorrectDataType\")\n public void incorrectDataTypeInDataProvider(int executionCount, String string) {\n }", "@DataProvider(name = \"test1\")\n\tpublic Object[][] createData1() {\n\t return new Object[][] {\n\t { \"Cedric\", new Integer(36) },\n\t { \"Anne\", new Integer(37)},\n\t };\n\t}", "@Test (dataProvider=\"testdata\")\r\n\r\n\r\n\r\n\t //public void testAdd(Integer exp, Inputs i) {\r\n\r\n\t public void testAdd(Integer exp, int a, int b) {\n\r\n\t assertEquals( exp, (Integer) calci.add(a,b));\r\n\r\n\t //fail(\"expected exceotion didn't occur\");\r\n\r\n\t //assertTrue(false);\r\n\r\n\t }", "DataStore getDataStore ();", "@DataProvider\n public Object[][] correctData() {\n return new Object[][]{\n {\"nikol344265\", \"NikolR4551\"}\n };\n }", "@DataProvider ( name = \"AddressSaveOptionTestData\" )\r\n\t\r\n\tpublic static String[][] getAddressSaveOptionTestData(){\r\n\t\t\r\n\t\tString[][] AddressSaveOptionTestData;\r\n\t\t\r\n\t\tAddressSaveOptionTestData = TestDataInput.getMatchedInputTableRowsForApplCodeAndTestDataType(\r\n\t\tAddress.TestDataSheetName,\r\n\t\tTestApplicationParams.getCurrentTestApplication(),\r\n\t\t\"AddressSaveOptionTest\");\r\n\t\t\t\r\n\t\treturn (AddressSaveOptionTestData);\r\n\t\t\r\n\t}", "@DataProvider(name=\"Booksdata\")\n public Object[][] data()\n {\n\t return new Object[][] { {\"teste11\",\"011\"},{\"teset22\",\"022\"},{\"teset33\",\"033\"} };\n }", "void populateData();", "public interface DataProvider<T> {\n T getData(String key);\n}", "@Ignore\n\t\[email protected](dataProvider = \"dp\")\n\t\tprivate void dataProviderWithParameterKey(@ParameterKey(\"key_0\") String param_0, String param_1) {\n\t\t}", "@DataProvider\n\tpublic Object[][] Authentication() throws Exception {\n\t\tExcelUtils_3.setExcelFile(\"D:/Projects/Java Project/ActiTime_Project/src/TestNG_Example_15/TestData.xlsx\",\"Sheet1\");\t\t\n\t\tsTestCaseName = this.toString();\n\t\tSystem.out.println(\"sTestCaseName \" + sTestCaseName );\n\t\t// From above method we get long test case name including package and\n\t\t// class name etc.\n\n\t\t// The below method will refine your test case name, exactly the name\n\t\t// use have used\n\n\t\tsTestCaseName = ExcelUtils_3.getTestCaseName(sTestCaseName);\n\n\t\t// Fetching the Test Case row number from the Test Data Sheet\n\t\t// Getting the Test Case name to get the TestCase row from the Test Data\n\t\t// Excel sheet\n\n\t\tiTestCaseRow = ExcelUtils_3.getRowContains(sTestCaseName, 0);\n\n\t\tObject[][] testObjArray = ExcelUtils_3.getTableArray(\"D:/Projects/Java Project/ActiTime_Project/src/TestNG_Example_15/TestData.xlsx\",\"Sheet1\", iTestCaseRow);\n\n\t\treturn (testObjArray);\n\n\t}", "@Override\n\tpublic void saveTestingData() {\n\t\t\n\t}", "public ParcoursDataService() {\n this.repository = new JeeRepository();\n }", "@Test (dataProvider= \"My data provider\")\r\n\tpublic void TestCalcParamitarized(String in1,String Op, String in2,String Expec){ //.... 1- Parameterized test method -Define method input parameters-\r\n\t\tCalc(in1, Op, in2);\r\n\t\tassertResult(Expec);\t\t\r\n\t}", "private void initData(){\n\n }", "public interface BaseDataProvider {\n String FireFoxProfileFromComputer = \"firefox.profile\";\n String FireFoxLocationFromPC = \"firefox.location.from.pc\";\n String ChromeLocationFromPC = \"chrome.location.from.pc\";\n String LOOPME_BIZ = \"loopme.biz\";\n String propertiesFile = \"src/test/resources/TestData.properties\";\n String APACH_LOG = \"org.apache.commons.logging.Log\";\n String JDK_14_LOGGER = \"org.apache.commons.logging.impl.Jdk14Logger\";\n String SOUCELABS_SELENIUM_VERSION = \"selenium.version\";\n String SOUCELABS_FIREFOXE_VERSION = \"firefox.version\";\n String SOUCELABS_IE_VERSION = \"ie.version\";\n String SOUCELABS_OS_WINDOWS7_PLATFORM = \"os.windows7.platform\";\n String SOUCELABS_MACOS_PLATFORM = \"os.macos.platform\";\n String SOUCELABS_OPERA_VERSION = \"opera.version\";\n String SOUCELABS_SAFARI_VERSION = \"safari.version\";\n String BROWSER_SAFARI = \"safari\";\n String BROWSER_FIREFOX = \"firefox\";\n String BROWSER_CHROME = \"chrome\";\n String BROWSER_INTERNET_EXPLORER= \"ie\";\n\n}", "public void GetDataBaseData() {\n }", "protected void loadData()\n {\n }", "@DataProvider(name = \"data\")\n\tpublic Object[][] testDataSupplier() throws Exception {\n\t\tString filePath = \"C:\\\\Users\\\\rekha\\\\OneDrive\\\\Desktop\\\\CP- SAT\\\\Screenshot\\\\Rediffdata.xlsx\";\n\n\t\t// read excel file using file input stream, using Apache POI\n\t\tFileInputStream fis = new FileInputStream(new File(filePath));\n\t\tXSSFWorkbook wb = new XSSFWorkbook(fis);\n\t\tXSSFSheet sheet = wb.getSheet(\"Sheet1\");\n\n\t\t// calculate total number of rows and columns so that we can iterate over it.\n\t\tint totalNumberOfRows = sheet.getLastRowNum()+1 ;\n\t\tint totalNumberOfCols = sheet.getRow(0).getLastCellNum();\n\n\t\t// create an object array. which will store the test data from excel file\n\t\tObject[][] testdata1 = new Object[totalNumberOfRows][totalNumberOfCols];\n\n\t\tfor (int i = 1; i < totalNumberOfRows; i++) {\n\t\t\tfor (int j = 0; j < totalNumberOfCols; j++) {\n\n\t\t\t\ttestdata1[i][j] = sheet.getRow(i).getCell(j).toString();\n\t\t\t}\n\t\t}\n\t\treturn testdata1;\n\t}", "@Test\n public void testCSesionInicioxData2() {\n System.out.println(\"testCSesionInicioxData\");\n CSesion instance = new CSesion();\n DataProveedor TC = new DataProveedor(\"153\", \"tim123\", \"[email protected]\", \"Tim\", \"Cook\", new Date(60, 10, 1));\n instance.inicioSesion(TC);\n }", "DataProviders retrieveProviders() throws RepoxException;", "DataProviders retrieveProviders() throws RepoxException;", "void setDataProvider(AbstractDataProvider<WorkerDTO> provider);", "public interface loadDataService {\n public List<Row> getComboContent( String sType,String comboType, Map<String,String[]> parameterMap , usersInfo loggedUser) throws Exception;\n public Result getGridContent(PagingObject po, String gridType,Map<String,String[]> parameterMap,String searchText , usersInfo loggedUser,String statusID,String from,String where ) throws Exception;\n public List<listInfo> loadStrukturList(String partID,long langID) throws Exception;\n public finalInfo getOrgInfo(long treeID) throws Exception;\n public categoryFinalInfo getCategoryInfo(long treeID) throws Exception;\n public carriersInfo getCariesInfo(long carryID) throws Exception;\n public carriersInfo getOrganizationInfo(long carryID) throws Exception;\n public List<contact> getOrgContacts(long treeID) throws Exception;\n public person getEmployeeInfo( long empId) throws Exception;\n public List<examples> getExamplesInfo(long exmpID,String langID) throws Exception;\n public List<contact> getPersonContact(long perID) throws Exception;\n public List<docList> loadQRphoto(Connection con, long exmplID,long picType) throws Exception;\n public List<docList> loadPhoto(Connection con, long exmplID,long picType) throws Exception;\n public List<docList> getExamplesPictures(Connection cc, long relID, long relType) throws Exception;\n public List<examples> getExamplesOperation(Connection cc, long relID, long langID) throws Exception;\n public int checkUser(String uName) throws Exception;\n public int checkDictRecord(String text, int dictType,String org,String pos) throws Exception ;\n public usersInfo loadUserInfo(String pID) throws Exception;\n public List<person> loadEmpList( int OrgID) throws Exception;\n public List<Row> getSelectContent( String type, Map<String, String[]> parameterMap , usersInfo loggedUser) throws Exception;\n public List<subjElement> getADVSearchMenuList(String partID) throws Exception;\n public String getADVInfo(String paramID,String paramVal,String val,String cond,String typ)throws Exception;\n public List<listInfo> loadComboForAdvancedSearch(String prmID,long parametr) throws Exception;\n public List<docList> loadRightPanelPhoto(long realID, int iType) throws Exception;\n public List<categoryFinalInfo> getCategoryStructure(long catID, int id) throws Exception;\n}", "@Test\n public void getItemProvider()\n {\n assertNotNull(timeline.getItemProvider());\n }", "private void initData() {\n\n }", "private void addMockData() {\n League league1 = new League(\"1\", \"Premier League\");\n League league2 = new League(\"2\", \"La Liga\");\n League league3 = new League(\"3\", \"Bundesliga\");\n\n leagueList.add(league1);\n leagueList.add(league2);\n leagueList.add(league3);\n }", "PersistentDataHolder getDataHolder();", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "protected abstract void retrievedata();", "@Test\n public void testInsertData() throws Exception {\n//TODO: Test goes here... \n }", "public DatabeneFormatsTestDataProvider() {\n this.basePath = SystemInfo.getCurrentDir();\n }", "public interface DataAccessor {\n}", "public interface IXMLDataProvider {\r\n \r\n /**\r\n * Returns the root node of the XML file.\r\n * @return\tthe root node of the XML file\r\n * @throws TestDataException\tthrown, when parsing errors occur\r\n */\r\n public Node getRootNode() throws Exception;\r\n \r\n /**\r\n * Returns the number of XML data nodes matching the given node name\r\n * @param parent the parent node where to look for child nodes with the specified name\r\n * @param nodeName\tthe node name\r\n * @return\tthe number of nodes in the XML file\r\n * @throws TestDataException\tusually thrown when parsing errors occur\r\n */\r\n public int countNodesByName(Node parent, String nodeName) throws Exception;\r\n \r\n /**\r\n * Returns an array containing all nodes matching thi given node name\r\n * @param parent\tthe parent node where to look for nodes with the specified node name\r\n * @param nodeName\tthe name of the node\r\n * @return\tan array containing all node names, if there are no nodes matching the geven name, NULL is returned\r\n * @throws TestDataException\tusually thrown when parsing errors occur\r\n */\r\n public Node [] getNodesByName(Node parent, String nodeName) throws Exception;\r\n \r\n /**\r\n * Returns the node value of a given node.\r\n * @param node\tthe requested node\r\n * @return\ta string representing the node value\r\n * @throws TestDataException\tusually thrown when parsing errors occur\r\n */\r\n public String getNodeValue(Node node) throws Exception;\r\n \r\n \r\n /**\r\n * Returns the attribute value of a given attribute name within the provided node.\r\n * @param node\tthe node where to look for the attribute\r\n * @param attributeName\tthe name of the attribute to look for\r\n * @return\ta string representing the attribute value\r\n * @throws TestDataException\tusually thrown when parsing errors occur\r\n */\r\n public String getAttributeValue(Node node, String attributeName) throws Exception;\r\n \r\n public int getNumAttributes(Node node) throws Exception ;\r\n \r\n /**\r\n * Parses an XML file specified by the given file name.\r\n * @param fileName\tthe file name of the XML file\r\n * @throws TestDataException\tusually thrown when parsing errors occur\r\n */\r\n public void parse(String fileName) throws Exception;\r\n}", "public interface SomeDataService {\n\n\t// Dummy class to be used as mock interface with Mockito.\n\tint[] retrieveAllData();\n}", "public interface TDgapWsDailyStatProvider extends BaseProvider<TDgapWsDailyStat> {\n PageInfo<Map<String, Object>> list(Map<String, Object> params);\n\n public int stateDailyLog(Date time);\n\n public void testPageHelper();\n\n}", "@Test(dataProviderClass = DataproviderRegistration.class,\n dataProvider= \"RegistrationTestDataProvider\", enabled=true, description=\"Login\",groups={\"Smoke\"},priority=1)\n public void testWithDataProvider( String firstname,String middlename,String lastname,String countryname,\n String address,String phone,\n String currentEmail,\n String currentrepassword,\n String currentPassword) {\n Registration reg = new Registration(driver, firstname, middlename, lastname, countryname, address, phone, currentEmail,\n currentrepassword, currentPassword);\n reg.createScoutaccount();\n reg.createaccount();\n WebDriverWait wait = new WebDriverWait(driver, 10);\n wait.until(ExpectedConditions.urlToBe(\"http://ec2-52-53-181-39.us-west-1.compute.amazonaws.com/sign-in.html\"));\n Assert.assertEquals(driver.getCurrentUrl(), \"http://ec2-52-53-181-39.us-west-1.compute.amazonaws.com/sign-in.html\");\n Loginpage log1 = new Loginpage(driver, currentEmail, currentPassword);\n log1.clickLogin();\n WebDriverWait wait1 = new WebDriverWait(driver, 10);\n wait1.until(ExpectedConditions.urlToBe(\"http://ec2-52-53-181-39.us-west-1.compute.amazonaws.com/talents.html\"));\n Assert.assertEquals(driver.getCurrentUrl(), \"http://ec2-52-53-181-39.us-west-1.compute.amazonaws.com/talents.html\");\n }", "public interface DataProvider {\n /**\n * @param userName\n * @param password\n * @return Authenticated used.\n */\n User authenticate(String userName, String password);\n\n ArrayList<POI> getPois();\n}", "@Test(dataProvider = \"getData\") //dataProvider value should be equal to @DataProvider method name\r\n\tpublic void doLogin(String text) throws InterruptedException \r\n\t{\n\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"C://Automation//chromedriver_win32//chromedriver.exe\");\r\n\t\tdriver=new ChromeDriver();\r\n\r\n\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\r\n\t\tdriver.manage().window().maximize();\r\n\t\tdriver.get(\"http://www.google.com\");\r\n\t\tdriver.findElement(By.xpath(\"//input[@title='Search']\")).sendKeys(text);\r\n\t\tdriver.findElement(By.name(\"btnK\")).click();\r\n\t\tThread.sleep(7000);\r\n\t\tdriver.quit();\r\n\t}", "@Test(dataProvider = \"inputs\", dataProviderClass=TestData.class)\n\tpublic void testMethod(String firstName, String lastName, String age) {\n\t\tSystem.out.println(\"first name: \" + firstName);\n\t\tSystem.out.println(\"last name: \" + lastName);\n\t\tSystem.out.println(\"Age: \" + age);\n\t}", "public void InitData() {\n }", "public interface ITestDataAnalyzer {\n List<INameValue> getAllTestInputs();\n INameValue getTestInput(String name);\n List<INameValue> getAllExpectedValues();\n INameValue getExpectedValue(String name);\n List<TestValueResult> getValueResults(List<INameValue> actualValues);\n}", "@DataProvider()\n\tpublic Object[][] getData() {\n\t\t\n\t\treturn ConstantsArray.getArrayData();\n\t}", "@DataProvider(name = \"employee\")\n public Object[][] getEmployee() {\n return new Object[][] {{generateEmployee()}};\n }", "@Test\r\n public void UserServiceTest_RetrievePresenter()\r\n {\r\n UserService service = new UserService(); \r\n List<User> users = null;\r\n try {\r\n users = service.getPresenterList();\r\n } catch (SQLException e) {\r\n fail();\r\n System.out.println(e);\r\n } \r\n }", "@DataProvider(name = \"dataForTest\")\n public Object[][] dataForTest() throws URISyntaxException {\n final String FAILED_REDIRECT = \"https://www.freecodecamp.com/email-signin\";\n return new Object[][] {\n // postive test - correct email and pwd\n {\"\", \"\", \"Welcome to Free Code Camp.\",\n new URI(\"https://www.freecodecamp.com/\" + SUCCESS_SIGN_IN_URL_STRING) },\n // negative test - for null email and pwd\n {null, null, FAILED_TEXT, new URI(FAILED_REDIRECT)},\n // negative - empty string email and pwd\n {\"\", \"\", FAILED_TEXT, new URI(FAILED_REDIRECT)},\n // negative - non-empty wrong email and correct pwd\n {\"[email protected]\", \"\", FAILED_TEXT, new URI(FAILED_REDIRECT)},\n // negative - correct email and non-empty wrong pwd\n {\"\", \"123\", FAILED_REDIRECT, new URI(FAILED_REDIRECT)},\n // negative - correct email and wrong pwd with special characters\n {\"\", \":/?=&\", FAILED_REDIRECT, new URI(FAILED_REDIRECT)},\n };\n }", "InlineDataExample createInlineDataExample();", "public DataStoreTest( String testName )\n {\n super( testName );\n }", "@DataProvider ( name = \"CreditCardTestData\" )\r\n\t\r\n\tpublic static String[][] getTestDataForCreditCardValidations(){\r\n\t\t\r\n\t\tString[][] CreditCardCheckTestData ;\r\n\t\t\r\n\t\tCreditCardCheckTestData = TestDataInput.getMatchedInputTableRowsForApplCodeAndTestDataType(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tPaymentMethod.TestDataSheetName,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tTestApplicationParams.getCurrentTestApplication(),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"CreditCardTest\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t \t\t\r\n\t\treturn (CreditCardCheckTestData);\r\n\t\t\r\n\t}", "@Test\n\tpublic void testFetchResult_with_proper_data() {\n\t}", "@Test\n public void findAllEngineerPositions() {\n Map<String, String> employees = getEmployees();\n// Your code here\n }", "public void generateData()\n {\n }", "private static void createDemoData() {\n if (userManager.user_map.isEmpty() || accountManager.account_map.isEmpty() || banknoteManager.banknotes.isEmpty()) {\n if (userManager.user_map.isEmpty()) {\n userManager.createAccount(BankManager.class.getSimpleName(), \"jen\", \"1234\");\n userManager.createAccount(Teller.class.getSimpleName(), \"pete\", \"1234\");\n userManager.createAccount(Customer.class.getSimpleName(), \"steve\", \"1234\");\n }\n\n if (accountManager.account_map.isEmpty()) {\n accountManager.addAccount(CreditCard.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Youth.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Saving.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Chequing.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(CreditLine.class.getSimpleName(), Collections.singletonList(\"steve\"));\n }\n\n if (banknoteManager.banknotes.isEmpty()) {\n banknoteManager.banknotes = new HashMap<>();\n for (int d : banknoteManager.DENOMINATIONS) {\n banknoteManager.banknotes.put(String.valueOf(d), 50);\n }\n }\n }\n }", "public interface DBHelper {\n\n boolean insertUserData(String username);\n\n\n String getData();\n\n}", "public void testADDWithData() throws Exception {\n String data =\"Some words about Helen of Troy\";\n doAdd(data, null);\n }", "public interface DataSource {\r\n\t\r\n\tstatic final String FILE_PATH = \"plugins/DataManager/\";\r\n\t\r\n\tpublic void setup();\r\n\t\r\n\tpublic void close();\r\n\r\n\tpublic boolean set(String pluginKey, String dataKey, String data) ;\r\n\t\r\n\tpublic boolean set(String pluginKey, String dataKey, int data);\r\n\t\r\n\tpublic boolean set(String pluginKey, String dataKey, long data);\r\n\t\r\n\tpublic boolean set(String pluginKey, String dataKey, float data);\r\n\t\r\n\tpublic boolean set(String pluginKey, String dataKey, double data);\r\n\t\r\n\tpublic boolean set(String pluginKey, String dataKey, boolean data);\r\n\r\n\tpublic boolean set(String pluginKey, String dataKey, List<String> data);\r\n\t\r\n\tpublic Optional<String> getString(String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<Integer> getInt(String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<Long> getLong(String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<Float> getFloat(String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<Double> getDouble(String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<Boolean> getBoolean(String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<List<String>> getList(String pluginKey, String dataKey);\r\n\r\n\tpublic boolean set(UUID uuid, String pluginKey, String dataKey, String data) ;\r\n\t\r\n\tpublic boolean set(UUID uuid, String pluginKey, String dataKey, int data);\r\n\t\r\n\tpublic boolean set(UUID uuid, String pluginKey, String dataKey, long data);\r\n\t\r\n\tpublic boolean set(UUID uuid, String pluginKey, String dataKey, float data);\r\n\t\r\n\tpublic boolean set(UUID uuid, String pluginKey, String dataKey, double data);\r\n\t\r\n\tpublic boolean set(UUID uuid, String pluginKey, String dataKey, boolean data);\r\n\r\n\tpublic boolean set(UUID uuid, String pluginKey, String dataKey, List<String> data);\r\n\t\r\n\tpublic Optional<String> getString(UUID uuid, String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<Integer> getInt(UUID uuid, String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<Long> getLong(UUID uuid, String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<Float> getFloat(UUID uuid, String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<Double> getDouble(UUID uuid, String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<Boolean> getBoolean(UUID uuid, String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<List<String>> getList(UUID uuid, String pluginKey, String dataKey);\r\n\t\r\n\tpublic boolean addGroup(String group, String pluginKey);\r\n\t\r\n\tpublic boolean deleteGroup(String group, String pluginKey);\r\n\t\r\n\tpublic boolean isGroup(String group, String pluginKey);\r\n\t\r\n\tpublic boolean addMember(UUID uuid, String group, String pluginKey);\r\n\t\r\n\tpublic boolean removeMember(UUID uuid, String group, String pluginKey);\r\n\t\r\n\tpublic boolean isMember(UUID uuid, String group, String pluginKey);\r\n\t\r\n\tpublic Optional<List<UUID>> getMemberIDs(String group, String pluginKey);\r\n\t\r\n\tpublic List<String> getGroups(String pluginKey);\r\n\t\r\n\tpublic List<String> getGroups(UUID uuid, String pluginKey);\r\n\t\r\n\tpublic boolean set(String group, String pluginKey, String dataKey, String data);\r\n\t\r\n\tpublic boolean set(String group, String pluginKey, String dataKey, int data);\r\n\t\r\n\tpublic boolean set(String group, String pluginKey, String dataKey, long data);\r\n\t\r\n\tpublic boolean set(String group, String pluginKey, String dataKey, float data);\r\n\t\r\n\tpublic boolean set(String group, String pluginKey, String dataKey, double data);\r\n\t\r\n\tpublic boolean set(String group, String pluginKey, String dataKey, boolean data);\r\n\r\n\tpublic boolean set(String group, String pluginKey, String dataKey, List<String> data);\r\n\t\r\n\tpublic Optional<String> getString(String group, String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<Integer> getInt(String group, String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<Long> getLong(String group, String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<Float> getFloat(String group, String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<Double> getDouble(String group, String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<Boolean> getBoolean(String group, String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<List<String>> getList(String group, String pluginKey, String dataKey);\r\n\r\n\tpublic boolean set(UUID uuid, String group, String pluginKey, String dataKey, String data) ;\r\n\t\r\n\tpublic boolean set(UUID uuid, String group, String pluginKey, String dataKey, int data);\r\n\t\r\n\tpublic boolean set(UUID uuid, String group, String pluginKey, String dataKey, long data);\r\n\t\r\n\tpublic boolean set(UUID uuid, String group, String pluginKey, String dataKey, float data);\r\n\t\r\n\tpublic boolean set(UUID uuid, String group, String pluginKey, String dataKey, double data);\r\n\t\r\n\tpublic boolean set(UUID uuid, String group, String pluginKey, String dataKey, boolean data);\r\n\r\n\tpublic boolean set(UUID uuid, String group, String pluginKey, String dataKey, List<String> data);\r\n\t\r\n\tpublic Optional<String> getString(UUID uuid, String group, String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<Integer> getInt(UUID uuid, String group, String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<Long> getLong(UUID uuid, String group, String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<Float> getFloat(UUID uuid, String group, String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<Double> getDouble(UUID uuid, String group, String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<Boolean> getBoolean(UUID uuid, String group, String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<List<String>> getList(UUID uuid, String group, String pluginKey, String dataKey);\r\n\r\n}", "public interface HelperDataManager {\n\n\t/**\n\t * add data to the workingset.\n\t * \n\t * @param data\n\t */\n\tpublic void putData(HelperData data);\n\n\t/**\n\t * retrieve data of the given type, or null if not available.\n\t * \n\t * @param type\n\t * the type of the data to retrieve\n\t * @return the data\n\t */\n\tpublic Data getData(HelperDataType type);\n\n\t/**\n\t * @return all the {@link HelperDataType}s for which data is available\n\t */\n\tpublic List<HelperDataType> getDataTypes();\n\n\t/**\n\t * sets the data of tyhe given type as active one.\n\t * \n\t * @param dataType\n\t */\n\tpublic void setActiveHelperData(HelperDataType dataType);\n\t\n\t/**\n\t * @return the actually active Helper-Data\n\t */\n\tpublic Data getActiveHelperData();\n\t\n\t/**\n\t * adds a listener\n\t * \n\t * @param listener\n\t * the listener to add\n\t */\n\tpublic void addListener(HelperDataManagerListener listener);\n\n\t/**\n\t * removes a listener\n\t * \n\t * @param listener\n\t * the listener to remove\n\t */\n\tpublic void removeListener(HelperDataManagerListener listener);\n}", "public WebRowSetDataProvider() {\n }", "@Test\n public void NewDataAvailableTest() {\n String vatNumber = \"vatNumber\";\n Date birthDate = new Date(000000000);\n String fiscalCode = \"fiscalCodeTest00\";\n String password = \"password\";\n Individual individual = new Individual(fiscalCode, \"name\", \"surname\", password, birthDate, 40.5f, 10.0f);\n userController.addIndividual(individual);\n ThirdParty thirdParty = new ThirdParty(vatNumber,\"thirdParty\", password);\n userController.addThirdParty(thirdParty);\n thirdPartyService.addIndividualRequest(thirdParty, individual, true);\n IndividualData individualData = new IndividualData(new Date(00000000), 60f ,120f ,150f ,50f );\n List individualDataList= new ArrayList();\n individualDataList.add(individualData);\n individualData.setIndividual(individual);\n individualService.saveData(individualDataList);\n\n assertEquals(thirdPartyService.getNewDataNotificationList(thirdParty,individual).size(),1);\n }", "@Before\r\n\tpublic void setUp() throws Exception {\r\n\r\n\t\tpd = new PreparedData();\r\n\r\n\t}", "private void addSampleData() {\r\n }", "public interface CodDataService {\n\n /**\n * 获取配置\n * @return 全部配置\n */\n Map<String, String> getConfig();\n\n /**\n * 获取数据\n */\n String getDataValue(String key);\n\n /**\n *\n * @param key\n * @return\n */\n CodDataConfigDto getData(String key);\n\n\n /**\n * 设置数据\n * @param key key\n * @param value value\n */\n void setData(String key, String value);\n\n /**\n * 设置数据\n * @param key key\n * @param value value\n * @param name 配置名称\n */\n void setData(String key, String value, String name);\n\n /**\n * 设置数据\n * @param key key\n * @param value value\n * @param name 配置名称\n * @param sort 序号\n */\n void setData(String key, String value, String name, String sort);\n\n /**\n * 设置数据\n * @param key key\n * @param value value\n * @param name 配置名称\n * @param sort 序号\n * @param desc 描述\n */\n void setData(String key, String value, String name, String desc, String sort);\n\n /**\n * 删除\n * @param key key\n */\n void delete(String key);\n\n}", "@Test\n\tpublic void testfindTheGreaatestFromAllData() {\n\t\twhen(dataServiceMock.retrieveAllData()).thenReturn(new int[] { 1, 2, 3 });\n\t\t// SomeBusinessImpl impl = new SomeBusinessImpl(dataServiceMock);\n\t\tassertEquals(impl.findTheGreaatestFromAllData(), 3);\n\t}", "@Test\n public void shouldProcessData() throws Exception {\n }", "@Ignore\n\t\[email protected](dataProvider = \"dp\")\n\t\tprivate void dataProviderWithoutKey(String param_0, String param_1) {\n\t\t}", "@DDDataProvider(datafile = \"testdata/Team3Search and Sort.xlsx\", sheetName = \"SearchItem\", testcaseID = \"\", runmode = \"No\")\n@Test(dataProvider = \"dd-dataprovider\", dataProviderClass = TestUtil.class)\n\npublic void TC_SearchProductwithInValiddata(Hashtable<String, String> datatable) throws InterruptedException, UnsupportedEncodingException, GeneralSecurityException{\n\tSearchPage searchpage = new SearchPage(driver);\n\tExtentTest Obj = ExtentTestManager.getTest();\n\t\n\tExtentTestManager.getTest().log(Status.PASS, \"Testcase 1 : Search for the product with Invalid data\");\n\tLoginPage loginPage = new LoginPage(driver);\n\tExtentTestManager.getTest().log(Status.PASS, \"Step 1 : Successfully singed in with Valid credentials\");\n\tloginPage.login(datatable.get(\"UserName\"), Base64.decrypt(datatable.get(\"Password\")));\n\tThread.sleep(1000);\n\t\n\tString searchvalue =datatable.get(\"ProductName\");\n\tsearchpage.getSearchBar().sendKeys(searchvalue);\n\tExtentTestManager.getTest().log(Status.PASS, \"Step 2 : Successfully entered \" +searchvalue+ \" in the search bar\");\n\t\n\tsearchpage.getsearchBtn().click();\n\tExtentTestManager.getTest().log(Status.PASS, \"Step 3 : Successfully clicked on the search button\");\n\tThread.sleep(500);\n\t\t\n\tExtentTestManager.getTest().log(Status.PASS, \"Step 4 : User entered invalid data: \" + searchpage.getnoDataFoundMsg().getText() + \".\");\n\t\n\t\n\t\t\t\n}", "public final void testGetUserData() {\n assertEquals(hello.userData, n.getUserData());\n }", "@DataProvider\n private Object[][] provideForTestCanDecode() {\n return new Object[][] {\n { TEST_FILE1, true },\n { TEST_FILE2, true },\n { TEST_FILE_NO_CONFIG, false },\n };\n }", "@Test\n public void dataVersionTest() {\n // TODO: test dataVersion\n }", "@Test(priority=1, dataProvider = \"dp\", timeOut=5000, invocationCount=10)\n\tpublic void loginDataProvider(String n, String s) {\n\t\t//\n\t}", "private void initData() {\n }", "@Test\n public void testGetAnalyzedData() {\n System.out.println(\"getAnalyzedData\");\n \n }", "public void initData() {\n }", "public void initData() {\n }", "protected @Override\r\n abstract void initData();", "DataModel createDataModel();", "public void initData(){\r\n \r\n }", "@Override\n\tpublic void getData() {\n\t\t\n\t}", "private void InitData() {\n\t}", "@Test\n public void testQueryList(){\n }", "@Test\n public void testInsertDataWSSuccess() {\n try {\n \tProviderDAO providerDAO = new ProviderDAOImpl();\n \tProvider provider = new Provider();\n \tPersonDAO personDAO = new PersonDAOImpl();\n \tPerson person = new Person();\n \tperson = personDAO.getPersonById(\"1\");\n \tprovider = providerDAO.getProviderByPerson(person);\n \tString retVal = providerDAO.insertDataWS(provider);\n \t\n \tif (retVal != null) {\n \t\tAssert.assertTrue(true);\n \t\tSystem.out.println(\"[testInsertDataWSSuccess] - \" + retVal);\n \t} else {\n \t\tAssert.assertTrue(false);\n \t}\n\n } catch (Exception e) {\n Assert.assertFalse(false);\n }\n }", "@DataProvider(name=\"dataset\")\r\n\tpublic static Object[][] getdata() throws IOException{\r\n\t\tObject [][] ob= new IO().getdataset(\"./dataset.csv\");\t\r\n\treturn ob;\r\n\t}" ]
[ "0.6898096", "0.6889451", "0.6735876", "0.6704479", "0.6684681", "0.6673519", "0.6590674", "0.65790355", "0.6549763", "0.6497317", "0.6469336", "0.64678746", "0.6439686", "0.6429753", "0.6366909", "0.6350328", "0.6343701", "0.6285762", "0.62525785", "0.6213626", "0.6203615", "0.6118809", "0.60914415", "0.6090584", "0.60767996", "0.60278535", "0.60185504", "0.6005838", "0.5978693", "0.5949274", "0.5948762", "0.594413", "0.59154797", "0.5909975", "0.5907002", "0.5896634", "0.5878572", "0.58718336", "0.58704126", "0.5868734", "0.5868734", "0.5854074", "0.58465743", "0.5831049", "0.5825504", "0.5812731", "0.58114535", "0.5795323", "0.57917947", "0.57846653", "0.5780328", "0.5779384", "0.5777522", "0.57622135", "0.5758891", "0.5753552", "0.57499886", "0.57487565", "0.57470775", "0.57441807", "0.57433504", "0.572577", "0.57232165", "0.57161903", "0.57025063", "0.56992286", "0.5696126", "0.56921995", "0.5687929", "0.56835693", "0.5678349", "0.5676433", "0.5671908", "0.56684107", "0.56654537", "0.5661762", "0.5660842", "0.56593186", "0.56580013", "0.565739", "0.5656859", "0.5640657", "0.5638376", "0.56337625", "0.5632469", "0.563198", "0.5629978", "0.562871", "0.5623908", "0.5621214", "0.5613211", "0.5606293", "0.5606293", "0.5600109", "0.55995387", "0.55992496", "0.55890244", "0.5583801", "0.5574861", "0.5569978", "0.5560983" ]
0.0
-1
ExStart ExFor:HtmlLoadOptions.BlockImportMode ExFor:BlockImportMode ExSummary:Shows how properties of blocklevel elements are imported from HTMLbased documents.
@Test (dataProvider = "blockImportDataProvider") public void blockImport(/*BlockImportMode*/int blockImportMode) throws Exception { final String HTML = "\n <html>\n <div style='border:dotted'>\n <div style='border:solid'>\n <p>paragraph 1</p>\n <p>paragraph 2</p>\n </div>\n </div>\n </html>"; MemoryStream stream = new MemoryStream(Encoding.getUTF8().getBytes(HTML)); HtmlLoadOptions loadOptions = new HtmlLoadOptions(); // Set the new mode of import HTML block-level elements. loadOptions.setBlockImportMode(blockImportMode); Document doc = new Document(stream, loadOptions); doc.save(getArtifactsDir() + "HtmlLoadOptions.BlockImport.docx"); //ExEnd }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public HTMLBlock parse () throws HTMLParseException {\r\n block = new HTMLBlock (pagepart, length);\r\n nextToken = START;\r\n match (START);\r\n page ();\r\n\r\n return block;\r\n }", "@DataProvider(name = \"blockImportDataProvider\")\r\n\tpublic static Object[][] blockImportDataProvider() throws Exception\r\n\t{\r\n\t\treturn new Object[][]\r\n\t\t{\r\n\t\t\t{BlockImportMode.PRESERVE},\r\n\t\t\t{BlockImportMode.MERGE},\r\n\t\t};\r\n\t}", "void importSubsystem() {\n\t\t//Update attributes of target subsystem//\r\n\t\t/////////////////////////////////////////\r\n\t\tblockElementInto.setAttribute(\"Name\", blockElementFrom.getAttribute(\"Name\"));\r\n\t\tblockElementInto.setAttribute(\"Descriptions\", blockElementFrom.getAttribute(\"Descriptions\"));\r\n\t}", "@Test(groups = { \"tree\" })\n\tpublic void testLoadViaInlineHtml() throws Exception {\n\t\t\tstartupTest(\"treeLoadViaInlineHtml.html\",null);\n\n\t\t\t//Verify the url\n\t\t\tString url = getBrowserUrl();\n\t\t\tlog(\"URL##########\"+ url);\n\n\t\t\t// Verify if the title of the page is correct\n\t\t\tverifyTitle(\"Incorrect page title;\", TITLE_INLINEHTML);\n\t\t\tcheckPageContent(TITLE_INLINEHTML);\n\n\t\t\t//Find the tree element\n\t\t\tWebElement tree = getElement(\"id=tree\");\n\t\t\tlog(\"Found Element for id=tree \" + tree.toString());\n\n\t\t\tcommonLoadTestForHtml();\n\n }", "public void importDocument(Import bpelImport) {\n \tString importType = bpelImport.getImportType();\n \tLazyImportVisitorService vService = (LazyImportVisitorService) getVisitorService();\n \tBPELParseContext bpelParseContext = vService.getBPELParseContext();\n \t\n \tif(Import.WSDL_IMPORT_TYPE.equals(importType) && bpelParseContext.isLoadImportedWsdls()) {\n \t\timportWSDLDocument(bpelImport);\n \t} else if(Import.XSD_IMPORT_TYPE.equals(importType) && bpelParseContext.isLoadImportedXsds()) {\n \t\timportXMLSchema(bpelImport);\n \t} else {\n \t\tthrow new XMLParseVisitorException(\"importType \"+ importType + \"is not a valid value in \"+ bpelImport + \"It should be either \"+ Import.WSDL_IMPORT_TYPE + \" or \"+ Import.XSD_IMPORT_TYPE );\n \t}\n }", "@DOMSupport(DomLevel.TWO)\r\n @BrowserSupport({BrowserType.FIREFOX_1P, BrowserType.OPERA_7P})\r\n @Function Node importNode(Node importedNode, boolean deep);", "public ImportSectionElements getImportSectionAccess() {\r\n\t\treturn pImportSection;\r\n\t}", "public static void writeBlocks(Element element, PrintWriter writer){\n int concl = 0;\n String type = element.getElementsByTag(\"h3\").first().text().split(\" \")[0];\n System.out.print(\" Parsing \" + type + \"s: \");\n for (Element block: element.select(\"ul.blockList,ul.blockListLast > li.blockList\")){\n if (type.equals(\"Field\")) concl += writeField(block, writer);\n else concl += writeMethod(block, writer);\n }\n if (concl == 0) System.out.println(\"Success\");\n else System.out.println(\"Failure\");\n }", "static boolean Import(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"Import\")) return false;\n if (!nextTokenIs(b, K_IMPORT)) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = SchemaImport(b, l + 1);\n if (!r) r = ModuleImport(b, l + 1);\n exit_section_(b, m, null, r);\n return r;\n }", "org.hyperledger.fabric.protos.token.Transaction.PlainImport getPlainImport();", "@Override\n public CssDeclarationBlockNode getBlock() {\n return (CssDeclarationBlockNode) super.getBlock();\n }", "@Test\n public void testORMUsageToretrieveBlocks() throws DataloadGeneratorException {\n List<BlockDefEntityWrap> tbsBlockEntity = getTbsBlockEntity();\n// System.out.println(\"BlockDiagCodeMappingTEntity - \" + tbsBlockSaved);\n System.out.println(\"BlockDefTEntity - \" + tbsBlockEntity);\n// assertNotNull(tbsBlockSaved);\n }", "public static void test () {\n \n System.out.println (\"Testing TextBlock\");\n TextBlock block1 = new TextBlock();\n block1.startBlockOut (\"tester\");\n block1.addField (\"Name\", \"Herb Bowie\");\n block1.addField (\"Address\", \"10557 E. Mercer Lane\\nScottsdale, AZ 85259\", \"\");\n block1.addField (\"Phone\", \"480-451-9732\", \"\");\n block1.endBlockOut();\n ArrayList labelList = new ArrayList (block1.getLabels());\n System.out.println (block1.toString());\n TextBlock block2 = new TextBlock (block1.toString());\n block2.startBlockIn (\"tester\", labelList);\n boolean anotherField = false;\n do {\n anotherField = block2.findNextField();\n if (anotherField) {\n System.out.println (\"Label = \" + block2.getNextLabel());\n System.out.println (\"Field = \" + block2.getNextField());\n }\n } while (! block2.endOfBlock());\n }", "@Test\n public void fieldAddressBlock() throws Exception {\n Document doc = new Document();\n DocumentBuilder builder = new DocumentBuilder(doc);\n\n FieldAddressBlock field = (FieldAddressBlock) builder.insertField(FieldType.FIELD_ADDRESS_BLOCK, true);\n\n Assert.assertEquals(\" ADDRESSBLOCK \", field.getFieldCode());\n\n // Setting this to \"2\" will include all countries and regions,\n // unless it is the one specified in the ExcludedCountryOrRegionName property.\n field.setIncludeCountryOrRegionName(\"2\");\n field.setFormatAddressOnCountryOrRegion(true);\n field.setExcludedCountryOrRegionName(\"United States\");\n field.setNameAndAddressFormat(\"<Title> <Forename> <Surname> <Address Line 1> <Region> <Postcode> <Country>\");\n\n // By default, this property will contain the language ID of the first character of the document.\n // We can set a different culture for the field to format the result with like this.\n field.setLanguageId(\"1033\");\n\n Assert.assertEquals(\n \" ADDRESSBLOCK \\\\c 2 \\\\d \\\\e \\\"United States\\\" \\\\f \\\"<Title> <Forename> <Surname> <Address Line 1> <Region> <Postcode> <Country>\\\" \\\\l 1033\",\n field.getFieldCode());\n //ExEnd\n\n doc = DocumentHelper.saveOpen(doc);\n field = (FieldAddressBlock) doc.getRange().getFields().get(0);\n\n TestUtil.verifyField(FieldType.FIELD_ADDRESS_BLOCK,\n \" ADDRESSBLOCK \\\\c 2 \\\\d \\\\e \\\"United States\\\" \\\\f \\\"<Title> <Forename> <Surname> <Address Line 1> <Region> <Postcode> <Country>\\\" \\\\l 1033\",\n \"«AddressBlock»\", field);\n Assert.assertEquals(\"2\", field.getIncludeCountryOrRegionName());\n Assert.assertEquals(true, field.getFormatAddressOnCountryOrRegion());\n Assert.assertEquals(\"United States\", field.getExcludedCountryOrRegionName());\n Assert.assertEquals(\"<Title> <Forename> <Surname> <Address Line 1> <Region> <Postcode> <Country>\",\n field.getNameAndAddressFormat());\n Assert.assertEquals(\"1033\", field.getLanguageId());\n }", "@Test\n public void test075() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Block block0 = (Block)errorPage0.script();\n }", "@Test\n\tpublic void testBlock() throws ParseException {\n\t\tBlock block = parser(\"foo <%=666%> bar\").block();\n\t\tassertEquals(block.getLocation().getColumn(), 1);\n\t\tassertEquals(block.getLocation().getLine(), 1);\n\t\tassertEquals(block.getExpressions().size(), 3);\n\t\tassertEquals(block.getExpressions().get(0).getClass(), StringLiteral.class);\n\t\tassertEquals(((StringLiteral) block.getExpressions().get(0)).getValue(), \"foo \");\n\t\tassertEquals(block.getExpressions().get(1).getClass(), LongLiteral.class);\n\t\tassertEquals(((LongLiteral) block.getExpressions().get(1)).longValue(), 666L);\n\t\tassertEquals(block.getExpressions().get(2).getClass(), StringLiteral.class);\n\t\tassertEquals(((StringLiteral) block.getExpressions().get(2)).getValue(), \" bar\");\n\t}", "public static String insertBlock(String base_html, String delimiter, String block){\r\n delimiter = \"<!--\" + delimiter + \"-->\"; \r\n String[] parts = base_html.split(delimiter);\r\n String new_html = parts[0] + block + parts[2];\r\n return new_html;\r\n }", "@Test\n \tpublic void testListAndHeaderInBlockquote() throws IOException{\n \t\tString testString = \"> * Item 1\\n> * Item 2\\n> 1. #### SubItem 2a\\n> 2. SubItem 2b\\n> ``` r\\n> Then a code block!\\n> ```\";\n \t\tString actualResult = processor.markdown2Html(testString, false);\n\t\tString expectedResult = \"<blockquote>\\n <ul>\\n <li>Item 1</li>\\n <ul>\\n <li>Item 2</li>\\n <ol>\\n <li><h4 id=\\\"synapseheading0\\\" level=\\\"h4\\\" toc-style=\\\"toc-indent0\\\">SubItem 2a</h4></li>\\n <li>SubItem 2b</li>\\n </ol>\\n </ul>\\n </ul>\\n <pre><code class=\\\"r\\\">Then a code block!</code></pre>\\n <br /> \\n </blockquote>\";\n\t\tassertTrue(actualResult.contains(expectedResult));\n \t}", "public boolean renderAsNormalBlock() {\n\t\treturn false;\n\t}", "public boolean renderAsNormalBlock() {\n\t\treturn false;\n\t}", "public boolean renderAsNormalBlock() {\n\t\treturn false;\n\t}", "public boolean renderAsNormalBlock() {\n\t\treturn false;\n\t}", "public OutlookAttachmentBlockLevel getBlockLevel()\n {\n return getConstant(\"BlockLevel\", OutlookAttachmentBlockLevel.class);\n }", "public int getRenderBlockPass(){\r\n return 1;\r\n }", "@Test\n public void test026() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Block block0 = (Block)errorPage0.strong();\n }", "public final EObject ruleComplexTypeImport() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_0=null;\n Token otherlv_1=null;\n Token otherlv_2=null;\n Token lv_importURI_3_0=null;\n Token otherlv_4=null;\n Token lv_name_5_0=null;\n\n\n \tenterRule();\n\n try {\n // InternalMappingDsl.g:5386:2: ( (otherlv_0= 'import' otherlv_1= 'datatypes' otherlv_2= 'from' ( (lv_importURI_3_0= RULE_STRING ) ) otherlv_4= 'as' ( (lv_name_5_0= RULE_ID ) ) ) )\n // InternalMappingDsl.g:5387:2: (otherlv_0= 'import' otherlv_1= 'datatypes' otherlv_2= 'from' ( (lv_importURI_3_0= RULE_STRING ) ) otherlv_4= 'as' ( (lv_name_5_0= RULE_ID ) ) )\n {\n // InternalMappingDsl.g:5387:2: (otherlv_0= 'import' otherlv_1= 'datatypes' otherlv_2= 'from' ( (lv_importURI_3_0= RULE_STRING ) ) otherlv_4= 'as' ( (lv_name_5_0= RULE_ID ) ) )\n // InternalMappingDsl.g:5388:3: otherlv_0= 'import' otherlv_1= 'datatypes' otherlv_2= 'from' ( (lv_importURI_3_0= RULE_STRING ) ) otherlv_4= 'as' ( (lv_name_5_0= RULE_ID ) )\n {\n otherlv_0=(Token)match(input,35,FOLLOW_102); \n\n \t\t\tnewLeafNode(otherlv_0, grammarAccess.getComplexTypeImportAccess().getImportKeyword_0());\n \t\t\n otherlv_1=(Token)match(input,70,FOLLOW_46); \n\n \t\t\tnewLeafNode(otherlv_1, grammarAccess.getComplexTypeImportAccess().getDatatypesKeyword_1());\n \t\t\n otherlv_2=(Token)match(input,36,FOLLOW_41); \n\n \t\t\tnewLeafNode(otherlv_2, grammarAccess.getComplexTypeImportAccess().getFromKeyword_2());\n \t\t\n // InternalMappingDsl.g:5400:3: ( (lv_importURI_3_0= RULE_STRING ) )\n // InternalMappingDsl.g:5401:4: (lv_importURI_3_0= RULE_STRING )\n {\n // InternalMappingDsl.g:5401:4: (lv_importURI_3_0= RULE_STRING )\n // InternalMappingDsl.g:5402:5: lv_importURI_3_0= RULE_STRING\n {\n lv_importURI_3_0=(Token)match(input,RULE_STRING,FOLLOW_47); \n\n \t\t\t\t\tnewLeafNode(lv_importURI_3_0, grammarAccess.getComplexTypeImportAccess().getImportURISTRINGTerminalRuleCall_3_0());\n \t\t\t\t\n\n \t\t\t\t\tif (current==null) {\n \t\t\t\t\t\tcurrent = createModelElement(grammarAccess.getComplexTypeImportRule());\n \t\t\t\t\t}\n \t\t\t\t\tsetWithLastConsumed(\n \t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\"importURI\",\n \t\t\t\t\t\tlv_importURI_3_0,\n \t\t\t\t\t\t\"org.eclipse.xtext.common.Terminals.STRING\");\n \t\t\t\t\n\n }\n\n\n }\n\n otherlv_4=(Token)match(input,37,FOLLOW_7); \n\n \t\t\tnewLeafNode(otherlv_4, grammarAccess.getComplexTypeImportAccess().getAsKeyword_4());\n \t\t\n // InternalMappingDsl.g:5422:3: ( (lv_name_5_0= RULE_ID ) )\n // InternalMappingDsl.g:5423:4: (lv_name_5_0= RULE_ID )\n {\n // InternalMappingDsl.g:5423:4: (lv_name_5_0= RULE_ID )\n // InternalMappingDsl.g:5424:5: lv_name_5_0= RULE_ID\n {\n lv_name_5_0=(Token)match(input,RULE_ID,FOLLOW_2); \n\n \t\t\t\t\tnewLeafNode(lv_name_5_0, grammarAccess.getComplexTypeImportAccess().getNameIDTerminalRuleCall_5_0());\n \t\t\t\t\n\n \t\t\t\t\tif (current==null) {\n \t\t\t\t\t\tcurrent = createModelElement(grammarAccess.getComplexTypeImportRule());\n \t\t\t\t\t}\n \t\t\t\t\tsetWithLastConsumed(\n \t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\"name\",\n \t\t\t\t\t\tlv_name_5_0,\n \t\t\t\t\t\t\"org.eclipse.xtext.common.Terminals.ID\");\n \t\t\t\t\n\n }\n\n\n }\n\n\n }\n\n\n }\n\n\n \tleaveRule();\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "public static void registerBlockEntities()\n\t{\n\t}", "private void textilizeNonBlankLine () {\n StringBuffer blockMod = new StringBuffer();\n int startPosition = 0;\n int textPosition = 0;\n leftParenPartOfURL = false;\n attributeType = 0;\n klass = new StringBuffer();\n id = new StringBuffer();\n style = new StringBuffer();\n language = new StringBuffer();\n String imageTitle = \"\";\n String imageURL = \"\";\n int endOfImageURL = -1;\n boolean doublePeriod = false;\n int periodPosition = line.indexOf (\".\");\n if (periodPosition >= 0) {\n textPosition = periodPosition + 1;\n if (textPosition < line.length()) {\n if (line.charAt (textPosition) == '.') {\n doublePeriod = true;\n textPosition++;\n }\n if (textPosition < line.length()\n && line.charAt (textPosition) == ' ') {\n textPosition++;\n textIndex = 0;\n while (textIndex < periodPosition\n && (Character.isLetterOrDigit (textChar()))) {\n blockMod.append (textChar());\n textIndex++;\n } // end while more letters and digits\n if (blockMod.toString().equals (\"p\")\n || blockMod.toString().equals (\"bq\")\n || blockMod.toString().equals (\"h1\")\n || blockMod.toString().equals (\"h2\")\n || blockMod.toString().equals (\"h3\")\n || blockMod.toString().equals (\"h4\")\n || blockMod.toString().equals (\"h5\")\n || blockMod.toString().equals (\"h6\")) {\n // look for attributes\n collectAttributes (periodPosition);\n } else {\n blockMod = new StringBuffer();\n textPosition = 0;\n }\n } // end if space follows period(s)\n } // end if not end of line following first period\n } // end if period found\n\n // Start processing at the beginning of the line\n textIndex = 0;\n\n // If we have a block modifier, then generate appropriate HTML\n if (blockMod.length() > 0) {\n lineDelete (textPosition);\n closeOpenBlockQuote();\n closeOpenBlock();\n doLists();\n if (blockMod.toString().equals (\"bq\")) {\n lineInsert (\"<blockquote><p\");\n context.blockQuoting = true;\n } else {\n lineInsert (\"<\" + blockMod.toString());\n }\n if (klass.length() > 0) {\n lineInsert (\" class=\\\"\" + klass.toString() + \"\\\"\");\n }\n lineInsert (\">\");\n if (doublePeriod) {\n context.nextBlock = blockMod.toString();\n } else {\n context.nextBlock = \"p\";\n }\n }\n\n // See if line starts with one or more list characters\n if (blockMod.length() <= 0) {\n while (textIndex < line.length()\n && (textChar() == '*'\n || textChar() == '#'\n || textChar() == ';')) {\n listChars.append (textChar());\n textIndex++;\n }\n if (listChars.length() > 0\n && (textIndex >= line.length()\n || ((! Character.isWhitespace (textChar()))\n && (textChar() != '(')))) {\n listChars = new StringBuffer();\n textIndex = 0;\n }\n int firstSpace = line.indexOf (\" \", textIndex);\n if (listChars.length() > 0) {\n collectAttributes (firstSpace);\n }\n }\n int endDelete = textIndex;\n if (endDelete < line.length()\n && Character.isWhitespace (line.charAt (endDelete))) {\n endDelete++;\n }\n\n if (listChars.length() > 0) {\n lineDelete (0, endDelete);\n }\n doLists();\n if (listChars.length() > 0\n && listChars.charAt(listChars.length() - 1) == ';') {\n lastDefChar = ';';\n } else {\n lastDefChar = ' ';\n }\n\n // See if this line contains a link alias\n if ((blockMod.length() <= 0)\n && ((line.length() - textIndex) >= 4)\n && (textChar() == '[')) {\n int rightBracketIndex = line.indexOf (\"]\", textIndex);\n if (rightBracketIndex > (textIndex + 1)) {\n linkAlias = true;\n String alias = line.substring (textIndex + 1, rightBracketIndex);\n String url = line.substring (rightBracketIndex + 1);\n lineDelete (line.length() - textIndex);\n lineInsert (\"<a alias=\\\"\" + alias + \"\\\" href=\\\"\" + url + \"\\\"> </a>\");\n }\n }\n\n // If no other instructions, use default start for a new line\n if (blockMod.length() <= 0 \n && listChars.length() <= 0\n & (! linkAlias)) {\n // This non-blank line does not start with a block modifier or a list char\n if (context.lastLineBlank) {\n if (context.nextBlock.equals (\"bq\")) {\n lineInsert (\"<p>\");\n } else {\n closeOpenBlockQuote();\n lineInsert (\"<\" + context.nextBlock + \">\");\n }\n } else {\n lineInsert (\"<br />\");\n }\n }\n\n // Now examine the rest of the line\n char last = ' ';\n char c = ' ';\n char next = ' ';\n leftParenPartOfURL = false;\n resetLineIndexArray();\n while (textIndex <= line.length()) {\n // Get current character, last character and next character\n last = c;\n if (textIndex < line.length()) {\n c = textChar();\n } else {\n c = ' ';\n }\n if ((textIndex + 1) < line.length()) {\n next = line.charAt (textIndex + 1);\n } else {\n next = ' ';\n }\n \n // ?? means a citation\n if (c == '?' && last == '?') {\n if (ix [CITATION] >= 0) {\n replaceWithHTML (CITATION, 2);\n } else {\n ix [CITATION] = textIndex - 1;\n textIndex++;\n }\n }\n else\n // __ means italics\n if (c == '_' && last == '_' && ix [QUOTE_COLON] < 0) {\n if (ix [ITALICS] >= 0) {\n replaceWithHTML (ITALICS, 2);\n } else {\n ix [ITALICS] = textIndex - 1;\n textIndex++;\n }\n }\n else\n // ** means bold\n if (c == '*' && last == '*') {\n if (ix [BOLD] >= 0) {\n replaceWithHTML (BOLD, 2);\n } else {\n ix [BOLD] = textIndex - 1;\n textIndex++;\n }\n }\n else\n // _ means emphasis\n if (c == '_' && next != '_' && ix [QUOTE_COLON] < 0) {\n if (ix [EMPHASIS] >= 0) {\n replaceWithHTML (EMPHASIS, 1);\n } else {\n ix [EMPHASIS] = textIndex;\n textIndex++;\n }\n }\n else\n // * means strong\n if (c == '*' && next != '*') {\n if (ix [STRONG] >= 0) {\n replaceWithHTML (STRONG, 1);\n } else {\n ix [STRONG] = textIndex;\n textIndex++;\n }\n }\n else\n // Exclamation points surround image urls\n if (c == '!' && Character.isLetter(next)\n && ix [QUOTE_COLON] < 0 && ix [EXCLAMATION] < 0) {\n // First exclamation point : store its location and move on\n ix [EXCLAMATION] = textIndex;\n textIndex++;\n }\n else\n // Second exclamation point\n if (c == '!'\n && ix [QUOTE_COLON] < 0 && ix [EXCLAMATION] >= 0) {\n // Second exclamation point\n imageTitle = \"\";\n endOfImageURL = textIndex;\n if (last == ')' && ix [EXCLAMATION_LEFT_PAREN] > 0) {\n ix [EXCLAMATION_RIGHT_PAREN] = textIndex - 1;\n endOfImageURL = ix [EXCLAMATION_LEFT_PAREN];\n imageTitle = line.substring\n (ix [EXCLAMATION_LEFT_PAREN] + 1, ix [EXCLAMATION_RIGHT_PAREN]);\n }\n imageURL = line.substring (ix [EXCLAMATION] + 1, endOfImageURL);\n // Delete the image url, title and parentheses,\n // but leave exclamation points for now.\n lineDelete (ix [EXCLAMATION] + 1, textIndex - ix [EXCLAMATION] - 1);\n String titleString = \"\";\n if (imageTitle.length() > 0) {\n titleString = \" title=\\\"\" + imageTitle + \"\\\" alt=\\\"\" + imageTitle + \"\\\"\";\n }\n lineInsert (ix [EXCLAMATION] + 1,\n \"<img src=\\\"\" + imageURL + \"\\\"\" + titleString + \" />\");\n if (next == ':') {\n // Second exclamation followed by a colon -- look for url for link\n ix [QUOTE_COLON] = textIndex;\n ix [LAST_QUOTE] = ix [EXCLAMATION];\n } else {\n lineDelete (ix [EXCLAMATION], 1);\n lineDelete (textIndex, 1);\n }\n ix [EXCLAMATION] = -1;\n ix [EXCLAMATION_LEFT_PAREN] = -1;\n ix [EXCLAMATION_RIGHT_PAREN] = -1;\n textIndex++;\n } // end if second exclamation point\n else\n // Parentheses within exclamation points enclose the image title\n if (c == '(' && ix [EXCLAMATION] > 0 ) {\n ix [EXCLAMATION_LEFT_PAREN] = textIndex;\n textIndex++;\n }\n else\n // Double quotation marks surround linked text\n if (c == '\"' && ix [QUOTE_COLON] < 0) {\n if (next == ':'\n && ix [LAST_QUOTE] >= 0\n && textIndex > (ix [LAST_QUOTE] + 1)) {\n ix [QUOTE_COLON] = textIndex;\n } else {\n ix [LAST_QUOTE] = textIndex;\n }\n textIndex++;\n }\n else\n // Flag a left paren inside of a url\n if (c == '(' && ix [QUOTE_COLON] > 0) {\n leftParenPartOfURL = true;\n textIndex++;\n }\n else\n // Space may indicate end of url\n if (Character.isWhitespace (c)\n && ix [QUOTE_COLON] > 0\n && ix [LAST_QUOTE] >= 0\n && textIndex > (ix [QUOTE_COLON] + 2)) {\n int endOfURL = textIndex - 1;\n // end of url is last character of url\n // do not include any trailing punctuation at end of url\n int backup = 0;\n while ((endOfURL > (ix [QUOTE_COLON] + 2))\n && (! Character.isLetterOrDigit (line.charAt(endOfURL)))\n && (! ((line.charAt(endOfURL) == ')') && (leftParenPartOfURL)))\n && (! (line.charAt(endOfURL) == '/'))) {\n endOfURL--;\n backup++;\n }\n String url = line.substring (ix [QUOTE_COLON] + 2, endOfURL + 1);\n // insert the closing anchor tag\n lineInsert (endOfURL + 1, \"</a>\");\n // Delete the quote, colon and url from the line\n lineDelete (ix [QUOTE_COLON], endOfURL + 1 - ix [QUOTE_COLON]);\n // insert the beginning of the anchor tag\n lineDelete (ix [LAST_QUOTE], 1);\n lineInsert (ix [LAST_QUOTE], \"<a href=\\\"\" + url + \"\\\">\");\n // Reset the pointers\n ix [QUOTE_COLON] = -1;\n ix [LAST_QUOTE] = -1;\n leftParenPartOfURL = false;\n // Increment the index to the next character\n if (backup > 0) {\n textIndex = textIndex - backup;\n } else {\n textIndex++;\n }\n }\n else\n // Look for start of definition\n if ((c == ':' || c == ';')\n && Character.isWhitespace(last)\n && Character.isWhitespace(next)\n && listChars.length() > 0\n && (lastDefChar == ';' || lastDefChar == ':')) {\n lineDelete (textIndex - 1, 3);\n lineInsert (closeDefinitionTag (lastDefChar)\n + openDefinitionTag (c));\n lastDefChar = c;\n }\n /* else\n // -- means an em dash\n if (c == '-' && last == '-') {\n textIndex--;\n lineDelete (2);\n lineInsert (\"&#8212;\");\n } */ else {\n textIndex++;\n }\n }// end while more characters to examine\n\n context.lastLineBlank = false;\n\n }", "private void setBlock(Block block) {\r\n this.block = block;\r\n }", "public boolean renderAsNormalBlock()\n {\n return false;\n }", "@Test\n\tpublic void testHTML(){\n \tFile xml = new File(testData,\"html/htmlsidekick.html\");\n \t\n \tBuffer b = TestUtils.openFile(xml.getPath());\n\t\t\n \t// wait for end of parsing\n \tdoInBetween(new Runnable(){\n \t\t\tpublic void run(){\n \t\t\t\taction(\"sidekick-parse\",1);\n \t\t}}, \n \t\tmessageOfClassCondition(sidekick.SideKickUpdate.class),\n \t\t10000);\n\t\t\n \taction(\"sidekick-tree\");\n \tPause.pause(2000);\n\n \tHyperlinkSource src = HTMLHyperlinkSource.create();\n\t\tfinal Hyperlink h = src.getHyperlink(TestUtils.view().getBuffer(), 3319);\n\t\tassertNotNull(h);\n\t\tassertTrue(h instanceof jEditOpenFileHyperlink);\n\t\tassertEquals(67, h.getStartLine());\n\t\tassertEquals(67, h.getEndLine());\n\t\tGuiActionRunner.execute(new GuiTask() {\n\t\t\t\n\t\t\t@Override\n\t\t\tprotected void executeInEDT() throws Throwable {\n\t\t\t\th.click(TestUtils.view());\n\t\t\t}\n\t\t});\n\t\t\n\t\tassertEquals(\"jeditresource:/SideKick.jar!/index.html\",TestUtils.view().getBuffer().getPath());\n\t\t\n\t\tTestUtils.close(TestUtils.view(), TestUtils.view().getBuffer());\n\t\tTestUtils.close(TestUtils.view(), b);\n\t}", "public final EObject ruleImport() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_0=null;\n Token otherlv_2=null;\n Token lv_importURI_3_0=null;\n Token otherlv_4=null;\n Token lv_name_5_0=null;\n Enumerator lv_importType_1_0 = null;\n\n\n\n \tenterRule();\n\n try {\n // InternalMappingDsl.g:1810:2: ( (otherlv_0= 'import' ( (lv_importType_1_0= ruleImportType ) ) otherlv_2= 'from' ( (lv_importURI_3_0= RULE_STRING ) ) otherlv_4= 'as' ( (lv_name_5_0= RULE_ID ) ) ) )\n // InternalMappingDsl.g:1811:2: (otherlv_0= 'import' ( (lv_importType_1_0= ruleImportType ) ) otherlv_2= 'from' ( (lv_importURI_3_0= RULE_STRING ) ) otherlv_4= 'as' ( (lv_name_5_0= RULE_ID ) ) )\n {\n // InternalMappingDsl.g:1811:2: (otherlv_0= 'import' ( (lv_importType_1_0= ruleImportType ) ) otherlv_2= 'from' ( (lv_importURI_3_0= RULE_STRING ) ) otherlv_4= 'as' ( (lv_name_5_0= RULE_ID ) ) )\n // InternalMappingDsl.g:1812:3: otherlv_0= 'import' ( (lv_importType_1_0= ruleImportType ) ) otherlv_2= 'from' ( (lv_importURI_3_0= RULE_STRING ) ) otherlv_4= 'as' ( (lv_name_5_0= RULE_ID ) )\n {\n otherlv_0=(Token)match(input,35,FOLLOW_45); \n\n \t\t\tnewLeafNode(otherlv_0, grammarAccess.getImportAccess().getImportKeyword_0());\n \t\t\n // InternalMappingDsl.g:1816:3: ( (lv_importType_1_0= ruleImportType ) )\n // InternalMappingDsl.g:1817:4: (lv_importType_1_0= ruleImportType )\n {\n // InternalMappingDsl.g:1817:4: (lv_importType_1_0= ruleImportType )\n // InternalMappingDsl.g:1818:5: lv_importType_1_0= ruleImportType\n {\n\n \t\t\t\t\tnewCompositeNode(grammarAccess.getImportAccess().getImportTypeImportTypeEnumRuleCall_1_0());\n \t\t\t\t\n pushFollow(FOLLOW_46);\n lv_importType_1_0=ruleImportType();\n\n state._fsp--;\n\n\n \t\t\t\t\tif (current==null) {\n \t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getImportRule());\n \t\t\t\t\t}\n \t\t\t\t\tset(\n \t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\"importType\",\n \t\t\t\t\t\tlv_importType_1_0,\n \t\t\t\t\t\t\"de.fhdo.ddmm.technology.mappingdsl.MappingDsl.ImportType\");\n \t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\n\n }\n\n\n }\n\n otherlv_2=(Token)match(input,36,FOLLOW_41); \n\n \t\t\tnewLeafNode(otherlv_2, grammarAccess.getImportAccess().getFromKeyword_2());\n \t\t\n // InternalMappingDsl.g:1839:3: ( (lv_importURI_3_0= RULE_STRING ) )\n // InternalMappingDsl.g:1840:4: (lv_importURI_3_0= RULE_STRING )\n {\n // InternalMappingDsl.g:1840:4: (lv_importURI_3_0= RULE_STRING )\n // InternalMappingDsl.g:1841:5: lv_importURI_3_0= RULE_STRING\n {\n lv_importURI_3_0=(Token)match(input,RULE_STRING,FOLLOW_47); \n\n \t\t\t\t\tnewLeafNode(lv_importURI_3_0, grammarAccess.getImportAccess().getImportURISTRINGTerminalRuleCall_3_0());\n \t\t\t\t\n\n \t\t\t\t\tif (current==null) {\n \t\t\t\t\t\tcurrent = createModelElement(grammarAccess.getImportRule());\n \t\t\t\t\t}\n \t\t\t\t\tsetWithLastConsumed(\n \t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\"importURI\",\n \t\t\t\t\t\tlv_importURI_3_0,\n \t\t\t\t\t\t\"org.eclipse.xtext.common.Terminals.STRING\");\n \t\t\t\t\n\n }\n\n\n }\n\n otherlv_4=(Token)match(input,37,FOLLOW_7); \n\n \t\t\tnewLeafNode(otherlv_4, grammarAccess.getImportAccess().getAsKeyword_4());\n \t\t\n // InternalMappingDsl.g:1861:3: ( (lv_name_5_0= RULE_ID ) )\n // InternalMappingDsl.g:1862:4: (lv_name_5_0= RULE_ID )\n {\n // InternalMappingDsl.g:1862:4: (lv_name_5_0= RULE_ID )\n // InternalMappingDsl.g:1863:5: lv_name_5_0= RULE_ID\n {\n lv_name_5_0=(Token)match(input,RULE_ID,FOLLOW_2); \n\n \t\t\t\t\tnewLeafNode(lv_name_5_0, grammarAccess.getImportAccess().getNameIDTerminalRuleCall_5_0());\n \t\t\t\t\n\n \t\t\t\t\tif (current==null) {\n \t\t\t\t\t\tcurrent = createModelElement(grammarAccess.getImportRule());\n \t\t\t\t\t}\n \t\t\t\t\tsetWithLastConsumed(\n \t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\"name\",\n \t\t\t\t\t\tlv_name_5_0,\n \t\t\t\t\t\t\"org.eclipse.xtext.common.Terminals.ID\");\n \t\t\t\t\n\n }\n\n\n }\n\n\n }\n\n\n }\n\n\n \tleaveRule();\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "public boolean renderAsNormalBlock()\n\t {\n\t return false;\n\t }", "public boolean canHarvestBlock(Block var1)\r\n {\r\n return var1.blockID == Block.web.blockID;\r\n }", "public void addNormalImport(String name, JavaEntity importEntity)\n {\n normalImports.put(name, importEntity);\n }", "public LagartoDOMBuilder enableHtmlMode() {\n\t\tconfig.ignoreWhitespacesBetweenTags = false; // collect all whitespaces\n\t\tconfig.parserConfig.setCaseSensitive(false); // HTML is case insensitive\n\t\tconfig.parserConfig.setEnableRawTextModes(true); // script and style tags are parsed as CDATA\n\t\tconfig.enabledVoidTags = true; // list of void tags\n\t\tconfig.selfCloseVoidTags = false; // don't self close void tags\n\t\tconfig.impliedEndTags = true; // some tags end is implied\n\t\tconfig.parserConfig.setEnableConditionalComments(false); // don't enable IE conditional comments\n\t\tconfig.parserConfig.setParseXmlTags(false); // enable XML mode in parsing\n\t\treturn this;\n\t}", "public boolean renderAsNormalBlock()\r\n {\r\n return false;\r\n }", "public boolean renderAsNormalBlock(){\r\n return false;\r\n }", "private void setBlocks() {\n // load the class\n ClassLoader cl = ClassLoader.getSystemClassLoader();\n // create an InputStream object\n InputStream inputStream = cl.getResourceAsStream(this.map.get(\"block_definitions\"));\n // initialize this factory with a factory\n this.factory = BlocksDefinitionReader.fromReader(new InputStreamReader(inputStream));\n try {\n inputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "private void readBlocks(List<Element> blockElements, Model model)\n throws ObjectExistsException {\n // Add the blocks.\n for (int i = 0; i < blockElements.size(); i++) {\n Element curBlockElement = blockElements.get(i);\n Integer blockID;\n try {\n blockID = Integer.valueOf(curBlockElement.getAttributeValue(\"id\"));\n }\n catch (NumberFormatException e) {\n blockID = null;\n }\n Block curBlock = model.createBlock(blockID);\n TCSObjectReference<Block> blockRef = curBlock.getReference();\n String blockName = curBlockElement.getAttributeValue(\"name\");\n if (blockName == null || blockName.isEmpty()) {\n blockName = \"BlockName\" + i + \"Unknown\";\n }\n model.getObjectPool().renameObject(curBlock.getReference(), blockName);\n // Add members.\n List<Element> memberElements = curBlockElement.getChildren(\"member\");\n for (int j = 0; j < memberElements.size(); j++) {\n Element curMemberElement = memberElements.get(j);\n String memberName = curMemberElement.getAttributeValue(\"name\");\n if (memberName == null || memberName.isEmpty()) {\n memberName = \"MemberName\" + j + \"Unknown\";\n }\n TCSResource<?> curMember\n = (TCSResource<?>) model.getObjectPool().getObject(memberName);\n curBlock.addMember(curMember.getReference());\n }\n List<Element> properties = curBlockElement.getChildren(\"property\");\n for (int k = 0; k < properties.size(); k++) {\n Element curPropElement = properties.get(k);\n String curKey = curPropElement.getAttributeValue(\"name\");\n if (curKey == null || curKey.isEmpty()) {\n curKey = \"Key\" + k + \"Unknown\";\n }\n String curValue = curPropElement.getAttributeValue(\"value\");\n if (curValue == null || curValue.isEmpty()) {\n curValue = \"Value\" + k + \"Unknown\";\n }\n model.getObjectPool().setObjectProperty(blockRef, curKey, curValue);\n }\n }\n }", "public Element getAsciiMathLibraryBlock() {\n return asciiMathLibraryBlock;\n }", "public WorkScheduleImportTwoSection getImportSection() {\n\t\treturn this;\n\t}", "public static void loadBlockTextures() {\n\t\tspriteTopOn = ModLoader.addOverride(\"/terrain.png\",\n\t\t\t\t\"/WirelessSprites/topOn.png\");\n\t\tspriteTopOff = ModLoader.addOverride(\"/terrain.png\",\n\t\t\t\t\"/WirelessSprites/topOff.png\");\n\t\tspriteROn = ModLoader.addOverride(\"/terrain.png\",\n\t\t\t\t\"/WirelessSprites/rxOn.png\");\n\t\tspriteROff = ModLoader.addOverride(\"/terrain.png\",\n\t\t\t\t\"/WirelessSprites/rxOff.png\");\n\t\tspriteTOn = ModLoader.addOverride(\"/terrain.png\",\n\t\t\t\t\"/WirelessSprites/txOn.png\");\n\t\tspriteTOff = ModLoader.addOverride(\"/terrain.png\",\n\t\t\t\t\"/WirelessSprites/txOff.png\");\n\t}", "public void breakBlock(World par1World, int par2, int par3, int par4, Block par5, int par6) {\n\t\tTileEntityCobexChest tileentitychest = (TileEntityCobexChest) par1World.getTileEntity(par2, par3, par4);\n\n\t\tif (tileentitychest != null) {\n\t\t\tfor (int j1 = 0; j1 < tileentitychest.getSizeInventory(); ++j1) {\n\t\t\t\tItemStack itemstack = tileentitychest.getStackInSlot(j1);\n\n\t\t\t\tif (itemstack != null) {\n\t\t\t\t\tfloat f = this.random.nextFloat() * 0.8F + 0.1F;\n\t\t\t\t\tfloat f1 = this.random.nextFloat() * 0.8F + 0.1F;\n\t\t\t\t\tEntityItem entityitem;\n\n\t\t\t\t\tfor (float f2 = this.random.nextFloat() * 0.8F + 0.1F; itemstack.stackSize > 0; par1World.spawnEntityInWorld(entityitem)) {\n\t\t\t\t\t\tint k1 = this.random.nextInt(21) + 10;\n\n\t\t\t\t\t\tif (k1 > itemstack.stackSize) {\n\t\t\t\t\t\t\tk1 = itemstack.stackSize;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\titemstack.stackSize -= k1;\n\t\t\t\t\t\tentityitem = new EntityItem(par1World, (double) ((float) par2 + f), (double) ((float) par3 + f1), (double) ((float) par4 + f2),\n\t\t\t\t\t\t\t\tnew ItemStack(itemstack.getItem(), k1, itemstack.getItemDamage()));\n\t\t\t\t\t\tfloat f3 = 0.05F;\n\t\t\t\t\t\tentityitem.motionX = (double) ((float) this.random.nextGaussian() * f3);\n\t\t\t\t\t\tentityitem.motionY = (double) ((float) this.random.nextGaussian() * f3 + 0.2F);\n\t\t\t\t\t\tentityitem.motionZ = (double) ((float) this.random.nextGaussian() * f3);\n\n\t\t\t\t\t\tif (itemstack.hasTagCompound()) {\n\t\t\t\t\t\t\tentityitem.getEntityItem().setTagCompound((NBTTagCompound) itemstack.getTagCompound().copy());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tpar1World.func_147453_f(par2, par3, par4, par5);\n\t\t}\n\n\t\tsuper.breakBlock(par1World, par2, par3, par4, par5, par6);\n\t}", "org.hyperledger.fabric.protos.token.Transaction.PlainImportOrBuilder getPlainImportOrBuilder();", "public Block getObj()\n\t{\n\t\treturn block;\n\t}", "@Override\r\n\tpublic Node visitBlock(BlockContext ctx) {\n\t\treturn super.visitBlock(ctx);\r\n\t}", "public AdmClientePreferencialHTML(DocumentLoader loader) { this(loader, true); }", "public boolean renderAsNormalBlock()\r\n/* 166: */ {\r\n/* 167:184 */ return false;\r\n/* 168: */ }", "private void setBlocksInheritance(boolean blocksInheritance) {\n\t\tthis.blocksInheritance = blocksInheritance;\n\t}", "public static void initializeBlocks() {\n if (Config.enableGiveADamn) {\n giveADamn = new GiveADamn();\n }\n\n if (Config.enableGlowstone) {\n glowstone = new HeavyLight();\n }\n\n if (Config.enableSpicedSand) {\n sandSpiced = new SpicedSand();\n }\n /*\n\n if (Config.enableMuffler){\n muffler = new Muffler();\n }\n */\n }", "@Override\n\tpublic final boolean renderAsNormalBlock()\n\t{\n\t\treturn false;\n\t}", "public final EObject ruleImport() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_0=null;\n Token lv_importURI_1_0=null;\n\n enterRule(); \n \n try {\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:298:28: ( (otherlv_0= 'import' ( (lv_importURI_1_0= RULE_STRING ) ) ) )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:299:1: (otherlv_0= 'import' ( (lv_importURI_1_0= RULE_STRING ) ) )\n {\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:299:1: (otherlv_0= 'import' ( (lv_importURI_1_0= RULE_STRING ) ) )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:299:3: otherlv_0= 'import' ( (lv_importURI_1_0= RULE_STRING ) )\n {\n otherlv_0=(Token)match(input,15,FOLLOW_15_in_ruleImport672); \n\n \tnewLeafNode(otherlv_0, grammarAccess.getImportAccess().getImportKeyword_0());\n \n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:303:1: ( (lv_importURI_1_0= RULE_STRING ) )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:304:1: (lv_importURI_1_0= RULE_STRING )\n {\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:304:1: (lv_importURI_1_0= RULE_STRING )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:305:3: lv_importURI_1_0= RULE_STRING\n {\n lv_importURI_1_0=(Token)match(input,RULE_STRING,FOLLOW_RULE_STRING_in_ruleImport689); \n\n \t\t\tnewLeafNode(lv_importURI_1_0, grammarAccess.getImportAccess().getImportURISTRINGTerminalRuleCall_1_0()); \n \t\t\n\n \t if (current==null) {\n \t current = createModelElement(grammarAccess.getImportRule());\n \t }\n \t\tsetWithLastConsumed(\n \t\t\tcurrent, \n \t\t\t\"importURI\",\n \t\tlv_importURI_1_0, \n \t\t\"STRING\");\n \t \n\n }\n\n\n }\n\n\n }\n\n\n }\n\n leaveRule(); \n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "TestBlock createTestBlock();", "@Test\n public void test024() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Table table0 = new Table(errorPage0, \"\");\n Block block0 = (Block)table0.s();\n }", "public PoaMaestroMultivaloresHTML(DocumentLoader loader) { this(loader, true); }", "private void loadBlock(boolean getsBlock, SkinnyMethodAdapter mv) {\n if (getsBlock) {\n mv.visitVarInsn(ALOAD, BLOCK_INDEX);\n }\n }", "public final EObject ruleModel() throws RecognitionException {\n EObject current = null;\n\n EObject lv_imports_0_0 = null;\n\n EObject lv_testElements_1_1 = null;\n\n EObject lv_testElements_1_2 = null;\n\n EObject lv_testElements_1_3 = null;\n\n EObject lv_dataPackages_2_0 = null;\n\n EObject lv_dataBindings_3_0 = null;\n\n\n\n \tenterRule();\n\n try {\n // InternalNgt.g:77:2: ( ( ( (lv_imports_0_0= ruleTopLevelImport ) )* ( ( ( (lv_testElements_1_1= ruleTestNode | lv_testElements_1_2= ruleChain | lv_testElements_1_3= ruleTestContainer ) ) ) | ( (lv_dataPackages_2_0= ruleDataPackage ) ) | ( (lv_dataBindings_3_0= ruleDataBinding ) ) )* ) )\n // InternalNgt.g:78:2: ( ( (lv_imports_0_0= ruleTopLevelImport ) )* ( ( ( (lv_testElements_1_1= ruleTestNode | lv_testElements_1_2= ruleChain | lv_testElements_1_3= ruleTestContainer ) ) ) | ( (lv_dataPackages_2_0= ruleDataPackage ) ) | ( (lv_dataBindings_3_0= ruleDataBinding ) ) )* )\n {\n // InternalNgt.g:78:2: ( ( (lv_imports_0_0= ruleTopLevelImport ) )* ( ( ( (lv_testElements_1_1= ruleTestNode | lv_testElements_1_2= ruleChain | lv_testElements_1_3= ruleTestContainer ) ) ) | ( (lv_dataPackages_2_0= ruleDataPackage ) ) | ( (lv_dataBindings_3_0= ruleDataBinding ) ) )* )\n // InternalNgt.g:79:3: ( (lv_imports_0_0= ruleTopLevelImport ) )* ( ( ( (lv_testElements_1_1= ruleTestNode | lv_testElements_1_2= ruleChain | lv_testElements_1_3= ruleTestContainer ) ) ) | ( (lv_dataPackages_2_0= ruleDataPackage ) ) | ( (lv_dataBindings_3_0= ruleDataBinding ) ) )*\n {\n // InternalNgt.g:79:3: ( (lv_imports_0_0= ruleTopLevelImport ) )*\n loop1:\n do {\n int alt1=2;\n int LA1_0 = input.LA(1);\n\n if ( (LA1_0==15) ) {\n alt1=1;\n }\n\n\n switch (alt1) {\n \tcase 1 :\n \t // InternalNgt.g:80:4: (lv_imports_0_0= ruleTopLevelImport )\n \t {\n \t // InternalNgt.g:80:4: (lv_imports_0_0= ruleTopLevelImport )\n \t // InternalNgt.g:81:5: lv_imports_0_0= ruleTopLevelImport\n \t {\n\n \t \t\t\t\t\tnewCompositeNode(grammarAccess.getModelAccess().getImportsTopLevelImportParserRuleCall_0_0());\n \t \t\t\t\t\n \t pushFollow(FOLLOW_3);\n \t lv_imports_0_0=ruleTopLevelImport();\n\n \t state._fsp--;\n\n\n \t \t\t\t\t\tif (current==null) {\n \t \t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getModelRule());\n \t \t\t\t\t\t}\n \t \t\t\t\t\tadd(\n \t \t\t\t\t\t\tcurrent,\n \t \t\t\t\t\t\t\"imports\",\n \t \t\t\t\t\t\tlv_imports_0_0,\n \t \t\t\t\t\t\t\"org.opentestmodeling.vstep.Ngt.TopLevelImport\");\n \t \t\t\t\t\tafterParserOrEnumRuleCall();\n \t \t\t\t\t\n\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop1;\n }\n } while (true);\n\n // InternalNgt.g:98:3: ( ( ( (lv_testElements_1_1= ruleTestNode | lv_testElements_1_2= ruleChain | lv_testElements_1_3= ruleTestContainer ) ) ) | ( (lv_dataPackages_2_0= ruleDataPackage ) ) | ( (lv_dataBindings_3_0= ruleDataBinding ) ) )*\n loop3:\n do {\n int alt3=4;\n switch ( input.LA(1) ) {\n case RULE_TESTTARGET_STRING:\n case 16:\n case 27:\n {\n alt3=1;\n }\n break;\n case 30:\n {\n alt3=2;\n }\n break;\n case RULE_ID:\n {\n alt3=3;\n }\n break;\n\n }\n\n switch (alt3) {\n \tcase 1 :\n \t // InternalNgt.g:99:4: ( ( (lv_testElements_1_1= ruleTestNode | lv_testElements_1_2= ruleChain | lv_testElements_1_3= ruleTestContainer ) ) )\n \t {\n \t // InternalNgt.g:99:4: ( ( (lv_testElements_1_1= ruleTestNode | lv_testElements_1_2= ruleChain | lv_testElements_1_3= ruleTestContainer ) ) )\n \t // InternalNgt.g:100:5: ( (lv_testElements_1_1= ruleTestNode | lv_testElements_1_2= ruleChain | lv_testElements_1_3= ruleTestContainer ) )\n \t {\n \t // InternalNgt.g:100:5: ( (lv_testElements_1_1= ruleTestNode | lv_testElements_1_2= ruleChain | lv_testElements_1_3= ruleTestContainer ) )\n \t // InternalNgt.g:101:6: (lv_testElements_1_1= ruleTestNode | lv_testElements_1_2= ruleChain | lv_testElements_1_3= ruleTestContainer )\n \t {\n \t // InternalNgt.g:101:6: (lv_testElements_1_1= ruleTestNode | lv_testElements_1_2= ruleChain | lv_testElements_1_3= ruleTestContainer )\n \t int alt2=3;\n \t alt2 = dfa2.predict(input);\n \t switch (alt2) {\n \t case 1 :\n \t // InternalNgt.g:102:7: lv_testElements_1_1= ruleTestNode\n \t {\n\n \t \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getModelAccess().getTestElementsTestNodeParserRuleCall_1_0_0_0());\n \t \t\t\t\t\t\t\n \t pushFollow(FOLLOW_4);\n \t lv_testElements_1_1=ruleTestNode();\n\n \t state._fsp--;\n\n\n \t \t\t\t\t\t\t\tif (current==null) {\n \t \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getModelRule());\n \t \t\t\t\t\t\t\t}\n \t \t\t\t\t\t\t\tadd(\n \t \t\t\t\t\t\t\t\tcurrent,\n \t \t\t\t\t\t\t\t\t\"testElements\",\n \t \t\t\t\t\t\t\t\tlv_testElements_1_1,\n \t \t\t\t\t\t\t\t\t\"org.opentestmodeling.vstep.Ngt.TestNode\");\n \t \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t \t\t\t\t\t\t\n\n \t }\n \t break;\n \t case 2 :\n \t // InternalNgt.g:118:7: lv_testElements_1_2= ruleChain\n \t {\n\n \t \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getModelAccess().getTestElementsChainParserRuleCall_1_0_0_1());\n \t \t\t\t\t\t\t\n \t pushFollow(FOLLOW_4);\n \t lv_testElements_1_2=ruleChain();\n\n \t state._fsp--;\n\n\n \t \t\t\t\t\t\t\tif (current==null) {\n \t \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getModelRule());\n \t \t\t\t\t\t\t\t}\n \t \t\t\t\t\t\t\tadd(\n \t \t\t\t\t\t\t\t\tcurrent,\n \t \t\t\t\t\t\t\t\t\"testElements\",\n \t \t\t\t\t\t\t\t\tlv_testElements_1_2,\n \t \t\t\t\t\t\t\t\t\"org.opentestmodeling.vstep.Ngt.Chain\");\n \t \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t \t\t\t\t\t\t\n\n \t }\n \t break;\n \t case 3 :\n \t // InternalNgt.g:134:7: lv_testElements_1_3= ruleTestContainer\n \t {\n\n \t \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getModelAccess().getTestElementsTestContainerParserRuleCall_1_0_0_2());\n \t \t\t\t\t\t\t\n \t pushFollow(FOLLOW_4);\n \t lv_testElements_1_3=ruleTestContainer();\n\n \t state._fsp--;\n\n\n \t \t\t\t\t\t\t\tif (current==null) {\n \t \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getModelRule());\n \t \t\t\t\t\t\t\t}\n \t \t\t\t\t\t\t\tadd(\n \t \t\t\t\t\t\t\t\tcurrent,\n \t \t\t\t\t\t\t\t\t\"testElements\",\n \t \t\t\t\t\t\t\t\tlv_testElements_1_3,\n \t \t\t\t\t\t\t\t\t\"org.opentestmodeling.vstep.Ngt.TestContainer\");\n \t \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t \t\t\t\t\t\t\n\n \t }\n \t break;\n\n \t }\n\n\n \t }\n\n\n \t }\n\n\n \t }\n \t break;\n \tcase 2 :\n \t // InternalNgt.g:153:4: ( (lv_dataPackages_2_0= ruleDataPackage ) )\n \t {\n \t // InternalNgt.g:153:4: ( (lv_dataPackages_2_0= ruleDataPackage ) )\n \t // InternalNgt.g:154:5: (lv_dataPackages_2_0= ruleDataPackage )\n \t {\n \t // InternalNgt.g:154:5: (lv_dataPackages_2_0= ruleDataPackage )\n \t // InternalNgt.g:155:6: lv_dataPackages_2_0= ruleDataPackage\n \t {\n\n \t \t\t\t\t\t\tnewCompositeNode(grammarAccess.getModelAccess().getDataPackagesDataPackageParserRuleCall_1_1_0());\n \t \t\t\t\t\t\n \t pushFollow(FOLLOW_4);\n \t lv_dataPackages_2_0=ruleDataPackage();\n\n \t state._fsp--;\n\n\n \t \t\t\t\t\t\tif (current==null) {\n \t \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getModelRule());\n \t \t\t\t\t\t\t}\n \t \t\t\t\t\t\tadd(\n \t \t\t\t\t\t\t\tcurrent,\n \t \t\t\t\t\t\t\t\"dataPackages\",\n \t \t\t\t\t\t\t\tlv_dataPackages_2_0,\n \t \t\t\t\t\t\t\t\"org.opentestmodeling.vstep.Ngt.DataPackage\");\n \t \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t \t\t\t\t\t\n\n \t }\n\n\n \t }\n\n\n \t }\n \t break;\n \tcase 3 :\n \t // InternalNgt.g:173:4: ( (lv_dataBindings_3_0= ruleDataBinding ) )\n \t {\n \t // InternalNgt.g:173:4: ( (lv_dataBindings_3_0= ruleDataBinding ) )\n \t // InternalNgt.g:174:5: (lv_dataBindings_3_0= ruleDataBinding )\n \t {\n \t // InternalNgt.g:174:5: (lv_dataBindings_3_0= ruleDataBinding )\n \t // InternalNgt.g:175:6: lv_dataBindings_3_0= ruleDataBinding\n \t {\n\n \t \t\t\t\t\t\tnewCompositeNode(grammarAccess.getModelAccess().getDataBindingsDataBindingParserRuleCall_1_2_0());\n \t \t\t\t\t\t\n \t pushFollow(FOLLOW_4);\n \t lv_dataBindings_3_0=ruleDataBinding();\n\n \t state._fsp--;\n\n\n \t \t\t\t\t\t\tif (current==null) {\n \t \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getModelRule());\n \t \t\t\t\t\t\t}\n \t \t\t\t\t\t\tadd(\n \t \t\t\t\t\t\t\tcurrent,\n \t \t\t\t\t\t\t\t\"dataBindings\",\n \t \t\t\t\t\t\t\tlv_dataBindings_3_0,\n \t \t\t\t\t\t\t\t\"org.opentestmodeling.vstep.Ngt.DataBinding\");\n \t \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t \t\t\t\t\t\n\n \t }\n\n\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop3;\n }\n } while (true);\n\n\n }\n\n\n }\n\n\n \tleaveRule();\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "protected ASPBlock getBizWfBlock()\n {\n return headblk;\n }", "public final EObject ruleImport() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_0=null;\n Token lv_importURI_1_0=null;\n\n\n \tenterRule();\n\n try {\n // InternalMyDsl.g:140:2: ( (otherlv_0= 'import' ( (lv_importURI_1_0= RULE_IMPORT_URI ) ) ) )\n // InternalMyDsl.g:141:2: (otherlv_0= 'import' ( (lv_importURI_1_0= RULE_IMPORT_URI ) ) )\n {\n // InternalMyDsl.g:141:2: (otherlv_0= 'import' ( (lv_importURI_1_0= RULE_IMPORT_URI ) ) )\n // InternalMyDsl.g:142:3: otherlv_0= 'import' ( (lv_importURI_1_0= RULE_IMPORT_URI ) )\n {\n otherlv_0=(Token)match(input,19,FOLLOW_5); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tnewLeafNode(otherlv_0, grammarAccess.getImportAccess().getImportKeyword_0());\n \t\t\n }\n // InternalMyDsl.g:146:3: ( (lv_importURI_1_0= RULE_IMPORT_URI ) )\n // InternalMyDsl.g:147:4: (lv_importURI_1_0= RULE_IMPORT_URI )\n {\n // InternalMyDsl.g:147:4: (lv_importURI_1_0= RULE_IMPORT_URI )\n // InternalMyDsl.g:148:5: lv_importURI_1_0= RULE_IMPORT_URI\n {\n lv_importURI_1_0=(Token)match(input,RULE_IMPORT_URI,FOLLOW_2); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tnewLeafNode(lv_importURI_1_0, grammarAccess.getImportAccess().getImportURIIMPORT_URITerminalRuleCall_1_0());\n \t\t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tif (current==null) {\n \t\t\t\t\t\tcurrent = createModelElement(grammarAccess.getImportRule());\n \t\t\t\t\t}\n \t\t\t\t\tsetWithLastConsumed(\n \t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\"importURI\",\n \t\t\t\t\t\tlv_importURI_1_0,\n \t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.IMPORT_URI\");\n \t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n\n \tleaveRule();\n\n }\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "@Test\n public void test055() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Block block0 = (Block)errorPage0.acronym();\n }", "@Test\n public void test064() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Block block0 = (Block)errorPage0.ins();\n }", "public IndexImportSection(MultiPageEditor editor, Composite parent) {\n super(editor, parent, \"Index Imports\",\n \"The following index definitions are included as part of this one.\"); // or !\n // DESCRIPTION\n }", "protected Block getBlock() {\r\n return this.block;\r\n }", "public void setBlock(boolean block) {\n this.block = block;\n }", "public BlockStmt\ngetInitiationPart();", "@Test\n\tpublic void testHTMLAsXML(){\n \tFile xml = new File(testData,\"html/htmlsidekick.html\");\n \t\n \tBuffer b = TestUtils.openFile(xml.getPath());\n\t\t\n \t// wait for end of parsing\n \tdoInBetween(new Runnable(){\n \t\t\tpublic void run(){\n \t\t\t\taction(\"sidekick.parser.xml-switch\",1);\n \t\t}}, \n \t\tmessageOfClassCondition(sidekick.SideKickUpdate.class),\n \t\t10000);\n\t\t\n \taction(\"sidekick-tree\");\n \tPause.pause(2000);\n\n \tHyperlinkSource src = HTMLHyperlinkSource.create();\n\t\tfinal Hyperlink h = src.getHyperlink(TestUtils.view().getBuffer(), 3319);\n\t\tassertNotNull(h);\n\t\tassertTrue(h instanceof jEditOpenFileHyperlink);\n\t\tassertEquals(67, h.getStartLine());\n\t\tassertEquals(67, h.getEndLine());\n\t\tGuiActionRunner.execute(new GuiTask() {\n\t\t\t\n\t\t\t@Override\n\t\t\tprotected void executeInEDT() throws Throwable {\n\t\t\t\th.click(TestUtils.view());\n\t\t\t}\n\t\t});\n\t\t\n\t\tassertEquals(\"jeditresource:/SideKick.jar!/index.html\",TestUtils.view().getBuffer().getPath());\n\t\t\n\t\tTestUtils.close(TestUtils.view(), TestUtils.view().getBuffer());\n\t\tTestUtils.close(TestUtils.view(), b);\n\t}", "Block createBlock();", "public interface BlockInt {\n\t\n\t/**\n\t * Execute a block.\n\t * \n\t * Parse arguments, init, run, and check the results.\n\t * @param arg The arguments\n\t * @return true if everything goes well\n\t */\n\tpublic boolean execute(String[] args);\n\t\n\t/**\n\t * Initialises the block.\n\t * \n\t * @return true if the initialisation is ok\n\t */\n\tpublic boolean init();\n\t\n\t/**\n\t * Gives a description of the class\n\t * \n\t * @return a description\n\t */\n\tpublic String getDescription();\n}", "private static void loadBlocksFromString(String str) {\n String title = \"`blocks`\";\n int start = str.indexOf(title);\n if (start < 0)\n return;\n int end = str.indexOf(\"`\", start + title.length());\n if (end < 0)\n end = str.length();\n str = str.substring(start + title.length(), end);\n \n Tokenizer tokenizer = new Tokenizer(str);\n ArrayList<String> items = tokenizer.tokenize();\n removeQuotes(items);\n \n //HashMap<Long, Block> blockMap = new HashMap<Long, Block>(100);\n // maps id to block for later connections\n \n LineNumberReader lnr = new LineNumberReader(new StringReader(str));\n \n try {\n String thing = lnr.readLine();\n while (thing != null) {\n //System.out.println(\"read line: \" + thing);\n String thingtrim = thing.trim();\n if (!thingtrim.startsWith(\"Block\")) {\n thing = lnr.readLine();\n continue;\n }\n \n StringBuffer buf = new StringBuffer();\n thingtrim = \"\";\n do {\n buf.append(thingtrim + \"\\r\\n\");\n thing = lnr.readLine();\n if (thing == null)\n break;\n thingtrim = thing.trim();\n } while (!thingtrim.startsWith(\"Block\") && !thingtrim.startsWith(\"`\"));\n \n loadBlockFromString(buf.toString());\n }\n } catch (IOException e) {\n e.printStackTrace();\n } catch (Exception f) {\n f.printStackTrace();\n }\n }", "private static boolean model_block_4_0(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"model_block_4_0\")) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = model_block_4_0_0(b, l + 1);\n if (!r) r = comment(b, l + 1);\n if (!r) r = consumeToken(b, EOL);\n exit_section_(b, m, null, r);\n return r;\n }", "public void parse(String blockName) throws IllegalArgumentException {\n String copy = \"\";\n if (implicitMain && !\"main\".equals(blockName) && !blockName.startsWith(\"main.\")) {\n blockName = \"main.\" + blockName;\n }\n try {\n copy = blocks.get(blockName).toString();\n } catch (NullPointerException e) {\n if (!this.failSilently) {\n throw new IllegalArgumentException(\n \"Block '\" + blockName + \"' not found.\" +\n \" Matches \" + locateBlock(blockName));\n }\n }\n //pattern = Pattern.compile(\"\\\\{([\\\\w\\\\.]+)\\\\}\");\n Matcher matcher = pattern.matcher(copy);\n //blockPattern = Pattern.compile(\"_BLOCK_\\\\.(.+)\");\n for (Matcher matcher2; matcher.find(); ) {\n String match = matcher.group(1);\n matcher2 = blockPattern.matcher(match);\n if (matcher2.find()) {\n if (parsedBlocks.containsKey(matcher2.group(1))) {\n copy = copy.replaceFirst(\"\\\\{\" + match + \"\\\\}\", escape(\n parsedBlocks.get(matcher2.group(1)).toString()));\n } else {\n copy = copy.replaceFirst(\"\\\\{\" + match + \"\\\\}\", \"\");\n }\n } else {\n if (vars.containsKey(match)) {\n copy = copy.replaceFirst(\"\\\\{\" + match + \"\\\\}\", escape(\n vars.get(match).toString()));\n } else {\n // Leave unchanged because it might be wanted in output.\n // Can always be removed by assigning empty value.\n //copy = copy.replaceFirst(\"\\\\{\"+match+\"\\\\}\", \"\");\n }\n }\n }\n if (parsedBlocks.containsKey(blockName)) {\n parsedBlocks.put(blockName, parsedBlocks.get(blockName) + copy);\n } else {\n parsedBlocks.put(blockName, copy);\n }\n if (subBlocks.containsKey(blockName)) {\n parsedBlocks.put(subBlocks.get(blockName), \"\");\n }\n }", "public void loadBlockLanguage(final Element root) {\n /* MUST load shapes before genuses in order to initialize\n connectors within each block correctly */\n BlockConnectorShape.loadBlockConnectorShapes(root);\n\n //load genuses\n BlockGenus.loadBlockGenera(workspace, root);\n\n //load rules\n BlockLinkChecker.addRule(workspace, new CommandRule(workspace));\n BlockLinkChecker.addRule(workspace, new SocketRule());\n BlockLinkChecker.addRule(workspace, new PolyRule(workspace));\n BlockLinkChecker.addRule(workspace, new StackRule(workspace));\n BlockLinkChecker.addRule(workspace, new ParamRule());\n\n //set the dirty flag for the language definition file\n //to false now that the lang file has been loaded\n langDefDirty = false;\n }", "DefineBlock createDefineBlock();", "public int getBlockId() {\n return blockId;\n \n }", "BlockStore getBlockStore();", "protected String getImportStatement() {\n return \"\";\n }", "@Override\n\tpublic int getBlockNum() {\n\t\treturn 0;\n\t}", "public Block() {\r\n\t\t// TODO Auto-generated constructor stub\r\n\t\tthis.point_BlockTopRight = null;\r\n\t\tthis.point_BlockDownleft = null;\r\n\t\tthis.setpoint_BlockTopLeft(null);\r\n\t\tthis.IDBloack = 0;\r\n\t\tthis.type = \"\";\r\n\t}", "@EventHandler(priority = EventPriority.HIGH)\n\tvoid onBreakBlock(BlockBreakEvent event)\n\t{\n\t\tPlayer player = event.getPlayer();\n\t\t\n\t\t//If the player is in creative mode don't mess with the event\n\t\tif (player.getGameMode().equals(GameMode.CREATIVE))\n\t\t\treturn;\n\t\t\n\t\t//Check if the block is contained within the config\n\t\tSet<String> configBlocks;\n\t\tint exp = 0;\n\t\tString professionReq = null;\n\t\tString tierReq = null;\n\t\t\n\t\tProfessionStats prof = new ProfessionStats(perms, data, config, player.getUniqueId());\n\t\t\n\t\tfor(String p: prof.getProfessions())\n\t\t\tfor (String t: prof.getTiers())\n\t\t\t{\n\t\t\t\ttry { configBlocks = config.getConfigurationSection(\"breakBlocks.\" + p + \".\" + t).getKeys(false); }\n\t\t\t\tcatch (NullPointerException e)\n\t\t\t\t{ continue; }\n\t\t\t\t\n\t\t\t\tfor (String b: configBlocks)\n\t\t\t\t\tif (event.getBlock().getType().toString().equalsIgnoreCase(b))\n\t\t\t\t\t{\n\t\t\t\t\t\texp = config.getInt(\"breakBlocks.\" + p + \".\" + t + \".\" + b);\n\t\t\t\t\t\tprofessionReq = p;\n\t\t\t\t\t\ttierReq = t;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t}\n\t\t\n\t\t//If not found, nothing to do here.\n\t\tif (professionReq == null || tierReq == null)\n\t\t{\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t//If the player doesn't have at least the tier, cancel the event.\n\t\tlong place_cooldown = config.getLong(\"place_cooldown\");\n\t\t\n\t\tif (!prof.hasTier(professionReq, tierReq))\n\t\t{\n\t\t\tplayer.sendMessage(ChatColor.RED + \"You aren't skilled enough to break that!\");\n\t\t\tevent.setCancelled(true);\n\t\t}\n\t\t//Otherwise award some experience\n\t\telse if ((!event.getBlock().hasMetadata(\"timeplaced\") \n\t\t\t\t|| System.currentTimeMillis() - getMetadataLong(event.getBlock(), \"timeplaced\") > place_cooldown)\n\t\t\t\t&& !prof.isPracticeFatigued(professionReq))\n\t\t\taddExperience(player, professionReq, exp);\n\t}", "private void loadBlockConfig(List<Element> blocks) {\n\t\tthis.blockConfigs = new ArrayList<BlockConfig>();\n\t\tfor (Element e : blocks) {\n\t\t\tString className = e.attributeValue(\"className\");\n\t\t\tint w = Integer.parseInt(e.attributeValue(\"w\"));\n\t\t\tint h = Integer.parseInt(e.attributeValue(\"h\"));\n\t\t\tint x = Integer.parseInt(e.attributeValue(\"x\"));\n\t\t\tint y = Integer.parseInt(e.attributeValue(\"y\"));\n\t\t\tblockConfigs.add(new BlockConfig(className, w, h, x, y));\n\t\t}\n\t}", "public BlockType getType()\n {\n return blockType;\n }", "private void loadMapBlockNode(MapInfor map, Node mapNode, int cNumber,\n\t\t\tint rNumber) {\n\n\t\tMapBlock blk = map.getBlock(cNumber, rNumber);\n\n\t\tNodeList secondList = mapNode.getChildNodes();\n\t\tfor (int k = 0; k < secondList.getLength(); k++) {\n\t\t\tNode secondChildren = secondList.item(k);\n\n\t\t\tif (secondChildren instanceof Element) {\n\t\t\t\tif (((Element) secondChildren).getTagName()\n\t\t\t\t\t\t.compareToIgnoreCase(MapSave.FIELD_BLOCK_COLUMN_NUMBER) == 0) {\n\t\t\t\t\tblk.setLocationX(Integer.parseInt(secondChildren\n\t\t\t\t\t\t\t.getTextContent()));\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (((Element) secondChildren).getTagName()\n\t\t\t\t\t\t.compareToIgnoreCase(MapSave.FIELD_BLOCK_ROW_NUMBER) == 0) {\n\t\t\t\t\tblk.setLocationY(Integer.parseInt(secondChildren\n\t\t\t\t\t\t\t.getTextContent()));\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (((Element) secondChildren).getTagName()\n\t\t\t\t\t\t.compareToIgnoreCase(MapSave.FIELD_LAND_TYPE) == 0) {\n\t\t\t\t\tblk.setLand(LandType.valueOf(secondChildren\n\t\t\t\t\t\t\t.getTextContent()));\n\t\t\t\t\tSystem.out.println(\"the block[\" + cNumber + \"][\" + rNumber\n\t\t\t\t\t\t\t+ \"]'s land\" + \"is \"\n\t\t\t\t\t\t\t+ secondChildren.getTextContent());\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (((Element) secondChildren).getTagName()\n\t\t\t\t\t\t.compareToIgnoreCase(MapSave.FIELD_INOUT_TYPE) == 0) {\n\t\t\t\t\tblk.setInOut(InOutType.valueOf(secondChildren\n\t\t\t\t\t\t\t.getTextContent()));\n//\t\t\t\t\tSystem.out.println(\"the block[\" + cNumber + \"][\" + rNumber\n//\t\t\t\t\t\t\t+ \"]'s inOutType\" + \"is \"\n//\t\t\t\t\t\t\t+ secondChildren.getTextContent());\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\telse if (((Element) secondChildren).getTagName()\n\t\t\t\t\t\t.compareToIgnoreCase(MapSave.FIELD_ITEM) == 0) {\n\t\t\t\t\t\n\t\t\t\t\tNodeList itemNodeList = secondChildren.getChildNodes();\n\t\t\t\t\tfor (int i = 0; i < itemNodeList.getLength(); ++i) {\n\t\t\t\t\tNode children = itemNodeList.item(i);\n\t\t\t\t\t//children is either a name is characters or monster or fixedItem\n\t\t\t\t\tif (children instanceof Element) {\n\t\t\t\t\t\tif (((Element) children).getTagName().compareToIgnoreCase(\"characters\")==0){\n\t\t\t\t\t\t\tCharacterLoad load = new CharacterLoad();\n\t\t\t\t blk.setRole(load.loadCharacter((Element)children,blk));\n\t\t\t\t\t\t}else if (((Element) children).getTagName().compareToIgnoreCase(\"monster\")==0){\n\t\t\t\t\t\t\tMonsterLoad load = new MonsterLoad();\n\t\t\t\t\tblk.setRole(load.loadMonster((Element)children,blk));\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}else if (((Element) children).getTagName().compareToIgnoreCase(\"fixedItem\")==0){\n\t\t\t\t\t\t\tFixedItemLoad load = new FixedItemLoad();\n\t\t\t\t\t\t\tload.loadFixedItem((Element)children, blk);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n//\t\t\t\t\tblk.setRole((InOutType.valueOf(secondChildren\n//\t\t\t\t\t\t\t.getTextContent()));\n//\t\t\t\t\tSystem.out.println(\"the block[\" + cNumber + \"][\" + rNumber\n//\t\t\t\t\t\t\t+ \"]'s inOutType\" + \"is \"\n//\t\t\t\t\t\t\t+ secondChildren.getTextContent());\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tcontinue;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Test\n\tpublic void testLocalLinkHTML(){\n\t\t\n \tFile xml = new File(testData,\"html/htmlsidekick.html\");\n \t\n \tBuffer b = TestUtils.openFile(xml.getPath());\n\t\t\n \t// wait for end of parsing\n \tdoInBetween(new Runnable(){\n \t\t\tpublic void run(){\n \t\t\t\taction(\"sidekick.parser.html-switch\",1);\n \t\t}}, \n \t\tmessageOfClassCondition(sidekick.SideKickUpdate.class),\n \t\t10000);\n\t\t\n \taction(\"sidekick-tree\");\n \tTestUtils.view().getTextArea().scrollTo(893,false);\n \tgotoPositionAndWait(893);\n \tPause.pause(2000);\n \tHyperlinkSource src = new HTMLHyperlinkSource();\n\t\tfinal Hyperlink h = src.getHyperlink(b, 893);\n\t\tassertNotNull(h);\n\t\tassertTrue(h instanceof jEditOpenFileAndGotoHyperlink);\n\t\tassertEquals(29, h.getStartLine());\n\t\tassertEquals(29, h.getEndLine());\n\t\tGuiActionRunner.execute(new GuiTask() {\n\t\t\t\n\t\t\t@Override\n\t\t\tprotected void executeInEDT() throws Throwable {\n\t\t\t\th.click(TestUtils.view());\n\t\t\t}\n\t\t});\n\t\t\n\t\t// moved same file, but below\n\t\tassertEquals(b.getPath(),TestUtils.view().getBuffer().getPath());\n\t\tassertEquals(114, TestUtils.view().getTextArea().getCaretLine());\n\t\t\n\t\tTestUtils.close(TestUtils.view(), b);\n\t}", "protected boolean isImport() {\n\t\t// Overrides\n\t\treturn false;\n\t}", "@Test\n\tpublic void testLocalLinkHTMLAsXML(){\n \tFile xml = new File(testData,\"html/htmlsidekick.html\");\n \t\n \tBuffer b = TestUtils.openFile(xml.getPath());\n\t\t\n \t// wait for end of parsing\n \tdoInBetween(new Runnable(){\n \t\t\tpublic void run(){\n \t\t\t\taction(\"sidekick.parser.xml-switch\",1);\n \t\t}}, \n \t\tmessageOfClassCondition(sidekick.SideKickUpdate.class),\n \t\t10000);\n\t\t\n \taction(\"sidekick-tree\");\n \tPause.pause(2000);\n\n \tHyperlinkSource src = new HTMLHyperlinkSource();\n\t\tfinal Hyperlink h = src.getHyperlink(TestUtils.view().getBuffer(), 893);\n\t\tassertNotNull(h);\n\t\tassertTrue(h instanceof jEditOpenFileAndGotoHyperlink);\n\t\tassertEquals(29, h.getStartLine());\n\t\tassertEquals(29, h.getEndLine());\n\t\tGuiActionRunner.execute(new GuiTask() {\n\t\t\t\n\t\t\t@Override\n\t\t\tprotected void executeInEDT() throws Throwable {\n\t\t\t\th.click(TestUtils.view());\n\t\t\t}\n\t\t});\n\t\t\n\t\t// moved same file, but below\n\t\tassertEquals(b.getPath(),TestUtils.view().getBuffer().getPath());\n\t\tassertEquals(114, TestUtils.view().getTextArea().getCaretLine());\n\t\t\n\t\tTestUtils.close(TestUtils.view(), b);\n\t}", "@ASTNodeAnnotation.Child(name=\"Block\")\n public Block getBlock() {\n return (Block) getChild(0);\n }", "public void setBlock(Block newBlock) {\n\t\tthis.block = newBlock;\n\t}", "public importProduct() {\n initComponents();\n Sql s = new Sql();\n\n s.Select_MaterialItem(Materials_combox);\n s.loadcombo(item_combox);\n s.Select_BigItem(Bigitem_combox);\n }", "public boolean select(String element) {\n \t\t\t\tif (element.startsWith(\"import\")) //$NON-NLS-1$\n \t\t\t\t\treturn true;\n \t\t\t\telse\n \t\t\t\t\treturn false;\n \t\t\t}", "protected final Model loadBlockModel(BlockRenderOptions blockRenderOptions) {\n if (blockRenderOptions.getBlockData().isType(Material.AIR)) {\n return new Model(); // air. No model.\n }\n\n BlockRenderProvider oldProvider = this.currProvider;\n try {\n // Some blocks are handled by providers\n this.currProvider = BlockRenderProvider.get(blockRenderOptions.getBlockData());\n if (this.currProvider != null) {\n Model model = this.currProvider.createModel(this, blockRenderOptions);\n if (model != null) {\n return model;\n }\n }\n\n String blockName = blockRenderOptions.lookupModelName();\n\n // Find the blockstate\n BlockModelState state = this.openGsonObject(BlockModelState.class, ResourceType.BLOCKSTATES, blockName);\n\n // Find out the variant that is used\n List<BlockModelState.Variant> variants;\n if (state != null) {\n // Figure out from the blockstate what variant to use\n variants = state.findVariants(blockRenderOptions);\n } else {\n // Default variant based on block name\n BlockModelState.Variant variant = new BlockModelState.Variant();\n variant.modelName = blockName;\n variants = Arrays.asList(variant);\n }\n\n // If no variants are found, render nothing (AIR)\n if (variants.isEmpty()) {\n return new Model();\n }\n\n // Not multipart, then simply load the one variant\n if (variants.size() == 1) {\n return this.loadBlockVariant(variants.get(0), blockRenderOptions);\n }\n\n // Add all variant elements to the model\n Model result = new Model();\n boolean succ = true;\n for (BlockModelState.Variant variant : variants) {\n Model subModel = this.loadBlockVariant(variant, blockRenderOptions);\n if (subModel != null) {\n result.elements.addAll(subModel.elements);\n } else {\n succ = false;\n }\n }\n if (!succ && result.elements.isEmpty()) {\n return null;\n } else {\n return result;\n }\n } finally {\n this.currProvider = oldProvider; // restore\n }\n }", "public Block getBlock()\n {\n return block;\n }", "public final EObject ruleTopLevelImport() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_0=null;\n Token lv_importURI_1_0=null;\n\n\n \tenterRule();\n\n try {\n // InternalNgt.g:210:2: ( (otherlv_0= 'import' ( (lv_importURI_1_0= RULE_STRING ) ) ) )\n // InternalNgt.g:211:2: (otherlv_0= 'import' ( (lv_importURI_1_0= RULE_STRING ) ) )\n {\n // InternalNgt.g:211:2: (otherlv_0= 'import' ( (lv_importURI_1_0= RULE_STRING ) ) )\n // InternalNgt.g:212:3: otherlv_0= 'import' ( (lv_importURI_1_0= RULE_STRING ) )\n {\n otherlv_0=(Token)match(input,15,FOLLOW_5); \n\n \t\t\tnewLeafNode(otherlv_0, grammarAccess.getTopLevelImportAccess().getImportKeyword_0());\n \t\t\n // InternalNgt.g:216:3: ( (lv_importURI_1_0= RULE_STRING ) )\n // InternalNgt.g:217:4: (lv_importURI_1_0= RULE_STRING )\n {\n // InternalNgt.g:217:4: (lv_importURI_1_0= RULE_STRING )\n // InternalNgt.g:218:5: lv_importURI_1_0= RULE_STRING\n {\n lv_importURI_1_0=(Token)match(input,RULE_STRING,FOLLOW_2); \n\n \t\t\t\t\tnewLeafNode(lv_importURI_1_0, grammarAccess.getTopLevelImportAccess().getImportURISTRINGTerminalRuleCall_1_0());\n \t\t\t\t\n\n \t\t\t\t\tif (current==null) {\n \t\t\t\t\t\tcurrent = createModelElement(grammarAccess.getTopLevelImportRule());\n \t\t\t\t\t}\n \t\t\t\t\tsetWithLastConsumed(\n \t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\"importURI\",\n \t\t\t\t\t\tlv_importURI_1_0,\n \t\t\t\t\t\t\"org.eclipse.xtext.common.Terminals.STRING\");\n \t\t\t\t\n\n }\n\n\n }\n\n\n }\n\n\n }\n\n\n \tleaveRule();\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "public void openStartTag() throws XMLStreamException {\n write(HtmlObject.HtmlMarkUp.OPEN_BRACKER);\n }", "public void testFetchBlocks() throws IOException {\n\t\tLocalRawDataBlockList list = new LocalRawDataBlockList();\r\n\t\tbyte[] data = new byte[512];\r\n\t\tint offset = 0;\r\n\r\n\t\tLittleEndian.putInt(data, offset, -3); // for the BAT block itself\r\n\t\toffset += LittleEndianConsts.INT_SIZE;\r\n\r\n\t\t// document 1: is at end of file already; start block = -2\r\n\t\t// document 2: has only one block; start block = 1\r\n\t\tLittleEndian.putInt(data, offset, -2);\r\n\t\toffset += LittleEndianConsts.INT_SIZE;\r\n\r\n\t\t// document 3: has a loop in it; start block = 2\r\n\t\tLittleEndian.putInt(data, offset, 2);\r\n\t\toffset += LittleEndianConsts.INT_SIZE;\r\n\r\n\t\t// document 4: peeks into document 2's data; start block = 3\r\n\t\tLittleEndian.putInt(data, offset, 4);\r\n\t\toffset += LittleEndianConsts.INT_SIZE;\r\n\t\tLittleEndian.putInt(data, offset, 1);\r\n\t\toffset += LittleEndianConsts.INT_SIZE;\r\n\r\n\t\t// document 5: includes an unused block; start block = 5\r\n\t\tLittleEndian.putInt(data, offset, 6);\r\n\t\toffset += LittleEndianConsts.INT_SIZE;\r\n\t\tLittleEndian.putInt(data, offset, -1);\r\n\t\toffset += LittleEndianConsts.INT_SIZE;\r\n\r\n\t\t// document 6: includes a BAT block; start block = 7\r\n\t\tLittleEndian.putInt(data, offset, 8);\r\n\t\toffset += LittleEndianConsts.INT_SIZE;\r\n\t\tLittleEndian.putInt(data, offset, 0);\r\n\t\toffset += LittleEndianConsts.INT_SIZE;\r\n\r\n\t\t// document 7: includes an XBAT block; start block = 9\r\n\t\tLittleEndian.putInt(data, offset, 10);\r\n\t\toffset += LittleEndianConsts.INT_SIZE;\r\n\t\tLittleEndian.putInt(data, offset, -4);\r\n\t\toffset += LittleEndianConsts.INT_SIZE;\r\n\r\n\t\t// document 8: goes off into space; start block = 11;\r\n\t\tLittleEndian.putInt(data, offset, 1000);\r\n\t\toffset += LittleEndianConsts.INT_SIZE;\r\n\r\n\t\t// document 9: no screw ups; start block = 12;\r\n\t\tint index = 13;\r\n\r\n\t\tfor (; offset < 508; offset += LittleEndianConsts.INT_SIZE) {\r\n\t\t\tLittleEndian.putInt(data, offset, index++);\r\n\t\t}\r\n\t\tLittleEndian.putInt(data, offset, -2);\r\n\t\tlist.add(new RawDataBlock(new ByteArrayInputStream(data)));\r\n\t\tlist.fill(1);\r\n\t\tint[] blocks = { 0 };\r\n\t\tBlockAllocationTableReader table = new BlockAllocationTableReader(\r\n\t\t POIFSConstants.SMALLER_BIG_BLOCK_SIZE_DETAILS, 1, blocks, 0, -2, list);\r\n\t\tint[] start_blocks = { -2, 1, 2, 3, 5, 7, 9, 11, 12 };\r\n\t\tint[] expected_length = { 0, 1, -1, -1, -1, -1, -1, -1, 116 };\r\n\r\n\t\tfor (int j = 0; j < start_blocks.length; j++) {\r\n\t\t\ttry {\r\n\t\t\t\tListManagedBlock[] dataBlocks = table.fetchBlocks(start_blocks[j], -1, list);\r\n\r\n\t\t\t\tif (expected_length[j] == -1) {\r\n\t\t\t\t\tfail(\"document \" + j + \" should have failed, but found a length of \"\r\n\t\t\t\t\t\t\t+ dataBlocks.length);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tassertEquals(expected_length[j], dataBlocks.length);\r\n\t\t\t\t}\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tif (expected_length[j] == -1) {\r\n\r\n\t\t\t\t\t// no problem, we expected a failure here\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthrow e;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static boolean block(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"block\")) return false;\n boolean r;\n Marker m = enter_section_(b, l, _COLLAPSE_, BLOCK, \"<block>\");\n r = config_block(b, l + 1);\n if (!r) r = model_block(b, l + 1);\n if (!r) r = type_alias(b, l + 1);\n if (!r) r = enum_block(b, l + 1);\n exit_section_(b, l, m, r, false, null);\n return r;\n }", "public static boolean model_block_statement(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"model_block_statement\")) return false;\n if (!nextTokenIs(b, \"<model block statement>\", ENTITY_NAME, MODEL_BLOCK_ATTRIBUTE_NAME)) return false;\n boolean r;\n Marker m = enter_section_(b, l, _NONE_, MODEL_BLOCK_STATEMENT, \"<model block statement>\");\n r = model_field_definition(b, l + 1);\n if (!r) r = model_attribute(b, l + 1);\n exit_section_(b, l, m, r, false, null);\n return r;\n }", "public void loadLiabilitiesBuildingBlocks() {\n\t\tif (this.loadLiabilityTypesFromDB) {\n\t\t\tthis.liabilitiesTypeBuildingBlocks = this.buildingBlockService.findBuildingBlocksbyBranchIdAndBuildingBlockType(this.sessionBean.getCurrentBranch()\n\t\t\t\t\t.getId(), BuildingBlockConstant.LIABILITY_TYPE);\n\t\t\tthis.loadLiabilityTypesFromDB = false;\n\t\t}\n\t}", "public boolean //##78\n divideHirIntoBasicBlocks()\n {\n HirIterator lHirIterator;\n HIR lNode, // Current node.\n lParent; // Parent of lNode.\n coins.sym.Sym lSym;\n FlowAnalSym lFlowAnalSym;\n int lNodeIndex;\n Label lLabel, lSubpBlockLabel;\n BBlock lBBlock; // BBlock most recently created.\n IrList lLabelDefList;\n Subp lSubp;\n BlockStmt lSubpBody; // Block as the HIR body of subprogram.\n //## LabeledStmt lSubpBodyWithLabel;\n\n if (fDbgLevel > 0)\n ioRoot.dbgFlow.print(2, \"divideHirIntoBasicBlocks \",\n flowRoot.subpUnderAnalysis.getName() + \" fIrIndexMin \" +\n fIrIndexMin + \" Max \" + fIrIndexMax); //##62\n recordBBlock(bblock(), 0); //Avoid IndexOutofRangeException\n //##62 BEGIN\n lSubp = fSubpDefinition.getSubpSym();\n fNodeCount = fIrIndexMax - fIrIndexMin + 1;\n fFlowIrLinkSize = fNodeCount + 1; //##62\n fFlowIrLink = new IR[fFlowIrLinkSize];\n lBBlock = null; // Record a basic block created.\n boolean lImmediatelyAfterJumpReturn = false; //##63\n //##62 END\n\n //-- Assign index number to symbols actually used in current\n // subprogram setting index to each node.\n // Make label reference list for labels that are explicitly\n // refered as jump target.\n for (lHirIterator = hirRoot.hir.hirIterator(fSubpDefinition.getHirBody());\n lHirIterator.hasNext(); ) {\n lNode = lHirIterator.next();\n if (lNode != null) {\n if (fDbgLevel > 3)\n ioRoot.dbgFlow.print(6, \" lNode\", lNode.toStringShort());\n lSym = lNode.getSym();\n if (lSym != null) {\n if (lSym instanceof FlowAnalSym) {\n lFlowAnalSym = (FlowAnalSym)lSym;\n if (lFlowAnalSym.getIndex() == 0) {\n recordSym(lFlowAnalSym); //##62\n }else {\n if (fDbgLevel > 0)\n flow.dbg(6, \" \" + lFlowAnalSym.getName()+\n \":\" + lFlowAnalSym.getIndex());\n }\n }\n }\n\n //##63 BEG\n lNodeIndex = lNode.getIndex();\n //##78 BEGIN\n if (lNodeIndex < fIrIndexMin) {\n ioRoot.msgRecovered.put(5010, \"\\nNode index \" + lNodeIndex\n + \" should be greater or equal to \" + fIrIndexMin\n + \" in \" + fSubpDefinition.getSubpSym().getName()\n + \"\\n Skip the flow analysis and the optimization.\");\n return false;\n }\n //##78 END\n fFlowIrLink[lNodeIndex - fIrIndexMin] = lNode; //##60\n fBBlockOfIR[lNodeIndex - fIrIndexMin] = lBBlock; //##60\n if (lImmediatelyAfterJumpReturn &&\n (lNode.getOperator() != HIR.OP_LABELED_STMT)) {\n continue; // Control does not come here.\n }\n lImmediatelyAfterJumpReturn = false;\n //##63 END\n switch (lNode.getOperator()) {\n case HIR.OP_LABELED_STMT:\n lBBlock = bblock((LabeledStmt)lNode); // Create a basic block.\n fBBlockOfIR[lNodeIndex - fIrIndexMin] = lBBlock; // Store again. //##65\n //## lSubp.addBBlock(lBBlock); // DELETE\n lLabelDefList = ((LabeledStmt)lNode).getLabelDefList();\n if (lLabelDefList != null) {\n for (Iterator lIterator = lLabelDefList.iterator();\n lIterator.hasNext(); ) { // Set link between HIR & Label.\n lLabel = ((coins.ir.hir.LabelDef)(lIterator.next())).getLabel();\n //##60 lLabel.setBBlock(lBBlock);\n flowRoot.fSubpFlow.setBBlock(lLabel, lBBlock); //##60\n }\n }\n lImmediatelyAfterJumpReturn = false;\n break;\n // begin\n case HIR.OP_CONTENTS:\n lParent = (HIR)lNode.getParent();\n if (lParent.getOperator() == HIR.OP_ASSIGN)\n lBBlock.setFlag(BBlock.HAS_PTR_ASSIGN, true);\n case HIR.OP_ARROW:\n case HIR.OP_ADDR:\n lBBlock.setFlag(BBlock.USE_PTR, true);\n break;\n case HIR.OP_QUAL:\n lBBlock.setFlag(BBlock.HAS_STRUCT_UNION, true);\n break;\n case HIR.OP_CALL:\n lBBlock.setFlag(BBlock.HAS_CALL, true);\n //##62 hasCallInSubp = true; //##62\n //##63 BEGIN\n fCallCount++; //##62\n fSubtreesContainingCall.add(lNode);\n for (HIR lHir = (HIR)lNode.getParent(); lHir != null;\n lHir = (HIR)lHir.getParent()) {\n fSubtreesContainingCall.add(lNode);\n }\n //##63 END\n break;\n //##62 BEGIN\n case HIR.OP_ASSIGN:\n fAssignCount++;\n break;\n case HIR.OP_JUMP:\n lLabel = ((JumpStmt)lNode).getLabel();\n //##62 lLabel.addToHirRefList((LabelNode)((JumpStmt)lNode).getChild1());\n lImmediatelyAfterJumpReturn = true; //##63\n ((BBlockImpl)lBBlock).fControlTransfer = lNode; //##73\n break;\n case HIR.OP_RETURN: //##63\n lImmediatelyAfterJumpReturn = true; //##63\n ((BBlockImpl)lBBlock).fControlTransfer = lNode; //##73\n break;\n case HIR.OP_SWITCH:\n SwitchStmt lSwitchStmt = (SwitchStmt)lNode;\n int lCaseCount = lSwitchStmt.getCaseCount();\n for (int i = 0; i < lCaseCount; i++) {\n lLabel = lSwitchStmt.getCaseLabel(i);\n //##62 if (lLabel != null)\n //##62 lLabel.addToHirRefList(lSwitchStmt.getCaseLabelNode(i));\n }\n //##62 lSwitchStmt.getDefaultLabel().addToHirRefList((LabelNode)((SwitchStmt)\n //##62 lNode).getDefaultLabelNode());\n //##62 END\n default:\n break;\n // end\n } // End of switch\n //##63 lNodeIndex = lNode.getIndex();\n //##60 fFlowIrLink[lNodeIndex - fIndexMin] =\n //##60 (FlowIrLinkCell)(new FlowIrLinkCellImpl(lNode, lBBlock, 0));\n //##63 fFlowIrLink[lNodeIndex - fIrIndexMin] = lNode; //##60\n //##63 fBBlockOfIR[lNodeIndex - fIrIndexMin] = lBBlock; //##60\n } // End of if(lNode != null)\n }\n //##62 BEGIN\n fUsedSymCount = fSymExpCount;\n if (fDbgLevel > 0)\n ioRoot.dbgFlow.print(2, lSubp.getName() +\n \" Number of\", \"Symbols:\" +\n fUsedSymCount + \" Nodes:\" + fNodeCount + \" \");\n fExpVectorBitCount = fUsedSymCount + 2; //##60\n fExpVectorWordCount = (fExpVectorBitCount + 63) / 64; //##60\n\n int lNodeCount = fIrIndexMax - fIrIndexMin;\n if (lNodeCount > fNodeCountLim1)\n fComplexity = 2;\n if (fSymExpCount > fSymCountLim1)\n fComplexity = 2;\n if (lNodeCount > fNodeCountLim2)\n fComplexity = 3;\n if (fSymExpCount > fSymCountLim2)\n fComplexity = 3;\n //##62 END\n if (fDbgLevel > 0) {\n //### fComplexity = 3; //###\n flowRoot.ioRoot.dbgFlow.print(1, \"\\n Node count \" +\n lNodeCount + \" BBlock count \" + getNumberOfBBlocks()+\n \" UsedSymCount \" + getUsedSymCount() + \" SymExpCount \" + getSymExpCount()\n + \"\\n AssignCount \" + getAssignCount()\n + \" CallCount \" + getCallCount()); //##62\n ioRoot.dbgFlow.print(1, \"\\nComplexity level of \",\n getSubpSym().getName() + \" is \" + fComplexity);\n if (fComplexity > 1)\n ioRoot.dbgFlow.print(1, \"\\n Simplify alias analysis.\");\n if (fComplexity > 2)\n ioRoot.dbgFlow.print(1, \"\\n Simplify data flow analysis.\");\n }\n setComputedFlag(CF_BBLOCK); //##60\n return true; //##78\n }", "@Override\n public TransferMode startBlock(Block block) {\n if (block.type == 1) {\n // return SIMPLE mode to received the payload as \"payload()\" calls\n return TransferMode.SIMPLE;\n } else {\n // return NULL to discard the payload of this block\n return TransferMode.NULL;\n }\n }" ]
[ "0.5411708", "0.5154087", "0.49411237", "0.4879486", "0.48662022", "0.4806047", "0.4780296", "0.47273478", "0.4721336", "0.47065926", "0.46461958", "0.4635939", "0.46200696", "0.46110645", "0.4590215", "0.45746997", "0.4553526", "0.45489812", "0.45445338", "0.45445338", "0.45445338", "0.45445338", "0.45336995", "0.45274103", "0.4523151", "0.4492454", "0.44815683", "0.4480934", "0.44807646", "0.4474595", "0.44742575", "0.44737715", "0.44656014", "0.44625425", "0.446068", "0.44603613", "0.445524", "0.44501793", "0.4441742", "0.4439988", "0.44386855", "0.44382182", "0.44337553", "0.4433481", "0.44274917", "0.4420706", "0.44195768", "0.44148502", "0.44146982", "0.44107455", "0.43968916", "0.43897557", "0.43863186", "0.43792227", "0.43752128", "0.437504", "0.437504", "0.43704802", "0.4367549", "0.43631995", "0.43519065", "0.43432614", "0.4340936", "0.43398392", "0.43389776", "0.43389076", "0.4332207", "0.43319434", "0.43221113", "0.43210393", "0.4319433", "0.43140647", "0.43092683", "0.43083033", "0.4307214", "0.4298156", "0.42918143", "0.4286495", "0.42832088", "0.42815393", "0.4280422", "0.4279804", "0.42751095", "0.42703235", "0.42700547", "0.42688417", "0.42637625", "0.42635667", "0.4263509", "0.4263208", "0.42557523", "0.42509937", "0.42499495", "0.42469832", "0.42455608", "0.42452005", "0.42335624", "0.42322546", "0.42269906", "0.4221382" ]
0.8427594
0
JAVAadded data provider for test method
@DataProvider(name = "blockImportDataProvider") public static Object[][] blockImportDataProvider() throws Exception { return new Object[][] { {BlockImportMode.PRESERVE}, {BlockImportMode.MERGE}, }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@DataProvider\r\n\t\t public Object[][] getTestData()\r\n\t\t\t{\r\n\t\t\t \r\n\t\t\t\treturn TestUtil.getData(suiteProductDescPageXls,this.getClass().getSimpleName());\r\n\t\t\t}", "@DataProvider(name = \"TestDataMahindra\")\n\tpublic Object[][] amazonProviderMethod() {\n\t\treturn new Object[][] { { \"Club Mahindra\",\"Some Title\" ,\"No Comments because the place is awesome\",\"https://www.tripadvisor.in/\"}};\n\t}", "@DataProvider\n public Object[][] Data() \n {\n return new Object[][]\n {\n {\"a\" ,\"aaaa\" },\n { \"b\" ,\"bbb\"},\n {\"c\" ,\"ccc\"}\n \n };\n }", "@Test\n void loadData() {\n }", "public void testGetBasedata() {\n }", "public void testSetBasedata() {\n }", "@DataProvider\r\npublic Object[][] getData()\r\n{\n\tObject[][] data=new Object[3][3];\r\n\tdata[0][0]=\"1abcd\";\r\n\tdata[0][1]=\"1xyz\";\r\n\tdata[0][2]=\"1dsaf\";\r\n\t\r\n\t\r\n\tdata[1][0]=\"2abcd\";\r\n\tdata[1][1]=\"2xyz\";\r\n\tdata[1][2]=\"2dsaf\";\r\n\t\r\n\tdata[2][0]=\"3abcd\";\r\n\tdata[2][1]=\"3xyz\";\r\n\tdata[2][2]=\"3dsaf\";\r\n\t\r\n\t\r\n\t\r\n\t\r\n\treturn data;\r\n\t\r\n\t\r\n}", "@DataProvider\r\n public Object[][] testData() {\r\n\r\n return new Object[][]{\r\n {\"Hidden\", \"Archived\"},\r\n {\"Required\", \"Draft\"},\r\n {\"Hidden\", \"Public\"}\r\n };\r\n }", "@DataProvider(name=\"BookData\")\n public Object[][] getData()\n {\n\n return new Object[][] {{\"once\", \"1111\"},{\"twice\",\"2222\"},{\"thrice\",\"3333\"}};\n }", "@DataProvider\n public Object[][] getData()\n {\n\t Object[][] data=new Object[1][6];\n\t //0th row\n\t data[0][0]=\"Arun Raja\";\n\t data[0][1]=\"A\";\n\t data[0][2]=\"[email protected]\";\n\t data[0][3]=\"Test Lead\";\n\t data[0][4]=\"8971970444\";\n\t data[0][5]=\"Attra\";\n\t return data;\n }", "public static void populateData() {\n\n }", "DataFactory getDataFactory();", "@DataProvider(name = \"populateTestDataProvider\")\n public Object[][] populateTestDataProvider() {\n return new Object[][] { { true }, { false } };\n }", "@DataProvider(name=\"Unverified test data\")\n\t\n\tpublic String[][] getTestData()\n\t {\n\t\tlog.info(\"reading exceldata\");\n\t\tString[][] testRecords=getData(\"Other.xlsx\", \"Unverified\");\n\t\treturn testRecords;\n\t }", "@DataProvider\r\n\tpublic static Object[][] loginTestData() {\r\n\t\t\r\n\t\tIExcelDataManager edm = new AddMultEmpExcel(\"testdata/OHRMTestData-Priya.xlsx\", \"OHRM-New-Emp-Data\", \"NewEmpData\");\r\n\t\treturn edm.getData();\r\n\t\t\r\n\t\t// A new overload in case excel has only one sheet\r\n\t\t//tableToReturn = edm.getExcelData(\"filePath\" , \"tableName\");\r\n\t\t\r\n\t\t// tableToReturn.length ---- Gives us row count\r\n\t\t/*\r\n\t\tfor(int i=0;i<tableToReturn.length;i++)\r\n\t\t{\r\n\t\t\t//tableToReturn[0].length ---- Col count in 0th row\r\n\t\t\t//for(int j=0;j<tableToReturn[i].length;j++)\r\n\t\t\t//{\r\n\t\t\t\t\r\n\t\t\t\tif(tableToReturn[i][0]==null)\r\n\t\t\t\t\tFirstName = \"\";\r\n\t\t\t\telse \r\n\t\t\t\t\tFirstName= tableToReturn[i][0].toString();\r\n\t\t\t\t\r\n\t\t\t\tif(tableToReturn[i][1]==null)\r\n\t\t\t\t\tMiddleName = \"\";\r\n\t\t\t\telse \r\n\t\t\t\t\tMiddleName = tableToReturn[i][1].toString();\r\n\t\t\t\t\r\n\t\t\t\tif(tableToReturn[i][1]==null)\r\n\t\t\t\t\tLastName = \"\";\r\n\t\t\t\telse \r\n\t\t\t\t\tLastName = tableToReturn[i][1].toString();\r\n\t\t}\r\n\t\t*/\r\n\t\t\r\n\t}", "@DataProvider(name=\"testdata\")\n\tpublic Object[][] getData()\n\t{\t\n\t\tString projectPath = System.getProperty(\"user.dir\");\n\t\tObject[][] data= testData(projectPath+\"/excel/data.xlsx\", \"Sheet1\");\n\t\treturn data;\n\t}", "@Override\n public BaseDataProvider creatDataProvider() {\n return null;\n }", "private void createTestData(String lang) {\n CreateCallback<ShoppingList> callback = new CreateCallback<ShoppingList>() {\n @Override\n public void onSuccess(ShoppingList object) {\n //refresh data\n mainFragment.setShownShoppingListsToArchived(false);\n }\n\n @Override\n public void onFailure() {\n //not used here\n }\n };\n (new TestData()).createTestData(getContentResolver(), lang, callback);\n }", "@Test\n public void checkDataValue() {\n\n manager.getAllExpense(new DatabaseCallback() {\n @Override\n public void onDataLoaded(List<ExpenseEntity> lists) {\n assertEquals(lists.size(),2);\n }\n\n @Override\n public void onAdded() {\n\n }\n\n @Override\n public void onQueryAll() {\n\n }\n });\n\n }", "@Test\n @UseDataProvider(\"dataWithIncorrectDataType\")\n public void incorrectDataTypeInDataProvider(int executionCount, String string) {\n }", "@DataProvider(name = \"test1\")\n\tpublic Object[][] createData1() {\n\t return new Object[][] {\n\t { \"Cedric\", new Integer(36) },\n\t { \"Anne\", new Integer(37)},\n\t };\n\t}", "@Test (dataProvider=\"testdata\")\r\n\r\n\r\n\r\n\t //public void testAdd(Integer exp, Inputs i) {\r\n\r\n\t public void testAdd(Integer exp, int a, int b) {\n\r\n\t assertEquals( exp, (Integer) calci.add(a,b));\r\n\r\n\t //fail(\"expected exceotion didn't occur\");\r\n\r\n\t //assertTrue(false);\r\n\r\n\t }", "DataStore getDataStore ();", "@DataProvider\n public Object[][] correctData() {\n return new Object[][]{\n {\"nikol344265\", \"NikolR4551\"}\n };\n }", "@DataProvider ( name = \"AddressSaveOptionTestData\" )\r\n\t\r\n\tpublic static String[][] getAddressSaveOptionTestData(){\r\n\t\t\r\n\t\tString[][] AddressSaveOptionTestData;\r\n\t\t\r\n\t\tAddressSaveOptionTestData = TestDataInput.getMatchedInputTableRowsForApplCodeAndTestDataType(\r\n\t\tAddress.TestDataSheetName,\r\n\t\tTestApplicationParams.getCurrentTestApplication(),\r\n\t\t\"AddressSaveOptionTest\");\r\n\t\t\t\r\n\t\treturn (AddressSaveOptionTestData);\r\n\t\t\r\n\t}", "@DataProvider(name=\"Booksdata\")\n public Object[][] data()\n {\n\t return new Object[][] { {\"teste11\",\"011\"},{\"teset22\",\"022\"},{\"teset33\",\"033\"} };\n }", "void populateData();", "public interface DataProvider<T> {\n T getData(String key);\n}", "@Ignore\n\t\[email protected](dataProvider = \"dp\")\n\t\tprivate void dataProviderWithParameterKey(@ParameterKey(\"key_0\") String param_0, String param_1) {\n\t\t}", "@DataProvider\n\tpublic Object[][] Authentication() throws Exception {\n\t\tExcelUtils_3.setExcelFile(\"D:/Projects/Java Project/ActiTime_Project/src/TestNG_Example_15/TestData.xlsx\",\"Sheet1\");\t\t\n\t\tsTestCaseName = this.toString();\n\t\tSystem.out.println(\"sTestCaseName \" + sTestCaseName );\n\t\t// From above method we get long test case name including package and\n\t\t// class name etc.\n\n\t\t// The below method will refine your test case name, exactly the name\n\t\t// use have used\n\n\t\tsTestCaseName = ExcelUtils_3.getTestCaseName(sTestCaseName);\n\n\t\t// Fetching the Test Case row number from the Test Data Sheet\n\t\t// Getting the Test Case name to get the TestCase row from the Test Data\n\t\t// Excel sheet\n\n\t\tiTestCaseRow = ExcelUtils_3.getRowContains(sTestCaseName, 0);\n\n\t\tObject[][] testObjArray = ExcelUtils_3.getTableArray(\"D:/Projects/Java Project/ActiTime_Project/src/TestNG_Example_15/TestData.xlsx\",\"Sheet1\", iTestCaseRow);\n\n\t\treturn (testObjArray);\n\n\t}", "@Override\n\tpublic void saveTestingData() {\n\t\t\n\t}", "public ParcoursDataService() {\n this.repository = new JeeRepository();\n }", "@Test (dataProvider= \"My data provider\")\r\n\tpublic void TestCalcParamitarized(String in1,String Op, String in2,String Expec){ //.... 1- Parameterized test method -Define method input parameters-\r\n\t\tCalc(in1, Op, in2);\r\n\t\tassertResult(Expec);\t\t\r\n\t}", "private void initData(){\n\n }", "public interface BaseDataProvider {\n String FireFoxProfileFromComputer = \"firefox.profile\";\n String FireFoxLocationFromPC = \"firefox.location.from.pc\";\n String ChromeLocationFromPC = \"chrome.location.from.pc\";\n String LOOPME_BIZ = \"loopme.biz\";\n String propertiesFile = \"src/test/resources/TestData.properties\";\n String APACH_LOG = \"org.apache.commons.logging.Log\";\n String JDK_14_LOGGER = \"org.apache.commons.logging.impl.Jdk14Logger\";\n String SOUCELABS_SELENIUM_VERSION = \"selenium.version\";\n String SOUCELABS_FIREFOXE_VERSION = \"firefox.version\";\n String SOUCELABS_IE_VERSION = \"ie.version\";\n String SOUCELABS_OS_WINDOWS7_PLATFORM = \"os.windows7.platform\";\n String SOUCELABS_MACOS_PLATFORM = \"os.macos.platform\";\n String SOUCELABS_OPERA_VERSION = \"opera.version\";\n String SOUCELABS_SAFARI_VERSION = \"safari.version\";\n String BROWSER_SAFARI = \"safari\";\n String BROWSER_FIREFOX = \"firefox\";\n String BROWSER_CHROME = \"chrome\";\n String BROWSER_INTERNET_EXPLORER= \"ie\";\n\n}", "public void GetDataBaseData() {\n }", "protected void loadData()\n {\n }", "@DataProvider(name = \"data\")\n\tpublic Object[][] testDataSupplier() throws Exception {\n\t\tString filePath = \"C:\\\\Users\\\\rekha\\\\OneDrive\\\\Desktop\\\\CP- SAT\\\\Screenshot\\\\Rediffdata.xlsx\";\n\n\t\t// read excel file using file input stream, using Apache POI\n\t\tFileInputStream fis = new FileInputStream(new File(filePath));\n\t\tXSSFWorkbook wb = new XSSFWorkbook(fis);\n\t\tXSSFSheet sheet = wb.getSheet(\"Sheet1\");\n\n\t\t// calculate total number of rows and columns so that we can iterate over it.\n\t\tint totalNumberOfRows = sheet.getLastRowNum()+1 ;\n\t\tint totalNumberOfCols = sheet.getRow(0).getLastCellNum();\n\n\t\t// create an object array. which will store the test data from excel file\n\t\tObject[][] testdata1 = new Object[totalNumberOfRows][totalNumberOfCols];\n\n\t\tfor (int i = 1; i < totalNumberOfRows; i++) {\n\t\t\tfor (int j = 0; j < totalNumberOfCols; j++) {\n\n\t\t\t\ttestdata1[i][j] = sheet.getRow(i).getCell(j).toString();\n\t\t\t}\n\t\t}\n\t\treturn testdata1;\n\t}", "@Test\n public void testCSesionInicioxData2() {\n System.out.println(\"testCSesionInicioxData\");\n CSesion instance = new CSesion();\n DataProveedor TC = new DataProveedor(\"153\", \"tim123\", \"[email protected]\", \"Tim\", \"Cook\", new Date(60, 10, 1));\n instance.inicioSesion(TC);\n }", "DataProviders retrieveProviders() throws RepoxException;", "DataProviders retrieveProviders() throws RepoxException;", "void setDataProvider(AbstractDataProvider<WorkerDTO> provider);", "public interface loadDataService {\n public List<Row> getComboContent( String sType,String comboType, Map<String,String[]> parameterMap , usersInfo loggedUser) throws Exception;\n public Result getGridContent(PagingObject po, String gridType,Map<String,String[]> parameterMap,String searchText , usersInfo loggedUser,String statusID,String from,String where ) throws Exception;\n public List<listInfo> loadStrukturList(String partID,long langID) throws Exception;\n public finalInfo getOrgInfo(long treeID) throws Exception;\n public categoryFinalInfo getCategoryInfo(long treeID) throws Exception;\n public carriersInfo getCariesInfo(long carryID) throws Exception;\n public carriersInfo getOrganizationInfo(long carryID) throws Exception;\n public List<contact> getOrgContacts(long treeID) throws Exception;\n public person getEmployeeInfo( long empId) throws Exception;\n public List<examples> getExamplesInfo(long exmpID,String langID) throws Exception;\n public List<contact> getPersonContact(long perID) throws Exception;\n public List<docList> loadQRphoto(Connection con, long exmplID,long picType) throws Exception;\n public List<docList> loadPhoto(Connection con, long exmplID,long picType) throws Exception;\n public List<docList> getExamplesPictures(Connection cc, long relID, long relType) throws Exception;\n public List<examples> getExamplesOperation(Connection cc, long relID, long langID) throws Exception;\n public int checkUser(String uName) throws Exception;\n public int checkDictRecord(String text, int dictType,String org,String pos) throws Exception ;\n public usersInfo loadUserInfo(String pID) throws Exception;\n public List<person> loadEmpList( int OrgID) throws Exception;\n public List<Row> getSelectContent( String type, Map<String, String[]> parameterMap , usersInfo loggedUser) throws Exception;\n public List<subjElement> getADVSearchMenuList(String partID) throws Exception;\n public String getADVInfo(String paramID,String paramVal,String val,String cond,String typ)throws Exception;\n public List<listInfo> loadComboForAdvancedSearch(String prmID,long parametr) throws Exception;\n public List<docList> loadRightPanelPhoto(long realID, int iType) throws Exception;\n public List<categoryFinalInfo> getCategoryStructure(long catID, int id) throws Exception;\n}", "@Test\n public void getItemProvider()\n {\n assertNotNull(timeline.getItemProvider());\n }", "private void initData() {\n\n }", "private void addMockData() {\n League league1 = new League(\"1\", \"Premier League\");\n League league2 = new League(\"2\", \"La Liga\");\n League league3 = new League(\"3\", \"Bundesliga\");\n\n leagueList.add(league1);\n leagueList.add(league2);\n leagueList.add(league3);\n }", "PersistentDataHolder getDataHolder();", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "protected abstract void retrievedata();", "@Test\n public void testInsertData() throws Exception {\n//TODO: Test goes here... \n }", "public DatabeneFormatsTestDataProvider() {\n this.basePath = SystemInfo.getCurrentDir();\n }", "public interface DataAccessor {\n}", "public interface IXMLDataProvider {\r\n \r\n /**\r\n * Returns the root node of the XML file.\r\n * @return\tthe root node of the XML file\r\n * @throws TestDataException\tthrown, when parsing errors occur\r\n */\r\n public Node getRootNode() throws Exception;\r\n \r\n /**\r\n * Returns the number of XML data nodes matching the given node name\r\n * @param parent the parent node where to look for child nodes with the specified name\r\n * @param nodeName\tthe node name\r\n * @return\tthe number of nodes in the XML file\r\n * @throws TestDataException\tusually thrown when parsing errors occur\r\n */\r\n public int countNodesByName(Node parent, String nodeName) throws Exception;\r\n \r\n /**\r\n * Returns an array containing all nodes matching thi given node name\r\n * @param parent\tthe parent node where to look for nodes with the specified node name\r\n * @param nodeName\tthe name of the node\r\n * @return\tan array containing all node names, if there are no nodes matching the geven name, NULL is returned\r\n * @throws TestDataException\tusually thrown when parsing errors occur\r\n */\r\n public Node [] getNodesByName(Node parent, String nodeName) throws Exception;\r\n \r\n /**\r\n * Returns the node value of a given node.\r\n * @param node\tthe requested node\r\n * @return\ta string representing the node value\r\n * @throws TestDataException\tusually thrown when parsing errors occur\r\n */\r\n public String getNodeValue(Node node) throws Exception;\r\n \r\n \r\n /**\r\n * Returns the attribute value of a given attribute name within the provided node.\r\n * @param node\tthe node where to look for the attribute\r\n * @param attributeName\tthe name of the attribute to look for\r\n * @return\ta string representing the attribute value\r\n * @throws TestDataException\tusually thrown when parsing errors occur\r\n */\r\n public String getAttributeValue(Node node, String attributeName) throws Exception;\r\n \r\n public int getNumAttributes(Node node) throws Exception ;\r\n \r\n /**\r\n * Parses an XML file specified by the given file name.\r\n * @param fileName\tthe file name of the XML file\r\n * @throws TestDataException\tusually thrown when parsing errors occur\r\n */\r\n public void parse(String fileName) throws Exception;\r\n}", "public interface SomeDataService {\n\n\t// Dummy class to be used as mock interface with Mockito.\n\tint[] retrieveAllData();\n}", "public interface TDgapWsDailyStatProvider extends BaseProvider<TDgapWsDailyStat> {\n PageInfo<Map<String, Object>> list(Map<String, Object> params);\n\n public int stateDailyLog(Date time);\n\n public void testPageHelper();\n\n}", "@Test(dataProviderClass = DataproviderRegistration.class,\n dataProvider= \"RegistrationTestDataProvider\", enabled=true, description=\"Login\",groups={\"Smoke\"},priority=1)\n public void testWithDataProvider( String firstname,String middlename,String lastname,String countryname,\n String address,String phone,\n String currentEmail,\n String currentrepassword,\n String currentPassword) {\n Registration reg = new Registration(driver, firstname, middlename, lastname, countryname, address, phone, currentEmail,\n currentrepassword, currentPassword);\n reg.createScoutaccount();\n reg.createaccount();\n WebDriverWait wait = new WebDriverWait(driver, 10);\n wait.until(ExpectedConditions.urlToBe(\"http://ec2-52-53-181-39.us-west-1.compute.amazonaws.com/sign-in.html\"));\n Assert.assertEquals(driver.getCurrentUrl(), \"http://ec2-52-53-181-39.us-west-1.compute.amazonaws.com/sign-in.html\");\n Loginpage log1 = new Loginpage(driver, currentEmail, currentPassword);\n log1.clickLogin();\n WebDriverWait wait1 = new WebDriverWait(driver, 10);\n wait1.until(ExpectedConditions.urlToBe(\"http://ec2-52-53-181-39.us-west-1.compute.amazonaws.com/talents.html\"));\n Assert.assertEquals(driver.getCurrentUrl(), \"http://ec2-52-53-181-39.us-west-1.compute.amazonaws.com/talents.html\");\n }", "public interface DataProvider {\n /**\n * @param userName\n * @param password\n * @return Authenticated used.\n */\n User authenticate(String userName, String password);\n\n ArrayList<POI> getPois();\n}", "@Test(dataProvider = \"getData\") //dataProvider value should be equal to @DataProvider method name\r\n\tpublic void doLogin(String text) throws InterruptedException \r\n\t{\n\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"C://Automation//chromedriver_win32//chromedriver.exe\");\r\n\t\tdriver=new ChromeDriver();\r\n\r\n\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\r\n\t\tdriver.manage().window().maximize();\r\n\t\tdriver.get(\"http://www.google.com\");\r\n\t\tdriver.findElement(By.xpath(\"//input[@title='Search']\")).sendKeys(text);\r\n\t\tdriver.findElement(By.name(\"btnK\")).click();\r\n\t\tThread.sleep(7000);\r\n\t\tdriver.quit();\r\n\t}", "@Test(dataProvider = \"inputs\", dataProviderClass=TestData.class)\n\tpublic void testMethod(String firstName, String lastName, String age) {\n\t\tSystem.out.println(\"first name: \" + firstName);\n\t\tSystem.out.println(\"last name: \" + lastName);\n\t\tSystem.out.println(\"Age: \" + age);\n\t}", "public void InitData() {\n }", "public interface ITestDataAnalyzer {\n List<INameValue> getAllTestInputs();\n INameValue getTestInput(String name);\n List<INameValue> getAllExpectedValues();\n INameValue getExpectedValue(String name);\n List<TestValueResult> getValueResults(List<INameValue> actualValues);\n}", "@DataProvider()\n\tpublic Object[][] getData() {\n\t\t\n\t\treturn ConstantsArray.getArrayData();\n\t}", "@DataProvider(name = \"employee\")\n public Object[][] getEmployee() {\n return new Object[][] {{generateEmployee()}};\n }", "@Test\r\n public void UserServiceTest_RetrievePresenter()\r\n {\r\n UserService service = new UserService(); \r\n List<User> users = null;\r\n try {\r\n users = service.getPresenterList();\r\n } catch (SQLException e) {\r\n fail();\r\n System.out.println(e);\r\n } \r\n }", "@DataProvider(name = \"dataForTest\")\n public Object[][] dataForTest() throws URISyntaxException {\n final String FAILED_REDIRECT = \"https://www.freecodecamp.com/email-signin\";\n return new Object[][] {\n // postive test - correct email and pwd\n {\"\", \"\", \"Welcome to Free Code Camp.\",\n new URI(\"https://www.freecodecamp.com/\" + SUCCESS_SIGN_IN_URL_STRING) },\n // negative test - for null email and pwd\n {null, null, FAILED_TEXT, new URI(FAILED_REDIRECT)},\n // negative - empty string email and pwd\n {\"\", \"\", FAILED_TEXT, new URI(FAILED_REDIRECT)},\n // negative - non-empty wrong email and correct pwd\n {\"[email protected]\", \"\", FAILED_TEXT, new URI(FAILED_REDIRECT)},\n // negative - correct email and non-empty wrong pwd\n {\"\", \"123\", FAILED_REDIRECT, new URI(FAILED_REDIRECT)},\n // negative - correct email and wrong pwd with special characters\n {\"\", \":/?=&\", FAILED_REDIRECT, new URI(FAILED_REDIRECT)},\n };\n }", "InlineDataExample createInlineDataExample();", "public DataStoreTest( String testName )\n {\n super( testName );\n }", "@DataProvider ( name = \"CreditCardTestData\" )\r\n\t\r\n\tpublic static String[][] getTestDataForCreditCardValidations(){\r\n\t\t\r\n\t\tString[][] CreditCardCheckTestData ;\r\n\t\t\r\n\t\tCreditCardCheckTestData = TestDataInput.getMatchedInputTableRowsForApplCodeAndTestDataType(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tPaymentMethod.TestDataSheetName,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tTestApplicationParams.getCurrentTestApplication(),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"CreditCardTest\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t \t\t\r\n\t\treturn (CreditCardCheckTestData);\r\n\t\t\r\n\t}", "@Test\n\tpublic void testFetchResult_with_proper_data() {\n\t}", "@Test\n public void findAllEngineerPositions() {\n Map<String, String> employees = getEmployees();\n// Your code here\n }", "public void generateData()\n {\n }", "private static void createDemoData() {\n if (userManager.user_map.isEmpty() || accountManager.account_map.isEmpty() || banknoteManager.banknotes.isEmpty()) {\n if (userManager.user_map.isEmpty()) {\n userManager.createAccount(BankManager.class.getSimpleName(), \"jen\", \"1234\");\n userManager.createAccount(Teller.class.getSimpleName(), \"pete\", \"1234\");\n userManager.createAccount(Customer.class.getSimpleName(), \"steve\", \"1234\");\n }\n\n if (accountManager.account_map.isEmpty()) {\n accountManager.addAccount(CreditCard.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Youth.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Saving.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Chequing.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(CreditLine.class.getSimpleName(), Collections.singletonList(\"steve\"));\n }\n\n if (banknoteManager.banknotes.isEmpty()) {\n banknoteManager.banknotes = new HashMap<>();\n for (int d : banknoteManager.DENOMINATIONS) {\n banknoteManager.banknotes.put(String.valueOf(d), 50);\n }\n }\n }\n }", "public interface DBHelper {\n\n boolean insertUserData(String username);\n\n\n String getData();\n\n}", "public void testADDWithData() throws Exception {\n String data =\"Some words about Helen of Troy\";\n doAdd(data, null);\n }", "public interface DataSource {\r\n\t\r\n\tstatic final String FILE_PATH = \"plugins/DataManager/\";\r\n\t\r\n\tpublic void setup();\r\n\t\r\n\tpublic void close();\r\n\r\n\tpublic boolean set(String pluginKey, String dataKey, String data) ;\r\n\t\r\n\tpublic boolean set(String pluginKey, String dataKey, int data);\r\n\t\r\n\tpublic boolean set(String pluginKey, String dataKey, long data);\r\n\t\r\n\tpublic boolean set(String pluginKey, String dataKey, float data);\r\n\t\r\n\tpublic boolean set(String pluginKey, String dataKey, double data);\r\n\t\r\n\tpublic boolean set(String pluginKey, String dataKey, boolean data);\r\n\r\n\tpublic boolean set(String pluginKey, String dataKey, List<String> data);\r\n\t\r\n\tpublic Optional<String> getString(String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<Integer> getInt(String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<Long> getLong(String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<Float> getFloat(String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<Double> getDouble(String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<Boolean> getBoolean(String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<List<String>> getList(String pluginKey, String dataKey);\r\n\r\n\tpublic boolean set(UUID uuid, String pluginKey, String dataKey, String data) ;\r\n\t\r\n\tpublic boolean set(UUID uuid, String pluginKey, String dataKey, int data);\r\n\t\r\n\tpublic boolean set(UUID uuid, String pluginKey, String dataKey, long data);\r\n\t\r\n\tpublic boolean set(UUID uuid, String pluginKey, String dataKey, float data);\r\n\t\r\n\tpublic boolean set(UUID uuid, String pluginKey, String dataKey, double data);\r\n\t\r\n\tpublic boolean set(UUID uuid, String pluginKey, String dataKey, boolean data);\r\n\r\n\tpublic boolean set(UUID uuid, String pluginKey, String dataKey, List<String> data);\r\n\t\r\n\tpublic Optional<String> getString(UUID uuid, String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<Integer> getInt(UUID uuid, String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<Long> getLong(UUID uuid, String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<Float> getFloat(UUID uuid, String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<Double> getDouble(UUID uuid, String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<Boolean> getBoolean(UUID uuid, String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<List<String>> getList(UUID uuid, String pluginKey, String dataKey);\r\n\t\r\n\tpublic boolean addGroup(String group, String pluginKey);\r\n\t\r\n\tpublic boolean deleteGroup(String group, String pluginKey);\r\n\t\r\n\tpublic boolean isGroup(String group, String pluginKey);\r\n\t\r\n\tpublic boolean addMember(UUID uuid, String group, String pluginKey);\r\n\t\r\n\tpublic boolean removeMember(UUID uuid, String group, String pluginKey);\r\n\t\r\n\tpublic boolean isMember(UUID uuid, String group, String pluginKey);\r\n\t\r\n\tpublic Optional<List<UUID>> getMemberIDs(String group, String pluginKey);\r\n\t\r\n\tpublic List<String> getGroups(String pluginKey);\r\n\t\r\n\tpublic List<String> getGroups(UUID uuid, String pluginKey);\r\n\t\r\n\tpublic boolean set(String group, String pluginKey, String dataKey, String data);\r\n\t\r\n\tpublic boolean set(String group, String pluginKey, String dataKey, int data);\r\n\t\r\n\tpublic boolean set(String group, String pluginKey, String dataKey, long data);\r\n\t\r\n\tpublic boolean set(String group, String pluginKey, String dataKey, float data);\r\n\t\r\n\tpublic boolean set(String group, String pluginKey, String dataKey, double data);\r\n\t\r\n\tpublic boolean set(String group, String pluginKey, String dataKey, boolean data);\r\n\r\n\tpublic boolean set(String group, String pluginKey, String dataKey, List<String> data);\r\n\t\r\n\tpublic Optional<String> getString(String group, String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<Integer> getInt(String group, String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<Long> getLong(String group, String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<Float> getFloat(String group, String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<Double> getDouble(String group, String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<Boolean> getBoolean(String group, String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<List<String>> getList(String group, String pluginKey, String dataKey);\r\n\r\n\tpublic boolean set(UUID uuid, String group, String pluginKey, String dataKey, String data) ;\r\n\t\r\n\tpublic boolean set(UUID uuid, String group, String pluginKey, String dataKey, int data);\r\n\t\r\n\tpublic boolean set(UUID uuid, String group, String pluginKey, String dataKey, long data);\r\n\t\r\n\tpublic boolean set(UUID uuid, String group, String pluginKey, String dataKey, float data);\r\n\t\r\n\tpublic boolean set(UUID uuid, String group, String pluginKey, String dataKey, double data);\r\n\t\r\n\tpublic boolean set(UUID uuid, String group, String pluginKey, String dataKey, boolean data);\r\n\r\n\tpublic boolean set(UUID uuid, String group, String pluginKey, String dataKey, List<String> data);\r\n\t\r\n\tpublic Optional<String> getString(UUID uuid, String group, String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<Integer> getInt(UUID uuid, String group, String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<Long> getLong(UUID uuid, String group, String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<Float> getFloat(UUID uuid, String group, String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<Double> getDouble(UUID uuid, String group, String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<Boolean> getBoolean(UUID uuid, String group, String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<List<String>> getList(UUID uuid, String group, String pluginKey, String dataKey);\r\n\r\n}", "public interface HelperDataManager {\n\n\t/**\n\t * add data to the workingset.\n\t * \n\t * @param data\n\t */\n\tpublic void putData(HelperData data);\n\n\t/**\n\t * retrieve data of the given type, or null if not available.\n\t * \n\t * @param type\n\t * the type of the data to retrieve\n\t * @return the data\n\t */\n\tpublic Data getData(HelperDataType type);\n\n\t/**\n\t * @return all the {@link HelperDataType}s for which data is available\n\t */\n\tpublic List<HelperDataType> getDataTypes();\n\n\t/**\n\t * sets the data of tyhe given type as active one.\n\t * \n\t * @param dataType\n\t */\n\tpublic void setActiveHelperData(HelperDataType dataType);\n\t\n\t/**\n\t * @return the actually active Helper-Data\n\t */\n\tpublic Data getActiveHelperData();\n\t\n\t/**\n\t * adds a listener\n\t * \n\t * @param listener\n\t * the listener to add\n\t */\n\tpublic void addListener(HelperDataManagerListener listener);\n\n\t/**\n\t * removes a listener\n\t * \n\t * @param listener\n\t * the listener to remove\n\t */\n\tpublic void removeListener(HelperDataManagerListener listener);\n}", "public WebRowSetDataProvider() {\n }", "@Test\n public void NewDataAvailableTest() {\n String vatNumber = \"vatNumber\";\n Date birthDate = new Date(000000000);\n String fiscalCode = \"fiscalCodeTest00\";\n String password = \"password\";\n Individual individual = new Individual(fiscalCode, \"name\", \"surname\", password, birthDate, 40.5f, 10.0f);\n userController.addIndividual(individual);\n ThirdParty thirdParty = new ThirdParty(vatNumber,\"thirdParty\", password);\n userController.addThirdParty(thirdParty);\n thirdPartyService.addIndividualRequest(thirdParty, individual, true);\n IndividualData individualData = new IndividualData(new Date(00000000), 60f ,120f ,150f ,50f );\n List individualDataList= new ArrayList();\n individualDataList.add(individualData);\n individualData.setIndividual(individual);\n individualService.saveData(individualDataList);\n\n assertEquals(thirdPartyService.getNewDataNotificationList(thirdParty,individual).size(),1);\n }", "@Before\r\n\tpublic void setUp() throws Exception {\r\n\r\n\t\tpd = new PreparedData();\r\n\r\n\t}", "private void addSampleData() {\r\n }", "public interface CodDataService {\n\n /**\n * 获取配置\n * @return 全部配置\n */\n Map<String, String> getConfig();\n\n /**\n * 获取数据\n */\n String getDataValue(String key);\n\n /**\n *\n * @param key\n * @return\n */\n CodDataConfigDto getData(String key);\n\n\n /**\n * 设置数据\n * @param key key\n * @param value value\n */\n void setData(String key, String value);\n\n /**\n * 设置数据\n * @param key key\n * @param value value\n * @param name 配置名称\n */\n void setData(String key, String value, String name);\n\n /**\n * 设置数据\n * @param key key\n * @param value value\n * @param name 配置名称\n * @param sort 序号\n */\n void setData(String key, String value, String name, String sort);\n\n /**\n * 设置数据\n * @param key key\n * @param value value\n * @param name 配置名称\n * @param sort 序号\n * @param desc 描述\n */\n void setData(String key, String value, String name, String desc, String sort);\n\n /**\n * 删除\n * @param key key\n */\n void delete(String key);\n\n}", "@Test\n\tpublic void testfindTheGreaatestFromAllData() {\n\t\twhen(dataServiceMock.retrieveAllData()).thenReturn(new int[] { 1, 2, 3 });\n\t\t// SomeBusinessImpl impl = new SomeBusinessImpl(dataServiceMock);\n\t\tassertEquals(impl.findTheGreaatestFromAllData(), 3);\n\t}", "@Test\n public void shouldProcessData() throws Exception {\n }", "@Ignore\n\t\[email protected](dataProvider = \"dp\")\n\t\tprivate void dataProviderWithoutKey(String param_0, String param_1) {\n\t\t}", "@DDDataProvider(datafile = \"testdata/Team3Search and Sort.xlsx\", sheetName = \"SearchItem\", testcaseID = \"\", runmode = \"No\")\n@Test(dataProvider = \"dd-dataprovider\", dataProviderClass = TestUtil.class)\n\npublic void TC_SearchProductwithInValiddata(Hashtable<String, String> datatable) throws InterruptedException, UnsupportedEncodingException, GeneralSecurityException{\n\tSearchPage searchpage = new SearchPage(driver);\n\tExtentTest Obj = ExtentTestManager.getTest();\n\t\n\tExtentTestManager.getTest().log(Status.PASS, \"Testcase 1 : Search for the product with Invalid data\");\n\tLoginPage loginPage = new LoginPage(driver);\n\tExtentTestManager.getTest().log(Status.PASS, \"Step 1 : Successfully singed in with Valid credentials\");\n\tloginPage.login(datatable.get(\"UserName\"), Base64.decrypt(datatable.get(\"Password\")));\n\tThread.sleep(1000);\n\t\n\tString searchvalue =datatable.get(\"ProductName\");\n\tsearchpage.getSearchBar().sendKeys(searchvalue);\n\tExtentTestManager.getTest().log(Status.PASS, \"Step 2 : Successfully entered \" +searchvalue+ \" in the search bar\");\n\t\n\tsearchpage.getsearchBtn().click();\n\tExtentTestManager.getTest().log(Status.PASS, \"Step 3 : Successfully clicked on the search button\");\n\tThread.sleep(500);\n\t\t\n\tExtentTestManager.getTest().log(Status.PASS, \"Step 4 : User entered invalid data: \" + searchpage.getnoDataFoundMsg().getText() + \".\");\n\t\n\t\n\t\t\t\n}", "public final void testGetUserData() {\n assertEquals(hello.userData, n.getUserData());\n }", "@DataProvider\n private Object[][] provideForTestCanDecode() {\n return new Object[][] {\n { TEST_FILE1, true },\n { TEST_FILE2, true },\n { TEST_FILE_NO_CONFIG, false },\n };\n }", "@Test\n public void dataVersionTest() {\n // TODO: test dataVersion\n }", "@Test(priority=1, dataProvider = \"dp\", timeOut=5000, invocationCount=10)\n\tpublic void loginDataProvider(String n, String s) {\n\t\t//\n\t}", "private void initData() {\n }", "@Test\n public void testGetAnalyzedData() {\n System.out.println(\"getAnalyzedData\");\n \n }", "public void initData() {\n }", "public void initData() {\n }", "protected @Override\r\n abstract void initData();", "DataModel createDataModel();", "public void initData(){\r\n \r\n }", "@Override\n\tpublic void getData() {\n\t\t\n\t}", "private void InitData() {\n\t}", "@Test\n public void testQueryList(){\n }", "@Test\n public void testInsertDataWSSuccess() {\n try {\n \tProviderDAO providerDAO = new ProviderDAOImpl();\n \tProvider provider = new Provider();\n \tPersonDAO personDAO = new PersonDAOImpl();\n \tPerson person = new Person();\n \tperson = personDAO.getPersonById(\"1\");\n \tprovider = providerDAO.getProviderByPerson(person);\n \tString retVal = providerDAO.insertDataWS(provider);\n \t\n \tif (retVal != null) {\n \t\tAssert.assertTrue(true);\n \t\tSystem.out.println(\"[testInsertDataWSSuccess] - \" + retVal);\n \t} else {\n \t\tAssert.assertTrue(false);\n \t}\n\n } catch (Exception e) {\n Assert.assertFalse(false);\n }\n }", "@DataProvider(name=\"dataset\")\r\n\tpublic static Object[][] getdata() throws IOException{\r\n\t\tObject [][] ob= new IO().getdataset(\"./dataset.csv\");\t\r\n\treturn ob;\r\n\t}" ]
[ "0.6898096", "0.6889451", "0.6735876", "0.6704479", "0.6684681", "0.6673519", "0.6590674", "0.65790355", "0.6549763", "0.6497317", "0.6469336", "0.64678746", "0.6439686", "0.6429753", "0.6366909", "0.6350328", "0.6343701", "0.6285762", "0.62525785", "0.6213626", "0.6203615", "0.6118809", "0.60914415", "0.6090584", "0.60767996", "0.60278535", "0.60185504", "0.6005838", "0.5978693", "0.5949274", "0.5948762", "0.594413", "0.59154797", "0.5909975", "0.5907002", "0.5896634", "0.5878572", "0.58718336", "0.58704126", "0.5868734", "0.5868734", "0.5854074", "0.58465743", "0.5831049", "0.5825504", "0.5812731", "0.58114535", "0.5795323", "0.57917947", "0.57846653", "0.5780328", "0.5779384", "0.5777522", "0.57622135", "0.5758891", "0.5753552", "0.57499886", "0.57487565", "0.57470775", "0.57441807", "0.57433504", "0.572577", "0.57232165", "0.57161903", "0.57025063", "0.56992286", "0.5696126", "0.56921995", "0.5687929", "0.56835693", "0.5678349", "0.5676433", "0.5671908", "0.56684107", "0.56654537", "0.5661762", "0.5660842", "0.56593186", "0.56580013", "0.565739", "0.5656859", "0.5640657", "0.5638376", "0.56337625", "0.5632469", "0.563198", "0.5629978", "0.562871", "0.5623908", "0.5621214", "0.5613211", "0.5606293", "0.5606293", "0.5600109", "0.55995387", "0.55992496", "0.55890244", "0.5583801", "0.5574861", "0.5569978", "0.5560983" ]
0.0
-1
/ Create an array list of words. Remove every word that ends with "e". Use iterator
public static void main(String[] args) { ArrayList<String> word = new ArrayList<String>(); word.add("Phone"); word.add("Elite"); word.add("Hi"); word.add("Hello"); Iterator<String> iterator = word.iterator(); while (iterator.hasNext()) { String word1 = iterator.next(); if (word1.endsWith("e")) { iterator.remove(); } } System.out.println(word); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void removeWord(String wordToBeRemoved) {\n int index = 0;\n String[] result = new String[wordsArray.length];\n for (int i = 0; i < wordsArray.length; i++) {\n if (!wordsArray[i].equals( wordToBeRemoved)){\n result[index]= wordsArray[i];\n index++;\n }\n }\n }", "private Set<String> deletionHelper(String word) {\n\t\tSet<String> deletionWords = new HashSet<String>();\n\t\tfor (int i = 0; i < word.length(); i++) {\n\t\t\tdeletionWords.add(word.substring(0, i) + word.substring(i + 1));\n\t\t}\n\t\treturn deletionWords;\n\t}", "public static String removeNonWord(String message)\r\n {\r\n int start = getLetterIndex(message, head); //get the fist index that contain English letter\r\n int end = getLetterIndex(message, tail); //get the last index that contain English letter\r\n if (start == end) // if only contain one letter\r\n return String.valueOf(message.charAt(start)); // return the letter\r\n return message.substring(start, end + 1); // return the content that contain English letter\r\n }", "public List<Word> getWordsEndingAt(int end);", "private static String removeStopWords(String str) {\n for(int i=0; i<stopWords.size(); i++) {\n String temp = stopWords.get(i);\n if(temp.equalsIgnoreCase(str)) {\n str = \"\";\n }\n }\n return str;\n }", "private String removeStopWords(String str) throws IOException{\n String stopwords = \"!! ?! ?? !? ` `` '' -lrb- -rrb- -lsb- -rsb- , . : ; \\\" ' ? < > { } [ ] + - ( ) & % $ @ ! ^ # * .. ... 'll 's 'm a about above after again against all am an and any are aren't as at be because been before being below between both but by can can't cannot could couldn't did didn't do does doesn't doing don't down during each few for from further had hadn't has hasn't have haven't having he he'd he'll he's her here here's hers herself him himself his how how's i i'd i'll i'm i've if in into is isn't it it's its itself let's me more most mustn't my myself no nor not of off on once only or other ought our ours ourselves out over own same shan't she she'd she'll she's should shouldn't so some such than that that's the their theirs them themselves then there there's these they they'd they'll they're they've this those through to too under until up very was wasn't we we'd we'll we're we've were weren't what what's when when's where where's which while who who's whom why why's with won't would wouldn't you you'd you'll you're you've your yours yourself yourselves ### return arent cant couldnt didnt doesnt dont hadnt hasnt havent hes heres hows im isnt its lets mustnt shant shes shouldnt thats theres theyll theyre theyve wasnt were werent whats whens wheres whos whys wont wouldnt youd youll youre youve\";\n String[] allWords = str.toLowerCase().split(\" \");\n StringBuilder builder = new StringBuilder();\n for(String word : allWords) {\n if(!stopwords.contains(word)) {\n builder.append(word);\n builder.append(' ');\n } \n }\n String result = builder.toString().trim();\n return result;\n }", "private List<String> getFilteredWords() {\r\n\t\tArrayList<String> filteredWords = new ArrayList<String>(16);\r\n\t\t\r\n\t\tfor (String word : allWords) {\r\n\t\t\tif (matchesFilter(word) == true) {\r\n\t\t\t\tfilteredWords.add(word);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn filteredWords;\r\n\t}", "private StopWords() {\r\n\t\tPath source = Paths.get(\"./dat/zaustavne_rijeci.txt\");\r\n\t\ttry {\r\n\t\t\tbody = new String(Files.readAllBytes(source),\r\n\t\t\t\t\tStandardCharsets.UTF_8);\r\n\t\t} catch (IOException ignorable) {\r\n\t\t}\r\n\t\twords = new LinkedHashSet<>();\r\n\t\tfillSet();\r\n\t}", "static String[] clean(String line) {\n String[] words = line.trim().split(\"[\\\\p{Punct}\\\\s]+\");\n Object[] cleanedWordsArray = Arrays.stream(words)\n .filter(word -> !wordsSet.contains(word))\n .map(String::trim)\n .toArray();\n\n return Arrays.copyOf(cleanedWordsArray, cleanedWordsArray.length, String[].class);\n }", "private static void splitWord() {\n\t\tint i = 1;\r\n\t\tfor(String doc : DocsTest) {\r\n\t\t\tArrayList<String> wordAll = new ArrayList<String>();\r\n\t\t\tfor (String word : doc.split(\"[,.() ; % : / \\t -]\")) {\r\n\t\t\t\tword = word.toLowerCase();\r\n\t\t\t\tif(word.length()>1 && !mathMethod.isNumeric(word)) {\r\n\t\t\t\t\twordAll.add(word);\r\n\t\t\t\t\tif(!wordList.contains(word)) {\r\n\t\t\t\t\t\twordList.add(word);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\twordAll.removeAll(stopword);\r\n\t\t\tDoclist.put(i, wordAll);\r\n\t\t\ti++;\r\n\t\t}\r\n\t\twordList.removeAll(stopword);\r\n\t}", "private static Stream<String> createBadWordsDetectingStream(String text, \n List<String> badWords) {\n\t \treturn Arrays.stream(text.split(\" \")).filter(el -> !badWords.contains(el)).distinct().sorted().collect(Collectors.toList()).stream();\n\t }", "public List<Stem> uniqueStems(char word[], int length) {\n List<Stem> stems = new ArrayList<Stem>();\n CharArraySet terms = new CharArraySet(dictionary.getVersion(), 8, dictionary.isIgnoreCase());\n if (dictionary.lookupWord(word, 0, length) != null) {\n stems.add(new Stem(word, length));\n terms.add(word);\n }\n List<Stem> otherStems = stem(word, length, null, 0);\n for (Stem s : otherStems) {\n if (!terms.contains(s.stem)) {\n stems.add(s);\n terms.add(s.stem);\n }\n }\n return stems;\n }", "public RemoverStopWords() {\n\t\tBufferedReader br = null;\n\t\ttry {\n\t\t\tbr = new BufferedReader(new FileReader(\"stopwords_en.txt\"));\n\t\t\tString line;\n\n\t\t\twhile ((line = br.readLine()) != null) {\n\t\t\t\tstop_words.add(line.trim());\n\t\t\t}\n\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (br != null) {\n\t\t\t\t\tbr.close();\n\t\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public Removalstops()\n {\n stopWords.add(\"am\");\n stopWords.add(\"my\");\nstopWords.add(\"at\");\nstopWords.add(\"a\");\nstopWords.add(\"i\");\nstopWords.add(\"is\");\nstopWords.add(\"of\");\nstopWords.add(\"have\");\nstopWords.add(\"--\");\nstopWords.add(\"do\");\nstopWords.add(\"the\");\nstopWords.add(\"was\");\nstopWords.add(\"iam\");\nstopWords.add(\"there\");\nstopWords.add(\"what\");\nstopWords.add(\"for\");\nstopWords.add(\"in\");\nstopWords.add(\"very\");\nstopWords.add(\"and\");\nstopWords.add(\"to\");\nstopWords.add(\"often\");\nstopWords.add(\"because\");\nstopWords.add(\"in\");\nstopWords.add(\"an\");\nstopWords.add(\"can\");\nstopWords.add(\"via\");\nstopWords.add(\"even\");\nstopWords.add(\"as\");\nstopWords.add(\"best\");\nstopWords.add(\"been\");\nstopWords.add(\"into\");\nstopWords.add(\"by\");\nstopWords.add(\"around\");\nstopWords.add(\"being\");\nstopWords.add(\"from\");\nstopWords.add(\"etc\");\nstopWords.add(\"his\");\nstopWords.add(\"do\");\nstopWords.add(\"have\");\nstopWords.add(\"had\"); \nstopWords.add(\"able\");\nstopWords.add(\"about\");\nstopWords.add(\"above\");\nstopWords.add(\"abroad\");\nstopWords.add(\"according\");\nstopWords.add(\"accordingly\");\nstopWords.add(\"across\");\nstopWords.add(\"actually\");\nstopWords.add(\"adj\");\nstopWords.add(\"after\");\nstopWords.add(\"afterwards\");\nstopWords.add(\"again\");\nstopWords.add(\"against\");\nstopWords.add(\"ago\");\nstopWords.add(\"ahead\");\nstopWords.add(\"ain't\");\nstopWords.add(\"all\");\nstopWords.add(\"allow\");\nstopWords.add(\"allows\");\nstopWords.add(\"almost\");\nstopWords.add(\"alone\");\nstopWords.add(\"along\");\nstopWords.add(\"alongside\");\nstopWords.add(\"already\");\nstopWords.add(\"also\");\nstopWords.add(\"although\");\nstopWords.add(\"always\");\nstopWords.add(\"am\");\nstopWords.add(\"amid\");\nstopWords.add(\"amidst\");\nstopWords.add(\"among\");\nstopWords.add(\"amongst\");\nstopWords.add(\"an\");\nstopWords.add(\"and\");\nstopWords.add(\"another\");\nstopWords.add(\"any\");\nstopWords.add(\"anybody\");\nstopWords.add(\"anyhow\");\nstopWords.add(\"anyone\");\nstopWords.add(\"anything\");\nstopWords.add(\"anyway\");\nstopWords.add(\"anyways\");\nstopWords.add(\"anywhere\");\nstopWords.add(\"apart\");\nstopWords.add(\"appear\");\nstopWords.add(\"appreciate\");\nstopWords.add(\"appropriate\");\nstopWords.add(\"are\");\nstopWords.add(\"aren't\");\nstopWords.add(\"around\");\nstopWords.add(\"as\");\nstopWords.add(\"a's\");\nstopWords.add(\"aside\");\nstopWords.add(\"ask\");\nstopWords.add(\"asking\");\nstopWords.add(\"associated\");\nstopWords.add(\"at\");\nstopWords.add(\"available\");\nstopWords.add(\"away\");\nstopWords.add(\"awfully\");\nstopWords.add(\"back\");\nstopWords.add(\"backward\");\nstopWords.add(\"backwards\");\nstopWords.add(\"be\");\nstopWords.add(\"became\");\nstopWords.add(\"beacause\");\nstopWords.add(\"become\");\nstopWords.add(\"becomes\");\nstopWords.add(\"becoming\");\nstopWords.add(\"been\");\nstopWords.add(\"before\");\nstopWords.add(\"beforehand\");\nstopWords.add(\"begin\");\nstopWords.add(\"behind\");\nstopWords.add(\"being\");\nstopWords.add(\"believe\");\nstopWords.add(\"below\");\nstopWords.add(\"beside\");\nstopWords.add(\"besides\");\nstopWords.add(\"best\");\nstopWords.add(\"better\");\nstopWords.add(\"between\");\nstopWords.add(\"beyond\");\nstopWords.add(\"both\");\nstopWords.add(\"brief\");\nstopWords.add(\"but\");\nstopWords.add(\"by\");\nstopWords.add(\"came\");\nstopWords.add(\"can\");\nstopWords.add(\"cannot\");\nstopWords.add(\"cant\");\nstopWords.add(\"can't\");\nstopWords.add(\"caption\");\nstopWords.add(\"cause\");\nstopWords.add(\"causes\");\nstopWords.add(\"certain\");\nstopWords.add(\"cetrainly\");\nstopWords.add(\"changes\");\nstopWords.add(\"clearly\");\nstopWords.add(\"c'mon\");\nstopWords.add(\"co\");\nstopWords.add(\"co.\");\nstopWords.add(\"com\");\nstopWords.add(\"come\");\nstopWords.add(\"comes\");\nstopWords.add(\"concerning\");\nstopWords.add(\"consequently\");\nstopWords.add(\"consider\");\nstopWords.add(\"considering\");\nstopWords.add(\"could\");\nstopWords.add(\"couldn't\");\nstopWords.add(\"c's\");\nstopWords.add(\"currently\");\nstopWords.add(\"dare\");\nstopWords.add(\"daren't\");\nstopWords.add(\"definitely\");\nstopWords.add(\"described\");\nstopWords.add(\"despite\");\nstopWords.add(\"did\");\nstopWords.add(\"didn't\");\nstopWords.add(\"different\");\nstopWords.add(\"directly\");\nstopWords.add(\"do\");\nstopWords.add(\"does\");\nstopWords.add(\"doesn't\");\nstopWords.add(\"doing\");\nstopWords.add(\"done\");\nstopWords.add(\"don't\");\nstopWords.add(\"down\");\nstopWords.add(\"downwards\");\nstopWords.add(\"during\");\nstopWords.add(\"each\");\nstopWords.add(\"edu\");\nstopWords.add(\"eg\");\nstopWords.add(\"eight\");\nstopWords.add(\"eighty\");\nstopWords.add(\"either\");\nstopWords.add(\"else\");\nstopWords.add(\"elsewhere\");\nstopWords.add(\"end\");\nstopWords.add(\"ending\");\nstopWords.add(\"enough\");\nstopWords.add(\"entirely\");\nstopWords.add(\"especially\");\nstopWords.add(\"et\");\nstopWords.add(\"etc\");\nstopWords.add(\"even\");\nstopWords.add(\"evenmore\");\nstopWords.add(\"every\");\nstopWords.add(\"everybody\");\nstopWords.add(\"everyone\");\nstopWords.add(\"everything\");\nstopWords.add(\"everywhere\");\nstopWords.add(\"ex\");\nstopWords.add(\"exactly\");\nstopWords.add(\"example\");\nstopWords.add(\"except\");\nstopWords.add(\"fairly\");\nstopWords.add(\"far\");\nstopWords.add(\"farhter\");\nstopWords.add(\"few\");\nstopWords.add(\"fewer\");\nstopWords.add(\"fifth\");\nstopWords.add(\"first\");\nstopWords.add(\"five\");\nstopWords.add(\"followed\");\nstopWords.add(\"following\");\nstopWords.add(\"follows\");\nstopWords.add(\"for\");\nstopWords.add(\"forever\");\nstopWords.add(\"former\");\nstopWords.add(\"formerly\");\nstopWords.add(\"forth\");\nstopWords.add(\"forward\");\nstopWords.add(\"found\");\nstopWords.add(\"four\");\nstopWords.add(\"from\");\nstopWords.add(\"further\");\nstopWords.add(\"furthermore\");\nstopWords.add(\"get\");\nstopWords.add(\"gets\");\nstopWords.add(\"getting\");\nstopWords.add(\"given\");\nstopWords.add(\"gives\");\nstopWords.add(\"go\");\nstopWords.add(\"goes\");\nstopWords.add(\"going\");\nstopWords.add(\"gone\");\nstopWords.add(\"got\");\nstopWords.add(\"gotten\");\nstopWords.add(\"greetings\");\nstopWords.add(\"had\");\nstopWords.add(\"hadn't\");\nstopWords.add(\"half\");\nstopWords.add(\"happens\");\nstopWords.add(\"hardly\");\nstopWords.add(\"has\");\nstopWords.add(\"hasn't\");\nstopWords.add(\"have\");\nstopWords.add(\"haven't\");\nstopWords.add(\"having\");\nstopWords.add(\"he\");\nstopWords.add(\"he'd\");\nstopWords.add(\"he'll\");\nstopWords.add(\"hello\");\nstopWords.add(\"help\");\nstopWords.add(\"hence\");\nstopWords.add(\"her\");\nstopWords.add(\"here\");\nstopWords.add(\"hereafter\");\nstopWords.add(\"hereby\");\nstopWords.add(\"herein\");\nstopWords.add(\"here's\");\nstopWords.add(\"hereupon\");\nstopWords.add(\"hers\");\nstopWords.add(\"herself\");\nstopWords.add(\"he's\");\nstopWords.add(\"hi\");\nstopWords.add(\"him\");\nstopWords.add(\"himself\");\nstopWords.add(\"his\");\nstopWords.add(\"hither\");\nstopWords.add(\"hopefully\");\nstopWords.add(\"how\");\nstopWords.add(\"howbeit\");\nstopWords.add(\"however\");\nstopWords.add(\"however\");\nstopWords.add(\"hundred\");\nstopWords.add(\"i'd\");\nstopWords.add(\"ie\");\nstopWords.add(\"if\");\nstopWords.add(\"ignored\");\nstopWords.add(\"i'll\");\nstopWords.add(\"i'm\");\nstopWords.add(\"immediate\");\nstopWords.add(\"in\");\nstopWords.add(\"iansmuch\");\nstopWords.add(\"inc\");\nstopWords.add(\"inc.\");\nstopWords.add(\"indeed\");\nstopWords.add(\"indicate\");\nstopWords.add(\"indicated\");\nstopWords.add(\"indicates\");\nstopWords.add(\"inner\");\nstopWords.add(\"inside\");\nstopWords.add(\"insofar\");\nstopWords.add(\"into\");\nstopWords.add(\"inward\");\nstopWords.add(\"is\");\nstopWords.add(\"isn't\");\nstopWords.add(\"it\");\nstopWords.add(\"it'd\");\nstopWords.add(\"it'll\");\nstopWords.add(\"its\");\nstopWords.add(\"it's\");\nstopWords.add(\"itself\");\nstopWords.add(\"i've\");\nstopWords.add(\"just\");\nstopWords.add(\"k\");\nstopWords.add(\"keep\");\nstopWords.add(\"keeps\");\nstopWords.add(\"kept\");\nstopWords.add(\"know\");\nstopWords.add(\"knows\");\nstopWords.add(\"known\");\nstopWords.add(\"last\");\nstopWords.add(\"lately\");\nstopWords.add(\"later\");\nstopWords.add(\"latter\");\nstopWords.add(\"latterly\");\nstopWords.add(\"least\");\nstopWords.add(\"less\");\nstopWords.add(\"let\");\nstopWords.add(\"let's\");\nstopWords.add(\"like\");\nstopWords.add(\"liked\");\nstopWords.add(\"likely\");\nstopWords.add(\"likewise\");\nstopWords.add(\"little\");\nstopWords.add(\"look\");\nstopWords.add(\"looks\");\nstopWords.add(\"low\");\nstopWords.add(\"lower\");\nstopWords.add(\"ltd\");\nstopWords.add(\"made\");\nstopWords.add(\"mainly\");\nstopWords.add(\"make\");\nstopWords.add(\"makes\");\nstopWords.add(\"many\");\nstopWords.add(\"may\");\nstopWords.add(\"maybe\");\nstopWords.add(\"mayn't\");\nstopWords.add(\"me\");\nstopWords.add(\"mean\");\nstopWords.add(\"meanwhile\");\nstopWords.add(\"merely\");\nstopWords.add(\"might\");\nstopWords.add(\"mightn't\");\nstopWords.add(\"mine\");\nstopWords.add(\"minus\");\nstopWords.add(\"miss\");\nstopWords.add(\"more\");\nstopWords.add(\"moreover\");\nstopWords.add(\"most\");\nstopWords.add(\"mostly\");\nstopWords.add(\"mr\");\nstopWords.add(\"mrs\");\nstopWords.add(\"much\");\nstopWords.add(\"must\");\nstopWords.add(\"mustn't\");\nstopWords.add(\"my\");\nstopWords.add(\"myself\");\nstopWords.add(\"name\");\nstopWords.add(\"namely\");\nstopWords.add(\"nd\");\nstopWords.add(\"near\");\nstopWords.add(\"nearly\");\nstopWords.add(\"necessary\");\nstopWords.add(\"need\");\nstopWords.add(\"needn't\");\nstopWords.add(\"needs\");\nstopWords.add(\"neither\");\nstopWords.add(\"never\");\nstopWords.add(\"neverf\");\nstopWords.add(\"neverless\");\nstopWords.add(\"nevertheless\");\nstopWords.add(\"new\");\nstopWords.add(\"next\");\nstopWords.add(\"nine\");\nstopWords.add(\"ninety\");\nstopWords.add(\"no\");\nstopWords.add(\"nobody\");\nstopWords.add(\"non\");\nstopWords.add(\"none\");\nstopWords.add(\"nonetheless\");\nstopWords.add(\"noone\");\nstopWords.add(\"no-one\");\nstopWords.add(\"nor\");\nstopWords.add(\"normally\");\nstopWords.add(\"not\");\nstopWords.add(\"nothing\");\nstopWords.add(\"notwithstanding\");\nstopWords.add(\"novel\");\nstopWords.add(\"now\");\nstopWords.add(\"nowwhere\");\nstopWords.add(\"obviously\");\nstopWords.add(\"of\");\nstopWords.add(\"off\");\nstopWords.add(\"often\");\nstopWords.add(\"oh\");\nstopWords.add(\"ok\");\nstopWords.add(\"okay\");\nstopWords.add(\"old\");\nstopWords.add(\"on\");\nstopWords.add(\"once\");\nstopWords.add(\"one\");\nstopWords.add(\"ones\");\nstopWords.add(\"one's\");\nstopWords.add(\"only\");\nstopWords.add(\"onto\");\nstopWords.add(\"opposite\");\nstopWords.add(\"or\");\nstopWords.add(\"other\");\nstopWords.add(\"others\");\nstopWords.add(\"otherwise\");\nstopWords.add(\"ought\");\nstopWords.add(\"oughtn't\");\nstopWords.add(\"our\");\nstopWords.add(\"ourselves\");\nstopWords.add(\"out\");\nstopWords.add(\"outside\");\nstopWords.add(\"over\");\nstopWords.add(\"overall\");\nstopWords.add(\"own\");\nstopWords.add(\"particular\");\nstopWords.add(\"particularly\");\nstopWords.add(\"past\");\nstopWords.add(\"per\");\nstopWords.add(\"perhaps\");\nstopWords.add(\"placed\");\nstopWords.add(\"please\");\nstopWords.add(\"plus\");\nstopWords.add(\"possible\");\nstopWords.add(\"presumably\");\nstopWords.add(\"probably\");\nstopWords.add(\"provided\");\nstopWords.add(\"provides\");\nstopWords.add(\"que\");\nstopWords.add(\"quite\");\nstopWords.add(\"qv\");\nstopWords.add(\"rather\");\nstopWords.add(\"rd\");\nstopWords.add(\"re\");\nstopWords.add(\"really\");\nstopWords.add(\"reasonably\");\nstopWords.add(\"recent\");\nstopWords.add(\"recently\");\nstopWords.add(\"regarding\");\nstopWords.add(\"regardless\");\nstopWords.add(\"regards\");\nstopWords.add(\"relatively\");\nstopWords.add(\"respectively\");\nstopWords.add(\"right\");\nstopWords.add(\"round\");\nstopWords.add(\"said\");\nstopWords.add(\"same\");\nstopWords.add(\"saw\");\nstopWords.add(\"say\");\nstopWords.add(\"saying\");\nstopWords.add(\"says\");\nstopWords.add(\"second\");\nstopWords.add(\"secondly\");\nstopWords.add(\"see\");\nstopWords.add(\"seeing\");\nstopWords.add(\"seem\");\nstopWords.add(\"seemed\");\nstopWords.add(\"seeming\");\nstopWords.add(\"seems\");\nstopWords.add(\"seen\");\nstopWords.add(\"self\");\nstopWords.add(\"selves\");\nstopWords.add(\"sensible\");\nstopWords.add(\"sent\");\nstopWords.add(\"serious\");\nstopWords.add(\"seriously\");\nstopWords.add(\"seven\");\nstopWords.add(\"several\");\nstopWords.add(\"shall\");\nstopWords.add(\"shan't\");\nstopWords.add(\"she\");\nstopWords.add(\"she'd\");\nstopWords.add(\"she'll\");\nstopWords.add(\"she's\");\nstopWords.add(\"should\");\nstopWords.add(\"shouldn't\");\nstopWords.add(\"since\");\nstopWords.add(\"six\");\nstopWords.add(\"so\");\nstopWords.add(\"some\");\nstopWords.add(\"somebody\");\nstopWords.add(\"someday\");\nstopWords.add(\"somehow\");\nstopWords.add(\"someone\");\nstopWords.add(\"something\");\nstopWords.add(\"sometime\");\nstopWords.add(\"sometimes\");\nstopWords.add(\"somewhat\");\nstopWords.add(\"somewhere\");\nstopWords.add(\"soon\");\nstopWords.add(\"sorry\");\nstopWords.add(\"specified\");\nstopWords.add(\"specify\");\nstopWords.add(\"specifying\");\nstopWords.add(\"still\");\nstopWords.add(\"sub\");\nstopWords.add(\"such\");\nstopWords.add(\"sup\");\nstopWords.add(\"sure\");\nstopWords.add(\"take\");\nstopWords.add(\"taken\");\nstopWords.add(\"taking\");\nstopWords.add(\"tell\");\nstopWords.add(\"tends\");\nstopWords.add(\"th\");\nstopWords.add(\"than\");\nstopWords.add(\"thank\");\nstopWords.add(\"thanks\");\nstopWords.add(\"thanx\");\nstopWords.add(\"that\");\nstopWords.add(\"that'll\");\nstopWords.add(\"thats\");\nstopWords.add(\"that've\");\nstopWords.add(\"the\");\nstopWords.add(\"their\");\nstopWords.add(\"theirs\");\nstopWords.add(\"them\");\nstopWords.add(\"themselves\");\nstopWords.add(\"then\");\nstopWords.add(\"thence\");\nstopWords.add(\"there\");\nstopWords.add(\"thereafter\");\nstopWords.add(\"thereby\");\nstopWords.add(\"there'd\");\nstopWords.add(\"therefore\");\nstopWords.add(\"therein\");\nstopWords.add(\"ther'll\");\nstopWords.add(\"there're\");\nstopWords.add(\"theres\");\nstopWords.add(\"there's\");\nstopWords.add(\"thereupon\");\nstopWords.add(\"there've\");\nstopWords.add(\"these\");\nstopWords.add(\"they\");\nstopWords.add(\"they'd\");\nstopWords.add(\"they'll\");\nstopWords.add(\"they're\");\nstopWords.add(\"they've\");\nstopWords.add(\"thing\");\nstopWords.add(\"things\");\nstopWords.add(\"think\");\nstopWords.add(\"third\");\nstopWords.add(\"thirty\");\nstopWords.add(\"this\");\nstopWords.add(\"thorough\");\nstopWords.add(\"thoroughly\");\nstopWords.add(\"those\");\nstopWords.add(\"though\");\nstopWords.add(\"throughout\");\nstopWords.add(\"thru\");\nstopWords.add(\"thus\");\nstopWords.add(\"till\");\nstopWords.add(\"to\");\nstopWords.add(\"together\");\nstopWords.add(\"too\");\nstopWords.add(\"took\");\nstopWords.add(\"toward\");\nstopWords.add(\"towards\");\nstopWords.add(\"tried\");\nstopWords.add(\"tries\");\nstopWords.add(\"truly\");\nstopWords.add(\"try\");\nstopWords.add(\"trying\");\nstopWords.add(\"t's\");\nstopWords.add(\"twice\");\nstopWords.add(\"two\");\nstopWords.add(\"un\");\nstopWords.add(\"under\");\nstopWords.add(\"underneath\");\nstopWords.add(\"undoing\");\nstopWords.add(\"unfortunately\");\nstopWords.add(\"unless\");\nstopWords.add(\"unlike\");\nstopWords.add(\"unlikely\");\nstopWords.add(\"untill\");\nstopWords.add(\"unto\");\nstopWords.add(\"up\");\nstopWords.add(\"upon\");\nstopWords.add(\"upwards\");\nstopWords.add(\"us\");\nstopWords.add(\"use\");\nstopWords.add(\"used\");\nstopWords.add(\"useful\");\nstopWords.add(\"uses\");\nstopWords.add(\"using\");\nstopWords.add(\"usually\");\nstopWords.add(\"v\");\nstopWords.add(\"value\");\nstopWords.add(\"various\");\nstopWords.add(\"versus\");\nstopWords.add(\"very\");\nstopWords.add(\"via\");\nstopWords.add(\"viz\");\nstopWords.add(\"vs\");\nstopWords.add(\"want\");\nstopWords.add(\"wants\");\nstopWords.add(\"was\");\nstopWords.add(\"wasn't\");\nstopWords.add(\"way\");\nstopWords.add(\"we\");\nstopWords.add(\"we'd\");\nstopWords.add(\"welcome\");\nstopWords.add(\"well\");\nstopWords.add(\"we'll\");\nstopWords.add(\"went\");\nstopWords.add(\"were\");\nstopWords.add(\"we're\");\nstopWords.add(\"weren't\");\nstopWords.add(\"we've\");\nstopWords.add(\"what\");\nstopWords.add(\"whatever\");\nstopWords.add(\"what'll\");\nstopWords.add(\"what's\");\nstopWords.add(\"what've\");\nstopWords.add(\"when\");\nstopWords.add(\"whence\");\nstopWords.add(\"whenever\");\nstopWords.add(\"where\");\nstopWords.add(\"whereafter\");\nstopWords.add(\"whereas\");\nstopWords.add(\"whereby\");\nstopWords.add(\"wherein\");\nstopWords.add(\"where's\");\nstopWords.add(\"whereupon\");\nstopWords.add(\"whereever\");\nstopWords.add(\"whether\");\nstopWords.add(\"which\");\nstopWords.add(\"whichever\");\nstopWords.add(\"while\");\nstopWords.add(\"whilst\");\nstopWords.add(\"whither\");\nstopWords.add(\"who\");\nstopWords.add(\"who'd\");\nstopWords.add(\"whoever\");\nstopWords.add(\"whole\");\nstopWords.add(\"who'll\");\nstopWords.add(\"whom\");\nstopWords.add(\"whomever\");\nstopWords.add(\"who's\");\nstopWords.add(\"whose\");\nstopWords.add(\"why\");\nstopWords.add(\"will\");\nstopWords.add(\"willing\");\nstopWords.add(\"wish\");\nstopWords.add(\"with\");\nstopWords.add(\"within\");\nstopWords.add(\"without\");\nstopWords.add(\"wonder\");\nstopWords.add(\"won't\");\nstopWords.add(\"would\");\nstopWords.add(\"wouldn't\");\nstopWords.add(\"yes\");\nstopWords.add(\"yet\");\nstopWords.add(\"you\");\nstopWords.add(\"you'd\");\nstopWords.add(\"you'll\");\nstopWords.add(\"your\");\nstopWords.add(\"you're\");\nstopWords.add(\"yours\");\nstopWords.add(\"yourself\");\nstopWords.add(\"you've\");\nstopWords.add(\"zero\");\n\n \n \n }", "public String swearFilter(String d) {\n String [] swearWords= badArray.badRa;\n String[] noSpace=d.split(\" \");\n //var cleanedRa=new ArrayList<String>();\n var cleanedRa = new StringBuilder();\n for(String a:noSpace) {\n Boolean cleaned=false;\n for(String b:swearWords) {\n String a2=a.toLowerCase();\n if(a2.charAt(0)<b.charAt(0)) {\n break;\n }\n if(a2.equals(b)) {\n cleanedRa.append(randChar(a.length())).append(\" \");\n cleaned=true;\n break;\n }\n }\n if(!cleaned) {\n cleanedRa.append(a).append(\" \");\n }\n }\n return cleanedRa.toString();\n }", "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n String availableWords = scanner.nextLine();\n String myNote = scanner.nextLine();\n\n String[] arrayMyNote = myNote.split(\" \");\n String[] arrayAvailableWords = availableWords.split(\" \");\n List<String> listAvailableWords = new ArrayList<>();\n for (String word: arrayAvailableWords) {\n listAvailableWords.add(word);\n }\n\n List<String> listWordsNote = Arrays.asList(arrayMyNote);\n boolean canWrite = true;\n\n for (String word: listWordsNote) {\n if (listAvailableWords.contains(word)) {\n listAvailableWords.remove(word);\n } else {\n canWrite = false;\n break;\n }\n }\n\n if (canWrite) System.out.println(\"You get money\");\n else System.out.println(\"You are busted\");\n\n\n }", "public static void filterNonWords(final List<String> tokens) {\n\tfor (int i = 0; i < tokens.size(); i++) {\n\t if (StringUtils.isComposedOf(tokens.get(i), ALL_DELIMS)) {\n\t\ttokens.remove(i);\n\t }\n\t}\n }", "public Iterator<String> words();", "public static List<String> noVowel(List<String> in) {\n return in.stream()\n .distinct() // Ensure elements are unique\n .filter(i -> !i.matches(\"[aeiou]\")) // Keep elements that don't contain a vowel\n .collect(Collectors.toList()); // Collect result\n }", "private ArrayList<String> matchingWords(String word){\n\t\tArrayList<String> list = new ArrayList<String>();\n\t\tfor(int i=0; i<words.size();i++){\n\t\t\tif(oneCharOff(word,words.get(i))){\n\t\t\t\tlist.add(words.get(i));\n\t\t\t}\n\t\t}\n\t\treturn list;\n\t}", "public void removeWord(String word) throws WordException;", "public static String removeVowel(String words) {\n words = words.replaceAll(\"[AEIOUaeiou]\", \"\");\n return words;\n }", "public void remove(T word);", "public List<Word> getCleanWordList(String moduleName) {\n return moduleList.stream()\n .skip(moduleList.size() - 1)\n .map(item -> new Word(item, moduleName))\n .collect(Collectors.toList());\n }", "public static ArrayList<String> words(String s){\n\t\ts = s.toLowerCase().replaceAll(\"[^a-zA-Z ]\", \"\");\n\t\tArrayList<String> arrayList = new ArrayList<String>();\n\t\tString currWord = \"\";\n\n\t\tfor(int i = 0; i < s.length(); i ++){\n\t\t\tchar c = s.charAt(i);\n\t\t\tif (Character.isLetter(c) == false){\n\t\t\t\tarrayList.add(currWord);\n\t\t\t\tcurrWord = \"\";\n\t\t\t}else{\n\t\t\t\tcurrWord = currWord + c;\n\t\t\t}\n\t\t}\n\t\tarrayList = removeSpaces(arrayList);\n\t\treturn arrayList;\n\t}", "public static void main(String[] args) {\n\n ArrayList<String> strArray = new ArrayList<>();\n strArray.add(\"man\");\n strArray.add(\"hi\");\n strArray.add(\"yo\");\n strArray.add(\"hi\");\n String strToBeRemoved =\"hi\";\n\n removeAll(strArray, strToBeRemoved);\n\n\n }", "private void fillSet() {\r\n\t\tString regex = \"\\\\p{L}+\";\r\n\t\tMatcher matcher = Pattern.compile(regex).matcher(body);\r\n\t\twhile (matcher.find()) {\r\n\t\t\tif (!matcher.group().isEmpty()) {\r\n\t\t\t\twords.add(matcher.group());\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Enter the String:\");\r\n\t\tString word=sc.next();\r\n\t\tchar ch[]=word.toCharArray();\r\n\t\t\r\n\t\tfor(int i=0;i<word.length();i++)\r\n\t\t{\r\n\t\t\tif(ch[i]=='a'||ch[i]=='e'||ch[i]=='i'||ch[i]=='o'||ch[i]=='u')\r\n\t\t\t{\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"remove vowels is:\"+ch[i]);\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\r\n\r\n\t}", "public static void Stemmingmethod()throws Exception\n{\n char[] w = new char[501];\n Stemmer s = new Stemmer();\n String prcessedtxt=\"\";\n ArrayList<String> finalsen= new ArrayList();\n BufferedWriter writer = new BufferedWriter(new FileWriter(\"fullyprocessed.txt\"));\n\n String u=null;\n \n {\n FileInputStream in = new FileInputStream(\"stopwordsremoved.txt\");\n\n while(true)\n\n { int ch = in.read();\n if (Character.isLetter((char) ch))\n {\n int j = 0;\n while(true)\n { ch = Character.toLowerCase((char) ch);\n w[j] = (char) ch;\n if (j < 500) j++;\n ch = in.read();\n if (!Character.isLetter((char) ch))\n {\n \n s.add(w, j); \n\n s.stem();\n { \n\n u = s.toString();\n finalsen.add(u);\n /* to test getResultBuffer(), getResultLength() : */\n /* u = new String(s.getResultBuffer(), 0, s.getResultLength()); */\n\n System.out.print(u);\n }\n break;\n }\n }\n }\n if (ch < 0) break;\n System.out.print((char)ch);\n finalsen.add(\"\"+(char)ch);\n\n\n }\n }\n \n \n \n for(String word:finalsen){\n prcessedtxt=prcessedtxt+\"\"+ word;\n }\n writer.write(prcessedtxt+\"\\n\"); \n prcessedtxt=\"\";\n finalsen.clear();\n writer.close();\n\n\n \n}", "public DynamicArray<String> redactText()\n\t{\n\t\tfor (int i = 0; i < text.length(); i++)\n\t\t{\n\t\t\tif(!checkWord(text.get(i))) // checks if the word is listed to be redacted\n\t\t\t{\n\t\t\t\ttext.set(i, redact(text.get(i))); // Redacts word\n\t\t\t}\n\t\t\telse if (isNoun(i)) // Given the index this checks if the word is a noun, but ignores it if there is a full stop.\n\t\t\t{\n\t\t\t\twords.add(text.get(i)); // Since this is a noun, it is added to the list of redacted words\n\t\t\t\ttext.set(i, redact(text.get(i))); // Word is then redacted\n\t\t\t}\n\t\t}\n\t\t\n\t\tint i = 0;\n\t\tint check;\n\t\twhile (i < fullStops.length()) // Loops through full stop points and checks the word that follows it\n\t\t{\n\t\t\tcheck = fullStops.get(i);\n\t\t\tif(!checkWord(text.get(check)))\n\t\t\t{\n\t\t\t\ttext.set(check, redact(text.get(check)));\n\t\t\t}\n\t\t\ti++;\n\t\t\t\t\n\t\t}\n\t\treturn text;\n\t}", "public StopWordRemover( ) {\n\t\t// Load and store the stop words from the fileinputstream with appropriate data structure.\n\t\t// NT: address of stopword.txt is Path.StopwordDir\n\t}", "public static String[] getWithE(String[] arr) {\n\t int counter=0;\n\t\t\t\n\t\t\tfor(String str:arr) {\n\t\t\t\tif( str.contains(\"e\")) {\n\t\t\t\t\tcounter++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(counter);//3\n\t\t//create array fewValues,with size of counter\n\t\t\t\n\t\t\tString[]fewValues=new String[counter];\n\t\t\n\t\t\t//go over arr one more time and add the words with 'e' into fewValues\n\t\t \n\t\t\tint i=0;\n\t\t\t\t\n\t\t\tfor(String each:arr) {\n\t\t\t\tif (each.contains(\"e\")){\n\t\t\t\tfewValues[i]=each;\n\t\t\t\t\ti++;\n\t\t }\n\t }\n\t\tfor( String val:fewValues) {\n\t\t\tSystem.out.println(val+ \" \");\n\t\t}\n\t //YOUR CODE ENDS HERE -----------------------\n\t \n\t return fewValues;\n\t }", "public static char [] deletion(char [] word, int index){\n\t\tchar [] temp = new char[word.length-1];\n\n\t\tfor(int i=0; i<word.length-1; i++){\n\t\t\tif(i<index)\n\t\t\t\ttemp[i] = word[i];\n\t\t\telse\n\t\t\t\ttemp[i] = word[i+1];\n\t\t}\n\t\treturn temp;\n\t}", "public int removings(String s)\n{\n if(stopWords.contains(s))\n {\n return 1;\n }\n else\n {\n return 0;\n }\n}", "public static List<String> missingWords(String s, String t) {\n String[] a = s.split(\" \");\n String[] b = t.split(\" \");\n int sz = a.length - b.length;\n String [] missing = new String[sz];\n int c = 0;\n for(int i=0;i<a.length;i++){\n int flag=0;\n for(int j=0;j<b.length;j++){\n if(a[i].equals(b[j]))\n flag=1;\n }\n if(flag==0){\n missing[c++]=a[i];\n\n }\n }\n\n List<String> missingWords = new ArrayList<>();\n for(String str: missing){\n missingWords.add(str);\n }\n System.out.println(missingWords);\n return missingWords;\n }", "static String[] removeElements(String[] input, String deleteMe)\n {\n List result = new LinkedList();\n\n for(String item : input)\n if(!deleteMe.equals(item))\n result.add(item);\n result.toArray(input);\n return input;\n }", "public static ArrayList<String> getTerms(String comment){\n\n\t\tString[] terms = comment.split(\"[^a-zA-Z]+\");\n\t\t//if(terms.length == 0) System.out.println(\"error: \" + comment);\n\t\tArrayList<String> termsarray = new ArrayList<String>();\n\t\tfor(int i=0;i<terms.length;i++){\n\t\t\t\n\t\t\tString iterm = terms[i].toLowerCase();\n\t\t\tboolean isStopWord = false;\n\t\t\tfor(String s : stopWord){\n\t\t\t\tif(iterm.equals(s)){\n\t\t\t\t\tisStopWord = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(isStopWord == true)\n\t\t\t\tcontinue;\n\t\t\t\n\t\t\tStemmer stemmer = new Stemmer();\n\t\t\tstemmer.add(iterm.toCharArray(), iterm.length());\n\t\t\tstemmer.stem();\n\t\t\titerm = stemmer.toString();\n\t\t\t\n\t\t\t//System.out.println(iterm);\n\t\t\tif(iterm.length() >=2 && !termsarray.contains(iterm))termsarray.add(iterm);\n\t\t}\n\t\n\t\treturn termsarray;\n\t}", "private void removeWord(Node root,String word,int index){\n if(index == word.length()){ //not word.length()-1 because starts from empty root\n //visiting the last Node to Remove\n //but need to remove later when com back to its paren root.removeChild(ch);\n //cause need to check weather node has children or not\n System.out.println(root.value);\n root.isEndOfWord = false; //CARE can only physically 'E' but CAR Node R has E children so R.isEndOfWord =false\n return;\n }\n\n //1st get the 'ch' at the index of th word\n var ch = word.charAt(index);\n\n //get the child Node of ch in root/children\n var child = root.getChild(ch);\n\n //if word doesn't exist/ no any Characters\n if(child == null) return;\n\n //post order traversal visiting child 1st\n removeWord(child,word,index+1); //recursively remove/ go to the next indexes of the word\n\n //then visit root to remove last index\n System.out.println(root.value);\n // if the child doesn't have any children\n // or no any characters related to end of the removing word\n //ex: cant remove word 'CAT' cause 'CATEGORY' exist.\n //if doesnt have any children and it's not the end of another word, physically remove it\n if(!child.hasChildren() && !child.isEndOfWord)\n root.removeChild(ch); //CARE can only physically 'E' but CAR Node R has E children\n\n }", "@Test\n\tpublic void testRemoveAllStopWords() {\n\t\tString result;\n\t\ttry {\n\t\t\tresult = sp.removeStopWords(stopWords);\n\t\t\tassertEquals(\"Strings not equal. They should be empty.\", \"\", result);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static List<String> devideSentenceIntoWords(String sentence) {\n\n String[] wordArray = sentence.toLowerCase().split(\" \");\n return Arrays.stream(wordArray)\n .map(String::trim)\n .filter(w -> !w.replace(CharacterUtils.WORD_DEVIDER, \"\").trim().isEmpty())\n .collect(Collectors.toList());\n }", "public String remove_stop_words(String text) {\n\t\tfor (String w : stop_words) {\n\t\t\ttext = text.replaceAll(\"\\\\s*\\\\b\" + w + \"\\\\b\\\\s*\", \" \");\n\t\t}\n\n\t\treturn text;\n\t}", "public synchronized Set<String> getStopWords() throws Exception {\r\n\t\t\r\n\t\tif(stopWords == null){\r\n\t\t\tMTDArquivoEnum enumerado = MTDArquivoEnum.STOP_WORDS;\r\n\t\t\tstopWords = new HashSet<String>();\r\n\t\t\tMTDIterator<String> it = enumerado.lineIterator();\r\n\t\t\twhile (it.hasNext()) {\r\n\t\t\t\tstopWords.add(it.next());\r\n\t\t\t}\r\n\t\t\tit.close();\r\n\t\t}\r\n \r\n return stopWords;\r\n }", "public void removeWord()\n {\n \tlastRow = -1;\n \tlastColumn = -1;\n \t\n \tguess = \"\";\n \tguessWordArea.setText( \"\" );\n \t\n \t//Reset the letters that have been used for a word\n \tused = new boolean[BOARD_SIZE][BOARD_SIZE];\n \t//Change the background colour of all of the buttons in the grid\n \tfor( int i = 0; i < BOARD_SIZE; i++ )\n \t{\n \t\tfor( int j = 0; j < BOARD_SIZE; j++ )\n \t\t{\n \t\t\tgridButtons[i][j].setBackground( restart.getBackground() ); //The restart button will always have the default background\n \t\t}\n \t}\n }", "public static List<String> filter_empty(String[] arr){\n\t\tboolean contient_added = false;\n\t\tList<String> out = new ArrayList<String>();\n\t\tfor(String s : arr) {\n\t\t\tif(s.trim().length() > 0){\n\t\t\t\tif(s.equals(\"CONTIENT\")){\n\t\t\t\t\tif(contient_added){\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tcontient_added = true;\n\t\t\t\t}\n\t\t\t\tout.add(s);\n\t\t\t}\n\t\t}\n\t\treturn out;\n\t}", "public void removeWord () {\r\n int index = Components.wordList.getSelectedIndex ();\r\n if (index >= 0) {\r\n String word = (String) Components.wordList.getSelectedValue ();\r\n words.remove (word);\r\n Components.wordList.getContents ().remove (index);\r\n Components.wordList.setSelectedIndex ((index > 0) ? index - 1 : index);\r\n }\r\n }", "private Set<String> replacementHelper(String word) {\n\t\tSet<String> replacementWords = new HashSet<String>();\n\t\tfor (char letter : LETTERS) {\n\t\t\tfor (int i = 0; i < word.length(); i++) {\n\t\t\t\treplacementWords.add(word.substring(0, i) + letter + word.substring(i + 1));\n\t\t\t}\n\t\t}\n\t\treturn replacementWords;\n\t}", "public Set<String> getStopWords() throws Exception{\n\tFile file = new File(\"stopWords/stopwords.txt\");\n\tHashSet<String> stopwords = new HashSet<>();\n\tBufferedReader br = new BufferedReader(new FileReader(file));\n\tString line;\n\twhile((line=br.readLine())!=null){\n\t\tString[] tokens = line.split(\" \");\n\t\tfor(String token : tokens){\n\t\t\tif(!stopwords.contains(token)){\n\t\t\t\tstopwords.add(token);\n\t\t\t}\n\t\t}\n\t}\n\tbr.close();\n\treturn stopwords;\n\t}", "public void removeWordsOfLength(int len){\n for(int i=0;i<size();i++)\n if(get(i).length()==len){\n \tremove(i--);\n }\n }", "public void removeAllCommentsThatHasNotNonWordInBody(){\n JSONArray commentWhoHasNonWordInBody=new JSONArray();\n JSONArray commentList= comment.getBody();\n for(Object comments: commentList){\n if(((JSONObject)comments).getString(\"body\").toLowerCase().contains(\"non\"))\n {\n commentWhoHasNonWordInBody.put(comments);\n }\n }\n System.out.println(\"============================ List Of Comments That Has Non word in Body ====================================\");\n System.out.println(commentWhoHasNonWordInBody);\n System.out.println(\"============================================================================================================\");\n\n }", "SList oddWords();", "private void exercise5() throws IOException {\n final Path resourcePath = retrieveResourcePath();\n List<String> nonDuplicateList;\n try (BufferedReader reader = newBufferedReader(resourcePath)) {\n nonDuplicateList = reader.lines()\n .flatMap(line -> of(line.split(WORD_REGEXP)))\n .distinct()\n .collect(toList());\n }\n\n nonDuplicateList.forEach(System.out::println);\n }", "public List<Stem> stem(char word[], int length) {\n List<Stem> stems = new ArrayList<Stem>();\n if (dictionary.lookupWord(word, 0, length) != null) {\n stems.add(new Stem(word, length));\n }\n stems.addAll(stem(word, length, null, 0));\n return stems;\n }", "static ArrayList<String> split_words(String s){\n ArrayList<String> words = new ArrayList<>();\n\n Pattern p = Pattern.compile(\"\\\\w+\");\n Matcher match = p.matcher(s);\n while (match.find()) {\n words.add(match.group());\n }\n return words;\n }", "public List<String> removeStopWords2(List<String> tokenizedWords) {\n\n List<String> res = new ArrayList<>();\n for(String word : tokenizedWords) {\n if(!this.stopwords.contains(word)) {\n res.add(word);\n }\n }\n return res;\n }", "@Test\n // Test that the preprocessor removes the relevant stop words\n void removeStopWords01() {\n List<String> stop_words = new ArrayList<>();\n List<String> words = new ArrayList<>(stop_words);\n words.add(\"vigtig\");\n assertEquals(\"vigtig\", preprocessor.removeStopWords(words).get(0));\n }", "public static void removePlurals(ArrayList<String> list){\r\n //Loop through the list\r\n for(i = 0; i < list.size(); i++){\r\n if(list.get(i).endsWith(\"s\") || list.get(i).endsWith(\"S\")){\r\n list.remove(i);\r\n i--;\r\n } \r\n }\r\n }", "boolean removeWordFromCandidatesSet(Set<Character> characters, Integer index) {\n List<String> candidatesToBeRemoved = new ArrayList<>();\n for (String word : candidates) {\n if (!characters.contains(word.charAt(index))) {\n candidatesToBeRemoved.add(word);\n }\n }\n return candidates.removeAll(candidatesToBeRemoved);\n }", "private List<Stem> stem(char word[], int length, char[] flags, int recursionDepth) {\n List<Stem> stems = new ArrayList<Stem>();\n\n for (int i = 0; i < length; i++) {\n List<HunspellAffix> suffixes = dictionary.lookupSuffix(word, i, length - i);\n if (suffixes == null) {\n continue;\n }\n\n for (HunspellAffix suffix : suffixes) {\n if (hasCrossCheckedFlag(suffix.getFlag(), flags)) {\n int deAffixedLength = length - suffix.getAppend().length();\n // TODO: can we do this in-place?\n String strippedWord = new StringBuilder().append(word, 0, deAffixedLength).append(suffix.getStrip()).toString();\n\n List<Stem> stemList = applyAffix(strippedWord.toCharArray(), strippedWord.length(), suffix, recursionDepth);\n for (Stem stem : stemList) {\n stem.addSuffix(suffix);\n }\n\n stems.addAll(stemList);\n }\n }\n }\n\n for (int i = length - 1; i >= 0; i--) {\n List<HunspellAffix> prefixes = dictionary.lookupPrefix(word, 0, i);\n if (prefixes == null) {\n continue;\n }\n\n for (HunspellAffix prefix : prefixes) {\n if (hasCrossCheckedFlag(prefix.getFlag(), flags)) {\n int deAffixedStart = prefix.getAppend().length();\n int deAffixedLength = length - deAffixedStart;\n\n String strippedWord = new StringBuilder().append(prefix.getStrip())\n .append(word, deAffixedStart, deAffixedLength)\n .toString();\n\n List<Stem> stemList = applyAffix(strippedWord.toCharArray(), strippedWord.length(), prefix, recursionDepth);\n for (Stem stem : stemList) {\n stem.addPrefix(prefix);\n }\n\n stems.addAll(stemList);\n }\n }\n }\n\n return stems;\n }", "public void remove(String s) {\n boolean remove = false;\n for (int i = 0; i < size && !remove; i++) {\n if (elements[i] == s) {\n remove = true;\n elements[i] = null;\n }\n }\n }", "private List<String> tokensAftersKeepingEmoticons(final String unTokenizedText,\n final Set<String> tokensWithoutPunctuations) throws IOException {\n final List<String> wordsAndEmoticonsList = new ArrayList<>();\n new InputAnalyzer().keepPunctuation(unTokenizedText, wordsAndEmoticonsList::add);\n wordsAndEmoticonsList.replaceAll(t -> stripPunctuations(t, tokensWithoutPunctuations));\n return wordsAndEmoticonsList;\n }", "public static String [] findWords (String letters) \r\n { \r\n String total = \"\";\r\n try\r\n {\r\n Scanner scanner = new Scanner(new File(\"wordlist.txt\"));\r\n while(scanner.hasNext())\r\n {\r\n String line = scanner.nextLine();\r\n if(matchletters(line, letters))\r\n total = total.concat(line).concat(\" \");\r\n }\r\n //System.out.println(total);\r\n return total.split(\" \");\r\n }\r\n catch(Exception e)\r\n {\r\n System.out.println(\"Error found: \" + e);\r\n return null;\r\n }\r\n }", "public static ArrayList<String> randomWords(ArrayList<String> words, int nbWords,\n\t\t\tint limit){\n\t\tint index;\n\t\tArrayList<String> toDeleteWords = new ArrayList<String>();\n\t\tRandom random = new Random();\n\t\tfor(int i = 0; i < nbWords; i ++){\n\t\t\tindex = random.nextInt(limit);\n\t\t\ttoDeleteWords.add(words.get(index));\n\t\t}\n\t\treturn toDeleteWords;\n\t}", "public static void eWordsFirst1(List<String> list) {\n\t\tlist.sort((s1, s2) -> (s2.charAt(0) == 'e' ? 1 : 0) - (s1.charAt(0) == 'e' ? 1 : 0));\n\t}", "SList evenWords();", "public void loadExemptWords(String fname) {\n\t\ttry {\n\t\t\tBufferedReader wordsReader = new BufferedReader(new FileReader(fname));\n\t \n\t\t\tfor ( ; ; ) {\n\t\t\t\tString line = wordsReader.readLine();\n\t\n\t\t\t\tif (line == null) {\n\t\t\t\t\twordsReader.close();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\n\t\t\t\telse {\n\t\t\t\t\tString[] parts = line.split(\" \");\n\t\t\t\t\tstopWords.add(parts[0]);\n\t\t\t\t}\n\t\t\t}\n\t\n\t\t} catch (Exception e) {\n\t \t LOGGER.warning(e.getMessage());\n\t\t}\n\t}", "public static List<String> theGame(List<String> words)\n {\n List<String> list = new ArrayList<>();\n \n if (words.isEmpty() || words.size() == 1) return words;\n \n if (words.get(0).length() != 0 ) list.add(words.get(0));\n \n for (int i = 1; i < words.size(); i++) {\n String prev = words.get(i - 1);\n String current = words.get(i);\n if ((prev.length() == 0 && current.length() != 0) || (current.length() == 0 && prev.length() != 0)) {\n return list;\n }\n if (prev.length() == 0 && current.length() == 0) {\n continue;\n }\n if (prev.charAt(prev.length() - 1) == current.charAt(0)) {\n list.add(current);\n } else {\n break;\n }\n \n }\n return list;\n }", "public static ArrayList<String> getWords(String input) {\r\n ArrayList<String> w = new ArrayList<String>();\r\n input = input.toLowerCase();\r\n String[] words = input.split(\"\\\\s+\");\r\n for (int i = 0; i < words.length; i++) {\r\n words[i] = words[i].replaceAll(\"[^\\\\w]\", \"\");\r\n }\r\n for(String elem: words) {\r\n w.add(elem);\r\n }\r\n return w;\r\n }", "static Stream<String> splitIntoWords(String str) \r\n\t{\r\n\t\treturn Arrays.stream(str.split(\"\\\\W+\")).filter(s -> s.length() > 0);\r\n\t}", "public void filterList(Word remainingLetters) {\n filterWordsByLength(remainingLetters.length());\n\n // Next, see if any of the letters in the word can not be found in the remaining letters\n filterWordsByRemainingLetters(remainingLetters);\n }", "void remove (String dataFile) {\n\t\tint i;\t\t\n\t\t\n\n\t\ttry {\n//\t\t\tHash set to store strings\n\t\t\t\t\t\t\n//\t\t\tScanner reads objects from file\n\t\t\tScanner fileInput = new Scanner(new File(dataFile));\n\t\t\t\n//\t\t\treads line from file\n\t\t\twhile(fileInput.hasNextLine()) {\n\t\t\t\tString row = fileInput.nextLine();\n\t\t\t\t\n//\t\t\t\tsplits words by the space\n\t\t\t\tString[] word = row.split(\" \");\n\t\t\t\t\n\t\t\t\tfor(i = 0; i < word.length; i++) {\n\t\t\t\t\t\n//\t\t\t\t\tconvert words to lower case\n\t\t\t\t\tString wordSet = word[i].toLowerCase();\n//\t\t\t\t\tadds words to set\n\t\t\t\t\tuniqueWords.add(wordSet);\n\t\t\t\t}\t\n\t\t\t}\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static String reducedWord(String word) {\n String lcWord = word.toLowerCase();\n String redVowels = convertVowels(lcWord);\n String noDuplicates = removeDuplicate(redVowels);\n return noDuplicates;\n }", "public static void cleanLine(String[] wordsInLine){\n int i = 0;\n for(String word : wordsInLine){\n wordsInLine[i] = word.toLowerCase().replaceAll(\"[^a-zA-Z0-9\\\\s]\",\"\");\n i++;\n }\n }", "public List<String> getAllWords() {\n List<String> words = new ArrayList<>();\n // get the words to the list\n getAllWords(root, \"\", 0, words);\n // and return the list of words\n return words;\n }", "public static final String[] removeCommonWords(String[] words) {\r\n if (commonWordsMap == null) {\r\n synchronized (initLock) {\r\n if (commonWordsMap == null) {\r\n commonWordsMap = new HashMap();\r\n for (int i = 0; i < commonWords.length; i++) {\r\n commonWordsMap.put(commonWords[i], commonWords[i]);\r\n }\r\n }\r\n }\r\n } \r\n ArrayList results = new ArrayList(words.length);\r\n for (int i = 0; i < words.length; i++) {\r\n if (!commonWordsMap.containsKey(words[i])) {\r\n results.add(words[i]);\r\n }\r\n }\r\n return (String[]) results.toArray(new String[results.size()]);\r\n }", "private static ArrayList<String> getAllKeyWord(String [] lignes){\n ArrayList<String> res= new ArrayList<>();\n\n // La recherche dans le pdf\n for(String ligne : lignes){\n for(String mot : ligne.split(\" |/|-|\\\\(|\\\\)|,\")){\n\n try{\n if(mot.toLowerCase(Locale.ENGLISH).equals(\"c#\".toLowerCase(Locale.ENGLISH)))\n res.add(\"csharp\");\n else\n if(mot.toLowerCase(Locale.ENGLISH).equals(\"c++\".toLowerCase(Locale.ENGLISH)))\n res.add(\"cpp\");\n else\n if(!mot.toLowerCase(Locale.ENGLISH).matches(\"| |à|de|je|un|et|une|en|d'un|d'une|le|la|avec|:|\\\\|\"))\n res.add(mot.toLowerCase(Locale.ENGLISH));\n }catch (IllegalArgumentException e){\n //System.out.println(e.getMessage());\n continue;\n }\n }\n //System.out.println(\"line: \"+s);\n }\n return (ArrayList) res.stream().distinct().collect(Collectors.toList());\n }", "public void remove(String word) {\n Node<String> current = list.getFirst();\n int currentLenght = 0;\n\n while (current != null) {\n String another = (String) current.getValue();\n\n for (int i = 0; i < word.length(); i++) {\n if (word.charAt(i) == another.charAt(i)) {\n currentLenght++;\n\n if (currentLenght == word.length() && current.getNext() != null && current.getPrevious() != null) {\n current.getNext().setPrevious(current.getPrevious());\n current.getPrevious().setNext(current.getNext());\n return;\n } else if (currentLenght == word.length() && current.getNext() != null) {\n current.getNext().setPrevious(null);\n list.setFirst(current.getNext());\n } else if (currentLenght == word.length() && current.getPrevious() != null) {\n current.getPrevious().setNext(null);\n }\n } else {\n currentLenght = 0;\n break;\n }\n }\n current = current.getNext();\n }\n return;\n }", "public ArrayList<String> getWords() {\n return new ArrayList<>(words);\n }", "public boolean isWord2ignore(String word);", "static void doWords(String words, MorseAction action) throws InterruptedException{\n if (firstPass){\n action.doAction(MorseAction.morseAction.SILENCE);\n Thread.sleep(500);\n firstPass=false;\n }\n for (byte b: words.getBytes()){\n if (stop)\n return;\n if (b==blanc) {// word separator\n Thread.sleep(betweenWordDelay);\n continue;\n }\n doLetter(b, action);\n Thread.sleep(betweenLetterDelay);\n }\n Thread.sleep(betweenWordDelay);\n }", "public Set<String> getWordsNotFoundByUser(){\n\n Set<String> validWordsOnBoardCopy = new HashSet<String>();\n validWordsOnBoardCopy.addAll(validWordsOnBoard);\n validWordsOnBoardCopy.removeAll(validWordsFoundByUser);\n\n return validWordsOnBoardCopy;\n }", "public static void main(String[] args) {\n String[] animals = {\"Cat\", \"Dog\", \"Dog\", \"Bird\", \"Fish\", \"Cat\"};\n\n ArrayList<String> animalsList = new ArrayList<>(Arrays.asList(animals));\n System.out.println(animalsList);\n\n /*\n Remove Cat elements and print your ArrayList again\n\n EXPECTED RESULT:\n [Dog, Bird, Fish]\n */\n\n System.out.println(\"\\n---Removing-Cat-1st way creating a new list---\\n\");\n ArrayList<String> animalsWithoutCats = new ArrayList<>(); // empty at this line\n\n for(String element: animalsList){\n if(!element.equalsIgnoreCase(\"cat\")) animalsWithoutCats.add(element);\n }\n\n System.out.println(\"List after removing cats = \" + animalsWithoutCats);\n\n\n System.out.println(\"\\n---Removing-Dog-2nd way using iterator---\\n\");\n\n Iterator<String> myIterator = animalsList.iterator();\n\n while(myIterator.hasNext()){\n if(myIterator.next().equalsIgnoreCase(\"dog\")) myIterator.remove();\n }\n\n System.out.println(\"List after removing dogs = \" + animalsList);\n }", "public List<Stem> stem(String word) {\n return stem(word.toCharArray(), word.length());\n }", "@Override\r\n public String wordsOriginal(char[] arrayOfword) {\n String origalWord = \"\";//define a String for save the word orignal\r\n try {\r\n for (int i = 0; i < arrayOfword.length; i++) {\r\n origalWord += arrayOfword[i];//each charater put in the string origalWord\r\n }\r\n } catch (Exception e) {\r\n JOptionPane.showMessageDialog(null, \"An error has occured!\");\r\n }\r\n return origalWord;\r\n }", "private static void filterLeaveOnlyMatching(@NotNull final Iterable<String> suggestions, @NotNull final String textToMatch) {\n // TODO: use guava instead?\n final Iterator<String> iterator = suggestions.iterator();\n while (iterator.hasNext()) {\n if (!iterator.next().startsWith(textToMatch)) {\n iterator.remove();\n }\n }\n }", "public void remove(String word) {\n\t\tif (word == null) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tQueue<Character> characters = this.toCharacterQueue(word.strip().toLowerCase());\n\t\tthis.remove(this.root, characters);\n\t}", "public static String getStopWords() throws IOException{\n\t\tString filepath1 = \"C:/Naveen/CCS/IR/AP89_DATA/AP_DATA/stoplist.txt\";\n\t\tPath path1 = Paths.get(filepath1);\n\t\tScanner scanner1 = new Scanner(path1);\n\t\tStringBuffer stopWords = new StringBuffer();\n\t\t\n\t\twhile (scanner1.hasNextLine()){\n\t\t\tString line = scanner1.nextLine();\n\t\t\tstopWords.append(line);\n\t\t\tstopWords.append(\"|\");\n\t } \n\t\t\n\t\tstopWords.append(\"document|discuss|identify|report|describe|predict|cite\");\n\t\tString allStopwords = stopWords.toString();\n\t\t//System.out.println(\"\"+allStopwords);\n\t\treturn allStopwords;\n\t}", "public void remove(String dataFile) throws IOException\r\n {\r\n //eliminate duplicate words\r\n BufferedReader bufferedReader = new BufferedReader(new FileReader(dataFile));\r\n String line1 = bufferedReader.readLine();\r\n\r\n //loop that eliminates duplicate words using a set of strings\r\n while(line1 != null)\r\n {\r\n String tempWords[] = line1.split(\" \");\r\n for(String words : tempWords)\r\n {\r\n if(!uniqueWords.contains(words)) uniqueWords.add(words);\r\n }\r\n line1 = bufferedReader.readLine();\r\n }\r\n bufferedReader.close();\r\n }", "public Set<String> hyponyms(String word) {\n Set<String> toReturn = new HashSet<String>();\n Set<Integer> wordIndexes = new HashSet<Integer>();\n wordIndexes = wnetsi.get(word);\n Set<Integer> toReturnInt = GraphHelper.descendants(g, wordIndexes);\n Object[] returnArray = toReturnInt.toArray();\n for (int i = 0; i < returnArray.length; i += 1) {\n Set<String> stringReturn = wnetis.get(returnArray[i]);\n Iterator<String> strIter = stringReturn.iterator();\n while (strIter.hasNext()) {\n toReturn.add(strIter.next());\n }\n }\n return toReturn;\n }", "private boolean remove(Entry curr, StringIterator iter, int index)\n {\n \t//If we have found the word\n \tif (index == iter.arr.length)\n \t{\n \t\tif (!curr.EndOfWord)\n \t\t{\n \t\t\tSystem.out.println(\"String can not be removed as it was not inserted as a word.\");\n \t\t\treturn false;\n \t\t}\n \t\t\n \t\tcurr.EndOfWord = false;\n \t\tcurr.value = null;\n \t\tsize--;\n \t\tSystem.out.println(\"String removed.\");\n \t\treturn curr.child.size() == 0;\n \t}\n \t\n \t//If at intermediate position\n \tchar ch = iter.arr[index];\n \tEntry node = curr.child.get(ch);\n \t\n \t//If node does not exist for given character\n \tif (node == null) \n \t{\n \t\tSystem.out.println(\"String can not be removed as it does not exist.\");\n \t return false;\t\n \t}\n \t\n \t//shouldDeleteCurrNode becomes true if child node is empty and ready to be deleted.\n \tboolean shouldDeleteCurrentNode = remove(node, iter, index+1);\n \tif (shouldDeleteCurrentNode)\n \t{\n \t\t//If Node does not indicate end of any word.\n \t\tif(!curr.EndOfWord)\n \t\t{\n \t\t\tcurr.child.remove(ch);\n \t\treturn curr.child.size() == 0;\n \t\t}\n \t}\n \treturn false;\n }", "private static void list() throws FileNotFoundException {\n ArrayList<String> words = new ArrayList<>();\n Scanner input = new Scanner(new File(fileLocation));\n while (input.hasNext()) {\n String word = input.next();\n if (!words.contains(word)) {\n words.add(word);\n }\n }\n }", "public static void findWords(String target) throws FileNotFoundException{\n //reads file through the scanner\n scan = new Scanner(newFile);\n \n //creates new arraylist \n ArrayList<String> list = new ArrayList<String>();\n int count;\n while(scan.hasNextLine()){\n word = scan.nextLine();\n if(contains(target, word)){\n list.add(word.toLowerCase());\n }\n }\n\n int length = target.length();\n\n for(int i = length; i >= 2; i--){\n count = 0;\n System.out.println(i + \" letter words made by unscrambling the letters in \" + target );\n \n //This loop goes through all the strings in the arraylist of words contained\n //in the target word\n for(String a : list){\n //If the length of word in the arraylist is equal to i it prints the \n //word, as long as the line does not go over 40 characters\n if(a.length() == i) {\n if(count > (40 -a.length())){ \n System.out.print(\"\\n\");\n System.out.print(a + \" \");\n count = 0;\n count += (a.length() + 1);\n }\n else{\n System.out.print(a + \" \");\n count += (a.length() + 1);\n }\n }\n\n }\n //decrements length, and continues going through the loop\n length--;\n System.out.println(\"\\n\");\n }\n }", "@Test\n public void removeEqualWordsTest(){\n BotController botController = new BotController(clueService);\n List<Synonym> synonymsOfDiamond = botController.getSimilarWords(\"diamond\");\n //assume diamonds get return as synonym of diamond\n Synonym diamondsSynonym = new Synonym();\n diamondsSynonym.setWord(\"diamonds\");\n diamondsSynonym.setScore(1000);\n synonymsOfDiamond.add(diamondsSynonym);\n\n List<String> synonymsBeforeRemoving = new ArrayList<>();\n for(Synonym synonym: synonymsOfDiamond){\n synonymsBeforeRemoving.add(synonym.getWord());\n }\n synonymsOfDiamond = botController.removeEqualWords(synonymsOfDiamond,\"diamond\");\n List<String> synonymsAfterRemoving = new ArrayList<>();\n for(Synonym synonym: synonymsOfDiamond){\n synonymsAfterRemoving.add(synonym.getWord());\n }\n\n assertTrue(synonymsBeforeRemoving.contains(\"diamonds\"));\n assertFalse(synonymsAfterRemoving.contains(\"diamonds\"));\n\n\n }", "public void clearWordList () {\r\n words.clear ();\r\n Components.wordList.getContents ().removeAllElements ();\r\n }", "public static Set<String> getNonStopTrigrams(String value) {\n\t\tSet<String> trigrams = new HashSet<>(value.length());\n\t\tfor (int i =0; i < value.length() - 2; ++i) {\n\t\t\tString trigram = value.substring(i,i+3);\n\t\t\tif (!Tools.stop3grams.contains(trigram)) { //this excludes stop-trigrams\n\t\t\t\ttrigrams.add(value.substring(i,i+3));\n\t\t\t}\n\t\t}\t\t\n\t\treturn trigrams;\n\t}", "private void exercise7() throws IOException {\n final Path resourcePath = retrieveResourcePath();\n List<String> result;\n try (BufferedReader reader = newBufferedReader(resourcePath)) {\n result = reader.lines()\n .flatMap(line -> of(line.split(WORD_REGEXP)))\n .distinct()\n .map(String::toLowerCase)\n .sorted(comparingInt(String::length))\n .collect(toList());\n }\n\n result.forEach(System.out::println);\n }", "public void removeTerm(String name) {\n ArrayList<String> temp = new ArrayList<>();\n\n for (Term t: listOfTerms) {\n String termName = t.getTermName();\n temp.add(termName);\n }\n\n int index = temp.indexOf(name);\n listOfTerms.remove(index);\n }", "public List<Word> getWordsWithGivenLetter(Text text, char ch) {\n\n List<Word> allWords = getTextWords(text.getBookText());\n\n List<Word> words = new ArrayList<Word>();\n\n for (int i = 0; i < allWords.size(); i++) {\n Word tempWord = new Word(allWords.get(i).getCharsSequence());\n if (logic.isWordContainChar(tempWord, ch)) {\n if (!words.contains(tempWord)) {\n words.add(tempWord);\n }\n }\n }\n\n Collections.sort(words, new WordGivenCharComparator(ch));\n\n return words;\n }", "public List<String> stopTermRemoval(List<String> terms) {\r\n\t\tif(swr == null)\r\n\t\t\ttry {\r\n\t\t\t\tswr = new StopTermRemoval(SVMClassifier.class.getClassLoader().getResource(\"stopwords.txt\").openStream());\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\tswr.removeSymbolTerms(terms);\r\n\t\tswr.removeStopTerms(terms);\r\n\t\treturn terms;\r\n\t}", "private String[] mixedWords(String[] words)\n {\n String[] output = new String[words.length];\n for(int i = 0; i < words.length; i++){\n if(i%2==0){\n output[i] = recombine(words[i], words[i+1]);\n } else {\n output[i] = recombine(words[i], words[i-1]);\n }\n }\n return output;\n }", "public Iterable<String> getAllValidWords(BoggleBoard board) {\n int rows = board.rows();\n int cols = board.cols();\n ArrayList<String> all = new ArrayList<String>();\n // 1. enumerate all strings that can be composed by adj dice\n for (int i = 0; i < rows; i++) {\n for (int j = 0; j < cols; j++)\n depthFirstSearch(board, i, j, all);\n }\n\n // 2. for each string, check the longest prefix\n // 2. store the word\n wordsSoFar = all;\n return wordsSoFar;\n }" ]
[ "0.6314073", "0.627023", "0.6085943", "0.58879757", "0.5875389", "0.58605903", "0.5815171", "0.5723511", "0.57172143", "0.5699037", "0.5684371", "0.56804985", "0.5635946", "0.5623031", "0.56201184", "0.5601839", "0.55844843", "0.55756694", "0.5524273", "0.55095506", "0.5493703", "0.5478905", "0.5476286", "0.5469991", "0.54299384", "0.54277474", "0.54195935", "0.54151356", "0.5376285", "0.53643477", "0.53527796", "0.533648", "0.53313786", "0.5327151", "0.53226525", "0.53076744", "0.53050554", "0.53050476", "0.52823174", "0.52415437", "0.5240699", "0.5240227", "0.5239496", "0.5229666", "0.52169156", "0.5208808", "0.5176631", "0.5176508", "0.5169293", "0.5151692", "0.51451087", "0.51392794", "0.51265097", "0.5115777", "0.5113876", "0.5108946", "0.5104215", "0.5078282", "0.5069129", "0.50638276", "0.5060577", "0.5043001", "0.50386673", "0.50350845", "0.50337666", "0.5026452", "0.50183856", "0.5013843", "0.50091714", "0.5002087", "0.49939492", "0.49923053", "0.49803653", "0.49683234", "0.4960745", "0.49593523", "0.49457777", "0.49365455", "0.49351114", "0.4934778", "0.49269935", "0.4922389", "0.49157527", "0.4903138", "0.4895697", "0.48953807", "0.4891047", "0.48875985", "0.48836327", "0.48706573", "0.48654455", "0.48648518", "0.48644966", "0.4864199", "0.48479664", "0.48412013", "0.48395324", "0.48374322", "0.4837121", "0.48331028" ]
0.73095834
0
Sets the jdbc template.
public void setJdbcTemplate(JdbcTemplate jdbcTemplate) { this.jdbcTemplate = jdbcTemplate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setTemplate(JdbcTemplate template) {\n\t\tthis.template = template;\n\t}", "public void setJdbcTemplate(JdbcTemplate jdbcTemplate) {\n this.jdbcTemplate = jdbcTemplate;\n }", "public void setJdbcTemplate(JdbcTemplate jdbcTemplate) {\r\n this.jdbcTemplate = jdbcTemplate;\r\n }", "public void setJdbcTemplate(JdbcTemplate jdbcTemplate) {\r\n\r\n\t\tthis.jdbcTemplate = jdbcTemplate;\r\n\t}", "public void setTemplate(HibernateTemplate template) {\n\t\tthis.template = template;\n\t}", "@Autowired\r\n public void setJdbcTemplate(DataSource dataSource) {\r\n this.jdbcTemplate = new JdbcTemplate(dataSource);\r\n }", "public DressDaoJdbc(NamedParameterJdbcTemplate jdbcTemplate) {\n this.jdbcTemplate = jdbcTemplate;\n }", "public void setTemplate(Template template)\n/* */ {\n/* 62 */ this.template = template;\n/* */ }", "public void setSimpleJdbcTemplate(SimpleJdbcTemplate simpleJdbcTemplate) {\r\n this.simpleJdbcTemplate = simpleJdbcTemplate;\r\n }", "@Autowired\n public void setDataSource(DataSource dataSource) {\n this.jdbcTemplate = new JdbcTemplate(dataSource);\n this.namedJdbcTemplate = new NamedParameterJdbcTemplate(dataSource);\n }", "@Autowired\n public void setDataSource( DataSource dataSource ) {\n this.simpleJdbcTemplate = new SimpleJdbcTemplate( dataSource );\n }", "public SimpleJdbcUpdate(JdbcTemplate jdbcTemplate) {\n super(jdbcTemplate);\n }", "public NamedParameterJdbcTemplate getJdbcTemplate() {\n return _jdbcTemplate;\n }", "@Autowired\n public ConsoleDaoJdbcTemplateImpl(JdbcTemplate jdbcTemplate) {\n this.jdbcTemplate = jdbcTemplate;\n }", "@Bean\n public JdbcTemplate jdbcTemplate() {\n return new JdbcTemplate(dataSource());\n }", "public void setHibernateTemplate(HibernateTemplate hibernateTemplate) {\n this.hibernateTemplate = hibernateTemplate;\n }", "public JdbcTemplate getJdbcTemplate() {\n if (jdbcTemplate == null) {\n if (dataSource == null) {\n throw new IllegalStateException(\"ff4j-jdbc: DatabaseStore has not been properly initialized, datasource is null\");\n }\n this.jdbcTemplate = new JdbcTemplate(dataSource);\n }\n return jdbcTemplate;\n }", "public void setHibernateTemplate(HibernateTemplate hibernateTemplate){\r\n\t\tthis.hibernateTemplate = hibernateTemplate;\r\n\t}", "public void setHibernateTemplate(HibernateTemplate hibernateTemplate){\r\n\t\tthis.hibernateTemplate = hibernateTemplate;\r\n\t}", "public void setHibernateTemplate(HibernateTemplate hibernateTemplate){\r\n\t\tthis.hibernateTemplate = hibernateTemplate;\r\n\t}", "public void setHibernateTemplate(HibernateTemplate hibernateTemplate){\r\n\t\tthis.hibernateTemplate = hibernateTemplate;\r\n\t}", "public void setTemplate(ProducerTemplate template) {\n this.template = template;\n }", "public void setQueryTemplate(String template) {\n queryTemplate = template;\n resetCache();\n }", "void create(QueryCursor cursor, String indexName, String... templateProperties) throws SQLException;", "public void setTemplateFileName( String templateFileName )\n {\n _strTemplateFileName = templateFileName;\n }", "final public void setTemplateSource(String templateSource)\n {\n setProperty(TEMPLATE_SOURCE_KEY, (templateSource));\n }", "public void setDataSource(DataSource dataSource) {\n\t\tthis.dataSource = dataSource;\n\t\tthis.jdbcTemplate = new JdbcTemplate(dataSource);\n\t}", "protected AbstractJdbcUpdate(JdbcTemplate jdbcTemplate) {\r\n\t\tAssert.notNull(jdbcTemplate, \"JdbcTemplate must not be null\");\r\n\t\tthis.jdbcTemplate = jdbcTemplate;\r\n\t\tsetNativeJdbcExtractor(jdbcTemplate.getNativeJdbcExtractor());\r\n\t}", "public void setDataSource(DataSource dataSource) {\n\t\tthis.dataSource = dataSource; // Sets the current object this of the class's attribute dataSource eqal to the object of datasource\n\t\tthis.jdbcTemplateObject = new JdbcTemplate(dataSource); // Instantiation of the JDBCTemplateObject class which takes in the object of datasource to set up data synchronization\n\t\t\n\t}", "void setTemplate(ITemplateKey key, Template template);", "public void setTemplate(MetaData mdTemplate) throws IOException;", "public void setup(String driverClass, String url, String user, String pass) throws SQLException {\n\t BasicDataSource bds = new BasicDataSource();\n bds.setDriverClassName(driverClass);\n bds.setUrl(url);\n bds.setMaxTotal(MAX_TOTAL_CONNECTIONS);\n bds.setMaxIdle(MAX_IDLE_CONNECTIONS);\n bds.setUsername(user);\n bds.setPassword(pass);\n bds.setValidationQuery(\"SELECT 1\");\n bds.setTestOnBorrow(true);\n bds.setDefaultAutoCommit(true);\n\n //check that everything works OK \n bds.getConnection().close();\n\n //initialize the jdbc template utility\n jdbcTemplate = new JdbcTemplate(bds);\n\n //keep the dataSource for the low-level manual example to function (not actually required)\n dataSource = bds;\n }", "public void setDebuggerTemplate(final DebuggerTemplate template) throws CouldntSaveDataException {\n try {\n m_module.getConfiguration().setDebuggerTemplate(template == null ? null : template.getNative());\n } catch (final com.google.security.zynamics.binnavi.Database.Exceptions.CouldntSaveDataException e) {\n throw new CouldntSaveDataException(e);\n }\n }", "protected AbstractJdbcUpdate(DataSource dataSource) {\r\n\t\tthis.jdbcTemplate = new JdbcTemplate(dataSource);\r\n\t}", "@Bean\n @Scope(\"prototype\")\n public JdbcTemplate jdbcTemplate(DruidDataSource datasourceRouter){\n return new JdbcTemplate(datasourceRouter);\n }", "@Autowired(required = false)\n\tpublic void setDataSource(DataSource dataSource) {\n\t\tsimpleJdbcTemplate = new JdbcTemplate(dataSource);\n\t\tsimpleJdbcInsert = new SimpleJdbcInsert(dataSource);\n\t\tnamedParameterJdbcOperations = new NamedParameterJdbcTemplate(dataSource);\n\t\tthis.dialect = getDialect(dataSource);\n\t}", "@Autowired\n public TransactionDao(JdbcTemplate jdbcTemplate) {\n this.jdbcTemplate = jdbcTemplate;\n }", "@Override\n\tpublic void setTemplateEngine(TemplateEngine templateEngine) {\n\n\t}", "public OracleSchema(JdbcTemplate jdbcTemplate, OracleDbSupport dbSupport, String name) {\n super(jdbcTemplate, dbSupport, name);\n }", "@Override\n\tpublic JdbcTemplate getJdbcTemplate() throws Exception {\n\t\treturn null;\n\t}", "public void setTemplateEngine(TemplateEngine engine) {\n queryCreator = engine;\n registerTemplate();\n resetCache();\n }", "@Override\r\n\tpublic void update(SimpleJdbcTemplate template) throws Exception {\n\t}", "private void setUpConnection(DataBaseProps dataBaseConfig) {\n\t\tHikariConfig hikariConfig = new HikariConfig();\r\n\t\thikariConfig.setDriverClassName(dataBaseConfig.getDriverName());\r\n\t\thikariConfig.setJdbcUrl(dataBaseConfig.getUrl());\r\n\t\thikariConfig.setUsername(dataBaseConfig.getUsername());\r\n\t\thikariConfig.setPassword(dataBaseConfig.getPassword());\r\n\t\thikariConfig.setMaximumPoolSize(maximumPoolSize);\r\n\t\thikariConfig.setValidationTimeout(validationTimeout);\r\n\t\thikariConfig.setConnectionTimeout(connectionTimeout);\r\n\t\thikariConfig.setIdleTimeout(idleTimeout);\r\n\t\thikariConfig.setMinimumIdle(minimumIdle);\r\n\t\tHikariDataSource dataSource = new HikariDataSource(hikariConfig);\r\n\t\tthis.jdbcTemplate = new NamedParameterJdbcTemplate(dataSource);\r\n\t}", "public JDBCCellWriter(JDBCConfig jdbcConfig) {\n this.jdbcConfig = jdbcConfig;\n String rawJdbcQuery = jdbcConfig.getJdbcQuery();\n this.jdbcConfig.setJdbcQuery(sanitizeQuery(rawJdbcQuery));\n }", "public TracingWrappedJdbcTemplate() {\n\t}", "HibernateTransactionTemplate() {\n _transactionTemplate = getTransactionTemplate();\n _hibernateTemplate = getHibernateTemplate();\n }", "private void setTemplateHandler(TemplateHandler3D templateHandler) throws CDKException {\n\t\tif (templateHandler == null) throw new NullPointerException(\"The given template handler is null!\");\n\t\t\n\t\tthis.templateHandler = templateHandler;\n\t}", "public void setTemplateFilename(String templateFilename) {\n\t\tthis.templateFilename = StringUtil.replaceExtension(templateFilename, \"html\");\n\t}", "public void setTemplateName(java.lang.Object templateName) {\n this.templateName = templateName;\n }", "public JdbcTemplate getSimpleJdbcTemplate() {\n\t\treturn simpleJdbcTemplate;\n\t}", "public void setTemplateid(Integer templateid) {\n this.templateid = templateid;\n }", "public void setTemplateName(String templateName) {\r\n\t\tthis.templateName = templateName;\r\n\t}", "public void setTemplateName(String templateName) {\n this.templateName = templateName;\n }", "public final void setMxSheet_Template(xlsreport.proxies.MxTemplate mxsheet_template)\r\n\t{\r\n\t\tsetMxSheet_Template(getContext(), mxsheet_template);\r\n\t}", "public DB2zosSchema(JdbcTemplate jdbcTemplate, DB2zosDbSupport dbSupport, String name) {\n super(jdbcTemplate, dbSupport, name);\n }", "public JDBCCityDAO(DataSource dataSource) {\n\t\tthis.jdbcTemplate = new JdbcTemplate(dataSource);\n\t}", "private void insertTemplateRow(Connection con,\n IdentifiedRecordTemplate template) throws SQLException {\n PreparedStatement insert = null;\n \n try {\n int internalId = getNextId(TEMPLATE_TABLE, \"templateId\");\n template.setInternalId(internalId);\n String externalId = template.getExternalId();\n String templateName = template.getTemplateName();\n \n insert = con.prepareStatement(INSERT_TEMPLATE);\n insert.setInt(1, internalId);\n insert.setString(2, externalId);\n insert.setString(3, templateName);\n insert.execute();\n } finally {\n DBUtil.close(insert);\n }\n }", "public String getJdbcType() {\n return this.jdbcType;\n }", "public String getJdbcType() {\n return this.jdbcType;\n }", "public String getJdbcType() {\n return this.jdbcType;\n }", "public String getJdbcType() {\n return this.jdbcType;\n }", "public String getJdbcType() {\n return this.jdbcType;\n }", "public String getJdbcType() {\n return this.jdbcType;\n }", "public String getJdbcType() {\n return this.jdbcType;\n }", "public String getJdbcType() {\n return this.jdbcType;\n }", "public String getJdbcType() {\n return this.jdbcType;\n }", "public String getJdbcType() {\n return this.jdbcType;\n }", "public String getJdbcType() {\n return this.jdbcType;\n }", "public void setSessionFactory(SessionFactory sessionFactory) {\n template = new HibernateTemplate(sessionFactory);\n}", "public abstract void setTemplId(Integer templId);", "public void applyTemplate(JasperDesign design, Template template)\n\t{\n\t}", "public void setTemplateId(int tmp) {\n this.templateId = tmp;\n }", "public void setupDB()\r\n\t{\n\tjdbcTemplateObject.execute(\"DROP TABLE IF EXISTS employee1 \");\r\n\r\n\tjdbcTemplateObject.\r\n\texecute(\"CREATE TABLE employee1\"\r\n\t+ \"(\" + \"name VARCHAR(255), id SERIAL)\");\r\n\t}", "public void setIsTemplateJob(boolean isTemplateJob) {\n this.isTemplateJob = isTemplateJob;\n }", "public void setLdapTemplate(final LdapTemplate ldapTemplateObj) {\r\n m_ldapTemplate = ldapTemplateObj;\r\n }", "public void setSessionFactory(SessionFactory sessionFactory) {\r\n template = new HibernateTemplate(sessionFactory);\r\n }", "@Override\n public void setTplPath(String arg0) {\n\n }", "public TracingWrappedJdbcTemplate(DataSource dataSource) {\n\t\tsuper(dataSource);\n\t}", "public final void setMxSheet_Template(com.mendix.systemwideinterfaces.core.IContext context, xlsreport.proxies.MxTemplate mxsheet_template)\r\n\t{\r\n\t\tif (mxsheet_template == null)\r\n\t\t\tgetMendixObject().setValue(context, MemberNames.MxSheet_Template.toString(), null);\r\n\t\telse\r\n\t\t\tgetMendixObject().setValue(context, MemberNames.MxSheet_Template.toString(), mxsheet_template.getMendixObject().getId());\r\n\t}", "private void setDataBase(Settings set) {\n URL_BASE_POSTGRES = set.getValue(\"jdbc.urlBasePostgres\");\n URL_BASE_VACANCY = set.getValue(\"jdbc.urlBaseVacancy\");\n USER_NAME = set.getValue(\"jdbc.userName\");\n PASSWORD = set.getValue(\"jdbc.password\");\n }", "public void setSchema(String schema)\n {\n if(this.props == null)\n {\n this.props = new Properties();\n }\n this.props.setProperty(\"db.schema\", schema);\n }", "protected void registerTemplate() {\n if (initialized) {\n queryTemplateName = \"shibboleth.resolver.dc.\" + getId();\n queryCreator.registerTemplate(queryTemplateName, queryTemplate);\n }\n }", "public TblrefTemplateRecord(Integer tempid, String tempname, String tempcontent, Byte isactive, Timestamp createddate, String createduser) {\n super(TblrefTemplate.TBLREF_TEMPLATE);\n\n set(0, tempid);\n set(1, tempname);\n set(2, tempcontent);\n set(3, isactive);\n set(4, createddate);\n set(5, createduser);\n }", "public void setTemplateStore(TemplateStore store) {\n \t\tfTemplateStore= store;\n \t}", "public abstract void setTemplCd(String templCd);", "void setStatement(Statement statement);", "public void setTemplateId(String tmp) {\n this.setTemplateId(Integer.parseInt(tmp));\n }", "public void setStatementCreator(JdbcStatementCreator statementCreator) {\n this.statementCreator = statementCreator;\n }", "public void setTemplateId(Long templateId) {\r\n this.templateId = templateId;\r\n }", "@Bean\n @Scope(\"prototype\")\n public NamedParameterJdbcTemplate namedParameterJdbcTemplate(DruidDataSource datasourceRouter){\n return new NamedParameterJdbcTemplate(datasourceRouter);\n }", "public void loadTemplate() throws Exception {\n\t\tScanner fs = new Scanner(this.getClass().getClassLoader().getResourceAsStream(template));\n\t\t\n\t\tStringBuffer sql = new StringBuffer();\n\t\ttry {\n\t\t\twhile(fs.hasNextLine()) {\n\t\t\t\tsql.append(fs.nextLine() + \"\\n\");\n\t\t\t}\n\t\t}finally {\n\t\t\tfs.close();\n\t\t}\n\t\tsqlText = sql.toString();\n\t}", "public void setDriver(String driver) throws BuildException {\n jdbcDriver = driver;\n }", "@Override\r\n\tpublic void setParameter(PreparedStatement ps, int i, String parameter,\r\n\t\t\tJdbcType jdbcType) throws SQLException {\n\t\t\r\n\t}", "public void setGraphicTemplateToUse(String template) throws\n\t\tInvalidGraphicTemplateException\n\t{\n\t\ttry\n\t\t{\n\t\t\tClass userPropClass = MedSummaryUserProperties.class;\n\n\t\t\tpCFactory.setPageCreatorToUse(template); // identifier\n\n\t\t\tpageView.setPageCreator(pCFactory.createPageCreator()); // triggers refresh\n\n\t\t\tmVDH.setUserStringPreference(LAST_GRAPHIC_TEMPLATE_USED_PROPERTY, template, userPropClass);\n\t\t}\n\t\tcatch (InvalidPageCreatorException e)\n\t\t{\n\t\t\tthrow new InvalidGraphicTemplateException(e.getMessage());\n\t\t}\n\t}", "public void setJdbcUrl(String val)\n {\n setValue(DataSourceDobj.FLD_JDBC_URL, val);\n }", "public void setTemplateCode(String templateCode) {\n this.templateCode = templateCode;\n }", "public native Template set(String html) /*-{\r\n\t\tvar template = [email protected]::getJsObj()();\r\n\t\ttemplate.set(html);\r\n\t\treturn this;\r\n\t}-*/;", "public void setJdbcCatalog(String val)\n {\n setValue(DataSourceDobj.FLD_JDBC_CATALOG, val);\n }", "@Override\r\n\t\tpublic void setSchema(String schema) throws SQLException {\n\t\t\t\r\n\t\t}" ]
[ "0.7697338", "0.73104715", "0.7304766", "0.71978843", "0.66961354", "0.6395281", "0.6390888", "0.62015", "0.6173883", "0.6021898", "0.5990598", "0.5974418", "0.59674317", "0.5957551", "0.5890383", "0.58511555", "0.58078504", "0.5788077", "0.5788077", "0.5788077", "0.5788077", "0.577585", "0.5754629", "0.5726994", "0.5686298", "0.56431675", "0.56426704", "0.5630955", "0.55998844", "0.55885786", "0.5576035", "0.5504641", "0.54841805", "0.54400533", "0.5419026", "0.53946024", "0.5334683", "0.53208095", "0.5280395", "0.5278728", "0.52522415", "0.5235106", "0.52068585", "0.519564", "0.51840645", "0.5183109", "0.51309776", "0.5124777", "0.5103967", "0.5100675", "0.5091507", "0.509068", "0.50871885", "0.5079785", "0.506302", "0.5051724", "0.5035597", "0.50291675", "0.50291675", "0.50291675", "0.50291675", "0.50291675", "0.50291675", "0.50291675", "0.50291675", "0.50291675", "0.50291675", "0.50291675", "0.5018338", "0.5014337", "0.5008123", "0.50076926", "0.5006104", "0.49936786", "0.49801412", "0.49731916", "0.4972672", "0.49641126", "0.49470755", "0.4940566", "0.49400342", "0.49348462", "0.49308038", "0.49304906", "0.49268994", "0.4919024", "0.4918633", "0.49183512", "0.4914949", "0.49092194", "0.49029642", "0.4902506", "0.48922575", "0.4885243", "0.48747817", "0.48739693", "0.4869465", "0.48641303", "0.48498052" ]
0.7197068
5
TODO Autogenerated method stub
@Override public boolean onKey(DialogInterface arg0, int keyCode, KeyEvent event) { if (keyCode == KeyEvent.KEYCODE_BACK) { dismiss(); } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
Created with IntelliJ IDEA. User: Mateusz Date: 01.12.12 Time: 16:42 To change this template use File | Settings | File Templates.
public interface IConverter<T, S> { public T convert(S input); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "private Solution() {\n /**.\n * { constructor }\n */\n }", "public static void generateCode()\n {\n \n }", "public void mo38117a() {\n }", "@SuppressWarnings(\"unused\")\n\tprivate void version() {\n\n\t}", "public void mo21785J() {\n }", "@Override\n public String getDescription() {\n return DESCRIPTION;\n }", "private void habilitar() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\n public void perish() {\n \n }", "@Override\n protected String getDescription() {\n return DESCRIPTION;\n }", "public static void thisDemo() {\n\t}", "public void mo21792Q() {\n }", "private static void oneUserExample()\t{\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "public final void mo51373a() {\n }", "@Override\n public void settings() {\n // TODO Auto-generated method stub\n \n }", "default void projectOpenFailed() {\n }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "private void cargartabla() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\n protected void startUp() {\n }", "default void refactoring() {\n templateBuilder.set(new StringBuilder());\n }", "public void mo21795T() {\n }", "@Override\n\tpublic void name() {\n\t\t\n\t}", "@Override\n\tpublic void name() {\n\t\t\n\t}", "private JacobUtils() {}", "public static void created() {\n\t\t// TODO\n\t}", "public void mo97908d() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "public static void main(String[] args) {\n throw new NotImplementedException();\n }", "public void mo21779D() {\n }", "public final void mo91715d() {\n }", "@Override\n public String getDescription() {\n return description;\n }", "public static void main() {\n \n }", "public static void main(String args[]) throws Exception\n {\n \n \n \n }", "private Example() {\n\t\tthrow new Error(\"no instantiation is permitted\");\n\t}", "public void mo12930a() {\n }", "@Deprecated\n\tprivate void oldCode()\n\t{\n\t}", "public void m23075a() {\n }", "void pramitiTechTutorials() {\n\t\n}", "public void mo23813b() {\n }", "public void mo1531a() {\n }", "public static void listing5_14() {\n }", "@Override\n public void func_104112_b() {\n \n }", "@SuppressWarnings(\"unused\")\n private void generateInfo()\n {\n }", "public void mo4359a() {\n }", "private SourcecodePackage() {}", "public void mo21781F() {\n }", "private TMCourse() {\n\t}", "@Override\n public int describeContents() { return 0; }", "public void mo21825b() {\n }", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "@Override\n protected void initialize() \n {\n \n }", "public TestIssue13() { // explicit to avoid a warning from JDK 18 javadoc\r\n }", "public void mo21878t() {\n }", "public void mo115188a() {\n }", "public void mo56167c() {\n }", "@Override\n public void init() {\n\n }", "public void mo21877s() {\n }", "public void mo21782G() {\n }", "private ReportGenerationUtil() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo5382o() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "public void mo5248a() {\n }", "private test5() {\r\n\t\r\n\t}", "Petunia() {\r\n\t\t}", "private Rekenhulp()\n\t{\n\t}", "@org.junit.Test\r\n\tpublic void test() {\n\t\t\t\t\r\n\t}", "public void mo6081a() {\n }", "@Override\n public void initialize() { \n }", "@Override\n public String describe() {\n return null;\n }", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "public void mo2740a() {\n }", "@Override\n void init() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n\tpublic void create () {\n\n\t}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\n public void init() {\n }", "@org.junit.Test\n public void setName() {\n }", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public void mo3376r() {\n }", "public void mo6944a() {\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n public void testCreateAsEditor() {}", "private void m50366E() {\n }", "public void mo44053a() {\n }" ]
[ "0.6028108", "0.60051477", "0.5801164", "0.57010317", "0.569218", "0.56602734", "0.5659311", "0.5641426", "0.56252706", "0.5622279", "0.5600864", "0.5600577", "0.55964416", "0.5593453", "0.5590116", "0.5576935", "0.5570465", "0.5569811", "0.5569811", "0.5569546", "0.5548318", "0.5522178", "0.55216765", "0.5512448", "0.5512448", "0.55120295", "0.55097187", "0.54920864", "0.5481061", "0.5481061", "0.5481061", "0.5481061", "0.5481061", "0.5481061", "0.5480801", "0.5468866", "0.54593176", "0.5459186", "0.54531777", "0.5452339", "0.54520243", "0.5451969", "0.54455733", "0.54352915", "0.5432666", "0.54318064", "0.5431803", "0.542872", "0.5427575", "0.5423927", "0.54213417", "0.5420548", "0.5419777", "0.5416388", "0.5416116", "0.5413571", "0.54073673", "0.5406117", "0.54052144", "0.5401903", "0.5396538", "0.53950393", "0.5389142", "0.5379295", "0.5376843", "0.53760433", "0.53755933", "0.53700054", "0.53635615", "0.5361328", "0.5361328", "0.5358184", "0.53572774", "0.5355368", "0.5355066", "0.53539765", "0.53487104", "0.53439575", "0.53429866", "0.53372407", "0.53372407", "0.5334759", "0.53339845", "0.5330617", "0.5322051", "0.53205204", "0.53205204", "0.53205204", "0.5314564", "0.53104454", "0.5309036", "0.53086597", "0.53086597", "0.5304122", "0.5302769", "0.5300202", "0.5297156", "0.52958816", "0.5293062", "0.5293021", "0.5289355" ]
0.0
-1
Get customer by id
public static Customer getCustomer(int id_cust) { Connection c = connection(); PreparedStatement stmt; int id = 0; String name = null; String email = null; String password = null; Customer customer = null; try { String sql = "SELECT * FROM customer WHERE id=?;"; stmt = c.prepareStatement(sql); stmt.setInt(1, id_cust); ResultSet rs = stmt.executeQuery(); while (rs.next()) { id = rs.getInt("id"); name = rs.getString("name"); email = rs.getString("email"); password = rs.getString("password"); } stmt.close(); c.close(); customer = new Customer(id, name, email, password); } catch (SQLException e) { e.printStackTrace(); } return customer; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Customer getCustomerById(final Long id);", "@Override\n\tpublic Customer getCustomer(Integer id) {\n\t\treturn customerDao.findById(id);\n\t}", "@Override\n\tpublic Customer retrieveCustomer(Integer id) {\n\n\t\tCustomer customer = new Customer();\n\n\t\tfor (Customer cust : customers) {\n\t\t\tif (cust.getId() == id) {\n\t\t\t\tcustomer.setId(id);\n\t\t\t\tcustomer.setUsername(cust.getUsername());\n\t\t\t\tcustomer.setFirstName(cust.getFirstName());\n\t\t\t\tcustomer.setLastName(cust.getLastName());\n\t\t\t\tcustomer.setEmail(cust.getEmail());\n\t\t\t\tcustomer.setUserType(cust.getUserType());\n\t\t\t\tcustomer.setPassword(cust.getPassword());\n\t\t\t\tcustomer.setAddress(cust.getAddress());\n\t\t\t}\n\t\t}\n\t\tlogger.info(\"A GET call retrieved a customer: retrieveCustomer()\");\n\t\treturn customer;\n\t}", "@Override\n\tpublic Customer getCustomer(int id) {\n\t\treturn sessionFactory.getCurrentSession().get(Customer.class, id);\n\t}", "Customer findById(Long id);", "@Override\r\n\tpublic Customer getCustomerById(int id) {\n\t\treturn customerdao.getCustomerById(id);\r\n\t}", "public Customer getCustomer(int id) {\r\n\t\treturn manager.getCustomer(id);\r\n\t}", "Customer getCustomerById(int customerId);", "public String getCustomer(String custId);", "public Customer getCustomerById(Integer id) {\n\t\treturn (Customer) sessionFactory.getCurrentSession().createCriteria(Customer.class).add(Restrictions.eq(\"id\",id)).uniqueResult();\r\n\t}", "@Override\n public Customer getCustomerById(Long id) {\n log.debug(\"Inside getCustomerById method\");\n return customerRepository.findById(id).orElseThrow(\n () -> new ResourceNotFoundException(\"No customer present with the id : \" + id));\n }", "@GET\n\t@Path(\"get\")\n\tpublic Customer getCustomer(@QueryParam(\"id\") int id) {\n\t\treturn ManagerHelper.getCustomerManager().get(id);\n\n\t}", "public Customer getCustomerById(Integer id) throws DataNotFoundException {\n Optional<Customer> optionalCustomer = customerRepository.findById(id);\n if(optionalCustomer.isPresent())\n return optionalCustomer.get();\n else\n throw new DataNotFoundException(\"Customer with id: \" + id + \" not found\");\n }", "public Customer findById(Integer id) {\n\t\treturn customerDao.findById(id);\r\n\t}", "@Override\n\tpublic Customer getCustomer(long id) throws Exception {\n\t\tConnection con = pool.getConnection();\n\t\tCustomer customer = new Customer();\n\t\ttry {\n\t\t\tString getCustomer = String.format(\"select * from customer where id in('%d')\", id);\n\n\t\t\tStatement st = con.createStatement();\n\t\t\tResultSet rs = st.executeQuery(getCustomer);\n\n\t\t\tif (rs.next()) {\n\t\t\t\tcustomer.setId(id);\n\t\t\t\tcustomer.setCustName(rs.getString(\"Cust_Name\"));\n\t\t\t\tcustomer.setPassword(rs.getString(\"Password\"));\n\t\t\t\tSystem.out\n\t\t\t\t\t\t.println(\"Customer \" + customer.getCustName() + \" ID: \" + customer.getId() + \" was retrived.\");\n\t\t\t} else {\n\t\t\t\tthrow new Exception(\"Customer with ID: \" + id + \" was not found in the DB.\");\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(e.getMessage() + \" Could not retrieve data from DB.\");\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tConnectionPool.getInstance().returnConnection(con);\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(e.getMessage() + \" Could not close connection\");\n\t\t\t}\n\t\t}\n\t\treturn customer;\n\t}", "@RequestMapping(method = RequestMethod.GET, value = \"/{id}\")\n\t public ResponseEntity<Customer> getCustomerWithId(@PathVariable Long id) {\n\t return service.getCustomerWithId(id);\n\t }", "public void retrieveACustomerWithID(long id) {\r\n\t\tSystem.out.println(\"\\nCustomer with id \" + id);\r\n\t\tEntityManager em = emf.createEntityManager();\r\n\t\tEntityTransaction tx = em.getTransaction();\r\n\t\ttx.begin();\r\n\t\tCustomer2 customer = em.find(Customer2.class, id);\r\n\t\tif(customer == null){\r\n\t\t\tSystem.out.println(\"\\nNo such customer with id: \" + id);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tSystem.out.println(customer);\r\n\t\ttx.commit();\r\n\t\tem.close();\r\n\t}", "public Customer findCustomerById(long id) throws DatabaseOperationException;", "@Override\n\tpublic CustomerData getCustomer(Long custId) {\n\t \n\t\tOptional<CustomerData> optionalCust = customerRepository.findById(custId);\n\t\t//Optional object use for check if a customer id is existing or not\n if(optionalCust.isPresent()) {\n return optionalCust.get(); //if customer id is exist then return a value\n }\n\t\treturn null;\n\t\t\n\t}", "@GetMapping(\"/customer/{id}\")\n\tpublic ResponseEntity<Customer> getCustomerById(@PathVariable Long id) {\n\t\tCustomer customer = customerRepository.findById(id)\n\t\t\t\t.orElseThrow(() -> new ResourceNotFoundException(\"Customer not exist with id :\" + id));\n\t\treturn ResponseEntity.ok(customer);\n\t}", "@Override\r\n\tpublic Customer getCustomer(String custId) {\r\n\t\tOptional<Customer> optionalCustomer = null;\r\n\t\tCustomer customer = null;\r\n\t\toptionalCustomer = customerRepository.findById(custId);\r\n\t\tif (optionalCustomer.isPresent()) {\r\n\t\t\tcustomer = optionalCustomer.get();\r\n\t\t\treturn customer;\r\n\t\t} else {\r\n\t\t\tthrow new EntityNotFoundException(\"Customer With Id \" + custId + \" does Not Exist.\");\r\n\t\t}\r\n\r\n\t}", "public Customer getCustomers(int customerId) {\n for(Customer customer:customers){\n if(customer.getId() == customerId){\n return customer;\n }\n }\n return null;\n }", "@Override\n\t@Transactional\n\tpublic Customer getCustomerbyId(int theid) {\n\n\t\tCustomer thecustomer = hibernateTemplate.get(Customer.class, theid);\n\n\t\treturn thecustomer;\n\t}", "public Customer getCustomerBy_id(ObjectId _id) {\n\t\treturn custRepo.findBy_id(_id);\n\t}", "public Customer getCustomer(String id) {\n\t\tString firstName = \"\";\n//\t\tString lastName = \"\";\n//\t\tString address = \"\";\n//\t\tString creditCard = \"\";\n//\t\tString phone = \"\";\n//\t\tArrayList<Order> orders = new ArrayList<>();\n\t\tConnection connection = DBConnect.getDatabaseConnection();\n\t\t\n\t\ttry {\n\t\t\tStatement selectStatement = connection.createStatement();\n\t\t\t\n\t\t\tString selectQuery = \"SELECT * from Customer where CustomerID='\" + id +\"'\";\n\t\t\tResultSet resultSet = selectStatement.executeQuery(selectQuery);\n\t\t\tresultSet.next();\n\t\t\t\n\t\t\tfirstName = resultSet.getString(\"FName\");\n//\t\t\tlastName = resultSet.getString(\"lastName\");\n//\t\t\taddress = resultSet.getString(\"lastName\"); //TODO update this code: Address has it's own table . access AddressDAO object (use attribute line 21) \n//\t\t\tcreditCard = resultSet.getString(\"creditCard\"); //TODO same as Address. (attribute line 22) \n\n//\t\t\torders = orderDAO.getAllOrders(); //TODO fix me (make sure function returns something).\n\t\t\t\n\t\t}catch(SQLException se) {\n\t\t\tse.printStackTrace();\n\t\t}finally {\n\t\t\tif(connection != null) {\n\t\t\t\ttry {\n\t\t\t\t\tconnection.close();\n\t\t\t\t} catch (SQLException e) {}\n\t\t\t}\n\t\t}\n\t\t\n\t\tCustomer customer = new Customer();\n\t\tcustomer.setFirstName(firstName);\n//\t\tcustomer.setLastName(lastName);\n//\t\t//TODO customer.setAddress(address); update\n//\t\t//TODO customer.setCard(creditCard); update\n//\t\tcustomer.setOrders(orders);\n\t\t\n\t\treturn customer;\n\t}", "@Override\n\t@Transactional\n\tpublic Customer getCustomer(int theId) {\n\t\t;\n\t\treturn customerDAO.getCustomer(theId);\n\t}", "public Customer findById(Integer id) {\n\t\t//get current session\n\t\tSession currentSession = entityManager.unwrap(Session.class);\n\t\t//get account details by id and return the result\n\t\tCustomer customer = currentSession.get(Customer.class, id);\n\t\t//return the result\n\t\treturn customer;\n\t}", "@Override\n\tpublic Customer getCustomer(int theId) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\t\n\t\t// now retrieve/read from database using the primary key\n\t\tCustomer theCustomer = currentSession.get(Customer.class, theId);\n\t\t\n\t\treturn theCustomer;\n\t}", "@Override\n\tpublic Customer getCustomer(int theId) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\n\t\t//now retrieve/read from database using the primary key or id..\n\t\tCustomer theCustomer = currentSession.get(Customer.class,theId);\n\n\t\treturn theCustomer;\n\t}", "@Override\n\tpublic Customer getCustomer(int theId) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\n\t\t// now retrieve/read from database using the primary key\n\t\tCustomer theCustomer = currentSession.get(Customer.class, theId);\n\n\t\treturn theCustomer;\n\t}", "@RequestMapping( value = CONTEXT_URL + \"/id/{id}\",\n method = RequestMethod.GET,\n produces = {MediaType.APPLICATION_JSON_VALUE} )\n public CustomerDTO getCustomer( @PathVariable String id )\n throws CustomerNotFoundException\n {\n final String methodName = \"getCustomer\";\n logMethodBegin( methodName, id );\n CustomerDTO customerDTO = this.customerEntityService\n .getCustomerDTO( UUIDUtil.uuid( id ));\n logMethodEnd( methodName, customerDTO );\n return customerDTO;\n }", "@GetMapping(\"/customers/{customer_id}\")\n\tpublic Customer getcustomer(@PathVariable(\"customer_id\") int customerid) {\n\t\tCustomer thecustomer=thecustomerService.getCustomer(customerid);\n\t\tif(thecustomer==null) {\n\t\t\tthrow new CustomerNotFoundException(\"Customer with id : \"+customerid+\" not found\");\n\t\t}\n\t\t\n\t\treturn thecustomer;\n\t}", "@Override\n\tpublic Customer show(int id) {\n\t\t\n\t\tOptional<Customer> customerOpt = this.customerRepo.findById(id);\n\t\tif(customerOpt.isPresent()) {\n\t\t\tCustomer customer = customerOpt.get();\n\t\t\treturn customer;\n\t\t}\n\t\telse {\n\t\t\treturn null;\n\t\t}\n\t}", "@Override\n\tpublic Customer read(int id) {\n\n\t\tString selectQuery = String.format(\"SELECT * FROM TB_Customer WHERE \" + COLUMN_NAME_ID + \" = %d\", id);\n\t\tCustomer customer = null;\n\n\t\ttry (Statement s = dbCon.createStatement()) {\n\t\t\tResultSet rS = s.executeQuery(selectQuery);\n\n\t\t\trS.next();\n\t\t\tcustomer = new Customer(rS.getInt(COLUMN_NAME_ID),\n\t\t\t\t\trS.getString(COLUMN_NAME_FIRST_NAME),\n\t\t\t\t\trS.getString(COLUMN_NAME_LAST_NAME),\n\t\t\t\t\trS.getString(COLUMN_NAME_EMAIL),\n\t\t\t\t\trS.getString(COLUMN_NAME_KNICKNAME),\n\t\t\t\t\trS.getDate(COLUMN_NAME_BIRTHDATE).toLocalDate(),\n\t\t\t\t\trS.getDouble(COLUMN_NAME_CREDITS));\n\n\t\t\trS.close();\n\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"An SQL error occured during reading of customer \" + id + \" : \" + e.getMessage());\n\t\t}\n\n\t\treturn customer;\n\t}", "@GetMapping(\"/customer/{id}\")\r\n public Customer getCustomerById(@PathVariable Long id) {\r\n // orElseThrow means it will attempt to unwrap the optional\r\n // if there's nothing there, it will throw an exception\r\n return customerRepository.findById(id).orElseThrow();\r\n }", "@GetMapping(\"/customer/{id}\")\r\n\tpublic Customer viewCustomerbyId(@PathVariable(\"id\") int customerId){\r\n\t\tif(custService.viewCustomerbyId(customerId)==null) {\r\n\t\t\tthrow new CustomerNotFoundException(\"Customer not found with this id\" +customerId);\r\n\t\t}\r\n\t\treturn custService.viewCustomerbyId(customerId);\r\n\t\t\r\n\t}", "@Override\n @Transactional\n public Customer getCustomer(int customerId) {\n Optional<Customer> queryResult = customerRepository.findById(customerId);\n // if null return new Customer(), otherwise return the Customer\n return queryResult.orElseGet(Customer::new);\n }", "@Override\n public CustomerEntity getCustomerData(Long id) {\n return customerPersistencePort.getUser(id);\n }", "@GetMapping(\"/customer/{id}\")\n\tpublic ResponseEntity<Object> getCustomerDetailed(@PathVariable(\"id\") Integer id, HttpServletRequest request){\n\t\tif(service.findByEmail(SessionManager.getInstance().getSessionEmail(request.getSession())) == null) {\n\t\t\tSessionManager.getInstance().delete(request.getSession());\n\t\t\treturn new ResponseEntity<>(HttpStatus.UNAUTHORIZED); \n\t\t}else {\n\t\t\tCustomer cus = cService.findById(id);\n\t\t\tif(cus == null) return new ResponseEntity<>(HttpStatus.NOT_FOUND);\n\t\t\tMappingJacksonValue mappedCustomer = new MappingJacksonValue(cus);\n\t\t\tmappedCustomer.setFilters(new SimpleFilterProvider().addFilter(Customer.FILTER, SimpleBeanPropertyFilter.serializeAll()));\n\t\t\treturn new ResponseEntity<>(mappedCustomer, HttpStatus.OK);\n\t\t}\n\t}", "@RequestMapping(\"/cars/{carId}/Customer/{id}\")//لما حطيت id لازم احط تحت باث فاريبل\r\n\t public CustomerDto FindCustomer(@PathVariable String id) {\r\n\t\treturn serviceUsers.getCustomer(id);\r\n\t }", "@SuppressWarnings(\"finally\")\n\tpublic Customer getCustomer(int cust_id) throws SQLException //final&complete IMPL\n\t{\n\t\tCustomer res=null;\n\t\t\n\t\ttry\n\t\t{\n\t\t\tConnection connection = openConnection();\n\t\t\tPreparedStatement queryStatement;\n\t\t\tResultSet queryResult;\n\t\t\t\n\t\t\tqueryStatement =connection.prepareStatement(\"select * from CUSTOMERS where customer_id=?;\");\n\t\t\tqueryStatement.setString(1, Integer.toString(cust_id));\n\t\t\tqueryResult = queryStatement.executeQuery();\n\t\t\t\n\t\t\tif(queryResult.next())\n\t\t\t{\n\t\t\t\tString cust_username=null, cust_password=null, user_email=null, user_PicURL=null;\n\t\t\t\tString cust_fname=null, cust_lname=null;\n\t\t\t\tboolean isCustomer = true;\n\t\t\t\t\n\t\t\t\tcust_fname = queryResult.getString(2);\n\t\t\t\tcust_lname = queryResult.getString(3);\n\t\t\t\tcust_username = queryResult.getString(4);\n\t\t\t\tcust_password = queryResult.getString(5);\n\t\t\t\tuser_email = queryResult.getString(6);\n\t\t\t\t\n\t\t\t\tres = new Customer((short)cust_id, cust_username, cust_password, cust_fname + cust_lname, user_email, user_PicURL, isCustomer, null, null);\n\t\t\t}\n\t\t}\t\n\t\tfinally\n\t\t{\n\t\t\tcloseConnection();\n\t\t\tif(res==null)\n\t\t\t\tthrow new SQLException(\"No customer user found for provided credantials!\");\n\t\t\telse\n\t\t\t\treturn res;\n\t\t}\n\t}", "@Override\n\tpublic Customer getCustomers(int theId) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\t\n\t\t// retrieve object from database using the ID\n\t\tCustomer theCustomer = currentSession.get(Customer.class, theId);\n\t\t\n\t\t// return the results\n\t\treturn theCustomer;\n\t}", "@GetMapping(\"/api/customer/{id}\")\n\tpublic ResponseEntity<CustomerDetails> getCustomerDetailsByID(@PathVariable(\"id\") long id) {\n\t\tCustomerDetails customerDetails = customerService.getCustomerDetailsByID(id);\n\t\treturn ResponseEntity.ok().body(customerDetails);\n\n\t}", "public List<Customer> getCustomerByID() {\n Query query = em.createNamedQuery(\"Customer.findByCustomerId\")\r\n .setParameter(\"customerId\", custID);\r\n // return query result\r\n return query.getResultList();\r\n }", "@Override\r\n\tpublic CustomerRec getCustomerRecById(String id) {\n\t\tCustomerRec rec = customerRecDao.selectByPrimaryKey(id);\r\n\t\treturn rec;\r\n\t}", "@Override\n\tpublic Customer getCustomer(int customerId) {\n\t\tSession session=sessionFactory.getCurrentSession();\n\t\ttry {\n\t\t\t\n\t\t\tCustomer customer =session.get(Customer.class, customerId);\n\t\t return customer;\t\t\t\n\t\t}\n\t\tcatch(HibernateException exception){\n\t\t\texception.printStackTrace();\n\t\t}\n\t\treturn null;\n\t\t\n\t}", "@Override\n public Customer getCustomer(Long userId) {\n Optional<Customer> customer = customerDao.getCustomer(userId);\n if (!customer.isPresent()) {\n logger.error(\"Customer with this id {} doesn't exist\", userId);\n }\n return customer.orElseThrow(ResourceNotFoundException::new);\n }", "FetchRequest<Customer> byId(String id);", "@RequestMapping(value = \"/ws/customers/{id}\", method = RequestMethod.GET)\n public @ResponseBody\n CustomerDto getCustomer(@PathVariable(\"id\") Long customerId) {\n logger.info(\"Tries to find customer by id={}\", customerId);\n\n return customerAssembler.assembly(getCustomerById(customerId));\n }", "static Customer getCustomerWithId(int id){ return new Customer();}", "@Override\n public JSONObject viewCustomerById(long id) {\n\n return in_salescustdao.viewSLCustomerByID(id);\n }", "CustomerDto findById(Long id);", "@RequestMapping(value = \"/customer-addres/{id}\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<CustomerAddres> getCustomerAddres(@PathVariable Long id) {\n log.debug(\"REST request to get CustomerAddres : {}\", id);\n CustomerAddres customerAddres = customerAddresRepository.findOne(id);\n return Optional.ofNullable(customerAddres)\n .map(result -> new ResponseEntity<>(\n result,\n HttpStatus.OK))\n .orElse(new ResponseEntity<>(HttpStatus.NOT_FOUND));\n }", "@Override\r\n\tpublic Customer findByKey(int id) throws SQLException {\r\n\t\tString selectSql = \"SELECT * FROM \" + tableName + \" WHERE (id = ?)\";\r\n\t\tCustomer customer = null;\r\n\t\ttry {\r\n\t\t\t//connection = ds.getConnection();\r\n\t\t\tpreparedStatement = connection.prepareStatement(selectSql);\r\n\t\t\tpreparedStatement.setInt(1, id);\r\n\t\t\tResultSet rs = preparedStatement.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tcustomer = new Customer();\r\n\t\t\t\tcustomer.setId(rs.getInt(\"id\"));\r\n\t\t\t\tcustomer.setName(rs.getString(\"name\"));\r\n\t\t\t\tcustomer.setSurname(rs.getString(\"surname\"));\r\n\t\t\t\tcustomer.setBirthdate(rs.getDate(\"birth_date\"));\r\n\t\t\t\tcustomer.setBirthplace(rs.getString(\"birth_place\"));\r\n\t\t\t\tcustomer.setAddress(rs.getString(\"address\"));\r\n\t\t\t\tcustomer.setCity(rs.getString(\"city\"));\r\n\t\t\t\tcustomer.setProvince(rs.getString(\"province\"));\r\n\t\t\t\tcustomer.setCap(rs.getInt(\"cap\"));\r\n\t\t\t\tcustomer.setPhoneNumber(rs.getString(\"phone_number\"));\r\n\t\t\t\tcustomer.setNewsletter(rs.getInt(\"newsletter\"));\r\n\t\t\t\tcustomer.setEmail(rs.getString(\"email\"));\r\n\t\t\t}\r\n\t\t\tconnection.commit();\r\n\t\t} catch (SQLException e) {\r\n\t\t}\r\n\t\treturn customer;\r\n\t}", "@GetMapping(\"/{id}\")\n public Customer getCustomer(@PathVariable long id){\n return customerRepository.findById(id);\n }", "@GetMapping(\"/customers/{id}\")\n\tpublic ResponseEntity<Customer> getCustomerById(@PathVariable(value = \"id\") Long customerId)\n\t\tthrows ResourceNotFoundException {\n\t\tCustomer customer = customerRepository.findById(customerId)\n\t\t\t\t.orElseThrow(() -> new ResourceNotFoundException(\"Custumer not found for this id :: \" + customerId));\n\t\t\t\treturn ResponseEntity.ok().body(customer);\n\t}", "public void retrieveAReadOnlyCustomerWithID(long id) {\r\n\t\tSystem.out.println(\"\\nRead Only Customer with id \" + id);\r\n\t\tEntityManager em = emf.createEntityManager();\r\n\t\tCustomer2 customer1 = em.find(Customer2.class, id);\r\n\t\tif(customer1 == null){\r\n\t\t\tSystem.out.println(\"\\nNo such customer with id: \" + id);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tSystem.out.println(customer1);\r\n\t\tcustomer1.setLastName(\"XXX\");\r\n\t\tSystem.out.println(customer1);\r\n\t\tSystem.out.println(\"Does persistent context have customer1? \" + em.contains(customer1));\r\n\t\t\r\n\t\t// Asagidaki satirlari actiginizda soyisim XXX olarak degistirilecektir.\r\n//\t\tEntityTransaction tx = em.getTransaction();\r\n//\t\ttx.begin();\r\n//\t\ttx.commit();\r\n\t\tem.close();\r\n\t\t\r\n\t\tEntityManager em2 = emf.createEntityManager();\r\n\t\tCustomer2 customer2 = em2.find(Customer2.class, id);\r\n\t\tSystem.out.println(customer2);\r\n\t\tem2.close();\t\t\r\n\t}", "@Override\n\tpublic Customer findById(Long cust_id) throws Exception {\n\t\tList<Customer> lists = (List<Customer>) this.getHibernateTemplate().find(\"from Customer where cust_id = ?\",\n\t\t\t\tcust_id);\n\t\tgetHibernateTemplate().get(Customer.class, cust_id);\n\t\tif (lists.size() > 0) {\n\n\t\t\treturn lists.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "public CustomerPurchase getById(Integer id) throws SQLException;", "@Override\n\t@Transactional(readOnly=true)\n\tpublic Customer findOne(Long id) {\n\t\treturn customerDAO.findById(id).orElse(null);\n\t}", "@Override\n\tpublic Customer fetchCustomerByIdWithBills(Long id) {\n\t\treturn customerDAO.fetchByIdWithBills(id);\n\t}", "public Customer getSpecificCustomerById(String customerId){\n Customer specificCustomer = null;\n\n try{\n // try and connect\n conn = DriverManager.getConnection(URL);\n\n // make sql query\n PreparedStatement preparedStatement =\n conn.prepareStatement(\"SELECT CustomerId, FirstName, LastName, Country, PostalCode, Phone, Email FROM Customer WHERE CustomerId=?\");\n preparedStatement.setString(1, customerId);\n // execute query\n ResultSet set = preparedStatement.executeQuery();\n\n while(set.next()){\n specificCustomer = new Customer(\n set.getString(\"CustomerId\"),\n set.getString(\"FirstName\"),\n set.getString(\"LastName\"),\n set.getString(\"Country\"),\n set.getString(\"PostalCode\"),\n set.getString(\"Phone\"),\n set.getString(\"Email\")\n );\n }\n }\n catch(Exception exception){\n System.out.println(exception.toString());\n }\n finally{\n try{\n conn.close();\n }\n catch (Exception exception){\n System.out.println(exception.toString());\n }\n }\n return specificCustomer;\n }", "java.lang.String getCustomerId();", "java.lang.String getCustomerId();", "@Override\n\tpublic Customer findById(Long customerId) {\n\t\tOptional<Customer> optional = custRepository.findById(customerId);\n\t\tif(!optional.isPresent()) {\n\t\t\tthrow new CustomerNotFoundException(\"Customer with id \"+customerId+\" not found\");\n\t\t}\n\t\treturn optional.get();\n\t\t\n\t}", "@RequestMapping(value = \"/customer/{id}\",method=RequestMethod.GET)\n @ResponseStatus(HttpStatus.OK)\n public CustomerViewModel findCustomerById(@PathVariable(\"id\") int id){\n //create a customer View Model using the find method from the service layer\n CustomerViewModel customerViewModel = service.findCustomer(id);\n\n //if it does not exist, through an illegal argument exception\n if(customerViewModel == null){\n //throw new\n }\n\n //return the requested customer View Model\n return customerViewModel;\n }", "@Override\n\tpublic Customer viewCustomer(int customerId) {\n\t\t// TODO Auto-generated method stub\n\t\tCustomer cust = repository.findById(customerId)\n\t\t\t\t.orElseThrow(() -> new EntityNotFoundException(\"Currently No Customer is available with this id\"));\n\t\treturn cust;\n\t}", "public Customer getCustomer(String cID, ArrayList<Customer> customers) throws NotFoundException\r\n\t{\t\r\n\t\tCustomer cust = null;\r\n\t\tfor(int i=0; i<customers.size(); i++)\r\n\t\t{\r\n\t\t\tif(customers.get(i).getcID().equals(cID))\r\n\t\t\t\tcust = customers.get(i);\r\n\t\t}\r\n\t\t\r\n\t\tif(cust == null)\r\n\t\t\tthrow new NotFoundException(cID);\r\n\t\t\r\n\t\treturn cust;\t\t\r\n\t}", "@Override\n\tpublic List<Customer> getCustomerById(int customerid) {\n\t\treturn null;\n\t}", "@Override\r\n\tpublic Customer getCustomer(int customerID) {\n\t\treturn null;\r\n\t}", "@Override\n\tpublic Customer findCustomer(int customerId) {\n\t\treturn null;\n\t}", "@Override\n\tpublic Customer getCustomerById(long customerId) {\n\t\treturn null;\n\t}", "private Customer findCustomerById(String id) throws IllegalStateException\r\n\t{\r\n\t\treturn findCustomerById(id, false);\r\n\t}", "@PreAuthorize(\"#oauth2.hasAnyScope('read','write','read-write')\")\n\t@RequestMapping(method = GET, value = \"/{id}\")\n\tpublic Mono<ResponseEntity<Customer>> oneCustomer(@PathVariable @NotNull ObjectId id) {\n\n\t\treturn repo.findById(id)\n\t\t\t.map(customer -> ok().contentType(APPLICATION_JSON_UTF8).body(customer))\n\t\t\t.defaultIfEmpty(notFound().build());\n\t}", "@Override\n\tpublic Uni<Customer> findCustomerById(Long cid) {\n\t\treturn repo.findById(cid);\n\t}", "@Test\n\tpublic void readCustomerById() {\n\t\tString name = \"Leo\";\n\t\tString address = \"Auckland\";\n\t\tString telephoneNumber = \"021123728381\";\n\t\tICustomer customer = customerController.create(name, address, telephoneNumber);\n\t\tlong id = customer.getId();\n\t\tname = \"Mark\";\n\t\taddress = \"Auckland\";\n\t\ttelephoneNumber = \"0211616447\";\n\t\tcustomerController.create(name, address, telephoneNumber);\n\n\t\t// When\n\t\tICustomer cus = customerController.read(id);\n\n\t\t// Then\n\t\tAssert.assertEquals(customer, cus);\n\t}", "public ResponseEntity<customer.controller.Customer> getCustomerById(Long id);", "@Override\n public Personn findById(Integer idCustomer) {\n return manager.find(Personn.class,idCustomer );\n //return findByCriteria(criteria);\n }", "public static Customer getCustomer(int ID) throws SQLException {\n Customer customer = new Customer();\n \n query = \"SELECT * FROM customer WHERE customerId = ?\";\n model.DBQueryPrepared.setPreparedStatement(CONN, query);\n ps = DBQueryPrepared.getPreparedStatement();\n ps.setString(1, String.valueOf(ID));\n ps.execute();\n rs = ps.getResultSet();\n \n if (rs.next()) {\n customer.setCustomerId(rs.getInt(\"customerId\"));\n customer.setCustomer(rs.getString(\"customerName\"));\n customer.setAddressId(rs.getInt(\"addressId\"));\n }\n \n return customer;\n }", "String getCustomerNameById(int customerId);", "public static Customer getCustomer(int _customerID) throws SQLException{\n ResultSet rs = ConnectionManager.selectAllColumns(\"Tbl_Customer_GroupNo\", \"CustomerID= \"+_customerID);\n if(rs.next()){\n Customer cus = new Customer(rs.getInt(\"CustomerId\"), rs.getString(\"FirstName\"), rs.getString(\"LastName\"), rs.getString(\"Address\"), rs.getString(\"Email\"), rs.getString(\"Phone\"));\n return cus;\n }else{\n return null;\n }\n }", "@Override\n public JSONObject viewSLCustomerByID(long id) {\n\n return in_salescustdao.viewSLCustomerByID(id);\n }", "@Override\n public Customer findById(long id) throws EntityNotFoundException\n {\n return custrepos.findById(id)\n .orElseThrow(() -> new EntityNotFoundException(Long.toString(id)));\n }", "@RequestMapping(value = \"/customerOrders/{id}\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<CustomerOrder> getCustomerOrder(@PathVariable Long id) {\n log.debug(\"REST request to get CustomerOrder : {}\", id);\n CustomerOrder customerOrder = customerOrderRepository.findOne(id);\n return Optional.ofNullable(customerOrder)\n .map(result -> new ResponseEntity<>(\n result,\n HttpStatus.OK))\n .orElse(new ResponseEntity<>(HttpStatus.NOT_FOUND));\n }", "@ApiOperation(value = \"Get a customer by id\", notes = \"\")\n @GetMapping(value = {\"/{customerId}\"}, produces = MediaType.APPLICATION_JSON_VALUE)\n @ResponseStatus(HttpStatus.OK)\n public CustomerDTO getCustomerById(@PathVariable Long customerId) {\n\n return customerService.getCustomerById(customerId);\n }", "@GET\n\t@Path(\"/edit/{id}\")\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic Response getCustomerbyID(@PathParam(value = \"id\") int id)\n\t\t\tthrows RemoteException, MalformedURLException, NotBoundException, ClassNotFoundException, SQLException {\n\t\tDatabaseOption db = (DatabaseOption) Naming.lookup(\"rmi://\" + address + service);\n\n\t\t// Connect to database\n\t\tdb.Connect();\n\n\t\t// Get specific car by its unique id\n\t\tList<Object> rs = db.ReadCustomers(\"SELECT * FROM CUSTOMERS WHERE id=\" + id);\n\n\t\t// Connect to database\n\t\tdb.Close();\n\n\t\t// GSON import used to serialize and deserialize Java objects to JSON\n\t\tGson gson = new Gson();\n\n\t\t// Set to string\n\t\tString jsonResp = gson.toJson(rs);\n\n\t\t// Return webpage with json data from RMI\n\t\treturn Response.ok(jsonResp, MediaType.APPLICATION_JSON).build();\n\t}", "public Customer loadCustomerFromId(int customerId) {\n ResultSet rs = database.getCustomer(customerId);\n Customer newCustomer = null;\n try {\n if (rs.next()) {\n newCustomer = new Customer(rs.getString(\"name\"), rs.getString(\"address\"), rs.getString(\"email\"), \"toBeLoaded\", rs.getDate(\"birthday\"), rs.getInt(\"phonenumber\"));\n newCustomer.setPassword(Customer.fromBase64(rs.getString(\"password\")));\n newCustomer.setSalt(Customer.fromBase64(rs.getString(\"passwordsalt\")));\n // newCustomer.setCurrentOrder(loadOrderFromId(rs.getInt(\"currentorderid\")));\n newCustomer.setCustomerID(customerId);\n } else {\n throw new NoSuchCustomerException(customerId);\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n if (newCustomer == null) {\n throw new NoSuchCustomerException(customerId);\n }\n return newCustomer;\n }", "public static Customer FindCustomerById(String id) throws IllegalStateException\r\n\t{\r\n\t\treturn instance.findCustomerById(id);\r\n\t}", "public Customer getCustom(short customerId) {\n\t\treturn custom.selectByPrimaryKey(customerId);\n\t\t\n\t}", "public Customer getCustomerByName(String customerName);", "com.google.ads.googleads.v6.resources.Customer getCustomer();", "Customer getCustomer();", "public Customer getCustomer(int userId) {\n\t\tIterator i = customers.iterator();\n\t\twhile (i.hasNext()) {\n\t\t\tCustomer customer = (Customer) i.next();\n\t\t\tif (userId == customer.getUserId()) {\n\t\t\t\treturn customer;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "@Override\n\tpublic CustomerType get(int id) {\n\t\treturn null;\n\t}", "public void lookupCustomer(String customerId) {\r\n customer = transaction.getCustomerInfo(customerId);\r\n }", "public Customer getById(String cid) throws CustomerNotFoundException {\r\n try {\r\n return (Customer) this.entityManager.createQuery(\"select customer from Customer as customer where customer.cid=:cid\")\r\n .setParameter(\"cid\", cid)\r\n .getSingleResult();\r\n } catch (Exception e) {\r\n throw new CustomerNotFoundException();\r\n }\r\n }", "String getCustomerID();", "io.opencannabis.schema.commerce.OrderCustomer.Customer getCustomer();", "Optional<String> findCustomerNameById(@Param(\"id\") Integer id);", "public abstract CustomerOrder findOne(Long id);" ]
[ "0.89494705", "0.8442947", "0.8371338", "0.83413076", "0.82874006", "0.8281708", "0.8266995", "0.8228515", "0.8222998", "0.81798637", "0.81181437", "0.8088721", "0.8081348", "0.8065338", "0.80638766", "0.80450994", "0.79918003", "0.7902995", "0.7881618", "0.78489804", "0.78283733", "0.7816416", "0.78129965", "0.77942485", "0.77792764", "0.7774823", "0.77522975", "0.7742633", "0.7738127", "0.77272403", "0.7722024", "0.7711757", "0.766856", "0.7663385", "0.763274", "0.762748", "0.76062727", "0.76061225", "0.76042837", "0.75764275", "0.75696456", "0.75676376", "0.75595194", "0.75544435", "0.75239116", "0.75214094", "0.7512576", "0.7493327", "0.74666333", "0.74550235", "0.74465173", "0.7415721", "0.74120146", "0.74090683", "0.740471", "0.7403116", "0.7400218", "0.7396187", "0.73873913", "0.7372322", "0.7364036", "0.7344012", "0.72971094", "0.72971094", "0.7274995", "0.7270836", "0.7235757", "0.723544", "0.7233918", "0.72335625", "0.721574", "0.72011274", "0.7188409", "0.71872646", "0.71542275", "0.71214294", "0.7109526", "0.70922816", "0.7091875", "0.70839185", "0.7067232", "0.70653516", "0.7062446", "0.70541495", "0.7046738", "0.70333385", "0.7005291", "0.7002525", "0.69965804", "0.698707", "0.69617844", "0.69587517", "0.69541574", "0.6948538", "0.69266874", "0.6925756", "0.69171536", "0.6912577", "0.6884315", "0.6884058" ]
0.8241541
7
syntax: ArrayList variable = new ArrayList (); /ArrayList number = new ArrayList (); number.add(1); number.add(2); number.add(3); number.add(4); System.out.println(number); number.remove(2); System.out.println(number); System.out.println(number.get(1)); System.out.println(number.size());
public static void main(String[] args) { ArrayList <String> cars = new ArrayList <String>(); cars.add("Nissan"); cars.add("Mustang"); cars.add("BMW"); cars.add("Merc.Benz"); cars.add("Honda"); cars.add("Toyota"); System.out.println(cars); // System.out.println(cars.size());//here I use size method to get ArrayList size // System.out.println(cars.remove(1)); cars.set(0, "Jaguar"); System.out.println(cars.set(0, "Jaguar")); // System.out.println(cars); // System.out.println(cars.get(2));// here I use get method to get that index element /* cars.remove(3);//here I use remove method to remove an item from ArrayList System.out.println(cars); cars.add("Lexus");*/ //first to last element print /* for (int j=0;j<cars.size();j++) { System.out.println(cars.get(j)); } System.out.println(cars.size()); cars.set(0,"Jaguar"); System.out.println(cars); //last to first element print for (int k=cars.size()-1;k>=0;k--) { System.out.println(cars.get(k)); } /* ArrayList <Integer> even = new ArrayList <Integer>(); even.add(2); even.add(4); even.add(6); even.add(8); even.add(10); System.out.println(even.get(4)); System.out.println(even); //access an item System.out.println(even.get(1)); */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\n ArrayList<Integer> arrayList=new ArrayList<>();\n\n arrayList.add(1);\n arrayList.add(1);\n arrayList.add(2);\n arrayList.add(5);\n\n\n System.out.println(arrayList);\n System.out.println(arrayList.remove(1));\n System.out.println(arrayList);\n\n }", "public static void main(String[] args) {\n ArrayList<Object> ar = new ArrayList<Object>();\n ar.add(100);\n ar.add(100);\n ar.add(\"testing\");\n ar.add('c');\n ar.add(12.36);\n ar.add(true);\n\n System.out.println(ar);\n System.out.println(ar.get(4));\n System.out.println(ar.size());\n System.out.println(\"LI = \"+ 0);\n System.out.println(\"HI = \" + (ar.size()-1));\n\n ar.add(500);\n ar.add(400);\n System.out.println(ar.size());\n\n }", "public static void main(String[] args) {\n ArrayList<String> list = new ArrayList<>(3); // from JDK1.7+, <>可以不写内容,但<>本身要写\n System.out.println(list); // 空的ArrayList 打印输出:[]\n\n /*\n ArrayList.add()\n */\n\n // 向集合内添加数据,需要add(), 返回 true or false\n boolean isSuccess1 = list.add(\"Roger\");\n boolean isSuccess2 = list.add(\"Francesca\");\n boolean isSuccess3 = list.add(\"Keka\");\n System.out.println(list); // [Hello, world, !!!]\n\n System.out.println(\"1. Add is success? \" + isSuccess1); // true\n System.out.println(\"2. Add is success? \" + isSuccess2); // true\n System.out.println(\"3. Add is success? \" + isSuccess3); // true\n\n //list.add(100) // wrong datatype, should be String, same with <String>\n\n /*\n ArrayList.get()\n */\n String name = list.get(1);\n System.out.println(\"1. element in ArrayList is \" + name); // Francesca, index start from 0\n\n /*\n ArrayList.remove()\n */\n String removeName = list.remove(2);\n System.out.println(\"Removed name is \" + removeName); // Keka\n System.out.println(list); // [Roger, Francesca]\n\n /*\n ArrayList.size()\n */\n int size = list.size();\n System.out.println(size); // 2\n\n /*\n ArrayList excises\n */\n ArrayList<String> list2 = new ArrayList<>();\n list2.add(\"person1\");\n list2.add(\"person2\");\n list2.add(\"person3\");\n\n // iterate ArrayList\n for (int i = 0; i < list2.size(); i++) {\n System.out.println(list2.get(i));\n }\n\n\n }", "public static void main(String[] args) {\n ArrayList<String> aList = new ArrayList();\n ArrayList<Integer> numList = new ArrayList();\n aList.add(\"Ram\");//0\n aList.add(\"Shyam\");//1\n aList.add(\"hari\");//2\n aList.add(\"Sita\");//3\n aList.add(\"Ram\");//4\n //System.out.println(aList); //[Ram, Shyam, hari, Sita, Ram]\n// System.out.println(aList.get(1)); //Shyam\n // for(ClassType/VariableType variableName : objectName)\n System.out.println(\"before adding\"); \n System.out.println(aList);\n aList.add(3,\"Ravi\");\n System.out.println(\"after adding\"); \n System.out.println(aList);\n aList.remove(3);\n System.out.println(\"after removing\"); \n System.out.println(aList);\n Collections.sort(aList);\n System.out.println(\"after sorting\");\n System.out.println(aList);\n \n }", "public static void main(String[] args) {\n\t\tArrayList<String> mylist = new ArrayList<String>();\r\n\t\tmylist.add(\"item1\");\r\n\t\tmylist.add(\"item2\");\r\n\t\tmylist.add(\"item3\");\r\n\t\tmylist.add(\"item4\");\r\n\t\tmylist.add(\"item5\");\r\n\t\tSystem.out.println(\"total size\"+mylist.size());\r\n\t\tSystem.out.println(mylist.contains(\"item4\"));\r\n\t\tSystem.out.println(mylist);\r\n\t\tSystem.out.println(\"removing item3\");\r\n\t\tmylist.remove(\"item3\");\r\n\t\tSystem.out.println(mylist);\r\n\t\tSystem.out.println(mylist.size());\r\n\t}", "public static void main(String[] args) {\n\t\tArrayList<Integer> arr = new ArrayList<>();\r\n\t\t\r\n\t\t// or specify the capacity\r\n//\t\tArrayList<Integer> arr = new ArrayList<>(20);\r\n\r\n\t\tarr.add(10);\t\t// size = 1\r\n\t\tarr.add(20);\t\t// size = 2\r\n\t\tarr.add(30);\r\n\t\tarr.add(10);\r\n//\t\tarr.set(0, 44);\r\n//\t\tarr.add(1, 50);\r\n//\t\tarr.remove(1);\r\n\t\t// Integer object\r\n\t\tInteger p = 10;\r\n\t\tarr.remove(p);\r\n\t\t\r\n\t\tfor(int i = 0 ;i <arr.size() ; i++) {\r\n\t\t\tSystem.out.println(arr.get(i));\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println();\r\n\t\t\r\n\t\t// enhanced for loop\r\n\t\tfor(int i : arr) {\r\n\t\t\tSystem.out.println(i);\r\n\t\t}\r\n\t\t\r\n//\t\tSystem.out.println(arr.get(1));\r\n//\t\tSystem.out.println(arr.size());\r\n\t\t\r\n\t\t\r\n//\t\tArrayList<String> str = new ArrayList<>();\r\n//\t\tstr.add(\"Mudit\");\r\n//\t\tstr.add(\"Garg\");\r\n//\t\tSystem.out.println(str.get(0));\r\n\r\n\t}", "public static void main(String[] args)\n\t{\n\t\tArrayList ar=new ArrayList();\n\t\tSystem.out.println(ar.size());\n\t\tar.add(23);\n\t\tar.add(30);\n\t\tar.add(40);\n\t\tSystem.out.println(ar.size());\n\t\t// We can add duplicates values also.\n\t\tar.add(23);\n\t\tar.get(1);\n\t\tSystem.out.println(\"whats the output\"+ar.get(1));\n\t\tSystem.out.println(ar);\n\t\t\n\t\t\n\t\t\n\n\t}", "public static void slide127() {\n ArrayList<String> obj = new ArrayList<String>();\n\n //This is how we add elements to an ArrayList\n obj.add(\"Alex\");\n obj.add(\"Con\");\n obj.add(\"Paul\");\n obj.add(\"Estel\");\n obj.add(\"Peter\");\n\n // Displaying elements\n System.out.println(\"Original ArrayList:\");\n for(String str:obj)\n System.out.println(str);\n\n // Add element at the specific index\n\n obj.add(0, \"Mary\");\n obj.add(1, \"Justin\");\n\n // Displaying elements\n System.out.println(\"ArrayList after add operation:\");\n for(String str:obj)\n System.out.println(str);\n\n //Remove elements from ArrayList like this\n obj.remove(\"Peter\");\n obj.remove(\"Paul\");\n\n // Displaying elements\n System.out.println(\"ArrayList after remove operation:\");\n for(String str:obj)\n System.out.println(str);\n\n // Edit element from ArrayList\n obj.set(2, \"Tom\");\n\n // Displaying elements\n System.out.println(\"ArrayList after edit operation:\");\n for(String str:obj)\n System.out.println(str);\n\n\n //Remove element from the specified index\n obj.remove(1); //Removes Second element from the List\n\n // Displaying elements\n System.out.println(\"Final ArrayList:\");\n for(String str:obj)\n System.out.println(str);\n }", "public static void main(String[] args) {\n\t\tCustomArrayList cal = new CustomArrayList();\n\t\tcal.add(new Integer(10));\n\t\tcal.add(new Integer(20));\n\t\tcal.add(new Integer(30));\n\t\tcal.add(\"I am paramesh\");\n\t\tcal.add(new Integer(50));\n\t\tcal.add(new Integer(60));\n\t\tcal.add(new Integer(70));\n\t\tcal.add(new Integer(80));\n\t\tSystem.out.println(\"size \" + cal.size());\n\t\tSystem.out.println(\"Length \" + cal.length());\n\t\tcal.print();\n\t\tcal.remove(6);\n\t\tSystem.out.println(\"size \" + cal.size());\n\t\tSystem.out.println(\"first element \" + cal.get(0));\n\t\tSystem.out.println(\"second element \" + cal.get(1));\n\t\tSystem.out.println(\"third element \" + cal.get(2));\n\t\tSystem.out.println(\"fourth element \" + cal.get(3));\n\t\tSystem.out.println(\"fifth element \" + cal.get(4));\n\t\tSystem.out.println(\"sixth element \" + cal.get(5));\n\t\tSystem.out.println(\"seventh element \" + cal.get(6));\n\t\t// System.out.println(\"eightth element \" + cal.get(7));\n\t\tcal.print();\n\t}", "public static void main(String[] args) {\n\t\tArrayList arrayList = new ArrayList();\n\t\t\n\t\tarrayList.add(\"Nitin\");\n\t\tarrayList.add(\"E14155\");\n\t\tarrayList.add(32);\n\t\tarrayList.add(16120.2161);\n\t\tarrayList.add(\"Welcome\");\n\t\t\n\t\tSystem.out.println(arrayList);\n\t\t\n\t\tarrayList.remove(23); //Removes the item if item is present else removes the index(first preference is index)\n\t\t//This gives out index out of bound error\n\t\tSystem.out.println(arrayList);\n\t\t\n\t\tarrayList.add(6, \"HI\"); //provides Index out of bound error if list length not specified\n\t\tSystem.out.println(arrayList);\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tArrayList<String> myList = new ArrayList<String>();\r\n\t\tmyList.add(\"Jin\");\r\n\t\tmyList.add(\"Jimin\");\r\n\t\tmyList.add(\"Jhope\");\r\n\t\tmyList.add(0,\"V\");\r\n\t\tmyList.add(2, \"JK\");\r\n\t\tSystem.out.println(\"Print All the objects:\");\r\n\t\tfor(String s:myList) {\r\n\t\t\tSystem.out.println(s);\r\n\t\t}\r\n\t\t System.out.println(\"3rd element in the list is: \" + myList.get(2));\r\n\t System.out.println(\"Is RM is in list: \" + myList.contains(\"RM\"));\r\n\t System.out.println(\"Size of ArrayList: \" + myList.size());\r\n\t myList.remove(1);\r\n\t System.out.println(\"New Size of ArrayList: \" + myList.size());\r\n\t\t}", "static void q2(){\n\t\tArrayList<Integer>myList=new ArrayList<>();\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t List <String>L = new <String>List();\r\n\t\t \r\n\t\t //TEST isEmpty(), size(), add()\r\n\t\t //System.out.println(L.isEmpty());\r\n\t\t //System.out.println(L.size());\r\n\t\t L.add(1, \"a\");\r\n\t\t L.add(2, \"b\");\r\n\t\t L.add(3, \"c\");\r\n\t\t //L.add(3, 1);\r\n\t\t //System.out.println(L.isEmpty());\r\n\t\t //System.out.println(L.size());\r\n\t\t //L.add(2, \"d\");\r\n\t\t //L.add(4, \"e\");\r\n\t\t \r\n\t\t //TEST get()\r\n\t\t //System.out.println(L.get(0));\r\n\t\t //System.out.println(L.get(6));\r\n\t\t //System.out.println(L.get(2));\r\n\t\t System.out.println(L.get(3));\r\n\t\t \r\n\t\t //TEST remove()\r\n\t\t //only one line is uncommented per trial run\r\n\t\t //L.remove(0);\r\n\t\t //L.remove(1);\r\n\t\t //L.remove(2);\r\n\t\t //L.remove(5);\r\n\t\t //L.remove(7);\r\n\t\t //System.out.println(L.get(4));\r\n\t\t \r\n\t\t //TEST removeAll()\r\n\t\t //L.removeAll();\r\n\t\t //System.out.println(L.isEmpty());\r\n\t\t //System.out.println(L.get(1));\r\n\t}", "public static void main(String arg[]) {\n ArrayList<String> books = new ArrayList<>();\n books.add(\"C++\");\n books.add(\"Python\");\n books.add(\"Java\");\n books.add(\"MongoDB\");\n books.add(\"JavaScript\");\n books.add(\"MySQL\");\n System.out.println(books);\n books.remove(3);\n System.out.println(books);\n }", "@Test\n public void testRemove_int_Size() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n Collection c = Arrays.asList(1, 1, 7, 1, 1, 1, 1);\n instance.addAll(c);\n\n instance.remove(2);\n\n Integer expResult = 6;\n Integer result = instance.size();\n\n assertEquals(expResult, result);\n\n }", "public static void main(String[] args) {\n Random rand = new Random();\n int[] array = new int[5];\n List<Integer> arrayList = new ArrayList<>();\n for (int i = 0; i < array.length; i++){\n array[i] = rand.nextInt(30) + 1;\n arrayList.add(rand.nextInt(30) + 1);\n }\n Arrays.sort(array);\n Collections.sort(arrayList);\n\n System.out.println(Arrays.toString(array));\n System.out.println(arrayList);\n\n // Both are mutable, value can be changed. But size can change in ArrayList only\n // Both have order and indexes\n System.out.println(new int[10].length); // 10\n System.out.println(new ArrayList(10).size()); // 0\n\n new ArrayList().remove(0); // COMPILES, but throws Runtime exception\n\n }", "public static void main(String[] args) {\n\t\t\n\t\tArrayList<Integer> arrList = new ArrayList<Integer>();\n\t\t\n\t\tarrList.add(10); //add to end\n\t\tarrList.add(0, 2); // add 2 to index 0\n\t\tarrList.remove(0); //remove element at index 0\n\t\tarrList.set(0, 5); //set the object at index 0 to 5\n\t\tarrList.get(0); //get object at index 0\n\t\tarrList.size(); //length of list\n\t\tSystem.out.println(arrList);\n\n\t}", "public void showList(){\n\n List<Integer> lst1 = new ArrayList<Integer>();\n\n lst1.add(2);\n lst1.add(6);\n lst1.add(4);\n lst1.add(8);\n lst1.add(2);\n\n System.out.println(\"**********************************\");\n System.out.println(\"Arraylist:\" + lst1);\n\n //faster to add and remove\n List<Integer> lst2 = new LinkedList<Integer>();\n\n lst2.add(2);\n lst2.add(6);\n lst2.add(4);\n lst2.add(8);\n lst2.add(2);\n\n System.out.println(\"LinkedList: \" + lst2);\n System.out.println(\"********************************\");\n\n }", "@Test\r\n\tvoid testRemove() {\r\n\t\tSimpleList test = new SimpleList();\r\n\t\ttest.add(7);\r\n\t\ttest.add(10);\r\n\t\ttest.add(9);\r\n\t\ttest.remove(10);\r\n\t\tString output = test.toString();\r\n\t\tassertEquals(\"9 7\", output);\r\n\t}", "public static void main(String[] args) {\n\t\tList list =new ArrayList();\r\n\t\tlist.add(\"one\");\r\n\t\tlist.add(\"two\");\r\n\t\tlist.add(\"three\");\r\n\t\tlist.add(\"four\");\r\n\t\t\r\n\t\tSystem.out.println(list.size());\r\n\t\t\r\n\t\tSystem.out.println(list.get(1));\r\n\t\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\r\n\t}", "@Test\r\n\tvoid testRemove3() {\r\n\t\tSimpleList test = new SimpleList();\r\n\t\ttest.add(7);\r\n\t\ttest.add(10);\r\n\t\ttest.add(9);\r\n\t\ttest.remove(10);\r\n\t\tassertEquals(8, test.list.length);\r\n\t}", "public static void main(String[] args) {\n ArrayList<String> animals = new ArrayList<>();\n //List<String> animals2 = new ArrayList<>();\n //String[] animals2 = {\"pig\", \"cow\"};\n\n // Add items\n animals.add(\"Dog\");\n animals.add(\"Cat\");\n\n System.out.println(animals);\n //System.out.println(animals2);\n\n // What to do if I want to add a pigeon to the first place?\n animals.add(0, \"Pigeon\");\n System.out.println(animals);\n\n // What if I already have a list that I want to add\n ArrayList<String> newAnimals = new ArrayList<>(Arrays.asList(\"Fox\", \"Frog\", \"Wolf\"));\n animals.addAll(newAnimals);\n System.out.println(animals);\n\n // How to remove the second element?\n animals.remove(1);\n System.out.println(animals);\n\n animals.remove(\"Frog\");\n System.out.println(animals);\n\n // I want to set the first value to \"tiger\n animals.set(0, \"tiger\");\n System.out.println(animals);\n\n // I want to know if my list contains \"bear\"\n System.out.println(animals.contains(\"bear\"));\n\n // I want to use these data in an array!\n String[] animalsArray = animals.toArray(new String[0]);\n\n // Delete content\n animals.clear();\n System.out.println(\"After clearing: \" + animals);\n\n\n }", "public static void main(String[] args) {\n\t\tArrayList<Integer> arr = new ArrayList<>();\r\n\t\tfor(int i = 1; i <= 10; i++) {\r\n\t\t\tarr.add(i);\r\n\t\t}\r\n\t\tarr.set(4, 10);\r\n\t\tarr.remove(3);\r\n\t\t\r\n\t\tfor(int i : arr) {\r\n\t\t\tSystem.out.println(i);\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n ArrayList<Integer> myNumbers = new ArrayList<Integer>();\n // adding items in the list\n myNumbers.add(5);\n myNumbers.add(2);\n myNumbers.add(4);\n myNumbers.set(0, 7);\n // myNumbers.remove(0);\n // Before sorting accessing numbers\n System.out.print(\"Before sorting :\");\n for (int i = 0; i < myNumbers.size(); i++) {\n System.out.print(myNumbers.get(i) + \" \");\n }\n // sorting the list\n Collections.sort(myNumbers);\n System.out.print(\"\\nAfter sorting :\");\n for (Integer keep : myNumbers) {\n System.out.print(keep + \" \");\n }\n }", "public static void main(String[] args) {\n\t\t\n\t\tArrayList<Integer> list = new ArrayList<Integer>();\n\t\t\n\t\t// RSN NOTE -- ArrayList can grow in size, arrays can't\n\t\tlist.add(1);\n\t\tlist.add(2);\n\t\tSystem.out.println(\"Length \" + list.size());\n\t\t\n\t\t// RSN NOTE -- Elements can be inserted or deleted from any locaiton, NOT in array\n\t\tArrayList<String> sList = new ArrayList<String>();\n\t\tsList.add(\"ONE\");\n\t\tsList.add(\"TWO\");\n\t\tsList.add(\"THREE\");\n\t\tsList.remove(1); // ====NOTE=====>>> compare Arraylist remove with LinkedListDemo remove\n\t\tSystem.out.println(sList.toString());\n\t\t\n\t\tSystem.out.println(\"Contains \"+sList.contains(\"THREE\")); //====NOTE=====>>>SUPER IMP; compare contains of arrayList and Linked List\n\t\t\n\t\t/*\n\t\t * ArrayList class has methods to perform solo modifications ( add(), remove()Ö ), \n\t\t * bulk modifications ( addAll(), removeAll(), retainAll()Ö ), searching( indexOf(), lasIndexOf() ) and iterations( iterator() ).\n\t\t */\n\t\t\n\t\t// RSN NOTE -- If generics are not used, ARRAY list can hold any data type\n\t\t ArrayList listForAll = new ArrayList(); //ArrayList without generics\n\t listForAll.add(\"ZERO\"); //adding string type object\n\t listForAll.add(1); //adding primitive int type\n\t listForAll.add(20.24); //adding primitive double type\n\t listForAll.add(new Float(23.56)); //Adding Float wrapper type object\n\t listForAll.add(new Long(25)); //Adding Long wrapper type object\n\t \n\t System.out.println(listForAll); //Output : [ZERO, 1, 20.24, 23.56, 25]\n\t \n\t // RSN NOTE -- Array Insertion time\n\t arrayInserionTime();\n\t \n\t listIteratorMovesInBothDirections();\n\t \n\t reverseElementInList();\n\t \n\t convertBetweenArrayAndList();\n\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tIDLList<Integer> test = new IDLList<Integer>();\n\t\t\n\t\tSystem.out.println(\"The test1 of adding\");\n\t\t//System.out.println(test.add(1,80));\n\t\tSystem.out.println(test.add(0,0));\n\t\tSystem.out.println(test.add(1,1));\n\t\tSystem.out.println(test.add(1,2));\n\t\tSystem.out.println(test.add(2,3));\n\t\tSystem.out.println(test.add(4,4));\n\t\tSystem.out.println(test.add(5,5));\n\t\tSystem.out.println(test.add(3,6));\n\t\tSystem.out.println(test.add(1,7));\n\t\tSystem.out.println(test.add(8));\n\t\tSystem.out.println(test.append(9));\n\t\tSystem.out.println(\"should be 8072361459\");\n\t\tSystem.out.println(test.toString());\n\t\tSystem.out.println();\n\t\t\n\t\tSystem.out.println(\"The test1 of getting\");\n\t\tSystem.out.println(test.get(4));\n\t\tSystem.out.println(test.getHead());\n\t\tSystem.out.println(test.getLast());\n\t\tSystem.out.println(test.size());\n\t\tSystem.out.println();\n\t\t\n\t\tSystem.out.println(\"The test1 of removing\");\n\t\tSystem.out.println(test.remove());\n\t\tSystem.out.println(test.removeLast());\n\t\t//System.out.println(test.removeAt(80));\n\t\tSystem.out.println(test.removeAt(0));\n\t\tSystem.out.println(test.removeAt(6));\n\t\tSystem.out.println(test.removeAt(3));\n\t\tSystem.out.println(test.toString());\n\t\tSystem.out.println(test.remove(5));\n\t\tSystem.out.println(test.remove(1));\n\t\tSystem.out.println(\"should be 7234\");\n\t\tSystem.out.println(test.toString());\n\t\tSystem.out.println();\n\t\t\n\t\tSystem.out.println(\"The test2 of adding\");\n\t\tSystem.out.println(test.add(20));\n\t\tSystem.out.println(\"should be 207234\");\n\t\tSystem.out.println(test.toString());\n\t}", "@Test\n public void testRemove_int() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n Collection c = Arrays.asList(1, 1, 7, 1, 1, 1, 1);\n instance.addAll(c);\n\n Integer expResult = 7;\n Integer result = instance.remove(2);\n\n assertEquals(expResult, result);\n\n }", "public static void main(String[] args) {\n\r\n\t\tList<Integer> l = new ArrayList<Integer>();\r\n\t\t//List<Integer> l = new ArrayList<Integer>(Collection c); is also valid\r\n\t\t\r\n\t\tfor(int i=1;i<=10;i++){\r\n\t\t\tl.add(i);\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(l);//[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]\r\n\t\t\r\n\t\t//index based operations\r\n\t\t\r\n\t\tSystem.out.println(l.get(1));//2(element at position 1)\r\n\t\tSystem.out.println(l.set(1,12));//2(returns and replaces the element at position 1)\r\n\t\tSystem.out.println(l);//[1, 12, 3, 4, 5, 6, 7, 8, 9, 10]\r\n\t\t\r\n\t\tl.add(1,11);//inserts 11 at position 1\r\n\t\tSystem.out.println(l);//[1, 11, 12, 3, 4, 5, 6, 7, 8, 9, 10]\r\n\t\tList<Integer> l1 = Arrays.asList(97,23,34);\r\n\t\tl.addAll(4,l1);//inserts collection elements at position 4\r\n\t\tSystem.out.println(l);//[1, 11, 12, 3, 97, 23, 34, 4, 5, 6, 7, 8, 9, 10]\r\n\t\t\r\n\t\tSystem.out.println(l.remove(new Integer(4)));//true ( removes the first occurrence of object 4 )\r\n\t\tSystem.out.println(l.remove(4));//97 (removes the object at position 4)\r\n\t\r\n\t\tSystem.out.println(l.add(11));\r\n\t\tSystem.out.println(l);//[1, 11, 12, 3, 23, 34, 5, 6, 7, 8, 9, 10,11]\r\n\t\t\r\n\t\tSystem.out.println(l.indexOf(new Integer(11)));//1\r\n\t\tSystem.out.println(l.lastIndexOf(new Integer(11)));//12\r\n\t\t\r\n\t\tSystem.out.println(l.subList(3, 8));//[3, 23, 34, 5, 6]\r\n\t\r\n\t\t\r\n\t}", "@Test\r\n\tvoid testRemove4() {\r\n\t\tSimpleList test = new SimpleList();\r\n\t\ttest.add(7);\r\n\t\ttest.add(10);\r\n\t\ttest.add(9);\r\n\t\ttest.remove(1);\r\n\t\tassertNotEquals(8, test.list.length);\r\n\t}", "public static void main(String[] args) {\n\t\tArrayList al = new ArrayList(); // support heterogeneous data main any type of value\r\n\t\t// add new element\r\n\t\tal.add(15);\r\n\t\tal.add(\"welocome\");\r\n\t\tal.add(2020);\r\n\t\tal.add(15.5);\r\n\t\tal.add(\"A\");\r\n\r\n\t\tSystem.out.println(al);\r\n\t\t// size of Arrylist\r\n\t\tSystem.out.println(\"no of index \" + al.size());\r\n\t\t\r\n\t\t// remove method\r\n\t\tal.remove(2);\r\n \tSystem.out.println(al);\r\n\r\n\t\t// Inert a data\r\n\t\tal.add(2, 2021);\r\n\t\tSystem.out.println(\"add the data in array list\" + al);\r\n\t\t// Retried the specific element\r\n\t\r\n \tSystem.out.println(al.get(2));\r\n\t\t// change and replace the element\r\n\t\tal.set(2, 2022);\r\n\t\tSystem.out.println(al);\r\n\t\t\r\n\t\t// search // contains\r\n\t\tSystem.out.println(al.contains(\"welocome\")); \r\n\t\t\r\n\t\t// is empty\r\n\t\tSystem.out.println(al.isEmpty());\r\n\r\n\t\tIterator it = al.iterator();\r\n\t\t\r\n\t\twhile (it.hasNext()) {\r\n\t\tSystem.out.println(it.next());\r\n\t\t}\r\n\r\n\t}", "@Test\n public void testRemove_Contains_Size() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(1);\n instance.add(1);\n instance.add(2);\n instance.add(1);\n\n instance.remove(new Integer(1));\n\n int expResult = 3;\n int result = instance.size();\n assertEquals(expResult, result);\n }", "@Test\r\n\tvoid testSize3() {\r\n\t\tSimpleList test = new SimpleList();\r\n\t\ttest.add(1);\r\n\t\ttest.remove(1);\r\n\t\tint output = test.size();\r\n\t\tassertEquals(8, output);\r\n\t}", "public ArrayList() {\n\t\tthis.elements = new Object[5];\n\t\tthis.last = -1;\n\t}", "private static void retriveElementInArrayList() {\n\t\tLinkedList<Integer> list = new LinkedList<Integer>();\n\t\tlist.add(10);\n\t\tlist.add(20);\n\t\tlist.add(30);\n\t\tlist.add(40);\n\t\tlist.add(50);\n\t\tSystem.out.println(\"LinkedList is : \" + list);\n\t\tSystem.out.println(list.get(3));\n\n\t}", "public ArrayList()\n {\n list = new int[SIZE];\n length = 0;\n }", "private void listExample()\n\t{\n\n\t\tArrayList <String> alist = new ArrayList<String>();//doesn't have to be string- can be Duck, or Mouse, or Apostrophe\n\t\talist.add(\"banana\"); //adds \"banana\" to the end of the list\n\t\talist.add(\"strawberry\");\n\t\talist.add(\"blueberry\");\n\t\talist.add(\"blackberry\");\n\t\t\n\t\tJOptionPane.showMessageDialog(null,alist);\n\t\t\n\t\talist.add(2, \"apple\"); //adds it in spot 2 (3rd position)\n\t\t\n\t\tJOptionPane.showMessageDialog(null,alist);\n\t\t\n\t\t\n\t\talist.remove(\"blueberry\"); \n\t\t/**\n\t\t * .remove returns what was in the spot that was just taken out--and shrinks down by one\n\t\t * .set also returns this value but it replaces the value with something else\n\t\t */\n\t\talist.remove(0); //removes 1st element\n\t\tJOptionPane.showMessageDialog(null,alist);\n\t\t\n\t\tfor (String str:alist)\n\t\t\tJOptionPane.showMessageDialog(null, str); //shows each individually\n\t\t\n\t\talist.set(1, \"coconut\"); //alist.set(index, element) --replaces\n\t\t\n\t\tint numberOfItems = alist.size();\n\t\talist.clear();\n\n\t\n\t}", "public void clear(){\n\n \tlist = new ArrayList();\n\n }", "@Test\n public void testRemove_int_Size_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n Collection c = Arrays.asList(1, 1, 7, 1, 1, 1, 1);\n instance.addAll(c);\n\n instance.remove(2);\n\n Integer expResult = 6;\n Integer result = instance.size();\n\n assertEquals(expResult, result);\n\n }", "@Test\n public void testList(){\n ArrayList<Integer> integers = Lists.newArrayList(1, 2, 3, 4);\n ArrayList<Integer> integers2 = Lists.newArrayList(1, 2, 3, 4, 5);\n// integers2.removeAll(integers);\n// System.out.println(integers2);\n integers2.retainAll(integers);\n System.out.println(integers2);\n }", "public static void main(String[] args) {\n\t\t ArrayList <String> ListName1 = new ArrayList<>();\r\n\t\t\t ListName1.add(\"satya\");\r\n\t\t\tListName1.add(\"Kalyan\");\r\n\t\t\tListName1.add(\"bala\");\r\n\t\t\tSystem.out.println(ListName1);\r\n\t\t\tListName1.remove(\"satya\");\r\n\t\t\tListName1.set(0,\"Mahi\");\r\n\t\t\tSystem.out.println(\" one name is removed \"+ListName1); \r\n\t }", "@Test\n public void testRemove() {\n testAdd();\n list1.remove(12.25);\n assertEquals(8, list1.size());\n assertEquals(13.25, list1.get(1), 0);\n assertEquals(16.25, list1.get(2), 0);\n assertEquals(14.25, list1.get(3), 0);\n }", "public static void main(String[] args) {\n\t\t\n\t\tArrayList<String> obj = new ArrayList<>();\n\t\t\n\t\tobj.add(\"Pune\");\n\t\tobj.add(\"Mumbai\");\n\t\tobj.add(\"Nasik\");\n\t\tobj.add(\"Aurangabad\");\n\t\tobj.add(\"Pune\");\n\t\tobj.add(\"Mumbai\");\n\t\t\n\t\tSystem.out.println(obj);\n\t\t\n\t\tSystem.out.println(obj.size());\n\t\t\n\t\tSystem.out.println(obj.contains(\"Mumbai\"));\n\t\t\n\t\tSystem.out.println(obj.indexOf(\"Pune\"));\n\t\t\n\t\tSystem.out.println(obj.get(3));\n\t\t\n\t\tList<String> newList = obj.subList(0, 3);\n\t\tnewList.add(\"Delhi\");\n\t\tSystem.out.println(newList);\n\t\t\n\t\tSystem.out.println(obj);\n\t\tobj.remove(\"Delhi\");\n\t\tSystem.out.println(obj);\n\t\t\n\t\tfor(int i=0; i<obj.size(); i++) {\n\t\t\t\n\t\t\tSystem.out.print(obj.get(i) + \" \");\n\t\t}\n\t\t\n\t\tSystem.out.println();\n\t\tfor (String value : obj) {\n\t\t\t\n\t\t\tSystem.out.println(value);\n\t\t\t\n\t\t}\n\t\t\n\t}", "@Test\r\n\tvoid testRemove2() {\r\n\t\tSimpleList test = new SimpleList();\r\n\t\ttest.add(7);\r\n\t\ttest.add(10);\r\n\t\ttest.add(9);\r\n\t\ttest.remove(1);\r\n\t\tString output = test.toString();\r\n\t\tassertNotEquals(\"9 10\", output);\r\n\t}", "public static void main(String[] args) {\n\t\tArrayList ar=new ArrayList();\n\t\tar.add(100);\n\t\tar.add(200);\n\t\t\n\t\t ArrayList<Integer> arr=new ArrayList<Integer>();\n\t\t arr.add(10);\n\t\t arr.add(200);\n\t\t arr.add(400);\n\t\t \n\t\t \n\t\t System.out.println(arr.size());//length of arraylist\n\t\t \n\t\t //iteration\n\t\t for(int i=0;i<arr.size();i++) {\n\t\t\t System.out.println(i);\n\t\t }\n\t\t \n\t\t for(Integer e:arr) {\n\t\t\t System.out.println(e);\n\t\t }\n\t\t \n\t\t arr.stream().forEach(e->System.out.println(e));\n\t\t \n\t\t Iterator<Integer>it=arr.iterator();\n\t\t while(it.hasNext()) {\n\t\t\t System.out.println(it.next());\n\t\t }\n\t\tSystem.out.println(\"******************************************\");\n\n\t\t//create one arraylist with another\n\t\t\n\t\tArrayList<Integer> list= new ArrayList<Integer>(Arrays.asList(10,20,30,40,50));\n\t\t\n\t\t//arraylist methods\n\t\t//1.Add\n\t\tlist.add(90);\n\t\tSystem.out.println(list);\n\t\t\n\t\t//2.AddAll\n\t\tArrayList<String> ar1=new ArrayList<String>(Arrays.asList(\"Ruby\",\"Python\",\"Java\",\"C#\"));\n\t\t\n\t\tArrayList<String> ar2=new ArrayList<String>(Arrays.asList(\"Testing\",\"Devops\"));\n\n\t\tar1.addAll(ar2);\n\t\tar2.addAll(ar1);\n\t\tSystem.out.println(ar1);\n\t\tSystem.out.println(ar2);\n\t\t\n\t\t//3.clear\n\t\t//ar1.clear();\n\t\tSystem.out.println(ar1);\n\t\t\n\t\t//4.clone\n\t\tArrayList<String> clonelist=( ArrayList<String>)ar2.clone();\n\t\tSystem.out.println(clonelist);\n\n\t\t//5.contains\n\t\tSystem.out.println(ar2.contains(\"python\"));\n\t\t\n\t\t//6.index of\n\t\tSystem.out.println(ar1);\n\t\tSystem.out.println(ar1.indexOf(\"java\")>0);\n\t\t\n\t\t//7.last index of-returns inetegre\n\t\t\n\t\tArrayList<String> list1=new ArrayList<String>(Arrays.asList(\"Anu\",\"Naveen\",\"Tom\"));\n\t\tint i=list1.lastIndexOf(\"test\");\n\t\tSystem.out.println(i);\n\t\t\n\t\t//8.remove\n\t\tlist1.remove(1);\n\t\tlist1.remove(\"Anu\");\n\t\t\n\t\t//9.removeif\n\t\tArrayList<Integer> numbers=new ArrayList<Integer>(Arrays.asList(1,2,3,4,5,6,7,8,9,10));\n\t\tnumbers.removeIf(num->num%2==0);//printing all odd numbers /elimnating even numbers\n\t\tSystem.out.println(numbers);\n\t\t\n\t\t//10.retain All\n\t\tArrayList<String> al=new ArrayList<String>(Arrays.asList(\"ANu\",\"Robin\",\"Sky\",\"Red\"));\n\t\tal.retainAll(Collections.singleton(\"ANu\"));\n\t\tSystem.out.println(al);\n\t\t\n\t\t//11.How to create a substring from arraylist\n\t\tArrayList<Integer> no=new ArrayList<Integer>(Arrays.asList(1,2,3,4,5,6,7,8,9,12,13,14));\n\t\t\n\t\tArrayList<Integer> substring=new ArrayList<Integer>(no.subList(3, 9));\n\t\tSystem.out.println(substring);\n\t\t\n\t\t//How to convert an arraylist to array\n\t\tObject arr1[]=no.toArray();\n\t\tSystem.out.println(Arrays.toString(arr1));\n\t\t\n\t\tfor(Object e:arr1) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\t\n\t\t/*How to synchronise arraylist\n\t\t * 1.collections.synchronisedlist()->returns a synchronised list\n\t\t * 2.CopyOnWriteArraylist-synchronised variant of arraylist\n\t\t*/\n\t\t\n\t\tList<String> namelist=(List<String>) Collections.synchronizedCollection(new ArrayList<String>());\n\t\t\n\t\t\n\t\t//How to remove duplicate elements using linkedhashset and streams\n\t\t\n\t\t//how to compare 2 arraylist\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\n\t}", "private void add(int i) {\n\tArrayList<Integer>ar1= new ArrayList<Integer>();\t\n\tar1.add(100);\n\tar1.add(60);\n\tar1.add(70);\n\tSystem.out.println(ar1.size());\n\t}", "public static void main(String[] args) {\n ArrayList<Long> lst = new ArrayList<>();\n\n// C.R.U.D\n// Create, Read, Update, Delete\n\n // add item, insert an item, read item, update the item, remove the item, check the location ...\n\n lst.add( 12L ); // 12L is automatically converted to new Long(12L) ; because ArrayList only store object\n lst.add( 100L );\n lst.add( 150L );\n lst.add( 200L );\n // practically you will not add null, but it possible\n // lst.add(null);\n\n System.out.println(\"lst = \" + lst);\n // I want to insert 125 between 100L and 150L, basically 2nd and 3rd item\n lst.add(2,125L);\n System.out.println(\"lst = \" + lst);\n System.out.println(\"lst item count = \" + lst.size());\n\n System.out.println(\"lst.get(3) = \" + lst.get(3));\n\n // updating value at certain index : set method\n lst.set(3,195L);\n System.out.println(\"NEW VALUE FOR lst.get(3) = \" + lst.get(3));\n System.out.println(\"lst = \" + lst);\n\n // removing item by its value\n // lst.remove(100L);\n // System.out.println(\"lst after removing 100 = \" + lst);\n // removing item by its index\n // lst.remove(2);\n // System.out.println(\"lst after removing by index = \" + lst);\n\n // looking for location of certain item\n\n System.out.println(\"\\nLocation of 100L is using lst.indexOf(100L) \" + lst.indexOf(100L));\n\n System.out.println(\"\\nLocation of 23L is using lst.indexOf(23L) \" + lst.indexOf(23L));\n\n // Check whether a list is empty or not\n System.out.println(\"\\nlst.size() > 0 = \" + (lst.size() > 0));\n\n System.out.println(\"\\nlst.isEmpty() = \" + lst.isEmpty());\n\n // how do I delete everything inside my ArrayList\n // lst.clear();\n // System.out.println(\"\\nlst.isEmpty() = \" + lst.isEmpty());\n // System.out.println(\"lst = \" + lst);\n\n // check whether we have certain item or not\n\n System.out.println(\"\\nlst.contains(100L) = \" + lst.contains(100L));\n System.out.println(\"lst.contains(10L) = \" + lst.contains(10L));\n\n // how do I check whether a list contains an item without using contains\n // use indexOf method, if it return -1, it means we don't have it\n System.out.println(\"DO I HAVE 10L = \" + (lst.indexOf(10L) != -1));\n\n ArrayList<Integer> lst2 = new ArrayList<>();\n lst2.add(5);\n lst2.add(3);\n lst2.add(4);\n lst2.add(2);\n\n lst2.indexOf(3);\n System.out.println(\"\\nlst2 = \" + lst2);\n\n\n }", "public static void main(String[] args) {\n\t\tArrayList <Integer> numList = new ArrayList <>();\n\t\t\n\t\t//numList.add(Integer.parseInt(\"12\"));\n\t\t\n\t\t//ADDING ITEM\n\t\t//We call add method from ArrayList class\n\t\tInteger i = 100; //autoboxing to Integer Object\n\t\tnumList.add(i);\n\t\tnumList.add(200);\n\t\t\n\t\tSystem.out.println(numList);\n\t\t\n\t\t//GETTING SINGLE ITEM FROM ARRAY ARRAYLIST\n\t\tint i2 = numList.get(0); //auto unboxing happens here\n\t\t\n\t\tSystem.out.println(i2);\n\t\tSystem.out.println(numList.get(1)); //It is a method returns a value\n\t}", "@Test\n public void testRemove_int_Order() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n Collection c = Arrays.asList(1, 1, 7, 1, 1, 1, 1);\n instance.addAll(c);\n\n instance.remove(2);\n\n List<Integer> expResult = Arrays.asList(1, 1, 1, 1, 1, 1);\n\n assertTrue(isEqual(expResult, instance));\n\n }", "public void testingArrayList() {\r\n\t\tSystem.err\r\n\t\t\t\t.println(\"Class NewFeatures, method testingArrayList called!\");\r\n\t\t// we don't need to write data type two times\r\n\t\t// ArrayList<String> list = new ArrayList<String>();\r\n\t\tArrayList<String> list = new ArrayList<>();\r\n\t\tlist.add(\"hey\");\r\n\t\tlist.add(\"kello\");\r\n\t\tlist.add(\"labas\");\r\n\t\tSystem.out.println(\"\\nValue in list:\" + list.get(0));\r\n\t\tSystem.out.println(\"Printing out the ArrayList: \" + list);\r\n\t\tSystem.out.println(\"Class NewFeatures, method testingArrayList done!\");\r\n\t}", "@Test\n public void testRemoveAt() {\n testAdd();\n list1.removeAt(3);\n assertEquals(8, list1.size());\n assertEquals(15.25, list1.get(4), 0);\n assertEquals(14.25, list1.get(3), 0);\n assertEquals(17.25, list1.get(5), 0);\n }", "public static void main(String[] args) {\nArrayList<String>mylist =new ArrayList<String>();\r\nmylist.add(\"anu\");\r\nmylist.add(\"ammu\");\r\nmylist.add(\"renu\");\r\nSystem.out.println(mylist);\r\nfor(int i=0;i<3;i++)\r\n{\r\n\tSystem.out.println(i+\"=\" + mylist.get(i));\r\n}\r\n\t}", "@Test\n public void remove() {\n testList.add(42);\n testList.remove(42);\n assertEquals(0, testList.count());\n }", "@Test\n\tpublic void testRemove1() {\n\n\t\tint[] arr = { 1, 2, 3, 7, 8 }; // this list\n\t\tSLLSet listObj2 = new SLLSet(arr);\n\n\t\tint notremove = 10;\n\n\t\t// test remove\n\n\t\tlistObj2.remove(notremove);\n\n\t\tString expectedObj2 = \"1, 2, 3, 7, 8\";\n\t\tint expectedObj2Size = 5;\n\n\t\tassertEquals(expectedObj2Size, listObj2.getSize());\n\t\tassertEquals(expectedObj2, listObj2.toString());\n\n\t}", "public static void main(String[] args) throws IOException {\n\n DynArrayList<Integer> TestList = new DynArrayList(5);\n //System.out.printf(\"Is Empty: %b\\n\", TestList.isEmpty());\n\n TestList.sort();\n\n\n TestList.add(0, new Integer(3));\n TestList.add(1, new Integer(4));\n TestList.add(2, new Integer(2));\n TestList.add(3, new Integer(3));\n TestList.add(4, new Integer(6));\n TestList.addLast(new Integer(7));\n TestList.delete(new Integer(3));\n TestList.sort();\n\n\n for(int i = 0; i < TestList.size; i++){\n System.out.printf(\"The element %d is %d\\n\", i, TestList.get(i));\n }\n\n }", "public void create() {\n String[] arrays = new String[100];\n ArrayList<String> list1 = new ArrayList(); //Object[10]\n list1.size(); //0\n list1.add(\"Vivek\"); //object[0] = \"Vivek\"\n list1.size(); //1\n list1.get(0);//\"Vivek\"\n\n list1.remove(1);\n\n list1.add(0, \"Vivek\");\n\n\n ArrayList<String> list3 = new ArrayList<String>(list1);\n\n ArrayList<Student> list = new ArrayList<Student>();\n\n\n\n }", "public int size(){\n\n \treturn list.size();\n\n }", "@Test\r\n\tvoid testRemove5() {\r\n\t\tSimpleList test = new SimpleList();\r\n\t\ttest.add(1);\r\n\t\ttest.remove(1);\r\n\t\ttest.add(1);\r\n\t\ttest.remove(1);\r\n\t\ttest.add(1);\r\n\t\ttest.remove(1);\r\n\t\ttest.add(1);\r\n\t\ttest.remove(1);\r\n\t\ttest.add(1);\r\n\t\ttest.remove(1);\r\n\t\ttest.add(1);\r\n\t\ttest.remove(1);\r\n\t\ttest.add(1);\r\n\t\ttest.remove(1);\r\n\t\ttest.add(1);\r\n\t\ttest.remove(1);\r\n\t\ttest.add(1);\r\n\t\ttest.remove(1);\r\n\t\ttest.add(1);\r\n\t\ttest.remove(1);\r\n\t\tassertNotEquals(0, test.list.length);\r\n\t}", "public static void main(String[] args) {\n List<Integer> linkedList = new LinkedList<Integer>();\r\n\r\n // Java 11 introduced var, here var is an identifier not an keyword\r\n var arrayList = new ArrayList<Integer>();\r\n\r\n // Old way of doing\r\n //LinkedList<Integer> list = new LinkedList<Integer>();\r\n\r\n //linkedList.add(10);\r\n\r\n\r\n dotiming(\"LinkedList\", linkedList);\r\n dotiming(\"ArrayList\", arrayList);\r\n\r\n int size = linkedList.size();\r\n System.out.println(size);\r\n int size1 = arrayList.size();\r\n System.out.println(size1);\r\n }", "public static void main(String[] args) {\n\r\n\t\tArrayList<Integer> a1 = new ArrayList<Integer>(); //can store any type of object\r\n\t\ta1.add(1);\r\n\t\ta1.add(2);\r\n\t\ta1.add(3);\r\n\t\ta1.add(4);\r\n\t\ta1.add(5);\r\n\t\tSystem.out.println(\"Elements of a1 are : \" + a1);\r\n\t\t\r\n\t\tfor(int a:a1)\r\n\t\t{\r\n\t\t\tSystem.out.println(a);\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n Iterable<Integer> integers = Lists.newArrayList();\n ArrayList<Integer> integers1 = Lists.newArrayList(Iterables.filter(integers, integer -> integer != 1));\n System.out.println(integers1.toString());\n int size = Iterables.size(integers);\n System.out.println(\"size:\"+size);\n Integer last = Iterables.getLast(integers);\n System.out.println(\"last:\"+last);\n }", "public static void main(String[] args){\n \t\t\r\n \r\n \t\tArrayList<Phonebook> list = new ArrayList<Phonebook>();\r\n \t\t\r\n \t\tSystem.out.println(\"Original List\");\r\n \t\tlist.add(new Phonebook(1234567, \"[email protected]\", 1987654, \"123 qwerty lane\"));\r\n \t\tlist.add(new Phonebook(1987654, \"[email protected]\", 1994560, \"098 qwerty lane\"));\r\n \t\t\r\n \t\tfor (int i = 0; i < list.size(); i++) {\r\n\t\t\tSystem.out.println(list.get(i).getNumber() + \", \" + list.get(i).getEmail() + \", \" + list.get(i).getCell() + \", \" + list.get(i).getAddress());\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"\\nNew List\");\r\n\t\tlist.add(new Phonebook(2341234, \"[email protected]\", 3241563, \"122 qwerty lane\"));\r\n\t\tfor (int i = 0; i < list.size(); i++) {\r\n\t\t\tSystem.out.println(list.get(i).getNumber() + \", \" + list.get(i).getEmail() + \", \" + list.get(i).getCell() + \", \" + list.get(i).getAddress());\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"\\nNewer List \");\r\n\t\tlist.remove(1);\r\n\t\tfor (int i = 0; i < list.size(); i++) {\r\n\t\t\tSystem.out.println(list.get(i).getNumber() + \", \" + list.get(i).getEmail() + \", \" + list.get(i).getCell() + \", \" + list.get(i).getAddress());\r\n\t\t}\r\n\t\t\r\n\t\t\r\n \t}", "@Test\n public void testRemove_int_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n Collection c = Arrays.asList(1, 1, 7, 1, 1, 1, 1);\n instance.addAll(c);\n\n Integer expResult = 7;\n Integer result = instance.remove(2);\n\n assertEquals(expResult, result);\n\n }", "public static void main(String[] args) {\n Collection collection= new ArrayList();\n collection.add(1500);\n collection.add(true);\n collection.add(12.32);\n collection.add(\"s\");\n collection.add('f');\n //System.out.println(collection);\n\n //Collection add(item) bunda item qo'sha olsa true aksi bo'lsa false qataradi\n System.out.println(collection.add(2200)); // bunda console da true bo'ladi 2200 qo'sha olgani uchun\n\n /* Collection ni addAll metothdi bu bizga collection methodiga narsalarni collection1 b-n\n ketma ketlikda qo'shish imkonini beradi*/\n\n Collection collection1=new ArrayList();\n collection1.addAll(collection);\n collection1.add(\"otherNumber1\");\n collection1.add(\"otherNumber2\");\n collection1.add(\"otherNumber3\");\n System.out.println(collection1);\n\n // boolean remove(object item) bu ko'rsatilgan obyektni collectionda o'chiradi listlarda index bilan bajariladi\n collection1.remove(12.32);\n System.out.println(collection1);\n\n // boolean removeAll(Collection<?> col)\n collection1.removeAll(collection);\n System.out.println(collection1);\n\n\n\n\n\n }", "public static void main(String[] args) {\n list = new LinkedList(0);\n\n // add more elements to LinkedList\n list.push(1);\n list.push(2);\n list.push(3);\n list.push(4);\n list.pop();\n list.pop();\n list.push(42);\n list.push(42);\n list.push(42);\n list.push(42);\n list.pop();\n list.pop();\n list.push(3);\n list.push(4);\n list.pop();\n list.remove(4);\n list.remove(3);\n list.remove(42);\n list.remove(0);\n list.remove(-42);\n list.remove(2);\n list.remove(0);\n list.remove(0);\n list.remove(0);\n list.remove(0);\n list.remove(0);\n list.remove(-1);\n\n\n\n for(int i = 0; i < list.getLength(); i++) {\n System.out.println(\"Print: list: \\t\\t\" + list.get(i));\n }\n }", "@Test\n public void testAdd_After_Remove() {\n OasisList<Integer> baseList = new SegmentedOasisList<>();\n baseList.addAll(Arrays.asList(1, 2, 6, 8));\n\n ListIterator<Integer> instance = baseList.listIterator();\n instance.next();\n instance.next();\n ;\n\n instance.remove();\n instance.add(9);\n int expResult = 1;\n\n assertEquals(expResult, baseList.indexOf(9));\n }", "public int size(){\n return list.size();\n }", "public static void main(String[] args) {\n\t\tArrayListTest lt = new ArrayListTest();\r\n\t\tlt.addStudent(new Student(\"홍길동\",100));\r\n\t\tlt.addStudent(new Student(\"김영식\",60));\r\n\t\tlt.addStudent(new Student(\"박철수\",30));\r\n\t\tlt.addStudent(new Student(\"김지수\",80));\r\n\t\tlt.addStudent(new Student(\"박재훈\",30));\r\n\t\tlt.addStudent(new Student(\"다미\",90));\r\n\t\tlt.addStudent(new Student(\"다란이\",50));\r\n\t\t\r\n\t\tSystem.out.println(\"------------------------------------\");\r\n\t\t\r\n\t\tlt.printStudent();\r\n\t\tlt.removeStudent(3);\r\n\t\tlt.printStudent();\r\n\t\t\r\n\t\t//lt.printStudent();\r\n\t\t//lt.removeStudent(3);\r\n\t\t//lt.printStudent();\r\n\t}", "@Test\n public void testRemoveAll_Size() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n\n Collection c = Arrays.asList(2, 3);\n instance.removeAll(c);\n\n int expectedResult = 0;\n assertEquals(expectedResult, instance.size());\n\n }", "public static void main(String[] args) {\n\n\t\tArrayList<Double> numbers = new ArrayList<>();\n\t\tnumbers.add(10.99);// we are boxing our primitive in object type\n\t\tnumbers.add(9.99);\n\t\tnumbers.add(8.99);\n\t\tnumbers.add(9.99);\n\t\tnumbers.add(9.99);\n\t\t// numbers.add(7); CE: we cannot store INTEGER Objects into ArrayList of DOUBLE\n\t\t// Objects\n\n\t\tSystem.out.println(numbers);\n\t\tDouble num = numbers.get(2);\n\n\t\tdouble num2 = numbers.get(1);// unboxing\n\n\t\tfor (double number : numbers) {\n\t\t\tSystem.out.print(number + \" \");\n\t\t}\n\n\t\tSystem.out.println(\"=======printing backwards==========\");\n\t\tfor (int i = numbers.size() - 1; i >= 0; i--) {\n\t\t\tdouble myNum = numbers.get(i);\n\t\t\tSystem.out.print(myNum + \" \");\n\t\t}\n\t\tSystem.out.println();\n\n\t\tIterator<Double> it = numbers.iterator();\n//\tnext(); = > gets next object\n//\thasNext(); = > it checks if there is any next element\n//\tremove(); => removes element from the collection\n\n\t\tdouble d = it.next();\n\t\tdouble d1 = it.next();\n\t\tSystem.out.println(d1);\n\n\t\twhile (it.hasNext()) {\n\t\t\tSystem.out.print(it.next() + \" \");\n\t\t}\n\t\tSystem.out.println();\n\n\t\tIterator<Double> doubleIt = numbers.iterator();\n\t\twhile (doubleIt.hasNext()) {\n\t\t\tdouble element = doubleIt.next();// unboxing\n\t\t\tif (element < 10) {\n\t\t\t\tdoubleIt.remove();// removing element from collection\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(numbers);\n\n\t}", "private void arrayRemove(MyArrayList myArrayList, Results results, int value) {\r\n int old_size = myArrayList.size();\r\n myArrayList.removeValue(value);\r\n int new_size = myArrayList.size();\r\n if(old_size == new_size + 1) {\r\n results.storeNewResult(\"ArrayRemove test case: FAILED\");\r\n }\r\n else {\r\n results.storeNewResult(\"ArrayRemove test case: PASSED\");\r\n }\r\n }", "public static void main(String[] args) {\n\t\tArrayList ar=new ArrayList();\n\t\tar.add(\"kavya\");\n\t\tar.add(\"anujaa\");\n\t\tar.add(\"jessie\");\n\t\tar.add(\"veena\");\n\t\tSystem.out.println(ar);\n\t\tList l2=ar.subList(1,4);\n\t\tSystem.out.println(l2);\n\n\t}", "@Test\n public void testRemove_Contains_Size_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n\n instance.remove(new Integer(1));\n\n int expResult = 5;\n int result = instance.size();\n assertEquals(expResult, result);\n }", "public NumericObjectArrayList() {\r\n list = new Copiable[10];\r\n count = 0;\r\n }", "@Test\n public void testRemove_int_Order_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n Collection c = Arrays.asList(1, 1, 7, 1, 1, 1, 1);\n instance.addAll(c);\n\n instance.remove(2);\n\n List<Integer> expResult = Arrays.asList(1, 1, 1, 1, 1, 1);\n\n assertTrue(isEqual(expResult, instance));\n\n }", "public static void main(String[] args) {\n\r\n\t\t Scanner s=new Scanner(System.in);\r\n\t\t System.out.println(\"First list :\\n\");\r\n\t\t ArrayList<String>list=new ArrayList<String>();//for getting string datatyped list\r\n\t\t list.add(\"Hai\");//adding elements to the first list\r\n\t\t list.add(\"Welcome\");//adding next element\r\n\t\t list.add(\"Face\");//adding third element\r\n\t\t Iterator itr=list.iterator();//iterating the list to print the values in the list\r\n\t\t while(itr.hasNext())\r\n\t\t {\r\n\t\t \tSystem.out.print(itr.next()+\" \");//printing the list\r\n\t\t }\r\n\t\t System.out.print( \"]\");\r\n\t\t list.clear();//to clear all elements in the array list\r\n\t\t System.out.print(\"\\nAfter clear ArrayList:[\");\r\n\t\t System.out.print( \"]\");\r\n\t}", "public static void main(String[] args) {\n\n\t\tArrayList arr = new ArrayList();\n\n\t\tarr.add(2);\n\t\tarr.add(10);\n\t\tarr.add(\"Hello\");\n\t\tarr.add(\"Java Developer\");\n\t\tarr.add('J');\n\t\tarr.add(2.5);\n\t\tarr.add(2);\n\t\tarr.add(2);\n\n\t\tSystem.out.println(arr);\n\t\tSystem.out.println(\"Size of ArrayList :\" + arr.size());\n\t\t\n\t\tListIterator itr = arr.listIterator();\n\t\twhile(itr.hasNext()){\n\t\t\t\n\t\t\tObject obj = itr.next();\n\t\t\titr.set(obj +\"Tops\");\n\t\t}\n\t\t\n\t\t\n\t\tSystem.out.println(\"After the modification\");\n\t\t\n\t\titr = arr.listIterator();\n\t\t\n\t\twhile(itr.hasNext()){\n\t\t\t\n\t\t\tObject obj = itr.next();\n\t\t\tSystem.out.println(\"Ele :\"+obj);\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Reverse Order\");\n\t\twhile(itr.hasPrevious()){\n\t\t\t\n\t\t\tObject obj = itr.previous();\n\t\t\tSystem.out.println(\"Ele :\" +obj);\n\t\t}\n\n\t}", "public static void remove1() {\n\t\tSystem.out.println(\">>>>>>>>>>>>\");\n\t\tArrayList<Integer> class0 = new ArrayList<Integer>();\n\t\tclass0.add(1);\n\t\tclass0.add(2);\n class0.add(3);\n class0.add(4);\n class0.add(5);\n\t\tassert (class0.contains(1) == true);\n\t\tassert (class0.contains(2) == true);\n assert (class0.contains(3) == true);\n assert (class0.contains(4) == true);\n assert (class0.contains(5) == true);\n\t\tfor(int i = 0; i < class0.size(); i++) {\n\t\t\tint temp = (int)class0.get(i);\n\t\t\tSystem.out.println(temp + \" \");\n\t\t}\n\t\t\n\t\tclass0.remove(2);\n\t\tassert (class0.contains(1) == true);\n\t\tassert (class0.contains(2) == true);\n assert (class0.contains(3) == false);\n assert (class0.contains(4) == true);\n assert (class0.contains(5) == true);\n\t\tfor(int i = 0; i < class0.size(); i++) {\n\t\t\tint temp = (int)class0.get(i);\n\t\t\tSystem.out.println(temp + \" \");\n\t\t}\n\t\tret0 = class0;\n\t}", "public static void main(String args[]){\r\n Object objArray;\r\n \r\n \t Scanner input = new Scanner(System.in);\r\n \t // display on console enter file name\r\n \t System.out.println(\"Enter array list data separated by a comma - for example 1, 2, 3, 4 : \");\r\n\r\n \t input = new Scanner(System.in);\r\n Object arrayListInput = input.nextLine();\r\n \r\n // create instance of class ArrayList.java\r\n \t Arraylist arrayList = new Arraylist();\r\n\r\n \t // load input data into array list object\r\n \t arrayList.loadArrayList(arrayListInput);\r\n\r\n \t // determine if array list object is empty \t \r\n \t boolean arrayListEmpty = arrayList.isEmpty();\r\n \t \r\n \t System.out.println(\"Is the array list empty \" + arrayListEmpty);\r\n \r\n arrayList.add(\"10\"); \r\n \t System.out.println(\"Add object to array list\");\r\n \t \r\n objArray = arrayList.get(5);\r\n \t System.out.println(\"Get object from array list \");\r\n \r\n }", "public static void main(String[] args) {\n\t\tScanner s=new Scanner(System.in);\r\n\t\t ArrayList list=new ArrayList();\r\n\t\t \r\n\t\t list.add(\"hii\");\r\n\t\t list.add(\"hello\");\r\n\t\t list.add(\"welcome\");\r\n\t\t list.add(\"to\");\r\n\t\t \r\n\t\t ArrayList list1=new ArrayList();\r\n\t\t Iterator it=list.iterator();\r\n\t\t System.out.print(\"Original List :\");\r\n\t\t while(it.hasNext())\r\n\t\t {\r\n\t\t System.out.println(it.next());\r\n\t\t \r\n\r\n\t\t}\r\n\t\t list.clear();\r\n\t\t Iterator itt=list.iterator();\r\n\t\t System.out.print(\"Removed List :\");\r\n\t\t while(itt.hasNext())\r\n\t\t {\r\n\t\t System.out.println(itt.next());\r\n\t\t \r\n\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n\t\tArrayList<Integer> numbers = new ArrayList<Integer>();\n\t\t\n\t\t//adding\n\t\tnumbers.add(10);\n\t\tnumbers.add(100);\n\t\tnumbers.add(50);\n\t\t\n\t\t//retrieving\n\t\tSystem.out.println(numbers.get(0));\n\t\t\n\t\t//Indexed for loop iteration\n\t\tSystem.out.println(\"Iteration#1\");\n\t\tfor(int i=0; i<numbers.size(); i++) {\n\t\t\tSystem.out.println(numbers.get(i));\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Iteration#2\");\n\t\tfor (Integer value: numbers) {\n\t\t\tSystem.out.println(value);\n\t\t}\n\t\t\n\t\t//removing items from the Last if ArrayList is fast\n\t\tnumbers.remove(numbers.size() -1);\n\t\t\n\t\t//remove items from the start of list a little slower, cuz internally it is an array\n\t\tnumbers.remove(0);\n\t\t\n\t\tLinkedList<Integer> linkedList = new LinkedList<Integer>();\n\t\tArrayList<Integer> arrayList = new ArrayList<Integer>();\n\t\t\n\t\tdoTimings(\"LinkedList\", linkedList);\n\t\tdoTimings(\"ArrayList\", arrayList);\n\t\t\n\t}", "public static void main(String[] args) {\n List myList = new List();\n myList.append(3);\n myList.append(4);\n myList.append(5);\n myList.prepend(2);\n myList.prepend(1);\n System.out.println(\"Print the list forward:\");\n myList.printForward();\n System.out.println();\n System.out.println(\"Print the list backward:\");\n myList.printReverse();\n System.out.println();\n System.out.println(\"Remove and print the first element:\");\n System.out.println(myList.popFront());\n System.out.println(\"Remove and print the last element:\");\n System.out.println(myList.popBack());\n System.out.println();\n System.out.println(\"Print the list forward:\");\n myList.printForward();\n System.out.println();\n System.out.println(\"Print the list backward:\");\n myList.printReverse(); \n }", "public static void main(String[] args) {\n\t\tArrayList<Integer> arr = new ArrayList();\n\t\tarr.add(34);\n\t\tarr.add(89);\n\t\t\n\t\tArrayList<Integer> brr = new ArrayList();\n\t\t\n\t\tbrr.add(100);\n\t\tbrr.add(101);\n\t\t\n\t\tarr.addAll(brr);\n\t\tSystem.out.println(arr);\n\t\tarr.remove(2);\n\t\tSystem.out.println(arr);\n\n\t}", "@Test\n public void clearList(){\n List<Integer> list = new ArrayList<>();\n list.add(1);\n list.add(2);\n list.add(3);\n list.add(4);\n list.add(5);\n\n assertEquals(5,list.size());\n\n list.clear();\n\n assertEquals(0,list.size());\n }", "public static void main(String[] args) {\n\n ArrayList<Long> lst = new ArrayList<>();\n \n // C R U D create read update delete\n \n lst.add(12L); // 12L is automatically converted to new Long(12L); because arraylist only store object\n lst.add(100L);\n lst.add(200l);\n\n System.out.println(\"lst = \" + lst);\n\n System.out.println(\"counting items --> \" + lst.size());\n\n System.out.println(\"first item is \"+lst.get(0));\n\n\n\n // Task: get the sum of above arraylist item\n long sum = 0L;\n for (int i = 0; i <= lst.size()-1 ; i++) {\n sum = sum + lst.get(i);\n }\n System.out.println(\"sum = \" + sum);\n\n\n\n // task get the max\n long max = lst.get(0);\n for (int x = 0; x < lst.size(); x++) {\n if (lst.get(x) > max){\n max = lst.get(x);\n }\n System.out.println(\"max = \"+max);\n }\n\n\n // task\n // i want to insert 150 between 100 and 200\n lst.add(2,150L);\n System.out.println(\"lst after insert 150 = \" + lst);\n\n\n //task. updaiting value at certain index : set method\n lst.set(3,195L);\n System.out.println(lst.get(3));\n System.out.println(lst);\n\n\n // removing item by it's value\n lst.remove(100L);\n System.out.println(\"after removing 100: \"+lst);\n\n //remove item by it's index\n lst.remove(2);\n System.out.println(lst);\n\n System.out.println(\"location of 150: \"+ lst.indexOf(150L));\n\n System.out.println(\"check if this arraylist is empty: \" + lst.isEmpty());\n System.out.println(lst.size() > 0);\n\n\n // how to delete everything\n lst.clear();\n System.out.println(\"check if this arraylist is empty after clearing: \" + lst.isEmpty());\n }", "public void pop() {\n numberList.pop();\n }", "public static void main(String[] args) {\n\t\t\n\t\t\n\t\tVector obj = new Vector();\n\t\tfor (int i = 10; i <=100; i+=10) {\n\t\t\tobj.addElement(i);\n\t\t}\n\t\t\n\t\tSystem.out.println(obj);\n\t\tSystem.out.println(obj.size()+\" \"+obj.capacity());\n\t\tobj.addElement(110);\n\t\tSystem.out.println(obj.size()+\" \"+obj.capacity());\n\t\t\n\t\t\n\t\tobj.remove(new Integer(70));\n\t\tSystem.out.println(obj);\n\t\t\n\t\tobj.removeElement(60);\n\t\tSystem.out.println(obj.size()+\" \"+obj.capacity());\n\t\t\n\t\tSystem.out.println(\"===========================\");\n\t\tfor(Object element : obj) {\n\t\t\tSystem.out.println(element);\n\t\t}\n\t\t\n\t\t\n\t\t//System.out.println(obj.get(9));\n\t\t\n\t\tint indexOf = obj.indexOf(110);\n\t\tSystem.out.println(indexOf);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t//obj.\n\t\t\n\t\t\n\t\t\n\n\t}", "public static void main(String[] args) {\n\t\tVector v1=new Vector(2,8);\n\t\tSystem.out.println(v1.capacity());\n\t\tv1.add(10);\n\t\tv1.add(20);\nv1.add(30);\n\tv1.add(40);\n\tv1.add(50);\n\tv1.add(60);\n\tv1.add(70);\n\tv1.add(80);\n\tv1.add(90);\n\t\tv1.add(10);\n\t\tv1.add(11);\n\t\tArrayList a1=new ArrayList(v1);\n\t\ta1.add(200);\n\t\tSystem.out.println(a1);\n\t\n\n\n\t}", "private void getInventoryNumber(ArrayList list){}", "public int size() {\n\t return list.size();\n }", "public static void main(String[] args) {\n\t\t\n\t\tArrayList<Integer>list1 = new ArrayList<>(); \n\t\n\t\tSystem.out.println(list1);\n\t\n\t\t//How to add element into an ArrayList.\n\t\t//add() method uses Insertion order.(yerlestirme sirasi)\n\t\tlist1.add(12);\n\t\tlist1.add(12);\n\t\tlist1.add(33);\n\t\t\n\t\t\n\t\t//How to add an element into a specific index\n\t\tlist1.add(1,45);\n\t\t\n\t\tSystem.out.println(list1);\n\t}", "public int size(){\n\t\treturn list.size();\n\t}", "public int size(){\n\t\treturn list.size();\n\t}", "public static void main(String[] args) {\n ArrayList<String> cars = new ArrayList<>();\n cars.add(\"Volvo\");\n cars.add(\"BMW\");\n cars.add(\"Ford\");\n cars.add(\"Mazda\");\n cars.add(\"Chevrolet\");\n cars.add(\"Kia\");\n\n ArrayList<String> cars2 = new ArrayList<>();\n cars2.add(\"Lamborghini\");\n cars2.add(\"Bugatti\");\n\n //1. Adding methods to the list\n //1.1 Add specified element to the end of the list\n cars.add(\"Nissan\");\n //1.2 Add specified element at the specified position\n //could be any position should be inside the length of the list, avoid out of bounds positions\n cars.add(1,\"Smart\");\n //1.3 Add all the elements a list to the another list\n cars.addAll(cars2);\n\n //2. Getting the size of the list\n int size = cars.size();\n System.out.println(\"Size of the list: \" + size);\n\n //3. Removing elements from the list\n //3.1 Remove the specified object from the list, by object or index\n cars.remove(\"Chevrolet\");\n cars.remove(7);\n //3.2 Remove all the elements from the list\n ArrayList<String> cars3 = new ArrayList<String>(cars);\n cars3.clear();\n //3.3 Remove elements from an specific range\n ArrayList<String> cars4 = new ArrayList<String>(cars);\n cars4.subList(4,6).clear();\n\n //4. Searching elements in the List\n //4.1 Search the specified element, return false if the specified element is not found\n cars.contains(\"Fiat\");\n //4.2 Returns the index of the first occurrence of the specified element\n cars.indexOf(\"BMW\");\n\n //5. Replaces the element at the specified position with the new element\n cars.set(3,\"Nissan\");\n }", "public static void main(String[] args) {\n ArrayList<String> al = new ArrayList<String>();\n // simple add() methods for adding elements at the end\n al.add(\"Hi\");\n al.add(\"hello\");\n al.add(\"String\");\n al.add(\"Test\");\n System.out.println(al);\n //adding element to the 4th position\n //4th position = 3 index as index starts with 0\n al.add(3,\"Howdy\");\n\n System.out.println(\"Elements after adding string Howdy:\"+ al);\n //adding string to 1st position\n // al.add(0, \"Bye\");\n\n //Print\n System.out.println(\"Elements after adding string bye:\"+ al);\n }", "public static void main(String[] args) {\n\t\tArrayList<String> cars = new ArrayList<String>(100);\n\t\t\n\t\t//how do we add items to list\n\t\tcars.add(\"Toyota\");\n\t\tcars.add(\"Honda\");\n\t\tcars.add(\"Tesla\");\n\t\t\n\t\t//size \n\t\tint size =cars.size();\n\t\tSystem.out.println(\"Size of the Array List is: \" +size);\n\t\t\n\t\t//Get \n\t\tSystem.out.println(\"The item of index is: \" +cars.get(1));\n\t\t\n\t\t//how to iterate Arraylist using for loop\n\t\tfor(int i=0; i<size; i++) {\n\t\t\tSystem.out.println(\"Item on index \" + \"is \" +cars.get(i));\n\t\t\t\n\t\t}\n\t\t\n\t\t//how to iterate using For-each loop\n\t\tfor(String car: cars) {\n\t\t\tSystem.out.println(\"The item is:\" +car);\n\t\t}\n\t\tSystem.out.println(\"\\n next loop example\");\n\t\t//remove item from array list\n\t\tcars.remove(size -1);\n\t\tfor (String car:cars) {\n\t\t\tSystem.out.println(\"The item is: \" +car);\n\t\t}\n\n\t}", "public static void main(String[] args) {\n\t\tArrayList<String> words = new ArrayList<String>();\n\t\t// flexible, resizable array\n\t\t// can add multiple data types\n\t\t// they will however be cast as objects by default in the array\n\t\t\n\t\t\n\t\t// Java is a type safe language - it forces the developer to know on every single line what a variable's data type is\n\t\t// <> GENERIC COLLECTIONS - forces data in an ArrayList to be of a particular type\n\t\t// enforcing type using <> is called 'Parameterisation'\n\t\t\n\t\twords.add(\"hello\");\n\t\twords.add(\"world\");\n\t\tSystem.out.println(words);\n\t\twords.remove(\"0\");\n\t\tSystem.out.println(words);\n\t\twords.add(\"10\");\n\t\twords.add(\"12.00\");\n\t\twords.add(\"H\");\n\t\tSystem.out.println(words);\n\t\t\n\t\t// Unless <> is specified...\n\t\t// object is the parent of every single data type in Java\n\t\t// .get() here returns an object, so...\n\t\t// have to cast object data type to string as follows:\n\t\tString item1 = (String) words.get(0);\n\t\tSystem.out.println(item1);\n\t\tObject item2 = words.get(1);\n\t\tSystem.out.println(item2);\n\t\t\n\t\t// LINKEDLIST\n\t\t// only complex data types can be inside the angle brackets in a LinkedList, not primitives\n\t\t// To get around this rather than using int we use the wrapper class Integer\n\t\t// Other wrapper classes: <Double><Float>\n\t\t// String is a complex data type anyway \n\t\t\n\t\t// ArrayLists use array as the data structure, whereas LinkedLists use node objects\n\t\t\n\t\t// the array list is faster for retrieving data\n\t\t// the linked list is faster for manipulating data - to retrieve values the linked list has to be traversed\n\t\t\n\t\tLinkedList<Integer> numbers = new LinkedList<Integer>();\n\t\tnumbers.add(1);\n\t\tnumbers.add(2);\n\t\tnumbers.add(99);\n\t\tnumbers.add(43);\n\t\t\n\t\t// number.remove(); would remove the first data value inserted - 1 in this case\n\t\t\n\t\tSystem.out.println(numbers.get(0) + numbers.get(1)); // should print 3\n\t\n\t\tfor (int number: numbers) {\n\t\t\tSystem.out.println(number); // print: 1 2 99 43\n\n\t\t}\n\t}", "public static void main(String[] args) {\n List<String> gerentes = new ArrayList<>();\r\n \r\n\r\n // Adding new elements to the ArrayList\r\n gerentes.add(\"jorge\");\r\n gerentes.add(\"Juan\");\r\n \r\n for (int x = 0; x < 2; x++) {\r\n System.out.println(\"el gerente del equipo \" +(x+1) +\" es \"+ gerentes.get(x)); \r\n }\r\n \r\n \r\n\r\n // Adding an element at a particular index in an ArrayList\r\n \r\n\r\n }", "private void displayArrays(ArrayList list){}", "@Test\n public void testRemoveAll_Not_Empty() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(1);\n instance.add(2);\n\n Collection c = Arrays.asList(2, 3);\n instance.removeAll(c);\n\n int expectedResult = 1;\n assertEquals(expectedResult, instance.size());\n\n }", "public static void main(String[] args)\n {\n \n ArrayList<Integer> myList;\n myList = randomIntegerList(10,20);\n \n System.out.println(myList);\n System.out.println(\"The sum is: \" + sumList(myList));\n \n removeEvens(myList);\n System.out.println(myList);\n \n \n }" ]
[ "0.7280602", "0.7031026", "0.6937264", "0.668906", "0.6534294", "0.65323216", "0.64624923", "0.6447063", "0.6442045", "0.6417172", "0.636269", "0.6319776", "0.630815", "0.6268022", "0.6264073", "0.62634146", "0.6252898", "0.622093", "0.6212877", "0.61801064", "0.61780316", "0.61485094", "0.6140561", "0.6100804", "0.6094103", "0.6069613", "0.60559624", "0.6036671", "0.60292995", "0.602757", "0.60128474", "0.5985305", "0.5973009", "0.596574", "0.5939622", "0.5939207", "0.5933463", "0.59267914", "0.59074205", "0.58757406", "0.5874606", "0.5865693", "0.58552337", "0.58480155", "0.5843135", "0.584143", "0.5840755", "0.58377147", "0.5820213", "0.58076507", "0.5794051", "0.57939065", "0.5792382", "0.5788146", "0.5779082", "0.57787794", "0.5771746", "0.5746494", "0.574287", "0.5742293", "0.5736896", "0.571915", "0.5711005", "0.5705966", "0.57044524", "0.5703988", "0.5698023", "0.5689463", "0.5683016", "0.5675626", "0.5661334", "0.5654375", "0.5644126", "0.564228", "0.5635166", "0.56312156", "0.5618949", "0.56139153", "0.5613842", "0.5584379", "0.5578933", "0.5567117", "0.55541265", "0.554866", "0.5528875", "0.55266875", "0.5520344", "0.5510916", "0.5510597", "0.55103207", "0.5508701", "0.5508701", "0.55019736", "0.5475028", "0.5467551", "0.54654837", "0.546325", "0.54580235", "0.54471165", "0.54460377" ]
0.62118673
19
Construtor de um VisualizarEncontroDTO
public VisualizarEncontroDTO(String desigTorneio, Calendar dataInicio, JogadorDTO jogador, JogadorDTO advers, int qtdEncontros) { this.designacaoTorneio = desigTorneio; this.dataInicio = convertCalendarToString(dataInicio); this.jogadorCorrente = jogador; this.jogadorAdversario = advers; this.qtdEncontros = qtdEncontros; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public CambioComplementariosDTO() { }", "public ViviendaDTO(ViviendaEntity entity, String condicion)\r\n {\r\n if (entity!=null){\r\n this.idVivienda=entity.getIdVivienda();\r\n this.ciudad=entity.getCiudad();\r\n this.descripcion=entity.getDescripcion();\r\n this.direccion=entity.getDireccion();\r\n this.capacidad=entity.getCapacidad();\r\n this.valorDiario=entity.getValorDiario();\r\n this.imagen=entity.getImagen();\r\n }\r\n }", "public ViviendaDTO(ViviendaEntity entity){\r\n if (entity!=null){\r\n this.idVivienda=entity.getIdVivienda();\r\n this.anfitrion=new AnfitrionBasicDTO(entity.getAnfitrion());\r\n this.ciudad=entity.getCiudad();\r\n this.descripcion=entity.getDescripcion();\r\n this.direccion=entity.getDireccion();\r\n this.capacidad=entity.getCapacidad();\r\n this.valorDiario=entity.getValorDiario();\r\n this.imagen=entity.getImagen();\r\n this.numeroHabitaciones=entity.getHabitaciones().size();\r\n }\r\n }", "public ViatgesDTO() {\n \n }", "public TcUnidadEdoDTO() {\n }", "public ProdutoDTO()\n {\n super();\n }", "public ProductoDTO(){\r\n\t\t\r\n\t}", "public void crearCompraComic(CompraComicDTO compraComicDTO);", "public ViviendaDetailDTO(ViviendaEntity viviendaEntity) {\r\n super(viviendaEntity);\r\n if (viviendaEntity != null) {\r\n\r\n if (viviendaEntity.getContratos() != null) {\r\n contratos = new ArrayList<>();\r\n for (ContratoEntity entityContrato : viviendaEntity.getContratos()){\r\n contratos.add(new ContratoDTO(entityContrato));\r\n }\r\n }\r\n\r\n if (viviendaEntity.getCuartos() != null) {\r\n cuartos = new ArrayList<>();\r\n for(CuartoEntity entityCuarto : viviendaEntity.getCuartos()){\r\n cuartos.add(new CuartoDTO(entityCuarto));\r\n }\r\n }\r\n\r\n if (viviendaEntity.getSitiosDeInteres() != null){\r\n sitiosDeInteres = new ArrayList<>();\r\n for(SitioInteresEntity sitioEntity : viviendaEntity.getSitiosDeInteres()){\r\n sitiosDeInteres.add(new SitioInteresDTO(sitioEntity));\r\n }\r\n }\r\n\r\n if(viviendaEntity.getCalificaciones() != null ){\r\n calificaciones = new ArrayList<>();\r\n for(CalificacionEntity calificacionEntity : viviendaEntity.getCalificaciones()){\r\n calificaciones.add(new CalificacionDTO(calificacionEntity));\r\n }\r\n }\r\n\r\n if(viviendaEntity.getServiciosAdicionales() != null){\r\n serviciosAdicionales = new ArrayList<>();\r\n for (ServicioAdicionalEntity servicioEntity : viviendaEntity.getServiciosAdicionales()){\r\n serviciosAdicionales.add(new ServicioAdicionalDTO(servicioEntity));\r\n }\r\n }\r\n\r\n if(viviendaEntity.getServiciosIncluidos() != null){\r\n serviciosOfrecidos = new ArrayList<>();\r\n for (String servicio : viviendaEntity.getServiciosIncluidos()){\r\n serviciosOfrecidos.add(servicio);\r\n }\r\n }\r\n }\r\n }", "public PersonaDTO(){}", "public AseoDetailDTO(AseoEntity entity) {\r\n super(entity);\r\n this.banho = entity.getBanho();\r\n this.dientes = entity.getDientes();\r\n this.peluqueria = entity.getPeluqueria();\r\n\r\n if (entity.getVeterinaria() != null) {\r\n this.veterinaria = new VeterinariaDTO(entity.getVeterinaria());\r\n } else {\r\n entity.setVeterinaria(null);\r\n }\r\n }", "public AtendimentoJuridicoDTO toDTO(AtendimentoJuridicoEntity entity){\n\t\tAtendimentoJuridicoDTO dto = new AtendimentoJuridicoDTO();\n\t\tBeanUtils.copyProperties(entity, dto); \n\t\treturn dto ;\n\t}", "void crearCampania(GestionPrecioDTO campania);", "public GrupoUsuarioDTO() {\n }", "public FacturaDTO(FacturaEntity entity) \n {\n if(entity != null)\n {\n this.costo = entity.getCosto();\n this.id = entity.getId();\n }\n \n }", "public CambioComplementariosDTO(java.lang.String curpEmpleado,\n java.lang.String rfcEmpleado,\n java.lang.String primerApellido,\n java.lang.String segundoApellido,\n java.lang.String nombreEmpleado,\n java.lang.String clabeEmpleado,\n java.lang.String idBancoSar,\n java.util.Date ingresoGobFed, \n java.util.Date ingresoDependencia, \n java.util.Date terminoCargoSind, \n java.lang.String imssIssste, \n java.lang.String EMailOficial, \n java.lang.String EMailPersonal,\n java.lang.Integer idRusp, \n java.lang.String sistemaReparto, \n java.lang.String idTipoPago, \n java.lang.String idEdoCivil, \n java.lang.String idNacionalidad, \n java.lang.String idProfnCarrera, \n java.lang.Integer idNivelEscolar, \n java.lang.Integer idInstEducativa, \n java.lang.Integer idEspProtCivil, \n java.lang.Integer idInstProtcivil, \n java.util.Date fecNotDecPatr, \n java.util.Date fecIniDeclPatr, \n java.util.Date fecIngSpc, \n java.lang.String casoMuestra,\n java.lang.String discapacidad,\n java.lang.String estudiaSiNo,\n java.lang.String padreMadre,\n java.lang.String compatEmpleo,\n java.lang.String usuario,\n java.lang.Integer idInmuebleP,\n java.lang.String plazaTelOfc1,\n java.lang.String plazaExt1) { \n this.curpEmpleado = curpEmpleado;\n this.rfcEmpleado = rfcEmpleado;\n this.primerApellido = primerApellido;\n this.segundoApellido = segundoApellido;\n this.nombreEmpleado = nombreEmpleado;\n this.clabeEmpleado = clabeEmpleado;\n this.idBancoSar = idBancoSar;\n this.ingresoGobFed = ingresoGobFed;\n this.ingresoDependencia = ingresoDependencia;\n this.terminoCargoSind = terminoCargoSind;\n this.imssIssste = imssIssste;\n this.EMailOficial = EMailOficial;\n this.EMailPersonal = EMailPersonal;\n this.idRusp = idRusp;\n this.sistemaReparto = sistemaReparto;\n this.idTipoPago = idTipoPago;\n this.idEdoCivil = idEdoCivil;\n this.idNacionalidad = idNacionalidad;\n this.idProfnCarrera = idProfnCarrera;\n this.idNivelEscolar = idNivelEscolar;\n this.idInstEducativa = idInstEducativa;\n this.idEspProtCivil = idEspProtCivil;\n this.idInstProtcivil = idInstProtcivil;\n this.fecNotDecPatr = fecNotDecPatr;\n this.fecIniDeclPatr = fecIniDeclPatr;\n this.fecIngSpc = fecIngSpc;\n this.casoMuestra = casoMuestra;\n this.discapacidad = discapacidad;\n this.estudiaSiNo = estudiaSiNo;\n this.padreMadre = padreMadre;\n this.compatEmpleo = compatEmpleo;\n this.usuario = usuario;\n this.idInmuebleP = idInmuebleP;\n this.plazaTelOfc1 = plazaTelOfc1;\n this.plazaExt1 = plazaExt1;\n }", "public DDetRetContrArtEscenicsAttTO() { }", "public EventoDTO(EventoEntity entity) {\n if(entity != null)\n {\n this.nombreEvento = entity.getNombreEvento();\n this.tipoEvento = entity.getTipoEvento();\n this.fechaEvento = entity.getFechaEvento();\n this.ubicacionLat = entity.getUbicacionLat();\n this.ubicacionLon = entity.getUbicacionLon();\n this.privado = entity.isPrivado();\n this.capacidad = entity.getCapacidad();\n this.distanciaVivienda = entity.getDistanciaVivienda();\n this.id = entity.getId();\n }\n }", "public ABMServicio(ControladoraVisual unaControladora) {\n initComponents();\n unaControladoraVisual = unaControladora;\n modelo.addColumn(\"ID\");\n modelo.addColumn(\"Nombre\");\n modelo.addColumn(\"Descripcion\");\n modelo.addColumn(\"Precio\");\n cargarTabla();\n }", "public DDetRetContrArtEscenicsAttTO(java.lang.Integer ideFormato, java.lang.Byte numVersionFormato, java.lang.String numEvento, java.lang.String nomEspectaculo, java.lang.Integer codMunicipioEspectaculo, java.lang.Integer codDepartamentoEspectaculo, Integer fecRealizacion, java.lang.Long idePersonaRutProductor, java.lang.String valDireccionProductor, java.lang.Integer codMunicipioProductor, java.lang.Integer codDepartamentoProductor, java.lang.Long numTelefonoProductor, String valLugarEvento, java.lang.Integer numTotBoletasVendidas, java.math.BigDecimal valTotBoletasVendidas, BigDecimal valServDistComerBoleteria, java.lang.Integer numTotBolPrecIgSup3uvt, java.math.BigDecimal valTotBolPrecIgSup3uvt, java.lang.Integer numTotDerAsPreIgSup3uvt, java.math.BigDecimal valTotDerAsPreIgSup3uvt, java.lang.Integer numBoletasRetencionExceso, java.math.BigDecimal valBoletasRetencionExceso, Long ideUsuarioCambio, Timestamp fecCambio) {\n\t\tsetIdeFormato(ideFormato);\n\t\tsetNumVersionFormato(numVersionFormato);\n\t\tsetNumEvento(numEvento);\n\t\tsetNomEspectaculo(nomEspectaculo);\n\t\tsetCodMunicipioEspectaculo(codMunicipioEspectaculo);\n\t\tsetCodDepartamentoEspectaculo(codDepartamentoEspectaculo);\n\t\tsetFecRealizacion(fecRealizacion);\n\t\tsetIdePersonaRutProductor(idePersonaRutProductor);\n\t\tsetValDireccionProductor(valDireccionProductor);\n\t\tsetCodMunicipioProductor(codMunicipioProductor);\n\t\tsetCodDepartamentoProductor(codDepartamentoProductor);\n\t\tsetNumTelefonoProductor(numTelefonoProductor);\n\t\tsetValLugarEvento(valLugarEvento);\n\t\tsetNumTotBoletasVendidas(numTotBoletasVendidas);\n\t\tsetValTotBoletasVendidas(valTotBoletasVendidas);\n\t\tsetValServDistComerBoleteria(valServDistComerBoleteria);\n\t\tsetNumTotBolPrecIgSup3uvt(numTotBolPrecIgSup3uvt);\n\t\tsetValTotBolPrecIgSup3uvt(valTotBolPrecIgSup3uvt);\n\t\tsetNumTotDerAsPreIgSup3uvt(numTotDerAsPreIgSup3uvt);\n\t\tsetValTotDerAsPreIgSup3uvt(valTotDerAsPreIgSup3uvt);\n\t\tsetNumBoletasRetencionExceso(numBoletasRetencionExceso);\n\t\tsetValBoletasRetencionExceso(valBoletasRetencionExceso);\n\t\tsetIdeUsuarioCambio(ideUsuarioCambio);\n\t\tsetFecCambio(fecCambio);\n\t}", "public HojaDeVidaDTO getHojaDeVida() {return hojaDeVida;}", "@Override\r\n public ViviendaEntity toEntity() {\r\n ViviendaEntity viviendaEntity = super.toEntity();\r\n if (contratos != null) {\r\n List<ContratoEntity> contratosEntity = new ArrayList<>();\r\n for (ContratoDTO dtoContrato : contratos) {\r\n contratosEntity.add(dtoContrato.toEntity());\r\n }\r\n viviendaEntity.setContratos(contratosEntity);\r\n }\r\n\r\n if (cuartos != null) {\r\n List<CuartoEntity> cuartoEntities = new ArrayList<>();\r\n for (CuartoDTO dto : cuartos) {\r\n cuartoEntities.add(dto.toEntity());\r\n }\r\n viviendaEntity.setCuartos(cuartoEntities);\r\n }\r\n\r\n if (sitiosDeInteres != null) {\r\n List<SitioInteresEntity> entities = new ArrayList<>();\r\n for (SitioInteresDTO dto : sitiosDeInteres) {\r\n entities.add(dto.toEntity());\r\n }\r\n viviendaEntity.setSitiosDeInteres(entities);\r\n }\r\n\r\n if (calificaciones != null) {\r\n List<CalificacionEntity> entities = new ArrayList<>();\r\n for (CalificacionDTO dto : calificaciones) {\r\n entities.add(dto.toEntity());\r\n }\r\n viviendaEntity.setCalificaciones(entities);\r\n }\r\n\r\n if (serviciosOfrecidos != null) {\r\n viviendaEntity.setServiciosIncluidos(serviciosOfrecidos);\r\n }\r\n\r\n if (serviciosAdicionales != null) {\r\n List<ServicioAdicionalEntity> entities = new ArrayList<>();\r\n for (ServicioAdicionalDTO dto : serviciosAdicionales) {\r\n entities.add(dto.toEntity());\r\n }\r\n viviendaEntity.setServiciosAdicionales(entities);\r\n }\r\n\r\n return viviendaEntity;\r\n }", "public Dto() {\n \t\n }", "public CidadeConverter() {\n }", "public CalificacionDetailDTO(CalificacionEntity entity) {\n super(entity);\n if(entity.getHospedaje()!= null){\n this.hospedaje = new HospedajeDTO(entity.getHospedaje());\n }\n else {\n entity.setHospedaje(null);\n } \n if(entity.getEstudiante()!= null){\n this.estudiante = new EstudianteDTO(entity.getEstudiante());\n }\n else {\n entity.setEstudiante(null);\n } \n }", "public DomicilioDTO(DomicilioEntity domicilioEntity) {\r\n if (domicilioEntity != null) {\r\n this.id = domicilioEntity.getId();\r\n this.precio = domicilioEntity.getPrecio();\r\n this.idZona = domicilioEntity.getIdZona();\r\n \r\n }\r\n }", "@Override\n\tpublic List<EntidadeDominio> Visualizar(EntidadeDominio entidade) {\n\t\tLivro livro = (Livro)entidade;\n\t\tPreparedStatement pst = null;\n\t\tPreparedStatement pst2 = null;\n\t\tPreparedStatement pst3 = null;\n\t\tPreparedStatement pst4 = null;\n\t\tPreparedStatement pst5 = null;\n\t\tStringBuilder sql = new StringBuilder();\n\t\tsql.append(\"SELECT * FROM livro WHERE idlivro=?\");\n\t\ttry {\n\t\t\topenConnection();\t\n\t\n\t\tpst = connection.prepareStatement(sql.toString());\n\t\tpst.setInt(1, livro.getId());\n\t\tResultSet rs = pst.executeQuery();\n\t\tList<EntidadeDominio> livros = new ArrayList<EntidadeDominio>();\n\t\tif(rs.next()) {\n\t\t\tlivro.setTitulo(rs.getString(\"livTitulo\"));\n\t\t\tlivro.setSinopse(rs.getString(\"livSinopse\"));\n\t\t\tlivro.setCodigoBarras(rs.getString(\"livCodigoDeBarras\"));\n\t\t\tDimensoes dimensao = new Dimensoes();\n\t\t\tdouble Altura = rs.getDouble(\"livAltura\");\n\t\t\tdouble Largura = rs.getDouble(\"livLargura\");\n\t\t\tdouble Peso = rs.getDouble(\"livPeso\");\n\t\t\tdouble profundidade = rs.getDouble(\"livProfundidade\");\n\t\t\tdimensao.setAltura(Altura);\n\t\t\tdimensao.setLargura(Largura);\n\t\t\tdimensao.setPeso(Peso);\n\t\t\tdimensao.setProfundidade(profundidade);\n\t\t\tlivro.setDimensoes(dimensao);\n\t\t\tlivro.setISBN(rs.getString(\"livISBN\"));\n\t\t\tlivro.setNumeroPaginas(rs.getInt(\"livNumeroPaginas\"));\n\t\t\tlivro.setEdicao(rs.getInt(\"livEdicao\"));\n\t\t\tlivro.setStatus(rs.getString(\"livStatus\"));\n\t\t\tlivro.setAno(rs.getInt(\"livAno\"));\n\t\t}\n\t\t\tStringBuilder sql2 = new StringBuilder();\n\t\t\t sql2.append(\"SELECT * FROM livcat JOIN categoria ON livcat.id_categoria= categoria.id_Categoria WHERE livcat.id_livro=?\");\n\t\t\t pst2 = connection.prepareStatement(sql2.toString());\n\t\t\t pst2.setInt(1, livro.getId());\n\t\t\tResultSet rs2 = pst2.executeQuery();\n\t\t\tList<Categoria> cat = new ArrayList<Categoria>();\n\t\t\tCategoria c = new Categoria();\n\t\t\tif(rs2.next()) {\n\t\t\t\tc.setNome(rs2.getString(\"categoria\"));\n\t\t\t\tc.setId(rs2.getInt(\"id_Categoria\"));\n\t\t\t\tcat.add(c);\n\t\t\t}\n\t\t\t\n\t\t//TERCEIRA PARTE PUXAR AUTOR\n\t\t\tStringBuilder sql3 = new StringBuilder();\n\t\t\t sql3.append(\"SELECT * FROM livro JOIN autor ON livro.livIdAutor = autor.id_Autor WHERE livro.idlivro=?\");\n\t\t\t pst3 = connection.prepareStatement(sql3.toString());\n\t\t\t pst3.setInt(1, rs.getInt(\"idlivro\"));\n\t\t\tResultSet rs3 = pst3.executeQuery();\n\t\t\twhile(rs3.next())\n\t\t\t{\n\t\t\t\tAutor autor = new Autor();\n\t\t\t\tautor.setId(rs3.getInt(\"id_Autor\"));\n\t\t\t\tautor.setNome(rs3.getString(\"autor\"));\n\t\t\t\tlivro.setAutor(autor);\n\t\t\t\t\n\t\t\t}\n\t\t//QUARTA PARTE PUXANDO A EDITORA\n\t\t\tStringBuilder sql4 = new StringBuilder();\n\t\t\t sql4.append(\"SELECT * FROM livro JOIN editora ON livro.livIdEditora = editora.id_editora WHERE livro.idlivro=?\");\n\t\t\t pst4 = connection.prepareStatement(sql4.toString());\n\t\t\t pst4.setInt(1, rs.getInt(\"idlivro\"));\n\t\t\t ResultSet rs4 = pst4.executeQuery();\n\t\t\t if(rs4.next())\n\t\t\t {\n\t\t\t\t Editora edit = new Editora();\n\t\t\t\t edit.setId(rs4.getInt(\"id_editora\"));\n\t\t\t\t edit.setNome(rs4.getString(\"editora\"));\n\t\t\t\t livro.setEditora(edit);\n\t\t\t }\n\t\t//QUINTA PARTE PUXANDO A PRECIFICACAO\n\t\t\t StringBuilder sql5 = new StringBuilder();\n\t\t\t sql5.append(\"SELECT * FROM livro JOIN precificacao ON livro.livIdPrecificacao = precificacao.id_precificacao WHERE idlivro=?\");\n\t\t\t pst5 = null;\n\t\t\t pst5 = connection.prepareStatement(sql5.toString());\n\t\t\t pst5.setInt(1, rs.getInt(\"idlivro\"));\n\t\t\t ResultSet rs5 = pst5.executeQuery();\n\t\t\t if(rs5.next())\n\t\t\t {\n\t\t\t\t Precificacao preci = new Precificacao();\n\t\t\t\t preci.setClassificacao(rs5.getString(\"precificacao\"));\n\t\t\t\t preci.setTipo(rs5.getInt(\"id_precificacao\"));\n\t\t\t\t livro.setPrecificacao(preci);\n\t\t\t }\n\t\t//SEXTA PARTE MONTANDO O RETORNO\t\t\t\n\t\t\t\tlivro.setIdcategoria(cat);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tlivros.add(livro);\n\t\t\t\treturn livros;\n\t//java.sql.Date dtCadastroEmLong = rs.getDate(\"dt_cadastro\");\n\t//Date dtCadastro = new Date(dtCadastroEmLong.getTime());\t\t\t\t\n\t//p.setDtCadastro(dtCadastro);\n\t//produtos.add(p);\n\t} catch (SQLException e) {\n\t\te.printStackTrace();\n\t}\n\t\treturn null;\n\t}", "public MarcaDTO(MarcaEntity marcaEntity) {\n if (marcaEntity != null) {\n this.id = marcaEntity.getId();\n this.nombreMarca = marcaEntity.getNombreMarca();\n this.logo = marcaEntity.getLogo();\n }\n }", "public ConversorVelocidad() {\n //setTemperaturaConvertida(0);\n }", "private IngredienteDTO converteIngredienteEntityEmDTO(final IngredienteEntity ingredienteEntity) {\n\n IngredienteDTO ingredienteDTO = new IngredienteDTO();\n\n ingredienteDTO.setCodigoIngrediente(ingredienteEntity.getCodigoIngrediente());\n ingredienteDTO.setNomeIngrediente(ingredienteEntity.getNomeIngrediente());\n ingredienteDTO.setValorIngrediente(ingredienteDTO.getValorIngrediente());\n\n return ingredienteDTO;\n }", "PersonaDTO PersonaToPersonaDTO(Persona persona);", "public PersonaVO() {\n }", "public CuentaDetailDTO(CuentaEntity entity) {\r\n super(entity);\r\n if (entity != null) {\r\n if (entity.getEstudiante() != null) {\r\n this.estudiante = new EstudianteDTO(entity.getEstudiante());\r\n }\r\n if (entity.getTarjeta() != null) {\r\n if (!entity.getTarjeta().isEmpty()) {\r\n tarjeta = new ArrayList<>();\r\n for (TarjetaEntity entityTarjeta : entity.getTarjeta()) {\r\n tarjeta.add(new TarjetaDTO(entityTarjeta));\r\n }\r\n }\r\n }\r\n if (entity.getOrdenPagos() != null) {\r\n if (!entity.getOrdenPagos().isEmpty()) {\r\n ordenPagos = new ArrayList<>();\r\n for (OrdenPagoEntity entityOrdenPago : entity.getOrdenPagos()) {\r\n ordenPagos.add(new OrdenPagoDTO(entityOrdenPago));\r\n }\r\n }\r\n }\r\n }\r\n }", "public CoordinadorDTO(CoordinadorEntity coordinadorEntity) {\n this.id_coodinador = coordinadorEntity.getId_coordinador();\n this.nombres = coordinadorEntity.getNombres();\n this.apellidos = coordinadorEntity.getApellidos();\n this.genero = coordinadorEntity.getGenero();\n this.email = coordinadorEntity.getEmail();\n this.tipo_documento_id = coordinadorEntity.getTipoDocumento();\n this.nro_documento = coordinadorEntity.getNro_documento();\n }", "public EmployeeNationalityPercentageDTO() {\n }", "public AboutUsDataDTO() {\n\t\tsuper();\n\t}", "public ConsultaHistorialClinico(java.awt.Frame parent, boolean modal,TipoInforme tipo,DTOAbuelo dto) {\n super(parent, modal);\n initComponents();\n Image icon = new ImageIcon(getClass().getResource(\"/Vistas/imagenes/pinaricono.jpg\")).getImage();\n this.setLocationRelativeTo(null);\n idPaciente = dto.getId();\n tipoInforme=tipo;\n controlador= new ControladorABMAbuelos();\n controladorHistorial = new ControladorHistorialClinico();\n textDNI.setText(dto.getDni());\n textNombre.setText(dto.getNombre() + \" \" + dto.getApellido());\n textObraSocial.setText(dto.getDTOobraSocial().getNombreObraSocial());\n textPeso.setText(Double.toString(dto.getPeso()));\n textTalla.setText(Double.toString(dto.getTalla()));\n textTipoHistorial.setText(tipo.name());\n ///////FOTO////\n if(dto.getFoto()!=null){\n byte[] imagenbyte = dto.getFoto();\n BufferedImage img = null;\n try{ \n img = ImageIO.read(new ByteArrayInputStream(imagenbyte));\n Image imagen = img;\n imagen = imagen.getScaledInstance(130, 130, imagen.SCALE_DEFAULT);\n jLabel5.setIcon(new ImageIcon(imagen));\n }catch(IOException e){\n System.out.println(\"error\");\n }\n }\n ///////////////\n mostrarInformes();\n }", "public TdExpCurpDTO() {\n }", "public VotacaoSegundoDia() {\n\n\t}", "public Vehiculo() {\r\n }", "public AfiliadoVista() {\r\n }", "@Override\n protected void carregaObjeto() throws ViolacaoRegraNegocioException {\n entidade.setNome( txtNome.getText() );\n entidade.setDescricao(txtDescricao.getText());\n entidade.setTipo( txtTipo.getText() );\n entidade.setValorCusto(new BigDecimal((String) txtCusto.getValue()));\n entidade.setValorVenda(new BigDecimal((String) txtVenda.getValue()));\n \n \n }", "public PropertySellerDetailDTO() {\n\n\t}", "public void crearPersona(PersonaDTO personaDTO);", "ShowInterviwerDTO getIntervieerDTO() {\r\n\t\tShowInterviwerDTO interviwerDTO = new ShowInterviwerDTO();\r\n\t\tinterviwerDTO.setUserDetailsId(INTERVIEWER_ID);\r\n\t\treturn interviwerDTO;\r\n\t}", "List<VoziloDto> sveVozila();", "public InventarioControlador() {\n }", "public PaperDTO() {\n }", "public AttributeDescriptorDTO()\n\t{\n\t\tsuper();\n\t}", "public Map<String,Object> generaParametrosRegistroContador (NdtContadorPublicoAutDTO ndtContadorPublicoAutDTO) throws RuntimeException {\r\n\t\tfinal Map<String, Object> iReportParameter = new HashMap<String, Object>();\r\n\t\t\r\n\t\tparametrosLayout(iReportParameter);\r\n\t\t\r\n\t\ttry {\r\n\t\t\tif (ndtContadorPublicoAutDTO != null) {\r\n\t\t\t\tiReportParameter.put(\"fecha\", UtileriaFechas.parseDateToString(new Date(), \"dd/MM/yyyy\"));\r\n\t\t\t\tiReportParameter.put(\"numTramiteNotaria\", ndtContadorPublicoAutDTO.getListNdtCpaTramites() != null ? \r\n\t\t\t\t\t\tndtContadorPublicoAutDTO.getListNdtCpaTramites().get(0) != null ? \r\n\t\t\t\t\t\tndtContadorPublicoAutDTO.getListNdtCpaTramites().get(0).getNumTramiteNotaria() != null ? \r\n\t\t\t\t\t\tndtContadorPublicoAutDTO.getListNdtCpaTramites().get(0).getNumTramiteNotaria() : \"\" : \"\" : \"\");\r\n\t\t\t\tiReportParameter.put(\"nombreCompleto\", ndtContadorPublicoAutDTO.getUsuarioSesion() != null ? \r\n\t\t\t\t\t\tndtContadorPublicoAutDTO.getUsuarioSesion().getNombreCompleto() != null ? \r\n\t\t\t\t\t\tndtContadorPublicoAutDTO.getUsuarioSesion().getNombreCompleto() : \"\" : \"\");\r\n\t\t\t\tiReportParameter.put(\"RFC\", ndtContadorPublicoAutDTO.getUsuarioSesion() != null ? \r\n\t\t\t\t\t\tndtContadorPublicoAutDTO.getUsuarioSesion().getRfc() != null ? \r\n\t\t\t\t\t\tndtContadorPublicoAutDTO.getUsuarioSesion().getRfc() : \"\" : \"\");\r\n\t\t\t\tiReportParameter.put(\"CURP\", ndtContadorPublicoAutDTO.getUsuarioSesion() != null ? \r\n\t\t\t\t\t\tndtContadorPublicoAutDTO.getUsuarioSesion().getCurp() != null ? \r\n\t\t\t\t\t\tndtContadorPublicoAutDTO.getUsuarioSesion().getCurp() : \"\" : \"\");\r\n\t\t\t\tStringBuilder domicilioFiscal = null;\r\n\t\t\t\tif (ndtContadorPublicoAutDTO.getPersonaFiscal() != null && ndtContadorPublicoAutDTO.getPersonaFiscal().getDomicilioFiscal() != null) {\r\n\t\t\t\t\tdomicilioFiscal = new StringBuilder();\r\n\t\t\t\t\tdomicilioFiscal.append(ndtContadorPublicoAutDTO.getPersonaFiscal().getDomicilioFiscal().getCalle() != null ? \r\n\t\t\t\t\t\t\tndtContadorPublicoAutDTO.getPersonaFiscal().getDomicilioFiscal().getCalle() +\" \" : \"\");\r\n\t\t\t\t\tdomicilioFiscal.append(ndtContadorPublicoAutDTO.getPersonaFiscal().getDomicilioFiscal().getNumExterior1() != null ? \r\n\t\t\t\t\t\t\tndtContadorPublicoAutDTO.getPersonaFiscal().getDomicilioFiscal().getNumExterior1() +\"\" : \"\");\r\n\t\t\t\t\tdomicilioFiscal.append(ndtContadorPublicoAutDTO.getPersonaFiscal().getDomicilioFiscal().getNumExteriorAlf() != null ? \r\n\t\t\t\t\t\t\tndtContadorPublicoAutDTO.getPersonaFiscal().getDomicilioFiscal().getNumExteriorAlf() +\" \" : \"\");\r\n\t\t\t\t\tdomicilioFiscal.append(ndtContadorPublicoAutDTO.getPersonaFiscal().getDomicilioFiscal().getNumInterior() != null ? \r\n\t\t\t\t\t\t\tndtContadorPublicoAutDTO.getPersonaFiscal().getDomicilioFiscal().getNumInterior() +\" \" : \"\");\r\n\t\t\t\t\tdomicilioFiscal.append(ndtContadorPublicoAutDTO.getPersonaFiscal().getDomicilioFiscal().getNumInteriorAlf() != null ? \r\n\t\t\t\t\t\t\tndtContadorPublicoAutDTO.getPersonaFiscal().getDomicilioFiscal().getNumInteriorAlf() +\" \" : \"\");\r\n\t\t\t\t\tif (ndtContadorPublicoAutDTO.getPersonaFiscal().getDomicilioFiscal().getAsentamiento() != null) {\r\n\t\t\t\t\t\tif (ndtContadorPublicoAutDTO.getPersonaFiscal().getDomicilioFiscal().getAsentamiento().getLocalidad() != null && \r\n\t\t\t\t\t\t\t\tndtContadorPublicoAutDTO.getPersonaFiscal().getDomicilioFiscal().getAsentamiento().getLocalidad().getMunicipio() != null && \r\n\t\t\t\t\t\t\t\tndtContadorPublicoAutDTO.getPersonaFiscal().getDomicilioFiscal().getAsentamiento().getLocalidad().getMunicipio().getEntidadFederativa() != null) {\r\n\t\t\t\t\t\t\tdomicilioFiscal.append(ndtContadorPublicoAutDTO.getPersonaFiscal().getDomicilioFiscal().getAsentamiento().getLocalidad().getMunicipio().getEntidadFederativa().getNombre() != null ?\r\n\t\t\t\t\t\t\t\t\tndtContadorPublicoAutDTO.getPersonaFiscal().getDomicilioFiscal().getAsentamiento().getLocalidad().getMunicipio().getEntidadFederativa().getNombre() +\" \" : \"\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (ndtContadorPublicoAutDTO.getPersonaFiscal().getDomicilioFiscal().getAsentamiento().getLocalidad() != null && \r\n\t\t\t\t\t\t\t\tndtContadorPublicoAutDTO.getPersonaFiscal().getDomicilioFiscal().getAsentamiento().getLocalidad().getMunicipio() != null) {\r\n\t\t\t\t\t\t\tdomicilioFiscal.append(ndtContadorPublicoAutDTO.getPersonaFiscal().getDomicilioFiscal().getAsentamiento().getLocalidad().getMunicipio().getNombre() != null ?\r\n\t\t\t\t\t\t\t\t\tndtContadorPublicoAutDTO.getPersonaFiscal().getDomicilioFiscal().getAsentamiento().getLocalidad().getMunicipio().getNombre() +\" \" : \"\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tdomicilioFiscal.append(ndtContadorPublicoAutDTO.getPersonaFiscal().getDomicilioFiscal().getAsentamiento().getNombre() != null ? \r\n\t\t\t\t\t\t\t\tndtContadorPublicoAutDTO.getPersonaFiscal().getDomicilioFiscal().getAsentamiento().getNombre() +\" \" : \"\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (ndtContadorPublicoAutDTO.getPersonaFiscal().getDomicilioFiscal().getCodigoPostal() != null) {\r\n\t\t\t\t\t\tdomicilioFiscal.append(ndtContadorPublicoAutDTO.getPersonaFiscal().getDomicilioFiscal().getCodigoPostal().getCodigoPostal() != null ?\r\n\t\t\t\t\t\t\t\tndtContadorPublicoAutDTO.getPersonaFiscal().getDomicilioFiscal().getCodigoPostal().getCodigoPostal() : \"\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tiReportParameter.put(\"domicilioFiscal\", domicilioFiscal.toString() != null ? domicilioFiscal.toString() : \"\");\r\n\t\t\t\t\r\n\t\t\t\tString numeroCedula = \"\";\r\n\t\t\t\tif (ndtContadorPublicoAutDTO.getListNdtR1DatosPersonales() != null && !ndtContadorPublicoAutDTO.getListNdtR1DatosPersonales().isEmpty()) {\r\n\t\t\t\t\tnumeroCedula = ndtContadorPublicoAutDTO.getListNdtR1DatosPersonales().get(0).getCedulaProfesional();\r\n\t\t\t\t\tif (numeroCedula == null) {\r\n\t\t\t\t\t\tnumeroCedula = \"\";\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tiReportParameter.put(\"numeroCedulaProfesional\", numeroCedula);\r\n\t\t\t\tiReportParameter.put(\"razonSocialDespacho\", ndtContadorPublicoAutDTO.getNdtDespachosDTO() != null ? \r\n\t\t\t\t\t\tndtContadorPublicoAutDTO.getNdtDespachosDTO().getRazonSocial() != null ? \r\n\t\t\t\t\t\tndtContadorPublicoAutDTO.getNdtDespachosDTO().getRazonSocial() : \"\" : \"\");\r\n\t\t\t\tiReportParameter.put(\"razonSocialColegio\", ndtContadorPublicoAutDTO.getNdtColegioDTO() != null ? \r\n\t\t\t\t\t\tndtContadorPublicoAutDTO.getNdtColegioDTO().getRazonSocial() != null ? \r\n\t\t\t\t\t\tndtContadorPublicoAutDTO.getNdtColegioDTO().getRazonSocial() : \"\" : \"\");\r\n\t\t\t\tString tipoCurp = \"\";\r\n\t\t\t\tif (ndtContadorPublicoAutDTO.getUsuarioSesion() != null && ndtContadorPublicoAutDTO.getUsuarioSesion().getCurp() != null) {\r\n\t\t\t\t\ttipoCurp = ndtContadorPublicoAutDTO.getUsuarioSesion().getCurp().substring(12, 13);\r\n\t\t\t\t\tif (tipoCurp != \"NE\") {\r\n\t\t\t\t\t\ttipoCurp = \"Mexicana\";\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\ttipoCurp = \"Extranjera\";\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tiReportParameter.put(\"nacionalidad\", tipoCurp);\r\n\t\t\t\tiReportParameter.put(\"cadenaOriginal\", ndtContadorPublicoAutDTO.getCadenaOriginal() != null ? \r\n\t\t\t\t\t\tndtContadorPublicoAutDTO.getCadenaOriginal() : \"\");\r\n\t\t\t\tString selloDigitalIMSS = \"\";\r\n\t\t\t\tif (ndtContadorPublicoAutDTO.getListNdtCpaTramites() != null && !ndtContadorPublicoAutDTO.getListNdtCpaTramites().isEmpty()) {\r\n\t\t\t\t\tselloDigitalIMSS = ndtContadorPublicoAutDTO.getListNdtCpaTramites().get(0).getSelloDigitalImss();\r\n\t\t\t\t\tif (selloDigitalIMSS == null) {\r\n\t\t\t\t\t\tselloDigitalIMSS = \"\";\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tiReportParameter.put(\"selloDigitalIMSS\", selloDigitalIMSS);\r\n\t\t\t}\r\n\t\t} catch (Exception ex) {\r\n\t\t\tlogger.error(\"ERROR: al generar los par\\u00e1metros preliminares del reporte de solicitud de registro de un contador publico.\", ex);\r\n\t\t\tthrow new RuntimeException(\"ERROR: al generar los par\\u00e1metros preliminares del reporte de solicitud de registro de un contador publico.\", ex);\r\n\t\t}\r\n\t\treturn iReportParameter;\r\n\t}", "public mbvConsolidadoPeriodoAnteriores() {\r\n }", "@Override\n\tpublic Izdavac convert(IzdavacDTO dto) {\n\t\tIzdavac izdavac=new Izdavac();\n\t\tif(dto.getId()!=null) {\n\t\t\tizdavac=izdavacService.findOne(dto.getId());\n\t\t\tif(izdavac==null) {\n\t\t\t\tthrow new IllegalStateException(\"greska izdavacDTO\");\n\t\t\t}\n\t\t}\n\t\t\n\t\tizdavac.setAdresa(dto.getAdresa());\n\t\tizdavac.setId(dto.getId());\n\t\tizdavac.setNaziv(dto.getNaziv());\n\t\tizdavac.setTelefon(dto.getTelefon());\n\t\t\n\t\treturn izdavac;\n\t}", "public BlogDetailDTO (BlogEntity entity) \r\n {\r\n super(entity);\r\n if(entity.getCliente()!=null)cliente = new ClienteDTO(entity.getCliente());\r\n if(entity.getEvento()!=null)evento = new EventoDTO(entity.getEvento());\r\n \r\n }", "public Visualizador() {\n initComponents();\n inicializar();\n }", "public MovieCommentDTO() {\n\n\t}", "public ClienteDTO(int idTipoCliente, String nomCliente,\r\n\t\t\tString apePatCliente, String apeMatCliente, String fecNacCliente,\r\n\t\t\tString sexoCliente, String telefonoCliente, String celularCliente,\r\n\t\t\tString correoCliente, String numDocumento, String razSocCliente,\r\n\t\t\tString ciiuCliente, String cargoContacCliente) {\r\n\t\tsuper();\r\n\t\tthis.idTipoCliente = idTipoCliente;\r\n\t\tthis.nomCliente = nomCliente;\r\n\t\tthis.apePatCliente = apePatCliente;\r\n\t\tthis.apeMatCliente = apeMatCliente;\r\n\t\tthis.fecNacCliente = fecNacCliente;\r\n\t\tthis.sexoCliente = sexoCliente;\r\n\t\tthis.telefonoCliente = telefonoCliente;\r\n\t\tthis.celularCliente = celularCliente;\r\n\t\tthis.correoCliente = correoCliente;\r\n\t\tthis.numDocumento = numDocumento;\r\n\t\tthis.razSocCliente = razSocCliente;\r\n\t\tthis.ciiuCliente = ciiuCliente;\r\n\t\tthis.cargoContacCliente = cargoContacCliente;\r\n\t}", "public static Comparator<VisualizarEncontroDTO> comparator() {\r\n\t\t\r\n\t\treturn (d1,d2) -> d1.dataInicio.compareTo(d2.dataInicio);\r\n\t}", "public AtributoAsientoBean() {\n }", "private ControleurAcceuil(){ }", "@RequestMapping(\"/leggi-catalogo\")\n @ResponseBody\n \n public ListaProdottiDto inserisciContatto(@RequestBody leggiCatalogoCompleto dto) {\n Prodotto c = dto.getContatto();\n // inserisco il contatto su DB e ottengo il DB aggiornato\n List<Prodotto> lista = CatalogoService.inserisciArticolo();\n // creo un nuovo DTO per la risposta\n ListaProdottiDto risp = new ListaProdottiDto(lista);\n // ritorno il DTO\n return risp;\n }", "public ClienteDTO(String direcDirecCliente, String codubigeoDirecCliente,\r\n\t\t\tint idTipoEstablec) {\r\n\t\tsuper();\r\n\t\tthis.direcDirecCliente = direcDirecCliente;\r\n\t\tthis.codubigeoDirecCliente = codubigeoDirecCliente;\r\n\t\tthis.idTipoEstablec = idTipoEstablec;\r\n\t}", "@Override\n\tpublic List<EntidadeDominio> VisualizarInativos(EntidadeDominio entidade) {\n\t\tPreparedStatement pst = null;\n\t\tStringBuilder sql = new StringBuilder();\n\t\tsql.append(\"SELECT * FROM livros WHERE Status=?\");\n\t\ttry {\n\t\t\topenConnection();\t\n\t\n\t\tpst = connection.prepareStatement(sql.toString());\n\t\tpst.setString(1, \"INATIVADO\");\n\t\tResultSet rs = pst.executeQuery();\n\t\tList<EntidadeDominio> livros = new ArrayList<EntidadeDominio>();\n\t\t//SEGUNDA PARTE PUXAR CATEGORIAS\n\t\t\t\twhile (rs.next()) {\n\t\t\t\t\tStringBuilder sql2 = new StringBuilder();\n\t\t\t\t\t sql2.append(\"SELECT * FROM livCat JOIN Categoria ON livCat.id_categoria = Categoria.id_categoria WHERE Idlivro=?\");\n\t\t\t\t\t pst = null;\n\t\t\t\t\t pst = connection.prepareStatement(sql2.toString());\n\t\t\t\t\t pst.setInt(1, rs.getInt(\"id_livro\"));\n\t\t\t\t\tResultSet rs2 = pst.executeQuery();\n\t\t\t\t\tList<Categoria> cat = new ArrayList<Categoria>();\n\t\t\t\t\tCategoria c = new Categoria();\n\t\t\t\t\twhile(rs2.next()) {\n\t\t\t\t\t\tc.setNome(rs2.getString(\"CategoriaNome\"));\n\t\t\t\t\t\tc.setId(rs2.getInt(\"idCategoria\"));\n\t\t\t\t\t\tcat.add(c);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t//TERCEIRA PARTE PUXAR AUTOR\n\t\t\t\t\tStringBuilder sql3 = new StringBuilder();\n\t\t\t\t\t sql3.append(\"SELECT * FROM livro JOIN Autor ON livro.IdAutor = Autor.Id WHERE Idlivro=?\");\n\t\t\t\t\t pst = null;\n\t\t\t\t\t pst = connection.prepareStatement(sql3.toString());\n\t\t\t\t\t pst.setInt(1, rs.getInt(\"id_livro\"));\n\t\t\t\t\tResultSet rs3 = pst.executeQuery();\n\t\t\t\t\t\n\t\t\t\t//QUARTA PARTE PUXANDO A EDITORA\n\t\t\t\t\tStringBuilder sql4 = new StringBuilder();\n\t\t\t\t\t sql4.append(\"SELECT * FROM livro JOIN Editora ON livro.IdEditora = Editora.Id WHERE Idlivro=?\");\n\t\t\t\t\t pst = null;\n\t\t\t\t\t pst = connection.prepareStatement(sql4.toString());\n\t\t\t\t\t pst.setInt(1, rs.getInt(\"id_livro\"));\n\t\t\t\t\t ResultSet rs4 = pst.executeQuery();\n\t\t\t\t//QUINTA PARTE PUXANDO A PRECIFICACAO\n\t\t\t\t\t StringBuilder sql5 = new StringBuilder();\n\t\t\t\t\t sql5.append(\"SELECT * FROM livro JOIN Precificacao ON livro.IdPrecificacao = Precificacao.Id WHERE Idlivro=?\");\n\t\t\t\t\t pst = null;\n\t\t\t\t\t pst = connection.prepareStatement(sql5.toString());\n\t\t\t\t\t pst.setInt(1, rs.getInt(\"id_livro\"));\n\t\t\t\t\t ResultSet rs5 = pst.executeQuery();\t\n\t\t\t\t//SEXTA PARTE MONTANDO O RETORNO\n\t\t\t\t\t\tLivro liv = new Livro();\n\t\t\t\t\t\tEditora edit = new Editora();\n\t\t\t\t\t\tAutor autor = new Autor();\n\t\t\t\t\t\tPrecificacao preci = new Precificacao();\n\t\t\t\t\t\tedit.setId(rs4.getInt(\"IdEditora\"));\n\t\t\t\t\t\tedit.setNome(rs3.getString(\"AutorNome\"));\n\t\t\t\t\t\tliv.setId(rs3.getInt(\"IdAutor\"));\n\t\t\t\t\t\tliv.setEditora(edit);\n\t\t\t\t\t\tliv.setAutor(autor);\n\t\t\t\t\t\tliv.setTitulo(rs.getString(\"Titulo\"));\n\t\t\t\t\t\tliv.setSinopse(rs.getString(\"Sinopse\"));\n\t\t\t\t\t\tliv.dimensoes.setAltura(rs.getDouble(\"Altura\"));\n\t\t\t\t\t\tliv.dimensoes.setLargura(rs.getDouble(\"Largura\"));\n\t\t\t\t\t\tliv.dimensoes.setPeso(rs.getDouble(\"Peso\"));\n\t\t\t\t\t\tliv.dimensoes.setProfundidade(rs.getDouble(\"Profundidade\"));\n\t\t\t\t\t\tliv.setISBN(rs.getString(\"ISBN\"));\n\t\t\t\t\t\tliv.setIdcategoria(cat);\n\t\t\t\t\t\tliv.setNumeroPaginas(rs.getInt(\"NumeroDePaginas\"));\n\t\t\t\t\t\tpreci.setClassificacao(rs5.getString(\"PrecificacaoNome\"));\n\t\t\t\t\t\tpreci.setTipo(rs5.getInt(\"IdPrecificacao\"));\n\t\t\t\t\t\tliv.setPrecificacao(preci);\n\t\t\t\t\t\tliv.setEdicao(rs.getInt(\"Edicao\"));\n\t\t\t\t\t\tliv.setStatus(rs.getString(\"Status\"));\n\t\t\t\t\t\tint VerificarDuplicatas = 0;\n\t\t\t\t\t\tfor(EntidadeDominio teste : livros) // Verificar se o livro que será armazenado no resultado ja está na array\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(teste.getId() == liv.getId())\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tVerificarDuplicatas = 1;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(VerificarDuplicatas == 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\tlivros.add(liv);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t//java.sql.Date dtCadastroEmLong = rs.getDate(\"dt_cadastro\");\n\t\t\t//Date dtCadastro = new Date(dtCadastroEmLong.getTime());\t\t\t\t\n\t\t\t//p.setDtCadastro(dtCadastro);\n\t\t\t//produtos.add(p);\n\t\t}\n\t\treturn livros;\n\t} catch (SQLException e) {\n\t\te.printStackTrace();\n\t}\n\treturn null;\n\t}", "public ProjectPhaseDTO() {\r\n }", "public ConsultaMedica() {\n super();\n }", "public Veiculo() {\r\n\r\n }", "public VehicleTypeTO()\r\n {\r\n }", "public IfrViagem() {\n initComponents();\n v = new Viagem();\n criarViagem();\n\n Formatacao.formatarData(ftfDataSaida);\n Formatacao.formatarHora(ftfHoraSaida);\n Formatacao.formatarData(ftfDataRetorno);\n Formatacao.formatarHora(ftfHoraRetorno);\n Formatacao.formatarReal(ftfValorViagem);\n\n }", "public ConciliazionePerBeneficiarioSoggettoConverter() {\n\t\tsuper(ConciliazionePerBeneficiario.class, SiacRConciliazioneBeneficiario.class);\n\t}", "public ClassificationAttributesDTO()\n\t{\n\t\tsuper();\n\t}", "public PresentacionPartido(Object partido) {\n initComponents(partido);\n }", "@Override\r\n\tpublic void crearVehiculo() {\n\t\t\r\n\t}", "public SiacDMovgestTsDetTipo() {\n\t}", "FacturaEstadoDTO obtenerFacturaEstadoDTO(Long codigoFactura, ComprobanteVO comprobanteVO, Boolean crearFacturaEstado, Boolean tareaProgramada) throws SICException;", "public String limpiar()\r\n/* 143: */ {\r\n/* 144:171 */ crearDimensionContable();\r\n/* 145:172 */ String[] filtro = { \"indicadorValidarDimension\" + this.dimension, \"true\" };\r\n/* 146:173 */ this.listaCuentaContableBean.agregarFiltro(filtro);\r\n/* 147:174 */ return \"\";\r\n/* 148: */ }", "@Override\n\tpublic BaseFWDTOImpl toDTO() {\n\t\treturn null;\n\t}", "private void crearDimensionContable()\r\n/* 201: */ {\r\n/* 202:249 */ this.dimensionContable = new DimensionContable();\r\n/* 203:250 */ this.dimensionContable.setIdOrganizacion(AppUtil.getOrganizacion().getId());\r\n/* 204:251 */ this.dimensionContable.setIdSucursal(AppUtil.getSucursal().getId());\r\n/* 205:252 */ this.dimensionContable.setNumero(getDimension());\r\n/* 206:253 */ verificaDimension();\r\n/* 207: */ }", "public TParametrosVOImpl() {\r\n }", "public PosicionDTO consultarInformacionSatelite(){\n logger.debug(\"MensajeService::PosicionDTO()\");\n PosicionDTO posicionDTO = new PosicionDTO();\n CoordenadasDTO posiciones = asignarCoordenadas();\n if(posiciones != null){\n posicionDTO.setCoordenadasDTO(posiciones);\n List<String[]> mensajeSatelites = obtenerMensajes(listaNave);\n String mensaje = organizarMensaje(mensajeSatelites);\n posicionDTO.setMensaje(mensaje);\n return posicionDTO;\n }\n return posicionDTO;\n }", "public Venda() {\n }", "@Deprecated\n CreatePdvDto(){}", "public DTOGenerico(String nombreDTO, String[][] parametros) {\n this.nombreDTO = nombreDTO;\n this.parametros = parametros;\n }", "public SrvINFONEGOCIO(AgregarInfoNegocio view) {//C.P.M Tendremos un constructor con la vista de agregar informacion de negocio\r\n this.vista = view;//C.P.M Se la agregamos a la variable para tener acceso a la vista \r\n }", "public Movimiento(MovimientoBean movimientoBean) {\r\n\r\n\t\t// Cantidad de Movimiento\r\n\t\tthis.cantidadMovimiento = movimientoBean.getCantidadMovimiento();\r\n\t\t// Estado Movimiento\r\n\t\tEstadomovimiento estadomovimiento = new Estadomovimiento();\r\n\t\testadomovimiento.setPkCodigoEstadomovimiento(movimientoBean.getEstadomovimiento().getCodigo());\r\n\t\tthis.estadomovimiento = estadomovimiento;\r\n\t\t// Factor Volquete Movimiento\r\n\t\tthis.factorVolqueteMovimiento = movimientoBean.getFactorVolqueteMovimiento();\r\n\t\t// Fecha Movimiento\r\n\t\tthis.fechaMovimiento = movimientoBean.getFechaMovimiento();\r\n\t\t// Linea Negocio\r\n\t\tLineanegocio lineanegocio = new Lineanegocio();\r\n\t\tlineanegocio.setPkCodigoLineanegocio(movimientoBean.getLineanegocio().getCodigo());\r\n\t\tthis.lineanegocio = lineanegocio;\r\n\t\t// Medio Almacenamiento\r\n\t\tif (movimientoBean.getMedioalmacenamiento() != null && movimientoBean.getMedioalmacenamiento().getCodigo() != null) {\r\n\t\t\tMedioalmacenamiento medioalmacenamiento = new Medioalmacenamiento();\r\n\t\t\tmedioalmacenamiento.setPkCodigoMedioalmacenamiento(movimientoBean.getMedioalmacenamiento().getCodigo());\r\n\t\t\tthis.medioalmacenamiento = medioalmacenamiento;\r\n\t\t}\r\n\t\t// Numero Viajes Movimiento\r\n\t\tthis.numeroViajesMovimiento = movimientoBean.getNumeroViajesMovimiento();\r\n\t\t// Producto\r\n\t\tProducto producto = new Producto();\r\n\t\tproducto.setPkCodigoProducto(movimientoBean.getProducto().getCodigo());\r\n\t\tthis.producto = producto;\r\n\t\t// Tipo Movimiento\r\n\t\tTipomovimiento tipomovimiento = new Tipomovimiento();\r\n\t\ttipomovimiento.setPkCodigoTipomovimiento(movimientoBean.getTipomovimiento().getCodigo());\r\n\t\tthis.tipomovimiento = tipomovimiento;\r\n\t\t// Ubicacion Origen\r\n\t\tif (movimientoBean.getUbicacionByFkCodigoUbicacionOrigen() != null\r\n\t\t\t\t&& movimientoBean.getUbicacionByFkCodigoUbicacionOrigen().getCodigo() != null) {\r\n\t\t\tUbicacion ubicacionOrigen = new Ubicacion();\r\n\t\t\tubicacionOrigen.setPkCodigoUbicacion(movimientoBean.getUbicacionByFkCodigoUbicacionOrigen().getCodigo());\r\n\t\t\tthis.ubicacionByFkCodigoUbicacionOrigen = ubicacionOrigen;\r\n\t\t}\r\n\t\t// Ubicacion Destino\r\n\t\tif (movimientoBean.getUbicacionByFkCodigoUbicacionDestino() != null\r\n\t\t\t\t&& movimientoBean.getUbicacionByFkCodigoUbicacionDestino().getCodigo() != null) {\r\n\t\t\tUbicacion ubicacionDestino = new Ubicacion();\r\n\t\t\tubicacionDestino.setPkCodigoUbicacion(movimientoBean.getUbicacionByFkCodigoUbicacionDestino().getCodigo());\r\n\t\t\tthis.ubicacionByFkCodigoUbicacionDestino = ubicacionDestino;\r\n\t\t}\r\n\t\t// Unidad Medida\r\n\t\tUnidadmedida unidadmedida = new Unidadmedida();\r\n\t\tunidadmedida.setPkCodigoUnidadMedida(movimientoBean.getUnidadmedida().getCodigo());\r\n\t\tthis.unidadmedida = unidadmedida;\r\n\t\tthis.origenMovimiento = \"\";\r\n\t\tthis.factorHumedad = 0d;\r\n\t\tthis.cantidadMovimientoHumedad = movimientoBean.getCantidadMovimiento();\r\n\t\tthis.codigoSapproductoMovimiento = movimientoBean.getCodigoSapproducto();\r\n\r\n\t}", "public CategoriaDTO(Categoria categoriaObj) {\n\t\tid = categoriaObj.getId();\n\t\tnomeCategoria = categoriaObj.getNomeCategoria();\n\t}", "public VistaDetallemensaje() {\n // You can initialise any data required for the connected UI components here.\n }", "public PrestadorDTO(PrestadorEntity prestadorEntity)\r\n {\r\n if(prestadorEntity != null)\r\n {\r\n this.id = prestadorEntity.getId();\r\n this.nombre = prestadorEntity.getNombre();\r\n this.cedula = prestadorEntity.getCedula();\r\n this.contrasena = prestadorEntity.getContrasena();\r\n this.correo = prestadorEntity.getCorreo();\r\n this.hojaDeVida=new HojaDeVidaDTO(prestadorEntity.getHojaDeVida());\r\n }\r\n }", "public VoronoiVisualization()\n\t \t{\n\t\t super();\n\t \t}", "public Servicio(String nombre, String fechaEstimada, double precioBrutoUnidad, String facilitador, String direccion, boolean enAreaMetropolitana) {\r\n super(nombre, true, fechaEstimada, precioBrutoUnidad);\r\n this.facilitador = facilitador;\r\n this.direccion = direccion;\r\n this.enAreaMetropolitana = enAreaMetropolitana;\r\n }", "public ViewDetallesPagos () {\r\n\r\n }", "public BoletoCodigoDeBarrasDV() {\n\n\t\tsuper();\n\t}", "public ContoContoPadreConverterToDelete() {\n\t\tsuper(Conto.class, SiacTPdceConto.class);\n\t}", "public RatingShowDTO(RatingShowEntity entity) {\r\n this.idRatingShow = entity.getIdRatingShow();\r\n this.idShow = entity.getIdShow();\r\n this.rating = entity.getRating();\r\n this.comentario = entity.getComentario();\r\n this.idFecHo = entity.getIdFecHo();\r\n }", "public Cotizaciones() throws DatatypeConfigurationException {\r\n initComponents();\r\n this.jDateChooser1.setDateFormatString(\"yyyy-MM-dd\");\r\n this.jDateChooser2.setDateFormatString(\"yyyy-MM-dd\");\r\n \r\n //Escondo la columna que tiene el objeto guardado.\r\n jTable1.getColumnModel().getColumn(4).setMinWidth(0);\r\n jTable1.getColumnModel().getColumn(4).setMaxWidth(0);\r\n jTable1.getColumnModel().getColumn(4).setWidth(0);\r\n DefaultTableCellRenderer Alinear = new DefaultTableCellRenderer();\r\n Alinear.setHorizontalAlignment(SwingConstants.LEFT);\r\n \r\n jTable1.getColumnModel().getColumn(0).setCellRenderer(Alinear);\r\n jTable1.getColumnModel().getColumn(1).setCellRenderer(Alinear);\r\n jTable1.getColumnModel().getColumn(2).setCellRenderer(Alinear);\r\n jTable1.getColumnModel().getColumn(3).setCellRenderer(Alinear);\r\n \r\n }", "public LayerDto() {}", "public LecturaPorEvento() \r\n {\r\n }", "public ServicioDimensionContable getServicioDimensionContableBean()\r\n/* 186: */ {\r\n/* 187:226 */ return this.servicioDimensionContable;\r\n/* 188: */ }", "public AnularReserva() {\n initComponents();\n setClosable(true);\n setMaximizable(true);\n setResizable(true);\n setIconifiable(true);\n String Titulos[]={\"IDRESERVA\",\"TIPO\",\"HORA\",\"ORIGEN\",\"DESTINO\",\"COSTO\",\"VEHICULO\"};\n datostabla.setColumnIdentifiers(Titulos);\n tbdatos.setModel(datostabla);\n //tbdatos.getColumnModel().getColumn(0).setMaxWidth(0);\n //tbdatos.getColumnModel().getColumn(0).setMinWidth(0);\n //tbdatos.getColumnModel().getColumn(0).setPreferredWidth(0);\n buscar(\"\");\n }", "public MorteSubita() {\n }", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n\tpublic Ingrediente builderToModel(IngredienteDto dto) {\n\t\tIngrediente ingrediente = new Ingrediente();\n\t\tingrediente.setId(dto.getId());\n\t\tingrediente.setNombre(dto.getNombre());\n\t\t\n\t\treturn ingrediente;\n\t}" ]
[ "0.7308356", "0.67513055", "0.66660386", "0.6629481", "0.64716923", "0.63550985", "0.633731", "0.6328312", "0.62644947", "0.61745733", "0.6108937", "0.60933", "0.59819365", "0.5937772", "0.59203434", "0.5920256", "0.5783212", "0.5780648", "0.57555014", "0.574266", "0.5734145", "0.56770295", "0.5673924", "0.5664551", "0.5654734", "0.5642163", "0.56159693", "0.5596593", "0.55809575", "0.55759376", "0.55637485", "0.5553697", "0.55403113", "0.55266064", "0.5516562", "0.5515147", "0.5514646", "0.5513701", "0.55017495", "0.549596", "0.5490922", "0.5488891", "0.546529", "0.5459382", "0.54591364", "0.5455017", "0.5452499", "0.5443104", "0.54403156", "0.5434515", "0.5434506", "0.5432462", "0.54214215", "0.5419778", "0.5395527", "0.53858083", "0.5385802", "0.53694606", "0.5367377", "0.53663737", "0.53657746", "0.5362789", "0.5361403", "0.5359671", "0.535878", "0.5356184", "0.5325929", "0.53224117", "0.5317177", "0.53127223", "0.53071094", "0.5287246", "0.5286616", "0.52788335", "0.52785414", "0.52769554", "0.52659667", "0.525498", "0.52443635", "0.5227915", "0.52255213", "0.5225397", "0.5221831", "0.5219757", "0.52189904", "0.5216316", "0.5212434", "0.52114487", "0.5209914", "0.52030885", "0.519604", "0.5192105", "0.5190278", "0.51902413", "0.5183828", "0.51757026", "0.5172555", "0.51719236", "0.5170424", "0.516633" ]
0.64699525
5
Funcao que constroi a mensagem para ser visualizada pelo utilizador
@Override public String toString() { StringBuilder sb = new StringBuilder(); String dataInicioFormatada = this.dataInicio; sb.append(this.designacaoTorneio + " | "); sb.append(dataInicioFormatada + " | "); sb.append(this.jogadorAdversario.getNome() + "\t| "); sb.append(this.qtdEncontros + " | "); double diferenca = jogadorCorrente.getPontos() - this.jogadorAdversario.getPontos(); if (diferenca < 0.0) sb.append((Math.round(diferenca * 100) / 100.0) + "\n"); else sb.append("+" + (Math.round(diferenca * 100) / 100.0)); if (sb.length() == 0) sb.append(VisualizarEncontroDTO.NAO_EXISTEM_CONFRONTOS); return sb.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void displayMsg() {\n\t}", "private void exibe_mensagem(String msg){\n Toast.makeText(getApplicationContext(), msg, Toast.LENGTH_LONG).show();\n }", "int displayNotification(Message message);", "public void showMessage(){\n\t jsfMessageHelper.addInfo(\"Mesaj:\", (messageTxt==null?\"?\":messageTxt));\r\n\t}", "private void showErrorMessage(String msgRes)\r\n {\r\n applicationContext.getGUISynchronizer().asyncInvoke(\r\n createErrorRunnable(msgRes));\r\n }", "public void displayGraphErrMsg(String message) {\r\n \t\t// per ora faccio printare nell'output, assolutamente provvisorio.\r\n \t\tSystem.out.println(\"message = \" + message);\r\n \t}", "public void getMessage() {\r\n // use JOptionPane to have a pop up box informing user of the invalid token\r\n JOptionPane.showMessageDialog(null, \"Invalid Token \" + invalidToken);\r\n }", "public abstract String mensajeCrearCelula();", "void showError(String message);", "void showError(String message);", "public void showMessage(String message);", "void warningBox(String title, String message);", "void showSyncFailMessage();", "void prosegui(String messaggio);", "String getMessage();", "String getMessage();", "String getMessage();", "public String createErrorMessage(CommandSender sender, MCommand command);", "private void showMessage(String string) {\n\n }", "public void DisplayMessage(String massage);", "public void exibirMsgs() {\n StringBuilder s = new StringBuilder();\n for (MensagemSistema msgSis : mensagens) {\n switch (msgSis.getTipo()) {\n case ConstantsControl.MSG_ALERT:\n s.append(\"[Alerta]: \\n\").append(msgSis.getMsg()).append(\"\\n\");\n break;\n case ConstantsControl.MSG_INFO:\n s.append(\"[Informação]: \\n\").append(msgSis.getMsg()).append(\"\\n\");\n break;\n case ConstantsControl.MSG_ERRO:\n s.append(\"[Erro]: \\n\").append(msgSis.getMsg()).append(\"\\n\");\n break;\n case ConstantsControl.MSG_SUCESSO:\n s.append(\"[Sucesso]: \\n\").append(msgSis.getMsg()).append(\"\\n\");\n break;\n }\n\n }\n JMessageUtil.showMensagensSistema(new javax.swing.JFrame(), s.toString());\n mensagens.clear();\n }", "public void exibeMensagem(String mensagem) {\n JOptionPane.showMessageDialog(null, mensagem);\n }", "void displayMessage(String message);", "void displayErrorMessage(String message);", "public void getMessage() {\n\r\n\t}", "private void displayMessage(String message) {\n }", "@Override\r\n\t\tpublic void showMessage(String message) {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void showMessage(String message) {\n\n\t}", "private void mostrarMensagemDeErro(String informacao) {\n\t\tJOptionPane.showMessageDialog(null, informacao, \"Aten��o\",\n\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\n\t}", "public void toastError(String mensagem){\n\n Context context = getApplicationContext();\n CharSequence text = mensagem;\n int duration = Toast.LENGTH_LONG;\n\n Toast toast = Toast.makeText(context, text, duration);\n\n View view = toast.getView();\n\n //Obtém o plano de fundo oval real do Toast e, em seguida, define o filtro de cores\n view.getBackground().setColorFilter(getResources().getColor(R.color.colorError), PorterDuff.Mode.SRC_IN);\n\n //Obtém o TextView do Toast para que ele possa ser editado\n TextView newText = view.findViewById(android.R.id.message);\n newText.setShadowLayer(0, 0, 0, Color.TRANSPARENT);\n newText.setTextColor(getResources().getColor(R.color.colorWhite));\n\n toast.show();\n\n }", "static void giveInfo(String message){\n JOptionPane.showMessageDialog(null, message);\n }", "@Override\n public void displayMessage(int status, String msg) {\n if (status == Constants.STATUS_OK) {\n dispose();\n } else {\n JOptionPane.showMessageDialog(null, msg, \"Lỗi\", JOptionPane.ERROR_MESSAGE);\n }\n }", "@Override\n public void displayMessage(int status, String msg) {\n if (status == Constants.STATUS_OK) {\n dispose();\n } else {\n JOptionPane.showMessageDialog(null, msg, \"Lỗi\", JOptionPane.ERROR_MESSAGE);\n }\n }", "static void displayMessage() {\n\n System.out.println(\"\\nA total of \" + graphVisited.size() + \" vertices visited\");\n\n System.out.println(\"Found \" + silhouetteAnalyzer(numberOfVertices)\n + \" silhouettes\");\n }", "public void displayMessage(String m){\n\t\tJOptionPane.showMessageDialog(null, m, \"Perfect !\", JOptionPane.INFORMATION_MESSAGE);\n\t}", "public void mensagemErroCadastro() {\n\t\tJOptionPane.showMessageDialog(null, \"Erro!\\nVerifique se todos os campos estão preenchidos.\"\n\t\t\t\t+ \"\\nVerifique se os dados em formato numérico são números.\"\n\t\t\t\t+ \"\\nVerifique se as datas foram inseridas corretamente.\" + \"\\nNão use vírgulas ','. Use pontos!\", null,\n\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t}", "void showSuccess(String message);", "void showErrorMsg(String string);", "void showAlert(String message);", "public void msgErreur(){\n \n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Entrée invalide\");\n alert.setHeaderText(\"Corriger les entrées invalides.\");\n alert.setContentText(\"Les informations entrées sont erronnées\");\n\n alert.showAndWait();\n \n\n}", "public void afficherMessage();", "protected abstract String getMessage();", "public static void updateMessageBox() {\n\t}", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "private void success() {\n showMessage(\"Congratulations!\", \"success\");\n }", "public abstract String getMessage();", "public String getMessage();", "public String getMessage();", "public String getMessage();", "public String getMessage();", "public String getMessage();", "public String getMessage();", "public String getMessage();", "public void showMsg(String str);", "public abstract void displayMsgBeforeRun();", "private void showFinishMsg() {}", "public void message() {\n JOptionPane.showMessageDialog(null,\n \"Task was deleted successfully.\",\n \"Message\", JOptionPane.INFORMATION_MESSAGE);\n }", "public static void mensagemRealizarCadastro() {\n\t\tJOptionPane.showMessageDialog(null, \"Favor clique em atualizar para re-listar e selecionar o novo item recem cadastrado.\", \"Informação\", JOptionPane.INFORMATION_MESSAGE, new ImageIcon(Toolkit.getDefaultToolkit().getImage(CadastroQuartos.class.getResource(\"/Imagens/Informacao32.png\"))));\n\t}", "public void show(Object errorMessage){\n\t\tSystem.out.println(\"Woops, something bad happened\");\n\t\tSystem.out.println(errorMessage);\n\t}", "public static void message() {\r\n\t\t\r\n\t\tJOptionPane.showMessageDialog(null, \"Thanks for your participation\" + \"\\nHave a great day!\");\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n\tpublic void msgAtFrige() {\n\t\t\n\t}", "private void display(String msg) {\n cg.append(msg + \"\\n\");\n }", "public displayMessage() {}", "public void alertInvalid(){\n Alert alert = new Alert(Alert.AlertType.WARNING);\n alert.setTitle(\"Herencia invalida\");\n alert.setHeaderText(\"Un hijo no puede ser hijo de su padre o un padre no puede ser padre de su padre,\"\n + \"No puede crear herencia con entidades debiles.\");\n alert.showAndWait();\n }", "@Override\r\n\tpublic void falar(String mensagem) {\r\n\t\tSystem.out.println(\"[ \"+getNome()+\" ] \"+mensagem);\r\n\t}", "public void showErrorMessage(){\n Toast.makeText(context, R.string.generic_error_message, Toast.LENGTH_LONG).show();\n }", "public void toastSuccess(String mensagem){\n\n Context context = getApplicationContext();\n CharSequence text = mensagem;\n int duration = Toast.LENGTH_LONG;\n\n Toast toast = Toast.makeText(context, text, duration);\n\n View view = toast.getView();\n\n //Obtém o plano de fundo oval real do Toast e, em seguida, define o filtro de cores\n view.getBackground().setColorFilter(getResources().getColor(R.color.colorSuccess), PorterDuff.Mode.SRC_IN);\n\n //Obtém o TextView do Toast para que ele possa ser editado\n TextView newText = view.findViewById(android.R.id.message);\n newText.setShadowLayer(0, 0, 0, Color.TRANSPARENT);\n newText.setTextColor(getResources().getColor(R.color.colorWhite));\n\n toast.show();\n\n }", "@Override\n public String getMessage(){\n \n }", "public void showMessage(int x, int y, String message) {\n }", "public void showErrorMessage(String message){\n System.out.println(LocalTime.now() + \": Error: \" + message);\n }", "@Override\n public String getMessage() {\n return \" ** I'm a friendly ENEMY! **\";\n }", "void showDataGeneratedMsg();", "private void mensajeGrow(String mensaje, EntidadDTO entidadDTO) {\r\n\t\tFacesMessage msg = new FacesMessage(mensaje, entidadDTO.getNit() + \" \" + entidadDTO.getNombre());\r\n\t\tFacesContext.getCurrentInstance().addMessage(null, msg);\r\n\t}", "void drawError(String message);", "public String getScreenMessage();", "public int getMes();", "@Override\r\n\tpublic void getMessage() {\n\t\tSystem.out.println(\"getMessage() 출력...\");\r\n\t}", "@Override\n\t\tpublic void displayMessage() {\n\t\t\tsuper.displayMessage();\n\t\t}", "public void showMessage(String message) \r\n\t\t{\t\t\t\r\n\t\t}", "public void ShowMessage() {\n\t\tthis.ShowMessage(null);\n\t\t\n\t\t/* Exit function. */\n\t\treturn;\n\t}", "@Override\n\tpublic void showError(String message) {\n\t\t\n\t}", "void showError(String errorMessage);", "java.lang.String getMsg();", "String getStatusMessage();", "void displayMessage(){\r\n Toast toast = Toast.makeText(this, getString(R.string.congratz_message, String.valueOf(playerScore)), Toast.LENGTH_SHORT);\r\n toast.show();\r\n }" ]
[ "0.6936928", "0.67331266", "0.66823345", "0.6653135", "0.6611584", "0.66060984", "0.6591159", "0.6578015", "0.6556274", "0.6556274", "0.65511423", "0.65334654", "0.65213805", "0.6493742", "0.64862543", "0.64862543", "0.64862543", "0.646923", "0.6440215", "0.6432407", "0.6423045", "0.6417844", "0.64164114", "0.6411345", "0.6403177", "0.63822985", "0.63749874", "0.6368451", "0.6354637", "0.6344267", "0.63411856", "0.6333184", "0.6333184", "0.6332163", "0.6321617", "0.6313906", "0.63063926", "0.63048685", "0.6292911", "0.62823653", "0.62784773", "0.627578", "0.62724257", "0.62696564", "0.62696564", "0.62696564", "0.62696564", "0.62696564", "0.62696564", "0.62696564", "0.62696564", "0.62696564", "0.62696564", "0.62696564", "0.62696564", "0.62696564", "0.62696564", "0.62696564", "0.62696564", "0.62696564", "0.6268252", "0.6260789", "0.62577564", "0.62577564", "0.62577564", "0.62577564", "0.62577564", "0.62577564", "0.62577564", "0.62330747", "0.6229815", "0.62252206", "0.62208563", "0.62154377", "0.62145036", "0.61996394", "0.61992234", "0.6198345", "0.61934924", "0.619096", "0.6181084", "0.6176739", "0.61726093", "0.61716557", "0.61692977", "0.6163448", "0.61541927", "0.61458474", "0.6144565", "0.6141357", "0.614053", "0.61401623", "0.6136433", "0.6129918", "0.6106969", "0.60899043", "0.60880584", "0.6077076", "0.6072325", "0.60713124", "0.60692126" ]
0.0
-1
Realiza a comparacao entre dois VisualizarEncontroDTO. O fator decisivo corresponde ah data de inicio de um torneio
public static Comparator<VisualizarEncontroDTO> comparator() { return (d1,d2) -> d1.dataInicio.compareTo(d2.dataInicio); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic int compareTo(TaxaConhecimentoDto o) {\n\t\treturn valor.compareTo(o.getValor());\n\t}", "@Override\n\tpublic List<EntidadeDominio> VisualizarInativos(EntidadeDominio entidade) {\n\t\tPreparedStatement pst = null;\n\t\tStringBuilder sql = new StringBuilder();\n\t\tsql.append(\"SELECT * FROM livros WHERE Status=?\");\n\t\ttry {\n\t\t\topenConnection();\t\n\t\n\t\tpst = connection.prepareStatement(sql.toString());\n\t\tpst.setString(1, \"INATIVADO\");\n\t\tResultSet rs = pst.executeQuery();\n\t\tList<EntidadeDominio> livros = new ArrayList<EntidadeDominio>();\n\t\t//SEGUNDA PARTE PUXAR CATEGORIAS\n\t\t\t\twhile (rs.next()) {\n\t\t\t\t\tStringBuilder sql2 = new StringBuilder();\n\t\t\t\t\t sql2.append(\"SELECT * FROM livCat JOIN Categoria ON livCat.id_categoria = Categoria.id_categoria WHERE Idlivro=?\");\n\t\t\t\t\t pst = null;\n\t\t\t\t\t pst = connection.prepareStatement(sql2.toString());\n\t\t\t\t\t pst.setInt(1, rs.getInt(\"id_livro\"));\n\t\t\t\t\tResultSet rs2 = pst.executeQuery();\n\t\t\t\t\tList<Categoria> cat = new ArrayList<Categoria>();\n\t\t\t\t\tCategoria c = new Categoria();\n\t\t\t\t\twhile(rs2.next()) {\n\t\t\t\t\t\tc.setNome(rs2.getString(\"CategoriaNome\"));\n\t\t\t\t\t\tc.setId(rs2.getInt(\"idCategoria\"));\n\t\t\t\t\t\tcat.add(c);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t//TERCEIRA PARTE PUXAR AUTOR\n\t\t\t\t\tStringBuilder sql3 = new StringBuilder();\n\t\t\t\t\t sql3.append(\"SELECT * FROM livro JOIN Autor ON livro.IdAutor = Autor.Id WHERE Idlivro=?\");\n\t\t\t\t\t pst = null;\n\t\t\t\t\t pst = connection.prepareStatement(sql3.toString());\n\t\t\t\t\t pst.setInt(1, rs.getInt(\"id_livro\"));\n\t\t\t\t\tResultSet rs3 = pst.executeQuery();\n\t\t\t\t\t\n\t\t\t\t//QUARTA PARTE PUXANDO A EDITORA\n\t\t\t\t\tStringBuilder sql4 = new StringBuilder();\n\t\t\t\t\t sql4.append(\"SELECT * FROM livro JOIN Editora ON livro.IdEditora = Editora.Id WHERE Idlivro=?\");\n\t\t\t\t\t pst = null;\n\t\t\t\t\t pst = connection.prepareStatement(sql4.toString());\n\t\t\t\t\t pst.setInt(1, rs.getInt(\"id_livro\"));\n\t\t\t\t\t ResultSet rs4 = pst.executeQuery();\n\t\t\t\t//QUINTA PARTE PUXANDO A PRECIFICACAO\n\t\t\t\t\t StringBuilder sql5 = new StringBuilder();\n\t\t\t\t\t sql5.append(\"SELECT * FROM livro JOIN Precificacao ON livro.IdPrecificacao = Precificacao.Id WHERE Idlivro=?\");\n\t\t\t\t\t pst = null;\n\t\t\t\t\t pst = connection.prepareStatement(sql5.toString());\n\t\t\t\t\t pst.setInt(1, rs.getInt(\"id_livro\"));\n\t\t\t\t\t ResultSet rs5 = pst.executeQuery();\t\n\t\t\t\t//SEXTA PARTE MONTANDO O RETORNO\n\t\t\t\t\t\tLivro liv = new Livro();\n\t\t\t\t\t\tEditora edit = new Editora();\n\t\t\t\t\t\tAutor autor = new Autor();\n\t\t\t\t\t\tPrecificacao preci = new Precificacao();\n\t\t\t\t\t\tedit.setId(rs4.getInt(\"IdEditora\"));\n\t\t\t\t\t\tedit.setNome(rs3.getString(\"AutorNome\"));\n\t\t\t\t\t\tliv.setId(rs3.getInt(\"IdAutor\"));\n\t\t\t\t\t\tliv.setEditora(edit);\n\t\t\t\t\t\tliv.setAutor(autor);\n\t\t\t\t\t\tliv.setTitulo(rs.getString(\"Titulo\"));\n\t\t\t\t\t\tliv.setSinopse(rs.getString(\"Sinopse\"));\n\t\t\t\t\t\tliv.dimensoes.setAltura(rs.getDouble(\"Altura\"));\n\t\t\t\t\t\tliv.dimensoes.setLargura(rs.getDouble(\"Largura\"));\n\t\t\t\t\t\tliv.dimensoes.setPeso(rs.getDouble(\"Peso\"));\n\t\t\t\t\t\tliv.dimensoes.setProfundidade(rs.getDouble(\"Profundidade\"));\n\t\t\t\t\t\tliv.setISBN(rs.getString(\"ISBN\"));\n\t\t\t\t\t\tliv.setIdcategoria(cat);\n\t\t\t\t\t\tliv.setNumeroPaginas(rs.getInt(\"NumeroDePaginas\"));\n\t\t\t\t\t\tpreci.setClassificacao(rs5.getString(\"PrecificacaoNome\"));\n\t\t\t\t\t\tpreci.setTipo(rs5.getInt(\"IdPrecificacao\"));\n\t\t\t\t\t\tliv.setPrecificacao(preci);\n\t\t\t\t\t\tliv.setEdicao(rs.getInt(\"Edicao\"));\n\t\t\t\t\t\tliv.setStatus(rs.getString(\"Status\"));\n\t\t\t\t\t\tint VerificarDuplicatas = 0;\n\t\t\t\t\t\tfor(EntidadeDominio teste : livros) // Verificar se o livro que será armazenado no resultado ja está na array\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(teste.getId() == liv.getId())\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tVerificarDuplicatas = 1;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(VerificarDuplicatas == 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\tlivros.add(liv);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t//java.sql.Date dtCadastroEmLong = rs.getDate(\"dt_cadastro\");\n\t\t\t//Date dtCadastro = new Date(dtCadastroEmLong.getTime());\t\t\t\t\n\t\t\t//p.setDtCadastro(dtCadastro);\n\t\t\t//produtos.add(p);\n\t\t}\n\t\treturn livros;\n\t} catch (SQLException e) {\n\t\te.printStackTrace();\n\t}\n\treturn null;\n\t}", "@Override\n\tpublic List<EntidadeDominio> Visualizar(EntidadeDominio entidade) {\n\t\tLivro livro = (Livro)entidade;\n\t\tPreparedStatement pst = null;\n\t\tPreparedStatement pst2 = null;\n\t\tPreparedStatement pst3 = null;\n\t\tPreparedStatement pst4 = null;\n\t\tPreparedStatement pst5 = null;\n\t\tStringBuilder sql = new StringBuilder();\n\t\tsql.append(\"SELECT * FROM livro WHERE idlivro=?\");\n\t\ttry {\n\t\t\topenConnection();\t\n\t\n\t\tpst = connection.prepareStatement(sql.toString());\n\t\tpst.setInt(1, livro.getId());\n\t\tResultSet rs = pst.executeQuery();\n\t\tList<EntidadeDominio> livros = new ArrayList<EntidadeDominio>();\n\t\tif(rs.next()) {\n\t\t\tlivro.setTitulo(rs.getString(\"livTitulo\"));\n\t\t\tlivro.setSinopse(rs.getString(\"livSinopse\"));\n\t\t\tlivro.setCodigoBarras(rs.getString(\"livCodigoDeBarras\"));\n\t\t\tDimensoes dimensao = new Dimensoes();\n\t\t\tdouble Altura = rs.getDouble(\"livAltura\");\n\t\t\tdouble Largura = rs.getDouble(\"livLargura\");\n\t\t\tdouble Peso = rs.getDouble(\"livPeso\");\n\t\t\tdouble profundidade = rs.getDouble(\"livProfundidade\");\n\t\t\tdimensao.setAltura(Altura);\n\t\t\tdimensao.setLargura(Largura);\n\t\t\tdimensao.setPeso(Peso);\n\t\t\tdimensao.setProfundidade(profundidade);\n\t\t\tlivro.setDimensoes(dimensao);\n\t\t\tlivro.setISBN(rs.getString(\"livISBN\"));\n\t\t\tlivro.setNumeroPaginas(rs.getInt(\"livNumeroPaginas\"));\n\t\t\tlivro.setEdicao(rs.getInt(\"livEdicao\"));\n\t\t\tlivro.setStatus(rs.getString(\"livStatus\"));\n\t\t\tlivro.setAno(rs.getInt(\"livAno\"));\n\t\t}\n\t\t\tStringBuilder sql2 = new StringBuilder();\n\t\t\t sql2.append(\"SELECT * FROM livcat JOIN categoria ON livcat.id_categoria= categoria.id_Categoria WHERE livcat.id_livro=?\");\n\t\t\t pst2 = connection.prepareStatement(sql2.toString());\n\t\t\t pst2.setInt(1, livro.getId());\n\t\t\tResultSet rs2 = pst2.executeQuery();\n\t\t\tList<Categoria> cat = new ArrayList<Categoria>();\n\t\t\tCategoria c = new Categoria();\n\t\t\tif(rs2.next()) {\n\t\t\t\tc.setNome(rs2.getString(\"categoria\"));\n\t\t\t\tc.setId(rs2.getInt(\"id_Categoria\"));\n\t\t\t\tcat.add(c);\n\t\t\t}\n\t\t\t\n\t\t//TERCEIRA PARTE PUXAR AUTOR\n\t\t\tStringBuilder sql3 = new StringBuilder();\n\t\t\t sql3.append(\"SELECT * FROM livro JOIN autor ON livro.livIdAutor = autor.id_Autor WHERE livro.idlivro=?\");\n\t\t\t pst3 = connection.prepareStatement(sql3.toString());\n\t\t\t pst3.setInt(1, rs.getInt(\"idlivro\"));\n\t\t\tResultSet rs3 = pst3.executeQuery();\n\t\t\twhile(rs3.next())\n\t\t\t{\n\t\t\t\tAutor autor = new Autor();\n\t\t\t\tautor.setId(rs3.getInt(\"id_Autor\"));\n\t\t\t\tautor.setNome(rs3.getString(\"autor\"));\n\t\t\t\tlivro.setAutor(autor);\n\t\t\t\t\n\t\t\t}\n\t\t//QUARTA PARTE PUXANDO A EDITORA\n\t\t\tStringBuilder sql4 = new StringBuilder();\n\t\t\t sql4.append(\"SELECT * FROM livro JOIN editora ON livro.livIdEditora = editora.id_editora WHERE livro.idlivro=?\");\n\t\t\t pst4 = connection.prepareStatement(sql4.toString());\n\t\t\t pst4.setInt(1, rs.getInt(\"idlivro\"));\n\t\t\t ResultSet rs4 = pst4.executeQuery();\n\t\t\t if(rs4.next())\n\t\t\t {\n\t\t\t\t Editora edit = new Editora();\n\t\t\t\t edit.setId(rs4.getInt(\"id_editora\"));\n\t\t\t\t edit.setNome(rs4.getString(\"editora\"));\n\t\t\t\t livro.setEditora(edit);\n\t\t\t }\n\t\t//QUINTA PARTE PUXANDO A PRECIFICACAO\n\t\t\t StringBuilder sql5 = new StringBuilder();\n\t\t\t sql5.append(\"SELECT * FROM livro JOIN precificacao ON livro.livIdPrecificacao = precificacao.id_precificacao WHERE idlivro=?\");\n\t\t\t pst5 = null;\n\t\t\t pst5 = connection.prepareStatement(sql5.toString());\n\t\t\t pst5.setInt(1, rs.getInt(\"idlivro\"));\n\t\t\t ResultSet rs5 = pst5.executeQuery();\n\t\t\t if(rs5.next())\n\t\t\t {\n\t\t\t\t Precificacao preci = new Precificacao();\n\t\t\t\t preci.setClassificacao(rs5.getString(\"precificacao\"));\n\t\t\t\t preci.setTipo(rs5.getInt(\"id_precificacao\"));\n\t\t\t\t livro.setPrecificacao(preci);\n\t\t\t }\n\t\t//SEXTA PARTE MONTANDO O RETORNO\t\t\t\n\t\t\t\tlivro.setIdcategoria(cat);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tlivros.add(livro);\n\t\t\t\treturn livros;\n\t//java.sql.Date dtCadastroEmLong = rs.getDate(\"dt_cadastro\");\n\t//Date dtCadastro = new Date(dtCadastroEmLong.getTime());\t\t\t\t\n\t//p.setDtCadastro(dtCadastro);\n\t//produtos.add(p);\n\t} catch (SQLException e) {\n\t\te.printStackTrace();\n\t}\n\t\treturn null;\n\t}", "private double compararOrientacion(Map<String, Object> anuncio1, Map<String , Object> anuncio2){\n\n Integer idOrientacion1 = anuncio1.containsKey(\"Id Orientacion\") ? ((Double) anuncio1.get(\"Id Orientacion\")).intValue() : null;\n Integer idOrientacion2 = anuncio2.containsKey(\"Id Orientacion\") ? ((Double) anuncio2.get(\"Id Orientacion\")).intValue() : null;\n\n double base = 0;\n boolean continuar = true;\n\n if (idOrientacion1 == null || idOrientacion2 == null){\n base = 1;\n continuar = false;\n }\n\n if (idOrientacion1 == idOrientacion2){\n base = 1;\n continuar = false;\n }\n\n if (continuar){\n int diferencia = Math.abs(idOrientacion1 - idOrientacion2);\n\n if (diferencia == 7){\n diferencia = 1;\n }\n\n base = diferencia == 1 ? 0.5 : 0;\n }\n\n return base * Constantes.PESOS_F1.get(\"Orientacion\");\n }", "private Map<Long, List<ObligacionCoactivoDTO>> consultaObligacionesComparendo() {\n logger.debug(\"CoactivoEJB::consultaObligacionesComparendo()\");\n Map<Long, List<ObligacionCoactivoDTO>> obligacionesDeudor = new HashMap<>();\n StringBuilder consulta = new StringBuilder();\n consulta.append(\"SELECT \");\n consulta.append(\"p.id_cartera, \");\n consulta.append(\"ca.saldo_capital, \");\n consulta.append(\"ca.saldo_interes, \");\n consulta.append(\"p.numero_obligacion, \");\n consulta.append(\"p.id_deudor, \");\n consulta.append(\"p.fecha_obligacion, \");\n consulta.append(\"p.id_funcionario, \");\n consulta.append(\"p.id_cargue_coactivo, \");\n consulta.append(\"p.id_precoactivo \");\n consulta.append(\"FROM precoactivo p \");\n consulta.append(\"JOIN cartera ca on ca.id_cartera = p.id_cartera \");\n consulta.append(\"WHERE p.id_estado_precoactivo = :estadoAprobado \");\n consulta.append(\"AND p.codigo_tipo_obligacion = :tipoComparendo \");\n\n Query query = em.createNativeQuery(consulta.toString());\n query.setParameter(\"estadoAprobado\", EnumEstadoPrecoactivo.AUTORIZADO.getValue());\n query.setParameter(\"tipoComparendo\", EnumTipoObligacion.COMPARENDO.getValue());\n @SuppressWarnings({ \"unchecked\" })\n List<Object[]> lsObligacionesComparendos = Utilidades.safeList(query.getResultList());\n\n for (Object[] obligacionComparendo : lsObligacionesComparendos) {\n int i = 0;\n BigInteger idCartera = (BigInteger) obligacionComparendo[i++];\n BigDecimal saldoCapital = (BigDecimal) obligacionComparendo[i++];\n BigDecimal saldoInteres = (BigDecimal) obligacionComparendo[i++];\n String numObligacion = (String) obligacionComparendo[i++];\n Long idDeudor = ((BigInteger) obligacionComparendo[i++]).longValue();\n Date fechaObligacion = (Date) obligacionComparendo[i++];\n Integer idFuncionario = (Integer) obligacionComparendo[i++];\n Long idCargue = ((BigInteger) obligacionComparendo[i++]).longValue();\n Long idPrecoactivo = ((BigInteger) obligacionComparendo[i++]).longValue();\n\n CoactivoDTO coactivo = new CoactivoDTO();\n coactivo.setCargueCoactivo(new CargueCoactivoDTO(idCargue));\n coactivo.setFuncionario(new FuncionarioDTO(idFuncionario));\n coactivo.setPersona(new PersonaDTO(idDeudor));\n // Arma obligacion que va a entrar a coactivo\n ObligacionCoactivoDTO obligacion = new ObligacionCoactivoDTO();\n obligacion.setCodigoTipoObligacion(EnumTipoObligacion.COMPARENDO.getValue());\n obligacion.setCartera(new CarteraDTO(idCartera.longValue()));\n obligacion.setNumeroObligacion(numObligacion);\n obligacion.setCoactivo(coactivo);\n obligacion.setFechaObligacion(fechaObligacion);\n obligacion.setValorObligacion(saldoCapital);\n obligacion.setValorInteresMoratorios(saldoInteres);\n obligacion.setIdPrecoativo(idPrecoactivo);\n if (!obligacionesDeudor.containsKey(idDeudor)) {\n obligacionesDeudor.put(idDeudor, new ArrayList<ObligacionCoactivoDTO>());\n }\n obligacionesDeudor.get(idDeudor).add(obligacion);\n }\n return obligacionesDeudor;\n }", "@Override\n public int compareTo(MensagemEleicao o) {\n int i = relogio.compareTo(o.relogio);\n if(i==0){ //se a comparação do relogio for igual\n if(id<o.getId()){ //usa o id maior como criterio de decisão;\n return -1;\n }\n return 1;\n }\n return i;\n }", "private void mostrarEstadoObjetosUsados() {\n Beneficiario beneficiario = null;\n FichaSocial fichaSocial = null;\n SolicitudBeneficio solicitudBeneficio = null;\n AspectoHabitacional aspectoHabitacional = null;\n AspectoEconomico aspectoEconomico = null;\n\n // CAMBIAR: Obtener datos del Request y asignarlos a los textField\n if (this.getRequestBean1().getObjetoABM() != null) {\n fichaSocial = (FichaSocial) this.getRequestBean1().getObjetoABM();\n aspectoHabitacional = (AspectoHabitacional) fichaSocial.getAspectoHabitacional();\n aspectoEconomico = (AspectoEconomico) fichaSocial.getAspectoEconomico();\n this.getElementoPila().getObjetos().set(0, fichaSocial);\n this.getElementoPila().getObjetos().set(1, aspectoHabitacional);\n this.getElementoPila().getObjetos().set(2, aspectoEconomico);\n }\n\n int ind = 0;\n fichaSocial = (FichaSocial) this.obtenerObjetoDelElementoPila(ind++, FichaSocial.class);\n aspectoHabitacional = (AspectoHabitacional) this.obtenerObjetoDelElementoPila(ind++, AspectoHabitacional.class);\n aspectoEconomico = (AspectoEconomico) this.obtenerObjetoDelElementoPila(ind++, AspectoEconomico.class);\n\n\n this.getTfCodigo().setText(fichaSocial.getNumero());\n this.getTfFecha().setText(Conversor.getStringDeFechaCorta(fichaSocial.getFecha()));\n ////\n //Beneficiarios:\n if (fichaSocial.getTitular() != null) {\n this.getTfTitular().setText(fichaSocial.toString());\n }\n\n this.setListaDelCommunication(new ArrayList(fichaSocial.getGrupoFamiliar()));\n this.getObjectListDataProvider().setList(new ArrayList(fichaSocial.getGrupoFamiliar()));\n\n //Aspecto habitacional:\n if (aspectoHabitacional.getNumeroPersonas() != null) {\n this.getTfNroPersonas().setText(aspectoHabitacional.getNumeroPersonas().toString());\n }\n this.getTfVivienda().setText(aspectoHabitacional.getVivienda());\n this.getTfTenencia().setText(aspectoHabitacional.getTenencia());\n this.getTfNroCamas().setText(aspectoHabitacional.getNumeroCamas());\n this.getTfNroAmbientes().setText(aspectoHabitacional.getNumeroAmbientes());\n this.getCbBanioCompleto().setValue(new Boolean(aspectoHabitacional.isBanioCompleto()));\n this.getCbBanioInterno().setValue(new Boolean(aspectoHabitacional.isBanioInterno()));\n this.getCbAgua().setValue(new Boolean(aspectoHabitacional.isAgua()));\n this.getCbLuz().setValue(new Boolean(aspectoHabitacional.isLuz()));\n this.getCbCloaca().setValue(new Boolean(aspectoHabitacional.isCloaca()));\n this.getCbGasNatural().setValue(new Boolean(aspectoHabitacional.isGasNatural()));\n\n //Aspecto Economico:\n this.getTfNroCasas().setText(aspectoEconomico.getNumeroCasas());\n this.getTfNroTerrenos().setText(aspectoEconomico.getNumeroTerrenos());\n this.getTfNroCampos().setText(aspectoEconomico.getNumeroCampos());\n this.getTfVehiculo().setText(aspectoEconomico.getVehiculo());\n this.getTfIndustria().setText(aspectoEconomico.getIndustria());\n this.getTfActividadLaboral().setText(aspectoEconomico.getActividadLaboral());\n this.getTfComercio().setText(aspectoEconomico.getComercio());\n\n //Solicitud Beneficio\n this.setListaDelCommunication2(new ArrayList(fichaSocial.getListaSolicitudBeneficio()));\n this.getObjectListDataProvider2().setList(new ArrayList(fichaSocial.getListaSolicitudBeneficio()));\n }", "@Override\n public void imprimir() {\n System.out.println(\"Vehiculos ordenados por precio mayor a menor:\");\n if(a1.precio>a2.precio && a1.precio >m1.precio && a1.precio >m2.precio){\n System.out.println(a1.marca+\"\"+a1.modelo);\n if(a2.precio >m1.precio && a2.precio >m2.precio){\n System.out.println(a2.marca+\"\"+a2.modelo);\n if(m1.precio >m2.precio){\n System.out.println(m1.marca+\"\"+m1.modelo);\n System.out.println(m2.marca+\"\"+m2.modelo);\n }else{\n System.out.println(m2.marca+\"\"+m1.modelo);\n System.out.println(m1.marca+\"\"+m1.modelo);\n \n }\n }else{\n if(m1.precio >a2.precio && m1.precio >m2.precio){\n System.out.println(m1.marca+\"\"+m1.modelo);\n if(a2.precio >m2.precio){\n System.out.println(a2.marca+\"\"+a2.modelo);\n System.out.println(m2.marca+\"\"+m2.modelo);\n }else{\n System.out.println(m2.marca+\"\"+m2.modelo);\n System.out.println(a2.marca+\"\"+a2.modelo);\n \n }\n }else{\n if(m2.precio >a2.precio && m2.precio >m1.precio){\n System.out.println(m2.marca+\"\"+m2.modelo);\n if(m1.precio >a2.precio){\n System.out.println(m1.marca+\"\"+m1.modelo);\n System.out.println(a2.marca+\"\"+a2.modelo);\n }else{\n System.out.println(a2.marca+\"\"+a2.modelo);\n System.out.println(m1.marca+\"\"+m1.modelo);\n }\n }\n }\n }\n }else{\n if(a2.precio>a1.precio && a2.precio >m1.precio && a2.precio >m2.precio){\n System.out.println(a2.marca+\" \"+a2.modelo);\n if(a1.precio >m1.precio && a1.precio >m2.precio){\n System.out.println(a1.marca+\" \"+a1.modelo);\n if(m1.precio >m2.precio){\n System.out.println(m1.marca+\" \"+m1.modelo);\n System.out.println(m2.marca+\" \"+m2.modelo);\n }else{\n System.out.println(m2.marca+\" \"+m2.modelo);\n System.out.println(m1.marca+\" \"+m1.modelo);\n \n }\n }else{\n if(m1.precio >a1.precio && m1.precio >m2.precio){\n System.out.println(m1.marca+\" \"+m1.modelo);\n if(a1.precio >m2.precio){\n System.out.println(a1.marca+\" \"+a1.modelo);\n System.out.println(m2.marca+\" \"+m2.modelo);\n }else{\n System.out.println(m2.marca+\" \"+m2.modelo);\n System.out.println(a1.marca+\" \"+a1.modelo);\n \n }\n }else{\n if(m2.precio >a1.precio && m2.precio >m1.precio){\n System.out.println(m2.marca+\" \"+m2.modelo);\n if(m1.precio >a1.precio){\n System.out.println(m1.marca+\" \"+m1.modelo);\n System.out.println(a1.marca+\" \"+a1.modelo);\n }else{\n System.out.println(a1.marca+\" \"+a1.modelo);\n System.out.println(m1.marca+\" \"+m1.modelo);\n }\n }\n }\n }\n }else{\n if(m1.precio>a2.precio && m1.precio >a1.precio && m1.precio >m2.precio){\n System.out.println(m1.marca+\" \"+m1.modelo);\n if(a2.precio >a1.precio && a2.precio >m2.precio){\n System.out.println(a2.marca+\" \"+a2.modelo);\n if(a1.precio >m2.precio){\n System.out.println(a1.marca+\" \"+a1.modelo);\n System.out.println(m2.marca+\" \"+m2.modelo);\n }else{\n System.out.println(m2.marca+\" \"+m2.modelo);\n System.out.println(a1.marca+\" \"+a1.modelo);\n \n }\n }else{\n if(a1.precio >a2.precio && a1.precio >m2.precio){\n System.out.println(a1.marca+\"\"+a1.modelo);\n if(a2.precio >m2.precio){\n System.out.println(a2.marca+\" \"+a2.modelo);\n System.out.println(m2.marca+\" \"+m2.modelo);\n }else{\n System.out.println(m2.marca+\" \"+m2.modelo);\n System.out.println(a2.marca+\" \"+a2.modelo);\n \n }\n }else{\n if(m2.precio >a2.precio && m2.precio >a1.precio){\n System.out.println(m2.marca+\" \"+m2.modelo);\n if(a1.precio >a2.precio){\n System.out.println(a1.marca+\" \"+a1.modelo);\n System.out.println(a2.marca+\" \"+a2.modelo);\n }else{\n System.out.println(a2.marca+\" \"+a2.modelo);\n System.out.println(a1.marca+\" \"+a1.modelo);\n }\n }\n }\n }\n }else{ \n if(m2.precio>a2.precio && m2.precio >a1.precio && m2.precio >m1.precio){\n System.out.println(m2.marca+\" \"+m2.modelo);\n if(a2.precio >a1.precio && a2.precio >m1.precio){\n System.out.println(a2.marca+\" \"+a2.modelo);\n if(a1.precio >m1.precio){\n System.out.println(a1.marca+\" \"+a1.modelo);\n System.out.println(m1.marca+\" \"+m1.modelo);\n }else{\n System.out.println(m1.marca+\" \"+m1.modelo);\n System.out.println(a1.marca+\" \"+a1.modelo);\n \n }\n }else{\n if(a1.precio >a2.precio && a1.precio >m1.precio){\n System.out.println(a1.marca+\"\"+a1.modelo);\n if(a2.precio >m1.precio){\n System.out.println(a2.marca+\" \"+a2.modelo);\n System.out.println(m1.marca+\" \"+m1.modelo);\n }else{\n System.out.println(m1.marca+\" \"+m1.modelo);\n System.out.println(a2.marca+\" \"+a2.modelo);\n \n }\n }else{\n if(m1.precio >a2.precio && m1.precio >a1.precio){\n System.out.println(m1.marca+\" \"+m1.modelo);\n if(a1.precio >a2.precio){\n System.out.println(a1.marca+\" \"+a1.modelo);\n System.out.println(a2.marca+\" \"+a2.modelo);\n }else{\n System.out.println(a2.marca+\" \"+a2.modelo);\n System.out.println(a1.marca+\" \"+a1.modelo);\n }\n }\n }\n }\n } \n \n }\n\n }\n }\n }", "public void ComprarEdificio(int tipo){\n if(edificios[tipo].tipoCompra.equals(\"oro\")){\n if(aldea.oro >= edificios[tipo].precioCompraMejora()){\n if(aldea.constructoresLibres() > 0){\n // Bloquear constructor\n aldea.bloquearConstructor();\n // Obtener tiempo actual\n Date tiempo = new Date();\n // Gastar oro de edificio\n aldea.gastarOro(edificios[tipo].precioCompraMejora());\n // Construir edificio y obtener evento futuro de culminacion\n // Agregar evento a la LEF\n LEF.add(aldea.construirEdificio(tiempo, edificios[tipo]));\n jTextFieldOro.setText(String.valueOf((int)aldea.oro));\n }\n }\n }else{\n if(aldea.elixir >= edificios[tipo].precioCompraMejora()){\n if(aldea.constructoresLibres() > 0){\n // Bloquear constructor\n aldea.bloquearConstructor();\n // Obtener tiempo actual\n Date tiempo = new Date();\n // Gastar elixir de edificio\n aldea.gastarElixir(edificios[tipo].precioCompraMejora());\n // Construir edificio y obtener evento futuro\n // Agregar evento a la LEF\n LEF.add(aldea.construirEdificio(tiempo, edificios[tipo]));\n jTextFieldElixir.setText(String.valueOf((int)aldea.elixir));\n }\n }\n }\n }", "@SuppressWarnings(\"unchecked\")\n public void consultarCoactivosXLS() throws CirculemosNegocioException {\n\n // consulta la tabla temporal de los 6000 coactivos\n StringBuilder sql = new StringBuilder();\n\n sql.append(\"select [TIPO DOC], [NUMERO DE IDENTIFICACIÓN], [valor multas], [titulo valor], proceso \");\n sql.append(\"from coactivos_xls \");\n sql.append(\"where id_tramite is null and numero_axis is null AND archivo is not null \");\n sql.append(\"AND [titulo valor] IN ('2186721','2187250','2187580','2186845')\");\n\n Query query = em.createNativeQuery(sql.toString());\n\n List<Object[]> listaResultados = Utilidades.safeList(query.getResultList());\n\n Date fechaCoactivo = UtilFecha.buildCalendar().getTime();\n CoactivoDTO coactivoDTOs;\n TipoIdentificacionPersonaDTO tipoIdentificacion;\n List<ObligacionCoactivoDTO> obligacionesCoactivoDTO;\n PersonaDTO personaDTO;\n ProcesoDTO proceso;\n // persiste los resultados en coactivoDTO\n for (Object[] coactivo : listaResultados) {\n coactivoDTOs = new CoactivoDTO();\n // persiste el tipo de indetificacion en TipoIdentificacionPersonaDTO\n personaDTO = new PersonaDTO();\n proceso = new ProcesoDTO();\n tipoIdentificacion = new TipoIdentificacionPersonaDTO();\n obligacionesCoactivoDTO = new ArrayList<>();\n\n tipoIdentificacion.setCodigo((String) coactivo[0]);\n personaDTO.setTipoIdentificacion(tipoIdentificacion);\n coactivoDTOs.setPersona(personaDTO);\n coactivoDTOs.getPersona().setNumeroIdentificacion((String) coactivo[1]);\n\n proceso.setFechaInicio(fechaCoactivo);\n coactivoDTOs.setProceso(proceso);\n coactivoDTOs.setValorTotalObligaciones(BigDecimal\n .valueOf(Double.valueOf(coactivo[2].toString().replaceAll(\"\\\\.\", \"\").replaceAll(\",\", \".\"))));\n coactivoDTOs.setValorTotalCostasProcesales(\n coactivoDTOs.getValorTotalObligaciones().multiply(BigDecimal.valueOf(0.05)));\n coactivoDTOs.getProceso().setObservacion(\"COACTIVO\");\n String[] numeroFactura = coactivo[3].toString().split(\",\");\n // separa los numeros de factura cuando viene mas de uno.\n for (String nFactura : numeroFactura) {\n // consulta por numero de factura el el saldo a capital por cada factura\n sql = new StringBuilder();\n sql.append(\"select nombre, saldo_capital, saldo_interes \");\n sql.append(\"from cartera_coactivos_xls \");\n sql.append(\"where nombre = :nFactura\");\n\n Query quer = em.createNativeQuery(sql.toString());\n\n quer.setParameter(\"nFactura\", nFactura);\n\n List<Object[]> result = Utilidades.safeList(quer.getResultList());\n // persiste las obligaciones consultadas y las inserta en ObligacionCoactivoDTO\n ObligacionCoactivoDTO obligaciones;\n for (Object[] obligacion : result) {\n obligaciones = new ObligacionCoactivoDTO();\n obligaciones.setNumeroObligacion((String) obligacion[0]);\n obligaciones.setValorObligacion(BigDecimal.valueOf(\n Double.valueOf(obligacion[1].toString().replaceAll(\"\\\\.\", \"\").replaceAll(\",\", \".\"))));\n obligaciones.setValorInteresMoratorios(BigDecimal.valueOf(\n Double.valueOf(obligacion[2].toString().replaceAll(\"\\\\.\", \"\").replaceAll(\",\", \".\"))));\n // Adiciona las obligaciones a una lista\n obligacionesCoactivoDTO.add(obligaciones);\n }\n\n }\n coactivoDTOs.setObligacionCoactivos(obligacionesCoactivoDTO);\n try {\n iLCoactivo.registrarCoactivoAxis(coactivoDTOs, coactivo[4].toString());\n } catch (Exception e) {\n logger.error(\"Error al registrar coactivo 6000 :\", e);\n }\n }\n }", "@Override\r\n\t\t\t\tpublic int compare(Comparendo o1, Comparendo o2) \r\n\t\t\t\t{\n\t\t\t\t\treturn o1.codigoInfraccion.compareTo(o2.codigoInfraccion);\r\n\t\t\t\t}", "public ConversorVelocidad() {\n //setTemperaturaConvertida(0);\n }", "@Override\n public int compare( ReservaViaje r1, ReservaViaje r2 )\n {\n int diff = ( int ) (r1.darCostoTotal( )-r2.darCostoTotal( ));\n return diff==0?0:(diff>0?1:-1);\n }", "@Override\n\tpublic int compare(Podroz o1, Podroz o2) {\n\t\tif(klucz == \"czas\")\n\t\t{\n\t\t\tif(o1.getCzas()==o2.getCzas())\n\t\t\t\treturn 0;\n\t\t\telse if(o1.getCzas() > o2.getCzas())\n\t\t\t\treturn 1;\n\t\t\telse\n\t\t\t\treturn -1;\n\t\t}\n\t\telse if(klucz == \"dlugosc\")\n\t\t{\n\t\t\tif(o1.getDlugosc() == o2.getDlugosc())\n\t\t\t\treturn 0;\n\t\t\telse if(o1.getDlugosc() > o2.getDlugosc())\n\t\t\t\treturn 1;\n\t\t\telse\n\t\t\t\treturn -1;\n\t\t}\n\t\telse if(klucz == \"data\")\n\t\t{\n\t\t\tif(o1.getData_rozpoczecia().compareTo(o2.getData_rozpoczecia())==0)\n\t\t\t\treturn 0;\n\t\t\telse if(o1.getData_rozpoczecia().compareTo(o2.getData_rozpoczecia())>0)\n\t\t\t\treturn 1;\n\t\t\telse\n\t\t\t\treturn -1;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(o1.getSrednia_predkosc() == o2.getSrednia_predkosc())\n\t\t\t\treturn 0;\n\t\t\telse if(o1.getSrednia_predkosc() > o2.getSrednia_predkosc())\n\t\t\t\treturn 1;\n\t\t\telse\n\t\t\t\treturn -1;\n\t\t}\n\t}", "private void cargarFichaLepra_convivientes() {\r\n\r\n\t\tMap<String, Object> parameters = new HashMap<String, Object>();\r\n\t\tparameters.put(\"codigo_empresa\", codigo_empresa);\r\n\t\tparameters.put(\"codigo_sucursal\", codigo_sucursal);\r\n\t\tparameters.put(\"nro_identificacion\", tbxNro_identificacion.getValue());\r\n\t\tparameters.put(\"fecha_actual\", new Date());\r\n\r\n\t\t// log.info(\"parameters\" + parameters);\r\n\t\tseguimiento_control_pqtService.setLimit(\"limit 25 offset 0\");\r\n\r\n\t\t// log.info(\"parameters>>>>\" + parameters);\r\n\t\tBoolean fecha_tratamiento = seguimiento_control_pqtService\r\n\t\t\t\t.existe_fecha_fin_tratamiento(parameters);\r\n\t\t// log.info(\"fecha_tratamiento>>>>\" + fecha_tratamiento);\r\n\r\n\t\tif (fecha_tratamiento) {\r\n\t\t\tMap<String, Object> parametros = new HashMap<String, Object>();\r\n\t\t\tparametros.put(\"nro_identificacion\",\r\n\t\t\t\t\tadmision_seleccionada.getNro_identificacion());\r\n\t\t\tparametros.put(\"nro_ingreso\",\r\n\t\t\t\t\tadmision_seleccionada.getNro_ingreso());\r\n\t\t\tparametros.put(\"estado\", admision_seleccionada.getEstado());\r\n\t\t\tparametros.put(\"codigo_administradora\",\r\n\t\t\t\t\tadmision_seleccionada.getCodigo_administradora());\r\n\t\t\tparametros.put(\"id_plan\", admision_seleccionada.getId_plan());\r\n\t\t\tparametros.put(IVias_ingreso.ADMISION_PACIENTE,\r\n\t\t\t\t\tadmision_seleccionada);\r\n\t\t\tparametros.put(IVias_ingreso.OPCION_VIA_INGRESO,\r\n\t\t\t\t\tOpciones_via_ingreso.REGISTRAR);\r\n\t\t\ttabboxContendor.abrirPaginaTabDemanda(false,\r\n\t\t\t\t\tIRutas_historia.PAGINA_CONTROL_CONVIVIENTES_LEPRA,\r\n\t\t\t\t\tIRutas_historia.LABEL_CONTROL_CONVIVIENTES_LEPRA,\r\n\t\t\t\t\tparametros);\r\n\t\t}\r\n\t}", "public VisualizarEncontroDTO(String desigTorneio, Calendar dataInicio,\r\n\t\t\tJogadorDTO jogador, JogadorDTO advers, int qtdEncontros) {\r\n\t\t\r\n\t\tthis.designacaoTorneio = desigTorneio;\r\n\t\tthis.dataInicio = convertCalendarToString(dataInicio);\t\t\r\n\t\tthis.jogadorCorrente = jogador;\r\n\t\tthis.jogadorAdversario = advers;\r\n\t\tthis.qtdEncontros = qtdEncontros;\r\n\t}", "@Override\r\n public int compareTo(Object o) {\r\n ClienteEntity pCliente= (ClienteEntity)o;\r\n return this.envios.size()<pCliente.envios.size()?-1:this.envios.size()>pCliente.envios.size()?1:0; }", "@Override\n\tpublic int compare(Inventariable<T> o1, Inventariable<T> o2) {\n\t\treturn o1.getCodigo()-o2.getCodigo();\n\t}", "public void checaColision() {\n //Si el proyectil colisiona con la barra entonces..\n if (objBarra.colisiona(objProyectil)) {\n //Guardo el centro x del proyectil para no facilitar su comparacion\n int iCentroProyectil = objProyectil.getX()\n + objProyectil.getAncho() / 2;\n //Si el nivel de Y del lado inferior del proyectil es el mismo que\n //el nivel de Y del lado superior de la barra...\n if (objProyectil.getY() + objProyectil.getAlto()\n >= objBarra.getY()) {\n //Dividimos el ancho de la barra en 2 secciones que otorgan \n //diferente velocidad dependiendo que seccion toque el proyectil\n //Si el centro del proyectil toca la primera parte de la \n //barra o el lado izquierdo del proyectil esta mas a la \n //izquierda que el lado izquierdo de la barra...\n if ((iCentroProyectil > objBarra.getX() && iCentroProyectil\n < objBarra.getX() + objBarra.getAncho() / 2)\n || (objProyectil.getX() < objBarra.getX())) {\n bDireccionX = false; // arriba\n bDireccionY = false; // izquierda\n } //Si el centro del proyectil toca la ultima parte de la barra o\n //el lado derecho del proyectil esta mas a la derecha que el \n //lado derecho de la barra\n else if ((iCentroProyectil > objBarra.getX()\n + (objBarra.getAncho() / 2) && iCentroProyectil\n < objBarra.getX() + (objBarra.getAncho()\n - objBarra.getAncho() / 18)) || (objProyectil.getX()\n + objProyectil.getAncho() > objBarra.getX()\n + objBarra.getAncho())) {\n bDireccionX = true; // arriba\n bDireccionY = false; // derecha\n }\n }\n\n }\n for (Object objeBloque : lnkBloques) {\n Objeto objBloque = (Objeto) objeBloque;\n //Checa si la barra choca con los bloques (Choca con el poder)\n if(objBarra.colisiona(objBloque)) {\n bPoderes[objBloque.getPoder()] = true;\n }\n // Checa si el proyectil choca contra los bloques\n if (objBloque.colisiona(objProyectil)) {\n iScore++; // Se aumenta en 1 el score\n iNumBloques--; //Se resta el numero de bloques\n //Se activa el bloque con el poder para que se mueva para abajo\n if (objBloque.getPoder() != 0) {\n URL urlImagenPoder\n = this.getClass().getResource(\"metanfeta.png\");\n objBloque.setImagen(Toolkit.getDefaultToolkit()\n .getImage(urlImagenPoder));\n objBloque.setVelocidad(2);\n bAvanzaBloque = true;\n }\n if(objProyectil.colisiona(objBloque.getX(), \n objBloque.getY()) ||\n objProyectil.colisiona(objBloque.getX(), \n objBloque.getY()+objBloque.getAlto())) {\n objBloque.setX(getWidth() + 50);\n bDireccionX = false; //va hacia arriba\n }\n if(objProyectil.colisiona(objBloque.getX()+objBloque.getAncho(), \n objBloque.getY()) ||\n objProyectil.colisiona(objBloque.getX()+objBloque.getAncho(), \n objBloque.getY()+objBloque.getAlto())) {\n objBloque.setX(getWidth() + 50);\n bDireccionX = true; //va hacia arriba\n }\n //Si la parte superior de proyectil es mayor o igual a la parte\n //inferior del bloque(esta golpeando por abajo del bloque...\n if((objProyectil.getY() <= objBloque.getY() \n + objBloque.getAlto()) && (objProyectil.getY() \n + objProyectil.getAlto() > objBloque.getY() \n + objBloque.getAlto())) {\n objBloque.setX(getWidth() + 50);\n bDireccionY = true; //va hacia abajo\n \n \n }\n //parte inferior del proyectil es menor o igual a la de la parte\n //superior del bloque(esta golpeando por arriba)...\n else if(( objProyectil.getY() + objProyectil.getAlto()\n >= objBloque.getY())&&( objProyectil.getY() \n < objBloque.getY())) {\n objBloque.setX(getWidth() + 50);\n bDireccionY = false; //va hacia arriba\n }\n //Si esta golpeando por algun otro lugar (los lados)...\n else {\n objBloque.setX(getWidth()+50);\n bDireccionX = !bDireccionX;\n }\n }\n }\n //Si la barra choca con el lado izquierdo...\n if (objBarra.getX() < 0) {\n objBarra.setX(0); //Se posiciona al principio antes de salir\n } //Si toca el lado derecho del Jframe...\n else if (objBarra.getX() + objBarra.getAncho() - objBarra.getAncho() / 18\n > getWidth()) {\n objBarra.setX(getWidth() - objBarra.getAncho() + objBarra.getAncho()\n / 18);// Se posiciciona al final antes de salir\n }\n //Si el Proyectil choca con cualquier limite de los lados...\n if (objProyectil.getX() < 0 || objProyectil.getX()\n + objProyectil.getAncho() > getWidth()) {\n //Cambias su direccion al contrario\n bDireccionX = !bDireccionX;\n } //Si el Proyectil choca con la parte superior del Jframe...\n else if (objProyectil.getY() < 0) {\n //Cambias su direccion al contrario\n bDireccionY = !bDireccionY;\n } //Si el proyectil toca el fondo del Jframe...\n else if (objProyectil.getY() + objProyectil.getAlto() > getHeight()) {\n iVidas--; //Se resta una vida.\n // se posiciona el proyectil en el centro arriba de barra\n objProyectil.reposiciona((objBarra.getX() + objBarra.getAncho() / 2\n - (objProyectil.getAncho() / 2)), (objBarra.getY()\n - objProyectil.getAlto()));\n }\n }", "public DatosIteracion mejorIteracionVisibles(ArrayList<DatosIteracion> datos) {\r\n\r\n\t\tDatosIteracion d = new DatosIteracion(\"auxiliar\");\r\n\t\tLectura l = new Lectura(999999, 0, 0);\r\n\t\td.getValoresLecturas().add(l);\r\n\r\n\t\tfor (int i = 0; i < datos.size(); i++) {\r\n\r\n\t\t\tif (d.getValoresLecturas(d.getValoresLecturas().size() - 1)\r\n\t\t\t\t\t.getnNodos() < datos\r\n\t\t\t\t\t.get(i)\r\n\t\t\t\t\t.getValoresLecturas(\r\n\t\t\t\t\t\t\tdatos.get(i).getValoresLecturas().size() - 1)\r\n\t\t\t\t\t.getnNodos()) {\r\n\r\n\t\t\t\td = datos.get(i);\r\n\t\t\t}\r\n\r\n\t\t\tif (d.getValoresLecturas(d.getValoresLecturas().size() - 1)\r\n\t\t\t\t\t.getnNodos() == datos\r\n\t\t\t\t\t.get(i)\r\n\t\t\t\t\t.getValoresLecturas(\r\n\t\t\t\t\t\t\tdatos.get(i).getValoresLecturas().size() - 1)\r\n\t\t\t\t\t.getnNodos()) {\r\n\r\n\t\t\t\tif (d.getValoresLecturas(d.getValoresLecturas().size() - 1)\r\n\t\t\t\t\t\t.getCapturados() > datos\r\n\t\t\t\t\t\t.get(i)\r\n\t\t\t\t\t\t.getValoresLecturas(\r\n\t\t\t\t\t\t\t\tdatos.get(i).getValoresLecturas().size() - 1)\r\n\t\t\t\t\t\t.getCapturados()) {\r\n\r\n\t\t\t\t\td = datos.get(i);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn d;\r\n\t}", "Collection<GestionPrecioDTO> findCampaniasFiltros (GestionPrecioDTO gestionPrecio,String estadoCobro);", "@Override\r\n\t\t\t\tpublic int compare(Comparendo o1, Comparendo o2) \r\n\t\t\t\t{\n\t\t\t\t\treturn o1.darLocalidad().compareTo(o2.darLocalidad());\r\n\t\t\t\t}", "public void actualizarFechaComprobantes() {\r\n if (utilitario.isFechasValidas(cal_fecha_inicio.getFecha(), cal_fecha_fin.getFecha())) {\r\n tab_tabla1.setCondicion(\"fecha_trans_cnccc between '\" + cal_fecha_inicio.getFecha() + \"' and '\" + cal_fecha_fin.getFecha() + \"' and ide_cntcm=\" + com_tipo_comprobante.getValue());\r\n tab_tabla1.ejecutarSql();\r\n tab_tabla2.ejecutarValorForanea(tab_tabla1.getValorSeleccionado());\r\n utilitario.addUpdate(\"tab_tabla1,tab_tabla2\");\r\n calcularTotal();\r\n utilitario.addUpdate(\"gri_totales\");\r\n } else {\r\n utilitario.agregarMensajeInfo(\"Rango de fechas no válidas\", \"\");\r\n }\r\n\r\n }", "public DatosIteracion mejorIteracionCapturados(\r\n\t\t\tArrayList<DatosIteracion> datos) {\r\n\r\n\t\tDatosIteracion d = new DatosIteracion(\"auxiliar\");\r\n\t\tLectura l = new Lectura(999999, 0, 0);\r\n\t\td.getValoresLecturas().add(l);\r\n\r\n\t\tfor (int i = 0; i < datos.size(); i++) {\r\n\r\n\t\t\tif (d.getValoresLecturas(d.getValoresLecturas().size() - 1)\r\n\t\t\t\t\t.getCapturados() < datos\r\n\t\t\t\t\t.get(i)\r\n\t\t\t\t\t.getValoresLecturas(\r\n\t\t\t\t\t\t\tdatos.get(i).getValoresLecturas().size() - 1)\r\n\t\t\t\t\t.getCapturados()) {\r\n\r\n\t\t\t\td = datos.get(i);\r\n\t\t\t}\r\n\r\n\t\t\tif (d.getValoresLecturas(d.getValoresLecturas().size() - 1)\r\n\t\t\t\t\t.getCapturados() == datos\r\n\t\t\t\t\t.get(i)\r\n\t\t\t\t\t.getValoresLecturas(\r\n\t\t\t\t\t\t\tdatos.get(i).getValoresLecturas().size() - 1)\r\n\t\t\t\t\t.getCapturados()) {\r\n\r\n\t\t\t\tif (d.getValoresLecturas(d.getValoresLecturas().size() - 1)\r\n\t\t\t\t\t\t.getTiempo() > datos\r\n\t\t\t\t\t\t.get(i)\r\n\t\t\t\t\t\t.getValoresLecturas(\r\n\t\t\t\t\t\t\t\tdatos.get(i).getValoresLecturas().size() - 1)\r\n\t\t\t\t\t\t.getTiempo()) {\r\n\r\n\t\t\t\t\td = datos.get(i);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif (d.getValoresLecturas(d.getValoresLecturas().size() - 1)\r\n\t\t\t\t\t.getCapturados() == datos\r\n\t\t\t\t\t.get(i)\r\n\t\t\t\t\t.getValoresLecturas(\r\n\t\t\t\t\t\t\tdatos.get(i).getValoresLecturas().size() - 1)\r\n\t\t\t\t\t.getCapturados()) {\r\n\r\n\t\t\t\tif (d.getValoresLecturas(d.getValoresLecturas().size() - 1)\r\n\t\t\t\t\t\t.getTiempo() == datos\r\n\t\t\t\t\t\t.get(i)\r\n\t\t\t\t\t\t.getValoresLecturas(\r\n\t\t\t\t\t\t\t\tdatos.get(i).getValoresLecturas().size() - 1)\r\n\t\t\t\t\t\t.getTiempo()) {\r\n\r\n\t\t\t\t\tif (d.getValoresLecturas(d.getValoresLecturas().size() - 1)\r\n\t\t\t\t\t\t\t.getnNodos() <= datos\r\n\t\t\t\t\t\t\t.get(i)\r\n\t\t\t\t\t\t\t.getValoresLecturas(\r\n\t\t\t\t\t\t\t\t\tdatos.get(i).getValoresLecturas().size() - 1)\r\n\t\t\t\t\t\t\t.getnNodos()) {\r\n\r\n\t\t\t\t\t\td = datos.get(i);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn d;\r\n\t}", "private Hashtable actualizarHistorico(Hashtable hashHistoricos, String clave, DTOHistoricoDescuento dtoHistoricoActual) throws MareException {\n UtilidadesLog.info(\"MONHistoricoDTO.actualizarHistorico() - entrada\"); \n DTOHistoricoDescuento dtoHistoricoDescuento;\n //obtenemos el historico de descuento a actualizar\n dtoHistoricoDescuento = (DTOHistoricoDescuento)hashHistoricos.get(clave);\n UtilidadesLog.debug(\"va a actualizar OidDescuento:\" + dtoHistoricoActual.getOidDescuento() + \" OidMatrizFacturacion: \"+ dtoHistoricoActual.getOidMatrizFacturacion() ); \n\n UtilidadesLog.debug(\"HistoricoDescuento dto.getImporteVentaReal(): \" + dtoHistoricoActual.getImporteVentaReal()); \n UtilidadesLog.debug(\"HistoricoDescuento dto.getBaseCalculo(): \" + dtoHistoricoActual.getBaseCalculo()); \n UtilidadesLog.debug(\"HistoricoDescuento dto.getBaseCalculoAcumulada(): \" + dtoHistoricoActual.getBaseCalculoAcumulada()); \n // -> Segun incidencia 21031 estos tres atributos no deben de acumularse.\n dtoHistoricoDescuento.setImporteVentaReal(dtoHistoricoActual.getImporteVentaReal());\n dtoHistoricoDescuento.setBaseCalculo(dtoHistoricoActual.getBaseCalculo());\n dtoHistoricoDescuento.setBaseCalculoAcumulada(dtoHistoricoActual.getBaseCalculoAcumulada());\n\n // -> Acumular los siguientes atributos: porcentajeAplicado, importeFijoDescuento\n // porcentajeAplicado eq porcentaje, (Segun Incidencia 7378:)\n if (dtoHistoricoActual.getPorcentaje() != null) {\n if (dtoHistoricoDescuento.getPorcentaje() == null) {\n dtoHistoricoDescuento.setPorcentaje(new BigDecimal(0)); //valor por defecto\n }\n BigDecimal porcentajeAcc = dtoHistoricoDescuento.getPorcentaje().add(dtoHistoricoActual.getPorcentaje());\n UtilidadesLog.debug(\"HistoricoDescuento porcentajeAcc: \" + porcentajeAcc); \n dtoHistoricoDescuento.setPorcentaje(porcentajeAcc);\n }\n \n //importeFijoDescuento eq importeFijo, \n if (dtoHistoricoActual.getImporteFijo() != null) {\n if (dtoHistoricoDescuento.getImporteFijo() == null) {\n dtoHistoricoDescuento.setImporteFijo(new BigDecimal(0)); //valor por defecto\n }\n BigDecimal importeFijoAcc = dtoHistoricoDescuento.getImporteFijo().add(dtoHistoricoActual.getImporteFijo());\n UtilidadesLog.debug(\"HistoricoDescuento importeFijoAcc: \" + importeFijoAcc); \n dtoHistoricoDescuento.setImporteFijo(importeFijoAcc);\n }\n\n //descuento eq importe descuento aplicado: el porcentaje aplicado a la venta real (porcentaje/100 * venta real)\n BigDecimal importeDescuentoAplicado = new BigDecimal(0);\n if ( (dtoHistoricoDescuento.getPorcentaje() != null ) && (dtoHistoricoDescuento.getImporteVentaReal() != null ) ) {\n importeDescuentoAplicado = (dtoHistoricoDescuento.getPorcentaje().divide(new BigDecimal(100), CANT_DECIMALES, BigDecimal.ROUND_UNNECESSARY).multiply(dtoHistoricoDescuento.getImporteVentaReal()));\n UtilidadesLog.debug(\"HistoricoDescuento importeDescuentoAplicado: \" + importeDescuentoAplicado); \n }\n dtoHistoricoDescuento.setImporteDescuentoAplicado(importeDescuentoAplicado);\n \n UtilidadesLog.info(\"MONHistoricoDTO.actualizarHistorico() - salida\"); \n return hashHistoricos;\n }", "public void verComprobante() {\r\n if (tab_tabla1.getValorSeleccionado() != null) {\r\n if (!tab_tabla1.isFilaInsertada()) {\r\n Map parametros = new HashMap();\r\n parametros.put(\"ide_cnccc\", Long.parseLong(tab_tabla1.getValorSeleccionado()));\r\n parametros.put(\"ide_cnlap_debe\", p_con_lugar_debe);\r\n parametros.put(\"ide_cnlap_haber\", p_con_lugar_haber);\r\n vpdf_ver.setVisualizarPDF(\"rep_contabilidad/rep_comprobante_contabilidad.jasper\", parametros);\r\n vpdf_ver.dibujar();\r\n } else {\r\n utilitario.agregarMensajeInfo(\"Debe guardar el comprobante\", \"\");\r\n }\r\n\r\n } else {\r\n utilitario.agregarMensajeInfo(\"No hay ningun comprobante seleccionado\", \"\");\r\n }\r\n }", "public Collection<AreaTrabajoDTO> buscarAreaTrabajoCentroDistribucion(int codigoCompania, String codigoFuncionario, boolean tipoBusqueda);", "public void menorEmQuantidade(){\n qtadePorNum.sort(new Matriz.PairValueComparator());\n }", "public void publicarPropuestas() {\n try {\n //SISTEMA VERIFICA QUE LOS COMPROMISOS PARA EL PERIODO HAYAN SIDO INGRESADO\n if (this.listaCompromiso == null || this.listaCompromiso.isEmpty()) {\n //MUESTRA MENSAJE: 'DEBE INGRESAR LOS COMPROMISOS PARA PODER PUBLICAR ', NO ES POSIBLE PUBLICAR LOS RESULTADOS \n addErrorMessage(keyPropertiesFactory.value(\"cu_ne_6_lbl_mensaje_add_comprimiso_faltantes\"));\n return;\n }\n String mensajeValidacion = validarCompromisosPeriodoByPropuestaNacesidad(this.propuestaSeleccionada);\n if (mensajeValidacion != null) {\n addErrorMessage(keyPropertiesFactory.value(mensajeValidacion));\n return;\n }\n if (IConstantes.CONSTANTES_ESTADO_PROPUESTA_NECESIDAD_PRE_APROBADA.compareTo(this.propuestaSeleccionada.getConstantes().getIdConstantes()) != 0) {\n addErrorMessage(\"La propuesta debe estar en estado Pre-Aprobado\");\n return;\n }\n /*byte[] bitesPdf;\n //GENERAMOS EL REPORTE - CREADOR DE REPORTES\n try {\n HashMap mapa = new HashMap();\n mapa.put(\"p_id_periodo\", periodoSeleccionado.getIdPeriodo().intValue());\n bitesPdf = GeneradorReportesServicio.getInstancia().generarReporte(mapa, \"reporte15.jasper\");\n } catch (Exception e) {\n adicionaMensajeError(\"ERROR, Se presentaron errores al general el reporte JASPER\");\n Logger.getLogger(this.getClass().getName()).log(Level.SEVERE, \"CU-NE-06(publicarPropuestas)\", e);\n return;\n }*/\n String iniciaCodigoVic = keyPropertiesFactory.value(\"cu_ne_6_codigo_proyecto_inicia_generacion\");\n if (iniciaCodigoVic.contains(\"-----NOT FOUND-----\")) {\n addErrorMessage(keyPropertiesFactory.value(\"cu_ne_6_error_no_existe_codigo_proyecto_inicia_generacion\"));\n return;\n }\n //EL SISTEMA CAMBIA EL ESTADO DE TODAS LAS PROPUESTAS DEL LISTADO DE ''PRE-APROBADA ' A 'APROBADA' \n //Y LOS DE ESTADO 'REVISADA' A 'NO APROBADA' \n List<SieduPropuestaAsignada> lstPropuestaasignada = this.servicePropuestaAsignada.findByVigencia(this.propuestaSeleccionada);\n List<Long> lstLong = new ArrayList<>();\n for (SieduPropuestaAsignada s : lstPropuestaasignada) {\n lstLong.add(s.getPropuestaNecesidad().getIdPropuestaNecesidad());\n }\n Proyecto proyecto = new Proyecto();\n int contarProyecto = iProyectoLocal.contarProyectoByVigencia(lstLong);\n Constantes constantes = iConstantesLocal.getConstantesPorIdConstante(IConstantes.DURACION_PROYECTOS_INSTITUCIONALES);\n int numeroMesesEstimacionProyecto = Integer.parseInt(constantes.getValor());\n UsuarioRol usuarioRol = new UsuarioRol(loginFaces.getPerfilUsuarioDTO().getRolUsuarioPorIdRolDTO(IConstantesRole.EVALUADOR_DE_PROPUESTAS_DE_NECESIDADES_EN_LA_VICIN).getIdUsuarioRol());\n if (this.propuestaSeleccionada.getConstantes().getIdConstantes().equals(IConstantes.CONSTANTES_ESTADO_PROPUESTA_NECESIDAD_PRE_APROBADA)) {\n EjecutorNecesidad ejecutorNecesidadResponsable = iEjecutorNecesidadLocal.getEjecutorNecesidadPorPropuestaNecesidadYRolResponsable(this.propuestaSeleccionada.getIdPropuestaNecesidad());\n if (ejecutorNecesidadResponsable == null || ejecutorNecesidadResponsable.getUnidadPolicial() == null || ejecutorNecesidadResponsable.getUnidadPolicial().getSiglaFisica() == null) {\n addErrorMessage(\"Error, Verifique la sigla física de la Unidad Policial asociada a la propuesta: \" + this.propuestaSeleccionada.getTema());\n return;\n }\n\n this.propuestaSeleccionada.setConstantes(new Constantes(IConstantes.CONSTANTES_ESTADO_PROPUESTA_NECESIDAD_APROBADA));\n //POR CADA PROPROPUESTA APROBADA SE CREA UN PROYECTO\n //CREA UN PROYECTO DE INVESTIGACIÓN POR CADA PROPUESTA CON EL ESTADO 'APROBADA', \n //ASIGNÁNDOLE EL CÓDIGO DE INVESTIGACIÓN DE ACUERDO AL MÉTODO ESTABLECIDO(VER REQUERIMIENTOS ESPECIALES), \n //ASIGNÁNDOLE EL ÁREA Y LA LÍNEA DE INVESTIGACIÓN Y EL TEMA PROPUESTO COMO TITULO PROPUESTO\n //VIC - [Consecutivo de proyectos en el periodo][Año]- [Código interno de la Unidad Policial o Escuela]\n String codigoInternoUnidad = ejecutorNecesidadResponsable.getUnidadPolicial().getSiglaFisica();\n String codigoProyecto = iniciaCodigoVic.concat(\"-\");//VIC \n contarProyecto += 1;\n codigoProyecto = codigoProyecto.concat(String.valueOf(contarProyecto));//[Consecutivo de proyectos en el periodo]\n codigoProyecto = codigoProyecto.concat(String.valueOf(lstPropuestaasignada.get(0).getSieduPropuestaAsignadaPK().getVigencia()));//[Año]\n codigoProyecto = codigoProyecto.concat(\"-\");\n codigoProyecto = codigoProyecto.concat(codigoInternoUnidad);//[Código interno de la Unidad Policial o Escuela]\n Date fechaHoy = new Date();\n proyecto.setCodigoProyecto(codigoProyecto);\n proyecto.setLinea(this.propuestaSeleccionada.getLinea());\n proyecto.setTituloPropuesto(this.propuestaSeleccionada.getTema());\n proyecto.setTema(this.propuestaSeleccionada.getTema());\n proyecto.setPeriodo(this.propuestaSeleccionada.getPeriodo());\n proyecto.setUsuarioRol(usuarioRol);\n proyecto.setEstado(new Constantes(IConstantes.TIPO_ESTADO_PROYECTO_EN_EJECUCION));\n proyecto.setUnidadPolicial(ejecutorNecesidadResponsable.getUnidadPolicial());\n proyecto.setPropuestaNecesidad(this.propuestaSeleccionada);\n proyecto.setFechaEstimadaInicio(fechaHoy);\n Calendar fechaFinalEstimadaProyecto = Calendar.getInstance();\n fechaFinalEstimadaProyecto.setTime(fechaHoy);\n fechaFinalEstimadaProyecto.add(Calendar.MONTH, numeroMesesEstimacionProyecto);\n proyecto.setFechaEstimadaFinalizacion(fechaFinalEstimadaProyecto.getTime());\n proyecto.setFechaActualizacion(fechaHoy);\n //CREAMOS LOS COMPROMISOS PROYECTOS\n List<CompromisoProyecto> listaCompromisosProyecto = new ArrayList<CompromisoProyecto>();\n //CONSULTAMOS LOS COMPROMISOS DE ESTE PERIODO\n List<CompromisoPeriodo> listaComprimiso = iCompromisoPeriodoLocal.buscarCompromisoPeriodoByIdPropuestaNecesidad(this.propuestaSeleccionada);\n for (CompromisoPeriodo unCompromisoPeriodo : listaComprimiso) {\n CompromisoProyecto compromisoProyecto = new CompromisoProyecto();\n compromisoProyecto.setCompromisoPeriodo(unCompromisoPeriodo);\n compromisoProyecto.setProyecto(proyecto);\n compromisoProyecto.setEstado(new Constantes(IConstantes.ESTADO_COMPROMISO_PROYECTO_PENDIENTE));\n compromisoProyecto.setFechaCreacion(new Date());\n compromisoProyecto.setMaquina(loginFaces.getPerfilUsuarioDTO().getMaquinaDTO().getIpLoginRemotoUsuario());\n compromisoProyecto.setUsuarioRegistro(loginFaces.getPerfilUsuarioDTO().getIdentificacion());\n compromisoProyecto.setUsuarioRolRegistra(usuarioRol);\n listaCompromisosProyecto.add(compromisoProyecto);\n }\n //CREAMOS LAS UNIDADES EJECUTORAS PARA EL PROYECTO\n List<EjecutorNecesidadDTO> listadoEjecutorNecesidadDTOPropuesta = iEjecutorNecesidadLocal.getEjecutorNecesidadDTOPorPropuestaNecesidad(this.propuestaSeleccionada.getIdPropuestaNecesidad());\n List<EjecutorNecesidad> listaEjecutorNecesidadProyecto = new ArrayList<EjecutorNecesidad>();\n for (EjecutorNecesidadDTO unaEjecutorNecesidadDTO : listadoEjecutorNecesidadDTOPropuesta) {\n EjecutorNecesidad ejecutorNecesidadLocal = new EjecutorNecesidad();\n ejecutorNecesidadLocal.setPropuestaNecesidad(new PropuestaNecesidad(this.propuestaSeleccionada.getIdPropuestaNecesidad()));\n ejecutorNecesidadLocal.setProyecto(proyecto);\n ejecutorNecesidadLocal.setRol(new Constantes(unaEjecutorNecesidadDTO.getIdRol()));\n ejecutorNecesidadLocal.setUnidadPolicial(this.iUnidadPolicialLocal.obtenerUnidadPolicialPorId(unaEjecutorNecesidadDTO.getIdUnidadPolicial()));\n listaEjecutorNecesidadProyecto.add(ejecutorNecesidadLocal);\n }\n proyecto.setEjecutorNecesidadList(listaEjecutorNecesidadProyecto);\n proyecto.setCompromisoProyectoList(listaCompromisosProyecto);\n\n } else if (this.propuestaSeleccionada.getConstantes().getIdConstantes().equals(\n IConstantes.CONSTANTES_ESTADO_PROPUESTA_NECESIDAD_REVISADA)) {\n this.propuestaSeleccionada.setConstantes(new Constantes(IConstantes.CONSTANTES_ESTADO_PROPUESTA_NECESIDAD_NO_APROBADA));\n }\n\n //ACTUALIZAMOS EL CAMPO ROL_ACTUAL\n //CON EL OBJETIVO SE SABER EN DONDE SE ENCUENTRA LA PROPUESTA\n //ESTO SE REALIZA PARA CORREGIR \n //LA INCIDENCIA #0002754: Mientras no se publiquen los resultados de las necesidades, el estado debe ser 'Enviada a VICIN'.\n this.propuestaSeleccionada.setRolActual(IConstantes.PROPUESTA_NECESIDAD_PUBLICADA_JEFE_UNIDAD);\n /* \n\n //GENERAMOS EL NOMBRE DEL ARCHIVO DEL REPORTE\n String nombreReporteUnico = \"PROP_NECES_PERIODO\".concat(\"_\").concat(String.valueOf(System.currentTimeMillis())).concat(\".pdf\");\n String nombreReporte = \"PROP_NECES_PERIODO_\" + (periodoSeleccionado.getAnio() == null ? periodoSeleccionado.getIdPeriodo().toString() : periodoSeleccionado.getAnio().toString()) + \".pdf\";\n */\n //SE ACTUALIZAN LAS PROPUESTAS DE NECESIDAD\n servicePropuestaNecesidad.guardarPropuestaYgenerarProyecto(\n this.propuestaSeleccionada,\n proyecto);\n\n addInfoMessage(keyPropertiesFactory.value(\"cu_ne_6_lbl_mensaje_propuestas_actualizadas_ok_publicar\"));\n\n navigationFaces.redirectFacesCuNe01();\n\n } catch (Exception e) {\n\n addErrorMessage(keyPropertiesFactory.value(\"general_mensaje_error_exception\"));\n Logger.getLogger(this.getClass().getName()).log(Level.SEVERE,\n \"CU-NE-06 Evaluar propuestas de necesidades de investigación - (publicarPropuestas)\", e);\n\n }\n\n }", "public ArrayList<Producto> getProductosOrdenados(ArrayList<Producto> productosEncontrados,Cliente comprador) {\n \n //Comparador para ordenar los productos por su urgencia y proximidad\n\n ArrayList <Producto> productosOrdenados=new ArrayList<>();\n ArrayList <Producto> muyCerca = new ArrayList<>();\n ArrayList <Producto> cerca = new ArrayList<>();\n ArrayList <Producto> lejos = new ArrayList<>();\n String codigoPostalComprador = comprador.getUbicacion().getCodigoPostal();\n String codigoPostalProducto;\n Comparator porUrgencia = new Comparator() { \n public int compare(Object o1, Object o2) {\n\n\n Producto p1 = (Producto)o1;\n Producto p2 = (Producto)o2;\n\n String bool1;\n String bool2;\n if(p1.getUrgente()){\n bool1=\"0\";\n }else{\n bool1=\"1\";\n }\n if(p2.getUrgente()){\n bool2=\"0\";\n }else{\n bool2=\"1\";\n }\n\n String b1 = bool1;\n String b2 = bool2; \n return b1.compareTo(b2);\n }\n };\n\n for(Producto cadaProducto : productosEncontrados){\n codigoPostalProducto=cadaProducto.getUbicacionCliente().getCodigoPostal();\n if(codigoPostalComprador.substring(0, 3).equalsIgnoreCase(codigoPostalProducto.substring(0, 3))){\n muyCerca.add(cadaProducto);\n }else{\n if(codigoPostalComprador.substring(0, 2).equalsIgnoreCase(codigoPostalProducto.substring(0, 2))){\n cerca.add(cadaProducto);\n }else{\n lejos.add(cadaProducto);\n }\n }\n\n }\n if(muyCerca.size()>0){ \n Collections.sort(muyCerca,porUrgencia);\n productosOrdenados.addAll(muyCerca);\n }\n if(cerca.size()>0){\n Collections.sort(cerca,porUrgencia);\n productosOrdenados.addAll(cerca);\n } \n if(lejos.size()>0){\n Collections.sort(lejos,porUrgencia);\n productosOrdenados.addAll(lejos);\n }\n return productosOrdenados;\n \n \n }", "public Solicitud obtenerSolicitudDevolucion(DTOSolicitudValidacion dtoSolicitud)\n throws MareException{\n UtilidadesLog.info(\"DAOSolicitudes.obtenerSolicitudDevolucion(DTOSolicitudValidacion dtoSolicitud):Entrada\");\n Solicitud solicitudDevolucion = null;\n DTOSolicitudValidacion dtoDevolucionPeriodoOriginal = new DTOSolicitudValidacion();\n dtoDevolucionPeriodoOriginal.setOidSolicitud( dtoSolicitud.getOidSolicitud() );\n \n //Este metodo modificara el oidSolicitud y el periodo de la solicitud de devolucion al de la solicitud devuelta.\n this.rellenarDevoluciones( dtoDevolucionPeriodoOriginal );\n \n if( ! dtoDevolucionPeriodoOriginal.getOidSolicitud().\n equals( dtoSolicitud.getOidSolicitud() ) ){\n //Si son distintos quiere decir que es una devolucion de una solicitud que genero puntos. \n \n dtoDevolucionPeriodoOriginal.setFechaProceso( dtoSolicitud.getFechaProceso() );\n dtoDevolucionPeriodoOriginal.setGP( dtoSolicitud.getGP() );\n dtoDevolucionPeriodoOriginal.setIndNoConso( dtoSolicitud.getIndNoConso() );\n dtoDevolucionPeriodoOriginal.setIndOrdenCompra( dtoSolicitud.getIndOrdenCompra() );\n dtoDevolucionPeriodoOriginal.setIndPedGTZona( dtoSolicitud.getIndPedGTZona() );\n dtoDevolucionPeriodoOriginal.setIndSimulacion( dtoSolicitud.getIndSimulacion() );\n dtoDevolucionPeriodoOriginal.setIndUnionSolicitud( dtoSolicitud.getIndUnionSolicitud() );\n dtoDevolucionPeriodoOriginal.setNumDecimales( dtoSolicitud.getNumDecimales());\n dtoDevolucionPeriodoOriginal.setNumSolicitud( dtoSolicitud.getNumSolicitud() );\n dtoDevolucionPeriodoOriginal.setOidAcceso( dtoSolicitud.getOidAcceso() );\n dtoDevolucionPeriodoOriginal.setOidCanal( dtoSolicitud.getOidCanal() );\n dtoDevolucionPeriodoOriginal.setOidCliente( dtoSolicitud.getOidCliente() );\n dtoDevolucionPeriodoOriginal.setOidMarca( dtoSolicitud.getOidMarca() );\n dtoDevolucionPeriodoOriginal.setOidModulo( dtoSolicitud.getOidModulo() );\n dtoDevolucionPeriodoOriginal.setOidMoneda( dtoSolicitud.getOidMoneda() );\n //BELC300024526 - gPineda - 29/11/2006\n //dtoDevolucionPeriodoOriginal.setOidPeriodo( dtoSolicitud.getOidPeriodo() );\n dtoDevolucionPeriodoOriginal.setOidSolicitud( dtoSolicitud.getOidSolicitud() );\n dtoDevolucionPeriodoOriginal.setOidSubAcceso( dtoSolicitud.getOidSubAcceso() );\n dtoDevolucionPeriodoOriginal.setOidTipoSolPais( dtoSolicitud.getOidTipoSolPais() ); \n dtoDevolucionPeriodoOriginal.setOrden( dtoSolicitud.getOrden() ); \n dtoDevolucionPeriodoOriginal.setOrdenMonitor( dtoSolicitud.getOrdenMonitor() );\n dtoDevolucionPeriodoOriginal.setProceso( dtoSolicitud.getProceso() );\n dtoDevolucionPeriodoOriginal.setTipoCambio( dtoSolicitud.getTipoCambio() );\n dtoDevolucionPeriodoOriginal.setUbigeo( dtoSolicitud.getUbigeo() );\n dtoDevolucionPeriodoOriginal.setZona( dtoSolicitud.getZona() );\n //cvalenzu - 7/12/2006 - faltaba el pais\n dtoDevolucionPeriodoOriginal.setOidPais(dtoSolicitud.getOidPais());\n //cvalenzu - 7/12/2006 - faltaba el pais\n \n solicitudDevolucion = this.obtenerSolicitud( dtoDevolucionPeriodoOriginal );\n }\n \n if(log.isDebugEnabled()) //sapaza -- cambio Optimizacion Logs -- 24/03/2010 \n UtilidadesLog.debug(\"solicitudDevolucion: \"+ solicitudDevolucion );\n \n UtilidadesLog.info(\"DAOSolicitudes.obtenerSolicitudDevolucion(DTOSolicitudValidacion dtoSolicitud):Salida\"); \n return solicitudDevolucion;\n }", "public Comparendo(int pId, Date pFechaHora,String pMedio , String pClaseVehiculo, String pTipoServicio, \r\n\t\t\tString pCodigoInfraccion, String pDescripcion, String pLocalidad, double pLatitud, \r\n\t\t\tdouble pLongitud)\r\n\t{\r\n\t\t\r\n\t\tid = pId;\r\n\t\t\r\n\t\tfechaHora = pFechaHora;\r\n\t\t\r\n\t\tmedio = pMedio;\r\n\t\t\r\n\t\tclaseVehiculo = pClaseVehiculo;\r\n\t\t\r\n\t\ttipoServicio = pTipoServicio;\r\n\t\t\r\n\t\tcodigoInfraccion = pCodigoInfraccion;\r\n\t\t\r\n\t\tdescripcion = pDescripcion;\r\n\t\t\r\n\t\tlocalidad = pLocalidad;\r\n\t\t\r\n\t\tlatitud = pLatitud;\r\n\t\t\r\n\t\tlongitud = pLongitud;\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t}", "public static void main(String[] args) {\n\t// write your code her\n\n //Crear objeto de la clase BeneficiosCovid19\n BeneficiosCovid19 beneficioscovid = new BeneficiosCovid19();\n\n // Declarar tamaño vector\n int nroarray;\n\n // Crear lista de la Clase BeneficiosCovid19\n ArrayList<BeneficiosCovid19> lista1 = new ArrayList<BeneficiosCovid19>();\n ArrayList<BeneficiosCovid19> lista2 = new ArrayList<BeneficiosCovid19>();\n\n //Ingresar Informacion al lista1\n nroarray= 1;\n lista1 = IngresarInfoLista(nroarray);\n /*\n for (int i = 0; i < lista1.size(); i++){\n System.out.println(\"ID: \" + lista1.get(i).getId());\n System.out.println(\"Nombre: \" + lista1.get(i).getNombre());\n System.out.println(\"Valor: \" + lista1.get(i).getValorSubsidio());\n }\n */\n\n //Ingresar Informacion al lista2\n nroarray= 2;\n lista2 = IngresarInfoLista(nroarray);\n /*\n for (int i = 0; i < lista2.size(); i++){\n System.out.println(\"ID: \" +lista2.get(i).getId());\n System.out.println(\"Nombre: \" +lista2.get(i).getNombre());\n System.out.println(\"Valor: \" +lista2.get(i).getValorSubsidio());\n }\n */\n\n //Comparar y mostra comparacion entre lista\n getMejorbeneficios(lista1,lista2);\n\n }", "public Collection<OsAtividadePeriodoExecucao> obterOsAtividadePeriodoExecucaoPorEquipe(Integer idEquipe, Date dataRoteiro)\n\t\t\t\t\tthrows ErroRepositorioException{\n\n\t\tCollection<Object[]> retornoConsulta = null;\n\t\tCollection<OsAtividadePeriodoExecucao> colecaoOsPeriodo = new ArrayList();\n\n\t\tSession session = HibernateUtil.getSession();\n\t\tString consulta = \"\";\n\t\ttry{\n\n\t\t\tconsulta = \"SELECT DISTINCT osAtividadePeriodoExecucao.id, \" // 0\n\t\t\t\t\t\t\t+ \"osAtividadePeriodoExecucao.dataInicio, \" // 1\n\t\t\t\t\t\t\t+ \"osAtividadePeriodoExecucao.dataFim \" // 2\n\t\t\t\t\t\t\t+ \"FROM OsExecucaoEquipe osExecucaoEquipe \"\n\t\t\t\t\t\t\t// + \"INNER JOIN osExecucaoEquipe.equipe equipe \"\n\t\t\t\t\t\t\t+ \"INNER JOIN osExecucaoEquipe.osAtividadePeriodoExecucao osAtividadePeriodoExecucao \"\n\t\t\t\t\t\t\t// +\n\t\t\t\t\t\t\t// \"INNER JOIN osAtividadePeriodoExecucao.ordemServicoAtividade ordemServicoAtividade \"\n\t\t\t\t\t\t\t+ \"WHERE osExecucaoEquipe.equipe.id = :idEquipe \"\n\t\t\t\t\t\t\t+ \"AND osAtividadePeriodoExecucao.ordemServicoAtividade.id IS NOT NULL \"\n\t\t\t\t\t\t\t+ \"AND day(osAtividadePeriodoExecucao.dataFim) = day(cast(:dataRoteiro as date)) \"\n\t\t\t\t\t\t\t+ \"AND month(osAtividadePeriodoExecucao.dataFim) = month(cast(:dataRoteiro as date)) \"\n\t\t\t\t\t\t\t+ \"AND year(osAtividadePeriodoExecucao.dataFim) = year(cast(:dataRoteiro as date)) \"\n\t\t\t\t\t\t\t+ \"ORDER BY osAtividadePeriodoExecucao.id \";\n\n\t\t\tretornoConsulta = (Collection<Object[]>) session.createQuery(consulta).setInteger(\"idEquipe\", idEquipe)\n\t\t\t\t\t\t\t.setDate(\"dataRoteiro\", dataRoteiro).list();\n\n\t\t\tif(retornoConsulta != null && !retornoConsulta.isEmpty()){\n\n\t\t\t\tOsAtividadePeriodoExecucao osAtividadePeriodoExecucao = null;\n\n\t\t\t\tfor(Object[] periodo : retornoConsulta){\n\n\t\t\t\t\tosAtividadePeriodoExecucao = new OsAtividadePeriodoExecucao();\n\n\t\t\t\t\tosAtividadePeriodoExecucao.setId((Integer) periodo[0]);\n\t\t\t\t\tosAtividadePeriodoExecucao.setDataInicio((Date) periodo[1]);\n\t\t\t\t\tosAtividadePeriodoExecucao.setDataFim((Date) periodo[2]);\n\n\t\t\t\t\tcolecaoOsPeriodo.add(osAtividadePeriodoExecucao);\n\t\t\t\t}\n\t\t\t}\n\t\t}catch(HibernateException e){\n\t\t\tthrow new ErroRepositorioException(e, \"Erro no Hibernate\");\n\t\t}finally{\n\t\t\tHibernateUtil.closeSession(session);\n\t\t}\n\t\treturn colecaoOsPeriodo;\n\t}", "private Filtro getFiltroFissiGiornoConto(Date data, int codConto) {\n /* variabili e costanti locali di lavoro */\n Filtro filtro = null;\n Filtro filtroDate = null;\n Filtro filtroInizio = null;\n Filtro filtroSincro;\n Filtro filtroVuota;\n Filtro filtroIntervallo;\n Filtro filtroFine;\n Filtro filtroConto = null;\n Modulo modConto;\n Date dataVuota;\n\n try { // prova ad eseguire il codice\n\n modConto = Progetto.getModulo(Conto.NOME_MODULO);\n\n filtroDate = new Filtro();\n\n filtroInizio = FiltroFactory.crea(Cam.dataInizioValidita.get(),\n Filtro.Op.MINORE_UGUALE,\n data);\n filtroSincro = FiltroFactory.crea(Cam.dataSincro.get(), Filtro.Op.MINORE, data);\n dataVuota = Lib.Data.getVuota();\n filtroVuota = FiltroFactory.crea(Cam.dataSincro.get(), dataVuota);\n\n filtroFine = FiltroFactory.crea(Cam.dataFineValidita.get(),\n Filtro.Op.MAGGIORE_UGUALE,\n data);\n filtroIntervallo = new Filtro();\n filtroIntervallo.add(filtroSincro);\n filtroIntervallo.add(filtroFine);\n\n filtroDate.add(filtroIntervallo);\n filtroDate.add(Filtro.Op.OR, filtroVuota);\n\n /* filtro per il conto */\n filtroConto = FiltroFactory.codice(modConto, codConto);\n\n filtro = new Filtro();\n filtro.add(filtroInizio);\n filtro.add(filtroDate);\n filtro.add(filtroConto);\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n /* valore di ritorno */\n return filtro;\n }", "@Test\r\n public void getCarritoDeComprasTest() {\r\n System.out.println(\"g entra\"+data);\r\n CarritoDeComprasEntity entity = data.get(0);\r\n CarritoDeComprasEntity newEntity = carritoDeComprasPersistence.find(entity.getId());\r\n Assert.assertNotNull(newEntity);\r\n Assert.assertEquals(entity.getTotalCostDeCarritoCompras(), newEntity.getTotalCostDeCarritoCompras());\r\n System.out.println(\"g voy\"+data);\r\n }", "@Override\n public Combinacion comprobarColores(Combinacion filaIntroducida) {\n Combinacion respuesta;\n\n\n ArrayList<Ficha> combinacionRespuesta = new ArrayList<>();\n ArrayList<Integer> fichasNegrasUtilizadas = new ArrayList<>();\n ArrayList<Integer> fichasTotalesUtilizadas = new ArrayList<>();\n boolean comprobado = false;\n Colores color = Colores.SC;\n\n // COMPROBAMOS LAS NEGRAS\n for (int i = 0; i < filaIntroducida.getCodigo().length; i++) {\n if (filaIntroducida.getCodigo()[i].equals(tablero.getCombinacionOculta().getCodigo()[i])) {\n combinacionRespuesta.add(new Ficha(Colores.NEGRO));\n fichasNegrasUtilizadas.add(i);\n }\n }\n\n fichasTotalesUtilizadas.addAll(fichasNegrasUtilizadas);\n // SEPARAMOS NEGRAS DE BLANCAS\n\n for (int i = 0; i < filaIntroducida.getCodigo().length; i++) {\n if (!fichasNegrasUtilizadas.contains(i)) {\n for (int j = 0; j < filaIntroducida.getCodigo().length && !comprobado; j++) {\n if (!fichasTotalesUtilizadas.contains(j)) {\n if (filaIntroducida.getCodigo()[i].equals(tablero.getCombinacionOculta().getCodigo()[j])) {\n color = Colores.BLANCO;\n fichasTotalesUtilizadas.add(j);\n comprobado = true;\n } else {\n color = Colores.SC;\n }\n }\n }\n combinacionRespuesta.add(new Ficha(color));\n comprobado = false;\n }\n }\n\n combinacionRespuesta.sort(new Comparator<Ficha>() {\n @Override\n public int compare(Ficha o1, Ficha o2) {\n return o1.getColor().compareTo(o2.getColor());\n }\n });\n\n respuesta = new Combinacion(combinacionRespuesta.toArray(new Ficha[combinacionRespuesta.size()]));\n\n // MODO MEDIO Y FACIL\n\n return respuesta;\n }", "public DatosIteracion mejorIteracionOptimizada(\r\n\t\t\tArrayList<DatosIteracion> datos) {\r\n\t\tDatosIteracion d = new DatosIteracion(\"auxiliar\");\r\n\t\tLectura l = new Lectura(999999, 0, 0);\r\n\t\td.getValoresLecturas().add(l);\r\n\r\n\t\tfor (int i = 0; i < datos.size(); i++) {\r\n\r\n\t\t\tif ((d.getValoresLecturas(d.getValoresLecturas().size() - 1)\r\n\t\t\t\t\t.getCapturados() / (d.getValoresLecturas(\r\n\t\t\t\t\td.getValoresLecturas().size() - 1).getTiempo() + 1)) < (datos\r\n\t\t\t\t\t.get(i)\r\n\t\t\t\t\t.getValoresLecturas(\r\n\t\t\t\t\t\t\tdatos.get(i).getValoresLecturas().size() - 1)\r\n\t\t\t\t\t.getCapturados() / (datos\r\n\t\t\t\t\t.get(i)\r\n\t\t\t\t\t.getValoresLecturas(\r\n\t\t\t\t\t\t\tdatos.get(i).getValoresLecturas().size() - 1)\r\n\t\t\t\t\t.getTiempo() + 1))) {\r\n\r\n\t\t\t\td = datos.get(i);\r\n\t\t\t}\r\n\r\n\t\t\tif ((d.getValoresLecturas(d.getValoresLecturas().size() - 1)\r\n\t\t\t\t\t.getCapturados() / (d.getValoresLecturas(\r\n\t\t\t\t\td.getValoresLecturas().size() - 1).getTiempo() + 1)) == (datos\r\n\t\t\t\t\t.get(i)\r\n\t\t\t\t\t.getValoresLecturas(\r\n\t\t\t\t\t\t\tdatos.get(i).getValoresLecturas().size() - 1)\r\n\t\t\t\t\t.getCapturados() / (datos\r\n\t\t\t\t\t.get(i)\r\n\t\t\t\t\t.getValoresLecturas(\r\n\t\t\t\t\t\t\tdatos.get(i).getValoresLecturas().size() - 1)\r\n\t\t\t\t\t.getTiempo() + 1))) {\r\n\r\n\t\t\t\tif (d.getValoresLecturas(d.getValoresLecturas().size() - 1)\r\n\t\t\t\t\t\t.getTiempo() > datos\r\n\t\t\t\t\t\t.get(i)\r\n\t\t\t\t\t\t.getValoresLecturas(\r\n\t\t\t\t\t\t\t\tdatos.get(i).getValoresLecturas().size() - 1)\r\n\t\t\t\t\t\t.getTiempo()) {\r\n\r\n\t\t\t\t\td = datos.get(i);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn d;\r\n\t}", "public void reporteHabitacionMasPopular(TablaModelo modelo){\n ArrayList<ControlVeces> control = new ArrayList<>();\n ControlVeces controlador;\n try {// pago de alojamiento en rango fchas\n PreparedStatement declaracion;// prepara la orden \n declaracion = conexion.prepareStatement(\"SELECT ALOJAMIENTO.Id,ALOJAMIENTO.Id_Reservacion,RESERVACION.Fecha_Entrada, RESERVACION.Fecha_Salida,RESERVACION.Precio, RESERVACION.Id_Habitacion FROM RESERVACION JOIN ALOJAMIENTO WHERE RESERVACION.Id=ALOJAMIENTO.Id_Reservacion AND RESERVACION.Check_In=1;\");\n ResultSet resultado = declaracion.executeQuery();\n while (resultado.next()) {// pago de alojamiento en rango fchas\n String nombre = Integer.toString(resultado.getInt(6));\n int casilla = numeroObjeto(control,nombre);\n if(casilla>=0){// maneja el resultado// pago de alojamiento en rango fchas\n control.get(casilla).setVeces(control.get(casilla).getVeces()+1);\n }else{// maneja el resultado\n controlador = new ControlVeces(nombre);// pago de alojamiento en rango fchas\n control.add(controlador);\n }\n } // maneja el resultado \n ordenamiento(control);\n int numero = control.size()-1;// el de hasta arriba es el que mas elementos tiene \n String idHabitacionMasPopular = control.get(numero).getNombre();\n this.habitacionPopular= idHabitacionMasPopular;\n introducirDatosHabitacionMasPopular(modelo, idHabitacionMasPopular);\n } catch (SQLException ex) {\n ex.printStackTrace();\n } catch(Exception e){\n \n }\n }", "@Override\r\n\t\t\t\tpublic int compare(Comparendo o1, Comparendo o2) \r\n\t\t\t\t{\n\t\t\t\t\treturn o1.fechaHora.compareTo(o2.fechaHora);\r\n\t\t\t\t}", "public void provocarEvolucion(Tribu tribuJugador, Tribu tribuDerrotada){\r\n System.out.println(\"\\n\");\r\n System.out.println(\"-------------------Fase de evolución ----------------------\");\r\n int indiceAtributo;\r\n int indiceAtributo2;\r\n double golpeViejo = determinarGolpe(tribuJugador);\r\n for(int i = 1; i <= 10 ; i++){\r\n System.out.println(\"Iteración número: \" + i);\r\n indiceAtributo = (int)(Math.random() * 8);\r\n indiceAtributo2 = (int)(Math.random() * 8);\r\n String nombreAtributo1 = determinarNombrePosicion(indiceAtributo);\r\n String nombreAtributo2 = determinarNombrePosicion(indiceAtributo2);\r\n if((tribuJugador.getArray()[indiceAtributo] < tribuDerrotada.getArray()[indiceAtributo] \r\n && (tribuJugador.getArray()[indiceAtributo2] < tribuDerrotada.getArray()[indiceAtributo2]))){\r\n System.out.println(\"Se cambió el atributo \" + nombreAtributo1 + \" de la tribu del jugador porque\"\r\n + \" el valor era \" + tribuJugador.getArray()[indiceAtributo] + \" y el de la tribu enemeiga era de \"\r\n + tribuDerrotada.getArray()[indiceAtributo] + \" esto permite hacer más fuerte la tribu del jugador.\");\r\n \r\n tribuJugador.getArray()[indiceAtributo] = tribuDerrotada.getArray()[indiceAtributo];\r\n \r\n System.out.println(\"Se cambió el atributo \" + nombreAtributo2 + \" de la tribu del jugador porque\"\r\n + \" el valor era \" + tribuJugador.getArray()[indiceAtributo2] + \" y el de la tribu enemeiga era de \"\r\n + tribuDerrotada.getArray()[indiceAtributo2] + \" esto permite hacer más fuerte la tribu del jugador.\");\r\n \r\n tribuJugador.getArray()[indiceAtributo2] = tribuDerrotada.getArray()[indiceAtributo2];\r\n }\r\n }\r\n double golpeNuevo = determinarGolpe(tribuJugador);\r\n if(golpeNuevo > golpeViejo){\r\n tribus.replace(tribuJugador.getNombre(), determinarGolpe(tribuJugador));\r\n System.out.println(\"\\nTribu evolucionada\");\r\n imprimirAtributos(tribuJugador);\r\n System.out.println(\"\\n\");\r\n System.out.println(tribus);\r\n }\r\n else{\r\n System.out.println(\"\\nTribu sin evolucionar\");\r\n System.out.println(\"La tribu no evolucionó porque no se encontraron atributos\"\r\n + \" que permitiesen crecer su golpe\");\r\n imprimirAtributos(tribuJugador);\r\n System.out.println(\"\\n\");\r\n System.out.println(tribus);\r\n }\r\n }", "@Override\r\n public ViviendaEntity toEntity() {\r\n ViviendaEntity viviendaEntity = super.toEntity();\r\n if (contratos != null) {\r\n List<ContratoEntity> contratosEntity = new ArrayList<>();\r\n for (ContratoDTO dtoContrato : contratos) {\r\n contratosEntity.add(dtoContrato.toEntity());\r\n }\r\n viviendaEntity.setContratos(contratosEntity);\r\n }\r\n\r\n if (cuartos != null) {\r\n List<CuartoEntity> cuartoEntities = new ArrayList<>();\r\n for (CuartoDTO dto : cuartos) {\r\n cuartoEntities.add(dto.toEntity());\r\n }\r\n viviendaEntity.setCuartos(cuartoEntities);\r\n }\r\n\r\n if (sitiosDeInteres != null) {\r\n List<SitioInteresEntity> entities = new ArrayList<>();\r\n for (SitioInteresDTO dto : sitiosDeInteres) {\r\n entities.add(dto.toEntity());\r\n }\r\n viviendaEntity.setSitiosDeInteres(entities);\r\n }\r\n\r\n if (calificaciones != null) {\r\n List<CalificacionEntity> entities = new ArrayList<>();\r\n for (CalificacionDTO dto : calificaciones) {\r\n entities.add(dto.toEntity());\r\n }\r\n viviendaEntity.setCalificaciones(entities);\r\n }\r\n\r\n if (serviciosOfrecidos != null) {\r\n viviendaEntity.setServiciosIncluidos(serviciosOfrecidos);\r\n }\r\n\r\n if (serviciosAdicionales != null) {\r\n List<ServicioAdicionalEntity> entities = new ArrayList<>();\r\n for (ServicioAdicionalDTO dto : serviciosAdicionales) {\r\n entities.add(dto.toEntity());\r\n }\r\n viviendaEntity.setServiciosAdicionales(entities);\r\n }\r\n\r\n return viviendaEntity;\r\n }", "public void preencherDisponibilidadesOferta() {\n\n //List<Disponibilidade> disponibilidades;\n List<Disp> disponibilidades;\n \n if (oferta != null) {\n //disponibilidades = new ArrayList<>(oferta.getDisponibilidades());\n disponibilidades = new ArrayList<>(oferta.getDispo());\n } else {\n disponibilidades = new ArrayList<>();\n }\n //dispDataModel = new DisponibilidadeDataModel(disponibilidades);\n dispDataModel = new DispDataModel(disponibilidades);\n }", "private void verificarDatos(int fila) {\n try {\n colValidada = -1;\n\n float cantidad = 1;\n float descuento = 0;\n float precio = 1;\n float stock = 1;\n if (TblOrdenCompraDetalle.getValueAt(fila, oCLOrdenCompra.colCantidad) != null) {\n cantidad = Float.parseFloat(TblOrdenCompraDetalle.getValueAt(fila, oCLOrdenCompra.colCantidad).toString());\n }\n if (TblOrdenCompraDetalle.getValueAt(fila, oCLOrdenCompra.colPrecioConIGV) != null) {\n precio = Float.parseFloat(TblOrdenCompraDetalle.getValueAt(fila, oCLOrdenCompra.colPrecioConIGV).toString());\n }\n if (TblOrdenCompraDetalle.getValueAt(fila, oCLOrdenCompra.colDescuento) != null) {\n descuento = Float.parseFloat(TblOrdenCompraDetalle.getValueAt(fila, oCLOrdenCompra.colDescuento).toString());\n }\n\n if (precio < 0) {\n JOptionPane.showMessageDialog(this, \"el precio debe ser mayor a cero\");\n TblOrdenCompraDetalle.setValueAt(null, fila, oCLOrdenCompra.colPrecioConIGV);\n TblOrdenCompraDetalle.setValueAt(null, fila, oCLOrdenCompra.colImporSinDesc);\n TblOrdenCompraDetalle.setValueAt(null, fila, oCLOrdenCompra.colImporSinDescConIgv);\n colValidada = oCLOrdenCompra.colPrecioConIGV;\n return;\n }\n\n if (descuento > cantidad * precio) {\n JOptionPane.showMessageDialog(this, \"El descuento no puede ser mayor al Importe Bruto\");\n TblOrdenCompraDetalle.setValueAt(null, fila, oCLOrdenCompra.colDescuento);\n descuento = 0;\n TblOrdenCompraDetalle.setValueAt(CLRedondear.Redondear((cantidad * precio) - descuento, 2), fila, oCLOrdenCompra.colImporConDesc);//con\n oCLOrdenCompra.CalcularSubtotales();\n oCLOrdenCompra.calcularImportes();\n\n colValidada = oCLOrdenCompra.colDescuento;\n return;\n }\n\n if (descuento < 0) {\n JOptionPane.showMessageDialog(this, \"El descuento no puede ser menor a cero\");\n TblOrdenCompraDetalle.setValueAt(null, fila, oCLOrdenCompra.colDescuento);\n descuento = 0;\n TblOrdenCompraDetalle.setValueAt(CLRedondear.Redondear((cantidad * precio) - descuento, 2), fila, oCLOrdenCompra.colImporConDesc);//con\n colValidada = oCLOrdenCompra.colDescuento;\n return;\n }\n\n if (cantidad <= 0) {\n JOptionPane.showMessageDialog(this, \"La cantidad debe ser mayor a cero\");\n TblOrdenCompraDetalle.setValueAt(null, fila, oCLOrdenCompra.colCantidad);\n colValidada = oCLOrdenCompra.colCantidad;\n return;\n }\n /* if(precio<=0)\n {\n JOptionPane.showMessageDialog(null,\"El precio tiene q ser mayor a cero\");\n colValidada=oCLOrdenCompra.colPrecio;\n return;\n }*/\n if (TblOrdenCompraDetalle.getValueAt(fila, oCLOrdenCompra.colStock) != null) {\n stock = Float.parseFloat(TblOrdenCompraDetalle.getValueAt(fila, oCLOrdenCompra.colStock).toString());\n }\n if (cantidad > stock) {\n /* JOptionPane.showMessageDialog(null,\"La cantidad no debe ser mayor al stock disponible\");\n TblOrdenCompraDetalle.setValueAt(null, fila,oCLOrdenCompra.colCantidad);\n colValidada=oCLOrdenCompra.colCantidad;\n return;*/\n }\n\n int col = TblOrdenCompraDetalle.getSelectedColumn();\n if (!eventoGuardar) {\n if (col == oCLOrdenCompra.colCantidad) {\n oCLOrdenCompra.calcularPrecio(fila);\n }\n }\n\n } catch (Exception e) {\n cont++;\n System.out.println(\"dlgGestionOrdenCompra-metodo Verificar datos: \"+e);\n }\n }", "public CalMetasDTO leerRegistro() {\n/* */ try {\n/* 56 */ CalMetasDTO reg = new CalMetasDTO();\n/* 57 */ reg.setCodigoCiclo(this.rs.getInt(\"codigo_ciclo\"));\n/* 58 */ reg.setCodigoPlan(this.rs.getInt(\"codigo_plan\"));\n/* 59 */ reg.setCodigoMeta(this.rs.getInt(\"codigo_meta\"));\n/* 60 */ reg.setCodigoObjetivo(this.rs.getInt(\"codigo_objetivo\"));\n/* 61 */ reg.setDescripcion(this.rs.getString(\"descripcion\"));\n/* 62 */ reg.setJustificacion(this.rs.getString(\"justificacion\"));\n/* 63 */ reg.setValorMeta(this.rs.getDouble(\"valor_meta\"));\n/* 64 */ reg.setTipoMedicion(this.rs.getString(\"tipo_medicion\"));\n/* 65 */ reg.setFuenteDato(this.rs.getString(\"fuente_dato\"));\n/* 66 */ reg.setAplicaEn(this.rs.getString(\"aplica_en\"));\n/* 67 */ reg.setUnidadMedida(this.rs.getString(\"unidad_medida\"));\n/* 68 */ reg.setValorMinimo(this.rs.getDouble(\"valor_minimo\"));\n/* 69 */ reg.setValorMaximo(this.rs.getDouble(\"valor_maximo\"));\n/* 70 */ reg.setMes01(this.rs.getString(\"mes01\"));\n/* 71 */ reg.setMes02(this.rs.getString(\"mes02\"));\n/* 72 */ reg.setMes03(this.rs.getString(\"mes03\"));\n/* 73 */ reg.setMes04(this.rs.getString(\"mes04\"));\n/* 74 */ reg.setMes05(this.rs.getString(\"mes05\"));\n/* 75 */ reg.setMes06(this.rs.getString(\"mes06\"));\n/* 76 */ reg.setMes07(this.rs.getString(\"mes07\"));\n/* 77 */ reg.setMes08(this.rs.getString(\"mes08\"));\n/* 78 */ reg.setMes09(this.rs.getString(\"mes09\"));\n/* 79 */ reg.setMes10(this.rs.getString(\"mes10\"));\n/* 80 */ reg.setMes11(this.rs.getString(\"mes11\"));\n/* 81 */ reg.setMes12(this.rs.getString(\"mes12\"));\n/* 82 */ reg.setEstado(this.rs.getString(\"estado\"));\n/* 83 */ reg.setTipoGrafica(this.rs.getString(\"tipo_grafica\"));\n/* 84 */ reg.setFechaInsercion(this.rs.getString(\"fecha_insercion\"));\n/* 85 */ reg.setUsuarioInsercion(this.rs.getString(\"usuario_insercion\"));\n/* 86 */ reg.setFechaModificacion(this.rs.getString(\"fecha_modificacion\"));\n/* 87 */ reg.setUsuarioModificacion(this.rs.getString(\"usuario_modificacion\"));\n/* 88 */ reg.setNombreTipoMedicion(this.rs.getString(\"nombreTipoMedicion\"));\n/* 89 */ reg.setNombreEstado(this.rs.getString(\"nombreEstado\"));\n/* 90 */ reg.setNombreUnidadMedida(this.rs.getString(\"nombre_unidad_medida\"));\n/* */ \n/* */ try {\n/* 93 */ reg.setNumeroAcciones(this.rs.getInt(\"acciones\"));\n/* */ }\n/* 95 */ catch (Exception e) {}\n/* */ \n/* */ \n/* */ \n/* 99 */ return reg;\n/* */ }\n/* 101 */ catch (Exception e) {\n/* 102 */ e.printStackTrace();\n/* 103 */ Utilidades.writeError(\"CalPlanMetasFactory:leerRegistro \", e);\n/* */ \n/* 105 */ return null;\n/* */ } \n/* */ }", "public static Result comp2(){\n\t\t\t\n\t\t\t//Requête pour récupèrer le nombre de viols en espagne\n\t \t //requete pour recuperer les valeurs , les dates et les pays avec filtre date et pays \n\t \t// creattion d modele \n\t\t\tModel m = ModelFactory.createDefaultModel();\n\t\t\t // j'int�gre mon modele dans un autre modele inf�r� \n\t\t\tInfModel infm = ModelFactory.createRDFSModel(m);\n\t\t\t // je lis les deus fichier .RDF et .ttl pour le sujet crime \t\t\n\t\t\tString ns = \"http://www.StatisticSquade.fr#\";\n\t\t \tinfm.setNsPrefix(\"StatisticSquade\", ns);\n\t\t \t/// name space de eurostat\n\t\t \tString nsEuro = \"http://eurostat.linked-statistics.org/data/\";\n\t\t\tinfm.setNsPrefix(\"Eurostat\", nsEuro);\n\t\t\tFileManager.get().readModel(infm, rdf_file0 );\n\t\t\tFileManager.get().readModel(infm, rdf_file1 ); \n\t\t\t\n\t\t\t//Construction dynamique des requêtes\n\t\t\t/**\n\t\t\t * Récupération des pays\n\t\t\t */\n\t\t\n\t\t\t/**\n\t\t\t * \n\t\t\t * récupétation autes\n\t\t\t */\n\t\t\tString pays = Form.form().bindFromRequest().get(\"pays\");\n\t\t\tanneeDebut = Form.form().bindFromRequest().get(\"anneeDebut\");\n\t\t\tanneeFin = Form.form().bindFromRequest().get(\"anneeFin\");\n\t\t\tString sujet1 = Form.form().bindFromRequest().get(\"sujet1\");\n\t\t\tString sujet2 = Form.form().bindFromRequest().get(\"sujet2\");\n\t\t\tString [] tabAnneeDebut = anneeDebut.split(\"-\");\n\t String anneeD = tabAnneeDebut[0];\n\t int aDebut = Integer.parseInt(anneeD);\n\t String [] tabAnneeFin = anneeFin.split(\"-\");\n\t String anneeF = tabAnneeFin[0];\n\t int aFin = Integer.parseInt(anneeF);\n\t if(aFin < aDebut){\n\t \tString anneeTemp = anneeDebut;\n\t \tanneeDebut = anneeFin;\n\t \tanneeFin = anneeTemp;\n\t }\n\n\t String rdq1 = \n\t\t \t\t\t \n\t\t\t \t\t\"PREFIX sdmx-dimension: <http://purl.org/linked-data/sdmx/2009/dimension#>\" +\n\t\t\t\t\t\"PREFIX property: <http://eurostat.linked-statistics.org/property#>\" +\n\t\t\t \"PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>\" +\n\t\t\t\t \"PREFIX sdmx-measure: <http://purl.org/linked-data/sdmx/2009/measure#>\" +\n\t\t\t\t \"PREFIX skos: <http://www.w3.org/2004/02/skos/core#>\" +\n\t\t\t\t \"PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>\" +\n\t\t\t\t \"PREFIX qb: <http://purl.org/linked-data/cube#>\" +\n\t\t\t\t \"PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>\" +\n\t\t\t\t \"PREFIX StatisticSquade: <http://www.StatisticSquade.fr#>\" +\n\t\t\t\t \n\t\t\t \t\t\"SELECT \" +\n\t\t\t \t\" ?Pays ?Date ?Valeur \" +\n\t\t\t\t\t \t\t\"FROM <http://eurostat.linked-statistics.org/data/crim_gen.rdf>\" +\n\t\t\t\t\t \t\t\"FROM <http://eurostat.linked-statistics.org/dsd/crim_gen.ttl>\" +\n\t\t\t \t\t\"WHERE {\" +\n\t\t\t \t\t\t\t\t\" ?x sdmx-dimension:timePeriod ?Date . \" +\n\t\t\t\t\t\t \t\t\" ?x sdmx-measure:obsValue ?Valeur .\" +\n\t\t\t\t\t \t\t \"?x property:geo ?y .\" +\n\t\t\t\t\t \t\t \"?y skos:prefLabel ?Pays .\" +\n\t\t\t\t\t\t \t\t \" ?x property:crim ?z . \" +\n\t\t\t\t\t\t \t \t \"?z skos:notation ?l . \" +\n\t\t\t\t\t\t \t\t \"FILTER regex( ?l ,\\\"\"+sujet1+\"\\\" ) . \" +\n\n\t\t\t\t\t\t \t\t\" FILTER ( ?Date >= \\\"\"+anneeDebut+\"\\\"^^xsd:date && ?Date <= \\\"\"+anneeFin+\"\\\"^^xsd:date ) .\" +\n\t\t\t\t\t\t \t\t\"FILTER regex (?Pays , \\\"\"+pays+\"\\\" ) . \" +\n\t\t\t \t\t\" } \"; \n\t\t \n\t\tString rdq2 = \n\t \t\t\t \n\t\t\t \t\t\"PREFIX sdmx-dimension: <http://purl.org/linked-data/sdmx/2009/dimension#>\" +\n\t\t\t\t\t\"PREFIX property: <http://eurostat.linked-statistics.org/property#>\" +\n\t\t\t \"PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>\" +\n\t\t\t\t \"PREFIX sdmx-measure: <http://purl.org/linked-data/sdmx/2009/measure#>\" +\n\t\t\t\t \"PREFIX skos: <http://www.w3.org/2004/02/skos/core#>\" +\n\t\t\t\t \"PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>\" +\n\t\t\t\t \"PREFIX qb: <http://purl.org/linked-data/cube#>\" +\n\t\t\t\t \"PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>\" +\n\t\t\t\t \"PREFIX StatisticSquade: <http://www.StatisticSquade.fr#>\" +\n\t\t\t\t \n\t\t\t \t\t\"SELECT \" +\n\t\t\t \t\" ?Pays ?Date ?Valeur \" +\n\t\t\t\t\t \t\t\"FROM <http://eurostat.linked-statistics.org/data/crim_gen.rdf>\" +\n\t\t\t\t\t \t\t\"FROM <http://eurostat.linked-statistics.org/dsd/crim_gen.ttl>\" +\n\t\t\t \t\t\"WHERE {\" +\n\t\t\t \t\t\t\t\t\" ?x sdmx-dimension:timePeriod ?Date . \" +\n\t\t\t\t\t\t \t\t\" ?x sdmx-measure:obsValue ?Valeur .\" +\n\t\t\t\t\t \t\t \"?x property:geo ?y .\" +\n\t\t\t\t\t \t\t \"?y skos:prefLabel ?Pays .\" +\n\t\t\t\t\t\t \t\t \" ?x property:crim ?z . \" +\n\t\t\t\t\t\t \t \t \"?z skos:notation ?l . \" +\n\t\t\t\t\t\t \t\t \"FILTER regex( ?l ,\\\"\"+sujet2+\"\\\" ) . \" +\n\n\t\t\t\t\t\t \t\t\" FILTER ( ?Date >= \\\"\"+anneeDebut+\"\\\"^^xsd:date && ?Date <= \\\"\"+anneeFin+\"\\\"^^xsd:date ) .\" +\n\t\t\t\t\t\t \t\t\"FILTER regex (?Pays , \\\"\"+pays+\"\\\" ) . \" +\n\t\t\t \t\t\" } \";\n\t\t\n \n //mapping entre sujets et leurs codes\n HashMap<String,String> codeToSujet = new HashMap<String,String>();\n codeToSujet.put(\"DBURG\", \"Cambriolages dans un lieu d'habitation\");\n codeToSujet.put(\"DRUGT\", \"Trafic de stupéfiants\");\n codeToSujet.put(\"HCIDE\", \"Homicides\");\n codeToSujet.put(\"VTHFT\", \"Vols de véhicules à moteur\");\n codeToSujet.put(\"VIOLT\", \"Crimes et délits violents\");\n codeToSujet.put(\"ROBBR\", \"Vols avec violences\");\n\t\t\t\n //Execution des requêtes\n /**\n * Requête 1\n */\n Query query1 = QueryFactory.create(rdq1); \n\t QueryExecution qexec1 = QueryExecutionFactory.create(query1,m);\n\t /////////\n\t ResultSet rs1 = qexec1.execSelect() ;\n\t //Transformation en List de querySolution\n\t List<QuerySolution> liste1 = ResultSetFormatter.toList(rs1);\n\t Iterator<QuerySolution> it1 = liste1.iterator();\n \n ////////// Mise des résultats dans une hashmap\n HashMap<Integer,String> map1 = new HashMap<Integer,String>(); \n ArrayList<String> donneesString1 = new ArrayList<String>();\n while(it1.hasNext()){\n \t \n \t QuerySolution elt1 = it1.next();\n String anneeElt1 = elt1.get(\"Date\").toString();\n String valeur1 = elt1.get(\"Valeur\").toString();\n String [] tabAnnee1 = anneeElt1.split(\"-\");\n String annee1 = tabAnnee1[0];\n map1.put(Integer.parseInt(annee1), valeur1);\t \n donneesString1.add(valeur1);\n }\n //Pour ordonner la HashMap en se basant sur la clé\n TreeMap<Integer, String> mapOrd1 = new TreeMap<Integer,String>(map1);\n /**\n * Requete 2\n */\n Query query2 = QueryFactory.create(rdq2); \n\t QueryExecution qexec2 = QueryExecutionFactory.create(query2,m);\n\t /////////\n\t ResultSet rs2 = qexec2.execSelect() ;\n\t //Transformation en List de querySolution\n\t List<QuerySolution> liste2 = ResultSetFormatter.toList(rs2);\n\t Iterator<QuerySolution> it2 = liste2.iterator();\n \n ////////// Mise des résultats dans une hashmap\n HashMap<Integer,String> map2 = new HashMap<Integer,String>(); \n ArrayList<String> donneesString2 = new ArrayList<String>();\n while(it2.hasNext()){\n \t \n \t QuerySolution elt2 = it2.next();\n String anneeElt2 = elt2.get(\"Date\").toString();\n String valeur2 = elt2.get(\"Valeur\").toString();\n String [] tabAnnee2 = anneeElt2.split(\"-\");\n String annee2 = tabAnnee2[0];\n map2.put(Integer.parseInt(annee2), valeur2);\t \n donneesString2.add(valeur2);\n }\n //Pour ordonner la HashMap en se basant sur la clé\n TreeMap<Integer, String> mapOrd2 = new TreeMap<Integer,String>(map2);\n \n //////////\n JsonObject title = new JsonObject();\n title.put(\"text\", \"Nombre de \"+codeToSujet.get(sujet1)+\" et de \"+codeToSujet.get(sujet2));\n \n JsonObject subtitle = new JsonObject();\n subtitle.put(\"text\", pays);\n \n JsonObject xAxis = new JsonObject();\n xAxis.put(\"type\", \"value\");\n \n JsonObject titleY = new JsonObject();\n titleY.put(\"text\", \"valeurs :\");\n JsonObject yAxis = new JsonObject();\n yAxis.put(\"title\", titleY);\n yAxis.put(\"min\", 0);\n \n JsonArray series = new JsonArray();\n \n JsonObject objSerie1 = new JsonObject();\n objSerie1.put(\"name\", codeToSujet.get(sujet1));\n JsonArray data1 = new JsonArray();\n for(Entry<Integer, String> entry1 : mapOrd1.entrySet()){\n \t \n \t JsonArray eltData1 = new JsonArray();\n eltData1.add(entry1.getKey());\n eltData1.add(Integer.parseInt(entry1.getValue()));\n data1.add(eltData1);\n \n }\n objSerie1.put(\"data\",data1);\n series.add(objSerie1);\n \n \n \n JsonObject objSerie2 = new JsonObject();\n objSerie2.put(\"name\", codeToSujet.get(sujet2));\n JsonArray data2 = new JsonArray(); \n for(Entry<Integer, String> entry2 : mapOrd2.entrySet()){\n \t \n \t JsonArray eltData2 = new JsonArray();\n eltData2.add(entry2.getKey());\n eltData2.add(Integer.parseInt(entry2.getValue()));\n data2.add(eltData2);\n }\t \n objSerie2.put(\"data\",data2); \n series.add(objSerie2);\n \n \n //Ajouter au graphe\n JsonObject graphe = new JsonObject();\n graphe.put(\"title\", title);\n graphe.put(\"subtitle\", subtitle);\n graphe.put(\"xAxis\", xAxis);\n graphe.put(\"yAxis\", yAxis);\n graphe.put(\"series\", series);\n /**\n * \n * données statistiques\n */\n \n \n StatisticsComputation myStats = new StatisticsComputation(donneesString1, donneesString2);\n double covariance = myStats.covariance();\n\t\tdouble pearsonsCorrelation = myStats.pearsonsCorrelation();\n\t\tSystem.out.println(\"Ma covariance \" + covariance);\n\t\tSystem.out.println(\"Ma correlation \" + pearsonsCorrelation);\n\t\tdouble mean = myStats.mean();\n\t\tdouble standardDeviation = myStats.standardDeviation();\n\t\tSystem.out.println(\"Ma moyenne \" + mean);\n\t\tSystem.out.println(\"Mon écart-type \" + standardDeviation);\n\n /**\n * \n * Données statistiques fin\n */\n\t\t/**\n\t\t * Ajout au graphe\n\t\t */\n\t\tGraphCreation gc = new GraphCreation(\"crim_gen\");\n\t\tgc.postGraph(sujet1+\"-\"+sujet2+\"-\"+pays, sujet1+pays, sujet2+pays, anneeDebut, anneeFin, \n\t\t\t\t Double.toString(pearsonsCorrelation), Double.toString(mean), Double.toString(standardDeviation), \n\t\t\t\t Double.toString(covariance));\n\t\tgc.save();\n\t\t\n\t\tString ip = request().remoteAddress();\n ArrayList<String> listeComments = gc.getComments(sujet1+\"-\"+sujet2+\"-\"+pays, false); \n if(listeComments !=null){\n\t\tIterator<String> it = listeComments.iterator();\n\t\tList<Comment> listeCom = new ArrayList<Comment>();\n\t\twhile(it.hasNext()){\n\t\t\tString elt = it.next();\n\t\t\tString [] tab = elt.split(\";\");\n\t\t\tString nomRecup = tab[0];\n\t\t\tString dateRecup = tab[1];\n\t\t\tString contenuRecup = tab[2];\n\t\t\tComment comment1 = new Comment(nomRecup,dateRecup,contenuRecup);\n\t\t\tlisteCom.add(comment1);\n\t\t}\n\t\tGraphe g = new Graphe(graphe.toString(),covariance,pearsonsCorrelation,mean,standardDeviation,listeCom,ip,sujet1+\"-\"+sujet2+\"-\"+pays,null);\n\t\treturn ok(comp2.render(g));\n }else{\n \tGraphe g = new Graphe(graphe.toString(),covariance,pearsonsCorrelation,mean,standardDeviation,null,ip,sujet1+\"-\"+sujet2+\"-\"+pays,null);\n \t\treturn ok(comp2.render(g));\t\n \t\n }\n\t\t \n\t\t \n\t \t\n\t \t\n\t }", "public void evaluaVisibilidad(int posX, int posY)\n {\n \n /** Contiene todas las posibles casillas visibles.\n * Si en el proceso una casilla tapa, pasa a modo 'oclusion, y ocluye las demás hasta que llega al punto final (Las quita del Array)\n */\n this.casillasVisibles=new TreeSet<>();\n \n //Realizar la interpolacion\n boolean visible=true;\n CoordCasilla origen=new CoordCasilla(posX , posY);\n CoordCasilla destino;\n List<CoordCasilla>camino;\n \n /* Cell cell = new Cell();\n cell.setTile(mapaActual.getTileSets().getTileSet(0).getTile(138));*/\n \n //Calcular las interpolaciones\n for(CoordCasilla cc:MATRIZ_INTERPOLACION)\n {\n visible=true;\n destino=new CoordCasilla(origen.x +cc.x,origen.y+cc.y);\n camino= Analizador.interpola(origen, destino);\n \n \n for(CoordCasilla casillaEstudio:camino)\n {\n //Si la celda está fuera de limites no tiene sentido realizar el analisis de las casillas siguientes\n if(casillaEstudio.x<0 || casillaEstudio.x>this.anchoMapa-1 || casillaEstudio.y<0 || casillaEstudio.y>this.altoMapa - 1)\n break;\n \n \n if(!visible ) //No hay visibilidad, quitamos la casilla si la hay del TreeSet\n {\n //posibleVisibilidad.remove(celdaEstudio);\n continue;\n }\n else if(visible && this.capaViibilidad.getCell(casillaEstudio.x,casillaEstudio.y)!=null) //La casilla es limite de visibilidad\n visible=false;\n \n //TEST: Marcamos esta casilla como visible\n //this.capaAux.setCell(celdaEstudio.x, celdaEstudio.y,cell);\n \n //Llegados a este punto, quitamos la niebla de guerra de la casilla\n quitaNieblaDeGuerra(casillaEstudio);\n \n this.casillasVisibles.add(casillaEstudio);\n }\n }\n }", "private void compruebaColisiones()\n {\n // Comprobamos las colisiones con los Ufo\n for (Ufo ufo : ufos) {\n // Las naves Ufo chocan con la nave Guardian\n if (ufo.colisionaCon(guardian) && ufo.getVisible()) {\n mensajeDialogo(0);\n juego = false;\n }\n // Las naves Ufo llegan abajo de la pantalla\n if ((ufo.getPosicionY() - ufo.getAlto() > altoVentana)) {\n mensajeDialogo(0);\n juego = false;\n }\n // El disparo de la nave Guardian mata a una nave Ufo\n if (ufo.colisionaCon(disparoGuardian) && ufo.getVisible()) {\n ufo.setVisible(false);\n disparoGuardian.setVisible(false);\n disparoGuardian.setPosicion(0, 0);\n ufosMuertos++;\n }\n }\n\n // El disparo de las naves Ufo mata a la nave Guardian\n if (guardian.colisionaCon(disparoUfo)) {\n disparoUfo.setVisible(false);\n mensajeDialogo(0);\n juego = false;\n }\n\n // Si el disparo Guardian colisiona con el disparo de los Ufo, se\n // eliminan ambos\n if (disparoGuardian.colisionaCon(disparoUfo)) {\n disparoGuardian.setVisible(false);\n disparoGuardian.setPosicion(0, 0);\n disparoUfo.setVisible(false);\n }\n }", "public void mostrarFatura() {\n\n int i;\n System.err.println(\"Fatura do contrato:\\n\");\n\n if (hospedesCadastrados.isEmpty()) {//caso nao existam hospedes\n System.err.println(\"Nao existe hospedes cadastrados\\n\");\n\n } else {\n System.err.println(\"Digite o cpf do hospede:\\n\");\n\n listarHospedes();\n int cpf = verifica();\n for (i = 0; i < hospedesCadastrados.size(); i++) {//roda os hospedes cadastrados\n if (hospedesCadastrados.get(i).getCpf() == cpf) {//pega o hospede pelo cpf\n if (hospedesCadastrados.get(i).getContrato().isSituacao()) {//caso a situacao do contrato ainda estaja ativa\n\n System.err.println(\"Nome do hospede:\" + hospedesCadastrados.get(i).getNome());\n System.err.println(\"CPF:\" + hospedesCadastrados.get(i).getCpf() + \"\\n\");\n System.err.println(\"Servicos pedidos:\\nCarros:\");\n if (!(hospedesCadastrados.get(i).getContrato().getCarrosCadastrados() == null)) {\n System.err.println(hospedesCadastrados.get(i).getContrato().getCarrosCadastrados().toString());\n System.err.println(\"Total do serviço de aluguel de carros R$:\" + hospedesCadastrados.get(i).getContrato().getContaFinalCarros() + \"\\n\");//;\n } else {\n System.err.println(\"\\nO hospede nao possui carros cadastrados!\\n\");\n }\n System.err.println(\"Quartos:\");\n if (!(hospedesCadastrados.get(i).getContrato().getQuartosCadastrados() == null)) {\n System.err.println(hospedesCadastrados.get(i).getContrato().getQuartosCadastrados().toString());\n System.err.println(\"Total do servico de quartos R$:\" + hospedesCadastrados.get(i).getContrato().getContaFinalQuartos() + \"\\n\");//;\n } else {\n System.err.println(\"\\nO hospede nao possui Quartos cadastrados!\\n\");\n }\n System.err.println(\"Restaurante:\");\n System.err.println(\"Total do servico de restaurante R$: \" + hospedesCadastrados.get(i).getContrato().getValorRestaurante() + \"\\n\");\n System.err.println(\"Total de horas de BabySitter contratatas:\" + hospedesCadastrados.get(i).getContrato().getHorasBaby() / 45 + \"\\n\"\n + \"Total do servico de BabySitter R$:\" + hospedesCadastrados.get(i).getContrato().getHorasBaby() + \"\\n\");\n System.err.println(\"Total Fatura final: R$\" + hospedesCadastrados.get(i).getContrato().getContaFinal());\n //para limpar as disponibilidades dos servicos\n //carros, quarto, contrato e hospede\n //é necessario remover o hospede?\n// \n\n } else {//caso o contrato esteja fechado\n System.err.println(\"O hospede encontra-se com o contrato fechado!\");\n }\n }\n\n }\n }\n }", "public void getGerarEscala(ActionEvent actionEvent) {\n\t\tEventoRepository eventoRep = new EventoRepository(JPAFactory.getEntityManager());\r\n\t\tlistaEvento = eventoRep.buscarEventos(inicio,fim);\r\n\t\t\r\n\t\t//CorEquipesController grupoCores = new CorEquipesController();\r\n\t\tTurmaVoluntarioRepository repository = new TurmaVoluntarioRepository(JPAFactory.getEntityManager());\r\n\t\tList<Voluntario> listaVoluntario = repository.buscarVoluntarioCor(cor);\r\n\t\tList<Voluntario> equipeA = new ArrayList<Voluntario>();\r\n\t\tList<Voluntario> equipeB = new ArrayList<Voluntario>();\r\n\t\tList<Voluntario> listPopulacaoI = new ArrayList<Voluntario>();\t\t\t\r\n\t\tList<Voluntario> escalaA = new ArrayList<Voluntario>();\r\n\t\tList<Voluntario> escalaB = new ArrayList<Voluntario>();\r\n\t\tList<Integer> intervaloSorteio = new ArrayList<Integer>();\r\n\r\n\t\t//Date agora = new Date();\r\n\t\t\r\n\t\tlong tempoIncial = System.currentTimeMillis();\r\n\t\tif(cor!=null) {\t\r\n//\t\t\tFor de verificação para não repetição dos campos sorteados\r\n\t\t\tfor (int i=0; i<listaVoluntario.size(); i++) {\r\n\t\t\t\tintervaloSorteio.add(i);\r\n\t\t\t}\r\n\t\t\t//População inicial\t\r\n\t\t\tfor (int i=0; i<listaVoluntario.size(); i++) {\r\n\t\t\t\tRandom rand = new Random();\r\n\t\t\t\t\r\n\t\t\t\tint posicaoSorteada = rand.nextInt(intervaloSorteio.size());\r\n\t\t\t\t\r\n\r\n\t\t\t\tint conteudoSorteado = intervaloSorteio.get(posicaoSorteada);\r\n\t\t\t\t\r\n\r\n\t\t\t\tlistPopulacaoI.add(listaVoluntario.get(conteudoSorteado));\r\n\r\n\t\t\t\tfor (int j = 0; j<intervaloSorteio.size(); j++) {\r\n\t\t\t\t\tif (conteudoSorteado==intervaloSorteio.get(j)) {\r\n\t\t\t\t\t\tintervaloSorteio.remove(j);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t//Gera os pais\r\n\t\t\tfor (int i=0; i<listaVoluntario.size(); i++) {\r\n\t\t\t\tintervaloSorteio.add(i);\r\n\t\t\t}\r\n\t\t\tfor(int k = 0; k<listPopulacaoI.size();k++) {\r\n\t\t\t\tRandom rand = new Random();\r\n\t\t\t\t//vrifica a lista para adicionar na equipe A (pai1)\r\n\t\t\t\tif (intervaloSorteio.isEmpty()) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}else {\r\n\t\t\t\t\tint posicaoSorteadaA = rand.nextInt(intervaloSorteio.size());\r\n\t\t\t\t\tint conteudoSorteadoA = intervaloSorteio.get(posicaoSorteadaA);\r\n\t\t\t\t\tequipeA.add(listPopulacaoI.get(conteudoSorteadoA));\r\n\t\t\t\t\tfor (int j = 0; j<intervaloSorteio.size(); j++) {\r\n\t\t\t\t\t\tif (conteudoSorteadoA==intervaloSorteio.get(j)) {\r\n\t\t\t\t\t\t\tintervaloSorteio.remove(j);\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t//vrifica a lista para adicionar na equipe B (pai2)\r\n\t\t\t\tif(intervaloSorteio.isEmpty()) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}else {\r\n\t\t\t\t\tint posicaoSorteadaB = rand.nextInt(intervaloSorteio.size());\r\n\t\t\t\t\tint conteudoSorteadoB = intervaloSorteio.get(posicaoSorteadaB);\r\n\t\t\t\t\tequipeB.add(listPopulacaoI.get(conteudoSorteadoB));\r\n\t\t\t\t\tfor (int j = 0; j<intervaloSorteio.size(); j++) {\r\n\t\t\t\t\t\tif (conteudoSorteadoB==intervaloSorteio.get(j)) {\r\n\t\t\t\t\t\t\tintervaloSorteio.remove(j);\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t//Cruzamento\r\n\t\t\tint tamanhoA = equipeA.size();\r\n\t\t\tint tamanhoB = equipeB.size();\r\n\t\t\tint metadeA = (int) tamanhoA/2;\r\n\t\t\tint metadeB = (int) tamanhoB/2;\r\n\t\t\tfor (int i=0; i<metadeA; i++) {\r\n\t\t\t\tescalaA.add(equipeA.get(i));\r\n\t\t\t}\r\n\t\t\tfor (int i=metadeA; i<tamanhoA; i++) {\r\n\t\t\t\tescalaB.add(equipeA.get(i));\r\n\t\t\t}\r\n\t\t\tfor (int i=0; i<metadeB; i++) {\r\n\t\t\t\tescalaB.add(equipeB.get(i));\r\n\t\t\t}\r\n\t\t\tfor (int i=metadeB; i<tamanhoB; i++) {\r\n\t\t\t\tescalaA.add(equipeB.get(i));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//grava dados na base\r\n\t\t\tint tamanhoEvanto = listaEvento.size();\r\n\t\t\tint metadeTamanhoEv = tamanhoEvanto/2;\r\n\t\t\tfor (int i = 0; i < listaEvento.size(); i ++) {\r\n\t\t\t\tif (listaEvento.get(i).getTipoEvento().getValor().equals(0)) {\r\n\t\t\t\t\tfor(int j = 0; j < equipeA.size(); j++) {\r\n\t\t\t\t\t\tgetEntity().setCorE(cor);\r\n\t\t\t\t\t\tgetEntity().setEvento(listaEvento.get(i));\r\n\t\t\t\t\t\tgetEntity().setVoluntario(equipeA.get(j));\r\n\t\t\t\t\t\tinsert(actionEvent);\r\n\t\t\t\t\t}\r\n\t\t\t\t\ti++;\r\n\t\t\t\t\tfor(int j = 0; j < equipeB.size(); j++) {\r\n\t\t\t\t\t\tgetEntity().setCorE(cor);\r\n\t\t\t\t\t\tgetEntity().setEvento(listaEvento.get(i));\r\n\t\t\t\t\t\tgetEntity().setVoluntario(equipeB.get(j));\r\n\t\t\t\t\t\tinsert(actionEvent);\r\n\t\t\t\t\t}\r\n\t\t\t\t}else {\r\n\t\t\t\t\tfor(int j = 0; j < listPopulacaoI.size(); j++) {\r\n\t\t\t\t\t\tgetEntity().setCorE(cor);\r\n\t\t\t\t\t\tgetEntity().setEvento(listaEvento.get(i));\r\n\t\t\t\t\t\tgetEntity().setVoluntario(listPopulacaoI.get(j));\r\n\t\t\t\t\t\tinsert(actionEvent);\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}\r\n\t\t\r\n\t\tSystem.out.println(\"Tempo Total %.3f ms%n: \"+(System.currentTimeMillis()-tempoIncial));\r\n\t\tSystem.out.println(listPopulacaoI);\r\n//\t\tlong tempoFinal = System.currentTimeMillis();\r\n//\t\tlong tempoExecucao = tempoFinal-tempoIncial;\r\n\r\n\t\t\r\n\t\t/*System.out.println(\"tempo inicial:\"+tempoIncial);\r\n\t\tSystem.out.println(\"tempo inicial:\"+tempoFinal);\r\n\t\tSystem.out.println(\"Tempo execução do Metodo de gera escala equipe: \"+(tempoFinal-tempoIncial)/1000d);*/\r\n\t}", "public boolean hasEqualMapping(ViewDetallesPagos valueObject) {\r\n\r\n if (valueObject.getIDCUENTACONTABLE() != this.IDCUENTACONTABLE) {\r\n return(false);\r\n }\r\n if (this.DECOMPARENDO == null) {\r\n if (valueObject.getDECOMPARENDO() != null)\r\n return(false);\r\n } else if (!this.DECOMPARENDO.equals(valueObject.getDECOMPARENDO())) {\r\n return(false);\r\n }\r\n if (this.CODIGOCUENTA == null) {\r\n if (valueObject.getCODIGOCUENTA() != null)\r\n return(false);\r\n } else if (!this.CODIGOCUENTA.equals(valueObject.getCODIGOCUENTA())) {\r\n return(false);\r\n }\r\n if (this.NOMBRECUENTA == null) {\r\n if (valueObject.getNOMBRECUENTA() != null)\r\n return(false);\r\n } else if (!this.NOMBRECUENTA.equals(valueObject.getNOMBRECUENTA())) {\r\n return(false);\r\n }\r\n if (valueObject.getVIGENCIAINICIAL() != this.VIGENCIAINICIAL) {\r\n return(false);\r\n }\r\n if (valueObject.getVIGENCIAFINAL() != this.VIGENCIAFINAL) {\r\n return(false);\r\n }\r\n if (this.FILTROPORFECHAS == null) {\r\n if (valueObject.getFILTROPORFECHAS() != null)\r\n return(false);\r\n } else if (!this.FILTROPORFECHAS.equals(valueObject.getFILTROPORFECHAS())) {\r\n return(false);\r\n }\r\n if (valueObject.getIDTARIFA() != this.IDTARIFA) {\r\n return(false);\r\n }\r\n if (valueObject.getIDCONCEPTO() != this.IDCONCEPTO) {\r\n return(false);\r\n }\r\n if (this.NOMBRECONCEPTO == null) {\r\n if (valueObject.getNOMBRECONCEPTO() != null)\r\n return(false);\r\n } else if (!this.NOMBRECONCEPTO.equals(valueObject.getNOMBRECONCEPTO())) {\r\n return(false);\r\n }\r\n if (valueObject.getIDITEM() != this.IDITEM) {\r\n return(false);\r\n }\r\n if (valueObject.getVALORPAGO() != this.VALORPAGO) {\r\n return(false);\r\n }\r\n if (this.FECHAPAGO == null) {\r\n if (valueObject.getFECHAPAGO() != null)\r\n return(false);\r\n } else if (!this.FECHAPAGO.equals(valueObject.getFECHAPAGO())) {\r\n return(false);\r\n }\r\n if (valueObject.getVIGENCIA() != this.VIGENCIA) {\r\n return(false);\r\n }\r\n\r\n return true;\r\n }", "public static void obtenerInfoColisionEnemigo(Enemigo enemigo, Objeto col,String[] direccion, ArrayList<Objeto> obj_colision) {\n Rectangle[] lados_ente = enemigo.objeto_ente.getRectangle();\n Rectangle[] lados_col = col.getRectangle();\n\n if (col.getTag().compareToIgnoreCase(Objeto.Tag.JUGADOR) == 0) {\n if (lados_ente[0].intersects(lados_col[2])) {\n //\"arriba\";\n obj_colision.add(col);\n direccion[0] = \"jugador_arriba\";\n }\n if (lados_ente[1].intersects(lados_col[3])) {\n //\"derecha\";\n obj_colision.add(col);\n direccion[1] = \"jugador_derecha\";\n\n }\n if (lados_ente[2].intersects(lados_col[0])) {\n //\"abajo\";\n obj_colision.add(col);\n direccion[2] = \"jugador_abajo\";\n }\n if (lados_ente[3].intersects(lados_col[1])) {\n //\"izquierda\";\n obj_colision.add(col);\n direccion[3] = \"jugador_izquierda\";\n }\n }\n\n if (lados_ente[0].intersects(lados_col[0])) {\n //\"arriba\";\n obj_colision.add(col);\n direccion[0] = \"entorno_arriba\";\n }\n if (lados_ente[1].intersects(lados_col[0])) {\n //\"derecha\";\n obj_colision.add(col);\n direccion[1] = \"entorno_derecha\";\n }\n if (lados_ente[2].intersects(lados_col[0])) {\n //\"abajo\";\n obj_colision.add(col);\n direccion[2] = \"entorno_abajo\";\n }\n if (lados_ente[3].intersects(lados_col[0])) {\n //\"izquierda\";\n obj_colision.add(col);\n direccion[3] = \"entorno_izquierda\";\n }\n }", "public CambioComplementariosDTO() { }", "@Override\n\tpublic void compareFichierTo(Fichier f) {\n\t\t\n\t}", "public List<MovimentoPorCanalDeVendaVO> validaSelecionaEmissaoPorCanal(String movimento) {\n\n\t\tList<MovimentoPorCanalDeVendaVO> list = new ArrayList<MovimentoPorCanalDeVendaVO>(listaEmissaoPorCanal);\n\n\t\tList<MovimentoPorCanalDeVendaVO> listTotal = new ArrayList<MovimentoPorCanalDeVendaVO>();\n\n\t\tString[] mesesTotaisValor = { \"0.0\", \"0.0\", \"0.0\", \"0.0\", \"0.0\", \"0.0\", \"0.0\", \"0.0\", \"0.0\", \"0.0\", \"0.0\",\n\t\t\t\t\"0.0\" };\n\n\t\tString[] mesesTotaisQuantidade = { \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\" };\n\n\t\tString anoTotal = null;\n\t\tString produtoTotal = null;\n\n\t\tint qtdQuantidade = 0;\n\t\tint qtdValor = 0;\n\n\t\tfor (int i = 0; i < list.size(); i++) {\n\t\t\tif (!(list.get(i).getMovimento().trim().equalsIgnoreCase(movimento.trim()))) {\n\t\t\t\tlist.remove(i);\n\t\t\t\ti--;\n\t\t\t}\n\t\t}\n\n\t\tfor (MovimentoPorCanalDeVendaVO objLista : list) {\n\t\t\tif (objLista.getTipo().equalsIgnoreCase(\"Valor\")) {\n\t\t\t\tqtdValor++;\n\t\t\t} else if (objLista.getTipo().equalsIgnoreCase(\"Quantidade\")) {\n\t\t\t\tqtdQuantidade++;\n\t\t\t}\n\t\t}\n\t\tint indiceElementoNaoEncontrado = 0;\n\t\tif (qtdValor != qtdQuantidade) {\n\n\t\t\tif (qtdValor > qtdQuantidade) {// Valor eh maior\n\t\t\t\touter: for (int i = 0; i < list.size(); i++) {\n\t\t\t\t\tif (list.get(i).getTipo().equalsIgnoreCase(\"Valor\")) {\n\n\t\t\t\t\t\t// System.out.println();\n\t\t\t\t\t\t//\n\t\t\t\t\t\t// System.out.print(\" 1 | \"\n\t\t\t\t\t\t// + list.get(i).getCanalDeVenda());\n\t\t\t\t\t\t// System.out.println();\n\n\t\t\t\t\t\tfor (int j = 0; j < list.size(); j++) {\n\t\t\t\t\t\t\tint achou = -1;\n\t\t\t\t\t\t\tif (list.get(j).getTipo().equalsIgnoreCase(\"Quantidade\")) {\n\n\t\t\t\t\t\t\t\t// System.out.print(\" 2 | \"\n\t\t\t\t\t\t\t\t// + list.get(j).getCanalDeVenda());\n\t\t\t\t\t\t\t\t// System.out.println();\n\n\t\t\t\t\t\t\t\tif (list.get(i).getCanalDeVenda().equals(list.get(j).getCanalDeVenda())) {\n\t\t\t\t\t\t\t\t\tachou = j;\n\t\t\t\t\t\t\t\t\tcontinue outer;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tif (j == list.size() - 1 && achou == -1) {\n\t\t\t\t\t\t\t\t\tindiceElementoNaoEncontrado = i;\n\t\t\t\t\t\t\t\t}\n\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\n\t\t\t\tString[] meses = { \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\" };\n\n\t\t\t\tMovimentoPorCanalDeVendaVO canalVendaVazio = new MovimentoPorCanalDeVendaVO();\n\t\t\t\tcanalVendaVazio.setCanalDeVenda(list.get(indiceElementoNaoEncontrado).getCanalDeVenda());\n\t\t\t\tcanalVendaVazio.setProduto(list.get(indiceElementoNaoEncontrado).getProduto());\n\t\t\t\tcanalVendaVazio.setTipo(\"Quantidade\");\n\t\t\t\tcanalVendaVazio.setMeses(meses);\n\n\t\t\t\tlist.add(((list.size() + 1) / 2 + indiceElementoNaoEncontrado), canalVendaVazio);// aqui\n\t\t\t\t/* estou ordenando tudo que é tipo 'Valor' antes de 'Quantidade' */\n\t\t\t} else {// Qtd eh maior\n\t\t\t\touter: for (int i = 0; i < list.size(); i++) {\n\t\t\t\t\tif (list.get(i).getTipo().equalsIgnoreCase(\"Quantidade\")) {\n\n\t\t\t\t\t\t// System.out.println();\n\t\t\t\t\t\t//\n\t\t\t\t\t\t// System.out.print(\" 1 | \"\n\t\t\t\t\t\t// + list.get(i).getCanalDeVenda());\n\t\t\t\t\t\t// System.out.println();\n\n\t\t\t\t\t\tfor (int j = 0; j < list.size(); j++) {\n\t\t\t\t\t\t\tint achou = -1;\n\t\t\t\t\t\t\tif (list.get(j).getTipo().equalsIgnoreCase(\"Valor\")) {\n\n\t\t\t\t\t\t\t\t// System.out.print(\" 2 | \"+\n\t\t\t\t\t\t\t\t// list.get(j).getCanalDeVenda());\n\t\t\t\t\t\t\t\t// System.out.println();\n\n\t\t\t\t\t\t\t\tif (list.get(i).getCanalDeVenda().equals(list.get(j).getCanalDeVenda())) {\n\t\t\t\t\t\t\t\t\tachou = j;\n\t\t\t\t\t\t\t\t\tcontinue outer;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tif (j == list.size() - 1 && achou == -1) {\n\t\t\t\t\t\t\t\t\tindiceElementoNaoEncontrado = i;\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\n\t\t\t\tString[] meses = { \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\" };\n\n\t\t\t\tMovimentoPorCanalDeVendaVO canalVendaVazio = new MovimentoPorCanalDeVendaVO();\n\t\t\t\tcanalVendaVazio.setCanalDeVenda(list.get(indiceElementoNaoEncontrado).getCanalDeVenda());\n\t\t\t\tcanalVendaVazio.setProduto(list.get(indiceElementoNaoEncontrado).getProduto());\n\t\t\t\tcanalVendaVazio.setTipo(\"Valor\");\n\t\t\t\tcanalVendaVazio.setMeses(meses);\n\n\t\t\t\tlist.add(((list.size() + 1) / 2 + indiceElementoNaoEncontrado), canalVendaVazio);// aqui\n\t\t\t\t/* estou ordenando tudo que é tipo 'Valor' antes de 'Quantidade' */\n\n\t\t\t}\n\n\t\t}\n\n\t\t/*\n\t\t * ===Primeiro crio os objetos com os totais=========\n\t\t */\n\t\tfor (MovimentoPorCanalDeVendaVO emi : list) {\n\n\t\t\tif (emi.getTipo().equals(\"Valor\")) {\n\n\t\t\t\tfor (int i = 0; i < emi.getMeses().length; i++) {\n\t\t\t\t\tmesesTotaisValor[i] = new BigDecimal(mesesTotaisValor[i]).add(new BigDecimal(emi.getMeses()[i]))\n\t\t\t\t\t\t\t.toString();\n\t\t\t\t}\n\n\t\t\t} else if (emi.getTipo().equals(\"Quantidade\")) {\n\n\t\t\t\tfor (int i = 0; i < emi.getMeses().length; i++) {\n\t\t\t\t\tmesesTotaisQuantidade[i] = Integer.toString(\n\t\t\t\t\t\t\t(Integer.parseInt(mesesTotaisQuantidade[i]) + Integer.parseInt(emi.getMeses()[i])));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tanoTotal = emi.getAno();\n\t\t\tprodutoTotal = emi.getProduto();\n\n\t\t}\n\n\t\tMovimentoPorCanalDeVendaVO totalValor = new MovimentoPorCanalDeVendaVO();\n\t\tMovimentoPorCanalDeVendaVO totalQuantidade = new MovimentoPorCanalDeVendaVO();\n\n\t\ttotalValor.setCanalDeVenda(\"Total\");\n\t\ttotalValor.setProduto(produtoTotal);\n\t\ttotalValor.setTipo(\"Valor\");\n\t\ttotalValor.setAno(anoTotal);\n\t\ttotalValor.setMeses(mesesTotaisValor);\n\t\tlistTotal.add(totalValor);\n\n\t\ttotalQuantidade.setCanalDeVenda(\"Total\");\n\t\ttotalQuantidade.setProduto(produtoTotal);\n\t\ttotalQuantidade.setTipo(\"Quantidade\");\n\t\ttotalQuantidade.setAno(anoTotal);\n\t\ttotalQuantidade.setMeses(mesesTotaisQuantidade);\n\t\tlistTotal.add(totalQuantidade);\n\n\t\t/*\n\t\t * ===Agora calculo os percentuais=========\n\t\t */\n\n\t\tfinal int VALOR = 0;\n\t\tfinal int QUANTIDADE = 1;\n\n\t\tDecimalFormat percentForm = new DecimalFormat(\"0.00%\");\n\t\tDecimalFormat roundForm = new DecimalFormat(\"0.00\");\n\t\tUteis uteis = new Uteis();\n\t\tList<MovimentoPorCanalDeVendaVO> listFinal = new ArrayList<MovimentoPorCanalDeVendaVO>();\n\n\t\tfor (int i = 0; i < list.size() / 2; i++) {\n\t\t\tMovimentoPorCanalDeVendaVO emissaoValor = new MovimentoPorCanalDeVendaVO();\n\t\t\t/* ===VALOR==== */\n\t\t\temissaoValor.setCanalDeVenda(list.get(i).getCanalDeVenda());\n\t\t\temissaoValor.setTipo(list.get(i).getTipo());\n\t\t\temissaoValor.setMeses(list.get(i).getMeses());\n\n\t\t\tMovimentoPorCanalDeVendaVO emissaoValorPercent = new MovimentoPorCanalDeVendaVO();\n\t\t\t/* ===%=VALOR==== */\n\t\t\temissaoValorPercent.setCanalDeVenda(list.get(i).getCanalDeVenda());\n\t\t\temissaoValorPercent.setTipo(\"% \" + list.get(i).getTipo());\n\n\t\t\tString[] mesesPercentValor = new String[12];\n\t\t\tfor (int k = 0; k < list.get(i).getMeses().length; k++) {\n\n\t\t\t\ttry {\n\t\t\t\t\tdouble total = Double.parseDouble(new BigDecimal(list.get(i).getMeses()[k])\n\t\t\t\t\t\t\t.divide(new BigDecimal(listTotal.get(VALOR).getMeses()[k]), 5, RoundingMode.HALF_DOWN)\n\t\t\t\t\t\t\t.toString());\n\t\t\t\t\tmesesPercentValor[k] = percentForm.format(total);\n\n\t\t\t\t} catch (ArithmeticException e) {\n\t\t\t\t\tmesesPercentValor[k] = \"0%\";\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t}\n\t\t\temissaoValorPercent.setMeses(mesesPercentValor);\n\n\t\t\tMovimentoPorCanalDeVendaVO emissaoQuantidade = new MovimentoPorCanalDeVendaVO();\n\t\t\t/* ===QUANTIDADE==== */\n\t\t\tint j = list.size() / 2;\n\t\t\temissaoQuantidade.setCanalDeVenda(list.get(j + i).getCanalDeVenda());\n\t\t\temissaoQuantidade.setTipo(list.get(j + i).getTipo());\n\t\t\temissaoQuantidade.setMeses(list.get(j + i).getMeses());\n\n\t\t\tMovimentoPorCanalDeVendaVO emissaoQuantidadePercent = new MovimentoPorCanalDeVendaVO();\n\t\t\t/* ===%=QUANTIDADE==== */\n\t\t\temissaoQuantidadePercent.setCanalDeVenda(list.get(j + i).getCanalDeVenda());\n\t\t\temissaoQuantidadePercent.setTipo(\"% \" + list.get(j + i).getTipo());\n\n\t\t\tString[] mesesPercentQuantidade = new String[12];\n\t\t\tfor (int k = 0; k < list.get(j + i).getMeses().length; k++) {\n\n\t\t\t\ttry {\n\n\t\t\t\t\tdouble total = Double.parseDouble(list.get(j + i).getMeses()[k])\n\t\t\t\t\t\t\t/ Double.parseDouble(listTotal.get(QUANTIDADE).getMeses()[k]);\n\t\t\t\t\tmesesPercentQuantidade[k] = percentForm\n\t\t\t\t\t\t\t.format(Double.toString(total).equalsIgnoreCase(\"NaN\") ? 0.0 : total);\n\n\t\t\t\t} catch (ArithmeticException e) {\n\t\t\t\t\tmesesPercentQuantidade[k] = \"0%\";\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t}\n\t\t\temissaoQuantidadePercent.setMeses(mesesPercentQuantidade);\n\n\t\t\tString[] valorFormatado = new String[12];\n\t\t\tfor (int k = 0; k < emissaoValor.getMeses().length; k++) {\n\t\t\t\tvalorFormatado[k] = uteis\n\t\t\t\t\t\t.insereSeparadoresMoeda(roundForm.format(Double.parseDouble(emissaoValor.getMeses()[k])));\n\n\t\t\t}\n\t\t\temissaoValor.setMeses(valorFormatado);\n\n\t\t\tString[] valorFormatado2 = new String[12];\n\t\t\tfor (int k = 0; k < emissaoQuantidade.getMeses().length; k++) {\n\t\t\t\tvalorFormatado2[k] = uteis.insereSeparadores(emissaoQuantidade.getMeses()[k]);\n\t\t\t}\n\t\t\temissaoQuantidade.setMeses(valorFormatado2);\n\n\t\t\tlistFinal.add(emissaoValor);\n\t\t\tlistFinal.add(emissaoValorPercent);\n\t\t\tlistFinal.add(emissaoQuantidade);\n\t\t\tlistFinal.add(emissaoQuantidadePercent);\n\n\t\t}\n\n\t\treturn listFinal;\n\n\t}", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof ResultadoSorteio)) {\r\n return false;\r\n }\r\n ResultadoSorteio other = (ResultadoSorteio) object;\r\n if ((this.pkIdResultadoSorteio == null && other.pkIdResultadoSorteio != null) || (this.pkIdResultadoSorteio != null && !this.pkIdResultadoSorteio.equals(other.pkIdResultadoSorteio))) {\r\n return false;\r\n }\r\n return true;\r\n }", "public ViviendaDetailDTO(ViviendaEntity viviendaEntity) {\r\n super(viviendaEntity);\r\n if (viviendaEntity != null) {\r\n\r\n if (viviendaEntity.getContratos() != null) {\r\n contratos = new ArrayList<>();\r\n for (ContratoEntity entityContrato : viviendaEntity.getContratos()){\r\n contratos.add(new ContratoDTO(entityContrato));\r\n }\r\n }\r\n\r\n if (viviendaEntity.getCuartos() != null) {\r\n cuartos = new ArrayList<>();\r\n for(CuartoEntity entityCuarto : viviendaEntity.getCuartos()){\r\n cuartos.add(new CuartoDTO(entityCuarto));\r\n }\r\n }\r\n\r\n if (viviendaEntity.getSitiosDeInteres() != null){\r\n sitiosDeInteres = new ArrayList<>();\r\n for(SitioInteresEntity sitioEntity : viviendaEntity.getSitiosDeInteres()){\r\n sitiosDeInteres.add(new SitioInteresDTO(sitioEntity));\r\n }\r\n }\r\n\r\n if(viviendaEntity.getCalificaciones() != null ){\r\n calificaciones = new ArrayList<>();\r\n for(CalificacionEntity calificacionEntity : viviendaEntity.getCalificaciones()){\r\n calificaciones.add(new CalificacionDTO(calificacionEntity));\r\n }\r\n }\r\n\r\n if(viviendaEntity.getServiciosAdicionales() != null){\r\n serviciosAdicionales = new ArrayList<>();\r\n for (ServicioAdicionalEntity servicioEntity : viviendaEntity.getServiciosAdicionales()){\r\n serviciosAdicionales.add(new ServicioAdicionalDTO(servicioEntity));\r\n }\r\n }\r\n\r\n if(viviendaEntity.getServiciosIncluidos() != null){\r\n serviciosOfrecidos = new ArrayList<>();\r\n for (String servicio : viviendaEntity.getServiciosIncluidos()){\r\n serviciosOfrecidos.add(servicio);\r\n }\r\n }\r\n }\r\n }", "public int CompareTo(ProductosInventario comp){\n\t\t return CompareTo(comp.getProducto().getNombre());\n\t }", "public Collection<OsExecucaoEquipe> obterOsExecucaoEquipePorOS(Integer idOS) throws ErroRepositorioException{\n\n\t\tCollection<Object[]> retornoConsulta = null;\n\t\tCollection<OsExecucaoEquipe> colecaoOsExecucaoEquipe = new ArrayList();\n\n\t\tSession session = HibernateUtil.getSession();\n\t\tString consulta = \"\";\n\t\ttry{\n\t\t\tconsulta = \"SELECT DISTINCT osape.id, \" // 0\n\t\t\t\t\t\t\t+ \" osape.dataInicio, \" // 1\n\t\t\t\t\t\t\t+ \" osape.dataFim, \" // 2\n\t\t\t\t\t\t\t+ \" a.id, \" // 3\n\t\t\t\t\t\t\t+ \" a.descricao, \" // 4\n\t\t\t\t\t\t\t+ \" e.id, \" // 5\n\t\t\t\t\t\t\t+ \" e.nome \" // 6\n\t\t\t\t\t\t\t+ \"FROM OsExecucaoEquipe osee \"\n\t\t\t\t\t\t\t+ \"INNER JOIN osee.equipe e \"\n\t\t\t\t\t\t\t+ \"INNER JOIN osee.osAtividadePeriodoExecucao osape \"\n\t\t\t\t\t\t\t+ \"INNER JOIN osape.ordemServicoAtividade osa \"\n\t\t\t\t\t\t\t+ \"INNER JOIN osa.atividade a \" + \"INNER JOIN osa.ordemServico os \"\n\t\t\t\t\t\t\t+ \"WHERE os.id = :idOS \"\n\t\t\t\t\t\t\t+ \"ORDER BY a.descricao \";\n\n\t\t\tretornoConsulta = (Collection<Object[]>) session.createQuery(consulta).setInteger(\"idOS\", idOS).list();\n\n\t\t\tif(retornoConsulta != null && !retornoConsulta.isEmpty()){\n\t\t\t\tOsExecucaoEquipe osExecucaoEquipe = null;\n\t\t\t\tfor(Object[] periodo : retornoConsulta){\n\t\t\t\t\tosExecucaoEquipe = new OsExecucaoEquipe();\n\t\t\t\t\tEquipe equipe = new Equipe();\n\t\t\t\t\tequipe.setId((Integer) periodo[5]);\n\t\t\t\t\tequipe.setNome((String) periodo[6]);\n\t\t\t\t\tosExecucaoEquipe.setEquipe(equipe);\n\t\t\t\t\tOsAtividadePeriodoExecucao osAtividadePeriodoExecucao = new OsAtividadePeriodoExecucao();\n\t\t\t\t\tosAtividadePeriodoExecucao.setId((Integer) periodo[0]);\n\t\t\t\t\tosAtividadePeriodoExecucao.setDataInicio((Date) periodo[1]);\n\t\t\t\t\tosAtividadePeriodoExecucao.setDataFim((Date) periodo[2]);\n\t\t\t\t\tOrdemServicoAtividade ordemServicoAtividade = new OrdemServicoAtividade();\n\t\t\t\t\tAtividade atividade = new Atividade();\n\t\t\t\t\tatividade.setId((Integer) periodo[3]);\n\t\t\t\t\tatividade.setDescricao((String) periodo[4]);\n\t\t\t\t\tordemServicoAtividade.setAtividade(atividade);\n\t\t\t\t\tOrdemServico ordemServico = new OrdemServico();\n\t\t\t\t\tordemServico.setId(idOS);\n\t\t\t\t\tordemServicoAtividade.setOrdemServico(ordemServico);\n\t\t\t\t\tosAtividadePeriodoExecucao.setOrdemServicoAtividade(ordemServicoAtividade);\n\t\t\t\t\tosExecucaoEquipe.setOsAtividadePeriodoExecucao(osAtividadePeriodoExecucao);\n\t\t\t\t\tcolecaoOsExecucaoEquipe.add(osExecucaoEquipe);\n\t\t\t\t}\n\t\t\t}\n\t\t}catch(HibernateException e){\n\t\t\tthrow new ErroRepositorioException(e, \"Erro no Hibernate\");\n\t\t}finally{\n\t\t\tHibernateUtil.closeSession(session);\n\t\t}\n\t\treturn colecaoOsExecucaoEquipe;\n\t}", "public void filtroVentas(String nombre, String academia, String curso, String fecha_inicio, String fecha_fin, String estado){\n for(GrupoEstudio grupo : grupos){\r\n if(grupo.getNombre().compareTo(nombre) == 0)\r\n listar.add(grupo);\r\n }\r\n //ordenamos la lista por fecha de vencimiento\r\n Collections.sort(listar, new Comparator() { \r\n public int compare(Object o1, Object o2) { \r\n GrupoEstudio c1 = (GrupoEstudio) o1;\r\n GrupoEstudio c2 = (GrupoEstudio) o2;\r\n return c1.getFecha_inicio().compareToIgnoreCase(c2.getFecha_inicio()); \r\n } \r\n }); \r\n }", "public boolean verificaTrasicaoVazia(){\n\n //verifica se dentro das transicoes tem alguma saindo com valor vazio;\n for (int i = 0; i < this.transicoes.size(); i++) {\n if(this.transicoes.get(i).simbolo.equals(Automato_Servico.valorVazio)){\n return true;\n }\n }\n return false;\n }", "public Collection<OsExecucaoEquipe> obterOsExecucaoEquipePorOS(Integer idOS, Integer idAtividade) throws ErroRepositorioException{\n\n\t\tCollection<Object[]> retornoConsulta = null;\n\t\tCollection<OsExecucaoEquipe> colecaoOsExecucaoEquipe = new ArrayList();\n\n\t\tSession session = HibernateUtil.getSession();\n\t\tString consulta = \"\";\n\t\ttry{\n\t\t\tconsulta = \"SELECT osape.id, \" // 0\n\t\t\t\t\t\t\t+ \" osape.dataInicio, \" // 1\n\t\t\t\t\t\t\t+ \" osape.dataFim, \" // 2\n\t\t\t\t\t\t\t+ \" a.id, \" // 3\n\t\t\t\t\t\t\t+ \" a.descricao, \" // 4\n\t\t\t\t\t\t\t+ \" e.id, \" // 5\n\t\t\t\t\t\t\t+ \" e.nome, \" // 6\n\t\t\t\t\t\t\t+ \" osape.valorAtividadePeriodo \" // 7\n\t\t\t\t\t\t\t+ \"FROM OsExecucaoEquipe osee \"\n\t\t\t\t\t\t\t+ \"INNER JOIN osee.equipe e \"\n\t\t\t\t\t\t\t+ \"INNER JOIN osee.osAtividadePeriodoExecucao osape \"\n\t\t\t\t\t\t\t+ \"INNER JOIN osape.ordemServicoAtividade osa \"\n\t\t\t\t\t\t\t+ \"INNER JOIN osa.atividade a \" + \"INNER JOIN osa.ordemServico os \"\n\t\t\t\t\t\t\t+ \"WHERE os.id = :idOS \"\n\t\t\t\t\t\t\t+ \" and a.id = :idAtividade \" + \"ORDER BY a.descricao \";\n\n\t\t\tretornoConsulta = (Collection<Object[]>) session.createQuery(consulta).setInteger(\"idOS\", idOS)\n\t\t\t\t\t\t\t.setInteger(\"idAtividade\", idAtividade).list();\n\n\t\t\tif(retornoConsulta != null && !retornoConsulta.isEmpty()){\n\t\t\t\tOsExecucaoEquipe osExecucaoEquipe = null;\n\t\t\t\tfor(Object[] periodo : retornoConsulta){\n\t\t\t\t\tosExecucaoEquipe = new OsExecucaoEquipe();\n\t\t\t\t\tEquipe equipe = new Equipe();\n\t\t\t\t\tequipe.setId((Integer) periodo[5]);\n\t\t\t\t\tequipe.setNome((String) periodo[6]);\n\t\t\t\t\tosExecucaoEquipe.setEquipe(equipe);\n\t\t\t\t\tOsAtividadePeriodoExecucao osAtividadePeriodoExecucao = new OsAtividadePeriodoExecucao();\n\t\t\t\t\tosAtividadePeriodoExecucao.setId((Integer) periodo[0]);\n\t\t\t\t\tosAtividadePeriodoExecucao.setDataInicio((Date) periodo[1]);\n\t\t\t\t\tosAtividadePeriodoExecucao.setDataFim((Date) periodo[2]);\n\t\t\t\t\tosAtividadePeriodoExecucao.setValorAtividadePeriodo((BigDecimal) periodo[7]);\n\t\t\t\t\tOrdemServicoAtividade ordemServicoAtividade = new OrdemServicoAtividade();\n\t\t\t\t\tAtividade atividade = new Atividade();\n\t\t\t\t\tatividade.setId((Integer) periodo[3]);\n\t\t\t\t\tatividade.setDescricao((String) periodo[4]);\n\t\t\t\t\tordemServicoAtividade.setAtividade(atividade);\n\t\t\t\t\tOrdemServico ordemServico = new OrdemServico();\n\t\t\t\t\tordemServico.setId(idOS);\n\t\t\t\t\tordemServicoAtividade.setOrdemServico(ordemServico);\n\t\t\t\t\tosAtividadePeriodoExecucao.setOrdemServicoAtividade(ordemServicoAtividade);\n\t\t\t\t\tosExecucaoEquipe.setOsAtividadePeriodoExecucao(osAtividadePeriodoExecucao);\n\t\t\t\t\tcolecaoOsExecucaoEquipe.add(osExecucaoEquipe);\n\t\t\t\t}\n\t\t\t}\n\t\t}catch(HibernateException e){\n\t\t\tthrow new ErroRepositorioException(e, \"Erro no Hibernate\");\n\t\t}finally{\n\t\t\tHibernateUtil.closeSession(session);\n\t\t}\n\t\treturn colecaoOsExecucaoEquipe;\n\t}", "private void inizia() throws Exception {\n this.setAllineamento(Layout.ALLINEA_CENTRO);\n this.creaBordo(\"Coperti serviti\");\n\n campoPranzo=CampoFactory.intero(\"a pranzo\");\n campoPranzo.setLarghezza(60);\n campoPranzo.setModificabile(false);\n campoCena=CampoFactory.intero(\"a cena\");\n campoCena.setLarghezza(60);\n campoCena.setModificabile(false);\n campoTotale=CampoFactory.intero(\"Totale\");\n campoTotale.setLarghezza(60); \n campoTotale.setModificabile(false);\n\n this.add(campoPranzo);\n this.add(campoCena);\n this.add(campoTotale);\n }", "public int compare(AlleleTypeDTO dto1, AlleleTypeDTO dto2) {\n int nReturn = 0;\n switch(nColumn) {\n case AlleleTypeDAO.ID__ALLELETYPE_KEY:\n if (dto1.getAlleleTypeKey() == null && dto2.getAlleleTypeKey() != null) {\n nReturn = -1;\n } else if (dto1.getAlleleTypeKey() == null && dto2.getAlleleTypeKey() == null) {\n nReturn = 0;\n } else if (dto1.getAlleleTypeKey() != null && dto2.getAlleleTypeKey() == null) {\n nReturn = 1;\n } else { \n nReturn = dto1.getAlleleTypeKey().compareTo(dto2.getAlleleTypeKey());\n }\n break;\n case AlleleTypeDAO.ID__ALLELEGROUPTYPE_KEY:\n if (dto1.getAlleleGroupTypeKey() == null && dto2.getAlleleGroupTypeKey() != null) {\n nReturn = -1;\n } else if (dto1.getAlleleGroupTypeKey() == null && dto2.getAlleleGroupTypeKey() == null) {\n nReturn = 0;\n } else if (dto1.getAlleleGroupTypeKey() != null && dto2.getAlleleGroupTypeKey() == null) {\n nReturn = 1;\n } else { \n nReturn = dto1.getAlleleGroupTypeKey().compareTo(dto2.getAlleleGroupTypeKey());\n }\n break;\n case AlleleTypeDAO.ID_TYPE:\n if (dto1.getType() == null && dto2.getType() != null) {\n nReturn = -1;\n } else if (dto1.getType() == null && dto2.getType() == null) {\n nReturn = 0;\n } else if (dto1.getType() != null && dto2.getType() == null) {\n nReturn = 1;\n } else { \n nReturn = dto1.getType().compareTo(dto2.getType());\n }\n break;\n case AlleleTypeDAO.ID_SORTORDER:\n if (dto1.getSortOrder() == null && dto2.getSortOrder() != null) {\n nReturn = -1;\n } else if (dto1.getSortOrder() == null && dto2.getSortOrder() == null) {\n nReturn = 0;\n } else if (dto1.getSortOrder() != null && dto2.getSortOrder() == null) {\n nReturn = 1;\n } else { \n nReturn = dto1.getSortOrder().compareTo(dto2.getSortOrder());\n }\n break;\n case AlleleTypeDAO.ID_CREATE_USER:\n if (dto1.getCreateUser() == null && dto2.getCreateUser() != null) {\n nReturn = -1;\n } else if (dto1.getCreateUser() == null && dto2.getCreateUser() == null) {\n nReturn = 0;\n } else if (dto1.getCreateUser() != null && dto2.getCreateUser() == null) {\n nReturn = 1;\n } else { \n nReturn = dto1.getCreateUser().compareTo(dto2.getCreateUser());\n }\n break;\n case AlleleTypeDAO.ID_CREATE_DATE:\n if (dto1.getCreateDate() == null && dto2.getCreateDate() != null) {\n nReturn = -1;\n } else if (dto1.getCreateDate() == null && dto2.getCreateDate() == null) {\n nReturn = 0;\n } else if (dto1.getCreateDate() != null && dto2.getCreateDate() == null) {\n nReturn = 1;\n } else { \n nReturn = dto1.getCreateDate().compareTo(dto2.getCreateDate());\n }\n break;\n case AlleleTypeDAO.ID_UPDATE_USER:\n if (dto1.getUpdateUser() == null && dto2.getUpdateUser() != null) {\n nReturn = -1;\n } else if (dto1.getUpdateUser() == null && dto2.getUpdateUser() == null) {\n nReturn = 0;\n } else if (dto1.getUpdateUser() != null && dto2.getUpdateUser() == null) {\n nReturn = 1;\n } else { \n nReturn = dto1.getUpdateUser().compareTo(dto2.getUpdateUser());\n }\n break;\n case AlleleTypeDAO.ID_UPDATE_DATE:\n if (dto1.getUpdateDate() == null && dto2.getUpdateDate() != null) {\n nReturn = -1;\n } else if (dto1.getUpdateDate() == null && dto2.getUpdateDate() == null) {\n nReturn = 0;\n } else if (dto1.getUpdateDate() != null && dto2.getUpdateDate() == null) {\n nReturn = 1;\n } else { \n nReturn = dto1.getUpdateDate().compareTo(dto2.getUpdateDate());\n }\n break;\n default: \n throw new IllegalArgumentException(\"Type passed for the field is not supported\");\n }\n\n return bReverse ? (-1 * nReturn) : nReturn;\n }", "@Override\n\tpublic Collection<LineaComercialClienteImportacionDTO> consultarLinComClienImp(LineaComercialClienteImportacionDTO linComCliImpDTO)throws SICException{\n\t\ttry {\n\t\t\tLogeable.LOG_SICV2.info(\"Metodo consultarLinComClienImp \");\n\t\t\tLogeable.LOG_SICV2.info(\"Parametros : \");\n\t\t\tLogeable.LOG_SICV2.info(\"codigoClienteImportacion() : \"+linComCliImpDTO.getId().getCodigoClienteImportacion());\n\t\t\tLogeable.LOG_SICV2.info(\"estado : \"+linComCliImpDTO.getEstado());\n\t\t\tLogeable.LOG_SICV2.info(\"codigoLineaComercial : \"+ linComCliImpDTO.getId().getCodigoLineaComercial());\n\n\t\t\t\n\t\t\tCriteria criteria = hibernateH.getHibernateSession().createCriteria(LineaComercialClienteImportacionDTO.class);\n\t\t\tProjectionList projectionList = Projections.projectionList()\n\t\t\t\t\t\t.add(Projections.property(\"id.codigoLineaComercial\"),\"id.codigoLineaComercial\")\n\t\t\t\t\t\t.add(Projections.property(\"id.codigoClienteImportacion\"),\"id.codigoClienteImportacion\")\n\t\t\t\t\t\t.add(Projections.property(\"id.codigoCompania\"),\"id.codigoCompania\")\n\t\t\t\t\t\t.add(Projections.property(\"estado\"),\"estado\");\n\t\t\t\n\t\t\tif(linComCliImpDTO.getId().getCodigoClienteImportacion() == null){\n\t\t\t\t/**si la validacion es verdadera se trae de base las descripciones de (lineaComercialDTO,clienteImportacionDTO) para presentar en pantalla estas descripciones**/\n\t\t\t\tprojectionList.add(Projections.property(\"linCom.nombre\"),\"lineaComercialDTO.nombre\");\n\t\t\t\tprojectionList.add(Projections.property(\"linCom.descripcion\"),\"lineaComercialDTO.descripcion\");\n\t\t\t\tprojectionList.add(Projections.property(\"clienImp.nombre\"),\"clienteImportacionDTO.nombre\");\n\t\t\t\tprojectionList.add(Projections.property(\"clienImp.siglas\"),\"clienteImportacionDTO.siglas\");\n\t\t\t\t\n\t\t\t\t/**se agrega restricciones para cliente importacion clienImp*/\n\t\t\t\tif(linComCliImpDTO.hasDynamicProperty(\"linComCliImp\") && linComCliImpDTO.getDynamicProperty(\"linComCliImp\") != null){\t\t\t\t\t\n\t\t\t\t\tDetachedCriteria subCriterio = DetachedCriteria.forClass(ClienteImportacionDTO.class, \"clienteImportacionDTO\")\n\t\t\t\t .add(Restrictions.eq(\"estado\", SICConstantes.ESTADO_ACTIVO_LITERAL))\n\t\t\t\t /**se agrega las restricciones ingresadas por el usuario**/\n\t\t\t\t .add(((DynamicCriteriaRestriction)linComCliImpDTO.getDynamicProperty(\"linComCliImp\")).getCriteriaRestriction())\n\t\t\t\t .setProjection(Projections.property(\"id.codigoClienteImportacion\"));\n\t\t\t\t\t/**Se agrega un exist el cual valida si existe una relacion**/\n\t\t\t\t\tcriteria.add(Subqueries.propertyIn(\"id.codigoClienteImportacion\", subCriterio));\n\t\t\t\t}\t\t\t\t\n\t\t\t\t\n\t\t\t\tcriteria.createAlias(\"lineaComercialDTO\", \"linCom\");\n\t\t\t\tcriteria.createAlias(\"clienteImportacionDTO\", \"clienImp\");\n\t\t\t\t\n\t\t\t\t\n\t\t\t}else{\n\t\t\t\t/**si la validacion es false no se une a otra tabla porque lo que se requiere es un solo registro**/\n\t\t\t\tcriteria.add(Restrictions.eq(\"id.codigoClienteImportacion\", linComCliImpDTO.getId().getCodigoClienteImportacion()));\n\t\t\t}\n\t\t\t/**al no agreagar esta restriccion se puede traer de base los estados(1,0)**/\n\t\t\tif(StringUtils.isNotBlank(linComCliImpDTO.getEstado())){\n\t\t\t\tcriteria.add(Restrictions.eq(\"estado\", linComCliImpDTO.getEstado()));\n\t\t\t}\n\t\t\t\n\t\t\tcriteria.add(Restrictions.eq(\"id.codigoLineaComercial\", linComCliImpDTO.getId().getCodigoLineaComercial()));\n\t\t\t\n\t\t\tcriteria.setProjection(projectionList);\n\t\t\t\n\t\t\tcriteria.setResultTransformer(new DtoResultTransformer(LineaComercialClienteImportacionDTO.class));\n\t\t\t\n\t\t\tCollection<LineaComercialClienteImportacionDTO> linComCliImpDTOResultCol = criteria.list();\n\t\t\t\n\t\t\treturn linComCliImpDTOResultCol;\n\t\t\t\n\t\t} catch (SICException e) {\n\t\t\tthrow new SICException(\"Error consultarLinComClienImp: \",e);\n\t\t}\n\t}", "public void sortChart() {\n\t\tPassengerTrain temp;\n\t\tGoodsTrain temp1;\n\n\t\tfor (int index = 0; index < TrainDetails.passengerList.size(); index++) {\n\t\t\tfor (int i = 0; i < TrainDetails.passengerList.size(); i++) {\n\t\t\t\tdouble totalTime1 = ((TrainDetails.passengerList).get(index).duration);\n\t\t\t\tdouble totalTime2 = (TrainDetails.passengerList.get(i).duration);\n\t\t\t\tif (totalTime1 < totalTime2) {\n\t\t\t\t\ttemp = TrainDetails.passengerList.get(index);\n\t\t\t\t\tTrainDetails.passengerList.set(index,\n\t\t\t\t\t\t\tTrainDetails.passengerList.get(i));\n\t\t\t\t\tTrainDetails.passengerList.set(i, temp);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (int index = 0; index < TrainDetails.goodsList.size(); index++) {\n\t\t\tfor (int i = 0; i < TrainDetails.goodsList.size(); i++) {\n\t\t\t\tdouble totalTime1 = ((TrainDetails.goodsList).get(index).duration);\n\t\t\t\tdouble totalTime2 = (TrainDetails.goodsList.get(i).duration);\n\t\t\t\tif (totalTime1 < totalTime2) {\n\t\t\t\t\ttemp1 = TrainDetails.goodsList.get(index);\n\t\t\t\t\tTrainDetails.goodsList.set(index,\n\t\t\t\t\t\t\tTrainDetails.goodsList.get(i));\n\t\t\t\t\tTrainDetails.goodsList.set(i, temp1);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}", "public List<SinistroPendente_FaixaVO> validaSelecionaSinistroPendente_Faixa(int tipo) {\n\n\t\tDecimalFormat percentForm = new DecimalFormat(\"0.00%\");\n\t\tDecimalFormat roundForm = new DecimalFormat(\"0.00\");\n\n\t\tList<SinistroPendente_FaixaVO> listaTratadaTotais = new ArrayList<SinistroPendente_FaixaVO>();\n\t\tList<SinistroPendente_FaixaVO> listaSinistroPendente = null;\n\t\tList<SinistroPendente_FaixaVO> listaFinal = new ArrayList<SinistroPendente_FaixaVO>();\n\n\t\tswitch (tipo) {\n\t\tcase 1: // faixa tempo\n\t\t\tlistaSinistroPendente = listaSinistroPendenteTempo;\n\t\t\tbreak;\n\t\tcase 2:// faixa valor\n\t\t\tlistaSinistroPendente = listaSinistroPendenteValor;\n\t\t\tbreak;\n\t\t}\n\n\t\tint totalNumSinistrosPendentes_Administrativo = 0;\n\t\tint totalNumSinistrosPendentes_Judicial = 0;\n\t\tint totalNumSinistrosPendentes_Total = 0;\n\n\t\tBigDecimal totalValorSinistrosPendentes_Administrativo = new BigDecimal(\"0\");\n\t\tBigDecimal totalValorSinistrosPendentes_Judicial = new BigDecimal(\"0\");\n\t\tBigDecimal totalValorSinistrosPendentes_Total = new BigDecimal(\"0\");\n\n\t\tString textoGrupoAnterior = \"\";\n\n\t\t// ============================\n\t\t// esse obj serve apenas para a lista nao ficar vazia\n\t\tSinistroPendente_FaixaVO totaNulo = new SinistroPendente_FaixaVO();\n\t\ttotaNulo.setGrupo(\"vazio\");\n\t\t// ============================\n\n\t\tlistaTratadaTotais.add(totaNulo);\n\t\tfor (int i = 0; i < listaSinistroPendente.size(); i++) {\n\n\t\t\tif (i == 0) {\n\n\t\t\t\ttextoGrupoAnterior = listaSinistroPendente.get(i).getGrupo();\n\n\t\t\t\ttotalNumSinistrosPendentes_Administrativo += listaSinistroPendente.get(i)\n\t\t\t\t\t\t.getNumSinistrosPendentes_Administrativo();\n\t\t\t\ttotalNumSinistrosPendentes_Judicial += listaSinistroPendente.get(i).getNumSinistrosPendentes_Judicial();\n\t\t\t\ttotalNumSinistrosPendentes_Total += listaSinistroPendente.get(i).getNumSinistrosPendentes_Total();\n\n\t\t\t\ttotalValorSinistrosPendentes_Administrativo = totalValorSinistrosPendentes_Administrativo\n\t\t\t\t\t\t.add(new BigDecimal(listaSinistroPendente.get(i).getValorSinistrosPendentes_Administrativo()));\n\t\t\t\ttotalValorSinistrosPendentes_Judicial = totalValorSinistrosPendentes_Judicial\n\t\t\t\t\t\t.add(new BigDecimal(listaSinistroPendente.get(i).getValorSinistrosPendentes_Judicial()));\n\t\t\t\ttotalValorSinistrosPendentes_Total = totalValorSinistrosPendentes_Total\n\t\t\t\t\t\t.add(new BigDecimal(listaSinistroPendente.get(i).getValorSinistrosPendentes_Total()));\n\n\t\t\t} else if (listaSinistroPendente.get(i).getGrupo().equals(textoGrupoAnterior)) {\n\n\t\t\t\ttextoGrupoAnterior = listaSinistroPendente.get(i).getGrupo();\n\n\t\t\t\ttotalNumSinistrosPendentes_Administrativo += listaSinistroPendente.get(i)\n\t\t\t\t\t\t.getNumSinistrosPendentes_Administrativo();\n\t\t\t\ttotalNumSinistrosPendentes_Judicial += listaSinistroPendente.get(i).getNumSinistrosPendentes_Judicial();\n\t\t\t\ttotalNumSinistrosPendentes_Total += listaSinistroPendente.get(i).getNumSinistrosPendentes_Total();\n\n\t\t\t\ttotalValorSinistrosPendentes_Administrativo = totalValorSinistrosPendentes_Administrativo\n\t\t\t\t\t\t.add(new BigDecimal(listaSinistroPendente.get(i).getValorSinistrosPendentes_Administrativo()));\n\t\t\t\ttotalValorSinistrosPendentes_Judicial = totalValorSinistrosPendentes_Judicial\n\t\t\t\t\t\t.add(new BigDecimal(listaSinistroPendente.get(i).getValorSinistrosPendentes_Judicial()));\n\t\t\t\ttotalValorSinistrosPendentes_Total = totalValorSinistrosPendentes_Total\n\t\t\t\t\t\t.add(new BigDecimal(listaSinistroPendente.get(i).getValorSinistrosPendentes_Total()));\n\n\t\t\t} else if (!(listaSinistroPendente.get(i).getGrupo().equals(textoGrupoAnterior))) {\n\n\t\t\t\tSinistroPendente_FaixaVO totalVO = new SinistroPendente_FaixaVO();\n\t\t\t\ttotalVO.setGrupo(textoGrupoAnterior);\n\t\t\t\ttotalVO.setFaixa(\"Total\");\n\t\t\t\ttotalVO.setValorSinistrosPendentes_Administrativo(\n\t\t\t\t\t\ttotalValorSinistrosPendentes_Administrativo.toString());\n\t\t\t\ttotalVO.setValorSinistrosPendentes_Judicial(totalValorSinistrosPendentes_Judicial.toString());\n\t\t\t\ttotalVO.setValorSinistrosPendentes_Total(totalValorSinistrosPendentes_Total.toString());\n\t\t\t\ttotalVO.setNumSinistrosPendentes_Administrativo(totalNumSinistrosPendentes_Administrativo);\n\t\t\t\ttotalVO.setNumSinistrosPendentes_Judicial(totalNumSinistrosPendentes_Judicial);\n\t\t\t\ttotalVO.setNumSinistrosPendentes_Total(totalNumSinistrosPendentes_Total);\n\t\t\t\tlistaTratadaTotais.add(totalVO);\n\n\t\t\t\ttextoGrupoAnterior = listaSinistroPendente.get(i).getGrupo();\n\n\t\t\t\ttotalValorSinistrosPendentes_Administrativo = new BigDecimal(\"0\");\n\t\t\t\ttotalValorSinistrosPendentes_Administrativo = totalValorSinistrosPendentes_Administrativo\n\t\t\t\t\t\t.add(new BigDecimal(listaSinistroPendente.get(i).getValorSinistrosPendentes_Administrativo()));\n\n\t\t\t\ttotalValorSinistrosPendentes_Judicial = new BigDecimal(\"0\");\n\t\t\t\ttotalValorSinistrosPendentes_Judicial = totalValorSinistrosPendentes_Judicial\n\t\t\t\t\t\t.add(new BigDecimal(listaSinistroPendente.get(i).getValorSinistrosPendentes_Judicial()));\n\n\t\t\t\ttotalValorSinistrosPendentes_Total = new BigDecimal(\"0\");\n\t\t\t\ttotalValorSinistrosPendentes_Total = totalValorSinistrosPendentes_Total\n\t\t\t\t\t\t.add(new BigDecimal(listaSinistroPendente.get(i).getValorSinistrosPendentes_Total()));\n\n\t\t\t\ttotalNumSinistrosPendentes_Administrativo = 0;\n\t\t\t\ttotalNumSinistrosPendentes_Administrativo += listaSinistroPendente.get(i)\n\t\t\t\t\t\t.getNumSinistrosPendentes_Administrativo();\n\n\t\t\t\ttotalNumSinistrosPendentes_Judicial = 0;\n\t\t\t\ttotalNumSinistrosPendentes_Judicial += listaSinistroPendente.get(i).getNumSinistrosPendentes_Judicial();\n\n\t\t\t\ttotalNumSinistrosPendentes_Total = 0;\n\t\t\t\ttotalNumSinistrosPendentes_Total += listaSinistroPendente.get(i).getNumSinistrosPendentes_Total();\n\n\t\t\t}\n\n\t\t}\n\t\tboolean insere = false;\n\t\tfor (int i = 0; i < listaTratadaTotais.size(); i++) {\n\t\t\tif (listaTratadaTotais.get(i).getGrupo().equalsIgnoreCase(textoGrupoAnterior)) {\n\t\t\t\tinsere = false;\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tinsere = true;\n\t\t\t}\n\t\t}\n\t\tif (insere) {\n\t\t\tSinistroPendente_FaixaVO totaVO = new SinistroPendente_FaixaVO();\n\t\t\ttotaVO.setGrupo(textoGrupoAnterior);\n\t\t\ttotaVO.setFaixa(\"Total\");\n\t\t\ttotaVO.setValorSinistrosPendentes_Administrativo(totalValorSinistrosPendentes_Administrativo.toString());\n\t\t\ttotaVO.setValorSinistrosPendentes_Judicial(totalValorSinistrosPendentes_Judicial.toString());\n\t\t\ttotaVO.setValorSinistrosPendentes_Total(totalValorSinistrosPendentes_Total.toString());\n\n\t\t\ttotaVO.setNumSinistrosPendentes_Administrativo(totalNumSinistrosPendentes_Administrativo);\n\t\t\ttotaVO.setNumSinistrosPendentes_Judicial(totalNumSinistrosPendentes_Judicial);\n\t\t\ttotaVO.setNumSinistrosPendentes_Total(totalNumSinistrosPendentes_Total);\n\t\t\tlistaTratadaTotais.add(totaVO);\n\t\t}\n\t\tlistaTratadaTotais.remove(0);// remove o obj inserido acima com o texto\n\t\t\t\t\t\t\t\t\t\t// \"nulo\"\n\n\t\t// ###################################################\n\t\t// ###################################################\n\t\t// parte para calcular as porcentagens\n\t\t// ###################################################\n\n\t\t// este 'for' serve para vincular a lista de pendentes com a lista de\n\t\t// totais atraves do indice da lista de totais\n\t\ttextoGrupoAnterior = \"\";\n\t\tint tamLista = listaSinistroPendente.size();\n\t\tfor (int i = 0; i < tamLista; i++) {\n\t\t\tfor (int j = 0; j < listaTratadaTotais.size(); j++) {\n\t\t\t\tif (listaSinistroPendente.get(i).getGrupo().equalsIgnoreCase(listaTratadaTotais.get(j).getGrupo())) {\n\t\t\t\t\t// Exemplo: Na listaSinistroPendente na posicao i=5 o\n\t\t\t\t\t// produto eh \"Auto Correntista\". Na listaTratadaTotais\n\t\t\t\t\t// esse produto \"Auto Correntista\" eh j=1. Entao assim\n\t\t\t\t\t// saberei onde esta o total de \"Auto Correntista\" na\n\t\t\t\t\t// listaTratadaTotais.\n\t\t\t\t\tlistaSinistroPendente.get(i).setIndiceListaTotais(j);\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// este 'for' serve para organizar as listas de pendentes e a lista de\n\t\t// totais\n\t\tint inseriu = 0;\n\t\tint ultimoIndice = 0;\n\t\tfor (int j = 0; j < listaSinistroPendente.size(); j++) {\n\n\t\t\tif (listaSinistroPendente.get(j).getIndiceListaTotais() != ultimoIndice) {\n\t\t\t\tinseriu = 0;\n\t\t\t}\n\t\t\tif (inseriu == 0) {\n\t\t\t\tlistaFinal.add(listaTratadaTotais.get(listaSinistroPendente.get(j).getIndiceListaTotais()));\n\t\t\t\tultimoIndice = listaSinistroPendente.get(j).getIndiceListaTotais();\n\t\t\t\tinseriu = 1;\n\t\t\t}\n\n\t\t\tlistaFinal.add(listaSinistroPendente.get(j));\n\n\t\t}\n\n\t\tfor (int i = 0; i < listaFinal.size(); i++) {\n\t\t\tif (!(listaFinal.get(i).getFaixa().equalsIgnoreCase(\"Total\"))) {\n\n\t\t\t\tint indice = listaFinal.get(i).getIndiceListaTotais();\n\t\t\t\ttry {\n\t\t\t\t\tlistaFinal.get(i).setNumPercentSinistrosPendentes_Administrativo(\n\t\t\t\t\t\t\tpercentForm.format((double) (listaFinal.get(i).getNumSinistrosPendentes_Administrativo())\n\t\t\t\t\t\t\t\t\t/ (listaTratadaTotais.get(indice).getNumSinistrosPendentes_Administrativo())));\n\t\t\t\t\tlistaFinal.get(i).setValorPercentSinistrosPendentes_Administrativo(percentForm.format(\n\t\t\t\t\t\t\tnew BigDecimal(listaFinal.get(i).getValorSinistrosPendentes_Administrativo()).divide(\n\t\t\t\t\t\t\t\t\tnew BigDecimal(\n\t\t\t\t\t\t\t\t\t\t\tlistaTratadaTotais.get(indice).getValorSinistrosPendentes_Administrativo()),\n\t\t\t\t\t\t\t\t\t6, RoundingMode.HALF_DOWN)));\n\n\t\t\t\t} catch (ArithmeticException ae) {\n\t\t\t\t\tlistaFinal.get(i).setNumPercentSinistrosPendentes_Administrativo(\"0%\");\n\t\t\t\t\tlistaFinal.get(i).setValorPercentSinistrosPendentes_Administrativo(\"0%\");\n\n\t\t\t\t}\n\n\t\t\t\ttry {\n\t\t\t\t\tlistaFinal.get(i).setNumPercentSinistrosPendentes_Judicial(\n\t\t\t\t\t\t\tpercentForm.format((double) (listaFinal.get(i).getNumSinistrosPendentes_Judicial())\n\t\t\t\t\t\t\t\t\t/ (listaTratadaTotais.get(indice).getNumSinistrosPendentes_Judicial())));\n\n\t\t\t\t\tlistaFinal.get(i).setValorPercentSinistrosPendentes_Judicial(percentForm\n\t\t\t\t\t\t\t.format(new BigDecimal(listaFinal.get(i).getValorSinistrosPendentes_Judicial()).divide(\n\t\t\t\t\t\t\t\t\tnew BigDecimal(\n\t\t\t\t\t\t\t\t\t\t\tlistaTratadaTotais.get(indice).getValorSinistrosPendentes_Judicial()),\n\t\t\t\t\t\t\t\t\t6, RoundingMode.HALF_DOWN)));\n\n\t\t\t\t} catch (ArithmeticException ae) {\n\t\t\t\t\tlistaFinal.get(i).setNumPercentSinistrosPendentes_Judicial(\"0%\");\n\t\t\t\t\tlistaFinal.get(i).setValorPercentSinistrosPendentes_Judicial(\"0%\");\n\t\t\t\t}\n\n\t\t\t\ttry {\n\t\t\t\t\tlistaFinal.get(i).setNumPercentSinistrosPendentes_Total(\n\t\t\t\t\t\t\tpercentForm.format((double) (listaFinal.get(i).getNumSinistrosPendentes_Total())\n\t\t\t\t\t\t\t\t\t/ (listaTratadaTotais.get(indice).getNumSinistrosPendentes_Total())));\n\n\t\t\t\t\tlistaFinal.get(i).setValorPercentSinistrosPendentes_Total(percentForm\n\t\t\t\t\t\t\t.format(new BigDecimal(listaFinal.get(i).getValorSinistrosPendentes_Total()).divide(\n\t\t\t\t\t\t\t\t\tnew BigDecimal(listaTratadaTotais.get(indice).getValorSinistrosPendentes_Total()),\n\t\t\t\t\t\t\t\t\t6, RoundingMode.HALF_DOWN)));\n\n\t\t\t\t} catch (ArithmeticException ae) {\n\t\t\t\t\tlistaFinal.get(i).setNumPercentSinistrosPendentes_Total(\"0%\");\n\t\t\t\t\tlistaFinal.get(i).setValorPercentSinistrosPendentes_Total(\"0%\");\n\t\t\t\t}\n\n\t\t\t} // if\n\t\t} // for\n\n\t\tfor (int i = 0; i < listaFinal.size(); i++) {\n\n\t\t\tlistaFinal.get(i).setValorSinistrosPendentes_Administrativo(uteis.insereSeparadoresMoeda(roundForm\n\t\t\t\t\t.format(Double.parseDouble(listaFinal.get(i).getValorSinistrosPendentes_Administrativo()))));\n\t\t\tlistaFinal.get(i).setValorSinistrosPendentes_Judicial(uteis.insereSeparadoresMoeda(\n\t\t\t\t\troundForm.format(Double.parseDouble(listaFinal.get(i).getValorSinistrosPendentes_Judicial()))));\n\t\t\tlistaFinal.get(i).setValorSinistrosPendentes_Total(uteis.insereSeparadoresMoeda(\n\t\t\t\t\troundForm.format(Double.parseDouble(listaFinal.get(i).getValorSinistrosPendentes_Total()))));\n\n\t\t}\n\n\t\treturn listaFinal;\n\t}", "private EstudianteActaGradoJdbcDto transformarResultSetADtoBuscarEstudianteXIndetificacionXCarreraXConvocatoria(ResultSet rs) throws SQLException{\n\t\tjava.sql.Date fecha = null;\n\t\tEstudianteActaGradoJdbcDto retorno = new EstudianteActaGradoJdbcDto();\n\t\t\n\t\tretorno.setPrsId(rs.getInt(JdbcConstantes.PRS_ID));\n\t\tretorno.setPrsTipoIdentificacion(rs.getInt(JdbcConstantes.PRS_TIPO_IDENTIFICACION));\n\t\tretorno.setPrsTipoIdentificacionSniese(rs.getInt(JdbcConstantes.PRS_TIPO_IDENTIFICACION_SNIESE));\n\t\tretorno.setPrsIdentificacion(rs.getString(JdbcConstantes.PRS_IDENTIFICACION));\n\t\tretorno.setPrsPrimerApellido(rs.getString(JdbcConstantes.PRS_PRIMER_APELLIDO));\n\t\tretorno.setPrsSegundoApellido(rs.getString(JdbcConstantes.PRS_SEGUNDO_APELLIDO));\n\t\tretorno.setPrsNombres(rs.getString(JdbcConstantes.PRS_NOMBRES));\n\t\tretorno.setPrsSexo(rs.getInt(JdbcConstantes.PRS_SEXO));\n\t\tretorno.setPrsSexoSniese(rs.getInt(JdbcConstantes.PRS_SEXO_SNIESE));\n\t\tretorno.setPrsMailPersonal(rs.getString(JdbcConstantes.PRS_MAIL_PERSONAL));\n\t\tretorno.setPrsMailInstitucional(rs.getString(JdbcConstantes.PRS_MAIL_INSTITUCIONAL));\n\t\tretorno.setPrsTelefono(rs.getString(JdbcConstantes.PRS_TELEFONO));\n\t\tretorno.setPrsEtnId(rs.getInt(JdbcConstantes.PRS_ETN_ID));\n\t\tretorno.setPrsUbcId(rs.getInt(JdbcConstantes.PRS_UBC_ID));\n\t\ttry {\n\t\t\tretorno.setPrsUbicacionFoto(rs.getString(JdbcConstantes.PRS_UBICACION_FOTO));\n\t\t} catch (Exception e) {\n\t\t}\n\t\tfecha = rs.getDate(JdbcConstantes.PRS_FECHA_NACIMIENTO);\n\t\tif(fecha != null ){\n\t\t\tretorno.setPrsFechaNacimiento(new Date(fecha.getTime()));\n\t\t}\n\t\t//**** CAMPOS DE ETNIA ****/\n\t\tretorno.setEtnId(rs.getInt(JdbcConstantes.ETN_ID));\n\t\tretorno.setEtnDescripcion(rs.getString(JdbcConstantes.ETN_DESCRIPCION));\n\t\tretorno.setEtnCodigoSniese(rs.getString(JdbcConstantes.ETN_CODIGO_SNIESE));\n\t\t\n\t\t//**** CAMPOS DE UBICACION NACIONALIDAD ****/\n\t\tretorno.setUbcId(rs.getInt(JdbcConstantes.UBC_ID));\n\t\tretorno.setUbcDescripcion(rs.getString(JdbcConstantes.UBC_DESCRIPCION));\n\t\tretorno.setUbcGentilicio(rs.getString(\"ubcNacionalidad\"+JdbcConstantes.UBC_GENTILICIO));\n\t\tretorno.setUbcCodSniese(rs.getString(JdbcConstantes.UBC_COD_SNIESE));\n\t\tretorno.setUbcJerarquia(rs.getInt(\"ubcNacionalidad\"+JdbcConstantes.UBC_JERARQUIA));\n\t\tretorno.setUbcPadre(rs.getInt(\"ubcNacionalidad\"+JdbcConstantes.UBC_PADRE));\n\t\t\n\t\t//**** CAMPOS DE FICHA_ESTUDIANTE ****/\n\t\tretorno.setFcesId(rs.getInt(JdbcConstantes.FCES_ID));\n\t\tretorno.setFcesFechaInicio(rs.getDate(JdbcConstantes.FCES_FECHA_INICIO_COHORTE));\n\t\tretorno.setFcesFechaEgresamiento(rs.getDate(JdbcConstantes.FCES_FECHA_FIN_COHORTE));\n\t\tretorno.setFcesFechaActaGrado(rs.getTimestamp(JdbcConstantes.FCES_FECHA_ACTA_GRADO));\n\t\tretorno.setFcesNumActaGrado(rs.getString(JdbcConstantes.FCES_NUM_ACTA_GRADO));\n\t\tretorno.setFcesFechaRefrendacion(rs.getDate(\"fces\"+JdbcConstantes.FCES_FECHA_REFRENDACION));\n\t\tretorno.setFcesNumRefrendacion(rs.getString(\"fces\"+JdbcConstantes.FCES_NUM_REFRENDACION));\n\t\tretorno.setFcesCrrEstudPrevios(rs.getString(\"fces\"+JdbcConstantes.FCES_CRR_ESTUD_PREVIOS));\n\t\t\n//\t\tretorno.setFcesTiempoEstudRec(rs.getInt(JdbcConstantes.FCES_TIEMPO_ESTUD_REC));\n\t\t\n\t\t\n//\t\tint aux = rs.getInt(JdbcConstantes.FCES_TIPO_DURAC_REC);\n\t\tif(rs.getInt(\"fces\"+JdbcConstantes.FCES_TIPO_DURAC_REC)==GeneralesConstantes.APP_ID_BASE){\n\t\t\tretorno.setFcesTipoDuracionRec(GeneralesConstantes.APP_ID_BASE);\n\t\t}else{\n\t\tretorno.setFcesTipoDuracionRec(rs.getInt(\"fces\"+JdbcConstantes.FCES_TIPO_DURAC_REC));\n\t\t}\n\t\t\n\t\t\n//\t\tint aux1 = rs.getInt(JdbcConstantes.FCES_TIEMPO_ESTUD_REC);\n\t\tif(rs.getInt(\"fces\"+JdbcConstantes.FCES_TIEMPO_ESTUD_REC)==GeneralesConstantes.APP_ID_BASE){\n\t\t\tretorno.setFcesTiempoEstudRecSt(\"\");\n\t\t}else{\n\t\tretorno.setFcesTiempoEstudRec(rs.getInt(\"fces\"+JdbcConstantes.FCES_TIEMPO_ESTUD_REC));\n\t\t}\n\t\t\n\t\t\n\t\tretorno.setFcesTipoColegio(rs.getInt(JdbcConstantes.FCES_TIPO_COLEGIO));\n\t\tretorno.setFcesTipoColegioSniese(rs.getString(JdbcConstantes.FCES_TIPO_COLEGIO_SNIESE));\n\t\tretorno.setFcesNotaPromAcumulado(rs.getBigDecimal(\"fces\"+JdbcConstantes.FCES_NOTA_PROM_ACUMULADO));\n\t\tretorno.setFcesNotaTrabTitulacion(rs.getBigDecimal(JdbcConstantes.FCES_NOTA_TRAB_TITULACION));\n\t\tretorno.setFcesLinkTesis(rs.getString(\"fces\"+JdbcConstantes.FCES_LINK_TESIS));\n\t\tretorno.setFcesRecEstuPrevios(rs.getInt(JdbcConstantes.FCES_REC_ESTUD_PREVIOS));\n\t\tretorno.setFcesRecEstuPreviosSniese(rs.getString(JdbcConstantes.FCES_REC_ESTUD_PREV_SNIESE));\n\t\tretorno.setFcesFechaCreacion(rs.getTimestamp(JdbcConstantes.FCES_FECHA_CREACION));\n\t\tretorno.setFcesHoraActaGrado(rs.getString(JdbcConstantes.FCES_HORA_ACTA_GRADO));\n\t\t\n\t\tretorno.setFcesTituloBachiller(rs.getString(JdbcConstantes.FCES_TITULO_BACHILLER));\n\t\t\n\t\t\n\t\t\n\t\t//**** CAMPOS DE FICHA_ESTUDIANTE UBICACION RESIDENCIA ****/\n\t\tretorno.setFcesUbcCantonResidencia(rs.getInt(\"fces\"+JdbcConstantes.FCES_UBC_CANTON_RESIDENCIA));\n\t\t//**** UBICACION CANTON ****//\n\t\tretorno.setUbcCantonId(rs.getInt(\"ubcCanton\"+JdbcConstantes.UBC_ID));\n\t\tretorno.setUbcCantonDescripcion(rs.getString(\"ubcCanton\"+JdbcConstantes.UBC_DESCRIPCION));\n//\t\tretorno.setUbcCantonGentilicio(rs.getString(\"ubcCanton\"+JdbcConstantes.UBC_GENTILICIO));\n\t\tretorno.setUbcCantonCodSniese(rs.getString(\"ubcCanton\"+JdbcConstantes.UBC_COD_SNIESE));\n//\t\tretorno.setUbcCantonJerarquia(rs.getInt(\"ubcCanton\"+JdbcConstantes.UBC_JERARQUIA));asd\n\t\tretorno.setUbcCantonPadre(rs.getInt(\"ubcCanton\"+JdbcConstantes.UBC_PADRE));\n\t\t\n\t\t//**** UBICACION PROVINCIA ****//\n\t\tretorno.setUbcProvId(rs.getInt(\"ubcProv\"+JdbcConstantes.UBC_ID));\n\t\tretorno.setUbcProvDescripcion(rs.getString(\"ubcProv\"+JdbcConstantes.UBC_DESCRIPCION));\n//\t\tretorno.setUbcProvGentilicio(rs.getString(\"ubcProv\"+JdbcConstantes.UBC_GENTILICIO));\n\t\tretorno.setUbcProvCodSniese(rs.getString(\"ubcProv\"+JdbcConstantes.UBC_COD_SNIESE));\n//\t\tretorno.setUbcProvJerarquia(rs.getInt(\"ubcProv\"+JdbcConstantes.UBC_JERARQUIA));\n\t\tretorno.setUbcProvPadre(rs.getInt(\"ubcProv\"+JdbcConstantes.UBC_PADRE));\n\n\t\t//**** UBICACION PAIS ****//\n\t\tretorno.setUbcPaisId(rs.getInt(\"ubcPais\"+JdbcConstantes.UBC_ID));\n\t\tretorno.setUbcPaisDescripcion(rs.getString(\"ubcPais\"+JdbcConstantes.UBC_DESCRIPCION));\n//\t\tretorno.setUbcPaisGentilicio(rs.getString(\"ubcPais\"+JdbcConstantes.UBC_GENTILICIO));\n\t\tretorno.setUbcPaisCodSniese(rs.getString(\"ubcPais\"+JdbcConstantes.UBC_COD_SNIESE));\n//\t\tretorno.setUbcPaisJerarquia(rs.getInt(\"ubcPais\"+JdbcConstantes.UBC_JERARQUIA));\n\t\tretorno.setUbcPaisPadre(rs.getInt(\"ubcPais\"+JdbcConstantes.UBC_PADRE));\n\n\t\tretorno.setFcesMcttcrId(rs.getInt(JdbcConstantes.FCES_MCCR_ID));\n\t\t//**** CAMPOS DE FICHA_ESTUDIANTE MECANISMO TITULACION CARRERA ****/\n\t\tretorno.setMcttcrId(rs.getInt(JdbcConstantes.MCCR_ID));\n\t\tretorno.setMcttcrEstado(rs.getInt(JdbcConstantes.MCCR_ESTADO));\n\t\tretorno.setMcttcrCrrId(rs.getInt(JdbcConstantes.MCCR_CRR_ID));\n\t\tretorno.setMcttcrMcttId(rs.getInt(JdbcConstantes.MCCR_MCTT_ID));\n\t\tretorno.setMcttcrPorcentaje(rs.getInt(JdbcConstantes.MCCR_PORCENTAJE));\n\t\t\n\t\t//**** CAMPOS DE FICHA_ESTUDIANTE MECANISMO TITULACION ****/\t\t\n\t\tretorno.setMcttId(rs.getInt(JdbcConstantes.MCTT_ID));\n\t\tretorno.setMcttCodigoSniese(rs.getString(JdbcConstantes.MCTT_CODIGO_SNIESE));\n\t\tretorno.setMcttDescripcion(rs.getString(JdbcConstantes.MCTT_DESCRIPCION));\n\t\tretorno.setMcttEstado(rs.getInt(JdbcConstantes.MCTT_ESTADO));\n\t\t\n\t\tretorno.setFcesInacIdInstEstPrevios(rs.getInt(JdbcConstantes.FCES_INAC_ID_INST_EST_PREVIOS));\t\t\n\t\t//**** CAMPOS DE FICHA_ESTUDIANTE INTITUCION ACADEMICA ****/\n\t\tretorno.setInacId(rs.getInt(JdbcConstantes.INAC_ID));\n\t\tretorno.setInacDescripcion(rs.getString(JdbcConstantes.INAC_DESCRIPCION));\n\t\tretorno.setInacCodigoSniese(rs.getString(JdbcConstantes.INAC_CODIGO_SNIESE));\n\t\tretorno.setInacNivel(rs.getInt(JdbcConstantes.INAC_NIVEL));\n\t\tretorno.setInacTipo(rs.getInt(JdbcConstantes.INAC_TIPO));\n\t\tretorno.setInacTipoSniese(rs.getString(JdbcConstantes.INAC_TIPO_SNIESE));\n\t\tretorno.setInacubcId(rs.getInt(JdbcConstantes.INAC_UBC_ID));\n\t\t\n\t\tretorno.setFcesPrsId(rs.getInt(JdbcConstantes.FCES_PRS_ID));\t\t\n\t\t//**** CAMPOS DE FICHA_ESTUDIANTE TRAMITE TITULO ****/\n\t\tretorno.setFcesTrttId(rs.getInt(JdbcConstantes.FCES_TRTT_ID));\n\t\tretorno.setTrttId(rs.getInt(JdbcConstantes.TRTT_ID));\n\t\tretorno.setTrttNumTramite(rs.getString(JdbcConstantes.TRTT_NUM_TRAMITE));\n\t\tretorno.setTrttEstadoProceso(rs.getInt(JdbcConstantes.TRTT_ESTADO_PROCESO));\n\t\tretorno.setTrttEstadoTramite(rs.getInt(JdbcConstantes.TRTT_ESTADO_TRAMITE));\n\t\tretorno.setTrttSubId(rs.getInt(JdbcConstantes.TRTT_SUB_ID));\n\t\tretorno.setTrttCarreraId(rs.getInt(JdbcConstantes.TRTT_CARRERA_ID));\n\t\tretorno.setTrttCnvId(rs.getInt(JdbcConstantes.TRTT_CNV_ID));\n\t\t\n\t\t//**** CAMPOS DE FICHA_ESTUDIANTE - TRAMITE_TITULO - CONVOCATORIA ****/\n\t\tretorno.setCnvId(rs.getInt(JdbcConstantes.CNV_ID));\n\t\tretorno.setCnvDescripcion(rs.getString(JdbcConstantes.CNV_DESCRIPCION));\n\t\tretorno.setCnvEstado(rs.getInt(JdbcConstantes.CNV_ESTADO));\n\t\tretorno.setCnvEstadoFase(rs.getInt(JdbcConstantes.CNV_ESTADO_FASE));\n\t\tretorno.setCnvFechaInicio(rs.getDate(JdbcConstantes.CNV_FECHA_INICIO));\n\t\tretorno.setCnvFechaFin(rs.getDate(JdbcConstantes.CNV_FECHA_FIN));\n\t\t\n\t\t//**** CAMPOS DE FICHA_ESTUDIANTE - TRAMITE_TITULO - CARRERA ****//\n\t\tretorno.setCrrId(rs.getInt(JdbcConstantes.CRR_ID));\n\t\tretorno.setCrrDescripcion(rs.getString(JdbcConstantes.CRR_DESCRIPCION));\n\t\tretorno.setCrrCodSniese(rs.getString(JdbcConstantes.CRR_COD_SNIESE));\n\t\tretorno.setCrrDetalle(rs.getString(JdbcConstantes.CRR_DETALLE));\n\t\tretorno.setCrrFclId(rs.getInt(JdbcConstantes.CRR_FCL_ID));\n\t\t\n\t\t//**** CAMPOS DE FICHA_ESTUDIANTE - TRAMITE_TITULO - CARRERA - FACULTAD ****//\n\t\tretorno.setFclId(rs.getInt(JdbcConstantes.FCL_ID));\n\t\tretorno.setFclDescripcion(rs.getString(JdbcConstantes.FCL_DESCRIPCION));\n\t\t\n\t\t//**** CAMPOS DE FICHA_ESTUDIANTE ****//\n//\t\tretorno.setFcesTituloBachillerId(rs.getInt(JdbcConstantes.TTL_ID));\n//\t\t//**** CAMPOS DE FICHA_ESTUDIANTE - TRAMITE_TITULO - CARRERA - FACULTAD ****//\n//\t\tretorno.setTtlId(rs.getInt(JdbcConstantes.TTL_ID));\n//\t\tretorno.setTtlDescripcion(rs.getString(JdbcConstantes.TTL_DESCRIPCION));\n//\t\tretorno.setTtlSexo(rs.getInt(JdbcConstantes.TTL_SEXO));\n//\t\tretorno.setTtlTipo(rs.getInt(JdbcConstantes.TTL_TIPO));\n//\t\tretorno.setTtlEstado(rs.getInt(JdbcConstantes.TTL_ESTADO));\n\t\t\n\t\t//**** CAMPOS DE FICHA_ESTUDIANTE ****//\n\t\tretorno.setFcesCncrId(rs.getInt(\"fces\"+JdbcConstantes.FCES_CNCR_ID));\n\t\t\n\t\t//CAMPOS DE ASENTAMIENTO NOTA\n\t\ttry {\n\t\t\tretorno.setAsnoPrmDfnOral(rs.getBigDecimal(JdbcConstantes.ASNO_PRM_DFN_ORAL));\n\t\t} catch (Exception e) {\n\t\t}\n\t\ttry {\n\t\t\tretorno.setAsnoPrmDfnEscrito(rs.getBigDecimal(JdbcConstantes.ASNO_PRM_TRB_ESCRITO));\n\t\t} catch (Exception e) {\n\t\t}\n\t\ttry {\n\t\t\tretorno.setAsnoTrabTitulacionFinal(rs.getBigDecimal(JdbcConstantes.ASNO_TRB_TITULACION_FINAL));\n\t\t} catch (Exception e) {\n\t\t}\n\t\treturn retorno;\n\t}", "@Override\n\t\tpublic int compare(MapEntity o1, MapEntity o2) {\n\t\t\tfloat o1RenderY = o1.getCutOffY();\n\t\t\tfloat o2RenderY = o2.getCutOffY();\n\n\t\t\tfloat comparisonVal = o2RenderY - o1RenderY;\n\t\t\tif (comparisonVal < 0) {\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t\tif (comparisonVal > 0) {\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t\treturn 0;\n\t\t}", "public void buscarComprobantesEntreFechas(){\n listaComprobantes = this.getEjbFacadeComprobantes().buscarEntreFechasConEstadoSinRendicionExterna(desde,hasta);\n \n System.out.println(\"listaComprobantes cantidad >> \" + listaComprobantes.size());\n }", "private void listarEntidades() {\r\n\t\tsetListEntidades(new ArrayList<EntidadDTO>());\r\n\t\tgetListEntidades().addAll(entidadController.encontrarTodos());\r\n\t\tif (!getListEntidades().isEmpty()) {\r\n\t\t\tfor (EntidadDTO entidadDTO : getListEntidades()) {\r\n\t\t\t\t// Conversión de decimales.\r\n\t\t\t\tDouble porcentaje = entidadDTO.getPorcentajeValorAsegurable() * 100;\r\n\t\t\t\tdouble por = Math.round(porcentaje * Math.pow(10, 2)) / Math.pow(10, 2);\r\n\t\t\t\tentidadDTO.setPorcentajeValorAsegurable(por);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private String htmlV(final TableFacade tableFacade,\n\t\t\tfinal HttpServletRequest request) {\n\t\ttableFacade.setColumnProperties(\"codigoEmpleado\", \"tDescBase\", \"ascId\",\n\t\t\t\t\"tDescPlanilla\", \"encontrado\");\n\t\tTable table = tableFacade.getTable();\n\t\t// ---- Titulo de la tabla\n\t\ttable.setCaptionKey(\"tbl.compPlanilla.caption\");\n\n\t\tRow row = table.getRow();\n\t\tColumn nombreColumna = row.getColumn(\"codigoEmpleado\");\n\t\tnombreColumna.setTitleKey(\"tbl.compPlanilla.codigoEmpleado\");\n\t\tnombreColumna.getCellRenderer().setCellEditor(new CellEditor() {\n\n\t\t\tpublic Object getValue(Object item, String property, int rowcount) {\n\t\t\t\tObject value = new BasicCellEditor().getValue(item, property,\n\t\t\t\t\t\trowcount);\n\t\t\t\tCompPlanilla compPlanilla = (CompPlanilla) item;\n\t\t\t\treturn compPlanilla.getCodigoEmpleado();\n\t\t\t}\n\t\t});\n\n\t\tnombreColumna = row.getColumn(\"tDescBase\");\n\t\tnombreColumna.setTitleKey(\"tbl.compPlanilla.tDescBase\");\n\t\tnombreColumna.getCellRenderer().setCellEditor(new CellEditor() {\n\n\t\t\tpublic Object getValue(Object item, String property, int rowcount) {\n\t\t\t\tObject value = new BasicCellEditor().getValue(item, property,\n\t\t\t\t\t\trowcount);\n\t\t\t\tCompPlanilla compPlanilla = (CompPlanilla) item;\n\t\t\t\treturn Format.formatDinero(compPlanilla.getTDescBase());\n\t\t\t}\n\t\t});\n\n\t\tnombreColumna = row.getColumn(\"ascId\");\n\t\tnombreColumna.setTitleKey(\"tbl.compPlanilla.comparacion\");\n\t\tnombreColumna.getCellRenderer().setCellEditor(new CellEditor() {\n\n\t\t\tpublic Object getValue(Object item, String property, int rowcount) {\n\t\t\t\tObject value = new BasicCellEditor().getValue(item, property,\n\t\t\t\t\t\trowcount);\n\t\t\t\tCompPlanilla compPlanilla = (CompPlanilla) item;\n\t\t\t\tString valor = \"\";\n\t\t\t\tif (compPlanilla.getTDescBase() > compPlanilla\n\t\t\t\t\t\t.getTDescPlanilla()) {\n\t\t\t\t\tvalor = \" > \";\n\t\t\t\t}\n\t\t\t\tif (compPlanilla.getTDescBase() < compPlanilla\n\t\t\t\t\t\t.getTDescPlanilla()) {\n\t\t\t\t\tvalor = \" < \";\n\t\t\t\t}\n\t\t\t\tif (compPlanilla.getTDescBase() == compPlanilla\n\t\t\t\t\t\t.getTDescPlanilla()) {\n\t\t\t\t\tvalor = \" = \";\n\t\t\t\t}\n\t\t\t\treturn valor;\n\t\t\t}\n\t\t});\n\n\t\tnombreColumna = row.getColumn(\"tDescPlanilla\");\n\t\tnombreColumna.setTitleKey(\"tbl.compPlanilla.tDescPlanilla\");\n\t\tnombreColumna.getCellRenderer().setCellEditor(new CellEditor() {\n\n\t\t\tpublic Object getValue(Object item, String property, int rowcount) {\n\t\t\t\tObject value = new BasicCellEditor().getValue(item, property,\n\t\t\t\t\t\trowcount);\n\t\t\t\tCompPlanilla compPlanilla = (CompPlanilla) item;\n\t\t\t\treturn Format.formatDinero(compPlanilla.getTDescPlanilla());\n\t\t\t}\n\t\t});\n\n\t\tnombreColumna = row.getColumn(\"encontrado\");\n\t\tnombreColumna.setTitleKey(\"tbl.compPlanilla.encontrado\");\n\t\tnombreColumna.getCellRenderer().setCellEditor(new CellEditor() {\n\n\t\t\tpublic Object getValue(Object item, String property, int rowcount) {\n\t\t\t\tObject value = new BasicCellEditor().getValue(item, property,\n\t\t\t\t\t\trowcount);\n\t\t\t\tCompPlanilla compPlanilla = (CompPlanilla) item;\n\t\t\t\tString valor = \"\";\n\t\t\t\tif (compPlanilla.getEncontrado() == 1\n\t\t\t\t\t\t|| compPlanilla.getEncontrado() == 2) {\n\t\t\t\t\tvalor = \"Si\";\n\t\t\t\t} else {\n\t\t\t\t\tvalor = \"No\";\n\t\t\t\t}\n\t\t\t\treturn valor;\n\t\t\t}\n\t\t});\n\n\t\treturn tableFacade.render();\n\t}", "public List<conteoTab> filtro() throws Exception {\n iConteo iC = new iConteo(path, this);\n try {\n fecha = sp.getString(\"date\", \"\");\n iC.nombre = fecha;\n\n List<conteoTab> cl = iC.all();\n\n for (conteoTab c : cl) {\n boolean val = true;\n for (int i = 0; i <= clc.size(); i++) {\n if (c.getIdBloque() == sp.getInt(\"bloque\", 0) || c.getIdVariedad() == sp.getInt(\"idvariedad\", 0)) {\n val = true;\n } else {\n val = false;\n }\n }\n if (val) {\n clc.add(c);\n } else {\n }\n }\n } catch (Exception e) {\n Toast.makeText(this, \"No existen registros actuales que coincidan con la fecha\", Toast.LENGTH_LONG).show();\n clc.clear();\n }\n return clc;\n }", "@Override\r\n\tpublic int compare(Veiculo v1, Veiculo v2) {\n\t\treturn v1.getPlaca().compareTo(v2.getPlaca());\r\n\t}", "public void cargarDatos(MaxHeapCP<Comparendo> pComp1, MaxColaCP<Comparendo> pComp2, String direccion){\n\n\t\tJsonReader reader;\n\t\ttry {\n\t\t\treader = new JsonReader(new FileReader(direccion));\n\t\t\tJsonElement elem = JsonParser.parseReader(reader);\n\t\t\tJsonArray e2 = elem.getAsJsonObject().get(\"features\").getAsJsonArray();\n\n\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss.SSSXXX\");\n\n\n\t\t\tfor(JsonElement e: e2) {\n\t\t\t\tComparendo c = new Comparendo();\n\t\t\t\tc.OBJECTID = e.getAsJsonObject().get(\"properties\").getAsJsonObject().get(\"OBJECTID\").getAsInt();\n\n\t\t\t\tString s = e.getAsJsonObject().get(\"properties\").getAsJsonObject().get(\"FECHA_HORA\").getAsString();\t\n\t\t\t\tc.FECHA_HORA = dateFormat.parse(s); \n\n\t\t\t\tc.MEDIO_DETE = e.getAsJsonObject().get(\"properties\").getAsJsonObject().get(\"MEDIO_DETECCION\").getAsString();\n\t\t\t\tc.CLASE_VEHI = e.getAsJsonObject().get(\"properties\").getAsJsonObject().get(\"CLASE_VEHICULO\").getAsString();\n\t\t\t\tc.TIPO_SERVI = e.getAsJsonObject().get(\"properties\").getAsJsonObject().get(\"TIPO_SERVICIO\").getAsString();\n\t\t\t\tc.INFRACCION = e.getAsJsonObject().get(\"properties\").getAsJsonObject().get(\"INFRACCION\").getAsString();\n\t\t\t\tc.DES_INFRAC = e.getAsJsonObject().get(\"properties\").getAsJsonObject().get(\"DES_INFRACCION\").getAsString();\t\n\t\t\t\tc.LOCALIDAD = e.getAsJsonObject().get(\"properties\").getAsJsonObject().get(\"LOCALIDAD\").getAsString();\n\t\t\t\tc.MUNICIPIO = e.getAsJsonObject().get(\"properties\").getAsJsonObject().get(\"MUNICIPIO\").getAsString();\n\n\t\t\t\tc.longitud = e.getAsJsonObject().get(\"geometry\").getAsJsonObject().get(\"coordinates\").getAsJsonArray()\n\t\t\t\t\t\t.get(0).getAsDouble();\n\n\t\t\t\tc.latitud = e.getAsJsonObject().get(\"geometry\").getAsJsonObject().get(\"coordinates\").getAsJsonArray()\n\t\t\t\t\t\t.get(1).getAsDouble();\n\n\t\t\t\tpComp1.agregar(c);\n\t\t\t\tpComp2.agregar(c);\n\n\t\t\t}\n\t\t} \n\t\tcatch (FileNotFoundException | ParseException e) {\n\n\t\t\te.printStackTrace();\n\n\t\t}\n\n\t}", "private void verficarChoques() {\n\t\t\n\t\tfor(int i=0; i<JuegoListener.elementos.size();i++){\n\t\t\t\n\t\t\tElemento e1 = JuegoListener.elementos.get(i);\n\t\t\t\n\t\t\t//guaramos las coordenadas para verificar si choco contra el tablero\n\t\t\tint coord1 = e1.getPosicion().getX();\n\t\t\tint coord2 = e1.getPosicion().getY();\n\t\t\t//Creamos el rectangulo\n\t\t\tRectangle r1 = new Rectangle(e1.getPosicion().getX(),\n\t\t\t\t\t\t\t\t\t\te1.getPosicion().getY(),\n\t\t\t\t\t\t\t\t\t\te1.getTamanio().getAncho(),\n\t\t\t\t\t\t\t\t\t\te1.getTamanio().getAlto());\n\t\t\t\n\t\t\tfor(int j=i+1; j<JuegoListener.elementos.size(); j++){\n\t\t\t\t\n\t\t\t\t//Creamos el rectangulo\n\t\t\t\tElemento e2 = JuegoListener.elementos.get(j);\n\t\t\t\tRectangle r2 = new Rectangle(e2.getPosicion().getX(),\n\t\t\t\t\t\te2.getPosicion().getY(),\n\t\t\t\t\t\te2.getTamanio().getAncho(),\n\t\t\t\t\t\te2.getTamanio().getAlto());\n\t\t\t\tif(r1.intersects(r2)){\n\t\t\t\t\te1.chocarContra(e2);\n\t\t\t\t\te1.chocarContra(e1);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// estaContenidoDentro, hace referencia si no se paso del tope del tablero\n\t\t\t// esta contenidoposito, se fija si las posiciones son positivas \n\t\t\tboolean estaContenidoDentro = ( (coord1 >= this.config.getAnchoTablero()) || (coord2 >= this.config.getAltoTablero()) ); \n\t\t\tboolean estaContenidoPositivo= (coord1<= 0) || (coord2 <= 0 ); \n\t\t\tif(estaContenidoPositivo || estaContenidoDentro){\n\t\t\t\te1.chocarContraPared();\n\t\t\t}\t\t\t\n\t\t}\n\n\n\t}", "@Override\r\n public int compare(HDTV o1, HDTV o2) {\n return o1.getSize() - o2.getSize(); // prints object in ascending order\r\n\r\n }", "public void distribuirAportes1(){\n\n if(null == comprobanteSeleccionado.getAporteuniversidad()){\n System.out.println(\"comprobanteSeleccionado.getAporteuniversidad() >> NULO\");\n }\n\n if(null == comprobanteSeleccionado.getAporteorganismo()){\n System.out.println(\"comprobanteSeleccionado.getAporteorganismo() >> NULO\");\n }\n\n if(null == comprobanteSeleccionado.getMontoaprobado()){\n System.out.println(\"comprobanteSeleccionado.getMontoaprobado() >> NULO\");\n }\n\n try{\n if(comprobanteSeleccionado.getAporteuniversidad().floatValue() > 0f){\n comprobanteSeleccionado.setAporteorganismo(comprobanteSeleccionado.getMontoaprobado().subtract(comprobanteSeleccionado.getAporteuniversidad()));\n comprobanteSeleccionado.setAportecomitente(BigDecimal.ZERO);\n }\n } catch(NullPointerException npe){\n System.out.println(\"Error de NullPointerException\");\n npe.printStackTrace();\n }\n\n }", "public void filtrarOfertas() {\n\n List<OfertaDisciplina> ofertas;\n \n ofertas = ofertaDisciplinaFacade.filtrarEixoCursoTurnoCampusQuad(getFiltrosSelecEixos(), getFiltrosSelecCursos(), turno, campus, quadrimestre);\n\n dataModel = new OfertaDisciplinaDataModel(ofertas);\n \n //Após filtrar volta os parametros para os valores default\n setFiltrosSelecEixos(null);\n setFiltrosSelecCursos(null);\n turno = \"\";\n quadrimestre = 0;\n campus = \"\";\n }", "public void distribuirAportes2(){\n\n if(comprobanteSeleccionado.getAporteorganismo().floatValue() > 0f){\n comprobanteSeleccionado.setAportecomitente(comprobanteSeleccionado.getMontoaprobado().subtract(comprobanteSeleccionado.getAporteuniversidad().add(comprobanteSeleccionado.getAporteorganismo())));\n }\n }", "public ConsultaHistorialClinico(java.awt.Frame parent, boolean modal,TipoInforme tipo,DTOAbuelo dto) {\n super(parent, modal);\n initComponents();\n Image icon = new ImageIcon(getClass().getResource(\"/Vistas/imagenes/pinaricono.jpg\")).getImage();\n this.setLocationRelativeTo(null);\n idPaciente = dto.getId();\n tipoInforme=tipo;\n controlador= new ControladorABMAbuelos();\n controladorHistorial = new ControladorHistorialClinico();\n textDNI.setText(dto.getDni());\n textNombre.setText(dto.getNombre() + \" \" + dto.getApellido());\n textObraSocial.setText(dto.getDTOobraSocial().getNombreObraSocial());\n textPeso.setText(Double.toString(dto.getPeso()));\n textTalla.setText(Double.toString(dto.getTalla()));\n textTipoHistorial.setText(tipo.name());\n ///////FOTO////\n if(dto.getFoto()!=null){\n byte[] imagenbyte = dto.getFoto();\n BufferedImage img = null;\n try{ \n img = ImageIO.read(new ByteArrayInputStream(imagenbyte));\n Image imagen = img;\n imagen = imagen.getScaledInstance(130, 130, imagen.SCALE_DEFAULT);\n jLabel5.setIcon(new ImageIcon(imagen));\n }catch(IOException e){\n System.out.println(\"error\");\n }\n }\n ///////////////\n mostrarInformes();\n }", "public void introducirPagosALojamientoHotelFechas(Date fechaInicial, Date fechaFinal,TablaModelo modelo){\n long tiempo = fechaInicial.getTime();\n java.sql.Date fechaInicialSql = new java.sql.Date(tiempo);\n long tiempo2= fechaFinal.getTime();\n java.sql.Date fechaFinalSQL = new java.sql.Date(tiempo2);\n try {\n PreparedStatement declaracion;// prepara la orden \n declaracion = conexion.prepareStatement(\"SELECT ALOJAMIENTO.Id,ALOJAMIENTO.Id_Reservacion,RESERVACION.Fecha_Entrada, RESERVACION.Fecha_Salida,RESERVACION.Precio FROM RESERVACION JOIN ALOJAMIENTO WHERE RESERVACION.Id=ALOJAMIENTO.Id_Reservacion AND RESERVACION.Fecha_Entrada>=? AND RESERVACION.Fecha_Entrada<=? AND RESERVACION.Check_In=1;\");\n declaracion.setDate(1,fechaInicialSql);\n declaracion.setDate(2,fechaFinalSQL);// pago de alojamiento en rango fchas\n ResultSet resultado = declaracion.executeQuery();\n while (resultado.next()) {\n Object objeto[] = new Object[6];// pago de alojamiento en rango fchas\n objeto[0] = resultado.getInt(1);\n objeto[1] = resultado.getInt(2);\n objeto[2] = resultado.getDate(3);\n objeto[3] = resultado.getDate(4);// pago de alojamiento en rango fchas\n objeto[4] = resultado.getInt(5);\n String fechaInicialProbar=objeto[2].toString();\n String fechaFinalProbar=objeto[3].toString();// pago de alojamiento en rango fchas\n String precioProbar = objeto[4].toString();// pago de alojamiento en rango fchas\n int total=habitacion.hacerTotalAlojamiento(fechaInicialProbar, fechaFinalProbar, precioProbar);\n objeto[5]= total;\n modelo.addRow(objeto);\n } // maneja el resultado \n\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n }", "public MovimentacaoCaixa(GeradorSQL.tipoOperacao operacao) {\n initComponents();\n URL url = this.getClass().getResource(\"/imagens/Icone.png\");\n Image imagemTitulo = Toolkit.getDefaultToolkit().getImage(url);\n this.setIconImage(imagemTitulo);\n String data = (new java.text.SimpleDateFormat(\"dd/MM/yyyy\").format(new java.util.Date(System.currentTimeMillis())));\n jFormattedTextFieldDataMovimentacao.setText(data);\n jFormattedTextFieldDataMovimentacao.setEnabled(false);\n try{\n GeradorSQL geradorSQL = new GeradorSQL();\n geradorSQL.consultaSaldoCaixa();\n if(geradorSQL.consultaSaldoCaixa() != null){\n jTextFieldSaldoCaixa.setText(geradorSQL.consultaSaldoCaixa());\n if(Float.parseFloat(jTextFieldSaldoCaixa.getText()) > 0){\n jTextFieldSaldoCaixa.setForeground(Color.BLUE);\n }else{\n jTextFieldSaldoCaixa.setForeground(Color.RED);\n } \n }else{\n jTextFieldSaldoCaixa.setText(\"0.00\");\n }\n \n jTextFieldSaldoCaixa.setEditable(false); \n } catch(SQLException ex){\n Logger.getLogger(MovimentacaoEstoque.class.getName()).log(Level.SEVERE, null, ex);\n }\n this.operacao = operacao;\n }", "private HashMap<String, Paire> initVuDispo(ContraintesTournee contraintes, HashMap<String, Intersection> intersections){\n\t\tHashMap<String, Paire> vuDispo = new HashMap<String, Paire>();\n\t\tfor (HashMap.Entry<String, Intersection> iterator : intersections.entrySet()) {\n\t\t if( iterator.getValue() instanceof PointEnlevement ) {\n\t\t \tvuDispo.put( iterator.getKey(), new Paire(true, false) );\n\t\t }else {\n\t\t \tvuDispo.put( iterator.getKey(), new Paire(false, false) );\n\t\t }\n\t\t}\n\t\t\n\t\t//Mettre premier noeud comme deja visite - ici le premier est l'entrepot\n\t\tvuDispo.get(contraintes.getDepot().getId()).setDispo(false);\n\t\tvuDispo.get(contraintes.getDepot().getId()).setVu(true);\n\t\t\n\t\treturn vuDispo;\n\t}", "private void EstablecerVistas(TipoGestion tGestion){\n\t\tCantEjecutada=Utilitarios.round(activ.getCantidadEjecutada(),4);\n\t\n\t\tcantContratada=Utilitarios.round(activ.getCantidadContratada(),4);\n\t\t\n\t\t//CantPendienteDeEjecutar = Utilitarios.round((activ.getCantidadContratada()-activ.getCantidadEjecutada()),4);\n\n\n\t\tif ( activ.getCantidadEjecutada() > activ.getCantidadContratada()){\n\t\t\tCantPendienteDeEjecutar = 0;\n\t\t\tCantExcendete = Utilitarios.round((activ.getCantidadEjecutada()-activ.getCantidadContratada()),4);\n\t\t\tPorcExcedente = Utilitarios.round((CantExcendete / cantContratada * 100),2);\n\t\t\t((TextView) getActivity().findViewById(R.id.tv_fragAgregarAvancesRenglon_PorcCantidadExcedente)).setTextColor(getResources().getColorStateList(R.color.graphRed));\n\t\t}\n\t\telse{\n\t\t\tCantPendienteDeEjecutar = Utilitarios.round((activ.getCantidadContratada()-activ.getCantidadEjecutada()),4);\n\t\t\t((TextView) getActivity().findViewById(R.id.tv_fragAgregarAvancesRenglon_PorcCantidadExcedente)).setTextColor(getResources().getColorStateList(R.color.graphGreen));\n\t\t}\n\n\t\t\n\t\tif ( activ.getCantidadContratada() > 0){\n\t\t\t\tPorcEjecutado=Utilitarios.round((activ.getCantidadEjecutada()/cantContratada) * 100,2);\n\t\t\t\tPorcPendienteDeEjecutar = Utilitarios.round((CantPendienteDeEjecutar / cantContratada * 100),2);\n\t\t\t}\n\t\telse{\n\t\t\tPorcPendienteDeEjecutar\t= 0.00;\n\t\t\tPorcPendienteDeEjecutar = 0.00;\n\t\t}\n\n\t\t((TextView) getActivity()\n\t\t\t\t.findViewById(R.id.tv_fragAgregarAvancesRenglon_Actividad))\n\t\t\t\t.setText(String.valueOf(cantContratada));\n\n\t\t((TextView) getActivity()\n \t\t\t.findViewById(R.id.tv_fragAgregarAvancesRenglon_CantidadContratada))\n \t\t\t.setText(String.valueOf(cantContratada));\n\n \t((TextView) getActivity()\n \t\t\t.findViewById(R.id.tv_fragAgregarAvancesRenglon_CantidadEjecutada))\n \t\t\t.setText(String.valueOf(CantEjecutada));\n\n \t((TextView) getActivity()\n \t\t\t.findViewById(R.id.tv_fragAgregarAvancesRenglon_PorcCantidadEjecutada))\n \t\t\t.setText( String.valueOf(PorcEjecutado) + \"%\");\n\n\n \ttvEtiquetaAgregarAvances.setText(getActivity().getString(R.string.fragment_agregar_avances_renglon_4));\n\n\t\tdesActividad.setText(\"[\" + activ.getCodigoInstitucional() + \"] - \" + activ.getDescripcion());\n \t\n\t\tif(tGestion == TipoGestion.Por_Cantidades){\n\t\t\t((TextView) getActivity()\n \t\t\t.findViewById(R.id.et_fragAgregarAvancesEtiquetaPorc))\n \t\t\t.setVisibility(0);\n \t}\n \telse{\n \t\t\n \t\t((TextView) getActivity()\n \t\t\t.findViewById(R.id.et_fragAgregarAvancesEtiquetaPorc))\n \t\t\t.setText(\"%\");\n\n \t}\n\n\t\t\n\t\t//Se deshabilitara el widget de ingreso del avance para cuando la cantidad\n\t\t//pendiente de ejecutar sea igual o menor a 0\n\t\t/*if (CantPendienteDeEjecutar>0){\n \t((TextView) getActivity()\n \t\t\t.findViewById(R.id.tv_fragAgregarAvancesRenglon_FechaActualizo))\n \t\t\t.setText(getActivity().getResources().getString(R.string.fragment_agregar_avances_renglon_2)\n \t\t\t\t\t+ \" \" + String.valueOf(activ.getFechaActualizacion()));\n \t}\n \telse\n \t{\n \t\tToast.makeText(getActivity(), getActivity().getString(R.string.fragment_agregar_avances_renglon_5), Toast.LENGTH_LONG).show();\n \t\tetNuevoAvance.setText(\"0.00\");\n \t\tetNuevoAvance.setEnabled(false);\n \t}*/\n \t\n \t((TextView) getActivity()\n \t\t\t.findViewById(R.id.tv_fragAgregarAvancesRenglon_CantidadPorEjecutar))\n \t\t\t.setText(String.valueOf(Utilitarios.round(CantPendienteDeEjecutar, 4)));\n \t((TextView) getActivity()\n \t\t\t.findViewById(R.id.tv_fragAgregarAvancesRenglon_PorcCantidadPorEjecutar))\n \t\t\t.setText(String.valueOf(Utilitarios.round(PorcPendienteDeEjecutar, 2)) + \"%\");\n\n\t\t((TextView) getActivity()\n\t\t\t\t.findViewById(R.id.tv_fragAgregarAvancesRenglon_CantidadExcedente))\n\t\t\t\t.setText(String.valueOf(Utilitarios.round(CantExcendete, 4)));\n\n\t\t((TextView) getActivity()\n\t\t\t\t.findViewById(R.id.tv_fragAgregarAvancesRenglon_PorcCantidadExcedente))\n\t\t\t\t.setText(String.valueOf(Utilitarios.round(PorcExcedente, 2)) + \"%\");\n\n\t\tvalidarAvance(String.valueOf(etNuevoAvance.getText()));\n \t\n \tetNuevoAvance.addTextChangedListener(new TextWatcher() {\n \t\t\n\t\t\t@Override\n\t\t\tpublic void beforeTextChanged(CharSequence s, int start,\n\t\t\t\t\tint count, int after) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onTextChanged(CharSequence s, int start,\n\t\t\t\t\tint before, int count) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void afterTextChanged(Editable s) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tvalidarAvance(s.toString());\n\t\t\t\t\t\t\t\t\t\n\t\t\t}\n \t});\n\t\t\n\t}", "@Override\n\tpublic void verVehiculosDisponibles() {\n\t\tif(getCapacidad() > 0) {\n\t\t\tSystem.out.println(\"Plazas disponibles : \" + getCapacidad() + \" plazas, peso disponible : \" + getPeso() + \" kg, Carros disponibles: \" + \" 1 \" + \" Carro disponible, Capacidad de Personas : 4 personas, Peso maximo : 500 kg\");\n\t\t}else\n\t\t{\n\t\t\tSystem.out.println(\"Plazas disponibles : \" + getCapacidad() + \" plazas, peso disponible : \" + getPeso() + \" kg, Carros disponibles: \" + \" 0 \" + \" Carro disponibles, Capacidad de Personas : 4 personas, Peso maximo : 500 kg\");\n\t\t}\n\t\t\n\t}", "@Override\n\tpublic Collection<LineaComercialClasificacionDTO> consultarLineaComercialClasificacionAsignacionMasivaNoIngresar(String codigoClasificacion,String nivelClasificacion,String valorTipoLineaComercial,String codigoLinCom)throws SICException{\n\t\tLogeable.LOG_SICV2.info(\"Entr� a consultar Linea Comercial Clasificacion Asignacion Masiva No Ingresar: {}\",codigoClasificacion);\n\t\tStringBuilder query = null;\n\t\tQuery sqlQuery = null;\n\t\tSession session=null;\n\t\tBoolean clearCache = Boolean.TRUE;\n\t\tCollection<LineaComercialClasificacionDTO> lineaComercialClasificacionDTOs = new ArrayList<LineaComercialClasificacionDTO>();\n\t\ttry {\n\t\t\tsession = hibernateHLineaComercialClasificacion.getHibernateSession();\n\t\t\tsession.clear();\n\t\t\n\t\t\t\n\t\t\tquery = new StringBuilder();\n\t\t\tquery.append(\" SELECT LC, L, C, CV \");\n\t\t\tquery.append(\" FROM LineaComercialClasificacionDTO LC, LineaComercialDTO L, ClasificacionDTO C, CatalogoValorDTO CV \");\n\t\t\tquery.append(\" WHERE L.id.codigoLineaComercial = LC.codigoLineaComercial \");\n//\t\t\tquery.append(\" AND L.nivel = 0 \");\n\t\t\tquery.append(\" AND L.estado = '\"+SICConstantes.ESTADO_ACTIVO_NUMERICO+\"' \");\n\t\t\tquery.append(\" AND LC.estado = '\"+SICConstantes.ESTADO_ACTIVO_NUMERICO+\"' \");\n\t\t\tquery.append(\" AND L.valorTipoLineaComercial = '\"+valorTipoLineaComercial+\"' \");\n\t\t\tquery.append(\" AND LC.id.codigoClasificacion = C.id.codigoClasificacion \");\n\t\tif(!codigoLinCom.equals(\"null\")){\t\n\t\t\tquery.append(\" AND L.id.codigoLineaComercial != \"+codigoLinCom);\n\t\t}\t\n\t\t\tquery.append(\" AND L.valorTipoLineaComercial = CV.id.codigoCatalogoValor \");\n\t\t\tquery.append(\" AND L.codigoTipoLineaComercial = CV.id.codigoCatalogoTipo \");\n\t\t\tquery.append(\" AND LC.id.codigoClasificacion IN ( \");\n\t\t\tif(!nivelClasificacion.equals(SICConstantes.TIPCLA_CLASIFICACION)){\n\t\t\tif(nivelClasificacion.equals(SICConstantes.TIPCLA_DIVISION)){\n\t\t\t\tquery.append(\" SELECT id.codigoClasificacion FROM ClasificacionDTO \");\n\t\t\t\tquery.append(\" WHERE estadoClasificacion = '\"+SICConstantes.ESTADO_ACTIVO_NUMERICO+\"' \");\n\t\t\t\tquery.append(\" AND codigoClasificacionPadre IN( \");\n\t\t\t}\n\t\t\tquery.append(\" SELECT id.codigoClasificacion FROM ClasificacionDTO \");\n\t\t\tquery.append(\" WHERE estadoClasificacion = '\"+SICConstantes.ESTADO_ACTIVO_NUMERICO+\"' \");\n\t\t\tquery.append(\" AND codigoClasificacionPadre IN (\"+codigoClasificacion+\") \"+\" )) \");\n\t\t\t}else{\n\t\t\t\tquery.append(\" \"+codigoClasificacion+\") \");\n\t\t\t}\n\n\t\t\tsqlQuery = hibernateHLineaComercialClasificacion.createQuery(query.toString(), clearCache);\n\t\t\t\n\t\t\t/**\n\t\t\t * aqui se asigna al objeto LineaComercialClasificacionDTO los objetos (ClasificacionDTO,LineaComercialDTO)\n\t\t\t * que nos entrego la consulta por separado\n\t\t\t */\n\t\t\tCollection<Object[]> var = sqlQuery.list();\n\t\t\tfor(Object[] object:var){\n\t\t\t\tLineaComercialClasificacionDTO l=(LineaComercialClasificacionDTO)object[0];\n\t\t\t\tl.setLineaComercial((LineaComercialDTO)object[1]);\n\t\t\t\tl.setClasificacion((ClasificacionDTO)object[2]);\n\t\t\t\tl.getLineaComercial().setTipoLineaComercial((CatalogoValorDTO)object[3]);\n\t\t\t\tlineaComercialClasificacionDTOs.add(l);\t\t\t\t\n\t\t\t}\n\t\t\t\n\n\t\t} catch (Exception e) {\n\t\t\tLogeable.LOG_SICV2.info(\"Error al consultar clasificaciones asignacion masiva {}\", e);\n\t\t\tthrow new SICException(\"Error al consultar clasificaciones asignacion masiva {}\", e);\n\t\t}\n\t\t\n\t\t\n\t\treturn lineaComercialClasificacionDTOs;\n\t}", "public Collection<OsAtividadePeriodoExecucao> obterOsAtividadePeriodoExecucaoPorOS(Integer idOS, Date dataRoteiro)\n\t\t\t\t\tthrows ErroRepositorioException{\n\n\t\tCollection<Object[]> retornoConsulta = null;\n\t\tCollection<OsAtividadePeriodoExecucao> colecaoOsPeriodo = new ArrayList();\n\n\t\tSession session = HibernateUtil.getSession();\n\t\tString consulta = \"\";\n\t\ttry{\n\n\t\t\tconsulta = \"SELECT DISTINCT osAtividadePeriodoExecucao.id, \" // 0\n\t\t\t\t\t\t\t+ \"osAtividadePeriodoExecucao.dataInicio, \" // 1\n\t\t\t\t\t\t\t+ \"osAtividadePeriodoExecucao.dataFim \" // 2\n\t\t\t\t\t\t\t+ \"FROM OsAtividadePeriodoExecucao osAtividadePeriodoExecucao \"\n\t\t\t\t\t\t\t+ \"INNER JOIN osAtividadePeriodoExecucao.ordemServicoAtividade ordemServicoAtividade \"\n\t\t\t\t\t\t\t// + \"INNER JOIN ordemServicoAtividade.ordemServico ordemServico \"\n\t\t\t\t\t\t\t+ \"WHERE ordemServicoAtividade.ordemServico.id = :idOS \"\n\t\t\t\t\t\t\t+ \"AND osAtividadePeriodoExecucao.dataFim <= :dataRoteiro \" + \"ORDER BY osAtividadePeriodoExecucao.id \";\n\n\t\t\tretornoConsulta = (Collection<Object[]>) session.createQuery(consulta).setInteger(\"idOS\", idOS)\n\t\t\t\t\t\t\t.setDate(\"dataRoteiro\", dataRoteiro).list();\n\n\t\t\tif(retornoConsulta != null && !retornoConsulta.isEmpty()){\n\n\t\t\t\tOsAtividadePeriodoExecucao osAtividadePeriodoExecucao = null;\n\n\t\t\t\tfor(Object[] periodo : retornoConsulta){\n\n\t\t\t\t\tosAtividadePeriodoExecucao = new OsAtividadePeriodoExecucao();\n\n\t\t\t\t\tosAtividadePeriodoExecucao.setId((Integer) periodo[0]);\n\t\t\t\t\tosAtividadePeriodoExecucao.setDataInicio((Date) periodo[1]);\n\t\t\t\t\tosAtividadePeriodoExecucao.setDataFim((Date) periodo[2]);\n\n\t\t\t\t\tcolecaoOsPeriodo.add(osAtividadePeriodoExecucao);\n\t\t\t\t}\n\t\t\t}\n\t\t}catch(HibernateException e){\n\t\t\tthrow new ErroRepositorioException(e, \"Erro no Hibernate\");\n\t\t}finally{\n\t\t\tHibernateUtil.closeSession(session);\n\t\t}\n\t\treturn colecaoOsPeriodo;\n\t}", "private void inizia() throws Exception {\n /* variabili e costanti locali di lavoro */\n Campo campoDataInizio;\n Campo campoDataFine;\n Campo campoConto;\n Date dataIniziale;\n Date dataFinale;\n int numPersone;\n ContoModulo modConto;\n\n\n String titolo = \"Esecuzione addebiti fissi\";\n AddebitoFissoPannello pannello;\n Date dataInizio;\n Pannello panDate;\n Campo campoStato;\n Filtro filtro;\n int codConto;\n int codCamera;\n\n\n try { // prova ad eseguire il codice\n\n /* recupera dati generali */\n modConto = Albergo.Moduli.Conto();\n codConto = this.getCodConto();\n codCamera = modConto.query().valoreInt(Conto.Cam.camera.get(), codConto);\n numPersone = CameraModulo.getNumLetti(codCamera);\n\n /* crea il pannello servizi e vi registra la camera\n * per avere l'anteprima dei prezzi*/\n pannello = new AddebitoFissoPannello();\n this.setPanServizi(pannello);\n pannello.setNumPersone(numPersone);\n this.setTitolo(titolo);\n\n// /* regola date suggerite */\n// dataFinale = Progetto.getDataCorrente();\n// dataInizio = Lib.Data.add(dataFinale, -1);\n\n /* pannello date */\n campoDataInizio = CampoFactory.data(nomeDataIni);\n campoDataInizio.decora().obbligatorio();\n// campoDataInizio.setValore(dataInizio);\n\n campoDataFine = CampoFactory.data(nomeDataFine);\n campoDataFine.decora().obbligatorio();\n// campoDataFine.setValore(dataFinale);\n\n /* conto */\n campoConto = CampoFactory.comboLinkSel(nomeConto);\n campoConto.setNomeModuloLinkato(Conto.NOME_MODULO);\n campoConto.setLarScheda(180);\n campoConto.decora().obbligatorio();\n campoConto.decora().etichetta(\"conto da addebitare\");\n campoConto.setUsaNuovo(false);\n campoConto.setUsaModifica(false);\n\n /* inizializza e assegna il valore (se non inizializzo\n * il combo mi cambia il campo dati e il valore si perde)*/\n campoConto.inizializza();\n campoConto.setValore(this.getCodConto());\n\n /* filtro per vedere solo i conti aperti dell'azienda corrente */\n campoStato = modConto.getCampo(Conto.Cam.chiuso.get());\n filtro = FiltroFactory.crea(campoStato, false);\n filtro.add(modConto.getFiltroAzienda());\n campoConto.getCampoDB().setFiltroCorrente(filtro);\n\n panDate = PannelloFactory.orizzontale(this.getModulo());\n panDate.creaBordo(\"Periodo da addebitare\");\n panDate.add(campoDataInizio);\n panDate.add(campoDataFine);\n panDate.add(campoConto);\n\n this.addPannello(panDate);\n this.addPannello(this.getPanServizi());\n\n this.regolaCamera();\n\n /* recupera la data iniziale (oggi) */\n dataIniziale = AlbergoLib.getDataProgramma();\n\n /* recupera la data di partenza prevista dal conto */\n modConto = ContoModulo.get();\n dataFinale = modConto.query().valoreData(Conto.Cam.validoAl.get(),\n this.getCodConto());\n\n /* recupera il numero di persone dal conto */\n numPersone = modConto.query().valoreInt(Conto.Cam.numPersone.get(),\n this.getCodConto());\n\n /* regola date suggerite */\n campoDataInizio = this.getCampo(nomeDataIni);\n campoDataInizio.setValore(dataIniziale);\n\n campoDataFine = this.getCampo(nomeDataFine);\n campoDataFine.setValore(dataFinale);\n\n /* conto */\n campoConto = this.getCampo(nomeConto);\n campoConto.setAbilitato(false);\n\n /* regola la data iniziale di riferimento per l'anteprima dei prezzi */\n Date data = (Date)campoDataInizio.getValore();\n this.getPanServizi().setDataPrezzi(data);\n\n /* regola il numero di persone dal conto */\n this.getPanServizi().setNumPersone(numPersone);\n\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n }", "public Movimiento(MovimientoBean movimientoBean) {\r\n\r\n\t\t// Cantidad de Movimiento\r\n\t\tthis.cantidadMovimiento = movimientoBean.getCantidadMovimiento();\r\n\t\t// Estado Movimiento\r\n\t\tEstadomovimiento estadomovimiento = new Estadomovimiento();\r\n\t\testadomovimiento.setPkCodigoEstadomovimiento(movimientoBean.getEstadomovimiento().getCodigo());\r\n\t\tthis.estadomovimiento = estadomovimiento;\r\n\t\t// Factor Volquete Movimiento\r\n\t\tthis.factorVolqueteMovimiento = movimientoBean.getFactorVolqueteMovimiento();\r\n\t\t// Fecha Movimiento\r\n\t\tthis.fechaMovimiento = movimientoBean.getFechaMovimiento();\r\n\t\t// Linea Negocio\r\n\t\tLineanegocio lineanegocio = new Lineanegocio();\r\n\t\tlineanegocio.setPkCodigoLineanegocio(movimientoBean.getLineanegocio().getCodigo());\r\n\t\tthis.lineanegocio = lineanegocio;\r\n\t\t// Medio Almacenamiento\r\n\t\tif (movimientoBean.getMedioalmacenamiento() != null && movimientoBean.getMedioalmacenamiento().getCodigo() != null) {\r\n\t\t\tMedioalmacenamiento medioalmacenamiento = new Medioalmacenamiento();\r\n\t\t\tmedioalmacenamiento.setPkCodigoMedioalmacenamiento(movimientoBean.getMedioalmacenamiento().getCodigo());\r\n\t\t\tthis.medioalmacenamiento = medioalmacenamiento;\r\n\t\t}\r\n\t\t// Numero Viajes Movimiento\r\n\t\tthis.numeroViajesMovimiento = movimientoBean.getNumeroViajesMovimiento();\r\n\t\t// Producto\r\n\t\tProducto producto = new Producto();\r\n\t\tproducto.setPkCodigoProducto(movimientoBean.getProducto().getCodigo());\r\n\t\tthis.producto = producto;\r\n\t\t// Tipo Movimiento\r\n\t\tTipomovimiento tipomovimiento = new Tipomovimiento();\r\n\t\ttipomovimiento.setPkCodigoTipomovimiento(movimientoBean.getTipomovimiento().getCodigo());\r\n\t\tthis.tipomovimiento = tipomovimiento;\r\n\t\t// Ubicacion Origen\r\n\t\tif (movimientoBean.getUbicacionByFkCodigoUbicacionOrigen() != null\r\n\t\t\t\t&& movimientoBean.getUbicacionByFkCodigoUbicacionOrigen().getCodigo() != null) {\r\n\t\t\tUbicacion ubicacionOrigen = new Ubicacion();\r\n\t\t\tubicacionOrigen.setPkCodigoUbicacion(movimientoBean.getUbicacionByFkCodigoUbicacionOrigen().getCodigo());\r\n\t\t\tthis.ubicacionByFkCodigoUbicacionOrigen = ubicacionOrigen;\r\n\t\t}\r\n\t\t// Ubicacion Destino\r\n\t\tif (movimientoBean.getUbicacionByFkCodigoUbicacionDestino() != null\r\n\t\t\t\t&& movimientoBean.getUbicacionByFkCodigoUbicacionDestino().getCodigo() != null) {\r\n\t\t\tUbicacion ubicacionDestino = new Ubicacion();\r\n\t\t\tubicacionDestino.setPkCodigoUbicacion(movimientoBean.getUbicacionByFkCodigoUbicacionDestino().getCodigo());\r\n\t\t\tthis.ubicacionByFkCodigoUbicacionDestino = ubicacionDestino;\r\n\t\t}\r\n\t\t// Unidad Medida\r\n\t\tUnidadmedida unidadmedida = new Unidadmedida();\r\n\t\tunidadmedida.setPkCodigoUnidadMedida(movimientoBean.getUnidadmedida().getCodigo());\r\n\t\tthis.unidadmedida = unidadmedida;\r\n\t\tthis.origenMovimiento = \"\";\r\n\t\tthis.factorHumedad = 0d;\r\n\t\tthis.cantidadMovimientoHumedad = movimientoBean.getCantidadMovimiento();\r\n\t\tthis.codigoSapproductoMovimiento = movimientoBean.getCodigoSapproducto();\r\n\r\n\t}", "public GenerarInformePlanificacion(Curso[] cursos, Apoderado[] apoderados) {\n this.apoderados = new PlanificacionApoderado[apoderados.length];\n for (int i = 0; i < apoderados.length; i++) {\n this.apoderados[i] = new PlanificacionApoderado();\n }\n\n int cantidadCurso = 0;\n\n for (int apTotal = 0; apTotal < this.apoderados.length; apTotal++) {\n this.apoderados[apTotal].nombre = apoderados[apTotal].getNombre();\n this.apoderados[apTotal].apellido = apoderados[apTotal].getApellido();\n this.apoderados[apTotal].run = apoderados[apTotal].getRun();\n for (int cantPupilos = 0; cantPupilos < apoderados[apTotal].getPupilos().size(); cantPupilos++) {\n\n PlanificacionAlumno alumnoAgregar = new PlanificacionAlumno();\n alumnoAgregar.nombre = apoderados[apTotal].getPupilos().get(cantPupilos).getNombre();\n alumnoAgregar.apellido = apoderados[apTotal].getPupilos().get(cantPupilos).getApellido();\n alumnoAgregar.run = apoderados[apTotal].getPupilos().get(cantPupilos).getRun();\n for (int j = 0; j < 16; j++) {\n for (int alum = 0; alum < 30; alum++) {\n if (cursos[j].getAlumnos()[alum].getRun().equals(apoderados[apTotal].getPupilos().get(cantPupilos).getRun())) {\n cantidadCurso = j;\n break;\n }\n }\n }\n for (int i = 0; i < 50; i++) {\n alumnoAgregar.plan[i] = cursos[cantidadCurso].getAsignaturas()[(int) i / 10].getPlan()[i % 10];\n }\n this.apoderados[apTotal].pupilos.add(alumnoAgregar);\n\n }\n }\n\n }", "private int[] comparaSeAtaqueGanhouNoDado() {\n int size_ataque;\n int size_defesa;\n\n if (dadosAtaque[1] == 0) {\n size_ataque = 1;\n } else if (dadosAtaque[2] == 0) {\n size_ataque = 2;\n } else {\n size_ataque = 3;\n }\n\n if (dadosDefesa[1] == 0) {\n size_defesa = 1;\n } else if (dadosDefesa[2] == 0) {\n size_defesa = 2;\n } else {\n size_defesa = 3;\n }\n\n int[] resultado = new int[Math.max(size_defesa, size_ataque)];\n\n for (int i = resultado.length - 1; i >= 0; i--) {\n\n if (dadosAtaque[i] > 0 && dadosDefesa[i] > 0) {\n if (dadosAtaque[i] > dadosDefesa[i]) {\n resultado[i] = 1;\n } else {\n resultado[i] = 0;\n }\n } else {\n resultado[i] = 2;\n }\n }\n return resultado;\n }", "public int compareTo(Object o)\n\t{\n\t\tif(!(o instanceof TransactionSerialEntity))\n\t\t\treturn 1; //Khong bang\n\n\t\tTransactionSerialEntity other = (TransactionSerialEntity)o;\n\n\t\tif(this.getVector() == null && other.getVector() == null)\n\t\t\treturn 0; //Neu ca 2 doi tuong la rong thi bang\n\t\tif(this.getVector() == null || other.getVector() == null)\n\t\t\treturn 1; //Neu 1 trong 2 cai rong thi khong bang\n\t\tif(this.getVector().size() != other.getVector().size())\n\t\t\treturn 1; //Neu size khac nhau thi khong bang\n\t\tfor(int i = 0; i < this.getVector().size(); i++)\n\t\t{\n\t\t\tObject objA = this.getVector().get(i);\n\t\t\tObject objB = other.getVector().get(i);\n\n\t\t\tif (objA == null && objB == null)\n\t\t\t{\n\t\t\t\treturn 0;\n\t\t\t}\n\t\t\tif (objA == null || objB == null)\n\t\t\t{\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t\tif(!this.getVector().elementAt(i).equals(other.getVector().elementAt(i)))\n\t\t\t\treturn 1; //Moi gia tri trong vector khac nhau thi khong bang\n\t\t}\n\t\treturn 0; //Bang\n\t}", "public void ganarDineroPorAutomoviles() {\n for (Persona p : super.getMundo().getListaDoctores()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaCocineros()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaAlbaniles()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaHerreros()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaCocineros()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n }", "@Override\n\tpublic int compareTo(Object obj) {\n\t\tif (!(obj instanceof MpGestionEnvio))\n\t\t\tthrow new ClassCastException(\"Valor invalido\");\n\t\tMpGestionEnvio tmp = (MpGestionEnvio) obj;\n\t\treturn (this.id.compareTo(tmp.id));\n\t}", "public void introducirPagosALojamientoClienteFechas(Date fechaInicial, Date fechaFinal,TablaModelo modelo,String dpiCliente){\n long tiempo = fechaInicial.getTime();\n java.sql.Date fechaInicialSql = new java.sql.Date(tiempo);\n long tiempo2= fechaFinal.getTime();\n java.sql.Date fechaFinalSQL = new java.sql.Date(tiempo2);// pago de alojamiento en rango fchas\n try {\n PreparedStatement declaracion;// prepara la orden \n declaracion = conexion.prepareStatement(\"SELECT ALOJAMIENTO.Id,ALOJAMIENTO.Id_Reservacion,RESERVACION.Fecha_Entrada, RESERVACION.Fecha_Salida,RESERVACION.Precio FROM RESERVACION JOIN ALOJAMIENTO WHERE RESERVACION.Id=ALOJAMIENTO.Id_Reservacion AND RESERVACION.Fecha_Entrada>=? AND RESERVACION.Fecha_Entrada<=? AND RESERVACION.Dpi_Cliente=? AND RESERVACION.Check_In=1;\");\n declaracion.setDate(1,fechaInicialSql);\n declaracion.setDate(2,fechaFinalSQL);// pago de alojamiento en rango fchas\n declaracion.setString(3, dpiCliente);\n ResultSet resultado = declaracion.executeQuery();\n while (resultado.next()) {\n Object objeto[] = new Object[6];\n objeto[0] = resultado.getInt(1);\n objeto[1] = resultado.getInt(2);\n objeto[2] = resultado.getDate(3);// pago de alojamiento en rango fchas\n objeto[3] = resultado.getDate(4);\n objeto[4] = resultado.getInt(5);\n String fechaInicialProbar=objeto[2].toString();\n String fechaFinalProbar=objeto[3].toString();// pago de alojamiento en rango fchas\n String precioProbar = objeto[4].toString();\n int total=habitacion.hacerTotalAlojamiento(fechaInicialProbar, fechaFinalProbar, precioProbar);\n objeto[5]= total;\n modelo.addRow(objeto);\n } // maneja el resultado \n\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n }", "@Override\n\tpublic Collection<LineaComercialDTO> buscarLineaComercial(LineaComercialVO lineaComercialVO)throws SICException{\n\t\ttry {\n\t\t\tCollection<LineaComercialDTO> lineaComercialCol = new ArrayList<LineaComercialDTO>();\n\t\t\t\n\t\t\tCriteria criteria=hibernateH.getHibernateSession().createCriteria(LineaComercialDTO.class,\"lineaComercialDTO\");\n\t\t\tcriteria.setProjection(Projections.projectionList()\n\t\t\t\t\t\t\t\t\t.add(Projections.property(\"id.codigoCompania\"),\"id.codigoCompania\")\n\t\t\t\t\t\t\t\t\t.add(Projections.property(\"id.codigoLineaComercial\"),\"id.codigoLineaComercial\")\n\t\t\t\t\t\t\t\t\t.add(Projections.property(\"nombre\"),\"nombre\")\n\t\t\t\t\t\t\t\t\t.add(Projections.property(\"estado\"),\"estado\")\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t.add(Projections.property(\"codigoLineaComercialRaiz\"),\"codigoLineaComercialRaiz\")\n\t\t\t\t\t\t\t\t\t.add(Projections.property(\"codigoTipoLineaComercial\"),\"codigoTipoLineaComercial\")\n\t\t\t\t\t\t\t\t\t.add(Projections.property(\"valorTipoLineaComercial\"),\"valorTipoLineaComercial\")\n\t\t\t\t\t\t\t\t\t.add(Projections.property(\"nivel\"),\"nivel\")\n\t\t\t\t\t\t\t\t\t.add(Projections.property(\"codigoReferencia\"),\"codigoReferencia\")\n\t\t\t\t\t\t\t\t\t.add(Projections.property(\"descripcion\"),\"descripcion\")\n\t\t\t\t\t\t\t\t\t.add(Projections.property(\"codigoEstablecimiento\"),\"codigoEstablecimiento\")\n\t\t\t\t\t\t\t\t\t.add(Projections.property(\"codigoLineaComercialPadre\"),\"codigoLineaComercialPadre\")\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t.add(Projections.property(\"lineaComercialPadre.estado\"),\"lineaComercialPadre.estado\")\n\t\t\t\t\t\t\t\t\t.add(Projections.property(\"lineaComercialPadre.id.codigoCompania\"),\"lineaComercialPadre.id.codigoCompania\")\n\t\t\t\t\t\t\t\t\t.add(Projections.property(\"lineaComercialPadre.id.codigoLineaComercial\"),\"lineaComercialPadre.id.codigoLineaComercial\")\n\t\t\t\t\t\t\t\t\t.add(Projections.property(\"lineaComercialPadre.nombre\"),\"lineaComercialPadre.nombre\")\n\t\t\t\t\t\t\t\t\t.add(Projections.property(\"lineaComercialPadre.estado\"),\"lineaComercialPadre.estado\")\n\t\t\t\t\t\t\t\t\t.add(Projections.property(\"lineaComercialPadre.codigoLineaComercialRaiz\"),\"lineaComercialPadre.codigoLineaComercialRaiz\")\n\t\t\t\t\t\t\t\t\t.add(Projections.property(\"lineaComercialPadre.codigoTipoLineaComercial\"),\"lineaComercialPadre.codigoTipoLineaComercial\")\n\t\t\t\t\t\t\t\t\t.add(Projections.property(\"lineaComercialPadre.valorTipoLineaComercial\"),\"lineaComercialPadre.valorTipoLineaComercial\")\n\t\t\t\t\t\t\t\t\t.add(Projections.property(\"lineaComercialPadre.nivel\"),\"lineaComercialPadre.nivel\")\n\t\t\t\t\t\t\t\t\t.add(Projections.property(\"lineaComercialPadre.codigoReferencia\"),\"lineaComercialPadre.codigoReferencia\")\n\t\t\t\t\t\t\t\t\t.add(Projections.property(\"lineaComercialPadre.descripcion\"),\"lineaComercialPadre.descripcion\")\n\t\t\t\t\t\t\t\t\t.add(Projections.property(\"lineaComercialPadre.codigoEstablecimiento\"),\"lineaComercialPadre.codigoEstablecimiento\")\n\t\t\t\t\t\t\t\t\t.add(Projections.property(\"lineaComercialPadre.codigoLineaComercialPadre\"),\"lineaComercialPadre.codigoLineaComercialPadre\")\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t);\n\t\t\t/**permite validar si el usuario selecciono algun filtro de busqueda**/\n\t\t\tif(! lineaComercialVO.getBusquedaSinFiltros()){\n\t\t\t\t/**validamos si necesita agragar la restriccion de la clasificacion**/\n\t\t\t\tif(lineaComercialVO.getHasMapCriteriaRestriction().containsKey(\"linComCla\")){\n\t\t\t\t\t\n\t\t\t\t\tDetachedCriteria subCriterio = DetachedCriteria.forClass(LineaComercialClasificacionDTO.class, \"lineaComercialClasificacionDTO\")\n\t\t\t\t .add(Restrictions.eq(\"lineaComercialClasificacionDTO.estado\", SICConstantes.ESTADO_ACTIVO_NUMERICO))\n\t\t\t\t .add(Restrictions.eqProperty(\"lineaComercialClasificacionDTO.codigoLineaComercial\", \"lineaComercialDTO.id.codigoLineaComercial\"))\n\t\t\t\t /**se agrega las restricciones ingresadas por el usuario**/\n\t\t\t\t .add(lineaComercialVO.getHasMapCriteriaRestriction().get(\"linComCla\").getCriteriaRestriction())\n\t\t\t\t .setProjection(Projections.property(\"lineaComercialClasificacionDTO.codigoLineaComercial\"));\n\t\t\t\t\t/**Se agrega un exist el cual valida si existe una relacion con la clasificacion que se encuentre activa**/\n\t\t\t\t\tcriteria.add(Subqueries.exists(subCriterio));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t/**validamos si necesita agragar la restriccion del funcionario**/\n\t\t\t\tif(lineaComercialVO.getHasMapCriteriaRestriction().containsKey(\"linComFun\")){\n\t\t\t\t\t\n//\t\t\t\t\tDetachedCriteria subCriterio = DetachedCriteria.forClass(LineaComercialFuncionarioDTO.class, \"lineaComercialFuncionarioDTO\")\n//\t\t\t\t\t .createAlias(\"lineaComercialFuncionarioDTO.funcionario\", \"funcionario\")\n//\t\t\t\t\t .createAlias(\"funcionario.usuarioDTO\", \"usuarioDTO\")\n//\t\t\t\t\t\t\t\n//\t\t\t\t\t .add(Restrictions.eqProperty(\"lineaComercialFuncionarioDTO.codigoLineaComercial\", \"lineaComercialDTO.id.codigoLineaComercial\"))\n//\t\t\t\t\t /**se valida que los valores a retornar sean activos**/\n//\t\t\t\t\t .add(Restrictions.eq(\"lineaComercialFuncionarioDTO.estado\", SICConstantes.ESTADO_ACTIVO_NUMERICO))\n//\t\t\t\t\t\t\t.add(Restrictions.eq(\"funcionario.estadoFuncionario\", SICConstantes.ESTADO_ACTIVO_LITERAL))\n//\t\t\t\t\t\t\t/**se agrega las restricciones ingresadas por el usuario**/\n//\t\t\t\t .add(lineaComercialVO.getHasMapCriteriaRestriction().get(\"linComFun\").getCriteriaRestriction())\n//\t\t\t\t .setProjection(Projections.property(\"lineaComercialFuncionarioDTO.codigoLineaComercial\"));\n//\t\t\t\t\t/**Se agrega un exist el cual valida si existe una relacion con el funcionario que se encuentre activa**/\n//\t\t\t\t\tcriteria.add(Subqueries.exists(subCriterio));\n\t\t\t\t\tCollection<Long> codigoLinComFunCol = consultarCodigosLineaComercialesFuncionario(lineaComercialVO);\n\t\t\t\t\tif(CollectionUtils.isNotEmpty(codigoLinComFunCol)){\n\t\t\t\t\t\tcriteria.add(Restrictions.in(\"lineaComercialDTO.id.codigoLineaComercial\", codigoLinComFunCol));\n\t\t\t\t\t}else{\n\t\t\t\t\t\treturn lineaComercialCol;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(lineaComercialVO.getHasMapCriteriaRestriction().containsKey(\"linComCliImp\")){\n\t\t\t\t\tCollection<Long> codigoLinComCliImpCol = consultarCodigosLineaComercialesClienteImportacion(lineaComercialVO);\n\t\t\t\t\tif(CollectionUtils.isNotEmpty(codigoLinComCliImpCol)){\n\t\t\t\t\t\tcriteria.add(Restrictions.in(\"lineaComercialDTO.id.codigoLineaComercial\", codigoLinComCliImpCol));\n\t\t\t\t\t}else{\n\t\t\t\t\t\treturn lineaComercialCol;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t/**permite la traer la linea comercial padre **/\n\t\t\tcriteria.createAlias(\"lineaComercialDTO.lineaComercialPadre\", \"lineaComercialPadre\",CriteriaSpecification.LEFT_JOIN);\n\n\t\t\t/**se agrega las restricciones basicas de la linea comercial mas las que ingreso el usuario**/\n\t\t\tcriteria.add(lineaComercialVO.getHasMapCriteriaRestriction().get(\"linCom\").getCriteriaRestriction());\n\t\t\t\n\t\t\tcriteria.setResultTransformer(new DtoResultTransformer(LineaComercialDTO.class));\n\t\t\t\n\t\t\t\n\t\t\tlineaComercialCol = criteria.list();\n\t\t\t/**validamos si es necesario contar si la linea comercial tiene sublineas **/\n\t\t\tif(lineaComercialVO.getContarSubLineas()){\n\t\t\t\tcontarLineaComercial(lineaComercialCol);\n\t\t\t}\n\t\t\t/**al consultar una sublinea comercial se modifica el parametro indica que cuenta con sublineas para que asi se pinte en pantalla sin necesidad de consultar**/\n\t\t\tfor(LineaComercialDTO linCom: lineaComercialCol){\n\t\t\t\tif(SearchDTO.isLoaded(linCom.getLineaComercialPadre())){\n\t\t\t\t\tlinCom.getLineaComercialPadre().setNumeroSubLineas(1);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\treturn lineaComercialCol;\n\t\t\t\n\t\t} catch (SICException e) {\n\t\t\tthrow new SICException(\"Error buscarLineaComercial:\",e);\n\t\t}\n\t}", "@Before\n public void antesDeTestear(){\n this.creditosHaberes = new Ingreso();\n this.creditosHaberes.setMonto(10000.0);\n this.creditosHaberes.setFecha(LocalDate.of(2020,9,25));\n\n this.donacion = new Ingreso();\n this.donacion.setMonto(500.0);\n this.donacion.setFecha(LocalDate.of(2020,9,26));\n\n\n this.compraUno = new Egreso();\n this.compraUno.setFecha(LocalDate.of(2020,9,26));\n this.compraUno.setMonto(1000.0);\n\n this.compraDos = new Egreso();\n this.compraDos.setFecha(LocalDate.of(2020,9,27));\n this.compraDos.setMonto(2500.0);\n\n this.compraTres = new Egreso();\n this.compraTres.setFecha(LocalDate.of(2020,9,23));\n this.compraTres.setMonto(10000.0);\n\n ingresos.add(donacion);\n ingresos.add(creditosHaberes);\n\n egresos.add(compraUno);\n egresos.add(compraDos);\n egresos.add(compraTres);\n\n /***************Creacion de condiciones*************/\n this.condicionEntreFechas = new CondicionEntreFechas();\n\n this.condicionValor = new CondicionValor();\n\n this.condicionSinIngresoAsociado = new CondicionSinIngresoAsociado();\n /***************Creacion criterio*******************/\n this.ordenValorPrimeroEgreso = new OrdenValorPrimeroEgreso();\n this.ordenValorPrimeroIngreso = new OrdenValorPrimeroIngreso();\n this.ordenFecha = new Fecha();\n this.mix = new Mix();\n\n\n /***************Creacion vinculador*****************/\n vinculador = Vinculador.instancia();\n vinculador.addCondiciones(this.condicionValor);\n vinculador.addCondiciones(this.condicionEntreFechas);\n vinculador.addCondiciones(this.condicionSinIngresoAsociado);\n }", "public String limpiar()\r\n/* 143: */ {\r\n/* 144:171 */ crearDimensionContable();\r\n/* 145:172 */ String[] filtro = { \"indicadorValidarDimension\" + this.dimension, \"true\" };\r\n/* 146:173 */ this.listaCuentaContableBean.agregarFiltro(filtro);\r\n/* 147:174 */ return \"\";\r\n/* 148: */ }", "public void getGerarEscalaGeral(ActionEvent actionEvent) {\n\t\tEventoRepository eventoRep = new EventoRepository(JPAFactory.getEntityManager());\r\n\t\tlistaEvento = eventoRep.buscarEventos(inicio,fim);\r\n\t\t\r\n\t\t//CorEquipesController grupoCores = new CorEquipesController();\r\n\t\tTurmaVoluntarioRepository repository = new TurmaVoluntarioRepository(JPAFactory.getEntityManager());\r\n\t\tList<CorEquipes> listaCorGeral = repository.buscarCorGeral();\r\n\t\tList<Voluntario> listaVoluntarioGeral = repository.buscarVoluntarioGeral();\r\n\t\tList<Voluntario> equipeA = new ArrayList<Voluntario>();\r\n\t\tList<Voluntario> equipeB = new ArrayList<Voluntario>();\r\n\t\tList<Voluntario> listPopulacaoI = new ArrayList<Voluntario>();\t\t\t\r\n\t\tList<Voluntario> escalaA = new ArrayList<Voluntario>();\r\n\t\tList<Voluntario> escalaB = new ArrayList<Voluntario>();\r\n\t\tList<Integer> intervaloSorteio = new ArrayList<Integer>();\r\n\r\n\t//\tFor de verificação para não repetição dos campos sorteados\r\n\t\tfor (int i=0; i<listaVoluntarioGeral.size(); i++) {\r\n\t\t\tintervaloSorteio.add(i);\r\n\t\t}\r\n\t\t//População inicial\t\r\n\t\tfor (int i=0; i<listaVoluntarioGeral.size(); i++) {\r\n\t\t\tRandom rand = new Random();\r\n\t\t\t\r\n\t\t\tint posicaoSorteada = rand.nextInt(intervaloSorteio.size());\r\n\t\t\t\r\n\t\t\tint conteudoSorteado = intervaloSorteio.get(posicaoSorteada);\r\n\t\t\t\r\n\t\t\tlistPopulacaoI.add(listaVoluntarioGeral.get(conteudoSorteado));\r\n\t\r\n\t\t\tfor (int j = 0; j<intervaloSorteio.size(); j++) {\r\n\t\t\t\tif (conteudoSorteado==intervaloSorteio.get(j)) {\r\n\t\t\t\t\tintervaloSorteio.remove(j);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t//Gera os pais\r\n\t\tfor (int i=0; i<listaVoluntarioGeral.size(); i++) {\r\n\t\t\tintervaloSorteio.add(i);\r\n\t\t}\r\n\t\tfor(int k = 0; k<listPopulacaoI.size();k++) {\r\n\t\t\tRandom rand = new Random();\r\n\t\t\t//vrifica a lista para adicionar na equipe A (pai1)\r\n\t\t\tif (intervaloSorteio.isEmpty()) {\r\n\t\t\t\tbreak;\r\n\t\t\t}else {\r\n\t\t\t\tint posicaoSorteadaA = rand.nextInt(intervaloSorteio.size());\r\n\t\t\t\tint conteudoSorteadoA = intervaloSorteio.get(posicaoSorteadaA);\r\n\t\t\t\tequipeA.add(listPopulacaoI.get(conteudoSorteadoA));\r\n\t\t\t\tfor (int j = 0; j<intervaloSorteio.size(); j++) {\r\n\t\t\t\t\tif (conteudoSorteadoA==intervaloSorteio.get(j)) {\r\n\t\t\t\t\t\tintervaloSorteio.remove(j);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t//vrifica a lista para adicionar na equipe B (pai2)\r\n\t\t\tif(intervaloSorteio.isEmpty()) {\r\n\t\t\t\tbreak;\r\n\t\t\t}else {\r\n\t\t\t\tint posicaoSorteadaB = rand.nextInt(intervaloSorteio.size());\r\n\t\t\t\tint conteudoSorteadoB = intervaloSorteio.get(posicaoSorteadaB);\r\n\t\t\t\tequipeB.add(listPopulacaoI.get(conteudoSorteadoB));\r\n\t\t\t\tfor (int j = 0; j<intervaloSorteio.size(); j++) {\r\n\t\t\t\t\tif (conteudoSorteadoB==intervaloSorteio.get(j)) {\r\n\t\t\t\t\t\tintervaloSorteio.remove(j);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t//Cruzamento\r\n\t\tint tamanhoA = equipeA.size();\r\n\t\tint tamanhoB = equipeB.size();\r\n\t\tint metadeA = (int) tamanhoA/2;\r\n\t\tint metadeB = (int) tamanhoB/2;\r\n\t\tfor (int i=0; i<metadeA; i++) {\r\n\t\t\tescalaA.add(equipeA.get(i));\r\n\t\t}\r\n\t\tfor (int i=metadeA; i<tamanhoA; i++) {\r\n\t\t\tescalaB.add(equipeA.get(i));\r\n\t\t}\r\n\t\tfor (int i=0; i<metadeB; i++) {\r\n\t\t\tescalaB.add(equipeB.get(i));\r\n\t\t}\r\n\t\tfor (int i=metadeB; i<tamanhoB; i++) {\r\n\t\t\tescalaA.add(equipeB.get(i));\r\n\t\t}\r\n\t\t\r\n\t\t//grava dados na base\r\n\t\tint tamanhoEvanto = listaEvento.size();\r\n\t\tint metadeTamanhoEv = tamanhoEvanto/2;\r\n\t\tfor (int i = 0; i < listaEvento.size(); i ++) {\r\n\t\t\tif (listaEvento.get(i).getTipoEvento().getValor().equals(0)) {\t\r\n\t\t\t\tfor(int j = 0; j < equipeA.size(); j++) {\r\n//\t\t\t\t\tgetEntity().setCorE(listaCorGeral.get(i));\r\n\t\t\t\t\tgetEntity().setEvento(listaEvento.get(i));\r\n\t\t\t\t\tgetEntity().setVoluntario(equipeA.get(j));\r\n\t\t\t\t\tinsert(actionEvent);\r\n\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\ti++;\r\n\t\t\t\tfor(int j = 0; j < equipeB.size(); j++) {\r\n//\t\t\t\t\tgetEntity().setCorE(listaCorGeral.get(i));\r\n\t\t\t\t\tgetEntity().setEvento(listaEvento.get(i));\r\n\t\t\t\t\tgetEntity().setVoluntario(equipeB.get(j));\r\n\t\t\t\t\tinsert(actionEvent);\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}else {\r\n\t\t\t\tfor(int j = 0; j < listPopulacaoI.size(); j++) {\r\n//\t\t\t\t\tgetEntity().setCorE(listaCorGeral.get(i));\r\n\t\t\t\t\tgetEntity().setEvento(listaEvento.get(i));\r\n\t\t\t\t\tgetEntity().setVoluntario(listPopulacaoI.get(j));\r\n\t\t\t\t\tinsert(actionEvent);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}" ]
[ "0.62353337", "0.611329", "0.5796022", "0.57286435", "0.5693362", "0.56348044", "0.56120443", "0.5610313", "0.5586814", "0.5564145", "0.5542382", "0.5535062", "0.55139035", "0.55116284", "0.5508282", "0.550035", "0.5498976", "0.5485917", "0.54783416", "0.5453056", "0.5441317", "0.54122096", "0.5411579", "0.5409052", "0.54069614", "0.5395839", "0.53837013", "0.53791517", "0.5376336", "0.5374585", "0.5374163", "0.5357178", "0.53425366", "0.5335521", "0.5335408", "0.5334339", "0.5333806", "0.5322834", "0.5320132", "0.53187084", "0.5315786", "0.53046757", "0.5303562", "0.5299898", "0.52893203", "0.5288832", "0.5284489", "0.5273187", "0.5273044", "0.52707577", "0.52655697", "0.52561647", "0.52523714", "0.52502924", "0.5248688", "0.52446043", "0.52404165", "0.523544", "0.5231554", "0.5230573", "0.52295274", "0.5227474", "0.521675", "0.5209719", "0.5209495", "0.52035975", "0.520259", "0.51929104", "0.5192728", "0.5191909", "0.51908934", "0.5190725", "0.5186767", "0.5186757", "0.5186528", "0.518585", "0.5179507", "0.51715624", "0.5169884", "0.5168941", "0.5166735", "0.5164267", "0.5161617", "0.5159606", "0.5159021", "0.5154151", "0.5149385", "0.5147704", "0.51464933", "0.5141269", "0.51394653", "0.51354414", "0.5134204", "0.5129243", "0.51276916", "0.51247513", "0.51186806", "0.51178706", "0.5113051", "0.5110965" ]
0.7553593
0
verifier si il peut bien seplacer sur les terrain
public void seDeplacer(int x , int y) { if(this.coordoneX - x <= this.porteDeplacement || this.coordoneY - y <= this.porteDeplacement) { this.coordoneX = x; this.coordoneY = y; } else { throw new IllegalArgumentException("Deplacement impossible") ; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean checkM(){\n if(currentLocation.x == previousLocation.x && currentLocation.y == previousLocation.y) {\n return false;\n }\n // Is outside the border\n if(currentLocation.x < size || currentLocation.y < size || currentLocation.x > map.numRows - size || currentLocation.y > map.numCols - size) {\n return false;\n }\n // Is on the land\n double angle2 = 0;\n while (angle2 < 6.3) {\n if (map.getTerrainGrid()[currentLocation.x + (int) (size/2 * cos(angle2))][currentLocation.y + (int) (size/2 * sin(angle2))] == Colors.OCEAN) {\n return false;\n }\n angle2 += 0.3;\n }\n return true;\n }", "public boolean esPared(CoordCasilla cc)\n {\n //Gdx.app.log(\"ES PARED\", \"ANalizando (\"+cc.x+\",\"+cc.y+\")\");\n \n TiledMapTileLayer.Cell casilla=( (TiledMapTileLayer)mapaActual.getLayers().get(\"PAREDES\")).getCell(cc.x,cc.y);\n if(casilla==null)\n return false;\n int idTile=casilla.getTile().getId();\n return idTile!=Mundo.ID_TILE_MURO_TRANSITABLE_1 && idTile!=Mundo.ID_TILE_MURO_TRANSITABLE_2 && idTile!=Mundo.ID_TILE_MURO_TRANSITABLE_3;\n }", "boolean isSetRoadTerrain();", "public static boolean terrain_has_flag(int terr, terrain_flag_id flag){\r\n\t\t\t //\t BV_ISSET(get_tile_type(terr)->flags, flag)\r\n\t\t\t return false;\r\n}", "boolean land();", "public void testGetTerrain()\n {\n assertNotNull( map.getTerrain() );\n }", "private static void mapCheck(){\n\t\tfor(int x = 0; x < Params.world_width; x = x + 1){\n\t\t\tfor(int y = 0; y < Params.world_height; y = y + 1){\n\t\t\t\tif(map[x][y] > 1){\n\t\t\t\t\t//System.out.println(\"Encounter Missing. Position: (\" + x + \",\" + y + \").\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public boolean land() {\n\t\treturn ( Math.random() > this.crashProb);\r\n\t}", "private void setupVariant1TerrainMap() {\n\n\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-4,-4), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-2,-4), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(0,-4), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(2,-4), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(4,-4), TerrainKind.SEA);\n\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-5,-3), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-3,-3), TerrainKind.FIELDS);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-1,-3), TerrainKind.PASTURE);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(1,-3), TerrainKind.HILLS);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(3,-3), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(5,-3), TerrainKind.SEA);\n\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-6,-2), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-4,-2), TerrainKind.FOREST);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-2,-2), TerrainKind.MOUNTAINS);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(0,-2), TerrainKind.BIG_FISHERY);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(2,-2), TerrainKind.PASTURE);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(4,-2), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(6,-2), TerrainKind.SEA);\n\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-7,-1), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-5,-1), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-3,-1), TerrainKind.HILLS);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-1,-1), TerrainKind.PASTURE);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(1,-1), TerrainKind.MOUNTAINS);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(3,-1), TerrainKind.FIELDS);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(5,-1), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(7,-1), TerrainKind.SEA);\n\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-8,0), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-6,0), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-4,0), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-2,0), TerrainKind.FOREST);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(0,0), TerrainKind.FOREST);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(2,0), TerrainKind.PASTURE);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(4,0), TerrainKind.SMALL_FISHERY);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(6,0), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(8,0), TerrainKind.SEA);\n\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-7,1), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-5,1), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-3,1), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-1,1), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(1,1), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(3,1), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(5,1), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(7,1), TerrainKind.SEA);\n\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-8,2), TerrainKind.SMALL_FISHERY);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-6,2), TerrainKind.MOUNTAINS);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-4,2), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-2,2), TerrainKind.GOLDFIELD);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(0,2), TerrainKind.FIELDS);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(2,2), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(4,2), TerrainKind.HILLS);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(6,2), TerrainKind.MOUNTAINS);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(8,2), TerrainKind.SMALL_FISHERY);\n\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-7,3), TerrainKind.SMALL_FISHERY);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-5,3), TerrainKind.PASTURE);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-3,3), TerrainKind.MOUNTAINS);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-1,3), TerrainKind.PASTURE);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(1,3), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(3,3), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(5,3), TerrainKind.GOLDFIELD);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(7,3), TerrainKind.SMALL_FISHERY);\n\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-6,4), TerrainKind.SMALL_FISHERY);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-4,4), TerrainKind.HILLS);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-2,4), TerrainKind.HILLS);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(0,4), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(2,4), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(4,4), TerrainKind.FOREST);\n\t}", "private boolean estSurPlateau(Coordonnees emplacement) {\n return emplacement.getLigne() >= 0 && emplacement.getColonne() >= 0 && emplacement.getLigne() < Plateau.NOMBRE_COLONNE && emplacement.getColonne() < Plateau.NOMBRE_LIGNE;\n }", "public boolean land() {\n\t\treturn (Math.random() > this.crashProb);\r\n\t}", "@Test\n public void test1LandOn()throws Exception{\n Position pos = new Position(0,0);\n generateLevel.landOn(pos,BlockType.PATH.toString());\n assertFalse(generateLevel.getBlocks().isEmpty());\n }", "@Test\n public void TestPlaceSourceOccupied() throws Exception {\n for (int i = 0; i < WIDTH; i++) {\n heatGrid.placeSource(\"l\", i, i);\n }\n\n // Now try to place a bunch of glaciers along the diagonal\n for (int i = 0; i < WIDTH; i++) {\n assertFalse(heatGrid.placeSource(\"g\", i, i));\n }\n }", "public void verificaCoordenada() {\r\n\t\tif (X < 0) {\r\n\t\t\tX = Const.TAMANHO - 1;\r\n\t\t} else {\r\n\t\t\tX = X % Const.TAMANHO;\r\n\t\t}\r\n\r\n\t\tif (Y < 0) {\r\n\t\t\tY = Const.TAMANHO - 1;\r\n\t\t} else {\r\n\t\t\tY = Y % Const.TAMANHO;\r\n\t\t}\r\n\t}", "private boolean canBlackSaveItselfRightAhead(Pedina pedina) {\n boolean condizione1 = false;\n boolean condizione2 = false;\n boolean fine1 = false;\n boolean fine2 = false;\n boolean fine3 = false;\n \n for (int i = 0; i < arrayPedineBianche.size(); i++) {\n if (pedina.getX() + 1 == arrayPedineBianche.get(i).getX()\n && pedina.getY() + 1 == arrayPedineBianche.get(i).getY()) {\n condizione1 = true;\n }\n }\n \n if(controllaSeCasellaLibera(pedina.getX() - 1, pedina.getY() - 1))\n condizione2 = true;\n \n \n if (condizione1 && condizione2) {\n if(pedina.getX() - 1 < 0 || pedina.getY() - 1 < 0)\n return false;\n else {\n if(pedina.getX() + 1 > 7 || pedina.getY() - 1 < 0)\n fine1 = true;\n else {\n for (int i = 0; i < arrayPedineBianche.size(); i++) {\n if (pedina.getX() + 2 == arrayPedineBianche.get(i).getX()\n && pedina.getY() - 2 == arrayPedineBianche.get(i).getY()) {\n fine1 = true;\n }\n }\n }\n \n if(!fine1){\n if(controllaSeCasellaLibera(pedina.getX() + 1, pedina.getY() - 1)) {\n pedina.setXTemp(pedina.getX() + 1);\n pedina.setYTemp(pedina.getY() - 1);\n return true;\n } else\n fine1 = true;\n }\n \n if(pedina instanceof Damone) {\n if(pedina.getX() - 1 < 0 || pedina.getY() + 1 > 7)\n fine2 = true;\n else {\n for (int i = 0; i < arrayPedineBianche.size(); i++) {\n if (pedina.getX() - 2 == arrayPedineBianche.get(i).getX()\n && pedina.getY() + 2 == arrayPedineBianche.get(i).getY()) {\n fine2 = true;\n }\n }\n }\n \n if(!fine2) {\n if(controllaSeCasellaLibera(pedina.getX() - 1, pedina.getY() + 1)) {\n pedina.setXTemp(pedina.getX() - 1);\n pedina.setYTemp(pedina.getY() + 1);\n return true;\n } else\n fine2 = true;\n }\n \n \n for (int i = 0; i < arrayPedineBianche.size(); i++) {\n if (pedina.getX() - 2 == arrayPedineBianche.get(i).getX()\n && pedina.getY() - 2 == arrayPedineBianche.get(i).getY()) {\n fine3 = true;\n }\n }\n \n if(!fine3) {\n pedina.setXTemp(pedina.getX() - 1);\n pedina.setYTemp(pedina.getY() - 1);\n return true;\n } else\n return false;\n \n } else\n return false; \n } \n } else\n return false; \n }", "@Test\n public void notOnGroundTest(){\n TileMap tileMap = new TileMap(24, 24, new byte[][]{{0,0},{0,0}},new byte[][]{{1,0},{1,1}}, tilepath);\n Rect cBox = new Rect(2,2,2,2);\n assertFalse(tileMap.isOnGround(cBox));\n }", "public void checkwarp(){\n\t\tif(pacman.ypos > (colours[0].length*interval)-2){\r\n\t\t\tpacman.ypos = interval+2;\r\n\t\t}\r\n\t\telse if(pacman.xpos > (colours.length*interval)-2){\r\n\t\t\tpacman.xpos = interval+2;\r\n\t\t}\r\n\t\telse if(pacman.ypos < interval+2){\r\n\t\t\tpacman.ypos = (colours[0].length*interval)-2;\r\n\t\t}\r\n\t\telse if(pacman.xpos < interval+2){\r\n\t\t\tpacman.xpos = (colours.length*interval)-2;\r\n\t\t}\r\n\t\t\r\n\t}", "private boolean isConsideredFresh() {\n \t\treturn this.isNew || this.area.getPolygon() == null;\n \t}", "protected boolean isTerrainDependent()\n {\n return this.getAltitudeMode() != WorldWind.ABSOLUTE;\n }", "public abstract boolean isTerrainAccessiable(final Cell cell);", "@Override\n public boolean detect() {\n \t slowDown();\n final MoveResult move = CurrentData.CALCULATED.tetromino.move;\n\t\t\t\t\t\tif (move.hasMove()) {\n final Tetromino moveTetromino = move.tetromino;\n final int y = QQRobot.findTetromino(moveTetromino, 3 + missingTetromino * 2);\n if (y == -1) {\n missingTetromino++;\n if (missingTetromino == 3) {\n // System.out.println(\"没找到块\" + nr + \"!\" + CurrentData.CALCULATED.tetromino.move + \", \"\n // + CurrentData.CALCULATED.tetromino + \", \"\n // + CurrentData.CALCULATED.tetromino.move.tetromino);\n // QQDebug.save(QQRobot.getScreen(), \"qqtetris_\" + nr);\n // nr++;\n throw new NoTetrominoFoundException(\"没找到块!\");\n // CurrentData.CALCULATED.tetromino.move.doMove();\n }\n } else {\n \t final int fallen = y - moveTetromino.y;\n if (fallen > 0) {\n // System.out.println(\"掉落:\" + fallen);\n moveTetromino.y = y;\n } \t \n \t if (move.clever) {\n \t \t if (firstScan) {\n \t \t firstScan = false;\n \t \t } else if (fallen > 0) {\n\t\t\t move.doMove(); \t \t \t \n \t \t }\n \t } else {\n\t\t move.doMove();\n \t }\n }\n }\n if (move.hasMove()) {\n return false;\n } else {\n // QQDebug.printBoard(CurrentData.CALCULATED.board);\n return true;\n }\n }", "public boolean souvislost(){\n\t\t\n\t\tif(pole.size() != pocetVrcholu){\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t\t\n\t}", "@Test\n public void testCheckPlaceVerticaleTeteDehors() {\n Player p = new Player();\n List<Player> pL = new ArrayList<>();\n pL.add(p);\n Jeux j = new Jeux(ModeDeJeux.MONO_JOUEUR, pL);\n Grille g = new Grille(10, 10, j, p);\n\n try {\n j.checkPlace(\"A50\", g, 5, false);\n fail(\"Une exception devrai etre lancée\");\n }\n catch (Exception e) {\n assertTrue(\"L'exception n'est pas bonne\", e instanceof BateauxStartPointInvalide);\n }\n }", "public boolean tryToCreatePortal(World var1, int var2, int var3, int var4)\n {\n byte var5 = 0;\n byte var6 = 0;\n\n if (var1.getBlockId(var2 - 1, var3, var4) == Block.glowStone.blockID || var1.getBlockId(var2 + 1, var3, var4) == Block.glowStone.blockID)\n {\n var5 = 1;\n }\n\n if (var1.getBlockId(var2, var3, var4 - 1) == Block.glowStone.blockID || var1.getBlockId(var2, var3, var4 + 1) == Block.glowStone.blockID)\n {\n var6 = 1;\n }\n\n if (var5 == var6)\n {\n return false;\n } else\n {\n if (var1.getBlockId(var2 - var5, var3, var4 - var6) == 0)\n {\n var2 -= var5;\n var4 -= var6;\n }\n\n int var7;\n int var8;\n\n for (var7 = -1; var7 <= 2; ++var7)\n {\n for (var8 = -1; var8 <= 3; ++var8)\n {\n boolean var9 = var7 == -1 || var7 == 2 || var8 == -1 || var8 == 3;\n\n if (var7 != -1 && var7 != 2 || var8 != -1 && var8 != 3)\n {\n int var10 = var1.getBlockId(var2 + var5 * var7, var3 + var8, var4 + var6 * var7);\n\n if (var9)\n {\n if (var10 != Block.glowStone.blockID)\n {\n return false;\n }\n } else if (var10 != 0 && var10 != Block.waterMoving.blockID)\n {\n return false;\n }\n }\n }\n }\n\n for (var7 = 0; var7 < 2; ++var7)\n {\n for (var8 = 0; var8 < 3; ++var8)\n {\n var1.setBlock(var2 + var5 * var7, var3 + var8, var4 + var6 * var7, AetherBlocks.AetherPortal.blockID, 0, 2);\n }\n }\n\n return true;\n }\n }", "@Test\n public void testAroundPlayerPositions() {\n IntStream.iterate(0, i -> i + 1).limit(LevelImpl.LEVEL_MAX).forEach(k -> {\n terrain = terrainFactory.create(level.getBlocksNumber());\n final List<Position> safePosition = new ArrayList<>();\n safePosition.add(TerrainFactoryImpl.PLAYER_POSITION);\n safePosition.add(new Position(TerrainFactoryImpl.PLAYER_POSITION.getX() + TerrainFactoryImpl.CELL_DIMENSION * ScreenToolUtils.SCALE,\n TerrainFactoryImpl.PLAYER_POSITION.getY()));\n safePosition.add(new Position(TerrainFactoryImpl.PLAYER_POSITION.getX(), \n TerrainFactoryImpl.PLAYER_POSITION.getY() + TerrainFactoryImpl.CELL_DIMENSION * ScreenToolUtils.SCALE));\n /*use assertFalse because they have already been removed*/\n assertFalse(terrain.getFreeTiles().stream().map(i -> i.getPosition()).collect(Collectors.toList()).containsAll(safePosition));\n level.levelUp();\n });\n }", "boolean hasAuvLoc();", "private boolean canBlackSaveItselfRightBehind(Pedina pedina) {\n boolean condizione1 = false;\n boolean condizione2 = false;\n boolean fine1 = false;\n boolean fine2 = false;\n boolean fine3 = false;\n\n for (Pedina pedinaBianca : arrayPedineBianche) {\n if (pedina.getX() - 1 == pedinaBianca.getX()\n && pedina.getY() + 1 == pedinaBianca.getY()\n && (pedinaBianca instanceof Damone))\n condizione1 = true;\n }\n \n if(pedina.getX() + 1 <= 7 && pedina.getY() - 1 >= 0 && \n controllaSeCasellaLibera(pedina.getX() + 1, pedina.getY() - 1))\n condizione2 = true;\n \n \n if (condizione1 && condizione2) {\n \n if(pedina.getX() + 1 > 7 || pedina.getY() + 1 > 7)\n fine1 = true;\n else { \n for (int i = 0; i < arrayPedineBianche.size(); i++) {\n if (pedina.getX() + 2 == arrayPedineBianche.get(i).getX()\n && pedina.getY() + 2 == arrayPedineBianche.get(i).getY()) {\n fine1 = true;\n }\n }\n }\n \n if(!fine1) {\n if(controllaSeCasellaLibera(pedina.getX() + 1, pedina.getY() + 1)) {\n pedina.setXTemp(pedina.getX() + 1);\n pedina.setYTemp(pedina.getY() + 1);\n return true;\n } else\n fine1 = true;\n } \n \n if(pedina.getX() + 1 > 7 || pedina.getY() - 1 < 0)\n fine2 = true;\n else {\n for (int i = 0; i < arrayPedineBianche.size(); i++) {\n if (pedina.getX() + 2 == arrayPedineBianche.get(i).getX()\n && pedina.getY() - 2 == arrayPedineBianche.get(i).getY()) {\n fine2 = true;\n }\n }\n }\n \n if(!fine2) {\n if(controllaSeCasellaLibera(pedina.getX() + 1, pedina.getY() - 1)) {\n pedina.setXTemp(pedina.getX() + 1);\n pedina.setYTemp(pedina.getY() - 1);\n return true;\n } else\n fine2 = true;\n }\n \n \n if(pedina instanceof Damone){\n if(pedina.getX() - 1 < 0 || pedina.getY() - 1 < 0)\n fine3 = true;\n else {\n for (int i = 0; i < arrayPedineBianche.size(); i++) {\n if (pedina.getX() - 2 == arrayPedineBianche.get(i).getX()\n && pedina.getY() - 2 == arrayPedineBianche.get(i).getY()) {\n fine3 = true;\n }\n }\n }\n \n if(!fine3) {\n if(controllaSeCasellaLibera(pedina.getX() - 1, pedina.getY() - 1)) {\n pedina.setXTemp(pedina.getX() - 1);\n pedina.setYTemp(pedina.getY() - 1);\n return true;\n } else\n return false;\n } else\n return false;\n \n } else\n return false;\n \n } else \n return false;\n\n }", "boolean allFacesPainted() {\n\n\n for (int i = 0; i < s; i ++){\n if (the_cube[i] == false){\n return false;\n\n }\n }\n return true;\n }", "public void pave() {\n if (!world[position.x][position.y].equals(Tileset.NOTHING)) {\n System.out.println(\"I cannot pave at this place.\");\n return;\n }\n world[position.x][position.y] = Tileset.FLOOR;\n }", "@Test\r\n\tpublic void testMapValidation() {\r\n\t\tAssert.assertEquals(true,mapdata.contains(worldmap.getContinents()));\r\n\t\t\n\t\tAssert.assertEquals(true,mapdata.contains(worldmap.getTerritories()));\r\n\t}", "boolean hasCoordInfo();", "@Test\n public void testCheckPlaceVerticaleMembreDehors() {\n Player p = new Player();\n List<Player> pL = new ArrayList<>();\n pL.add(p);\n Jeux j = new Jeux(ModeDeJeux.MONO_JOUEUR, pL);\n Grille g = new Grille(10, 10, j, p);\n\n try {\n j.checkPlace(\"A8\", g, 5, false);\n fail(\"Une exception devrai etre lancée\");\n }\n catch (Exception e) {\n assertTrue(\"L'exception n'est pas bonne\", e instanceof BateauxMembreInvalide);\n }\n }", "@Test\r\n public void testCalculerValeurTerrainAgricole() {\n Lot lot1 = new Lot(\"Lot1\", 2, 0, 300, \"14-02-2019\");\r\n Lot lot2 = new Lot(\"Lot2\", 2, 0, 600, \"12-06-2019\");\r\n Lot lot3 = new Lot(\"Lot3\", 2, 0, 1500, \"04-02-2019\");\r\n List<Lot> lots = new ArrayList();\r\n lots.add(lot1);\r\n lots.add(lot2);\r\n lots.add(lot3);\r\n // Terrain (typeTerrain, prix_min2, prix_min2, listLot)\r\n Terrain terrain = new Terrain(0, 50.00, 75.00, lots);\r\n Agricole.calculerValeurTerrainAgricole(terrain);\r\n // valFonciereAttendue = 50.0*300 + 50.0*600 + 50.0*1500 + 733.77 +\r\n // nbreDroitPassage = 500-(2*(5/100*300*50)) + 500-(2*(5/100*600*50))+\r\n // 500-(2*(5/100*1500*50)\r\n double valFonciereAttendue = 110233.8;\r\n double taxeScolaireAttendue=1322.85;\r\n double taxeMunicipaleAttendue = 2755.85;\r\n boolean resultat = valFonciereAttendue == terrain.getValeur_fonciere_totale()\r\n && taxeScolaireAttendue == terrain.getTaxe_scolaire()\r\n && taxeMunicipaleAttendue == terrain.getTaxe_municipale();\r\n assertTrue(\"valfoncièreAttendue: \" + valFonciereAttendue+\", vs valeur obtenue: \"+terrain.getValeur_fonciere_totale()\r\n + \"\\ntaxe scolaire attendue: \" + taxeScolaireAttendue+\", vs valeur obtenue: \"+terrain.getTaxe_scolaire()\r\n + \"\\ntaxe muninipale attendue: \" + taxeMunicipaleAttendue+\", vs valeur obtenue: \"+terrain.getTaxe_municipale(), \r\n resultat); \r\n \r\n }", "boolean EsHemisferioSur()\r\n {\r\n if (getLat() < 29.46)\r\n return true;\r\n else\r\n return false;\r\n }", "boolean canReplace(World world, int x, int y, int z);", "public boolean canReproduce() {\r\n ArrayList<Cell> neighbours = getNeighbours(FIRSTLAYER);\r\n\r\n int numOfSameT = 0;\r\n int numOfEmpty = 0;\r\n int numOfFoodC = 0;\r\n\r\n for (Cell cell : neighbours) {\r\n if (isSameType(cell.getInhabit())) {\r\n numOfSameT++;\r\n } else if (cell.getInhabit() == null && isTerrainAccessiable(cell)) {\r\n numOfEmpty++;\r\n } else if (isEdible(cell.getInhabit())) {\r\n numOfFoodC++;\r\n }\r\n }\r\n\r\n return (numOfSameT >= numOfSameTypeNeighbourToReproduce() \r\n && numOfEmpty >= numOfEmptyToReproduce()\r\n && numOfFoodC >= numOfFoodCellToReproduce());\r\n }", "private void setupDefaultTerrainMap() {\n defaultTerrainKindMap.put(getHashCodeofPair(-7,1), TerrainKind.SMALL_FISHERY);\n defaultTerrainKindMap.put(getHashCodeofPair(7,1), TerrainKind.SMALL_FISHERY);\n defaultTerrainKindMap.put(getHashCodeofPair(-7,-1), TerrainKind.SMALL_FISHERY);\n defaultTerrainKindMap.put(getHashCodeofPair(7,-1), TerrainKind.SMALL_FISHERY);\n defaultTerrainKindMap.put(getHashCodeofPair(0,4), TerrainKind.SMALL_FISHERY);\n defaultTerrainKindMap.put(getHashCodeofPair(2,4), TerrainKind.SMALL_FISHERY);\n\n defaultTerrainKindMap.put(getHashCodeofPair(0,-2), TerrainKind.BIG_FISHERY);\n defaultTerrainKindMap.put(getHashCodeofPair(-3,-3), TerrainKind.FIELDS);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(1,-3), TerrainKind.HILLS);\n \t \tdefaultTerrainKindMap.put(getHashCodeofPair(3,-3), TerrainKind.SEA);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(-4,-2), TerrainKind.FOREST);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(-2,-2), TerrainKind.MOUNTAINS);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(-1,-3), TerrainKind.PASTURE);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(2,-2), TerrainKind.PASTURE);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(4,-2), TerrainKind.SEA);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(-5,-1), TerrainKind.SEA);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(-3,-1), TerrainKind.HILLS);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(-1,-1), TerrainKind.PASTURE);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(1,-1), TerrainKind.MOUNTAINS);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(3,-1), TerrainKind.FIELDS);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(5,-1), TerrainKind.SEA);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(-6,0), TerrainKind.HILLS);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(-4,0), TerrainKind.SEA);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(-2,0), TerrainKind.FOREST);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(0,0), TerrainKind.FOREST);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(2,0), TerrainKind.PASTURE);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(4,0), TerrainKind.SEA);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(6,0), TerrainKind.HILLS);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(-5,1), TerrainKind.MOUNTAINS);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(-3,1), TerrainKind.SEA);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(-1,1), TerrainKind.SEA);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(1,1), TerrainKind.SEA);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(3,1), TerrainKind.SEA);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(5,1), TerrainKind.GOLDFIELD);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(-4,2), TerrainKind.SEA);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(-2,2), TerrainKind.GOLDFIELD);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(0,2), TerrainKind.FIELDS);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(2,2), TerrainKind.PASTURE);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(4,2), TerrainKind.SEA);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(-3,3), TerrainKind.SEA);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(-1,3), TerrainKind.SEA);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(1,3), TerrainKind.MOUNTAINS);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(3,3), TerrainKind.SEA);\n\t}", "public boolean garretFight(){\n\t\tint XG = 0;\n\t\tint YG = 0;\n\t\tint Xyou = 1;\n\t\tint Yyou = 1;\n\t\tfor(int i = 0 ; i < this.Garret.length;i++){\n\t\t\tfor(int p = 0; p < this.Garret.length;p++){\n\t\t\t\tif(this.Garret[i][p] == 1){\n\t\t\t\t\tYG = i;\n\t\t\t\t\tXG = p;\n\t\t\t\t}\n\t\t\t\tif(this.position[i][p] == 1){\n\t\t\t\t\tYyou = i;\n\t\t\t\t\tXyou = p;\n\t\t\t\t}\n\t\t\t}\n\t\t}//end of outter for\n\t\tif(YG==Yyou && XG==Xyou){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "@Test\n public void testIsGameOver() {\n ocean.placeAllShipsRandomly();\n final int oceanSize = 20;\n for (int i = 0; i < oceanSize; i++) {\n for (int j = 0; j < oceanSize; j++) {\n ocean.shootAt(i, j);\n }\n }\n assertTrue(\"The game didn't finish\", ocean.isGameOver());\n }", "public boolean winner() {\n for(int i = 0; i < Landmarks.size(); i++) {\n if (Landmarks.get(i).getConstructed() == false) {\n return false;\n }\n }\n return true;\n }", "private Boolean esSolucion() {\n if(debug) {\n System.out.println(\"**********************esSolucion\");\n printSol(); \n }\n \n return (this.sol.numVerticesEmparejados == (this.G.numVertices()-1));\n }", "private boolean colisionEstorbos(){\r\n\t\tif(game.estorbo1.getBounds().intersects(getBounds())){\r\n\t\t\tasignarVelocidad(game.estorbo1, rebotes1);\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tif(game.estorbo2.getBounds().intersects(getBounds())){\r\n\t\t\tasignarVelocidad(game.estorbo2, rebotes2);\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tif(game.estorbo3.getBounds().intersects(getBounds())){\r\n\t\t\tasignarVelocidad(game.estorbo3, rebotes3);\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "private void begin(){\n for(int i = 0; i < height; i++){ //y\n for(int j = 0; j < width; j++){ //x\n for(int k = 0; k < ids.length; k++){\n if(m.getTileids()[j][i].equals(ids[k])){\n map[j][i] = Handler.memory.getTiles()[k];\n //Handler.debug(\"is tile null: \" + (Handler.memory.getTiles()[k] == null));\n \n k = ids.length;\n }else if(k == (ids.length - 1)){\n Handler.debug(\"something went wrong\", true);\n\n }\n }\n }\n }\n mt.setCleared(clear);\n mt.setMap(map);\n \n \n }", "@Test\n public void testCheckPlaceValideVerticale() throws BateauxMembreInvalide, BateauxStartPointInvalide {\n Player p = new Player();\n List<Player> pL = new ArrayList<>();\n pL.add(p);\n Jeux j = new Jeux(ModeDeJeux.MONO_JOUEUR, pL);\n Grille g = new Grille(15, 15, j, p);\n\n Place[] pl = j.checkPlace(\"A6\", g, 5, false);\n Place[] att = new Place[]{new Place(\"A6\"), new Place(\"A7\"), new Place(\"A8\"), new Place(\"A9\"), new Place(\"A10\")};\n\n assertArrayEquals(\"Les places ne sont pas bonne\", att, pl);\n }", "VolaTile(int x, int y, boolean isSurfaced, Set<VirtualZone> aWatchers, Zone zon) {\n/* 291 */ this.tilex = x;\n/* 292 */ this.tiley = y;\n/* 293 */ this.surfaced = isSurfaced;\n/* 294 */ this.zone = zon;\n/* 295 */ this.watchers = aWatchers;\n/* 296 */ checkTransition();\n/* 297 */ checkIsLava();\n/* */ }", "private boolean canDamoneBlackSaveOtherLeftBehind(Damone damone) {\n boolean trovataPedinaNeraDaProteggere = false;\n boolean trovataPedinaBiancaAttaccante = false;\n\n //verifico che la casella x+1 e y+1 sia libera\n if(!controllaSeCasellaLibera(damone.getX() - 1, damone.getY() - 1))\n return false;\n\n //verifico che nella casella x+2 e y+2 ci sia una pedina nera da proteggere\n //e che non vengo mangiato\n for (Pedina pedinaBianca : arrayPedineBianche) {\n if ((damone.getX() - 2) == pedinaBianca.getX()\n && (damone.getY() - 2) == pedinaBianca.getY()) \n return false;\n else if(damone.getX() == pedinaBianca.getX()\n && damone.getY() - 2 == pedinaBianca.getY()\n && damone.getX() - 2 >= 0\n && controllaSeCasellaLibera(damone.getX() - 2, damone.getY()))\n return false;\n else if(pedinaBianca instanceof Damone\n && damone.getX() - 2 == pedinaBianca.getX()\n && damone.getY() == pedinaBianca.getY()\n && damone.getY() - 2 >= 0\n && controllaSeCasellaLibera(damone.getX(), damone.getY() - 2))\n return false;\n }\n\n for (Pedina pedinaNera : arrayPedineNere) {\n if ((damone.getX() - 2) == pedinaNera.getX()\n && (damone.getY() - 2) == pedinaNera.getY()) {\n trovataPedinaNeraDaProteggere = true;\n }\n }\n\n //verifico che nella casella x+3 e y+3 ci sia una pedina bianca che possa mangiare la pedina nera compagna\n for (Pedina pedinaNera : arrayPedineNere) {\n if ((damone.getX() - 3) == pedinaNera.getX()\n && (damone.getY() - 3) == pedinaNera.getY()) {\n return false;\n }\n }\n \n for (Pedina pedinaBianca : arrayPedineBianche) {\n if ((damone.getX() - 3) == pedinaBianca.getX()\n && (damone.getY() - 3) == pedinaBianca.getY()) {\n trovataPedinaBiancaAttaccante = true;\n }\n }\n\n if (trovataPedinaNeraDaProteggere && trovataPedinaBiancaAttaccante) {\n if(damone.getX() - 1 < 0 || damone.getY() - 1 < 0)\n return false;\n else {\n damone.setXTemp(damone.getX() - 1);\n damone.setYTemp(damone.getY() - 1);\n return true;\n }\n } else \n return false;\n }", "private void checkRep() {\n for (Ball ball : balls) {\n assert ball.getPosition().d1 >= 0\n && ball.getPosition().d1 <= WIDTH - 1;\n assert ball.getPosition().d2 >= 0\n && ball.getPosition().d2 <= HEIGHT - 1;\n }\n for (Gadget gadget : gadgets) {\n assert gadget.getPosition().d1 >= 0\n && gadget.getPosition().d1 <= WIDTH - 1;\n assert gadget.getPosition().d2 >= 0\n && gadget.getPosition().d2 <= HEIGHT - 1;\n }\n\n assert GRAVITY > 0 && MU2 > 0 && MU > 0;\n }", "private boolean checkCoverage(int quartile) {\n int numLandTiles = 0;\n int numTiles = (int)(Math.pow((MAP_LENGTH/2),2));\n if (quartile == 0) { //First (top left) quartile\n for (int i = 0; i < MAP_LENGTH/2; i++) {\n for (int j = 0; j < MAP_LENGTH/2; j++) {\n if (tileMap[i][j] != null) {\n if (tileMap[i][j].getTerrain() instanceof Grass) {\n numLandTiles++; //Count the number of land tiles in the quartile\n }\n }\n }\n }\n } else if (quartile == 1) { //Second (top right) quartile\n for (int i = 0; i < MAP_LENGTH/2; i++) {\n for (int j = MAP_LENGTH/2; j < MAP_LENGTH; j++) {\n if (tileMap[i][j] != null) {\n if (tileMap[i][j].getTerrain() instanceof Grass) {\n numLandTiles++; //Count the number of land tiles in the quartile\n }\n }\n }\n }\n } else if (quartile == 2) { //Third (bottom left) quartile\n for (int i = MAP_LENGTH/2; i < MAP_LENGTH; i++) {\n for (int j = 0; j < MAP_LENGTH/2; j++) {\n if (tileMap[i][j] != null) {\n if (tileMap[i][j].getTerrain() instanceof Grass) {\n numLandTiles++; //Count the number of land tiles in the quartile\n }\n }\n }\n }\n } else { //Fourth (bottom right) quartile\n for (int i = MAP_LENGTH/2; i < MAP_LENGTH; i++) {\n for (int j = MAP_LENGTH/2; j < MAP_LENGTH; j++) {\n if (tileMap[i][j] != null) {\n if (tileMap[i][j].getTerrain() instanceof Grass) {\n numLandTiles++; //Count the number of land tiles in the quartile\n }\n }\n }\n }\n }\n if (numLandTiles > 0.4*numTiles) { //Check the ratio of the tiles\n return true; \n } else {\n return false;\n }\n }", "public abstract void createEmptyMap(Game game, boolean[][] landMap);", "public abstract void createEmptyMap(Game game, boolean[][] landMap);", "boolean canPlaceCity(VertexLocation vertLoc);", "private void checkStench(int top, int left, int bottom, int right) {\n\t\tif (top > height - 1) {\n\t\t\ttop = height - 1;\n\t\t}\n\t\tif (bottom < 0) {\n\t\t\tbottom = 0;\n\t\t}\n\t\tif (left < 0) {\n\t\t\tleft = 0;\n\t\t}\n\t\tif (right > width - 1) {\n\t\t\tright = width - 1;\n\t\t}\n\t\tboolean stench = false;\n\t\tfor (int i = bottom; i <= top; i++) {\n\t\t\tfor (int j = left; j <= right; j++) {\n\t\t\t\tstench = false;\n\t\t\t\tif (i > 0) {\n\t\t\t\t\tSet s = (Set) agentPositions.get(new Point(i - 1, j));\n\t\t\t\t\tfor (Iterator it = s.iterator(); it.hasNext(); ) {\n\t\t\t\t\t\tif (it.next() instanceof Wumpus) {\n\t\t\t\t\t\t\tstench = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (i < width - 1) {\n\t\t\t\t\tSet s = (Set) agentPositions.get(new Point(i + 1, j));\n\t\t\t\t\tfor (Iterator it = s.iterator(); it.hasNext(); ) {\n\t\t\t\t\t\tif (it.next() instanceof Wumpus) {\n\t\t\t\t\t\t\tstench = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (j > 0) {\n\t\t\t\t\tSet s = (Set) agentPositions.get(new Point(i, j - 1));\n\t\t\t\t\tfor (Iterator it = s.iterator(); it.hasNext(); ) {\n\t\t\t\t\t\tif (it.next() instanceof Wumpus) {\n\t\t\t\t\t\t\tstench = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (j < height - 1) {\n\t\t\t\t\tSet s = (Set) agentPositions.get(new Point(i, j + 1));\n\t\t\t\t\tfor (Iterator it = s.iterator(); it.hasNext(); ) {\n\t\t\t\t\t\tif (it.next() instanceof Wumpus) {\n\t\t\t\t\t\t\tstench = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (stench) {\n\t\t\t\t\tif (!checkImage(i, j, STENCH_FILE)) {\n\t\t\t\t\t\taddImage(i, j, STENCH_FILE, STENCH_FILE);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif (checkImage(i, j, STENCH_FILE)) {\n\t\t\t\t\t\tremoveImage(i, j, STENCH_FILE);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void partieEnCour(int niveau){\n\t\t\t\n\t\t\tif(niveau<=0){\n\t\t\t\tSystem.out.println(\"Quel niveau ?\");\n\t\t\t\tniveau=lire.nextInt();\n\t\t\t}\n\t\t\tthis.niveau=niveau;\n\t\t\tthis.terrainDeLaPartie=this.EnsembleNiveau.listeMap.get(niveau-1);\n\t\t\tSystem.out.println(terrainDeLaPartie.getCave().toString());\n\t\t\tthis.terrainDeLaPartie.afficherMap();\n\t\t\tboolean heroEnVie=true;\n\t\t\twhile(sortieNonAtteint()&& tempsNonEcoule() && heroEnVie==true){\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tfor(ObjetVivant eleViv:terrainDeLaPartie.getPersonnageSurLeTerrain()){\n\t\t\t\t\ttry{\n\t\t\t\t\t\tif(eleViv.estEnVie()){\n\t\t\t\t\t\t\teleViv.seDeplacer(terrainDeLaPartie);\n\t\t\t\t\t\t}\n\t\t\t\t\t}catch(DeplacementInvalideException e){\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tfor(ObjetNonVivant eleNonViv:terrainDeLaPartie.getObjetSurLeTerrain()){\n\t\t\t\t\teleNonViv.tomber(terrainDeLaPartie);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\tquiEstMort();\n\t\t\t\tquiEstDetruit();\n\t\t\t\tthis.terrainDeLaPartie.getObjetSurLeTerrain().addAll(this.terrainDeLaPartie.reinitialisationObjet());\n\t\t\t\tthis.terrainDeLaPartie.afficherMap();\n\t\t\t\tCave a=this.terrainDeLaPartie.getCave();\n\t\t\t\ta.setCaveTime(a.getCaveTime()-1);\t\t\t\n\t\t\t\tSystem.out.println(this.terrainDeLaPartie.getPersonnageSurLeTerrain().size()-1+\" enemie\");\n\t\t\t\tSystem.out.println(this.terrainDeLaPartie.getObjetSurLeTerrain().size()-1+\" objet\");\n\t\t\t\t\n\t\t\t\theroEnVie=heroEncoreDansListe(this.terrainDeLaPartie.getPersonnageSurLeTerrain());\n\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tif(heroEnVie && !sortieNonAtteint()){\n\t\t\t\tthis.terrainDeLaPartie=this.EnsembleNiveau.listeMap.get(niveau);\n\t\t\t\tpartieEnCour(niveau+1);\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"Vous avez perdu ! Voulez vous rejouer ?\");\n\t\t\t\tSystem.out.println(\"1:rejouer\");\n\t\t\t\tSystem.out.println(\"2:quitter \");\n\t\t\t\tint rep=lire.nextInt();\n\t\t\t\tif(rep==1){\n\t\t\t\t\tFile f=new File(\"BD01plus.bdcff\");\n\t\t\t\t\tEnsembleNiveau=new Univers();\n\t\t\t\t\tLireFichier.lire(f, EnsembleNiveau);\n\t\t\t\t\tthis.partieEnCour(niveau);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}", "boolean testFinalScene(Tester t) {\n return t.checkExpect(new NBullets(10).makeAFinalScene(),\n new WorldScene(500, 300).placeImageXY(\n new TextImage(\"Game over! You destroyed 0 ships.\", 25, Color.BLACK), 250, 150))\n && t.checkExpect(new NBullets(this.mt, this.los1, 0, 42, 0).makeAFinalScene(),\n new WorldScene(500, 300).placeImageXY(\n new TextImage(\"Game over! You destroyed 42 ships.\", 25, Color.BLACK), 250, 150));\n }", "public boolean checkWallCollision(){\r\n\t\tint x;\r\n\t\tint y;\r\n\t\t\r\n\t\tif(pacman.direction.equals(\"up\")){\r\n\t\t\tx = (int) Math.ceil((pacman.xpos-interval)/(interval+0.00));\r\n\t\t\ty = (int) Math.ceil((pacman.ypos-interval)/(interval+0.00));\r\n\t\t\t//System.out.println(\"x:\"+x+\" y:\"+y);\r\n\t\t\tif(y > 0){\r\n\t\t\t\tif(colours[x][y-1].equals(\"0,255,0\")){\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if(pacman.direction.equals(\"down\")){\r\n\t\t\tx = (pacman.xpos-interval)/interval;\r\n\t\t\ty = (pacman.ypos-interval)/interval;\r\n\t\t\t//System.out.println(\"x:\"+x+\" y:\"+y);\r\n\t\t\tif(y < colours[0].length-1){\r\n\t\t\t\tif(colours[x][y+1].equals(\"0,255,0\")){\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if(pacman.direction.equals(\"left\")){\r\n\t\t\tx = (int) Math.ceil((pacman.xpos-interval)/(interval+0.00));\r\n\t\t\ty = (int) Math.ceil((pacman.ypos-interval)/(interval+0.00));\r\n\t\t\t//System.out.println(\"x:\"+x+\" y:\"+y);\r\n\t\t\tif(x > 0){\r\n\t\t\t\tif(colours[x-1][y].equals(\"0,255,0\")){\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if(pacman.direction.equals(\"right\")){\r\n\t\t\tx = (pacman.xpos-interval)/interval;\r\n\t\t\ty = (pacman.ypos-interval)/interval;\r\n\t\t\t//System.out.println(\"x:\"+x+\" y:\"+y);\r\n\t\t\tif(x < colours.length-1){\r\n\t\t\t\tif(colours[x+1][y].equals(\"0,255,0\")){\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\t\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "private boolean sortieNonAtteint(){\n\t\t\t//return this.terrainDeLaPartie.getTerrain()[this.terrainDeLaPartie.getAbSortie()][this.terrainDeLaPartie.getOrdSortie()]!='R' ;\t\t\t\n\t\t\tif(this.terrainDeLaPartie.getTerrain()[terrainDeLaPartie.getAbSortie()][terrainDeLaPartie.getOrdSortie()]=='R'){\n\t\t\t\tSystem.out.println(\"###################################### SORTIE #################################\");\n\t\t\t}\n\t\t\treturn this.terrainDeLaPartie.getTerrain()[terrainDeLaPartie.getAbSortie()][terrainDeLaPartie.getOrdSortie()]!='R';\n\t\t}", "@Test\n public void testRucheBrisee2() {\n System.out.println(\"=============================================\");\n System.out.println(\"Test rucheBrisee2 ===========================>\\n\");\n\n HexaPoint orig = new HexaPoint(0, 0, 0);\n Plateau instance = new Plateau();\n Reine reine = new Reine(new JoueurHumain(instance, true, NumJoueur.JOUEUR1));\n instance.ajoutCasesVoisines(orig);\n instance.ajoutCasesVoisines(orig.voisinBas());\n\n System.out.println(\"test sur une ruche vide :\");\n assertFalse(instance.rucheBrisee2(null));\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test sur une ruche avec un insecte :\");\n instance.ajoutInsecte(reine, orig);\n assertFalse(instance.rucheBrisee2(null));\n assertFalse(instance.rucheBrisee2(reine.getEmplacement()));\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test sur une ruche avec deux insectes collés :\");\n instance.ajoutInsecte(reine, orig.voisinBas());\n //assertFalse(instance.rucheBrisee2(null));\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test sur une ruche avec deux insectes non collés :\");\n instance.deleteInsecte(reine, orig.voisinBas());\n instance.ajoutInsecte(reine, orig.voisinBas().voisinBas());\n //assertTrue(instance.rucheBrisee2(null));\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test sur une ruche avec trois insectes en ligne :\");\n instance = new Plateau();\n instance.ajoutCasesVoisines(orig);\n instance.ajoutCasesVoisines(orig.voisinBas());\n instance.ajoutInsecte(reine, orig);\n instance.ajoutInsecte(reine, orig.voisinBas());\n instance.ajoutInsecte(reine, orig.voisinBas().voisinBas());\n //assertFalse(instance.rucheBrisee2(null));\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test sur une ruche avec trois insectes en ligne ghost :\");\n instance = new Plateau();\n instance.ajoutCasesVoisines(orig);\n instance.ajoutCasesVoisines(orig.voisinBas());\n instance.ajoutInsecte(reine, orig);\n instance.ajoutInsecte(reine, orig.voisinBas());\n instance.ajoutInsecte(reine, orig.voisinBas().voisinBas());\n assertTrue(instance.rucheBrisee2(new Case(orig.voisinBas())));\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test sur une ruche casé avec trois insectes :\");\n instance = new Plateau();\n instance.ajoutCasesVoisines(orig);\n instance.ajoutCasesVoisines(orig.voisinBas());\n instance.ajoutInsecte(reine, orig);\n instance.ajoutInsecte(reine, orig.voisinBas().voisinDroiteBas());\n instance.ajoutInsecte(reine, orig.voisinBas().voisinBas().voisinGaucheBas());\n //assertTrue(instance.rucheBrisee2(null));\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test sur une ruche avec 7 insectes (1 à l'origine et les 6 coins remplit) :\");\n instance = new Plateau();\n instance.ajoutCasesVoisines(orig);\n instance.ajoutCasesVoisines(orig.voisinBas());\n instance.ajoutInsecte(reine, orig);\n instance.ajoutInsecte(reine, orig.voisinBas());\n instance.ajoutInsecte(reine, orig.voisinDroiteBas());\n instance.ajoutInsecte(reine, orig.voisinDroiteHaut());\n instance.ajoutInsecte(reine, orig.voisinGaucheBas());\n instance.ajoutInsecte(reine, orig.voisinGaucheHaut());\n instance.ajoutInsecte(reine, orig.voisinHaut());\n //assertFalse(instance.rucheBrisee2(null));\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test sur une ruche casé avec 7 insectes :\");\n instance = new Plateau();\n instance.ajoutCasesVoisines(orig);\n instance.ajoutCasesVoisines(orig.voisinBas());\n instance.ajoutInsecte(reine, orig);\n instance.ajoutInsecte(reine, orig.voisinBas().voisinDroiteBas());\n instance.ajoutInsecte(reine, orig.voisinDroiteBas().voisinGaucheBas().voisinBas());\n instance.ajoutInsecte(reine, orig.voisinDroiteHaut().voisinHaut().voisinHaut());\n instance.ajoutInsecte(reine, orig.voisinGaucheBas().voisinGaucheBas().voisinBas().voisinBas());\n instance.ajoutInsecte(reine, orig.voisinGaucheHaut().voisinBas());\n instance.ajoutInsecte(reine, orig.voisinHaut());\n assertTrue(instance.rucheBrisee2(null));\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n }", "@Override\n\tpublic void canLand() {\n\t\tSystem.out.println(\"IF IM IN THE SKY, I CANT LAND. BY THE OMNISSIAH\");\n\t}", "public void Verify () {\n boolean breaked = false;\n outerloop:\n for (int i = 0; i < numberOfRows; i++) {\n for (int j = 0; j < numberOfColumns; j++) {\n if (grid[i][j] == LASER_BEAM || grid[i][j] == X) {\n continue;\n } else if (grid[i][j] == EMPTY) {\n message = (\"Error verifying at: (\" + i + \", \" + j + \")\");\n lastVerifiedRow = i;\n lastVerifiedColumn = j;\n breaked = true;\n break outerloop;\n } else if (grid[i][j] == LASER) {\n //Check for other Lasers in the North direction\n int numberOfLasersTop = 0;\n for (int k = i - 1; k >= 0; k--) {\n if (grid[k][j] == X || grid[k][j] == ZERO ||\n grid[k][j] == ONE || grid[k][j] == TWO ||\n grid[k][j] == THREE || grid[k][j] == FOUR ) {\n break;\n } else if (grid[k][j] == LASER){\n numberOfLasersTop ++;\n }\n }\n if (numberOfLasersTop != 0 ){\n message = (\"Error verifying at: (\" + i + \", \" + j + \")\");\n lastVerifiedRow = i;\n lastVerifiedColumn = j;\n breaked = true;\n break outerloop;\n }\n //Check for other Lasers in the South direction\n int numberOfLasersBottom = 0;\n for (int k = i + 1; k < numberOfRows ; k++) {\n if (grid[k][j] == X || grid[k][j] == ZERO ||\n grid[k][j] == ONE || grid[k][j] == TWO ||\n grid[k][j] == THREE || grid[k][j] == FOUR ) {\n break;\n } else if (grid[k][j] == LASER){\n numberOfLasersBottom ++;\n }\n }\n if (numberOfLasersBottom != 0 ){\n message = (\"Error verifying at: (\" + i + \", \" + j + \")\");\n lastVerifiedRow = i;\n lastVerifiedColumn = j;\n breaked = true;\n break outerloop;\n }\n //Check for other Lasers in the West direction\n int numberOfLasersLeft = 0;\n for (int k = j - 1; k >= 0; k--) {\n if (grid[i][k] == X || grid[i][k] == ZERO ||\n grid[i][k] == ONE || grid[i][k] == TWO ||\n grid[i][k] == THREE || grid[i][k] == FOUR ) {\n break;\n } else if (grid[i][k] == LASER){\n numberOfLasersLeft ++;\n }\n }\n if (numberOfLasersLeft != 0 ){\n message = (\"Error verifying at: (\" + i + \", \" + j + \")\");\n lastVerifiedRow = i;\n lastVerifiedColumn = j;\n breaked = true;\n break outerloop;\n }\n //Check for other Lasers in the East direction\n int numberOfLasersRight = 0;\n for (int k = j + 1; k < numberOfColumns; k++) {\n if (grid[i][k] == X || grid[i][k] == ZERO ||\n grid[i][k] == ONE || grid[i][k] == TWO ||\n grid[i][k] == THREE || grid[i][k] == FOUR ) {\n break;\n } else if (grid[i][k] == LASER){\n numberOfLasersRight ++;\n }\n }\n if (numberOfLasersRight != 0 ){\n message = (\"Error verifying at: (\" + i + \", \" + j + \")\");\n lastVerifiedRow = i;\n lastVerifiedColumn = j;\n breaked = true;\n break outerloop;\n }\n } else if (grid[i][j] == ZERO || grid[i][j] == ONE || grid[i][j] == TWO ||\n grid[i][j] == THREE || grid[i][j] == FOUR) {\n // Check how many lasers near every pillar and if the number given does not\n // match, print error.\n int numberOfLasersNearby = numberOfLasersNearby(i,j);\n if (grid[i][j] == ZERO) {\n if (numberOfLasersNearby != 0) {\n message = (\"Error verifying at: (\" + i + \", \" + j + \")\");\n lastVerifiedRow = i;\n lastVerifiedColumn = j;\n breaked = true;\n break outerloop;\n }\n }\n if (grid[i][j] == ONE) {\n if (numberOfLasersNearby != 1) {\n message = (\"Error verifying at: (\" + i + \", \" + j + \")\");\n lastVerifiedRow = i;\n lastVerifiedColumn = j;\n breaked = true;\n break outerloop;\n }\n }\n if (grid[i][j] == TWO) {\n if (numberOfLasersNearby != 2) {\n message = (\"Error verifying at: (\" + i + \", \" + j + \")\");\n lastVerifiedRow = i;\n lastVerifiedColumn = j;\n breaked = true;\n break outerloop;\n }\n }\n if (grid[i][j] == THREE) {\n if (numberOfLasersNearby != 3) {\n message = (\"Error verifying at: (\" + i + \", \" + j + \")\");\n lastVerifiedRow = i;\n lastVerifiedColumn = j;\n breaked = true;\n break outerloop;\n }\n }\n if (grid[i][j] == FOUR) {\n if (numberOfLasersNearby != 4) {\n message = (\"Error verifying at: (\" + i + \", \" + j + \")\");\n lastVerifiedRow = i;\n lastVerifiedColumn = j;\n breaked = true;\n break outerloop;\n }\n }\n }\n }\n\n }\n if (!breaked) {\n message = (\"Safe is fully verified!\");\n }\n }", "public void deplacementMinimap(){\n\t\t\tboolean changement=false;//ce boolean me sert a savoir si les coordonnees ont change.\n\t\t\tif(mX>=3 || mX<=-3){//si l'utilisateur est alle a droite ou a gauche avec la souris (3 fois d'affiler)\n\t\t\t\tdebutX+=mX*5; //on bouge la minimap de 15 cases vers la droite ou la gauche.\n\t\t\t\tchangement=true;//on dit qu'on a change les coordonnees\n\t\t\t}\n\t\t\tif(mY>=3 || mY<=-3){//si l'utilisateur est alle en haut ou en bas avec la souris (3 fois d'affiler)\n\t\t\t\tdebutY+=mY*5; //on bouge la minimap de 15 cases vers en haut ou en bas.\n\t\t\t\tchangement=true;//on dit qu'on a change les coordonnees\n\t\t\t}\n\t\t\tif (changement){//s'il y a eu des changements.\n\t\t\t\tmY=0;//Je reInitialise mY,mX.\n\t\t\t\tmX=0;\n\t\t\t\tpositionMinimap();//je repositionne ma minimap\n\t\t\t\tposition();//je repositionne mon rectangle qui indique l'endroit que je zone.\n\t\t\t\tfenetreterrain.zoneZoom(zoom, positionX/widthCase+debutX, positionY/heightCase+debutY);//et je met a jour ma FenetreTerrain.\n\t\t\t}\n\t\t}", "public void generateTerrain()\n\t{\n\t\tint rand;\n\t\tint starting=(int)(blocksWide*0.45);//Choose the first grass block\n\t\tblocksTall=(int)(blocksWide*0.6);\n\t\tfor(int i=0;i<blocksWide;i++)\n\t\t{\n\t\t\t//Determine whether the next block will go up a level, down a level or stay the same (55% chance of staying the same)\n\t\t\trand=ThreadLocalRandom.current().nextInt(0,3);\t\n\t\t\tif(rand!=0)\n\t\t\t{\n\t\t\t\trand=ThreadLocalRandom.current().nextInt(-1,2);\n\t\t\t}\n\t\t\tif(starting+rand<blocksTall-2 && starting+rand>4)\t//Make sure new position isn't too close to the top or bottom\n\t\t\t{\n\t\t\t\tstarting+=rand;\n\t\t\t}\n\t\t\tgrassy[i]=starting;\n\t\t\tgrassT[i]=ThreadLocalRandom.current().nextInt(0,3);\n\t\t\t//Generate a platform to allow for collision detection\n\t\t\tplatforms.add(new Platform((double)i/blocksWide,(double)starting/blocksTall,1.0/blocksWide,1.0/blocksWide));\n\t\t}\n\t\tplatforms.add(new Platform(0.0,0.0,0.0,0.0));\n\t}", "public boolean checkWithFragmentingWarheadRocketJump ()\n {\n Map<Square, List<Player>> squarePlayerListMap = checkRocketJump();\n List<Player> playerList;\n\n for (Square squareIterate : squarePlayerListMap.keySet())\n {\n\n for (Player playerIterate : squarePlayerListMap.get(squareIterate))\n {\n playerList = new ArrayList<>();\n\n playerList.addAll(playerIterate.getSquare().getPlayerList());\n playerList.remove(player);\n\n if (playerList.size()>1)\n return true;\n\n }\n }\n\n return false;\n }", "private boolean canDamoneBlackSaveOtherRightBehind(Damone damone) {\n boolean trovataPedinaNeraDaProteggere = false;\n boolean trovataPedinaBiancaAttaccante = false;\n\n //verifico che la casella x+1 e y+1 sia libera\n if(!controllaSeCasellaLibera(damone.getX() - 1, damone.getY() + 1))\n return false;\n\n //verifico che nella casella x-2 e y+2 ci sia una pedina nera da proteggere\n //e che non vengo mangiato\n for (Pedina pedinaBianca : arrayPedineBianche) {\n if ((damone.getX() - 2) == pedinaBianca.getX()\n && (damone.getY() + 2) == pedinaBianca.getY())\n return false;\n else if(damone.getX() == pedinaBianca.getX()\n && damone.getY() + 2 == pedinaBianca.getY()\n && damone.getX() - 2 >= 0\n && controllaSeCasellaLibera(damone.getX() - 2, damone.getY()))\n return false;\n else if(pedinaBianca instanceof Damone\n && damone.getX() - 2 == pedinaBianca.getX()\n && damone.getY() == pedinaBianca.getY()\n && damone.getY() + 2 <= 7\n && controllaSeCasellaLibera(damone.getX(), damone.getY() + 2))\n return false; \n }\n\n for (Pedina pedinaNera : arrayPedineNere) {\n if ((damone.getX() - 2) == pedinaNera.getX()\n && (damone.getY() + 2) == pedinaNera.getY()) {\n trovataPedinaNeraDaProteggere = true;\n }\n }\n\n //verifico che nella casella x+3 e y+3 ci sia una pedina bianca che possa mangiare la pedina nera compagna\n for (Pedina pedinaNera : arrayPedineNere) {\n if ((damone.getX() - 3) == pedinaNera.getX()\n && (damone.getY() + 3) == pedinaNera.getY()) {\n return false;\n }\n }\n \n for (Pedina pedinaBianca : arrayPedineBianche) {\n if ((damone.getX() - 3) == pedinaBianca.getX()\n && (damone.getY() + 3) == pedinaBianca.getY()) {\n trovataPedinaBiancaAttaccante = true;\n }\n }\n\n if (trovataPedinaNeraDaProteggere && trovataPedinaBiancaAttaccante) {\n if(damone.getX() - 1 < 0 || damone.getY() + 1 > 7)\n return false;\n else {\n damone.setXTemp(damone.getX() - 1);\n damone.setYTemp(damone.getY() + 1);\n return true;\n }\n } else \n return false;\n }", "void evoluer()\n {\n int taille = grille.length;\n int nbVivantes = 0;\n for(int i=-1; i<2; i++)\n {\n int xx = ((x+i)+taille)%taille; // si x+i=-1, xx=taille-1. si x+i=taille, xx=0\n for(int j=-1; j<2; j++)\n {\n if (i==0 && j==0) continue;\n int yy = ((y+j)+taille)%taille;\n if (grille[xx][yy].vivante) nbVivantes++;\n }\n }\n if (nbVivantes<=1 || nbVivantes>=4) {vientDeChanger = (vivante==true); vivante = false;}\n if (nbVivantes==3) {vientDeChanger = (vivante==false); vivante = true;}\n }", "public boolean sameAsGold() {\n\t\tif (this.level == null) {\n\t\t\treturn false;\n\t\t}\n\n\t\tArrayList<Gold> goldObjects = this.level.getGoldObjects();\n\n\t\tfor (int i = 0; i < goldObjects.size(); i++) {\n\t\t\tif (this.tilePositionX == goldObjects.get(i).getPositionX()\n\t\t\t\t\t&& this.tilePositionY == goldObjects.get(i).getPositionY()) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "@Override\n public boolean hasPossibleCapture(final Coordinate destination) {\n\n Coordinate coordinate = this.getCoordinate();\n int row = coordinate.getRow();\n int col = coordinate.getCol();\n\n //\n //\n ////\n int tempRow1 = row - 2;\n int tempCol1 = col - 1;\n Coordinate tempCoordinate1 = new Coordinate(tempRow1, tempCol1);\n if (destination.equals(tempCoordinate1)) {\n return true;\n }\n\n ////\n //\n //\n int tempRow2 = row + 2;\n int tempCol2 = col - 1;\n Coordinate tempCoordinate2 = new Coordinate(tempRow2, tempCol2);\n if (destination.equals(tempCoordinate2)) {\n return true;\n }\n\n //////\n //\n int tempRow3 = row - 1;\n int tempCol3 = col - 2;\n Coordinate tempCoordinate3 = new Coordinate(tempRow3, tempCol3);\n if (destination.equals(tempCoordinate3)) {\n return true;\n }\n\n ///////\n //\n int tempRow4 = row - 1;\n int tempCol4 = col + 2;\n Coordinate tempCoordinate4 = new Coordinate(tempRow4, tempCol4);\n if (destination.equals(tempCoordinate4)) {\n return true;\n }\n\n ////\n //\n //\n int tempRow5 = row + 2;\n int tempCol5 = col + 1;\n Coordinate tempCoordinate5 = new Coordinate(tempRow5, tempCol5);\n if (destination.equals(tempCoordinate5)) {\n return true;\n }\n\n //\n //\n ////\n int tempRow6 = row - 2;\n int tempCol6 = col + 1;\n Coordinate tempCoordinate6 = new Coordinate(tempRow6, tempCol6);\n if (destination.equals(tempCoordinate6)) {\n return true;\n }\n\n //\n //////\n int tempRow7 = row + 1;\n int tempCol7 = col - 2;\n Coordinate tempCoordinate7 = new Coordinate(tempRow7, tempCol7);\n if (destination.equals(tempCoordinate7)) {\n return true;\n }\n\n //\n //////\n int tempRow8 = row + 1;\n int tempCol8 = col + 2;\n Coordinate tempCoordinate8 = new Coordinate(tempRow8, tempCol8);\n return destination.equals(tempCoordinate8);\n }", "public boolean win(){\r\n for(int row = 0; row<map.length; row++){\r\n for(int col = 0; col<map[0].length; col++){\r\n if(map[row][col].getSafe() == false && (map[row][col].getVisual().equals(square) || map[row][col].getVisual().equals(bomb))){\r\n return false;\r\n }\r\n if(map[row][col].getSafe() == true && map[row][col].getVisual().equals(flag)){\r\n return false;\r\n }\r\n }\r\n }\r\n return true;\r\n }", "boolean isGoodLocation(World world, int x, int y, int z);", "private boolean canMove() {\n\t\tif (System.currentTimeMillis() - lastTrunTime < 300) {// move time is\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// 300ms before\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// last move\n\t\t\treturn false;\n\t\t}\n\t\tboolean status = false;\n\t\tif(stage == 1){\n\t\t\tmap = GameView.map;\n\t\t}else if(stage == 2){\n\t\t\tmap = GameViewStage2.map;\n\t\t}else {\n\t\t\tmap = GameViewStage3.map;\n\t\t}\n\t\tif (direction == UP) {// when tank moves up\n\t\t\tif (centerPoint.getY() - speed >= 0) {\n\t\t\t\tif (map[(centerPoint.getY() - speed) / UNIT][centerPoint\n\t\t\t\t\t\t.getX() / UNIT] == 0\n\t\t\t\t\t\t&& map[(centerPoint.getY() - speed) / UNIT][(centerPoint\n\t\t\t\t\t\t\t\t.getX() + UNIT) / UNIT] == 0\n\t\t\t\t\t\t&& map[(centerPoint.getY() - speed) / UNIT][(centerPoint\n\t\t\t\t\t\t\t\t.getX() + 2 * UNIT) / UNIT] == 0) {\n\t\t\t\t\tstatus = true;\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (direction == DOWN) {\n\t\t\tif (centerPoint.getY() + tankBmp.getHeight() + speed < screenHeight) {\n\t\t\t\tif (map[(centerPoint.getY() + 2 * UNIT + speed) / UNIT][centerPoint\n\t\t\t\t\t\t.getX() / UNIT] == 0\n\t\t\t\t\t\t&& map[(centerPoint.getY() + 2 * UNIT + speed)\n\t\t\t\t\t\t\t\t/ UNIT][(centerPoint.getX() + UNIT) / UNIT] == 0\n\t\t\t\t\t\t&& map[(centerPoint.getY() + 2 * UNIT + speed)\n\t\t\t\t\t\t\t\t/ UNIT][(centerPoint.getX() + 2 * UNIT) / UNIT] == 0) {\n\t\t\t\tstatus = true;\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (direction == LEFT) {\n\n\t\t\tif (centerPoint.getX() - speed >= 0) {\n\t\t\t\tif (map[centerPoint.getY() / UNIT][(centerPoint.getX() - speed)\n\t\t\t\t\t\t/ UNIT] == 0\n\t\t\t\t\t\t&& map[(centerPoint.getY() + UNIT) / UNIT][(centerPoint\n\t\t\t\t\t\t\t\t.getX() - speed) / UNIT] == 0\n\t\t\t\t\t\t&& map[(centerPoint.getY() + 2 * UNIT) / UNIT][(centerPoint\n\t\t\t\t\t\t\t\t.getX() - speed) / UNIT] == 0) {\n\t\t\t\t\tstatus = true;\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (direction == RIGHT) {\n\t\t\tif (centerPoint.getX() + tankBmp.getWidth() + speed < screenWidth) {\n\t\t\t\tif (map[centerPoint.getY() / UNIT][(centerPoint.getX()\n\t\t\t\t\t\t+ 2 * UNIT + speed)\n\t\t\t\t\t\t/ UNIT] == 0\n\t\t\t\t\t\t&& map[(centerPoint.getY() + UNIT) / UNIT][(centerPoint\n\t\t\t\t\t\t\t\t.getX() + 2 * UNIT + speed)\n\t\t\t\t\t\t\t\t/ UNIT] == 0\n\t\t\t\t\t\t&& map[(centerPoint.getY() + 2 * UNIT) / UNIT][(centerPoint\n\t\t\t\t\t\t\t\t.getX() + 2 * UNIT + speed)\n\t\t\t\t\t\t\t\t/ UNIT] == 0) {\n\t\t\t\t\tstatus = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (status)\n\t\t\tlastTrunTime = System.currentTimeMillis();\n\t\treturn status;\n\t}", "@Test\n public void test3IsCreatable()throws Exception{\n\n //Zone\n Position pos = new Position(0,0);\n generateLevel.landOn(pos,BlockType.PATH.toString());\n\n NormalDefender nd = new NormalDefender(generateLevel.getZoneList().\n get(0).getPos(),generateLevel.getAttackersList());\n if(generateLevel.isCreatable(nd)){\n generateLevel.getDefendersList().push(nd);\n }\n\n NormalDefender nd2 = new NormalDefender(generateLevel.getZoneList().\n get(0).getPos(),generateLevel.getAttackersList());\n assertFalse(generateLevel.isCreatable(nd2));\n }", "public boolean NoEnPantalla() {\n\t\treturn x + xmapa + anchura < 0 ||\n\t\t\t\tx + xmapa - anchura > PanelJuego.ANCHURA ||\n\t\t\t\ty + ymapa + altura < 0 ||\n\t\t\t\ty + ymapa - altura > PanelJuego.ALTURA;\n\t}", "public void checkBlock(BlockPos debug1) {\n/* 29 */ if (this.blockEngine != null) {\n/* 30 */ this.blockEngine.checkBlock(debug1);\n/* */ }\n/* 32 */ if (this.skyEngine != null) {\n/* 33 */ this.skyEngine.checkBlock(debug1);\n/* */ }\n/* */ }", "public boolean saveMap()\n {\n // This should probably write all the data to a temporary file, then copy it over the old one at the end\n try {\n \n StringBuffer\t\tbuf = new StringBuffer();\n FileWriter\t\t\tmapWriter;\n \n if (!file.canWrite())\n {\n ErrorHandler.displayError(\"Could not write to map file. Maybe it's locked.\", ErrorHandler.ERR_SAVE_FAIL);\n return false;\n }\n \n file.createNewFile();\n mapWriter = new FileWriter(file);\n \n // Write the size in x, y\n buf.append(map.getSizeX());\n buf.append(\" \");\n buf.append(map.getSizeY());\n buf.append(\"\\n\");\n \n // Write all of the data\n for (int y = 0; y < map.getSizeY(); y++)\n {\n for (int x = 0; x < map.getSizeX(); x++)\n {\n buf.append(MUXHex.terrainForId(map.getHexTerrain(x, y)));\n buf.append(map.getHexAbsoluteElevation(x, y));\n }\n \n buf.append(\"\\n\");\n }\n \n // Now write it to the file\n mapWriter.write(buf.toString());\n mapWriter.close();\n \n // Musta been okay...\n map.setChanged(false);\n \n // Change our name\n setTitle(file.getName() + sizeString());\n \n return true;\n \n } catch (Exception e) {\n ErrorHandler.displayError(\"Could not write data to map file:\\n\" + e, ErrorHandler.ERR_SAVE_FAIL);\n return false;\n }\n }", "private void tryARender() {\n \t\tif (Minecraft.theMinecraft.thePlayer == null)\n \t\t\treturn;\n \t\ttry {\n \t\t\tif (MinimapConfig.getInstance().isEnabled() && map.isDirty(Minecraft.theMinecraft.thePlayer.posX, Minecraft.theMinecraft.thePlayer.posZ)) {\n \t\t\t\tmapCalc();\n \t\t\t\tmap.timer = 1;\n \t\t\t}\n \t\t} catch (RuntimeException e) {\n \t\t\tthrow e;\n \t\t} finally {\n \t\t\tmap.timer++;\n \t\t}\n \t}", "private boolean isSolvable() {\n\t\tshort permutations = 0; // the number of incorrect orderings of tiles\n\t\tshort currentTileViewLocationScore;\n\t\tshort subsequentTileViewLocationScore;\n\n\t\t// Start at the first tile\n\t\tfor (int i = 0; i < tiles.size() - 2; i++) {\n\t\t\tTile tile = tiles.get(i);\n\n\t\t\t// Determine the tile's location value\n\t\t\tcurrentTileViewLocationScore = computeLocationValue(tile\n\t\t\t\t\t.getCorrectLocation());\n\n\t\t\t// Compare the tile's location score to all of the tiles that\n\t\t\t// follow it\n\t\t\tfor (int j = i + 1; j < tiles.size() - 1; j++) {\n\t\t\t\tTile tSub = tiles.get(j);\n\n\t\t\t\tsubsequentTileViewLocationScore = computeLocationValue(tSub\n\t\t\t\t\t\t.getCorrectLocation());\n\n\t\t\t\t// If a tile is found to be out of order, increment the number\n\t\t\t\t// of permutations.\n\t\t\t\tif (currentTileViewLocationScore > subsequentTileViewLocationScore) {\n\t\t\t\t\tpermutations++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// return whether number of permutations is even\n\t\treturn permutations % 2 == 0;\n\t}", "void check(){\n if(!data.up.isEmpty()){\r\n if(data.floor == data.up.get(0)){\r\n data.up.remove(0);\r\n data.state = 0;\r\n data.statePrv = 1;\r\n data.isMoving = false;\r\n }\r\n }\r\n if(!data.down.isEmpty()){\r\n if(data.floor == data.down.get(0)){\r\n data.down.remove(0);\r\n data.state = 0;\r\n data.statePrv = -1;\r\n data.isMoving = false;\r\n }\r\n }\r\n }", "public boolean generate(World paramaqu, Random paramRandom, BlockPosition paramdt)\r\n/* 12: */ {\r\n/* 13: 19 */ int i = paramRandom.nextInt(4) + 5;\r\n/* 14: 20 */ while (paramaqu.getBlock(paramdt.down()).getType().getMaterial() == Material.water) {\r\n/* 15: 21 */ paramdt = paramdt.down();\r\n/* 16: */ }\r\n/* 17: 24 */ int j = 1;\r\n/* 18: 25 */ if ((paramdt.getY() < 1) || (paramdt.getY() + i + 1 > 256)) {\r\n/* 19: 26 */ return false;\r\n/* 20: */ }\r\n/* 21: */ int n;\r\n/* 22: */ int i2;\r\n/* 23: 29 */ for (int k = paramdt.getY(); k <= paramdt.getY() + 1 + i; k++)\r\n/* 24: */ {\r\n/* 25: 30 */ int m = 1;\r\n/* 26: 31 */ if (k == paramdt.getY()) {\r\n/* 27: 32 */ m = 0;\r\n/* 28: */ }\r\n/* 29: 34 */ if (k >= paramdt.getY() + 1 + i - 2) {\r\n/* 30: 35 */ m = 3;\r\n/* 31: */ }\r\n/* 32: 37 */ for (n = paramdt.getX() - m; (n <= paramdt.getX() + m) && (j != 0); n++) {\r\n/* 33: 38 */ for (i2 = paramdt.getZ() - m; (i2 <= paramdt.getZ() + m) && (j != 0); i2++) {\r\n/* 34: 39 */ if ((k >= 0) && (k < 256))\r\n/* 35: */ {\r\n/* 36: 40 */ BlockType localatr3 = paramaqu.getBlock(new BlockPosition(n, k, i2)).getType();\r\n/* 37: 41 */ if ((localatr3.getMaterial() != Material.air) && (localatr3.getMaterial() != Material.leaves)) {\r\n/* 38: 42 */ if ((localatr3 == BlockList.water) || (localatr3 == BlockList.flowingWater))\r\n/* 39: */ {\r\n/* 40: 43 */ if (k > paramdt.getY()) {\r\n/* 41: 44 */ j = 0;\r\n/* 42: */ }\r\n/* 43: */ }\r\n/* 44: */ else {\r\n/* 45: 47 */ j = 0;\r\n/* 46: */ }\r\n/* 47: */ }\r\n/* 48: */ }\r\n/* 49: */ else\r\n/* 50: */ {\r\n/* 51: 51 */ j = 0;\r\n/* 52: */ }\r\n/* 53: */ }\r\n/* 54: */ }\r\n/* 55: */ }\r\n/* 56: 57 */ if (j == 0) {\r\n/* 57: 58 */ return false;\r\n/* 58: */ }\r\n/* 59: 61 */ BlockType localatr1 = paramaqu.getBlock(paramdt.down()).getType();\r\n/* 60: 62 */ if (((localatr1 != BlockList.grass) && (localatr1 != BlockList.dirt)) || (paramdt.getY() >= 256 - i - 1)) {\r\n/* 61: 63 */ return false;\r\n/* 62: */ }\r\n/* 63: 66 */ makeDirt(paramaqu, paramdt.down());\r\n/* 64: */ int i3;\r\n/* 65: */ int i4;\r\n/* 66: */ BlockPosition localdt3;\r\n/* 67: 68 */ for (int m = paramdt.getY() - 3 + i; m <= paramdt.getY() + i; m++)\r\n/* 68: */ {\r\n/* 69: 69 */ n = m - (paramdt.getY() + i);\r\n/* 70: 70 */ i2 = 2 - n / 2;\r\n/* 71: 71 */ for (i3 = paramdt.getX() - i2; i3 <= paramdt.getX() + i2; i3++)\r\n/* 72: */ {\r\n/* 73: 72 */ i4 = i3 - paramdt.getX();\r\n/* 74: 73 */ for (int i5 = paramdt.getZ() - i2; i5 <= paramdt.getZ() + i2; i5++)\r\n/* 75: */ {\r\n/* 76: 74 */ int i6 = i5 - paramdt.getZ();\r\n/* 77: 75 */ if ((Math.abs(i4) != i2) || (Math.abs(i6) != i2) || ((paramRandom.nextInt(2) != 0) && (n != 0)))\r\n/* 78: */ {\r\n/* 79: 78 */ localdt3 = new BlockPosition(i3, m, i5);\r\n/* 80: 79 */ if (!paramaqu.getBlock(localdt3).getType().m()) {\r\n/* 81: 80 */ setBlock(paramaqu, localdt3, BlockList.leaves);\r\n/* 82: */ }\r\n/* 83: */ }\r\n/* 84: */ }\r\n/* 85: */ }\r\n/* 86: */ }\r\n/* 87: 86 */ for (int m = 0; m < i; m++)\r\n/* 88: */ {\r\n/* 89: 87 */ BlockType localatr2 = paramaqu.getBlock(paramdt.up(m)).getType();\r\n/* 90: 88 */ if ((localatr2.getMaterial() == Material.air) || (localatr2.getMaterial() == Material.leaves) || (localatr2 == BlockList.flowingWater) || (localatr2 == BlockList.water)) {\r\n/* 91: 89 */ setBlock(paramaqu, paramdt.up(m), BlockList.log);\r\n/* 92: */ }\r\n/* 93: */ }\r\n/* 94: 93 */ for (int m = paramdt.getY() - 3 + i; m <= paramdt.getY() + i; m++)\r\n/* 95: */ {\r\n/* 96: 94 */ int i1 = m - (paramdt.getY() + i);\r\n/* 97: 95 */ i2 = 2 - i1 / 2;\r\n/* 98: 96 */ for (i3 = paramdt.getX() - i2; i3 <= paramdt.getX() + i2; i3++) {\r\n/* 99: 97 */ for (i4 = paramdt.getZ() - i2; i4 <= paramdt.getZ() + i2; i4++)\r\n/* 100: */ {\r\n/* 101: 98 */ BlockPosition localdt1 = new BlockPosition(i3, m, i4);\r\n/* 102:100 */ if (paramaqu.getBlock(localdt1).getType().getMaterial() == Material.leaves)\r\n/* 103: */ {\r\n/* 104:101 */ BlockPosition localdt2 = localdt1.west();\r\n/* 105:102 */ localdt3 = localdt1.east();\r\n/* 106:103 */ BlockPosition localdt4 = localdt1.north();\r\n/* 107:104 */ BlockPosition localdt5 = localdt1.south();\r\n/* 108:106 */ if ((paramRandom.nextInt(4) == 0) && (paramaqu.getBlock(localdt2).getType().getMaterial() == Material.air)) {\r\n/* 109:107 */ a(paramaqu, localdt2, bbv.S);\r\n/* 110: */ }\r\n/* 111:109 */ if ((paramRandom.nextInt(4) == 0) && (paramaqu.getBlock(localdt3).getType().getMaterial() == Material.air)) {\r\n/* 112:110 */ a(paramaqu, localdt3, bbv.T);\r\n/* 113: */ }\r\n/* 114:112 */ if ((paramRandom.nextInt(4) == 0) && (paramaqu.getBlock(localdt4).getType().getMaterial() == Material.air)) {\r\n/* 115:113 */ a(paramaqu, localdt4, bbv.Q);\r\n/* 116: */ }\r\n/* 117:115 */ if ((paramRandom.nextInt(4) == 0) && (paramaqu.getBlock(localdt5).getType().getMaterial() == Material.air)) {\r\n/* 118:116 */ a(paramaqu, localdt5, bbv.R);\r\n/* 119: */ }\r\n/* 120: */ }\r\n/* 121: */ }\r\n/* 122: */ }\r\n/* 123: */ }\r\n/* 124:122 */ return true;\r\n/* 125: */ }", "public void topLeftVertWhiteCapture()\n\t{\n\t\tData d=new Data();\n\t\td.set(19,12);\n\t\td.set(1,23);\n\t\tArrayList<Coordinate> test_arr=d.pieceLost(23);\n\t\tassertTrue(1==test_arr.get(0).getX() && 1==test_arr.get(0).getY());\n\n\t}", "private void recheckTileCollisions() {\n\t\tint len = regTiles.size();\n\t\tfor(int i = 0; i < len; i ++) {\n\t\t\tRegTile tile = regTiles.get(i);\n\t\t\t\n\t\t\ttry{\n\t\t\t\tif(OverlapTester.overlapRectangles(player.bounds, tile.bounds)) {\n\t\t\t\t\t//check-x cols and fix\n\t\t\t\t\tif(player.position.x > tile.position.x - tile.bounds.width/2 && player.position.x < tile.position.x + tile.bounds.width/2 && player.position.y < tile.position.y + tile.bounds.height/2 && player.position.y > tile.position.y - tile.bounds.height/2) {\n\t\t\t\t\t\tif(player.position.x < tile.position.x) {\n\t\t\t\t\t\t\tplayer.position.x = tile.position.x - 1;\n\t\t\t\t\t\t} else if(player.position.x > tile.position.x) {\n\t\t\t\t\t\t\tplayer.position.x = tile.position.x + 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t} \n\t\t\t\t}\n\t\t\t} catch (Exception e) {}\n\t\t}\n\t}", "@Test\n public void testRucheBrisee() {\n System.out.println(\"=============================================\");\n System.out.println(\"Test rucheBrisee ===========================>\\n\");\n\n HexaPoint orig = new HexaPoint(0, 0, 0);\n Plateau instance = new Plateau();\n Reine reine = new Reine(new JoueurHumain(instance, true, NumJoueur.JOUEUR1));\n\n instance.ajoutCasesVoisines(orig);\n\n System.out.println(\"test sur une ruche vide :\");\n assertFalse(instance.rucheBrisee(null, null));\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test sur une ruche avec un insecte :\");\n instance.ajoutInsecte(reine, orig);\n assertFalse(instance.rucheBrisee(null, null));\n //assertFalse(instance.rucheBrisee(reine));\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test sur une ruche avec deux insectes collés :\");\n instance.ajoutInsecte(reine, orig.voisinBas());\n assertFalse(instance.rucheBrisee(null, null));\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test sur une ruche avec deux insectes non collés :\");\n instance.ajoutCasesVoisines(orig.voisinBas());\n instance.deleteInsecte(reine, orig.voisinBas());\n instance.ajoutInsecte(reine, orig.voisinBas().voisinBas());\n assertTrue(instance.rucheBrisee(null, null));\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test sur une ruche avec trois insectes en ligne :\");\n instance = new Plateau();\n instance.ajoutCasesVoisines(orig);\n instance.ajoutCasesVoisines(orig.voisinBas());\n instance.ajoutInsecte(reine, orig);\n instance.ajoutInsecte(reine, orig.voisinBas());\n instance.ajoutInsecte(reine, orig.voisinBas().voisinBas());\n assertFalse(instance.rucheBrisee(null, null));\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test sur une ruche avec trois insectes en ligne ghost et casedest :\");\n instance = new Plateau();\n instance.ajoutCasesVoisines(orig);\n instance.ajoutCasesVoisines(orig.voisinBas());\n instance.ajoutInsecte(reine, orig);\n instance.ajoutInsecte(reine, orig.voisinBas());\n instance.ajoutInsecte(reine, orig.voisinBas().voisinBas());\n assertTrue(instance.rucheBrisee(new Case(orig.voisinBas()), new Case(orig.voisinBas().voisinBas().voisinBas())));\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test sur une ruche casé avec trois insectes :\");\n instance = new Plateau();\n instance.ajoutCasesVoisines(orig);\n instance.ajoutCasesVoisines(orig.voisinBas());\n instance.ajoutInsecte(reine, orig);\n instance.ajoutInsecte(reine, orig.voisinBas().voisinDroiteBas());\n instance.ajoutInsecte(reine, orig.voisinBas().voisinBas().voisinGaucheBas());\n assertTrue(instance.rucheBrisee(null, null));\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test sur une ruche avec 7 insectes (1 à l'origine et les 6 coins remplit) :\");\n instance = new Plateau();\n instance.ajoutCasesVoisines(orig);\n instance.ajoutCasesVoisines(orig.voisinBas());\n instance.ajoutInsecte(reine, orig);\n instance.ajoutInsecte(reine, orig.voisinBas());\n instance.ajoutInsecte(reine, orig.voisinDroiteBas());\n instance.ajoutInsecte(reine, orig.voisinDroiteHaut());\n instance.ajoutInsecte(reine, orig.voisinGaucheBas());\n instance.ajoutInsecte(reine, orig.voisinGaucheHaut());\n instance.ajoutInsecte(reine, orig.voisinHaut());\n assertFalse(instance.rucheBrisee(null, null));\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test sur une ruche casé avec 7 insectes :\");\n instance = new Plateau();\n instance.ajoutCasesVoisines(orig);\n instance.ajoutCasesVoisines(orig.voisinBas());\n instance.ajoutInsecte(reine, orig);\n instance.ajoutInsecte(reine, orig.voisinBas().voisinDroiteBas());\n instance.ajoutInsecte(reine, orig.voisinDroiteBas().voisinGaucheBas().voisinBas());\n instance.ajoutInsecte(reine, orig.voisinDroiteHaut().voisinHaut().voisinHaut());\n instance.ajoutInsecte(reine, orig.voisinGaucheBas().voisinGaucheBas().voisinBas().voisinBas());\n instance.ajoutInsecte(reine, orig.voisinGaucheHaut().voisinBas());\n instance.ajoutInsecte(reine, orig.voisinHaut());\n assertTrue(instance.rucheBrisee(null, null));\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n }", "@Test\n public void isOccupiedAndGetBlockReturnTheSameAnswer() {\n Tetromino tetromino = Tetromino.Z;\n Direction direction = Direction.DOWN;\n\n for (int y = 0; y < tetromino.height; y++) {\n for (int x = 0; x < tetromino.width; x++) {\n String coordinates = String.format(\"Tetromino Z[DOWN] block (x,y) = (%d,%d)\", x, y);\n\n boolean isOccupied = tetromino.isOccupied(direction, x, y);\n Block block = tetromino.getBlock(direction, x, y);\n\n assertEquals(coordinates, isOccupied, (block != null));\n }\n }\n }", "@Test\n public void TEST_UR_MAP_LENGTH() {\n Object[] objects = loadSave(\"emptyRiver\");\n Map map = (Map) objects[0];\n Player player = (Player) objects[1];\n AI[] opponents = (AI[]) objects[2];\n boolean[] NO_KEYS_PRESSED = {false, false, false, false};\n\n for (int i = 0; i < 60*30; i++) {\n map.stepWorld(player, opponents);\n player.updatePlayer(NO_KEYS_PRESSED, Gdx.graphics.getDeltaTime());\n }\n assertFalse(player.hasFinished());\n\n for (int i = 0; i < 60*30; i++) {\n map.stepWorld(player, opponents);\n player.updatePlayer(NO_KEYS_PRESSED, Gdx.graphics.getDeltaTime());\n }\n assertTrue(player.hasFinished());\n }", "@Test\n\tpublic void kingNotOnThroneWhitePieceUpBlackCapture()\n\t{\n\t\tData d=new Data();\n\t\td.set(8,36);\n\t\td.set(6,28);\n\t\td.set(0,43);\n\t\td.set(18,19);\n\t\td.set(5,50);\n\t\td.set(13,39);\n\t\tArrayList<Coordinate> test_arr=d.pieceLost(39);\n\t\tassertTrue(5==test_arr.get(0).getX() && 4==test_arr.get(0).getY());\n\t}", "public boolean IsDisappearing(){\r\n for (int i = 2; i < 10; i++) {\r\n ArrayList<Block> blocks = blockList.GetBlockList(i);//get all blocks\r\n int[] indexI = new int[blocks.size()], indexJ = new int[blocks.size()];\r\n //put i and j of All blocks with same color on i&j arrays\r\n for (int j = 0; j < indexI.length; j++) {\r\n indexI[j] = blocks.get(j).getI();\r\n indexJ[j] = blocks.get(j).getJ();\r\n }\r\n //check if 2 block beside each other if yes return true\r\n if (CheckBoom(indexI, indexJ))\r\n return true;\r\n else if (blocks.size() == 3) {//else check if there is another block have same color if yes swap on i,j array\r\n int temp = indexI[2];\r\n indexI[2] = indexI[1];\r\n indexI[1] = temp;\r\n temp = indexJ[2];\r\n indexJ[2] = indexJ[1];\r\n indexJ[1] = temp;\r\n if (CheckBoom(indexI, indexJ))//check\r\n return true;\r\n else {//else check from another side\r\n temp = indexI[0];\r\n indexI[0] = indexI[2];\r\n indexI[2] = temp;\r\n temp = indexJ[0];\r\n indexJ[0] = indexJ[2];\r\n indexJ[2] = temp;\r\n if (CheckBoom(indexI, indexJ))//check\r\n return true;\r\n }\r\n }\r\n }\r\n //if not return true so its false\r\n return false;\r\n }", "@Override\r\n\tpublic boolean checkIfOnTraineeship() {\n\t\treturn false;\r\n\t}", "@Test(timeout = 4000)\n public void test117() throws Throwable {\n CatalogTexture catalogTexture0 = new CatalogTexture(\"\", (Content) null, (-826), 0.0F);\n HomeTexture homeTexture0 = new HomeTexture(catalogTexture0);\n HomeEnvironment homeEnvironment0 = new HomeEnvironment((-3047), homeTexture0, 949, homeTexture0, (-3047), 949);\n homeEnvironment0.getDrawingMode();\n assertEquals(300, homeEnvironment0.getPhotoHeight());\n assertEquals(949.0F, homeEnvironment0.getWallsAlpha(), 0.01F);\n assertEquals(25, homeEnvironment0.getVideoFrameRate());\n assertEquals(400, homeEnvironment0.getPhotoWidth());\n assertEquals(320, homeEnvironment0.getVideoWidth());\n assertEquals((-3047), homeEnvironment0.getLightColor());\n assertEquals(949, homeEnvironment0.getSkyColor());\n assertEquals((-3047), homeEnvironment0.getGroundColor());\n assertEquals(13684944, homeEnvironment0.getCeillingLightColor());\n assertTrue(homeEnvironment0.isObserverCameraElevationAdjusted());\n }", "public void buildMap() {\n // CUBES ENGINE INITIALIZATION MOVED TO APPSTATE METHOD\n // Here we init cubes engine\n CubesTestAssets.registerBlocks();\n CubesSettings blockSettings = CubesTestAssets.getSettings(this.app);\n blockSettings.setBlockSize(5);\n //When blockSize = 5, global coords should be multiplied by 3 \n this.blockScale = 3.0f;\n this.halfBlockStep = 0.5f;\n \n testTerrain = new BlockTerrainControl(CubesTestAssets.getSettings(this.app), new Vector3Int(4, 1, 4));\n testNode = new Node();\n int wallHeight = 3;\n //testTerrain.setBlockArea(new Vector3Int(0, 0, 0), new Vector3Int(32, 1, 64), CubesTestAssets.BLOCK_STONE);\n this.testTerrain.setBlockArea( new Vector3Int(3,0,43), new Vector3Int(10,1,10), CubesTestAssets.BLOCK_STONE); // Zone 1 Floor\n this.testTerrain.setBlockArea( new Vector3Int(3,1,43), new Vector3Int(10,wallHeight,1), CubesTestAssets.BLOCK_WOOD); // South Wall\n this.testTerrain.setBlockArea( new Vector3Int(3,1,52), new Vector3Int(10,wallHeight,1), CubesTestAssets.BLOCK_WOOD); // North Wall\n this.testTerrain.setBlockArea( new Vector3Int(3,1,43), new Vector3Int(1,wallHeight,10), CubesTestAssets.BLOCK_WOOD); // West Wall\n this.testTerrain.setBlockArea( new Vector3Int(12,1,43), new Vector3Int(1,wallHeight,10), CubesTestAssets.BLOCK_WOOD); // East Wall\n \n this.testTerrain.removeBlockArea( new Vector3Int(12,1,46), new Vector3Int(1,wallHeight,4)); // Door A\n \n this.testTerrain.setBlockArea( new Vector3Int(12,0,45), new Vector3Int(13,1,6), CubesTestAssets.BLOCK_STONE); // Zone 2 Floor A\n this.testTerrain.setBlockArea( new Vector3Int(12,1,45), new Vector3Int(8,wallHeight,1), CubesTestAssets.BLOCK_WOOD); // South Wall\n this.testTerrain.setBlockArea( new Vector3Int(12,1,50), new Vector3Int(13,wallHeight,1), CubesTestAssets.BLOCK_WOOD); // North Wall\n this.testTerrain.setBlockArea(new Vector3Int(19,0,42), new Vector3Int(6,1,3), CubesTestAssets.BLOCK_STONE); // Zone 2 Floor B\n this.testTerrain.setBlockArea( new Vector3Int(19,1,42), new Vector3Int(1,wallHeight,3), CubesTestAssets.BLOCK_WOOD); //\n this.testTerrain.setBlockArea( new Vector3Int(24,1,42), new Vector3Int(1,wallHeight,9), CubesTestAssets.BLOCK_WOOD); //\n \n this.testTerrain.setBlockArea( new Vector3Int(15,0,26), new Vector3Int(18,1,17), CubesTestAssets.BLOCK_STONE); // Zone 3 Floor\n this.testTerrain.setBlockArea( new Vector3Int(15,1,42), new Vector3Int(18,wallHeight,1), CubesTestAssets.BLOCK_WOOD); // South Wall\n this.testTerrain.setBlockArea( new Vector3Int(15,1,26), new Vector3Int(18,wallHeight,1), CubesTestAssets.BLOCK_WOOD); // North Wall\n this.testTerrain.setBlockArea( new Vector3Int(15,1,26), new Vector3Int(1,wallHeight,17), CubesTestAssets.BLOCK_WOOD); // West Wall\n this.testTerrain.setBlockArea( new Vector3Int(32,1,26), new Vector3Int(1,wallHeight,17), CubesTestAssets.BLOCK_WOOD); // East Wall\n \n this.testTerrain.removeBlockArea( new Vector3Int(20,1,42), new Vector3Int(4,wallHeight,1)); // Door B\n this.testTerrain.removeBlockArea( new Vector3Int(15,1,27), new Vector3Int(1,wallHeight,6)); // Door C\n \n this.testTerrain.setBlockArea( new Vector3Int(10,0,26), new Vector3Int(5,1,8), CubesTestAssets.BLOCK_STONE); // Zone 4 Floor A\n this.testTerrain.setBlockArea( new Vector3Int(10,1,26), new Vector3Int(5,wallHeight,1), CubesTestAssets.BLOCK_WOOD); // South Wall\n this.testTerrain.setBlockArea( new Vector3Int(3,0,18), new Vector3Int(8,1,16), CubesTestAssets.BLOCK_STONE); // Zone 4 Floor B\n this.testTerrain.setBlockArea( new Vector3Int(3,1,18), new Vector3Int(1,wallHeight,16), CubesTestAssets.BLOCK_WOOD); // East Wall\n this.testTerrain.setBlockArea( new Vector3Int(10,1,18), new Vector3Int(1,wallHeight,9), CubesTestAssets.BLOCK_WOOD); // West Wall\n this.testTerrain.setBlockArea( new Vector3Int(3,1,33), new Vector3Int(13,wallHeight,1), CubesTestAssets.BLOCK_WOOD); // North Wall\n \n this.testTerrain.setBlockArea( new Vector3Int(1,0,5), new Vector3Int(26,1,14), CubesTestAssets.BLOCK_STONE); // Zone 5\n this.testTerrain.setBlockArea( new Vector3Int(1,1,18), new Vector3Int(26,wallHeight,1), CubesTestAssets.BLOCK_WOOD); // South Wall\n this.testTerrain.setBlockArea( new Vector3Int(1,1,5), new Vector3Int(26,wallHeight,1), CubesTestAssets.BLOCK_WOOD); // North Wall\n this.testTerrain.setBlockArea( new Vector3Int(1,1,5), new Vector3Int(1,wallHeight,14), CubesTestAssets.BLOCK_WOOD); // West Wall\n this.testTerrain.setBlockArea( new Vector3Int(26,1,5), new Vector3Int(1,wallHeight,14), CubesTestAssets.BLOCK_WOOD); // East Wall\n \n this.testTerrain.removeBlockArea( new Vector3Int(4,1,18), new Vector3Int(6,wallHeight,1)); // Door E\n \n // Populate the world with spawn points\n this.initSpawnPoints();\n \n //Add voxel world/map to collisions\n testTerrain.addChunkListener(new BlockChunkListener(){\n @Override\n public void onSpatialUpdated(BlockChunkControl blockChunk){\n Geometry optimizedGeometry = blockChunk.getOptimizedGeometry_Opaque();\n phyTerrain = optimizedGeometry.getControl(RigidBodyControl.class);\n if(phyTerrain == null){\n phyTerrain = new RigidBodyControl(0);\n optimizedGeometry.addControl(phyTerrain);\n bulletAppState.getPhysicsSpace().add(phyTerrain);\n }\n phyTerrain.setCollisionShape(new MeshCollisionShape(optimizedGeometry.getMesh()));\n }\n });\n \n testNode.addControl(testTerrain);\n rootNode.attachChild(testNode);\n }", "@Test\r\n public void testIsSolved() {\r\n assertTrue(boardManager4.puzzleSolved());\r\n boardManager4.getBoard().swapTiles(0,0,0,1);\r\n assertFalse(boardManager4.puzzleSolved());\r\n }", "@Override\n\tpublic boolean vender(String placa) {\n\t\treturn false;\n\t}", "public boolean completed(){\n int count = 0;\n for(int Y=0; Y<size; Y++){\n for(int X=0; X<size; X++){\n if(tiles[X][Y] instanceof EindVeld){\n EindVeld tmp = (EindVeld)tiles[X][Y];\n if(tmp.hasDoos())\n count++;\n }\n }\n }\n \n if(eindVelden == count){\n System.out.println(\"DOOLHOF COMPLEET !!!\");\n return true;\n }else{\n return false;\n }\n }", "public void createWorldMap() {\r\n\t\tdo {\r\n\t\t\t//\t\t@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Recursive map generation method over here@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\r\n\t\t\t//Generation loop 1 *ADDS VEIN STARTS AND GRASS*\r\n\r\n\t\t\tfor (int i = 0; i < tileMap.length; i++) {\r\n\t\t\t\tfor (int j = 0; j < tileMap[i].length; j++) {\r\n\r\n\t\t\t\t\tif (Math.random()*10000>9999) { //randomly spawn a conore vein start\r\n\t\t\t\t\t\ttileMap[i][j] = new ConoreTile (conore, true);\r\n\t\t\t\t\t\tconoreCount++;\r\n\t\t\t\t\t}else if (Math.random()*10000>9999){\r\n\t\t\t\t\t\ttileMap[i][j] = new KannaiteTile(kanna, true);\r\n\t\t\t\t\t\tkannaiteCount++;\r\n\t\t\t\t\t}else if(Math.random()*10000>9999){\r\n\t\t\t\t\t\ttileMap[i][j] = new FuelTile(fuel, true);\r\n\t\t\t\t\t\tfuelCount++;\r\n\t\t\t\t\t}else if(Math.random()*10000>9999) {\r\n\t\t\t\t\t\ttileMap[i][j] = new ForestTile(forest, true);\r\n\t\t\t\t\t\tforestCount++;\r\n\t\t\t\t\t}else if(Math.random()*10000>9999){\r\n\t\t\t\t\t\ttileMap[i][j] = new OilTile(oil,true);\r\n\t\t\t\t\t}else if(Math.random()*10000>9997) {\r\n\t\t\t\t\t\ttileMap[i][j] = new MountainTile(mountain, true);\r\n\t\t\t\t\t}else {\r\n\t\t\t\t\t\ttileMap[i][j] = new GrassTile(dirt);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t} // End for loop \r\n\t\t\t} // End for loop\r\n\t\t\t//End generation loop 1\r\n\r\n\t\t\t//Generation loop 2 *EXPANDS ON THE VEINS*\r\n\t\t\tdo {\r\n\t\t\t\tif (conoreCount<6) {\r\n\t\t\t\t\ttileMap[(int)Math.random()*200][(int)Math.random()*200] = new ConoreTile (conore,true);\r\n\t\t\t\t\tconoreCount++;\r\n\t\t\t\t}else {\r\n\t\t\t\t\tconorePass = true;\r\n\t\t\t\t}\r\n\t\t\t\tif (kannaiteCount<6) {\r\n\t\t\t\t\ttileMap[(int)Math.random()*200][(int)Math.random()*200] = new KannaiteTile (kanna,true);\r\n\t\t\t\t\tkannaiteCount++;\r\n\t\t\t\t}else {\r\n\t\t\t\t\tkannaitePass = true;\r\n\t\t\t\t}\r\n\t\t\t\tif (fuelCount<6) {\r\n\t\t\t\t\ttileMap[(int)Math.random()*200][(int)Math.random()*200] = new FuelTile (fuel,true);\r\n\t\t\t\t\tfuelCount++;\r\n\t\t\t\t}else {\r\n\t\t\t\t\tfuelPass = true;\r\n\t\t\t\t}\r\n\t\t\t\tif (forestCount<6) {\r\n\t\t\t\t\ttileMap[(int)Math.random()*200][(int)Math.random()*200] = new ForestTile (forest,true);\r\n\t\t\t\t\tforestCount++;\r\n\t\t\t\t}else {\r\n\t\t\t\t\tforestPass = true;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tSystem.out.println(\"Conore: \" + conoreCount + \" - \" + conorePass);\r\n\t\t\t\tSystem.out.println(\"Kannaite: \" + kannaiteCount + \" - \" + kannaitePass);\r\n\t\t\t\tSystem.out.println(\"Fuel: \" + fuelCount + \" - \" + fuelPass);\r\n\t\t\t\tSystem.out.println(\"Forest: \" + forestCount + \" - \" + forestPass);\r\n\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t}while(!conorePass || !kannaitePass || !fuelPass || !forestPass);\r\n\r\n\t\t\tfor (int i = 0; i < tileMap.length; i++) {\r\n\t\t\t\tfor (int j = 0; j < tileMap[i].length; j++) {\r\n\t\t\t\t\tbuildConore(i,j);\r\n\t\t\t\t\tbuildKannaite(i,j);\r\n\t\t\t\t\tbuildFuel(i,j);\r\n\t\t\t\t\tbuildForest(i,j);\r\n\t\t\t\t}//End of for loop\r\n\t\t\t}//End of for loop\r\n\t\t\t//End of generation loop 2\r\n\r\n\t\t\t//Generation loop 3 *COUNT ORES*\r\n\t\t\tint loop3Count = 0;\r\n\t\t\tconorePass = false;\r\n\t\t\tkannaitePass = false;\r\n\t\t\tfuelPass = false;\r\n\t\t\tforestPass = false;\r\n\t\t\tdo {\r\n\t\t\t\tconoreCount = 0;\r\n\t\t\t\tkannaiteCount = 0;\r\n\t\t\t\tfuelCount = 0;\r\n\t\t\t\tforestCount = 0;\r\n\t\t\t\tfor (int i = 0; i < tileMap.length; i++) {\r\n\t\t\t\t\tfor (int j = 0; j < tileMap[i].length; j++) {\r\n\t\t\t\t\t\tif (tileMap[i][j] instanceof ConoreTile) {\r\n\t\t\t\t\t\t\tconoreCount++;\r\n\t\t\t\t\t\t}else if(tileMap[i][j] instanceof KannaiteTile) {\r\n\t\t\t\t\t\t\tkannaiteCount++;\r\n\t\t\t\t\t\t}else if(tileMap[i][j] instanceof FuelTile) {\r\n\t\t\t\t\t\t\tfuelCount++;\r\n\t\t\t\t\t\t}else if(tileMap[i][j] instanceof ForestTile) {\r\n\t\t\t\t\t\t\tforestCount++;\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\tfor (int i = 0; i < tileMap.length; i++) {\r\n\t\t\t\t\tfor (int j = 0; j < tileMap[i].length; j++) {\r\n\t\t\t\t\t\tif (conoreCount < 220) {\r\n\t\t\t\t\t\t\tbuildConore(i,j);\r\n\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\tconorePass = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (kannaiteCount < 220) {\r\n\t\t\t\t\t\t\tbuildKannaite(i,j);\r\n\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\tkannaitePass = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (fuelCount< 220) {\r\n\t\t\t\t\t\t\tbuildFuel(i,j);\r\n\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\tfuelPass = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (forestCount < 220) {\r\n\t\t\t\t\t\t\tbuildForest(i,j);\r\n\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\tforestPass = true;\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\tSystem.out.println(\"Conore: \" + conoreCount + \" - \" + conorePass);\r\n\t\t\t\tSystem.out.println(\"Kannaite: \" + kannaiteCount + \" - \" + kannaitePass);\r\n\t\t\t\tSystem.out.println(\"Fuel: \" + fuelCount + \" - \" + fuelPass);\r\n\t\t\t\tSystem.out.println(\"Forest: \" + forestCount + \" - \" + forestPass);\r\n\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t\tloop3Count++;\r\n\t\t\t\tif (loop3Count > 100) {\r\n\t\t\t\t\tSystem.out.println(\"map generation failed! restarting\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}while(!conorePass || !kannaitePass || !fuelPass || !forestPass);\r\n\t\t\t//END OF LOOP 3\r\n\r\n\t\t\t//LOOP 4: THE MOUNTAIN & OIL LOOP\r\n\t\t\tfor (int i = 0; i < tileMap.length; i++) {\r\n\t\t\t\tfor (int j = 0; j < tileMap[i].length; j++) {\r\n\t\t\t\t\tbuildMountain(i,j);\r\n\t\t\t\t\tbuildOil(i,j);\r\n\t\t\t\t}\r\n\t\t\t}//End of THE Mountain & OIL LOOP\r\n\r\n\t\t\t//ADD MINIMUM AMOUNT OF ORES\r\n\r\n\t\t\t//Generation Loop 5 *FINAL SETUP*\r\n\t\t\tfor (int i = 0; i < tileMap.length; i++) {\r\n\t\t\t\tfor (int j = 0; j < tileMap[i].length; j++) {\r\n\r\n\t\t\t\t\tif(i == 1 || j == 1 || i == tileMap.length-2 || j == tileMap[i].length-2) {\r\n\t\t\t\t\t\ttileMap[i][j] = new DesertTile(desert);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (i == 0 || j == 0 || i == tileMap.length-1 || j == tileMap[i].length-1) {\r\n\t\t\t\t\t\ttileMap[i][j] = new WaterTile(water);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}//End of for loop\r\n\t\t\t}//End of for loop\r\n\t\t\t//End of generation loop 5\r\n\t\t\t//mapToString();//TEST RUN\r\n\t\t} while(!conorePass || !kannaitePass || !fuelPass || !forestPass); // End createWorldMap method\r\n\t}", "@Override\n public boolean isFinished() {\n return swerve.getPose().getTranslation().distance(pointOfInterest) <= distance;\n }", "public boolean stupneProOriGraf(){\n\t\tint pom = 0;\n\t\tfor(int i = 0; i < vrchP.length;i++){\n\t\t\tif(vrchP[i].stupenVstup != vrchP[i].stupenVystup)\n\t\t\t\tpom++;\n\t\t}\n\t\tif(pom != 0)\n\t\t\treturn false;\n\t\t\n\t\treturn true;\n\t}", "public boolean tileReachable(float tx, float ty, AgentModel selectedAgent)\r\n/* 243: */ {\r\n/* 244:271 */ float x = selectedAgent.getX() - 0.5F;\r\n/* 245:272 */ float y = selectedAgent.getY() - 0.5F;\r\n/* 246:274 */ switch ((int)selectedAgent.getAngle())\r\n/* 247: */ {\r\n/* 248: */ case 0: \r\n/* 249:277 */ if ((y - 1.0F == ty) && (tx >= x - 1.0F) && (tx <= x + 1.0F)) {\r\n/* 250:279 */ return true;\r\n/* 251: */ }\r\n/* 252: */ break;\r\n/* 253: */ case 90: \r\n/* 254:283 */ if ((x + 1.0F == tx) && (ty >= y - 1.0F) && (ty <= y + 1.0F)) {\r\n/* 255:285 */ return true;\r\n/* 256: */ }\r\n/* 257: */ break;\r\n/* 258: */ case 180: \r\n/* 259:289 */ if ((y + 1.0F == ty) && (tx >= x - 1.0F) && (tx <= x + 1.0F)) {\r\n/* 260:291 */ return true;\r\n/* 261: */ }\r\n/* 262: */ break;\r\n/* 263: */ case 270: \r\n/* 264:295 */ if ((x - 1.0F == tx) && (ty >= y - 1.0F) && (ty <= y + 1.0F)) {\r\n/* 265:298 */ return true;\r\n/* 266: */ }\r\n/* 267: */ break;\r\n/* 268: */ }\r\n/* 269:303 */ return false;\r\n/* 270: */ }", "public void VehiclePositionIsFinal() {\n\t\tInteger idVehicle ;\n\t\tdouble lat;\n\t\tdouble lon;\n\t\tVehicle vehicle;\n\ttry {\n\t\tVehicleIntervention vehicleIntervention = VehicleIntervention.getInstance();\n\t\tif( ! vehicleIntervention.listIntervention.isEmpty()) {\n\t\t\t//parcourir toutes les interventions\n\t\t\t for( InterventionDto intervention: vehicleIntervention.listIntervention) {\n\t\t\t\t idVehicle = intervention.getVehicle().getId();\n\t\t\t\t lat = intervention.getFireLat();\n\t\t\t\t lon = intervention.getFireLon();\n\t\t\t\t vehicle = getVehicleById(idVehicle);\nSystem.out.println(\"vehicle:\" +vehicle.getId()+ \" at \"+vehicle.getLat() +\":\"+vehicle.getLon());\n \n\t\t\t\t //si le vehicule arrive a proximite et l'intensite du fire est nulle \n\t\t\t\t if( Math.abs(vehicle.getLat() - lat)<1e-3 \n\t\t\t\t\t\t && Math.abs(vehicle.getLon() - lon)<1e-3\n\t\t\t\t\t\t &&isFireOut(lat,lon) ) {\n\t\t\t\t\t //supprimer le vehicule de la liste\n\t\t\t\t\t vehicleIntervention.listIntervention.remove(intervention);\n\t\t\t\t\t //changer l'etat du vehicule\n\t\t\t\t\t Vehicle getvehicle = vRepository.findById(idVehicle).get();\n\t\t\t\t\t getvehicle.setIntervention(false);\n\t\t\t\t\t vRepository.save(getvehicle);\n\t\t\t\t\t \nSystem.out.println(\"Fire:\" + \" at \"+lat +\":\"+lon+\" is out thanks to vehicle: \"+idVehicle+\" Intervention:\"+getvehicle.isIntervention());\n\t\t\t\t }\n\t\t\t \t}\n\t\t }\n\t}\n\t\tcatch(Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t}", "boolean hasGeoTargets();", "public boolean isClearingMines();", "@Test\n public void testIsSolved() {\n setUpCorrect();\n assertTrue(boardManager.puzzleSolved());\n swapFirstTwoTiles();\n assertFalse(boardManager.puzzleSolved());\n }", "private boolean quickVerify(Location loc)\n {\n //quickly check if 2 blocks above this is clear\n Block oneAbove = loc.getBlock();\n Block twoAbove = oneAbove.getRelative(BlockFace.UP, 1);\n return oneAbove.getType().equals(Material.AIR) && twoAbove.getType().equals(Material.AIR);\n }", "private void sterben()\n {\n lebendig = false;\n if(position != null) {\n feld.raeumen(position);\n position = null;\n feld = null;\n }\n }", "@Override\n\tpublic void checkeoDeBateria() {\n\n\t}" ]
[ "0.67157185", "0.6526112", "0.637653", "0.62449485", "0.62042594", "0.61600447", "0.5952476", "0.58632505", "0.58615965", "0.585828", "0.58440024", "0.57924026", "0.57398224", "0.5732406", "0.5709325", "0.5692342", "0.5685724", "0.5672054", "0.566784", "0.5658531", "0.5651509", "0.5607706", "0.559955", "0.55940384", "0.5584741", "0.5577481", "0.5576567", "0.5558606", "0.55319685", "0.552712", "0.5519147", "0.55152833", "0.5514201", "0.55140215", "0.5508644", "0.55085313", "0.55044943", "0.5497241", "0.5474688", "0.5467177", "0.54630256", "0.54618275", "0.5459516", "0.54587036", "0.5454017", "0.54519457", "0.54463845", "0.54312176", "0.5430763", "0.5430763", "0.5421207", "0.5408804", "0.5403462", "0.53916585", "0.5386267", "0.53840154", "0.53818834", "0.5370296", "0.536554", "0.5362961", "0.5357934", "0.5348812", "0.5341826", "0.53321797", "0.53198195", "0.5318084", "0.5316736", "0.53124684", "0.53085244", "0.53060544", "0.5301499", "0.5299899", "0.5296491", "0.52958196", "0.529547", "0.5287145", "0.5281444", "0.5276799", "0.5274098", "0.52725893", "0.52721834", "0.5271874", "0.52645886", "0.52636486", "0.5258741", "0.52558696", "0.52556336", "0.5249809", "0.52494985", "0.52471054", "0.5245577", "0.52407885", "0.5240536", "0.52365446", "0.52353257", "0.52338743", "0.5225841", "0.5221696", "0.522143", "0.521892", "0.5216989" ]
0.0
-1
simulate sync call via async messaging
public static void doClientMessageSend() { final String correlationId = "ABC123"; Message toSend = new Message("query message to server", correlationId); MessagingSystemInfo messagingSystemInfo = oneAgentSDK.createMessagingSystemInfo("myCreativeMessagingSystem", "theOnlyQueue", MessageDestinationType.QUEUE, ChannelType.TCP_IP, "localhost:4711"); // sending the request: { OutgoingMessageTracer outgoingMessageTracer = oneAgentSDK.traceOutgoingMessage(messagingSystemInfo); outgoingMessageTracer.start(); try { // transport the Dynatrace tag along with the message to allow the outgoing message tracer to be linked // with the message processing tracer on the receiving side toSend.setHeaderField(OneAgentSDK.DYNATRACE_MESSAGE_PROPERTYNAME, outgoingMessageTracer.getDynatraceStringTag()); theQueue.send(toSend); outgoingMessageTracer.setVendorMessageId(toSend.getMessageId()); // optional payload outgoingMessageTracer.setCorrelationId(toSend.correlationId); } catch (Exception e) { outgoingMessageTracer.error(e.getMessage()); } finally { outgoingMessageTracer.end(); } } // waiting for server response message: { IncomingMessageReceiveTracer receivingMessageTracer = oneAgentSDK.traceIncomingMessageReceive(messagingSystemInfo); receivingMessageTracer.start(); try { Message answer = theQueue.receive(correlationId); IncomingMessageProcessTracer processMessageTracer = oneAgentSDK.traceIncomingMessageProcess(messagingSystemInfo); // retrieve Dynatrace tag created using the outgoing message tracer to link both sides together processMessageTracer.setDynatraceStringTag(answer.getHeaderField(OneAgentSDK.DYNATRACE_MESSAGE_PROPERTYNAME)); processMessageTracer.setVendorMessageId(answer.msgId); processMessageTracer.setCorrelationId(answer.correlationId); processMessageTracer.start(); try { // handle answer message in sync way ... } catch (Exception e) { processMessageTracer.error(e.getMessage()); } finally { processMessageTracer.end(); } } catch (Exception e) { receivingMessageTracer.error(e.getMessage()); } finally { receivingMessageTracer.end(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void callSync() {\n\n }", "@DSSink({DSSinkKind.SYNCHRONIZATION_DATA})\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:59:45.544 -0500\", hash_original_method = \"42BD69B2114459AD691B3AEBDAE73546\", hash_generated_method = \"C285A4D23EAB85D82915D70E1F66F84C\")\n \npublic Message sendMessageSynchronously(int what) {\n Message msg = Message.obtain();\n msg.what = what;\n Message resultMsg = sendMessageSynchronously(msg);\n return resultMsg;\n }", "@DSSink({DSSinkKind.SYNCHRONIZATION_DATA})\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:59:45.550 -0500\", hash_original_method = \"EEAA69B320108852E46A6304535CC9F5\", hash_generated_method = \"D642B9F06D082255CC2F6570E4A84B40\")\n \npublic Message sendMessageSynchronously(int what, int arg1, int arg2, Object obj) {\n Message msg = Message.obtain();\n msg.what = what;\n msg.arg1 = arg1;\n msg.arg2 = arg2;\n msg.obj = obj;\n Message resultMsg = sendMessageSynchronously(msg);\n return resultMsg;\n }", "@DSSink({DSSinkKind.SYNCHRONIZATION_DATA})\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:59:45.548 -0500\", hash_original_method = \"AFDADB0B0E37C71FB8D4BE31CA39F990\", hash_generated_method = \"B6827FF2C6A650BBE4692173D7372E8C\")\n \npublic Message sendMessageSynchronously(int what, int arg1, int arg2) {\n Message msg = Message.obtain();\n msg.what = what;\n msg.arg1 = arg1;\n msg.arg2 = arg2;\n Message resultMsg = sendMessageSynchronously(msg);\n return resultMsg;\n }", "@DSSink({DSSinkKind.SYNCHRONIZATION_DATA})\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:59:45.552 -0500\", hash_original_method = \"35A5E39A8A1820326BDEA32FA9EDD100\", hash_generated_method = \"CE016FA9F8D335C8879BF83223FA7CD6\")\n \npublic Message sendMessageSynchronously(int what, Object obj) {\n Message msg = Message.obtain();\n msg.what = what;\n msg.obj = obj;\n Message resultMsg = sendMessageSynchronously(msg);\n return resultMsg;\n }", "@DSSink({DSSinkKind.SYNCHRONIZATION_DATA})\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:59:45.541 -0500\", hash_original_method = \"44E20F477AE4DBE39F2143CAA1307C1F\", hash_generated_method = \"36868A8632F5BB2EF68675431B9B2D63\")\n \npublic Message sendMessageSynchronously(Message msg) {\n Message resultMsg = SyncMessenger.sendMessageSynchronously(mDstMessenger, msg);\n return resultMsg;\n }", "@DSSink({DSSinkKind.SYNCHRONIZATION_DATA})\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:59:45.546 -0500\", hash_original_method = \"69DA3E1B323882B9D4B744C6E35751A3\", hash_generated_method = \"60004DC4003AFFE42822995754840E35\")\n \npublic Message sendMessageSynchronously(int what, int arg1) {\n Message msg = Message.obtain();\n msg.what = what;\n msg.arg1 = arg1;\n Message resultMsg = sendMessageSynchronously(msg);\n return resultMsg;\n }", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:59:45.591 -0500\", hash_original_method = \"73417FF22870072B41D9E8892C6ACEAF\", hash_generated_method = \"98D30C9AEE1B66AD2FCFA7D7A2E2B430\")\n \nprivate static Message sendMessageSynchronously(Messenger dstMessenger, Message msg) {\n SyncMessenger sm = SyncMessenger.obtain();\n try {\n if (dstMessenger != null && msg != null) {\n msg.replyTo = sm.mMessenger;\n synchronized (sm.mHandler.mLockObject) {\n dstMessenger.send(msg);\n sm.mHandler.mLockObject.wait();\n }\n } else {\n sm.mHandler.mResultMsg = null;\n }\n } catch (InterruptedException e) {\n sm.mHandler.mResultMsg = null;\n } catch (RemoteException e) {\n sm.mHandler.mResultMsg = null;\n }\n Message resultMsg = sm.mHandler.mResultMsg;\n sm.recycle();\n return resultMsg;\n }", "@Override\n\tprotected void doAsyncExecute(VoiceMessage requestMessage) {\n\n\t}", "Message sendAndWait();", "RESPONSE_TYPE doSync(final RequestImpl _requestImpl) throws Exception;", "private void invokeSync()\n \t{\n if (iDeviceList.size() == 0)\n {\n System.out.println(\"No devices found, so nothing to test\");\n return;\n }\n CpDevice device = iDeviceList.get(0);\n System.out.println(\"\\n\\nSync call to device \" + device.getUdn());\n \n CpProxyUpnpOrgConnectionManager1 connMgr = new CpProxyUpnpOrgConnectionManager1(device);\n try {\n GetProtocolInfo points = connMgr.syncGetProtocolInfo();\n System.out.println(\"source is \" + points.getSource() + \"\\nsink is \" + points.getSink());\n } catch (ProxyError pe) { }\n connMgr.dispose();\n \t}", "public void asyncFire(EventI event);", "public interface AsynService {\n void asynMethod();\n}", "public void requestExtraSync()\n {\n executor.requestExtraSync();\n }", "public abstract T await();", "public interface RLatitudeServiceAsync {\r\n\r\n\tvoid sayHello(AsyncCallback<String> callback);\r\n\r\n\tvoid publishUser(String name, String firstName, String dateNaissance,\r\n\t\t\tAsyncCallback< String > callback );\r\n\t\r\n\tvoid checkPasswordLoginValidity( String login, String password, AsyncCallback< Boolean > callback );\r\n\t\r\n\tvoid publishAuthentication( String uid, String login, String password, AsyncCallback</*IUser*/Void> callback );\r\n\t\r\n\tvoid connect(String login, String password, AsyncCallback< String > callback);\r\n\t\r\n\tvoid disconnect(String uid, AsyncCallback< Boolean > callback);\r\n\t\r\n\tvoid changeMyVisibility(String uid, boolean visibility,\r\n\t\t\tAsyncCallback<Boolean> callback);\r\n\r\n\tvoid getVisibility(String uid, AsyncCallback<Boolean> callback);\r\n\t\r\n\tvoid setCurrentPostion(String uid, Position position,\r\n\t\t\tAsyncCallback<Void> callback);\r\n\t\r\n\tvoid addContact( String uidUser, String uidContact, AsyncCallback< Void > callback );\r\n\t\r\n\tvoid getContact( String uid,\r\n\t\t\tAsyncCallback< List< ResolvedContact > > callback );\r\n\t\r\n\tvoid getUser( String name, String lastName, AsyncCallback<ResolvedUser> callback );\r\n\t\r\n\tvoid getUser(String uid,AsyncCallback<ResolvedUser> callback);\r\n\r\n\tvoid getPosition( String uidUser, AsyncCallback< Position > callback );\r\n\r\n}", "@Test public void asyncExecute() throws Exception\n {\n \n GlobalSettings.getInstance().setDefaultExecutor( new ThreadPoolExecutor( \"client-model\", 1));\n \n createClients( 1);\n\n final XioClient client = clients.get( 0);\n client.connect( address, port).await();\n \n final int count = 10000;\n final Semaphore semaphore = new Semaphore( 0);\n \n XioCallback cb = new XioCallback( count, semaphore);\n\n String xml = \n \"<script>\" +\n \" <mutex on='$value'>\" +\n \" <set target='$value'>$value + 1</set>\" +\n \" <return>string( $value)</return>\" +\n \" </mutex>\" +\n \"</script>\";\n\n try\n {\n synchronized( serverContext)\n {\n IModelObject valueNode = new ModelObject( \"value\");\n valueNode.setValue( -1);\n serverContext.set( \"value\", valueNode);\n }\n \n IModelObject script = new XmlIO().read( xml);\n StatefulContext context = new StatefulContext();\n \n for( int i=0; i<count; i++)\n {\n client.execute( context, i, new String[ 0], script, cb, 600000);\n assertTrue( cb.failed == -1);\n }\n }\n catch( Exception e)\n {\n e.printStackTrace( System.err);\n }\n \n //System.out.println( \"Finished sending ...\");\n \n semaphore.acquireUninterruptibly();\n //System.out.println( \"Done.\");\n }", "public void sendTestFutureNotification() {\n\n }", "public interface ConnectionServiceAsync {\n void searchSynonyms(String input, AsyncCallback<List<String>> callback) throws IllegalArgumentException;;\n void callMaplabelsToSynonyms(AsyncCallback<Boolean> callback) throws IllegalArgumentException;;\n\n\n}", "void asyncEventPing();", "@Override\n public void sync(){\n }", "public interface AsyncResponce {\n\n /// Cette classe permet de realiser une callback dans une Async Task en overidant cette classe\n void ComputeResult(Object result);\n}", "public interface IBugReportRpcAsync {\r\n\r\n /**\r\n * Submit a bug report.\r\n * @param bugReport Bug report to submit\r\n * @param callback Callback to be invoked after method call completes\r\n */\r\n void submitBugReport(BugReport bugReport, AsyncCallback<Void> callback);\r\n\r\n}", "public synchronized JsonObject syncExecution(String remoteMethod, Map<String, String> params) {\n JsonObject remoteMethodJO = getRemoteMethodFromJson(remoteMethod);\n\n attachParams(remoteMethodJO, params);\n\n attachUUID(remoteMethodJO);\n String callSemantic = getCallSemanticFromJson(remoteMethodJO);\n\n System.out.println(\"Sending request: \" + remoteMethodJO.toString());\n String strRet = communicate.sendRequest(remoteMethodJO.toString().trim(), callSemantic);\n System.out.println(\"Returning response from server to inputstream: \" + strRet);\n String myReturn = strRet.trim();\n\n JsonParser parser = new JsonParser();\n\n return parser.parse(myReturn).getAsJsonObject();\n }", "@Test\n public void testSendMessageWithDuplicateReplyID(TestContext context) {\n\n NetClient client = vertx.createNetClient();\n final Async async = context.async();\n\n client.connect(7000, \"localhost\").onComplete(context.asyncAssertSuccess(socket -> {\n\n vertx.eventBus().consumer(\"third-party-receiver\", msg -> context.fail());\n\n final FrameParser parser = new FrameParser(parse -> {\n context.assertTrue(parse.succeeded());\n client.close();\n async.complete();\n });\n\n socket.handler(parser);\n\n\n FrameHelper.sendFrame(\"send\", \"hello\", \"third-party-receiver\", new JsonObject().put(\"value\", \"vert.x\"), socket);\n }));\n }", "public abstract void onWait();", "private void sync() throws Exception {\n final Synchronizer synchronizer = new Synchronizer();\n\n final long start = System.nanoTime();\n synchronizer.synchronize(caller, listener);\n final long stop = System.nanoTime();\n Duration syncDuration = Duration.ofNanos(stop - start);\n\n caller.drainReceivedEventQueue();\n listener.drainReceivedEventQueue();\n\n System.out.printf(\n \"Synced %d events in %d ms%n\",\n caller.getReceivedEvents().size() + listener.getReceivedEvents().size(), syncDuration.toMillis());\n }", "public void sync()\n {\n setAutoSync(false);\n // simply send sync command\n super.executionSync(Option.SYNC);\n }", "public interface AsynchChannelsGateway {\n\n public Message<String> send(Message<String> message);\n\n}", "Future<Message> send();", "public void sendMessage(Message msg) {\n network.sendAsync(msg);\n }", "public void doCall(){\n CalculatorPayload operation = newContent();\n\n ((PBFTClient)getProtocol()).syncCall(operation);\n }", "public interface AsyncConnection {\n \n /**\n * Return <tt>true</tt> is the current connection associated with \n * this event has been suspended.\n */\n public boolean isSuspended();\n \n \n /**\n * Suspend the current connection. Suspended connection are parked and\n * eventually used when the Grizzlet Container initiates pushes.\n */\n public void suspend() throws AlreadyPausedException;\n \n \n /**\n * Resume a suspended connection. The response will be completed and the \n * connection become synchronous (e.g. a normal http connection).\n */\n public void resume() throws NotYetPausedException;\n \n \n /**\n * Advises the Grizzlet Container to start intiating a push operation, using \n * the argument <code>message</code>. All asynchronous connection that has \n * been suspended will have a chance to push the data back to their \n * associated clients.\n *\n * @param message The data that will be pushed.\n */\n public void push(String message) throws IOException;\n \n \n /**\n * Return the GrizzletRequest associated with this AsynchConnection. \n */\n public GrizzletRequest getRequest();\n \n \n /**\n * Return the GrizzletResponse associated with this AsynchConnection. \n */\n public GrizzletResponse getResponse();\n \n \n /**\n * Is this AsyncConnection being in the process of being resumed?\n */\n public boolean isResuming();\n \n \n /**\n * Is this AsyncConnection has push events ready to push back data to \n * its associated client.\n */\n public boolean hasPushEvent();\n \n \n /**\n * Return the <code>message</code> that can be pushed back.\n */\n public String getPushEvent();\n \n \n /**\n * Is the current asynchronous connection defined as an HTTP Get.\n */\n public boolean isGet();\n \n \n /**\n * Is the current asynchronous connection defined as an HTTP Get. \n */\n public boolean isPost();\n \n \n /**\n * Return the number of suspended connections associated with the current\n * {@link Grizzlet}\n */\n public int getSuspendedCount();\n \n \n}", "public void tellJoke(){\n new EndpointAsyncTask().execute(this);\n }", "@Test\n void awaitMessage() {\n\n Message message = null;\n TempBroadcast b = new TempBroadcast(\"broadcastSender2\");\n\n broadcastReceiver.subscribeBroadcast(TempBroadcast.class, c -> {\n });\n broadcastSender.sendBroadcast(b);\n\n // here we will check the method\n try {\n message = messageBus.awaitMessage(broadcastReceiver);\n\n } catch (InterruptedException e) {\n e.printStackTrace();\n //due to the assumption above, an exception is not supposed to be thrown\n }\n assertEquals(b, message);\n }", "public interface GreetingServiceAsync {\r\n\tvoid getAll( String type, AsyncCallback<HashMap<String, String>> callback );\r\n\tvoid delete(String id,AsyncCallback callback );\r\n\tvoid getById(String idData, AsyncCallback<PhotoClient> callback);\r\n\tvoid addProject(String proName,AsyncCallback callback);\r\n\tvoid getProjectList(AsyncCallback callback);\r\n\tvoid getFolderChildren(FileModel model, AsyncCallback<List<FileModel>> children);\r\n \r\n}", "public interface Async {\n public void afterExec(JSONObject jsonObject);\n}", "@Override\n public void run() {\n syncToServer();\n }", "public DJSync(){\n }", "public void start( boolean async );", "@Override\n\tpublic void execute() {\n\t\tcmdReceiver.send();\n\t}", "public interface AsyncLogger {\n\n public void logMessage(String message);\n}", "abstract public void sendData(Account account, SyncResult syncResult) throws Exception;", "public interface StakeServiceAsync {\n\tvoid sendStake(long uuid, int raceType, int horseNumber, int summ, AsyncCallback<Integer> callback);\n\t\n\tvoid getRaceResultfromDB(int raceId, AsyncCallback<List<Result>> callback);\n}", "public void makeCall() {\n\n }", "public interface ChallongeApiCall<T> {\n\n /**\n * Performs a sync API call.\n * Blocking request which returns the object right away.\n *\n * @return The received object\n * @throws IOException Exception thrown by error handling\n * @throws ChallongeException Exception thrown by error handling\n */\n T sync() throws IOException, ChallongeException;\n\n /**\n * Performs an async API call.\n * One of the callbacks must be called on completion\n *\n * @param success Called on successful call completion\n * @param error Called on failure\n */\n void async(Callback<T> success, Callback<Throwable> error);\n\n /**\n * Performs an async API call.\n * One of the callbacks must be called on completion\n *\n * @deprecated Deprecated in favor of {@link ChallongeApiCall#async(Callback, Callback)}\n * @param callback The callback\n */\n @Deprecated\n void async(AsyncCallback<T> callback);\n}", "private synchronized void syncData() {\n try {\n // pulling data from server\n pullData();\n\n // pushing local changes to server\n// recordStatus=2\n pushData();\n// recordStatus=1\n// pushData1();\n } catch (Throwable throwable) {\n Log.d(TAG, \"doWork: \" + throwable.getMessage());\n }\n // Toast.makeText(getApplicationContext(), \".\", Toast.LENGTH_SHORT).show();\n }", "private static void mergingSyncMadeAsync() {\n Observable.merge(getDataSync(1).subscribeOn(Schedulers.io()), getDataSync(2).subscribeOn(Schedulers.io())).blockingForEach(System.out::println);\n }", "public interface AcnServiceAsync {\r\n\t\r\n\tvoid ordernarSequencia(Integer num1, Integer num2, AsyncCallback<Integer[]> callback) throws Exception;\r\n\t\r\n\tvoid recuperarListaPessoa(int quantidade, AsyncCallback<Map<String, List<Pessoa>>> callback);\r\n\t\r\n}", "public interface AsyncRpcCallback {\n\n void success(Object result);\n\n void fail(Exception e);\n\n}", "T sync() throws IOException, ChallongeException;", "private void doRemoteCall() {\n\n // Create the intent used to identify the bound service\n final Intent remoteBoundIntent = new Intent(this, MyRemoteBoundService.class);\n\n // Lets get a reference to it (asynchronously, hence the ServiceConnection object)\n bindService(remoteBoundIntent, new ServiceConnection() {\n @Override\n public void onServiceConnected(ComponentName name, IBinder service) {\n\n try {\n // Let's call it!\n (MyBoundServiceContract.Stub.asInterface(service)).doSomething(10);\n // We're done. Free the reference to the service\n unbindService(this);\n\n } catch (RemoteException e) {\n e.printStackTrace();\n }\n }\n\n @Override\n public void onServiceDisconnected(ComponentName name) {\n // Called upon unbind, just in case we need some cleanup\n }\n }, Context.BIND_AUTO_CREATE);\n }", "Boolean autoSync();", "void sync() throws IOException;", "void sync()throws IOException;", "public interface MessageCallback {\n\n /**\n * Called when the awaited message arrives.\n */\n public void onReceive();\n\n /**\n * Called when the awaited message doesn't arrive (even after possible\n * retries).\n */\n public void onTimeout();\n}", "public interface AppServiceAsync {\r\n void addBookmark(Bookmark bookmark, AsyncCallback<Long> callback);\r\n\r\n void deleteBookmark(Long id, AsyncCallback<Void> callback);\r\n\r\n void getBookmarks(AsyncCallback<List<Bookmark>> callback);\r\n\r\n void isLogged(String location, AsyncCallback<String> callback);\r\n}", "public DataObject doCall(DataObject subsystemMessage, boolean synchronous, FunctionCallback callback, FunctionCallbackHandler callbackHandler) throws SubsystemException {\n\t\tDataObject returnMessage = null;\r\n\t\t \r\n\t\ttry {\r\n\t\t\tLong myMessageID = new Long(getNextMessageID());\r\n\t\t\ttrackCurrentThreadOrCallBack(myMessageID, synchronous, callback, callbackHandler);\r\n\t\t\tDataObject meta = subsystemMessage.getDataObject(com.textserv.framework.subsystem.common.internal.Constants.SubsystemMeta);\r\n\t\t\tmeta.setString(com.textserv.framework.subsystem.calling.internal.async.Constants.AsyncSenderUniqueName, uniqueName);\r\n\t\t\tmeta.setLong(com.textserv.framework.subsystem.calling.internal.async.Constants.AysncMessageID, myMessageID);\r\n\t\t\tlogger.debug(\"AsyncMessageFunctionCallCaller.doCall sending message \" + subsystemMessage.toStringEncoded(true));\r\n\t\t\r\n\t\t\tasyncMessager.sendMessage(uniqueName, subsystemMessage);\r\n\t\t\tif (synchronous) {\r\n\t\t\t\tlong synchronousWaitTimeout = defaultSynchronousWaitTimeout;\r\n\t\t\t\t\tDataObject params = subsystemMessage.getDataObject(com.textserv.framework.subsystem.common.internal.Constants.Params);\r\n\t\t\t\t\tif ( params != null ) {\r\n\t\t\t\t\t\tif ( params.itemExists(com.textserv.framework.subsystem.common.internal.Constants.FuncTimeOut)) {\r\n\t\t\t\t\t\t\tsynchronousWaitTimeout = params.getLong(com.textserv.framework.subsystem.common.internal.Constants.FuncTimeOut);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturnMessage = makeCurrentThreadWaitIfNeeded(myMessageID,synchronousWaitTimeout);\r\n\t\t\t}\r\n\t\t} catch( Exception e ) {\r\n\t\t\tlogger.error(\"AsyncMessageFunctionCallCaller.doCall Exception in doCall\", e);\r\n\t\t\tif ( e instanceof SubsystemException ) {\r\n\t\t\t\tthrow (SubsystemException)e;\r\n\t\t\t} else {\r\n\t\t\t\tthrow new SubsystemException(\"Exception in doCall\", e);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn returnMessage;\r\n\t}", "public interface NotificationService {\n\n void sendAsync(List<Notification> notifications, String CompanyName);\n\n void send(NotificationEvent notificationEvent);\n\n void send(Notification notification);\n\n void send(List<NotificationEvent> notificationEvents);\n}", "@DSSafe(DSCat.IPC_CALLBACK)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:59:45.580 -0500\", hash_original_method = \"2469457C965E8FC7C139A1D414384428\", hash_generated_method = \"42C86E9B0B120923F19E3F5FDF13C046\")\n \n@Override\n public void handleMessage(Message msg) {\n mResultMsg = Message.obtain();\n mResultMsg.copyFrom(msg);\n synchronized(mLockObject) {\n mLockObject.notify();\n }\n }", "@Override\r\n public void asyncExecute(String script)\r\n {\n\r\n }", "<T extends ResponseMessage> T sendMessageBlocking(RequestMessage message, String id) throws InterruptedException;", "public interface HomepageServiceAsync {\n\tpublic void getProtectionInformation(AsyncCallback<ProtectionInformationModel[]> callback);\n\n\tpublic void getRecentBackups(int backupType, int backupStatus,int top, AsyncCallback<RecoveryPointModel[]> callback);\n\t\n\tpublic void getRecentBackupsByServerTime(int backupType, int backupStatus, String serverBeginDate, String serverEndDate, boolean needCatalogStatus, AsyncCallback<RecoveryPointModel[]> callback);\n\t\n\tpublic void getVMRecentBackupsByServerTime(int backupType, int backupStatus, String serverBeginDate, String serverEndDate, boolean needCatalogStatus, BackupVMModel vmModel,AsyncCallback<RecoveryPointModel[]> callback);\n\t\n\tpublic void getBackupInforamtionSummary(AsyncCallback<BackupInformationSummaryModel> callback);\n\t\n\tpublic void updateProtectionInformation(AsyncCallback<ProtectionInformationModel[]> callback);\n\t\n\tpublic void getDestSizeInformation(BackupSettingsModel model,AsyncCallback<DestinationCapacityModel> callback);\n\t\n\tpublic void getNextScheduleEvent(int in_iJobType,AsyncCallback<NextScheduleEventModel> callback);\n\n\tpublic void getTrustHosts(\n\t\t\tAsyncCallback<TrustHostModel[]> callback);\n\n\tvoid becomeTrustHost(TrustHostModel trustHostModel,\n\t\t\tAsyncCallback<Boolean> callback);\n\n\tvoid checkBaseLicense(AsyncCallback<Boolean> callback);\n\n\tvoid getBackupInforamtionSummaryWithLicInfo(AsyncCallback<BackupInformationSummaryModel> callback);\n\t\n\tvoid getLocalHost(AsyncCallback<TrustHostModel> callback);\n\n\tvoid PMInstallPatch(PatchInfoModel in_patchinfoModel,\n\t\t\tAsyncCallback<Integer> callback);\n\t\n\tvoid PMInstallBIPatch(PatchInfoModel in_patchinfoModel,\n\t\t\tAsyncCallback<Integer> callback);//added by cliicy.luo\n\t\n\tvoid getVMBackupInforamtionSummaryWithLicInfo(BackupVMModel vm,\n\t\t\tAsyncCallback<BackupInformationSummaryModel> callback);\n\n\tvoid getVMBackupInforamtionSummary(BackupVMModel vm,\n\t\t\tAsyncCallback<BackupInformationSummaryModel> callback);\n\n\tvoid getVMProtectionInformation(BackupVMModel vmModel,\n\t\t\tAsyncCallback<ProtectionInformationModel[]> callback);\n\n\tvoid getVMNextScheduleEvent(BackupVMModel vmModel,\n\t\t\tAsyncCallback<NextScheduleEventModel> callback);\n\tpublic void getVMRecentBackups(int backupType, int backupStatus,int top,BackupVMModel vmModel, AsyncCallback<RecoveryPointModel[]> callback);\n\n\tvoid updateVMProtectionInformation(BackupVMModel vm,\n\t\t\tAsyncCallback<ProtectionInformationModel[]> callback);\n\n\tvoid getArchiveInfoSummary(AsyncCallback<ArchiveJobInfoModel> callback);\n\n\tvoid getLicInfo(AsyncCallback<LicInfoModel> callback);\n\n\tvoid getVMStatusModel(BackupVMModel vmModel,\n\t\t\tAsyncCallback<VMStatusModel[]> callback);\n\n\tvoid getConfiguredVM(AsyncCallback<BackupVMModel[]> callback);\n\n\tvoid getMergeJobMonitor(String vmInstanceUUID,\n\t\t\tAsyncCallback<MergeJobMonitorModel> callback);\n\n\tvoid pauseMerge(String vmInstanceUUID, AsyncCallback<Integer> callback);\n\n\tvoid resumeMerge(String vmInstanceUUID, AsyncCallback<Integer> callback);\n\n\tvoid getMergeStatus(String vmInstanceUUID,\n AsyncCallback<MergeStatusModel> callback);\n\n\tvoid getBackupSetInfo(String vmInstanceUUID, \n\t\t\tAsyncCallback<ArrayList<BackupSetInfoModel>> callback);\n\t\n\tpublic void getDataStoreStatus(String dataStoreUUID, AsyncCallback<DataStoreInfoModel> callback);\n\n\tvoid getVMDataStoreStatus(BackupVMModel vm, String dataStoreUUID,\n\t\t\tAsyncCallback<DataStoreInfoModel> callback);\n\t\n}", "void notifyCompleted(MessageSnapshot snapshot);", "public interface EmailService {\n\n Boolean send(Greeting greeting);\n\n void sendAsync(Greeting greeting);\n\n CompletableFuture<Boolean> sendAsyncWithResults(Greeting greeting);\n}", "@Override\n\t\tpublic void asyncSendSuccess(long id) throws ConnectorException {\n\t\t\t\n\t\t}", "private void syncNext() {\n Log.d(TAG, \"syncNext +++++\");\n mCurrentSyncRequest = mSyncRequestQueue.getFirstRequest();\n if (mCurrentSyncRequest != null) {\n mIsSyncing = true;\n mCurrentSyncRequest.notifyState(SyncRequest.SyncNotify.SYNC_STATE_START);\n switch (mCurrentSyncRequest.mSyncType) {\n case SyncRequest.SYNC_BACKUP:\n mEngine.sync(ContactsSyncEngine.SYNC_MODE_BACKUP);\n break;\n case SyncRequest.SYNC_RESTORE:\n mEngine.sync(ContactsSyncEngine.SYNC_MODE_RESTORE);\n break;\n case SyncRequest.CHECK_RESTORE_RESULT:\n mEngine.sync(ContactsSyncEngine.SYNC_MODE_CHECK_RESTORE);\n break;\n default:\n break;\n }\n } else {\n Log.d(TAG, \"SyncRequestQueue is empty !\");\n }\n Log.d(TAG, \"syncNext -----\");\n }", "@Override\n\t\t\tpublic void callbackCall() {\n\t\t\t}", "<T extends ResponseMessage> T sendMessageBlocking(RequestMessage message, String id, long waitTime, TimeUnit timeUnit) throws InterruptedException;", "interface InterfaceAsyncRequestData {\n\n /*\n * This is Interface used when a VALUE obtained from\n * an Async Thread (Class) has to be pass over to another\n * Class (probably UI thread for display to user),\n * but Async Thread and UI Thread are seperated in 2 different class.\n *\n * NOTE:\n * Implementation for these methods are\n * preferable to be\n * inside the necessary displayed UI Activity, e.g. MainActivity\n *\n * Summary:\n * - UI Thread = setup the methods, (activityRequestData = this), just for standby, NOT TO BE CALLED!\n *\n * - Background/Async Thread = invoke/call the methods, activityRequestData=null\n *\n * - Interface (or I called it \"Skin\") here = just a skin / head / methods name only, without implementation\n *\n *\n * UI Thread:\n * -implements and link->>\n *\n * ClassName implements AsyncRespondInterface {\n * ClassName(){\n * Async.activityRequestData = this;\n * }\n * // implements the rest of the methods()\n * }\n *\n * Background/Async Thread:\n * -prepare->> AsyncRespondInterface activityRequestData = null;\n * -invoke->> AsyncRespondInterface.someMethods();\n *\n */\n\n void getArrayListJSONResult(ArrayList<JSONObject> responses);\n}", "private static void performFutureSync(final long startTime) throws IOException,ConfigurationException {\n\n LOGGER.info(\"Starting to perform future sync\");\n startupDisruptor();\n TapStream tapStream = tapClient\n .tapBackfill(tapName, startTime, 0, TimeUnit.MILLISECONDS);\n RingBuffer<CouchbaseEvent> ringBuffer = disruptor.getRingBuffer();\n\n CouchbaseEventProducer producer = new CouchbaseEventProducer(\n ringBuffer);\n while (!tapStream.isCompleted()) {\n while (tapClient.hasMoreMessages()) {\n ResponseMessage responseMessage;\n responseMessage = tapClient.getNextMessage();\n if (null != responseMessage) {\n String key = responseMessage.getKey();\n String value = new String(responseMessage.getValue());\n producer.onData(new String[] {key, value},\n responseMessage.getOpcode());\n }\n }\n }\n }", "@Override\n public void run() {\n send();\n }", "public interface RespuestaAsync {\n void ProcesoFinalizado(String salida);\n}", "@Override\n\tpublic void invoke(final Request request, final AsyncCallback<Response> callback) {\n\t\tcallback.callback(CallbackBus.super.invoke(request));\n\t}", "public interface UrlMakerApiAsync {\n\tvoid encode(String url, AsyncCallback<Map<String, String>> callback);\n\tvoid ping(AsyncCallback<Void> callback);\n}", "@Override\n public void run() {\n message.synchronizedInstance();\n }", "@Test\n public void testSynchronizedSync() throws AuthException, IOException {\n presenter.synchronize();\n try {\n presenter.syncingThread.join();\n } catch (InterruptedException e) {}\n assertEquals(SyncStatusEnum.PREAUTHED, presenter.status);\n presenter.synchronize();\n try {\n presenter.syncingThread.join();\n } catch (InterruptedException e) {}\n assertEquals(SyncStatusEnum.AUTHED, presenter.status);\n presenter.synchronize();\n try {\n presenter.syncingThread.join();\n } catch (InterruptedException e) {}\n assertEquals(SyncStatusEnum.SYNCED, presenter.status);\n }", "@Override\n public void onResponse(String response) {\n System.out.print(\"respuesta Server\"+response);\n responseRequest(sync_id);\n /*if (sync_id != 0) {\n responseRequest(sync_id);\n } else {\n background_response = \"ID Sync null\";\n restartRequest(background_response);\n }*/\n }", "@Override\n\tpublic void startSync() throws Exception {\n\t}", "public interface DBServiceAsync {\r\n\tvoid greetServer(String input, AsyncCallback<String> callback);\r\n\r\n\tvoid startDB(AsyncCallback<String> callback);\r\n\r\n\tvoid stopDB(AsyncCallback<String> callback);\r\n\r\n\tvoid createDB(AsyncCallback<String> callback);\r\n}", "public interface AsyncDelegate {\n\n public void asyncComplete(boolean success);\n\n\n}", "void send(Runnable msg);", "<V> FutureRef<V> call(final IMessage<A, V> msg);", "void send();", "@SuppressWarnings(\"rawtypes\")\n private void synchronousInvokeCallback(Callable call) {\n\n Future future = streamingSlopResults.submit(call);\n\n try {\n future.get();\n\n } catch(InterruptedException e1) {\n\n logger.error(\"Callback failed\", e1);\n throw new VoldemortException(\"Callback failed\");\n\n } catch(ExecutionException e1) {\n\n logger.error(\"Callback failed during execution\", e1);\n throw new VoldemortException(\"Callback failed during execution\");\n }\n\n }", "public void runSynchronous() {\r\n\t\twhile (data.getPlayerNum() < data.getNumPlayers()) {\r\n\t\t\tPlayer player = data.getCurrentPlayer();\r\n\t\t\tString result = randomEventSimulator(player);\r\n\t\t\tMainGameWindow.setMessage(String.format(\"%s: %s\", player.getName(), result));\r\n\t\t\tMULETimer timer = new MULETimer(2000);\r\n\t\t\ttimer.startSynchronous();\r\n\t\t\tdata.nextPlayer();\r\n\t\t\tdata.savePoint();\r\n\t\t}\r\n\t\tdata.resetPlayerNum();\r\n\t\tdata.nextState();\r\n\t}", "public void syncMessages() {\n\t\tArrayList<ChatEntity> nonSyncedChatEntities = new ArrayList<>();\n\t\tnonSyncedChatEntities.addAll(chatViewModel.loadChatsWithSyncStatus(false, nameID));\n\n\t\tif (nonSyncedChatEntities.size() > 0) {\n\t\t\tfor (int i = 0; i < nonSyncedChatEntities.size(); i++) {\n\t\t\t\tChatEntity chatEntity = nonSyncedChatEntities.get(i);\n\t\t\t\tchatEntity.setSynced(true);\n\t\t\t\tchatViewModel.updateSource(chatEntity);\n\t\t\t\tgetChatResult(nonSyncedChatEntities.get(i).getMessage());\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tvoid receiveCall() {\n\n\t}", "void notifyMessage(Task task);", "public Object call() throws Exception {\n\t\t\t\t\t\tProducerSimpleNettyResponseFuture future;\n\t\t\t\t\t\tProducerSimpleNettyResponse responseFuture;\n\t\t\t\t\t\tfuture = clientProxy.request(message);\n\t\t\t\t\t\tresponseFuture = future\n\t\t\t\t\t\t\t\t.get(3000, TimeUnit.MILLISECONDS);\n\t\t\t\t\t\treturn responseFuture.getResponse();\n\t\t\t\t\t}", "public void sendAsyncMessage(String to, Message message) {\r\n\r\n BlockingQueue<Message> asyncQueue = getAsyncQueue(to);\r\n boolean success = asyncQueue.offer(message);\r\n if (!success)\r\n throw new RuntimeException(\"AsyncQueue has not any more space to receive the new item.\");\r\n }", "void notifyPending(MessageSnapshot snapshot);", "private void makeCall() {\n\t\t// send the originate action (Call)\n\t\tthis.asteriskServer.originateAsync(this.originateAction, new OriginateCallbackAdapter() {\n\t\t\t@Override\n\t\t\tpublic void onDialing(final AsteriskChannel asteriskChannel) {\n\t\t\t\tCall.this.log.log(Level.INFO, \"Dialing: \" + asteriskChannel.getName() + \" \" + Call.this.destination);\n\t\t\t\tCall.this.state=CallState.DIALING;\n\t\t\t\tCall.this.currentChannel = asteriskChannel.getName();\n\t\t\t\t// Make sure when there was a hangup event that it is realy hung up.\n\t\t\t\tif(Call.this.hangup)\n\t\t\t\t\tCall.this.hangup();\n\t\t\t\t// Listen for cool stuff like \"ringing\"\n\t\t\t\tasteriskChannel.addPropertyChangeListener(new PropertyChangeListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void propertyChange(PropertyChangeEvent evt) {\n\t\t\t\t\t\t// is the phone ringing?\n\t\t\t\t\t\tif (evt.getPropertyName().equals(\"state\") && evt.getNewValue().toString().equals(\"RINGING\")) {\n\t\t\t\t\t\t\tCall.this.log.log(Level.INFO, \"Ringing: \" + asteriskChannel.getName() + \" \" + Call.this.destination);\n\t\t\t\t\t\t\t// Schedule hangup timeout\n\t\t\t\t\t\t\tCall.this.timeoutTimer.schedule(new TimerTask() {\n\n\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\tif (!Call.this.success) {\n\t\t\t\t\t\t\t\t\t\tCall.this.asteriskServer.getChannelByName(Call.this.currentChannel).hangup();\n\t\t\t\t\t\t\t\t\t\t// no \"noAnswer()\" called here because a\n\t\t\t\t\t\t\t\t\t\t// onNoAnswer event will come in anyway\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}, new Long(EPursuit.properties.getProperty(\"callTime\")));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onSuccess(AsteriskChannel asteriskChannel) {\n\t\t\t\tCall.this.state=CallState.RUNNING;\n\t\t\t\tCall.this.success = true;\n\t\t\t\tCall.this.log.log(Level.INFO, \"Connection successful: \" + asteriskChannel.getName() + \" \" + Call.this.destination);\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onNoAnswer(AsteriskChannel asteriskChannel) {\n\t\t\t\tCall.this.log.log(Level.INFO, \"Channel not answered: \" + Call.this.currentChannel + \" \" + Call.this.destination);\n\t\t\t\tif (asteriskChannel.getHangupCause().toString().equals(\"CALL_REJECTED\")) {\n\t\t\t\t\tCall.this.noAnswer();\n\t\t\t\t} else {\n\t\t\t\t\tCall.this.noAnswer();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onBusy(AsteriskChannel asteriskChannel) {\n\t\t\t\tCall.this.noAnswer();\n\n\t\t\t\tCall.this.log.log(Level.INFO, \"Busy: \" + asteriskChannel.getName() + \" \" + Call.this.destination);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onFailure(LiveException cause) {\n\t\t\t\tCall.this.noAnswer();\n\n\t\t\t\tif (cause.getClass().getCanonicalName().equals(\"org.asteriskjava.live.NoSuchChannelException\")) {\n\t\t\t\t\t// Called when the channel is busy... dunno why\n\t\t\t\t\tCall.this.log.log(Level.INFO, \"Channel perhabs busy. \" + Call.this.destination);\n\t\t\t\t} else {\n\t\t\t\t\tCall.this.log.log(Level.WARNING, \"Received unknown error.\\n\" + cause + \" \" + Call.this.destination);\n\t\t\t\t}\n\n\t\t\t}\n\t\t});\n\n\t}", "public void run()\r\n\t\t{\n\t\t\ttheVMKClient.sendMessageToServer(m);\r\n\t\t}", "private static void bidiStreamService(ManagedChannel channel){\n CalculatorServiceGrpc.CalculatorServiceStub asynClient = CalculatorServiceGrpc.newStub(channel);\n CountDownLatch latch = new CountDownLatch(1);\n StreamObserver<FindMaximumRequest> streamObserver = asynClient.findMaximum(new StreamObserver<FindMaximumResponse>() {\n @Override\n public void onNext(FindMaximumResponse value) {\n System.out.println(\"Got new maxium from server: \"+ value.getMaximum());\n }\n\n @Override\n public void onError(Throwable t) {\n latch.countDown();\n }\n\n @Override\n public void onCompleted() {\n System.out.println(\"Server is done sending data\");\n latch.countDown();\n }\n });\n\n Arrays.asList(1,5,3,6,2,20).forEach(\n number -> {\n System.out.println(\"Sending number: \"+ number);\n streamObserver.onNext(FindMaximumRequest.newBuilder()\n .setNumber(number)\n .build());\n }\n );\n\n streamObserver.onCompleted();\n try {\n latch.await(3L, TimeUnit.SECONDS);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "@Test\n public void orgApacheFelixEventadminAsyncToSyncThreadRatioTest() {\n // TODO: test orgApacheFelixEventadminAsyncToSyncThreadRatio\n }", "int callback(int num_msg, Pointer msg, Pointer resp, Pointer _ptr);", "@Override\n public String call() throws Exception {\n if (!iAmSpecial) {\n blocker.await();\n }\n ran = true;\n return result;\n }", "public interface ClientServiceAsync {\n\t/**\n\t * Save a Client instance to the data store\n\t * @param c The client to be saved\n\t * @param cb The async callback\n\t */\n\tpublic void saveClient(Client c, AsyncCallback<Void> cb);\n\t\n\t/**\n\t * Load all the Client instances from the server\n\t * @param cb The async callback\n\t */\n\tpublic void getClients(AsyncCallback<List<Client>> cb);\n\t\n\t/**\n\t * Get a Client by id\n\t * @param id The client id\n\t * @param cb The async callback\n\t */\n\tpublic void getClient(String id, AsyncCallback<Client> cb);\n\n\t/**\n\t * Delete a list of clients from the data store\n\t * @param clients The list of clients to be deleted\n\t * @param cb The async callback\n\t */\n\tpublic void deleteClients(Collection<Client> clients, AsyncCallback<Void> cb);\n\t\n\tpublic void saveClients(Collection<Client> clients, AsyncCallback<Void> cb);\n}", "@Test\n public void onActivity_sync() {\n final List<String> events = new ArrayList<>();\n Handler mainHandler = new Handler(Looper.getMainLooper());\n\n try (ActivityScenario<RecreationRecordingActivity> scenario =\n ActivityScenario.launch(RecreationRecordingActivity.class)) {\n\n mainHandler.post(() -> events.add(\"before onActivity\"));\n scenario.onActivity(\n new ActivityAction<RecreationRecordingActivity>() {\n @Override\n public void perform(RecreationRecordingActivity activity) {\n events.add(\"in onActivity\");\n // as expected, on device tests become flaky and fail deterministically on\n // Robolectric with this line, as onActivity does not drain the main looper\n // after runnable executes\n // mainHandler.post(() -> events.add(\"post from onActivity\"));\n }\n });\n\n assertThat(events).containsExactly(\"before onActivity\", \"in onActivity\").inOrder();\n }\n }" ]
[ "0.7601131", "0.6696006", "0.6681235", "0.6680146", "0.666935", "0.66431236", "0.6536787", "0.6460964", "0.63810176", "0.6224618", "0.6188929", "0.61887765", "0.61607313", "0.60970026", "0.6041783", "0.60347134", "0.597338", "0.59320295", "0.5853219", "0.58488345", "0.5829133", "0.5788804", "0.5724749", "0.571809", "0.5713722", "0.57102966", "0.5700609", "0.5683352", "0.5666892", "0.56549776", "0.5647677", "0.5627499", "0.56019324", "0.5566967", "0.55655915", "0.55574715", "0.5547817", "0.55351454", "0.55342215", "0.5527366", "0.5520272", "0.55186224", "0.5490755", "0.5470047", "0.54571277", "0.54497796", "0.5437547", "0.5435112", "0.54281867", "0.5409554", "0.540605", "0.54047525", "0.5403658", "0.5399865", "0.5389679", "0.5373273", "0.5372491", "0.53647393", "0.5363875", "0.5363693", "0.53578776", "0.53543115", "0.53538805", "0.5352299", "0.53506124", "0.53485966", "0.53465563", "0.5345781", "0.53342813", "0.53275084", "0.53266853", "0.53136444", "0.5304709", "0.53010064", "0.5288604", "0.52816314", "0.5280456", "0.5272925", "0.5270524", "0.52696383", "0.5266732", "0.52661943", "0.5257116", "0.52442765", "0.5242512", "0.52384347", "0.52367157", "0.52353", "0.5234535", "0.523435", "0.52246666", "0.52235025", "0.52212334", "0.52207047", "0.5207681", "0.52074534", "0.5207158", "0.5206193", "0.5204014", "0.52019674", "0.5199727" ]
0.0
-1
Create an input based on the provide sync set. The input is not initialized until prepareInput is called.
public HierarchicalModelProvider(ISynchronizePageConfiguration configuration, SyncInfoTree set) { super(configuration, set); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract BasicInput createInput( boolean isSeq ) throws IOException;", "INPUT createINPUT();", "Input createInput();", "protected Object getInitialInput() {\n return this;\n }", "private ConversationInputManager initNewInputManager(final Bundle savedState) {\n Mockito.when(mockConversationInputHost.getSimSelectorView())\n .thenReturn(new SimSelectorView(getTestContext(), null));\n Mockito.when(mockConversationInputHost.createMediaPicker()).thenReturn(mockMediaPicker);\n Mockito.when(mockConversationInputSink.getComposeEditText())\n .thenReturn(new EditText(getTestContext()));\n Mockito.doReturn(mockFragmentTransaction).when(mockFragmentTransaction).replace(\n Mockito.eq(R.id.mediapicker_container), Mockito.any(MediaPicker.class),\n Mockito.anyString());\n Mockito.when(mockFragmentManager.findFragmentByTag(MediaPicker.FRAGMENT_TAG))\n .thenReturn(null);\n Mockito.when(mockFragmentManager.beginTransaction()).thenReturn(mockFragmentTransaction);\n Mockito.when(mockSubscriptionListData.hasData()).thenReturn(true);\n Mockito.when(mockConversationData.getSubscriptionListData())\n .thenReturn(mockSubscriptionListData);\n Mockito.doReturn(true).when(mockConversationData).isBound(Mockito.anyString());\n Mockito.doReturn(true).when(mockDraftMessageData).isBound(Mockito.anyString());\n\n final Binding<ConversationData> dataBinding = BindingBase.createBinding(this);\n dataBinding.bind(mockConversationData);\n final Binding<DraftMessageData> draftBinding = BindingBase.createBinding(this);\n draftBinding.bind(mockDraftMessageData);\n final ConversationInputManager inputManager = new ConversationInputManager(getTestContext(),\n mockConversationInputHost, mockConversationInputSink, mockImeStateHost,\n mockFragmentManager, dataBinding, draftBinding, savedState);\n return inputManager;\n }", "com.indosat.eai.catalist.standardInputOutput.DummyInputType addNewInput();", "com.indosat.eai.catalist.standardInputOutput.DummyInputType getInput();", "protected abstract void registerInput();", "void setInput(com.indosat.eai.catalist.standardInputOutput.DummyInputType input);", "public PendingInputInfo input(TermuxSessionBridgeEnd bridgeEnd, String input) {\n // todo: bring the analysis of the pending input to another thread\n return inputParser.newInput(tuiCore, bridgeEnd, input);\n }", "protected abstract void getInput();", "@Provides\r\n public DataInput provideInputReader() {\r\n DataInput input = null;\r\n final Reader inRdr = inReader;\r\n if ((inRdr != null) && (inputFormat != null)) {\r\n if (\"csv\".equalsIgnoreCase(inputFormat))\r\n input = new CSVDataInput(inRdr);\r\n else if (\"json\".equalsIgnoreCase(inputFormat))\r\n input = new JSONDataInput(inRdr);\r\n else\r\n throw new IllegalArgumentException(\"Input format \"\r\n + inputFormat + \" not supported.\"\r\n + \" Valid types are csv, json\");\r\n input.verboseOptions(verboseStream, verbose);\r\n }\r\n return input;\r\n }", "@Emitter\n public InputSource createWorker() {\n return new InputSource(configuration, jsonFactory, jsonb, service, members);\n \n }", "@Override\n\tpublic void setInput(Input arg0) {\n\n\t}", "public static Input getInput() {\r\n return input;\r\n }", "private Input()\n {\n }", "public abstract Object getInput ();", "public static BasicInput createSequentialInput( final DataInput in ) {\n return new BasicInput() {\n public byte readByte() throws IOException {\n return in.readByte();\n }\n public short readShort() throws IOException {\n return in.readShort();\n }\n public int readInt() throws IOException {\n return in.readInt();\n }\n public long readLong() throws IOException {\n return in.readLong();\n }\n public float readFloat() throws IOException {\n return in.readFloat();\n }\n public double readDouble() throws IOException {\n return in.readDouble();\n }\n public void skip( long nbyte ) throws IOException {\n IOUtils.skipBytes( in, nbyte );\n }\n public boolean isRandom() {\n return false;\n }\n public void seek( long offset ) {\n throw new UnsupportedOperationException();\n }\n public long getOffset() {\n throw new UnsupportedOperationException();\n }\n public void close() {\n }\n };\n }", "@Override\n\tpublic void setInput(Input arg0) {\n\t\t\n\t}", "public void setInput(Input input) {\n this.input = input;\n }", "com.google.cloud.dialogflow.v2.InputConfig getInputConfig();", "public static IInputFactory getInputFactory() {\n\n return m_InputFactory;\n\n }", "@Override\n public void prepareInputDiscovery() {\n // Make sure to clear the additional inputs potentially left over from an old build (in case we\n // ran discoverInputs, but not beginExecution).\n clearAdditionalInputs();\n }", "InputObjectTypeDefinition createInputObjectTypeDefinition();", "public InputSource getInputSource()\n throws ProcessingException, IOException {\n try {\n InputSource newObject = new InputSource(this.source.getInputStream());\n newObject.setSystemId(this.getSystemId());\n return newObject;\n } catch (SourceException se) {\n throw SourceUtil.handle(se);\n }\n }", "com.indosat.eai.catalist.standardInputOutput.DummyInputDocument.DummyInput addNewDummyInput();", "public interface ObjectInput extends DataInput {\n /**\n * Indicates the number of bytes of primitive data that can be read without\n * blocking.\n *\n * @return the number of bytes available.\n * @throws IOException\n * if an I/O error occurs.\n */\n public int available() throws IOException;\n\n /**\n * Closes this stream. Implementations of this method should free any\n * resources used by the stream.\n *\n * @throws IOException\n * if an I/O error occurs while closing the input stream.\n */\n public void close() throws IOException;\n\n /**\n * Reads a single byte from this stream and returns it as an integer in the\n * range from 0 to 255. Returns -1 if the end of this stream has been\n * reached. Blocks if no input is available.\n *\n * @return the byte read or -1 if the end of this stream has been reached.\n * @throws IOException\n * if this stream is closed or another I/O error occurs.\n */\n public int read() throws IOException;\n\n /**\n * Reads bytes from this stream into the byte array {@code buffer}. Blocks\n * while waiting for input.\n *\n * @param buffer\n * the array in which to store the bytes read.\n * @return the number of bytes read or -1 if the end of this stream has been\n * reached.\n * @throws IOException\n * if this stream is closed or another I/O error occurs.\n */\n public int read(byte[] buffer) throws IOException;\n\n /**\n * Reads at most {@code count} bytes from this stream and stores them in\n * byte array {@code buffer} starting at offset {@code count}. Blocks while\n * waiting for input.\n *\n * @param buffer\n * the array in which to store the bytes read.\n * @param offset\n * the initial position in {@code buffer} to store the bytes read\n * from this stream.\n * @param count\n * the maximum number of bytes to store in {@code buffer}.\n * @return the number of bytes read or -1 if the end of this stream has been\n * reached.\n * @throws IOException\n * if this stream is closed or another I/O error occurs.\n */\n public int read(byte[] buffer, int offset, int count) throws IOException;\n\n /**\n * Reads the next object from this stream.\n *\n * @return the object read.\n *\n * @throws ClassNotFoundException\n * if the object's class cannot be found.\n * @throws IOException\n * if this stream is closed or another I/O error occurs.\n */\n public Object readObject() throws ClassNotFoundException, IOException;\n\n /**\n * Skips {@code toSkip} bytes on this stream. Less than {@code toSkip} byte are\n * skipped if the end of this stream is reached before the operation\n * completes.\n *\n * @param toSkip\n * the number of bytes to skip.\n * @return the number of bytes actually skipped.\n *\n * @throws IOException\n * if this stream is closed or another I/O error occurs.\n */\n public long skip(long toSkip) throws IOException;\n}", "Inputs getInputs();", "Input getInputs();", "InputPromptTransmitter getInputPromptTransmitter();", "InputValueDefinition createInputValueDefinition();", "public InputManager(){\n this.view = new View();\n }", "synchronized void giveInput(int input) {\n this.input = input;\n inputGiven = true;\n notifyAll();\n }", "protected void setupInputs() {\n \tim=new GenericInputManager();\n \tArrayList<Controller> controllers=im.getControllers();\n \t\n \tfor(Controller controller:controllers) {\n \t\tplayer.setupInputs(im, controller);\n \t}\n \t\t\t\n \t\n }", "public interface Input \n{\n\t/*\n\t * Use to initialise input\n\t */\n\tboolean initialise (String args);\n\t/*\n\t * Return a line or return null\n\t */\n\tString getLine ();\n\t\n}", "void registerInputConnector(String name, InputConnector in);", "TclInputStream(InputStream inInput) {\n input = inInput;\n }", "public ExecuteLocalActivityParameters withInput(byte[] input) {\n this.input = input;\n return this;\n }", "protected T input() {\n\t\tRecordReader<T> inputReader = getReader(getMainConstraint());\n\t\tif (inputReader == null) {\n\t\t\tLogger.getLogger(OneToManyLookupProcessNode.class).error(\"no main reader!\"); //$NON-NLS-1$\n\t\t\treturn null;\n\t\t}\n\t\tT inputRecord = inputReader.read();\n\t\tif (inputRecord == null) {\n\t\t\tLogger.getLogger(OneToManyLookupProcessNode.class).info(\"end of input\"); //$NON-NLS-1$\n\t\t\treturn null;\n\t\t}\n\t\t// Logger.getLogger(OneToManyLookupProcessNode.class).info(\"got input\"); //$NON-NLS-1$\n\t\tsetInCount(getInCount() + 1);\n\t\tif (getProgressCount() > 0 && getInCount() % getProgressCount() == 0) {\n\t\t\tLogger.getLogger(ProcessNode.class).info(\"input records: \" + getInCount()); //$NON-NLS-1$\n\t\t\tlong newTime = System.currentTimeMillis();\n\t\t\tLogger.getLogger(ProcessNode.class).info(\n\t\t\t\t\"duration: \" + String.valueOf(((double) newTime - (double) getTime()) / 1000)); //$NON-NLS-1$\n\t\t\tsetTime(newTime);\n\t\t}\n\t\treturn inputRecord;\n\t}", "protected Object newInitialFlow() {\n\t\treturn emptySet.clone();\n\t}", "public void setInput(String input) { this.input = input; }", "public void setInputs() {\n\t\tCIVLTable tbl_inputTable = (CIVLTable) getComponentByName(\"tbl_inputTable\");\n\t\tDefaultTableModel inputModel = (DefaultTableModel) tbl_inputTable\n\t\t\t\t.getModel();\n\t\tArrayList<CIVL_Input> inputList = currConfig.getInputs();\n\t\tinputList.clear();\n\t\tGMCSection gmcs = currConfig.getGmcConfig().getAnonymousSection();\n\t\tfor (int j = 0; j < inputModel.getRowCount(); j++) {\n\t\t\tString name = (String) inputModel.getValueAt(j, 0);\n\t\t\tString type = inputModel.getValueAt(j, 1).toString();\n\t\t\tObject value = inputModel.getValueAt(j, 2);\n\t\t\tString init = \"\";\n\n\t\t\tif (inputModel.getValueAt(j, 3) != null) {\n\t\t\t\tinit = inputModel.getValueAt(j, 3).toString();\n\t\t\t}\n\n\t\t\tCIVL_Input input = new CIVL_Input(name, type);\n\t\t\tinput.setValue(value);\n\t\t\tinput.setInitializer(init);\n\t\t\tinputList.add(input);\n\n\t\t\t// Add the inputs to the value map in GMCSection\n\t\t\tif (!value.toString().equals(\"\")) {\n\t\t\t\tgmcs.putMapEntry(CIVLConstants.inputO, input.getName(),\n\t\t\t\t\t\tinput.getValue());\n\t\t\t}\n\t\t}\n\n\t}", "public void setInput(String input);", "public Input getInput() {\r\n return localInput;\r\n }", "public void setInput(Input param) {\r\n localInputTracker = param != null;\r\n\r\n this.localInput = param;\r\n }", "com.indosat.eai.catalist.standardInputOutput.DummyInputDocument.DummyInput getDummyInput();", "InteractionFlowModel createInteractionFlowModel();", "public InputView()\n\t{\n\t\tthis.layoutView();\n\t\tthis.registerButtons();\n\t}", "public void getInput(String input) {\n ((problemGeneratorArrayListener) activity).problemGeneratorArrayActivity(input);\n }", "ListeningFuture<Boolean> setInput(String input);", "public byte[] getInput() {\n return input;\n }", "protected SystemInputDef getRequestInputModel( OpenAPI api)\n {\n SystemInputDef inputDef = TcasesOpenApi.getRequestInputModel( api, getModelOptions());\n return inputDef;\n }", "static final ListenableFuture<InputList> toSystemInputs(\n\t\t\tfinal SystemSourceSet sourceSet,\n\t\t\tfinal Site site,\n\t\t\tfinal Executor ex) {\n\n\t\treturn transform(\n\t\t\timmediateFuture(sourceSet),\n\t\t\tnew SystemSourceSet.ToInputs(site),\n\t\t\tex);\n\t}", "public SampleSnapshotTaskInput(SampleSnapshotTaskInput source) {\n if (source.Definition != null) {\n this.Definition = new Long(source.Definition);\n }\n if (source.WatermarkSet != null) {\n this.WatermarkSet = new WatermarkInput[source.WatermarkSet.length];\n for (int i = 0; i < source.WatermarkSet.length; i++) {\n this.WatermarkSet[i] = new WatermarkInput(source.WatermarkSet[i]);\n }\n }\n }", "public void setInput(SVIResource in) throws Exception;", "void requestInput();", "public InputLock(InputMultiplexer input) {\r\n\t\tthis(input, true, true, true, true, true, true, true, true);\r\n\t}", "void setInputs(List<ContractIOType> inputs) {\n this.inputs = inputs;\n }", "public DQLEditorInput()\n\t{\n\n\t\tsuper();\n\t\tsetStorage(new DQLStorage(this));\n\t}", "protected void initializeExpectedModelForRadioSampleRadioRequiredProperty() throws InputModelInvalidException, IOException {\n\t\t// Create the expected model content by applying the attempted command on a copy of the input model content\n\t\tcreateExpectedModel();\n\t\tEObject radioSample = EEFTestsModelsUtils.getFirstInstanceOf(expectedModel, radioSampleMetaClass);\n\t\tif (radioSample == null)\n\t\t\tthrow new InputModelInvalidException(radioSampleMetaClass.getName());\n\t\tCompoundCommand cc = new CompoundCommand();\n\t\t\t\tcc.append(SetCommand.create(editingDomain, radioSample, EefnrPackage.eINSTANCE.getRadioSample_RadioRequiredProperty(), EefnrPackage.eINSTANCE.getENUM_SAMPLE().getEEnumLiteralByLiteral(enumValueForRadioRequiredProperty.toString()).getInstance()));\n\t\teditingDomain.getCommandStack().execute(cc);\n\t\texpectedModel.save(Collections.EMPTY_MAP);\n\t}", "public TextInput() {\n // initialise instansvariables\n }", "public interface MyInputChannel {\n\n String INPUT = \"source\";\n @Input(INPUT)\n SubscribableChannel source();\n}", "public interface InputProvider {\n\n public Answer getNextInput();\n\n public Answer getNextInput(Question question);\n\n // Get a copy of the template\n // and replace the questions with the answers\n public void generate(File file) throws IOException;\n\n\n}", "public interface UserInputService {\n\n void initialize();\n\n int getNumberOfLarge();\n}", "public static InputParametersI getInstance() {\n\n return inputParamsObj;\n }", "public void setInputData(String[] inputData) {\r\n // separate input into command and parameters\r\n String command = inputData[0];\r\n String[] parameters = Arrays.copyOfRange(inputData, 1, inputData.length);\r\n this.command = command;\r\n this.parameters = parameters;\r\n }", "private DependencyManager(Map<TypedKey<?>, Object> inputs)\n\t{\n\t\tmap.putAll(inputs);\n\t}", "static final AsyncList<ClusterInputs> toClusterInputs(\n\t\t\tfinal ClusterSourceSet sourceSet,\n\t\t\tfinal Site site,\n\t\t\tfinal Executor ex) {\n\n\t\tFunction<ClusterSource, ClusterInputs> function = new ClusterSourceToInputs(site);\n\t\tAsyncList<ClusterInputs> result = AsyncList.create();\n\t\tfor (ClusterSource source : sourceSet.iterableForLocation(site.location)) {\n\t\t\tresult.add(transform(immediateFuture(source), function, ex));\n\t\t}\n\t\treturn result;\n\t}", "public a(RdsInputItemPresenterImpl rdsInputItemPresenterImpl, RdsInputItemView rdsInputItemView, ParameterElement.Input input) {\n super(1);\n this.a = rdsInputItemPresenterImpl;\n this.b = rdsInputItemView;\n this.c = input;\n }", "public DMXUserInput() {\n }", "public MyInput() {\r\n\t\tthis.scanner = new Scanner(System.in);\r\n\t}", "protected SelectionText input() {\n return inputter;\n }", "com.google.cloud.dialogflow.v2.InputConfigOrBuilder getInputConfigOrBuilder();", "public void setInput(File input) {\r\n if (inputString != null) {\r\n throw new BuildException(\"The \\\"input\\\" and \\\"inputstring\\\" \" + \"attributes cannot both be specified\");\r\n }\r\n this.input = input;\r\n incompatibleWithSpawn = true;\r\n }", "protected Command(String input, String[] data) {\n this.setInput(input);\n this.setData(data);\n }", "public Workflow init() throws IOException, ReflectiveOperationException {\n List<UtteranceProcessor> processors = new ArrayList<>();\n for (UtteranceProcessorConfig upc : processorConfigs) {\n processors.add(upc.init());\n }\n \n List<IntentMatcher> matchers = new ArrayList<>();\n if (matcherConfigs.size() < 1) {\n matchers.add(IntentMatcherConfig.getDefault());\n } else {\n for (IntentMatcherConfig imc : matcherConfigs) {\n matchers.add(imc.init());\n }\n }\n \n List<IntentResolver> resolvers = new ArrayList<>();\n if (resolverConfigs.size() < 1) {\n resolvers.add(IntentResolverConfig.getDefault());\n } else {\n for (IntentResolverConfig irc : resolverConfigs) {\n resolvers.add(irc.init());\n }\n }\n \n List<PromptHandler> promptHandlers = new ArrayList<>();\n if (promptHandlerConfigs.size() < 1) {\n promptHandlers.add(PromptHandlerConfig.getDefault());\n } else {\n for (PromptHandlerConfig phc : promptHandlerConfigs) {\n promptHandlers.add(phc.init());\n }\n }\n return DefaultWorkflowFactory.get().createDefaultWorkflow(\n name, processors, matchers, resolvers, promptHandlers);\n }", "public FrameworkCommand(String input, ObjectType init) \n {\n commandString = input.toUpperCase();\n initiator = init;\n\n // todo: verb as first word?\n \n /* This is a crummy timestamp.. We'll hope to do better in subclasses \n using scheduler instances. */\n lTimestamp = System.currentTimeMillis() * 1000;\n }", "@Override\n public void stateChanged()\n {\n if (this.systemUpdated)\n {\n inputModelReady = true;\n }\n }", "public ConnectedComponentFromSeed()\r\n/* 25: */ {\r\n/* 26: 32 */ this.inputFields = \"input, seed\";\r\n/* 27: 33 */ this.outputFields = \"output\";\r\n/* 28: */ }", "public JsonFactory setInputDecorator(InputDecorator d)\n/* */ {\n/* 611 */ this._inputDecorator = d;\n/* 612 */ return this;\n/* */ }", "InputPort createInputPort();", "protected void sequence_QueryInput(ISerializationContext context, QueryInput semanticObject) {\n\t\tgenericSequencer.createSequence(context, semanticObject);\n\t}", "public Input(MOSEFSettings settings) {\n this.settings = settings;\n\n try {\n AudioFormat format =\n new AudioFormat(settings.getSampleRate(), settings.getBitRate(), 1, true, true);\n int byterate = settings.getBitRate() / 8;\n this.bufferSize = settings.getBufferSize() * byterate;\n targetLine = AudioSystem.getTargetDataLine(format);\n targetLine.open(format, bufferSize);\n this.buffers = new ArrayBlockingQueue<>(3);\n\n Runnable runner = new Runnable() {\n @Override\n public void run() {\n ByteBuffer byteBuffer = ByteBuffer.allocate(bufferSize);\n ShortBuffer shortBuffer = byteBuffer.asShortBuffer();\n double scale = FastMath.pow(2, -settings.getBitRate() - 1);\n byte[] bytes = new byte[bufferSize];\n double[] buffer = new double[settings.getBufferSize()];\n\n while (running) {\n targetLine.read(bytes, 0, bytes.length);\n byteBuffer.rewind();\n byteBuffer.put(bytes);\n shortBuffer.rewind();\n for (int i = 0; i < settings.getBufferSize(); i++) {\n buffer[i] = shortBuffer.get(i) * scale;\n }\n buffers.add(buffer);\n }\n targetLine.stop();\n }\n };\n this.inputThread = new Thread(runner);\n } catch (Exception e) {\n System.err.println(e);\n }\n }", "public void setInput(String input){\n this.input = input;\n }", "public void beginInput() {\n this.currentState = states.INPUT;\n this.currentIndex = 1;\n this.currentUnit = getUnit(this.currentIndex);\n this.currentChName = this.currentUnit.chName;\n }", "public DQLEditorInput(IStorage aStorage)\n\t{\n\n\t\tsuper();\n\t\tsetStorage(aStorage);\n\t}", "protected void initialize() { \n param1 = SmartDashboard.getNumber(\"param1\");\n param2 = SmartDashboard.getNumber(\"param2\");\n param3 = SmartDashboard.getNumber(\"param3\");\n param4 = SmartDashboard.getNumber(\"param4\");\n command = new C_DriveBasedOnEncoderWithTwist(param1, param2, param3);\n }", "@Override\n\tpublic void inputStarted() {\n\n\t}", "public NuanceMixDlgSettings inputParameters(Map<String, Object> inputParameters) {\n this.inputParameters = inputParameters;\n return this;\n }", "public InputConnector getInputConnector()\n {\n return inputConnector;\n }", "void setDummyInput(com.indosat.eai.catalist.standardInputOutput.DummyInputDocument.DummyInput dummyInput);", "public Dataset withInput(Input input) {\n setInput(input);\n return this;\n }", "public String getInput() {\n return input;\n }", "public br.unb.cic.bionimbus.avro.gen.JobInfo.Builder setInputs(java.util.List<br.unb.cic.bionimbus.avro.gen.Pair> value) {\n validate(fields()[4], value);\n this.inputs = value;\n fieldSetFlags()[4] = true;\n return this; \n }", "@Parameterized.Parameters(name = \"{0}_{1}_{2}\")\n public static Collection inputs()\n {\n iotHubConnectionString = Tools.retrieveEnvironmentVariableValue(TestConstants.IOT_HUB_CONNECTION_STRING_ENV_VAR_NAME);\n IntegrationTest.isBasicTierHub = Boolean.parseBoolean(Tools.retrieveEnvironmentVariableValue(TestConstants.IS_BASIC_TIER_HUB_ENV_VAR_NAME));\n IntegrationTest.isPullRequest = Boolean.parseBoolean(Tools.retrieveEnvironmentVariableValue(TestConstants.IS_PULL_REQUEST));\n\n return Arrays.asList(\n new Object[][]\n {\n //Query is only supported over http and only with sas based authentication\n {HTTPS, SAS, ClientType.DEVICE_CLIENT},\n });\n }", "public TrackdInputDevice() {\n }", "public static void setInputFactory(final IInputFactory inputFactory) {\n\n m_InputFactory = inputFactory;\n\n }", "InOut createInOut();", "protected void initializeExpectedModelForEObjectFlatComboViewerSampleEobjectflatcomboviewerRequiredPropery() throws InputModelInvalidException, IOException {\n\t\t// Create the expected model content by applying the attempted command on a copy of the input model content\n\t\tcreateExpectedModel();\n\t\tEObject eObjectFlatComboViewerSample = EEFTestsModelsUtils.getFirstInstanceOf(expectedModel, eObjectFlatComboViewerSampleMetaClass);\n\t\tif (eObjectFlatComboViewerSample == null)\n\t\t\tthrow new InputModelInvalidException(eObjectFlatComboViewerSampleMetaClass.getName());\n\t\tCompoundCommand cc = new CompoundCommand();\n\t\tallInstancesOf = EEFTestsModelsUtils.getAllInstancesOf(expectedModel, totalSampleMetaClass);\n\t\treferenceValueForEobjectflatcomboviewerRequiredPropery = bot.changeReferenceValue(allInstancesOf, ((EObjectFlatComboViewerSample)eObjectFlatComboViewerSample).getEobjectflatcomboviewerRequiredPropery());\n\t\tcc.append(SetCommand.create(editingDomain, eObjectFlatComboViewerSample, EefnrPackage.eINSTANCE.getEObjectFlatComboViewerSample_EobjectflatcomboviewerRequiredPropery(), referenceValueForEobjectflatcomboviewerRequiredPropery));\n\t\teditingDomain.getCommandStack().execute(cc);\n\t\texpectedModel.save(Collections.EMPTY_MAP);\n\t}", "private SyncState() {}", "private Input(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }" ]
[ "0.6090266", "0.5999262", "0.5989086", "0.5887627", "0.54990363", "0.542836", "0.5340888", "0.5241658", "0.5212821", "0.52107084", "0.51169115", "0.51113784", "0.50668263", "0.49938747", "0.49919844", "0.4975674", "0.49741104", "0.4953343", "0.49528134", "0.49320453", "0.4866735", "0.48645738", "0.48607326", "0.48601097", "0.48522097", "0.4849691", "0.48496252", "0.48454785", "0.48445624", "0.48248994", "0.48214534", "0.48033693", "0.48021632", "0.47896844", "0.478723", "0.47871545", "0.47752804", "0.4735181", "0.47345442", "0.47256082", "0.47213802", "0.47201884", "0.47162524", "0.47040462", "0.46921217", "0.46906602", "0.46880782", "0.46809936", "0.4676799", "0.4664717", "0.4656609", "0.46556494", "0.46437854", "0.46345186", "0.4628248", "0.4621085", "0.46201342", "0.46136335", "0.4609449", "0.4596713", "0.4577914", "0.45777714", "0.4571542", "0.45626557", "0.45614383", "0.45562044", "0.45478547", "0.4537308", "0.45364925", "0.45328957", "0.45238724", "0.4514318", "0.45128405", "0.45096335", "0.4505908", "0.4495981", "0.44927037", "0.44921955", "0.44823036", "0.44763502", "0.44738638", "0.44683835", "0.44549567", "0.4452903", "0.44500995", "0.44428882", "0.44411913", "0.44392592", "0.44362956", "0.44360372", "0.443488", "0.44331804", "0.4431235", "0.44297364", "0.44241172", "0.4417554", "0.44099027", "0.44080776", "0.44070795", "0.44059357", "0.4401214" ]
0.0
-1
Invoked by the buildModelObject method to create the childen of the given node. This method can be overriden by subclasses but subclasses should inv
protected IDiffElement[] createModelObjects(ISynchronizeModelElement container) { IResource resource = null; if (container == getModelRoot()) { resource = ResourcesPlugin.getWorkspace().getRoot(); } else { resource = container.getResource(); } if(resource != null) { SyncInfoTree infoTree = getSyncInfoTree(); IResource[] children = infoTree.members(resource); ISynchronizeModelElement[] nodes = new ISynchronizeModelElement[children.length]; for (int i = 0; i < children.length; i++) { nodes[i] = createModelObject(container, children[i]); } return nodes; } return new IDiffElement[0]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tprotected CodeSyncElement createModelElementChild(EObject object, View child) {\n\t\treturn null;\r\n\t}", "public ChildNode() {\r\n\t\tsuper();\r\n\t\t// TODO Auto-generated constructor stub\r\n\t}", "void create(Node node) {\n if (node.table.negatives() == 0) {\r\n node.atribute = 1;\r\n return;\r\n }\r\n if (node.table.positives() == 0) {\r\n node.atribute = 0;\r\n return;\r\n }\r\n\r\n //If no test split the data, make it a leaf with the majoriti of the target atribute\r\n int atr;\r\n //Choose the best atribute\r\n atr = this.chooseBestAtrib(node);\r\n node.atribute = atr;\r\n\r\n //No atribute split the data, so make the node a leaf with the majoriti of the class (either positive or negative)\r\n if (node.atribute == -1) {\r\n //System.out.println(\"Atribute is -1 in TeeBuidler.create\");\r\n if (node.table.negatives() > node.table.positives()) {\r\n node.atribute = 0;\r\n return;\r\n }\r\n if (node.table.positives() >= node.table.negatives()) {\r\n node.atribute = 1;\r\n return;\r\n }\r\n }\r\n\r\n Table table_left = new Table(), table_right = new Table();\r\n node.table.splitByAtrib(node.atribute, table_left, table_right);\r\n\r\n //Create two children for the current node //parameters: identifier,parent_result,atribute of split,id_child1, id_child2, table\r\n node.child_left = new Node(node.id + node.id, \"1\", -1, -1, -1, table_left);\r\n node.child_right = new Node(node.id + node.id+1, \"0\", -1, -1, -1, table_right);\r\n node.id_child_left = node.id + node.id;\r\n node.id_child_right = node.id + node.id+1;\r\n\r\n\r\n TreeBuilder builder = new TreeBuilder();\r\n builder.create(node.child_left);\r\n builder.create(node.child_right);\r\n\r\n }", "private void clickCreateChildModel(FMEditor fmEditor, VMFile file) {\n ClickHandler clickHandler = new ClickHandler() {\n\n @Override\n public void onClick(MenuItemClickEvent event) {\n List<DrawRect> drawRects = fmEditor.nodeManager.getSelectDrawRect();\n FMDrawNode drawNode = fmEditor.getDrawRectMap().get(drawRects.get(0).hashCode());\n FMNode node = drawNode.getFmNode();\n\n editResourceService.getDirId(file.getId(), new AsyncCallback<Long>() {\n\n @Override\n public void onFailure(Throwable caught) {\n SC.warn(caught.getMessage());\n }\n\n @Override\n public void onSuccess(Long dirID) {\n VMFile childModelFile = new VMFile();\n childModelFile.setExtension(Extension.FM);\n String fileName = file.getName() + \"_child\";\n\n editResourceService.getResources(dirID, new AsyncCallback<List<VMResource>>() {\n\n @Override\n public void onFailure(Throwable caught) {\n SC.warn(caught.getMessage());\n }\n\n @Override\n public void onSuccess(List<VMResource> result) {\n // check duplicate file name under same directory and set file name\n childModelFile.setName(checkDuplicateName(result, fileName, childModelFile.getExtension(), 0));\n ZGCreateFileCommand createFileCommand = new ZGCreateFileCommand(editResourceService, viewHandler, dirID, childModelFile, null);\n createFileCommand.addCommandListener(new CommandListener() {\n\n @Override\n public void undoEvent() {\n treeGrid.deselectAllRecords();\n fileTreeNodeFactory.removeVMResource(createFileCommand.getFileId());\n fileTreeNodeFactory.refresh(editorTabSet, tree, tabRegs);\n treeGrid.sort();\n treeGrid.redraw();\n }\n\n @Override\n public void redoEvent() {\n createCallbackFile(fileTreeNodeFactory.findTreeNode(tree, createFileCommand.getParentId()), createFileCommand.getFile(),\n createFileCommand.getFileId(), true);\n }\n\n @Override\n public void executeEvent() {\n createCallbackFile(fileTreeNodeFactory.findTreeNode(tree, createFileCommand.getParentId()), createFileCommand.getFile(),\n createFileCommand.getFileId(), true);\n // set node reference\n editResourceService.getFileContent(createFileCommand.getFileId(), new AsyncCallback<byte[]>() {\n\n @Override\n public void onFailure(Throwable caught) {\n SC.warn(caught.getMessage());\n }\n\n @Override\n public void onSuccess(byte[] result) {\n BinaryResourceImpl r = new BinaryResourceImpl();\n ByteArrayInputStream bi = new ByteArrayInputStream(result);\n EPackage.Registry.INSTANCE.put(FMPackage.eNS_URI, FMPackage.eINSTANCE);\n\n FMRoot root = null;\n try {\n r.load(bi, EditOptions.getDefaultLoadOptions());\n root = (FMRoot) r.getContents().get(0);\n } catch (IOException e) {\n SC.warn(e.getMessage());\n }\n String refFileName = childModelFile.getName() + \".\" + childModelFile.getExtensionStr();\n CompoundCommand cmd = FMEditorCommandProvider.getInstance().setReferenceNode(node, createFileCommand.getFileId(),\n root.getNode().getName(), refFileName, root.getId());\n fmEditor.getEditManager().execute(cmd.unwrap());\n drawNode.getDrawRect().setTitle(node.getName() + \":\" + node.getRefName() + \"\\n(\" + refFileName + \")\");\n\n selectRootNode(editorTabSet.getSelectedTab());\n }\n });\n }\n\n @Override\n public void bindEvent() {\n viewHandler.clear();\n registerRightClickEvent();\n }\n });\n CompoundCommand c = new CompoundCommand();\n c.append(createFileCommand);\n manager.execute(c.unwrap());\n }\n });\n }\n });\n }\n };\n fmEditor.addCreateChildModelHandler(clickHandler);\n }", "public abstract void addChild(Node node);", "public void createChild (GenericTreeNode<String> daddy)\r\n\t{\r\n\t\t\tList < GenericTreeNode<String> > child= daddy.getChildren();\r\n\t\t\r\n\t\tif (daddy.getData().equalsIgnoreCase(\"next.CommonProfile.Dashboard_SI\")){\r\n\t\t\tchild.add(new GenericTreeNode<String>(\"next.SupportFunctionality.VoiceRecogFunctionality\"));\r\n\t\t\tchild.add(new GenericTreeNode<String>(\"next.Admin.Admin_Principal\"));\r\n\t\t\tchild.add(new GenericTreeNode<String>(\"next.Client.Client_Principal\"));\t\r\n\t\t\tchild.add(new GenericTreeNode<String>(\"next.Member.Member_Principal\"));\t\r\n\t\t}\r\n\t\telse if (daddy.getData().equalsIgnoreCase(\"next.CommonProfile.Dashboard_SU\")){\r\n\t\t\tchild.add(new GenericTreeNode<String>(\"next.SupportFunctionality.VoiceRecogFunctionality\"));\r\n\t\t\t//child.add(new GenericTreeNode<String>(\"next.CommonProfile.DashboardPrincipal\"));\t\r\n\t\t}\r\n\t\telse if (daddy.getData().equalsIgnoreCase(\"next.Admin.Admin_Principal\")){\r\n\t\t\tchild.add(new GenericTreeNode<String>(\"next.CommonProfile.PersonalInfo\"));\r\n\t\t\tchild.add(new GenericTreeNode<String>(\"next.CommonProfile.Products\"));\r\n\t\t\tchild.add(new GenericTreeNode<String>(\"next.Admin.Business_Rules\"));\r\n\t\t\tchild.add(new GenericTreeNode<String>(\"next.view.support.CustomList\"));\r\n\t\t\tchild.add(new GenericTreeNode<String>(\"next.SupportFunctionality.VoiceRecogFunctionality\"));\r\n\t\t}\r\n\t\telse if (daddy.getData().equalsIgnoreCase(\"next.view.support.CustomList\")){\r\n\t\t\tchild.add(new GenericTreeNode<String>(\"next.SupportFunctionality.VoiceRecogFunctionality\"));\r\n\t\t\tchild.add(new GenericTreeNode<String>(\"next.SupportFunctionality.MapsFunctionality\"));\r\n\t\t\t\r\n\t\t}else if (daddy.getData().equalsIgnoreCase(\"next.SupportFunctionality.MapsFunctionality\")){\r\n\t\t\tchild.add(new GenericTreeNode<String>(\"next.SupportFunctionality.VoiceRecogFunctionality\"));\r\n\t\t\t\r\n\t\t\t\r\n\t\t}\r\n\r\n\t\tdaddy.setChildren(child);\r\n\t\t for (GenericTreeNode<String> node : daddy.getChildren()) {\r\n\t\t\t createChild (node);\r\n\t }\r\n\t}", "@SuppressWarnings(\"unchecked\")\n protected synchronized T newChild() {\n try {\n T t = ((Class<T>)getClass()).newInstance();\n t.isRootNode = false;\n \n if( ! isRootNode ) {\n if( children == null ) children = new ArrayList<T>();\n children.add( t );\n }\n \n return t;\n } catch( Exception ex ) {\n throw new RuntimeException(ex);\n }\n }", "private TypeNode addNode (String parentName, TypeDescription childTypeMetadata) \n {\t\n // Find \"parent\" node\n if (parentName != null && parentName.trim().length() == 0) {\n parentName = null;\n }\n TypeNode nodeParent = null;\n if (parentName != null) {\n nodeParent = (TypeNode) _nodesHashtable.get(parentName);\n }\n \n // Find \"child\" node\n String childName = childTypeMetadata.getName();\n \tTypeNode node = (TypeNode) _nodesHashtable.get(childName);\n\n \t// System.err.println(\" parentName: \" + parentName + \" ; childName: \" + childName);\n \n // NEW type definition ?\n \tif ( node == null ) {\t\t\n \t\t// Not found \"child\". NEW type definition.\n \t\tif ( nodeParent == null ) {\n // Parent is NEW\n // TOP has null parent\n if (parentName != null) {\n TypeDescription typeParent = getBuiltInType(parentName);\n if (typeParent != null) {\n // Built-in Type as Parent\n nodeParent = addNode (typeParent.getSupertypeName(), typeParent);\n // Trace.trace(\" -- addNode: \" + childName + \" has New Built-in Parent: \" + parentName);\n } else { \n \t\t\t// NEW parent also.\n // \"parentName\" is FORWARD Reference Node\n \t\t\tnodeParent = insertForwardedReferenceNode(_rootSuper, parentName); \n // Trace.trace(\" -- addNode: \" + childName + \" has New FORWARD Parent: \" + parentName);\n }\n }\n \t\t}\n \t\t// System.out.println(\" -- addNode: New child\");\t\t\n \t\treturn insertNewNode (nodeParent, childTypeMetadata);\n \t}\n \t\n //\n // childTypeMetadata is ALREADY in Hierarchy\n //\n \n \t// This node can be a Forwarded Reference type\n \tif (node.getObject() == null) {\n \t\t// Set Object for type definition\n \t\t// Reset label.\n \t\t// Trace.trace(\"Update and define previously forwarded reference type: \"\n \t\t//\t\t+ node.getLabel() + \" -> \" + parentName);\n // Need to \"remove\" and \"put\" back for TreeMap (no modification is allowed ?)\n node.getParent().removeChild(node);\n \t\tnode.setObject(childTypeMetadata);\n node.setLabel(childTypeMetadata.getName());\n node.getParent().addChild(node);\n \n // Remove from undefined types\n // Trace.trace(\"Remove forward ref: \" + childTypeMetadata.getName());\n _undefinedTypesHashtable.remove(childTypeMetadata.getName());\n \t}\n \t\n \tif (parentName == null) {\n \t\t// NO Parent\n if (childTypeMetadata.getName().compareTo(UIMA_CAS_TOP) != 0) {\n Trace.err(\"??? Possible BUG ? parentName==null for type: \"\n + childTypeMetadata.getName());\n }\n \t\treturn node;\n \t}\n \t\n \t// Found \"child\".\n \t// This node can be the \"parent\" of some nodes \n \t// and it own parent is \"root\" OR node of \"parentName\".\n \tif ( node.getParent() == _rootSuper ) {\n \t\t// Current parent is SUPER which may not be the right parent\n \t\t// if \"node\" has a previously forward referenced parent of some type.\n \t\t// Find the real \"parent\".\n \t\tif ( nodeParent != null ) {\n \t\t // Parent node exists. \n \t\t\tif ( nodeParent != _rootSuper ) {\n \t\t\t // Move \"node\" from \"root\" and put it as child of \"nodeParent\"\n \t\t\t\t// Also, remove \"node\" from \"root\"\n \t\t\t // _rootSuper.getChildren().remove(node.getLabel());\n // System.out.println(\"B remove\");\n \t\t\t if (_rootSuper.removeChild(node) == null) {\n System.out.println(\"??? [.addNode] Possible BUG 1 ? cannot remove \"\n + node.getLabel() + \" from SUPER\");\n System.out.println(\" node: \" + ((Object)node).toString()); \n Object[] objects = _rootSuper.getChildrenArray();\n for (int i=0; i<objects.length; ++i) {\n System.out.println(\" \" + objects[i].toString()); \n } \n }\n // System.out.println(\"E remove\");\n \t\t\t} else {\n \t\t\t\t// \"nodeParent\" is \"SUPER\".\n \t\t\t\treturn node;\n \t\t\t}\n \t\t} else {\n \t\t\t// NEW parent\n\t\t\t\t// Remove \"node\" from \"SUPER\" and insert it as child of \"nodeParent\"\n\t\t\t // _rootSuper.getChildren().remove(node);\n if (_rootSuper.removeChild(node) == null) {\n System.err.println(\"??? [.addNode] Possible BUG 2 ? cannot remove \"\n + node.getLabel() + \" from SUPER\");\n }\t\t\t \n TypeDescription typeParent = getBuiltInType(parentName);\n if (typeParent != null) {\n // Built-in Type as Parent\n nodeParent = addNode (typeParent.getSupertypeName(), typeParent);\n // Trace.trace(\" -- addNode 2: \" + childName + \" has New Built-in Parent: \" + parentName);\n } else { \n \t\t\t // It is a NEW parent and this parent is forwarded reference (not defined yet). \n \t\t\t // Insert this parent as child of \"SUPER\"\n \t\t\t\tnodeParent = insertForwardedReferenceNode(_rootSuper, parentName);\n // Trace.trace(\" -- addNode 2: \" + childName + \" has New FORWARD Parent: \" + parentName);\n }\n \t\t}\t\t\t\t\n \t\tTypeNode tempNode;\n \t\tif ( (tempNode = nodeParent.insertChild(node)) != null && tempNode != node) {\n \t\t\t// Duplicate Label\n Trace.err(\"Duplicate Label 1\");\n// \t\t\tnode.setShowFullName(true);\n \t\t\tif (node.getObject() != null) {\n \t\t\t\tnode.setLabel(((TypeDescription)node.getObject()).getName());\n \t\t\t}\t\t\t\t\n \t\t\tnodeParent.insertChild(node);\n \t\t}\n \t} else if ( node.getParent() != null ) {\n \t //\n \t //\tERROR !!!\n \t\t// \"duplicate definition\" or \"have different parents\"\n \t //\n \t \n \t // \"nodeParent\" should be non-null and be the same as \"node.getParent\"\n \t // In this case, it is duplicate definition\n \t if ( nodeParent != null ) {\n \t if (nodeParent == node.getParent()) {\n \t\t\t\t// Error in descriptor\n \t\t // Duplicate definition\n \t\t\t\t// System.err.println(\"[TypeSystemHierarchy - addNode] Duplicate type: child=\" + childName + \" ; parent =\" + parentName);\n \t } else {\n \t // Error: \"node\" has different parents\n \t // Both parents are registered\n \t\t\t\tSystem.err.println(\"[TypeSystemHierarchy - addNode] Different registered parents: child=\" + childName \n \t\t\t\t + \" ; old node.getParent() =\" + node.getParent().getLabel()\n \t\t\t\t + \" ; new parent =\" + parentName);\n \t }\n \t } else {\n \t // Error \n // Error: \"node\" has different parents\n // Old parent is registered\n \t // New parent is NOT registered\n \t\t\tSystem.err.println(\"[TypeSystemHierarchy - addNode] Different parents: child=\" + childName \n \t\t\t + \" ; old registered node.getParent() =\" + node.getParent().getLabel()\n \t\t\t + \" ; new NON-registered parent =\" + parentName);\n \t }\n \t return null; // ERROR\n \n \t} else {\n \t\t//\n \t // Program BUG !!!\n \t\t// since Parent of \"registered\" node cannot be null.\n // if (childTypeMetadata.getName().compareTo(UIMA_CAS_TOP) != 0) {\n System.err.println(\"[TypeSystemHierarchy - addNode] Program BUG !!! (node.getParent() == null): child=\" + childName + \" ; parent =\" + parentName);\n return null;\n // }\n \t}\n \t\t\n \treturn node;\n }", "@Override\n\tpublic void addChild(Node node) {\n\t\t\n\t}", "@Override\n\tpublic EntityAgeable createChild(EntityAgeable mate) {\n\t\treturn getReproductionHelper().createChild(mate);\n\t}", "public void addChild( ChildType child );", "private Node addChild(Node parent, NodeTypes type, String name, String indexName) {\r\n Node child = null;\r\n child = neo.createNode();\r\n child.setProperty(INeoConstants.PROPERTY_TYPE_NAME, type.getId());\r\n // TODO refactor 2 property with same name!\r\n child.setProperty(INeoConstants.PROPERTY_NAME_NAME, name);\r\n child.setProperty(INeoConstants.PROPERTY_SECTOR_NAME, indexName);\r\n luceneInd.index(child, NeoUtils.getLuceneIndexKeyByProperty(getNetworkNode(), INeoConstants.PROPERTY_NAME_NAME, type),\r\n indexName);\r\n if (parent != null) {\r\n parent.createRelationshipTo(child, NetworkRelationshipTypes.CHILD);\r\n debug(\"Added '\" + name + \"' as child of '\" + parent.getProperty(INeoConstants.PROPERTY_NAME_NAME));\r\n }\r\n return child;\r\n }", "void depend(int parentID, int childID){\n check(parentID, childID);\n nodes_[childID].parent_ = parentID;\n nodes_[parentID].addChild(childID);\n }", "public DynamicModelPart buildChildren() {\n this.children.parallelStream().forEach(child -> {\n child.build();\n });\n return this;\n }", "protected void addChild(PafDimMember childNode) throws PafException {\r\n\t\t\r\n\t\ttry {\r\n\t\t\t// Create a new ArrayList of child nodes, if this is the first child\r\n\t\t\tif (children == null) \r\n\t\t\t\tchildren = new ArrayList<PafDimMember>();\r\n\t\t\t\r\n\t\t\t// Set parent of child node to current PafBaseMember node\r\n\t\t\tchildNode.parent = this;\r\n\r\n\t\t\t// Add child node to PafBaseTree\r\n\t\t\tchildren.add(childNode);\r\n\r\n\t\t} catch (Exception ex) {\r\n\t\t\t// throw Paf Exception\r\n\t\t\tString errMsg = \"Java Exception: \" + ex.getMessage();\r\n\t\t\tlogger.error(errMsg);\r\n\t\t\tPafException pfe = new PafException(errMsg, PafErrSeverity.Error, ex);\t\r\n\t\t\tthrow pfe;\r\n\t\t}\r\n\t}", "TreeNodeValueModel<T> child(int index);", "public void addChild(Node childnode)\n {\n children.add(childnode);\n }", "public Node getChild();", "public void createTree() {\n\t\taddNodeToParent(nodeMap);\n\t}", "public GeoMindMapNode addChildNode(EuclidianBoundingBoxHandler addHandler) {\n\t\tNodeAlignment newAlignment = toAlignment(addHandler);\n\n\t\tGPoint2D newLocation = computeNewLocation(newAlignment);\n\t\tGeoMindMapNode child = new GeoMindMapNode(node.getConstruction(), newLocation);\n\t\tchild.setContentHeight(GeoMindMapNode.CHILD_HEIGHT);\n\t\tchild.setSize(GeoMindMapNode.MIN_WIDTH, GeoMindMapNode.CHILD_HEIGHT);\n\t\tchild.setParent(node, newAlignment);\n\t\tchild.setVerticalAlignment(VerticalAlignment.MIDDLE);\n\t\tchild.setBackgroundColor(child.getKernel().getApplication().isMebis()\n\t\t\t\t? GColor.MOW_MIND_MAP_CHILD_BG_COLOR : GColor.MIND_MAP_CHILD_BG_COLOR);\n\t\tchild.setBorderColor(child.getKernel().getApplication().isMebis()\n\t\t\t\t? GColor.MOW_MIND_MAP_CHILD_BORDER_COLOR : GColor.MIND_MAP_CHILD_BORDER_COLOR);\n\t\tchild.setLabel(null);\n\t\treturn child;\n\t}", "public Node newChild(String name) {\n assert name != null;\n Node n = new Node(name);\n this.e.appendChild(n.e);\n return n;\n }", "public void addChild(Node child)\n\t{\n\t\tchild.parent = this;\n\t\t//if (!children.contains(child))\n\t\t//{\t\n\t\tchildren.add(child);\n\t\t//children.get(children.indexOf(child)-1).setBro(child);\n\t\t//}\n\t}", "TreeNode addChild(TreeNode node);", "public LineNodeChild(final String pNodeName,\n\t\t\t\t\tfinal FileView fileView) {\n\t\tsuper(pNodeName);\n\n//\t\tnodeName = pNodeName;\n\t\tview = fileView;\n\t\t//nodeType = ROOT_NODE;\n\n\t\tif (view.getRowCount() > 0) {\n\t\t\tString name;\n\n\t\t\tfor (int i =0; i < view.getRowCount(); i++) {\n\t\t\t\tint RecordIdx = view.getLine(i).getPreferredLayoutIdx();\n\n\t\t\t\tname = getRootName(RecordIdx);\n\n\t\t\t\tsuper.add(new LineNodeChild(name, view, view.getLine(i)));\n\t\t\t}\n\t\t\thasChildren = true;\n\t\t}\n\t}", "public void addChild(Node node){\n children.add(node);\n \n }", "public DynamicModelPart addDynamicChild(DynamicModelPart child) {\n this.children.add(child);\n return this;\n }", "public void AddModel(BranchGroup child)\r\n {\r\n \tbranch.addChild(child);\r\n }", "@SuppressWarnings(\"serial\")\r\n private Action getAddChildAction() {\r\n if (addChildAction == null) {\r\n String actionCommand = bundle.getString(ADD_CHILD_NODE_KEY);\r\n String actionKey = bundle.getString(ADD_CHILD_NODE_KEY + \".action\");\r\n addChildAction = new AbstractAction(actionCommand) {\r\n @Override\r\n public void actionPerformed(ActionEvent e) {\r\n System.out.println(\"actionPerformed(): action = \"\r\n + e.getActionCommand());\r\n if (checkAction()) {\r\n model.addNode(\r\n nodes[0].getPath() + \"/\"\r\n + jtfChildName.getText(), taChildData\r\n .getText().getBytes());\r\n }\r\n }\r\n\r\n private boolean checkAction() {\r\n // No node or several nodes selected\r\n if (nodes == null || nodes.length > 1) {\r\n return false;\r\n }\r\n // Emptry node name\r\n if (jtfChildName.getText().isEmpty()) {\r\n JOptionPane.showMessageDialog(JZVNode.this,\r\n bundle.getString(\"dlg.error.addWithoutName\"),\r\n bundle.getString(\"dlg.error.title\"),\r\n JOptionPane.ERROR_MESSAGE);\r\n return false;\r\n }\r\n // No parent\r\n if (nodes == null || nodes.length != 1) {\r\n JOptionPane.showMessageDialog(JZVNode.this,\r\n bundle.getString(\"dlg.error.addWithoutParent\"),\r\n bundle.getString(\"dlg.error.title\"),\r\n JOptionPane.ERROR_MESSAGE);\r\n return false;\r\n }\r\n return true;\r\n }\r\n };\r\n addChildAction.putValue(Action.ACTION_COMMAND_KEY, actionKey);\r\n }\r\n return this.addChildAction;\r\n }", "@Override\n public void childAdded(Node child) {\n }", "public void addChild(DecTreeNode child) {\r\n if (children != null)\r\n children.add(child);\r\n }", "public Node newChild(String name, String content) {\n Node n = new Node(name);\n n.e.appendChild(d.createTextNode(content));\n this.e.appendChild(n.e);\n return n;\n }", "protected TreeChild () {\n }", "public void doExecute() {\n\t\tparent.requestChange(new ModelChangeRequest(this.getClass(), parent,\n\t\t\t\t\"create\") {\n\t\t\t@Override\n\t\t\tprotected void _execute() throws Exception {\n\t\t\t\ttry {\n\t\t\t\t\tCompositeEntity parentModel = (CompositeEntity) parent;\n\t\t\t\t\tString componentName = null;\n\t\t\t\t\tif (model == null) {\n\t\t\t\t\t\tcomponentName = ModelUtils.findUniqueName(parentModel,\n\t\t\t\t\t\t\t\t\t\t clazz,\n\t\t\t\t\t\t\t\t\t\t name.equalsIgnoreCase(\"INPUT\") ? DEFAULT_INPUT_PORT : DEFAULT_OUTPUT_PORT,\n\t\t\t\t\t\t\t\t\t\t name);\n\t\t\t\t\t\tcomponentName = ModelUtils.getLegalName(componentName);\n\t\t\t\t\t\tClass constructorClazz = CompositeEntity.class;\n\t\t\t\t\t\tif (clazz.getSimpleName().equals(\"TypedIOPort\")) {\n\t\t\t\t\t\t\tconstructorClazz = ComponentEntity.class;\n\t\t\t\t\t\t} else if (clazz.getSimpleName().equals(\n\t\t\t\t\t\t\t\t\"TextAttribute\")) {\n\t\t\t\t\t\t\tconstructorClazz = NamedObj.class;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (clazz.getSimpleName().equals(\"Vertex\")) {\n\t\t\t\t\t\t\tTypedIORelation rel = new TypedIORelation(\n\t\t\t\t\t\t\t\t\tparentModel, componentName);\n\t\t\t\t\t\t\tchild = new Vertex(rel, \"Vertex\");\n\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tConstructor constructor = clazz.getConstructor(\n\t\t\t\t\t\t\t\t\tconstructorClazz, String.class);\n\n\t\t\t\t\t\t\tchild = (NamedObj) constructor.newInstance(\n\t\t\t\t\t\t\t\t\tparentModel, componentName);\n\t\t\t\t\t\t\tif (child instanceof TypedIOPort) {\n\t\t\t\t\t\t\t\tboolean isInput = name\n\t\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"INPUT\");\n\t\t\t\t\t\t\t\t((TypedIOPort) child).setInput(isInput);\n\t\t\t\t\t\t\t\t((TypedIOPort) child).setOutput(!isInput);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (model instanceof TypedIOPort) {\n\t\t\t\t\t\t\tname = ((TypedIOPort) model).isInput() ? DEFAULT_INPUT_PORT\n\t\t\t\t\t\t\t\t\t: DEFAULT_OUTPUT_PORT;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcomponentName = ModelUtils.findUniqueName(parentModel, model.getClass(), name, name);\n\t\t\t\t\t\tcomponentName = ModelUtils.getLegalName(componentName);\n\t\t\t\t\t\tif (model instanceof Vertex) {\n\t\t\t\t\t\t\tTypedIORelation rel = new TypedIORelation(\n\t\t\t\t\t\t\t\t\tparentModel, componentName);\n\t\t\t\t\t\t\tchild = new Vertex(rel, \"Vertex\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tchild = (NamedObj) model\n\t\t\t\t\t\t\t\t\t.clone(((CompositeEntity) parentModel)\n\t\t\t\t\t\t\t\t\t\t\t.workspace());\n\t\t\t\t\t\t\tchild.setName(componentName);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tComponentUtility.setContainer(child, parentModel);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tcreateDefaultValues(child);\n\t\t\t\t\t\n\t\t\t\t\tif (location != null) {\n\t\t\t\t\t\tModelUtils.setLocation(child, location);\n\t\t\t\t\t}\n\t\t\t\t\tsetChild(child);\n\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tgetLogger().error(\"Unable to create component\", e);\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t});\n\t}", "private void createInnerNodePanel() {\n\t\tcreateLabel(getHierarchy().getName(), null, null);\n\t\taddGeneralInnerImages();\n\t}", "@DISPID(1)\n\t// = 0x1. The runtime will prefer the VTID if present\n\t@VTID(7)\n\t@ReturnValue(type = NativeType.Dispatch)\n\tcom4j.Com4jObject addChild(\n\t\t\t@MarshalAs(NativeType.VARIANT) java.lang.Object node);", "public abstract Individual makeChild(Individual otherIndividual);", "public void addChild(Node child){\n children.add(child);\n }", "Node getChild(String childID) throws IllegalAccessException;", "private Node(int c) {\n this.childNo = c; // Construct a node with c children.\n }", "@Override\r\n public void addChild (TreeNode node)\r\n {\r\n super.addChild(node);\r\n\r\n // Side effect for note, since the geometric parameters of the chord\r\n // are modified\r\n if (node instanceof Note) {\r\n reset();\r\n }\r\n }", "private void addOMEChild(String name, String value, OMElement parent, OMFactory factory, OMNamespace dsNs){\r\n\t\t OMElement child = factory.createOMElement(name, dsNs);\r\n\t\t child.addChild(factory.createOMText(value));\r\n\t\t parent.addChild(child);\r\n\t }", "public static void createNode (PsiDirectory parentDirectory, VNode vNode) throws IOException {\r\n\t\tString name = mungeNamespace(vNode.getName());\r\n\t\tPsiDirectory contentDirectory = parentDirectory.createSubdirectory(name);\r\n\t\tPsiFile contentFile = contentDirectory.createFile(\".content.xml\");\r\n\t\twriteNodeContent(contentFile, vNode);\r\n\t}", "public DefaultMutableTreeNode addObject(GUIMain guiMn, DefaultMutableTreeNode parent,\n Object child,\n boolean shouldBeVisible) {\n \n DefaultMutableTreeNode childNode\n = new DefaultMutableTreeNode(child);\n\n if(child instanceof DefaultMutableTreeNode)\n {\n parent.add((MutableTreeNode) child);\n return childNode;\n }\n \n if (parent == null) {\n parent = guiMn.simMain.rootNode;\n }\n\n //It is key to invoke this on the TreeModel, and NOT DefaultMutableTreeNode\n guiMn.simMain.treeModel.insertNodeInto(childNode, parent,\n parent.getChildCount());\n\n //Make sure the user can see the lovely new node.\n if (shouldBeVisible) {\n guiMn.myTree.scrollPathToVisible(new TreePath(childNode.getPath()));\n }\n return childNode;\n }", "public void\n addChild\n (\n int col, \n BaseGenerator gen\n ) \n throws ParseException\n {\n validateChildColumn(col); \n pChildColumn = col;\n\n if(gen == null) \n throw new ParseException(\"The generator cannot be (null)!\");\n\n Comparable key = gen.getCellKey();\n if(childExists(key))\n throw new ParseException\n (\"Attempting to overwrite an existing child generator for the cell value \" + \n \"(\" + key + \")!\"); \n\n pChildren.put(key, gen); \n }", "public void addChildNode(TreeNode treeNode) {\n initChildList();\n childList.add(treeNode);\n }", "@Override\n\t\tpublic Node getChild(String childName) throws IllegalAccessException {\n\t\t\tField field = null;\n\t\t\ttry {\n\t\t\t\tfield = Classes.getFieldEx(object.getClass(), Strings.toMemberName(childName));\n\t\t\t} catch (NoSuchFieldException e) {\n\t\t\t\t// best effort approach: form to object mapping is not so strictly but still log missing fields\n\t\t\t\tlog.debug(\"Missing field |{java_field}| from object |{java_type}|.\", childName, object.getClass());\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\tObject child = field.get(object);\n\t\t\t// not test coverable condition: if child is null child instanceof Collection cannot be true\n\t\t\tif (child == null || (child instanceof Collection<?> && ((Collection<?>) child).size() == 0)) {\n\t\t\t\tchild = FormObject.this.factory.newInstance(field.getType());\n\t\t\t\tfield.set(object, child);\n\t\t\t}\n\t\t\treturn FormObject.this.factory.createNode(child, type(field));\n\t\t}", "public void addRootNode(Node child){\r\n this.child = child;\r\n }", "public void addChild(DecTreeNode child) {\n\t\tif (children != null) {\n\t\t\tchildren.add(child);\n\t\t}\n\t}", "private void addChild(Ent e){\n\t\tif(e.getParent() == this){\n\t\t\treturn;\n\t\t}else if(e.getParent() != null){\n\t\t\te.removeFromParent();\n\t\t}\n\t\tif(e instanceof PhysEnt){\n\t\t\tDbg.Error(\"Cannot make PhysEnt a child : PhysEnt must be root entities.\");\n\t\t\treturn;\n\t\t}\n\t\te.bound.setParent(this);\n\t\tif(childList == null){\n\t\t\tchildList = new ArrayList<Ent>();\n\t\t}\n\t\tchildList.add(e);\n\t\tfor(Scene s:sceneList){\n\t\t\ts.addEntity(e);\n\t\t}\n\t}", "private void createModel(AnchorNode anchorNode, Node node, Renderable renderable) {\n if (activeNode == mailbox) {\n //Resize\n node.setLocalScale(new Vector3(0.7f, 0.7f, 0.7f));\n } else if (activeNode == wagonPackage) {\n //Resize\n node.setLocalScale(new Vector3(60f, 60f, 60f));\n } else if (activeNode == multiPackage) {\n //Resize\n node.setLocalScale(new Vector3(40f, 40f, 40f));\n } else {\n //Resize\n node.setLocalScale(new Vector3(15f, 15f, 15f));\n }\n //Rotate\n node.setLocalRotation(Quaternion.multiply(Quaternion.axisAngle(new Vector3(0.3f, 0, 1f), 90f), Quaternion.axisAngle(new Vector3(0, 1f, 0), 180f)));\n\n //Set Anchor, Renderable, TapListener\n node.setParent(anchorNode);\n node.setRenderable(renderable);\n node.setOnTapListener(this);\n placed = true;\n }", "private Node constructInternal(List<Node> children){\r\n\r\n // Base case: root found\r\n if(children.size() == 1){\r\n return children.get(0);\r\n }\r\n\r\n // Generate parents\r\n boolean odd = children.size() % 2 != 0;\r\n for(int i = 1; i < children.size(); i += 2){\r\n Node left = children.get(i-1);\r\n Node right = children.get(i);\r\n Node parent = new Node(Utility.SHA512(left.hash + right.hash), left, right);\r\n children.add(parent);\r\n }\r\n\r\n // If the number of nodes is odd, \"inherit\" the remaining child node (no hash needed)\r\n if(odd){\r\n children.add(children.get(children.size() - 1));\r\n }\r\n return constructInternal(children);\r\n }", "public void addChildNode (Node child) {\n\t\tObjects.requireNonNull(child);\n\t\t\n\t\tif(children == null) {\n\t\t\tchildren = new ArrayIndexedCollection();\t\n\t\t}\n\t\t\n\t\tchildren.add(child);\n\t}", "public Relationship createRelationship(RelationshipType rt, String parentId, String childId, String familyId) throws Exception;", "private ArrayList<String> makeChildren(Node current) {\n\n ArrayList<String> current_children = new ArrayList<>();\n\n if (current != null && current.getDigit().last_changed != 0) {\n //-1 child first digit\n if ((Integer.parseInt(current.getDigit().getFirst_digit()) - 1 >= 0)) {\n String child_node = current.getDigit().decreaseFirstDigit();\n current_children.add(child_node);\n }\n\n //+1 child first digit\n if ((Integer.parseInt(current.getDigit().getFirst_digit()) + 1 <= 9)) {\n String child_node = current.getDigit().increaseFirstDigit();\n current_children.add(child_node);\n }\n }\n\n if (current != null && current.getDigit().last_changed != 1) {\n //-1 child\n if ((Integer.parseInt(current.getDigit().getSecond_digit()) - 1 >= 0)) {\n String child_node = current.getDigit().decreaseSecondDigit();\n current_children.add(child_node);\n }\n\n //+1 child\n if ((Integer.parseInt(current.getDigit().getSecond_digit()) + 1 <= 9)) {\n String child_node = current.getDigit().increaseSecondDigit();\n current_children.add(child_node);\n }\n }\n\n if (current != null && current.getDigit().last_changed != 2) {\n //-1 child\n if ((Integer.parseInt(current.getDigit().getThird_digit()) - 1 >= 0)) {\n String child_node = current.getDigit().decreaseThirdDigit();\n current_children.add(child_node);\n }\n //+1 child\n if ((Integer.parseInt(current.getDigit().getThird_digit()) + 1 <= 9)) {\n String child_node = current.getDigit().increaseThirdDigit();\n current_children.add(child_node);\n }\n }\n return current_children;\n }", "protected abstract M createNewElement();", "@Override\r\n\tpublic void makeChildcare() {\n\t\t\r\n\t}", "public DefaultMutableTreeNode addObject(GUIMain guiMn, Object child) {\n DefaultMutableTreeNode parentNode = null;\n TreePath parentPath = guiMn.myTree.getSelectionPath();\n\n if (parentPath == null) {\n parentNode = guiMn.simMain.rootNode;\n } else {\n parentNode = (DefaultMutableTreeNode) (parentPath.getLastPathComponent());\n }\n\n return addObject(guiMn, parentNode, child, true);\n }", "public VEdge(ScaffoldNode parent, ScaffoldNode child) {\n this.parent = parent;\n this.child = child;\n this.parent.addEdge(this);\n this.child.addEdge(this);\n this.parent.addPropertyChangeListener(PNode.PROPERTY_FULL_BOUNDS, this);\n this.child.addPropertyChangeListener(PNode.PROPERTY_FULL_BOUNDS, this);\n this.setPickable(false);\n this.updateCoords();\n }", "@Override\n\tpublic void setChild(Knoten child) {\n\n\t}", "public void addChild(Node n) {\n\t\taddChild(n, (rand.nextDouble()*0.02 - 0.01));\n\t}", "Node(E value) {\n this.value = value;\n this.childen = new ArrayList<>();\n }", "public Node<E> createNode(E e, Position<E> parent){\n Node<E> p = (Node<E>) parent;\n return new Node<>(e, p);\n }", "public Node makeNode(Document xmlDoc) {\r\n Element out = xmlDoc.createElement(this.parent.getHeader());\r\n this.parent.updateSave();\r\n if (this.nodeText != null) {\r\n out.setTextContent(nodeText);\r\n }\r\n this.makeAtributes(out);\r\n for (int i = 0; i < this.children.size(); i++) {\r\n out.appendChild(this.children.get(i).makeNode(xmlDoc));\r\n }\r\n return out;\r\n}", "public Edge(N child, L label) {\n\t\tthis.child = child;\n\t\tthis.label = label;\n\t\tcheckRep();\n\t}", "public JZVNode(ZVModel model) {\r\n super(new BorderLayout());\r\n\r\n this.model = model;\r\n this.model.addModelListener(new RefreshZVModelListener());\r\n\r\n // Components\r\n this.taChildData.setBorder(BEVEL_LOWERED_BORDER);\r\n this.taUpdate.setBorder(BEVEL_LOWERED_BORDER);\r\n this.taUpdate.setRows(2);\r\n this.taChildData.setRows(2);\r\n\r\n // Actions\r\n this.jbDelete.setAction(getDeleteAction());\r\n this.jbNewChild.setAction(getAddChildAction());\r\n this.jbUpdate.setAction(getUpdateAction());\r\n\r\n // Main content\r\n this.add(getNodePanel());\r\n this.updateView();\r\n \r\n Dimension prefSize = this.jbNewChild.getPreferredSize();\r\n this.jbDelete.setPreferredSize( prefSize );\r\n this.jbNewChild.setPreferredSize( prefSize );\r\n this.jbUpdate.setPreferredSize( prefSize );\r\n \r\n initListeners();\r\n }", "protected TreeChild (TreeChild child) {\n super (child);\n }", "protected void makeChild(FHeapNode y, FHeapNode x)\r\n { \r\n y.left.right = y.right;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// remove y from root list of heap\r\n y.right.left = y.left;\r\n \r\n y.parent = x;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// make y a child of x\r\n\r\n if (x.child == null)\r\n\t\t{\r\n x.child = y;\r\n y.right = y;\r\n y.left = y;\r\n } \r\n\t\telse\r\n\t\t{\r\n y.left = x.child;\r\n y.right = x.child.right;\r\n x.child.right = y;\r\n y.right.left = y;\r\n }\t\t\t\r\n x.degree++;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// increase degree[x] \r\n y.childCut = false;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// set childCut[y] to false\r\n }", "public String createChild(ChildUser c){\n return newUserCreator.newChild(c);\n }", "private Individual<T> createChild(List<Individual<T>> tournament) {\n Individual<T> child = mate(tournament.get(0), tournament.get(1));\n child = mutate(child);\n child = child.evaluate();\n return child;\n }", "public DynamicModelPart buildChildrenUsingSeeds() {\n this.children.parallelStream().forEach(child -> {\n child.buildUsingSeeds();\n });\n return this;\n }", "private void addChild(Content child) {\n/* 238 */ this.tail.setNext(this.document, child);\n/* 239 */ this.tail = child;\n/* */ }", "public void createTree() {\n Node<String> nodeB = new Node<String>(\"B\", null, null);\n Node<String> nodeC = new Node<String>(\"C\", null, null);\n Node<String> nodeD = new Node<String>(\"D\", null, null);\n Node<String> nodeE = new Node<String>(\"E\", null, null);\n Node<String> nodeF = new Node<String>(\"F\", null, null);\n Node<String> nodeG = new Node<String>(\"G\", null, null);\n root.leftChild = nodeB;\n root.rightChild = nodeC;\n nodeB.leftChild = nodeD;\n nodeB.rightChild = nodeE;\n nodeC.leftChild = nodeF;\n nodeC.rightChild = nodeG;\n\n }", "@SuppressWarnings(\"rawtypes\")\n\tpublic LineNodeChild(final String pNodeName,\n\t\t\t\t\tfinal FileView fileView,\n\t\t\t\t\tfinal AbstractLine theLine) {\n\t\tsuper(pNodeName);\n//\t\tnodeName = pNodeName;\n\t\tview = fileView;\n\t\tline = theLine;\n\n\t\tview.setNodeForLine(line, this);\n\n\t\tif (line != null) {\n\t\t\tint recordIdx = line.getPreferredLayoutIdx();\n\n\t\t\tif (recordIdx >= 0 && getLayout().getRecord(recordIdx) != null) {\n\t\t\t\tAbstractRecordDetail recordDef = getLayout().getRecord(recordIdx);\n\t\t\t\thasChildren = recordDef.getChildRecordCount() > 0;\n\n\t\t\t\tif (hasChildren) {\n\t\t\t\t\tAbstractChildDetails childDtls;\n\t\t\t\t\tAbstractTreeDetails childLineDtls = theLine.getTreeDetails();\n\t\t\t\t\tList<AbstractLine> childLines;\n\t\t\t\t\tchildren = new AbstractLineNode[recordDef.getChildRecordCount()];\n\t\t\t\t\tfor (int i = 0; i < recordDef.getChildRecordCount(); i++) {\n\t\t\t\t\t\tchildDtls = recordDef.getChildRecord(i);\n\t\t\t\t\t\tif (! childLineDtls.hasLines(i)) {\n\t\t\t\t\t\t\tchildren[i] = null;\n\t\t\t\t\t\t} else if (childDtls.isRepeated()) {\n\t\t\t\t\t\t\tchildren[i] = new LineNodeChildList(childLineDtls.getChildName(i) + \"'s\", fileView, childLineDtls, i);\n\t\t\t\t\t\t\tadd(children[i]);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tchildLines = childLineDtls.getLines(i);\n\t\t\t\t\t\t\tchildren[i] = new LineNodeChild(childLineDtls.getChildName(i), fileView, childLines.get(0));\n\n\t\t\t\t\t\t\tadd(children[i]);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private void createChildrenNodes(ChessGameNode rootNode) {\r\n\t\tBoardState nextState;\r\n\t\tChessGameNode newNode;\r\n\t\tchar currentPlayer = rootNode.getPlayer();\r\n\r\n\t\tgenerateLegalMovesPlayer(currentPlayer);\r\n\t\trootNode.allocateSpaceForChildren(this.moveList.length);\r\n\r\n\t\tfor (int i = 0; i < this.moveList.length; i++) {\r\n\t\t\tif (this.moveList[i] != null) {\r\n\t\t\t\tnextState = makeMove(rootNode, this.moveList[i]);\r\n\t\t\t\tif (currentPlayer == 'w') {\r\n\t\t\t\t\tnewNode = new ChessGameNode(nextState, 'b', this.moveList[i]);\r\n\t\t\t\t\tnewNode.setValue();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tnewNode = new ChessGameNode(nextState, 'w', this.moveList[i]);\t\r\n\t\t\t\t\tnewNode.setValue();\r\n\t\t\t\t}\r\n\t\t\t\trootNode.setChildrenNode(i, newNode);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "protected void makeTheTree(){\n\n structure.getRootNode().branchList.add(structure.getNode11());\n structure.getRootNode().branchList.add(structure.getNode12());\n structure.getRootNode().branchList.add(structure.getNode13());\n\n structure.getNode11().branchList.add(structure.getNode111());\n structure.getNode11().branchList.add(structure.getNode112());\n structure.getNode11().branchList.add(structure.getNode113());\n\n structure.getNode13().branchList.add(structure.getNode131());\n\n structure.getNode112().branchList.add(structure.getNode1121());\n\n }", "GridDataModel create(int parentRow, GridDataModel parentModel);", "public static GraphNode createScene( GraphNode parent, Node dataNode ) {\r\n NodeList nodeList = dataNode.getChildNodes();\r\n for ( int i = 0; i < nodeList.getLength(); i++ ) {\r\n Node n = nodeList.item(i);\r\n // skip all text, just process the ELEMENT_NODEs\r\n if ( n.getNodeType() != Node.ELEMENT_NODE ) continue;\r\n String nodeName = n.getNodeName();\r\n GraphNode node = null;\r\n if ( nodeName.equalsIgnoreCase( \"node\" ) ) {\r\n \tnode = CharacterFromXML.createJoint( n );\r\n } else if ( nodeName.equalsIgnoreCase( \"geom\" ) ) { \t\t\r\n \t\tnode = CharacterFromXML.createGeom( n ) ; \r\n }\r\n // recurse to load any children of this node\r\n createScene( node, n );\r\n if ( parent == null ) {\r\n \t// if no parent, we can only have one root... ignore other nodes at root level\r\n \treturn node;\r\n } else {\r\n \tparent.add( node );\r\n }\r\n }\r\n return null;\r\n\t}", "public DynamicModelPart addDynamicChildren(ObjectList<DynamicModelPart> children) {\n this.children.addAll(children);\n return this;\n }", "public void createCustomNode() {\n final PNode n = new PNode() {\n /**\n * \n */\n private static final long serialVersionUID = 1L;\n\n public void paint(final PPaintContext aPaintContext) {\n final double bx = getX();\n final double by = getY();\n final double rightBorder = bx + getWidth();\n final double bottomBorder = by + getHeight();\n\n final Line2D line = new Line2D.Double();\n final Graphics2D g2 = aPaintContext.getGraphics();\n\n g2.setStroke(new BasicStroke(0));\n g2.setPaint(getPaint());\n\n // draw vertical lines\n for (double x = bx; x < rightBorder; x += 5) {\n line.setLine(x, by, x, bottomBorder);\n g2.draw(line);\n }\n\n for (double y = by; y < bottomBorder; y += 5) {\n line.setLine(bx, y, rightBorder, y);\n g2.draw(line);\n }\n }\n };\n n.setBounds(0, 0, 100, 80);\n n.setPaint(Color.black);\n getCanvas().getLayer().addChild(n);\n }", "GapBoxViewChildren createChildren() {\n return new GapBoxViewChildren(this);\n }", "public Node()\n {\n this.name=\"/\";\n this.type=0;\n this.stage=0;\n children=new ArrayList<Node>();\n }", "@Override\n public Animal newChild() {\n return new Fox(0);\n }", "public void addChild(BTreeNode<E> newChild) {\n\t\tint index = 0;\n\t\tfor (BTreeNode<E> node : children) {\n\t\t\tif (node == null || cmp.compare(newChild.getData(0), node.data.get(0)) > 0) {\n\t\t\t\tindex++;\n\t\t\t}\n\t\t}\n\t\tchildren.add(index, newChild);\n\t\tnewChild.parent = this;\n\t}", "private void createModel() {\n model = new Node(\"Enemy\"+enemyCounter);\n Box b = new Box(.5f, 2, .5f);\n Geometry bg = new Geometry(\"Box\", b);\n Material bm = new Material(assetManager, \"Common/MatDefs/Misc/Unshaded.j3md\");\n Sphere sphere = new Sphere(32, 32, 1.5f, false, false);\n Geometry sg = new Geometry(\"Sphere\", sphere);\n Material sm = new Material(assetManager, \"Common/MatDefs/Misc/Unshaded.j3md\");\n bm.setColor(\"Color\", ColorRGBA.Blue);\n sm.setColor(\"Color\", ColorRGBA.Red);\n bg.setMaterial(bm); \n sg.setMaterial(sm);\n model.attachChild(bg);\n model.attachChild(sg);\n sg.setLocalTranslation(0,2.5f,0);\n \n attachChild(model);\n }", "public void addChild(Node newChild) {\r\n\t\t\tchildren.reset();\r\n\t\t\t\r\n\t\t\tnewChild.setParent(this);\r\n\r\n\t\t\tif (children.size() == 0)\r\n\t\t\t\tchildren.add(newChild);\r\n\t\t\telse if (children.get().getData(0).getKey().compareTo(newChild.getData(0).getKey()) > 0) \r\n\t\t\t\tchildren.insert(newChild);\r\n\t\t\telse {\r\n\t\t\t\twhile (children.hasNext()) {\r\n\t\t\t\t\tif (children.next().getData(0).getKey().compareTo(newChild.getData(0).getKey()) > 0) break;\r\n\t\t\t\t}\r\n\t\t\t\tif (children.get().getData(0).getKey().compareTo(newChild.getData(0).getKey()) > 0) \r\n\t\t\t\t\tchildren.insert(newChild);\r\n\t\t\t\telse\r\n\t\t\t\t\tchildren.add(newChild);\r\n\t\t\t}\r\n\t\t}", "public NodeDeleteCommand(IQNM parent, INode child)\r\n\t\tthrows Exception\r\n\t\t{\r\n\t\tif (parent == null || child == null) \r\n\t\t\t{\r\n\t\t\tFinestra.mostraIE(\"parent is null\");\r\n\t\t\t}\r\n\t\tif (child == null)\r\n\t\t\t{\r\n\t\t\tFinestra.mostraIE(\"child is null\");\r\n\t\t\t}\r\n\t\tsetLabel(\"node deletion\");\r\n\t\tthis.parent = parent;\r\n\t\tthis.child = child;\r\n\t\t}", "public Builder setChildId(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n childId_ = value;\n onChanged();\n return this;\n }", "private ImmutableList<Node> constructChildNodes(@Nullable List<Step> childSteps) {\n if (childSteps != null && !childSteps.isEmpty()) {\n List<Node> children = new ArrayList<>();\n for (Step childStep : childSteps) {\n children.add(new Node(childStep));\n }\n\n ImmutableList.Builder<Node> builder = new ImmutableList.Builder<>();\n builder.addAll(children);\n return builder.build();\n }\n\n return null;\n }", "void createTreeNodesForElement(final DefaultMutableTreeNode dmtn, final Collection<Element> elements) {\n for (Element child : elements) {\n DefaultMutableTreeNode created = new DefaultMutableTreeNode(child.getName());\n dmtn.add(created);\n createTreeNodesForElement(created, child.getChildren());\n }\n }", "void createTreeNodesForElement(final DefaultMutableTreeNode dmtn, final Collection<Element> elements) {\n for (Element child : elements) {\n DefaultMutableTreeNode created = new DefaultMutableTreeNode(child.getName());\n dmtn.add(created);\n createTreeNodesForElement(created, child.getChildren());\n }\n }", "@Override\n\tpublic void addchild(EndpointEntity entity) {\n\t\t\n\t}", "@Override\n\tpublic void getChild(int index) {\n\t\t\n\t}", "public FObj(FONode parent) {\n super(parent);\n \n // determine if isOutOfLineFODescendant should be set\n if (parent != null && parent instanceof FObj) {\n if (((FObj)parent).getIsOutOfLineFODescendant()) {\n isOutOfLineFODescendant = true;\n } else {\n int foID = getNameId();\n if (foID == FO_FLOAT || foID == FO_FOOTNOTE\n || foID == FO_FOOTNOTE_BODY) {\n isOutOfLineFODescendant = true;\n }\n }\n }\n }", "public void setChild(int position, Node n) {\r\n System.out.println(\"Attempt to add child to Variable\");\r\n }", "public TreeNode getChildNode(GameMove move) throws IllegalArgumentException;", "public void setChildNum(int value) {\n this.childNum = value;\n }", "public HierarchyChildVORowImpl() {\r\n }", "protected SceneGraphObject createNode() {\n\tthrow new SGIORuntimeException(\"createNode() not implemented in class \"+this.getClass().getName());\n }", "public void addChild(FileNode child) {\r\n child.setParent(this);\r\n children.add(child);\r\n childNum++;\r\n }", "Node[] getChildren(Node node);", "public Node(E e, Node<E> above, Node<E> leftChild, Node<E> rightChild) {\n element = e;\n parent = above;\n left = leftChild;\n right = rightChild;\n }" ]
[ "0.6423461", "0.63728446", "0.6255162", "0.6173931", "0.61155367", "0.61047435", "0.60987586", "0.6035795", "0.5997999", "0.59933424", "0.5986244", "0.59442353", "0.591168", "0.58929545", "0.5888031", "0.58670855", "0.5854566", "0.5825295", "0.5816837", "0.5809507", "0.57461256", "0.5645739", "0.5641898", "0.5626239", "0.5623702", "0.5616195", "0.56109965", "0.5608863", "0.55339473", "0.5518909", "0.5514498", "0.5513367", "0.5513004", "0.55124354", "0.55092466", "0.55073446", "0.5504545", "0.5485921", "0.5477661", "0.54760534", "0.54646826", "0.5438848", "0.54380435", "0.5428949", "0.5423439", "0.54120964", "0.5404983", "0.53898937", "0.5385037", "0.53815585", "0.5380433", "0.53698367", "0.53653944", "0.53652084", "0.5360866", "0.53475356", "0.53470916", "0.5344124", "0.5344038", "0.53355885", "0.5331773", "0.53178126", "0.53116375", "0.53086066", "0.5302927", "0.5300606", "0.5293023", "0.5285354", "0.5283865", "0.52782875", "0.52739054", "0.5273343", "0.5267891", "0.52648586", "0.52626026", "0.5261218", "0.52609265", "0.5259371", "0.52430916", "0.52000856", "0.51982516", "0.51942813", "0.51903176", "0.5188723", "0.5182859", "0.5180098", "0.51716596", "0.5169358", "0.5163713", "0.5163713", "0.51633465", "0.5163257", "0.5141633", "0.5141198", "0.5138859", "0.51362514", "0.5131998", "0.51306987", "0.51296276", "0.5125907", "0.512369" ]
0.0
-1
Invokes getModelObject(Object) on an array of resources.
protected Object[] getModelObjects(IResource[] resources) { Object[] result = new Object[resources.length]; for (int i = 0; i < resources.length; i++) { result[i] = getModelObject(resources[i]); } return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void refresh(BaseModel... objects);", "Collection<T> getSimpleModelObjects();", "public List<ModelObject> readAll();", "void refresh(Collection<? extends BaseModel> objects);", "public Object getModel();", "public void updateResources(List<Resource> resources) {\n\t\t\n\t}", "private void updateResourcesList() {\n this.resourcesJList.setModel(new ModelListSelectable(controller.getDemonstration().getResourcesList()));\n }", "A getModel();", "public void setResources(List<PrimaryType> resources) {\n this.resources = resources;\n }", "public static ArrayList<Model> getAllModels() {\n\t\tString path = MODELS;\n\t\tHttpResponse<String> response = sendRequest(path);\n\t\tif(response == null) return null;\n\t\treturn getModels(response);\n\t}", "public Model[] getModelsArray() {\r\n //if(models.size()==0)return null;\r\n Model[] ar = new Model[models.size()];\r\n for (int i = 0; i < models.size(); i++) ar[i] = getModel(i);\r\n return ar;\r\n //return (Model[])models.toArray();\r\n }", "List<SoftObjectReference> getObjects();", "public void set(Object[] objects) {\r\n this.objects = objects;\r\n }", "@Override\n\tpublic OFModel[] getModels() {\n\t\treturn null;\n\t}", "protected synchronized void returnResources(ArrayList<Person> resources) {\n resources.forEach((Person worker) -> {\n this.getResourcePools().get(worker.getSkill()).returnPerson(worker);\n });\n }", "public interface CompositeModelObject<T extends SimpleModelObject> extends NamedObject, Mappable {\r\n\r\n /**\r\n * Gets an simple object by its name from the object.\r\n * @param simpleObjectName name to search by.\r\n * @return the simple objects with {@code simpleObjectName} or {@code null} if not found.\r\n */\r\n T getSimpleModelObject(String simpleObjectName);\r\n\r\n /**\r\n * Gets the simple objects associated with the object.\r\n * @return the simple objects associated with the object.\r\n */\r\n Collection<T> getSimpleModelObjects();\r\n}", "public List<?> modelObjects(final Iterator<? extends Component> components) {\n final List<Object> objects = new ArrayList<Object>();\n while (components.hasNext()) {\n objects\n .add(((Iterator<? extends Component>) components).next()\n .getDefaultModelObject());\n }\n return objects;\n }", "public static HashSet<Resource> findAllResources(Model model)\n\t{\n\t\tHashSet<Resource> resourceSet = new HashSet<Resource>((int) model.size() * 3);\n\t\tStmtIterator statements = model.listStatements();\n\t\t\n\t\twhile(statements.hasNext())\n\t\t{\n\t\t\tStatement statement = statements.nextStatement();\n\t\t\tResource subject = statement.getSubject();\n\t\t\tResource predicate = statement.getPredicate();\n\t\t\tRDFNode object = statement.getObject();\n\t\t\t\n\t\t\tif(!resourceSet.contains(subject))\n\t\t\t{\n\t\t\t\tresourceSet.add(subject);\n\t\t\t}\n\t\t\tif(!resourceSet.contains(predicate))\n\t\t\t{\n\t\t\t\tresourceSet.add(predicate);\n\t\t\t}\n\t\t\tif(object.isResource() && !resourceSet.contains(object))\n\t\t\t{\n\t\t\t\tresourceSet.add((Resource) object);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn resourceSet;\n\t}", "Collection<EObject> getModelElements();", "public static List<Execute> toModels(ExecuteSoap[] soapModels) {\n\t\tif (soapModels == null) {\n\t\t\treturn null;\n\t\t}\n\n\t\tList<Execute> models = new ArrayList<Execute>(soapModels.length);\n\n\t\tfor (ExecuteSoap soapModel : soapModels) {\n\t\t\tmodels.add(toModel(soapModel));\n\t\t}\n\n\t\treturn models;\n\t}", "public abstract M getModel();", "@OnlyIn(Dist.CLIENT)\n public Collection<ResourceLocation> getAspectModels();", "private IResource[] getSelectedResourcesArray() {\r\n List selection = getSelectedResources();\r\n IResource[] resources = new IResource[selection.size()];\r\n selection.toArray(resources);\r\n return resources;\r\n }", "com.microsoft.schemas.crm._2011.contracts.ArrayOfObjectiveRelation getObjectives();", "M getModel();", "ModelData getModel();", "protected IDiffElement[] createModelObjects(ISynchronizeModelElement container) {\n \t\tIResource resource = null;\n \t\tif (container == getModelRoot()) {\n \t\t\tresource = ResourcesPlugin.getWorkspace().getRoot();\n \t\t} else {\n \t\t\tresource = container.getResource();\n \t\t}\n \t\tif(resource != null) {\n \t\t\tSyncInfoTree infoTree = getSyncInfoTree();\n \t\t\tIResource[] children = infoTree.members(resource);\n \t\t\tISynchronizeModelElement[] nodes = new ISynchronizeModelElement[children.length];\n \t\t\tfor (int i = 0; i < children.length; i++) {\n \t\t\t\tnodes[i] = createModelObject(container, children[i]);\n \t\t\t}\n \t\t\treturn nodes;\t\n \t\t}\n \t\treturn new IDiffElement[0];\n \t}", "@Override\n\tpublic Vector<String[]> getResourceList() throws RemoteException {\n\t\tVector<String[]> resourceList = new Vector<String[]>();\n\t\tfor (Resource singleResource : resourceModel.getResources()) {\n\t\t\tresourceList.add(singleResource.toArrayStrings());\n\t\t}\n\t\treturn resourceList;\n\t}", "private static String[] getModelNames() {\n\t\treturn getConfiguration().getString(MODELS).split(\"\\\\|\");\n\t}", "private native void setModel(int i);", "public void edit() throws Exception {\n super.assertModelsExist();\n for (Model model : models) {\n gotoEditPage(model);\n populateValues(model);\n save(model);\n handlePostErrors();\n }\n }", "public void dispose() {\n\t\tSet<IRI> ids = new HashSet<IRI>(getModelIds());\n\t\tfor (IRI id : ids) {\n\t\t\tunlinkModel(id);\n\t\t}\n\t}", "List<Resource> resources();", "ObjectResource createObjectResource();", "@SuppressWarnings(\"unchecked\")\t\r\n\tpublic S[] getResourceByName(String name) {\r\n\t\tList<S> returnResourcesList = new LinkedList<S>();\r\n\t\tfor (S resource : this.resourcesList) {\r\n\t\t\tif (resource.getName().equals(name)) {\r\n\t\t\t\treturnResourcesList.add(resource);\r\n\t\t\t}\r\n\t\t}\t\r\n\t\treturn (S[])returnResourcesList.toArray(new Resource[0]);\t\t\t\t\r\n\t}", "public ModelObject read(ModelObject obj);", "public GymActionsAdapter(Context context, int resource, ArrayList<GymAction> objects) {\n super(context, resource, objects);\n this.mContext = context;\n this.mResource = resource;\n filteredGyms = objects;\n this.allGyms = new ArrayList<GymAction>();\n this.allGyms.addAll(objects);\n }", "public int[] getObjectIds() {\n\t\t\treturn objects;\n\t\t}", "public void setModels(ArrayList<TodoListModel> models) {\n this.models = models;\n }", "public List<Resource> getResources(@Param(\"resourceIds\") Set<String> resourceIds);", "@Override\r\n\tpublic int updateResources(Resources resources) {\n\t\treturn resourcesDao.updateResources(resources);\r\n\t}", "protected abstract void setClueModels();", "public boolean loadModel() throws Exception{\r\n\t\t\r\n\t\tboolean rB = false ;\r\n\t\tModelCatalogItem mcItem ;\r\n\t\t\r\n\t\t// before, we have determined name and version according to the request options (e.g. \"latest\")\r\n\t\tmcItem = soappModelCatalog.getItemByModelname( activeModel, activeVersion ); \r\n\t\t// here, an active version should always be defined, if not, the first one will be selected\r\n\t\t\r\n\t\t\r\n\t\tif (mcItem != null){\r\n\t\t\t\t\t\t\t\t\t\t\tout.print(2, \"loading resources for requested model <\"+activeModel+\">, version <\"+activeVersion+\"> ... \") ;\r\n\t\t\t\r\n\t\t\tif ((somData==null) || (somData.getData().getColumnHeaders().size()==0)){\t\t\t\t\t\t\r\n\t\t\t\tsomApplication.loadSource();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// this also sets the data\r\n\t\t\tsoappTransformer = loadSomAppTransformer(mcItem);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\trB= transformIncomingData();\r\n\t\t\t\r\n\t\t\tsoappClassifier = loadSomAppClassifier(mcItem);\r\n\r\n\t\t\trB= (soappTransformer!=null) && (soappClassifier!=null);\r\n\t\t}else{\r\n\t\t\tout.print(2, \"identification resources for requested model <\"+activeModel+\"> failed.\") ;\r\n\t\t}\r\n\t\treturn rB;\r\n\t}", "@SuppressWarnings(\"unused\")\n\tpublic static final void main(final String[] args) {\n\t\tfinal ResourceSet resourceSet = new ResourceSetImpl();\n\n\t\tresourceSet.getResourceFactoryRegistry().getExtensionToFactoryMap().put(\"ecore\",\n\t\t\t\tnew EcoreResourceFactoryImpl());\n\t\tresourceSet.getResourceFactoryRegistry().getExtensionToFactoryMap().put(\"genmodel\",\n\t\t\t\tnew EcoreResourceFactoryImpl());\n\t\tresourceSet.getResourceFactoryRegistry().getExtensionToFactoryMap()\n\t\t\t\t.put(Resource.Factory.Registry.DEFAULT_EXTENSION, new XMIResourceFactoryImpl());\n\n\t\tEcorePackageImpl.init();\n\t\tGenModelPackageImpl.init();\n\n\t\tfinal String installationRootAsURI = \"file:/C:/Download/eclipse-galileo\";\n\t\tfinal String installationRootAsFile = \"C:\\\\Download\\\\eclipse-galileo\";\n\t\tfinal String workspaceRootAsURI = \"file:/C:/Dokumente und Einstellungen/varro/workspace\";\n\t\tfinal String workspaceRootAsFile = \"C:\\\\Dokumente und Einstellungen\\\\varro\\\\workspace\";\n\n\t\t// Accessing the generated version of ECore.ecore:\n\t\t// \"http://www.eclipse.org/emf/2002/Ecore\" -> mapping to genmodel?\n\t\t// Accessing the file version of ECore.ecore in standalone mode\n\t\tfinal String ecoreJarLocation = installationRootAsURI\n\t\t\t\t+ \"/plugins/org.eclipse.emf.ecore_2.5.0.v200906151043.jar\";\n\t\tURI.createURI(\"archive:\" + ecoreJarLocation + JAR_SEPARATOR + \"/model/Ecore.ecore\", true);\n\t\tURI.createURI(\"archive:\" + ecoreJarLocation + JAR_SEPARATOR + \"/model/Ecore.genmodel\", true);\n\t\t// Accessing the file version of ECore.ecore in Eclipse mode\n\t\tURI.createPlatformPluginURI(\"/org.eclipse.emf.ecore\" + \"/model/Ecore.ecore\", true);\n\t\tURI.createPlatformPluginURI(\"/org.eclipse.emf.ecore\" + \"/model/Ecore.genmodel\", true);\n\n\t\t// Remappings for standalone mode\n\t\tresourceSet.getURIConverter().getURIMap().put(URI.createPlatformPluginURI(\"/org.eclipse.emf.ecore/\", true),\n\t\t\t\tURI.createURI(\"archive:\" + ecoreJarLocation + JAR_SEPARATOR + \"/\", true));\n\t\tresourceSet.getURIConverter().getURIMap().put(URI.createPlatformResourceURI(\"/\", true),\n\t\t\t\tURI.createFileURI(workspaceRootAsFile + \"\\\\\"));\n\n\t\t// Only makes sense in Eclipse mode:\n\t\t// resourceSet.getURIConverter().getURIMap().putAll(EcorePlugin.computePlatformURIMap());\n\n\t\t// (1) Load ECore file (platform:/plugin/projectName/model/file.ecore)\n\t\tfinal URI ecoreModelLocation = URI\n\t\t\t\t.createPlatformResourceURI(\"/org.gervarro.democles.emoflon/model/Moflon.ecore\", true);\n\t\tfinal Resource ecoreModelResource = resourceSet.getResource(ecoreModelLocation, true);\n\t\tEcoreUtil.resolveAll(resourceSet);\n\n\t\tfinal List<EPackage> interestingRootEPackages = new ConverterUtil.EPackageList();\n\t\tinterestingRootEPackages.addAll(\n\t\t\t\tEcoreUtil.<EPackage>getObjectsByType(ecoreModelResource.getContents(), EcorePackage.Literals.EPACKAGE));\n\n\t\tfinal List<EPackage> referencedRootEPackages = new ConverterUtil.EPackageList();\n\t\tfor (final Resource resource : resourceSet.getResources()) {\n\t\t\treferencedRootEPackages.addAll(\n\t\t\t\t\tEcoreUtil.<EPackage>getObjectsByType(resource.getContents(), EcorePackage.Literals.EPACKAGE));\n\t\t}\n\t\treferencedRootEPackages.removeAll(interestingRootEPackages);\n\n\t\t// (2) Prepare GenModel file (platform:/plugin/projectName/model/file.genmodel)\n\t\tfinal GenModel genModel = GenModelFactory.eINSTANCE.createGenModel();\n\n\t\tfinal URI genModelURI = URI.createPlatformResourceURI(\"/org.gervarro.democles.emoflon/model/Moflon.genmodel\",\n\t\t\t\ttrue);\n\t\tfinal Resource genModelResource = resourceSet.createResource(genModelURI);\n\t\tgenModelResource.getContents().add(genModel);\n\n\t\t// (3) Produce GenModel contents from scratch (GenPackages and referred\n\t\t// GenPackages)\n\n\t\tfinal List<GenPackage> referencedGenPackages = new ConverterUtil.GenPackageList();\n\t\tfor (final EPackage ePackage : referencedRootEPackages) {\n\t\t\tfinal URI ecoreFileURI = ePackage.eResource().getURI();\n\t\t\tfinal URI genmodelFileURI = ecoreFileURI.trimFileExtension().appendFileExtension(\"genmodel\");\n\t\t\tfinal Resource tempGenModelResource = resourceSet.getResource(genmodelFileURI, true);\n\t\t\tfinal GenModel tempGenModel = (GenModel) tempGenModelResource.getContents().get(0);\n\t\t\tfinal GenPackage tempGenPackage = tempGenModel.findGenPackage(ePackage);\n\t\t\treferencedGenPackages.add(tempGenPackage);\n\t\t}\n\n\t\tfinal Map<GenPackage, EPackage> genPackageToReferredEPackage = new LinkedHashMap<GenPackage, EPackage>();\n\t\tfinal Map<String, GenPackage> referredEPackageNSURIToGenPackage = new HashMap<String, GenPackage>();\n\t\tfor (final GenPackage genPackage : referencedGenPackages) {\n\t\t\tfinal EPackage referredEPackage = genPackage.getEcorePackage();\n\t\t\tif (referredEPackage != null) {\n\t\t\t\tgenPackageToReferredEPackage.put(genPackage, referredEPackage);\n\t\t\t\treferredEPackageNSURIToGenPackage.put(referredEPackage.getNsURI(), genPackage);\n\t\t\t}\n\t\t}\n\n\t\t// Create resources for all the referenced EPackages\n\t\t// The referencedEPackage is a \"local\" instance of the realEPackage. We\n\t\t// will add the former to a resource that has the same URI of the later.\n\t\tfor (final Map.Entry<GenPackage, EPackage> entry : genPackageToReferredEPackage.entrySet()) {\n\t\t\tfinal GenPackage genPackage = entry.getKey();\n\t\t\tfinal EPackage referredEPackage = entry.getValue();\n\t\t\tfinal EPackage realEPackage = genPackage.getEcorePackage();\n\n\t\t\tif (referredEPackage != realEPackage) {\n\t\t\t\tfinal EPackage eSuperPackage = realEPackage.getESuperPackage();\n\t\t\t\tif (eSuperPackage == null) {\n\t\t\t\t\tfinal URI ecoreURI = realEPackage.eResource().getURI();\n\t\t\t\t\tfinal Resource resource = resourceSet.createResource(ecoreURI);\n\t\t\t\t\tresource.getContents().add(referredEPackage);\n\t\t\t\t} else {\n\t\t\t\t\tfinal GenPackage genSuperPackage = referredEPackageNSURIToGenPackage.get(eSuperPackage.getNsURI());\n\t\t\t\t\tif (genSuperPackage != null) {\n\t\t\t\t\t\tfinal EPackage referredESuperPackage = genSuperPackage.getEcorePackage();\n\t\t\t\t\t\treferredESuperPackage.getESubpackages().add(referredEPackage);\n\t\t\t\t\t\treferencedGenPackages.remove(genPackage);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Initialize the GenModel with all the computed data.\n\t\tgenModel.initialize(interestingRootEPackages);\n\t\tgenModel.getForeignModel().add(\"Moflon.ecore\");\n\t\tgenModel.getUsedGenPackages().addAll(referencedGenPackages);\n\n\t\tfinal String modelPluginID = genModel.eResource().getURI().segment(1);\n\t\tString modelName = genModel.eResource().getURI().trimFileExtension().lastSegment();\n\t\tmodelName = CodeGenUtil.capName(modelName);\n\t\tgenModel.setModelName(modelName);\n\t\tgenModel.setModelPluginID(modelPluginID);\n\t\tgenModel.setModelDirectory(\"/\" + modelPluginID + \"/src\");\n\t\tgenModel.setImporterID(\"org.eclipse.emf.importer.ecore\");\n\t\tgenModel.setComplianceLevel(GenJDKLevel.JDK60_LITERAL);\n\t\tgenModel.reconcile();\n\n\t\t// (4) Save GenModel file\n\t\tfinal Map<Object, Object> genModelSaveOptions = new HashMap<Object, Object>();\n\t\tgenModelSaveOptions.put(Resource.OPTION_SAVE_ONLY_IF_CHANGED,\n\t\t\t\tResource.OPTION_SAVE_ONLY_IF_CHANGED_MEMORY_BUFFER);\n\t\tgenModelSaveOptions.put(Resource.OPTION_LINE_DELIMITER, WorkspaceHelper.DEFAULT_RESOURCE_LINE_DELIMITER);\n\t\ttry {\n\t\t\tgenModelResource.save(genModelSaveOptions);\n\t\t} catch (final IOException e) {\n\t\t\tLogUtils.error(logger, e);\n\t\t}\n\n\t\t// (5) Compile template\n\n\t\t// (6) Invoke code generation\n\t\tfinal DelegatingRegistry generatorRegistry = new DelegatingRegistry();\n\t\tgeneratorRegistry.addDescriptor(\"http://www.eclipse.org/emf/2002/GenModel\", GeneratorAdapterFactory.DESCRIPTOR);\n\n\t\tfinal Generator generator = new Generator(generatorRegistry);\n\t\tgenerator.setInput(genModel);\n\n\t\tgenerator.generate(genModel, GenBaseGeneratorAdapter.MODEL_PROJECT_TYPE, new BasicMonitor.Printing(System.out));\n\t}", "private static ArrayList<Model> getModels(HttpResponse<String> response){\n\t\tArrayList<Model> models;\n\t\ttry {\n\t\t\tmodels = new ObjectMapper().readValue(response.body(), new TypeReference<ArrayList<Model>>(){});\n\t\t\treturn models;\n\t\t} catch (JsonMappingException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (JsonProcessingException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "Model getModel();", "Model getModel();", "Model getModel();", "void setObjectives(com.microsoft.schemas.crm._2011.contracts.ArrayOfObjectiveRelation objectives);", "ArrayList<E> getAllObjects() throws DatabaseNotAccessibleException;", "public T CallFunctions(T obj) {\n for (Function<T,T> action : actions) {\n obj = action.apply(obj);\n }\n \n return obj;\n }", "@Override\n public Map<String, Object> postProcessModels(Map<String, Object> objs) {\n @SuppressWarnings(\"unchecked\")\n\t\tList<Object> models = (List<Object>) postProcessModelsEnum(objs).get(\"models\");\n for (Object _mo : models) {\n @SuppressWarnings(\"unchecked\")\n\t\t\tMap<String, Object> mo = (Map<String, Object>) _mo;\n CodegenModel cm = (CodegenModel) mo.get(\"model\");\n cm.imports = new TreeSet(cm.imports);\n for (CodegenProperty var : cm.vars) {\n // name enum with model name, e.g. StatuEnum => PetStatusEnum\n if (Boolean.TRUE.equals(var.isEnum)) {\n var.datatypeWithEnum = var.datatypeWithEnum.replace(var.enumName, cm.classname + var.enumName);\n var.enumName = cm.classname + var.enumName;\n }\n }\n }\n\n return objs;\n }", "private void getModelByID(String id) {\n List<AircraftModel> list = project.getAircraftModelList().getModelList();\n for (AircraftModel model : list) {\n if (model.getId().equals(id)) {\n this.model = model;\n }\n }\n }", "public Model getModel(int index) {\r\n if (index >= models.size()) return null;\r\n return (Model) models.elementAt(index);\r\n }", "String getModelA();", "@objid (\"0fc4a30a-9083-11e1-81e9-001ec947ccaf\")\npublic interface IModel {\n @objid (\"158ef48a-aed6-4746-a113-8d9f740481b4\")\n public static final IMObjectFilter ISVALID = new IMObjectFilter() {\n\t\t@Override\n\t\tpublic boolean accept(MObject obj) {\n\t\t\treturn obj != null && obj.isValid();\n\t\t}\n\t};\n\n @objid (\"899f8ec3-25d4-4441-b499-c889c4e125a7\")\n public static final IMObjectFilter NOSHELL = new IMObjectFilter() {\n\t\t@Override\n\t\tpublic boolean accept(MObject obj) {\n\t\t\treturn obj != null && ! obj.isShell();\n\t\t}\n\t};\n\n @objid (\"f85615e6-6ad2-4a7a-9784-cf8d466faa65\")\n public static final IMObjectFilter NODELETED = new IMObjectFilter() {\n\t\t@Override\n\t\tpublic boolean accept(MObject obj) { \n\t\t\treturn obj != null && ! obj.isDeleted();\n\t\t}\n\t};\n\n /**\n * Find elements by a metaclass an an attribute value.\n * @param cls the metaclass.\n * @param att the attribute to search\n * @param val the attribute value\n * @return the found elements.\n */\n @objid (\"17c23aa0-9083-11e1-81e9-001ec947ccaf\")\n Collection<? extends MObject> findByAtt(MClass cls, final String att, Object val, IMObjectFilter filter);\n\n /**\n * Get all elements of a given class and the class descendants.\n * @param cls a metaclass.\n * @return all elements of this class.\n */\n @objid (\"17c23aa1-9083-11e1-81e9-001ec947ccaf\")\n Collection<? extends MObject> findByClass(MClass cls, IMObjectFilter filter);\n\n /**\n * Find an element from its MClass and its identifier.\n * @param cls a metaclass\n * @param siteIdentifier an UUID\n * @return the found element or <code>null</code>.\n */\n @objid (\"17c23aa2-9083-11e1-81e9-001ec947ccaf\")\n MObject findById(MClass cls, final UUID siteIdentifier, IMObjectFilter filter);\n\n /**\n * Find an element from a reference.\n * @param ref an element reference\n * @return the found element or <code>null</code>.\n * @throws org.modelio.vcore.session.UnknownMetaclassException if the referenced metaclass does not exist.\n */\n @objid (\"10a41285-16e7-11e2-b24b-001ec947ccaf\")\n MObject findByRef(MRef ref, IMObjectFilter filter) throws UnknownMetaclassException;\n\n /**\n * Get the generic factory.\n * @return the generic factory.\n */\n @objid (\"0078ca26-5a20-10c8-842f-001ec947cd2a\")\n GenericFactory getGenericFactory();\n\n @objid (\"00955b82-61a5-10c8-842f-001ec947cd2a\")\n Collection<? extends MObject> findByClass(MClass cls);\n\n @objid (\"0096d304-61a5-10c8-842f-001ec947cd2a\")\n Collection<? extends MObject> findByAtt(MClass cls, final String att, Object val);\n\n @objid (\"009711de-61a5-10c8-842f-001ec947cd2a\")\n MObject findById(MClass cls, final UUID siteIdentifier);\n\n @objid (\"33fb2113-b8a3-4b3b-95ed-3481c65d2881\")\n MObject findByRef(MRef ref) throws UnknownMetaclassException;\n\n @objid (\"261fe5dc-cfbf-40ee-886d-fc3c529c0e47\")\n <T extends MObject> Collection<T> findByClass(Class<T> metaclass, IMObjectFilter filter);\n\n @objid (\"e46abe41-187e-4d12-b565-c9e92df02519\")\n <T extends MObject> Collection<T> findByAtt(Class<T> metaclass, final String att, Object val, IMObjectFilter filter);\n\n @objid (\"83ef71a2-04ef-4e59-bf55-2bffe3069024\")\n <T extends MObject> T findById(Class<T> metaclass, final UUID siteIdentifier, IMObjectFilter filter);\n\n @objid (\"610f2f86-624b-469c-9c0c-6bf78147fba1\")\n <T extends MObject> Collection<T> findByClass(Class<T> metaclass);\n\n @objid (\"1540131b-bdd6-466c-a417-9e0efd220dda\")\n <T extends MObject> Collection<T> findByAtt(Class<T> metaclass, final String att, Object val);\n\n @objid (\"1b63d157-9858-4691-8636-7c625e97c65e\")\n <T extends MObject> T findById(Class<T> metaclass, final UUID siteIdentifier);\n\n}", "private void populateResources(GameModel model) {\n\t\tPlayer player = model.getLocalPlayer(facade.getPlayerId());\n\t\tResourceList resource = player.getResources();\n\t\tint wood = resource.getWood();\n\t\tint brick = resource.getBrick();\n\t\tint sheep = resource.getSheep();\n\t\tint wheat = resource.getWheat();\n\t\tint ore = resource.getOre();\n\t\t\n\t\tgetView().setElementAmount(ResourceBarElement.WOOD, wood);\n\t\tgetView().setElementAmount(ResourceBarElement.BRICK, brick);\n\t\tgetView().setElementAmount(ResourceBarElement.SHEEP, sheep);\n\t\tgetView().setElementAmount(ResourceBarElement.WHEAT, wheat);\n\t\tgetView().setElementAmount(ResourceBarElement.ORE, ore);\n\t\t\n\t\t\n\t\t\n\t\tint roads = player.getRoads();\n\t\tint settlements = player.getSettlements();\n\t\tint cities = player.getCities();\n\t\t\n\t\tgetView().setElementAmount(ResourceBarElement.ROAD, roads);\n\t\tgetView().setElementEnabled(ResourceBarElement.ROAD, currState.canBuyRoad());\n\t\tgetView().setElementAmount(ResourceBarElement.SETTLEMENT, settlements);\n\t\tgetView().setElementEnabled(ResourceBarElement.SETTLEMENT, currState.canBuySettlement());\n\t\tgetView().setElementAmount(ResourceBarElement.CITY, cities);\n\t\tgetView().setElementEnabled(ResourceBarElement.CITY, currState.canBuyCity());\n\t\t\n\t\tboolean clickable = currState.canBuyDevCard();\n\t\tgetView().setElementEnabled(ResourceBarElement.BUY_CARD, clickable);\n\t\t\n\t\tclickable = player.hasDevCards();\n\t\tgetView().setElementEnabled(ResourceBarElement.PLAY_CARD, clickable);\n\t\t\n\t\tint soldiers = player.getSoldiers();\n\t\tgetView().setElementAmount(ResourceBarElement.SOLDIERS, soldiers);\n\t\t\n\t\t\n\t}", "private List<E> convertObjects(List<PersistentObject> objects) throws IOException {\n List<E> entities = new ArrayList<>();\n\n for (PersistentObject object : objects) {\n entities.add(converter.convert(object));\n }\n\n return entities;\n }", "void provideObjects(Collection<? extends Object> objects);", "@Override\n\tpublic void setModel(Object o) {\n\t\t\n\t}", "public abstract List<Object> getAll();", "@Override\r\n protected List<CaseActionModel> getModelList(ServiceRequest<SimpleIdentifier<Long>> simpleIdentifierServiceRequest) throws BusinessFunctionException {\r\n List<CaseActionModel> caseActionModels = null;\r\n CaseModel processCase = caseStore.findById(simpleIdentifierServiceRequest.getData().getIdentifier());\r\n if (processCase != null) {\r\n caseActionModels = caseActionStore.findAllByCase(processCase.getId());\r\n }\r\n return caseActionModels;\r\n }", "@SideOnly(Side.CLIENT)\n public static void initModels() {\n }", "public static void deleteAllModels() {\n\n ConsoleLogger.printHeader(\"Deleting models\");\n\n // This is to ensure models are deleted in an order such that no other models are referencing it.\n List<String> models = asList(SamplesConstants.ROOM_MODEL_ID, SamplesConstants.WIFI_MODEL_ID, SamplesConstants.BUILDING_MODEL_ID, SamplesConstants.FLOOR_MODEL_ID, SamplesConstants.HVAC_MODEL_ID);\n\n // Call APIs to delete the models.\n // Note that we are blocking the async API call. This is to ensure models are deleted in an order such that no other models are referencing it.\n models\n .forEach(modelId -> {\n try {\n client.deleteModel(modelId).block();\n ConsoleLogger.printSuccess(\"Deleted model: \" + modelId);\n } catch (ErrorResponseException ex) {\n if (ex.getResponse().getStatusCode() != HTTP_NOT_FOUND) {\n ConsoleLogger.printFatal(\"Could not delete model \" + modelId + \" due to \" + ex);\n }\n }\n });\n }", "List<ResourcePojo> selectByBktAndModelName(@Param(\"bktName\") String bktName, @Param(\"modelName\") String modelName);", "public String getModel();", "public Resource[] getResourceArray() {\n return resource;\n }", "public static void main(String args[]) {\n Model model = ModelFactory.createDefaultModel(); \n\n//set namespace\n Resource NAMESPACE = model.createResource( relationshipUri );\n \tmodel.setNsPrefix( \"rela\", relationshipUri);\n \n// Create the types of Property we need to describe relationships in the model\n Property childOf = model.createProperty(relationshipUri,\"childOf\"); \n Property siblingOf = model.createProperty(relationshipUri,\"siblingOf\");\n Property spouseOf = model.createProperty(relationshipUri,\"spouseOf\");\n Property parentOf = model.createProperty(relationshipUri,\"parentOf\"); \n \n \n// Create resources representing the people in our model\n Resource Siddharth = model.createResource(familyUri+\"Siddharth\");\n Resource Dhvanit = model.createResource(familyUri+\"Dhvanit\");\n Resource Rekha = model.createResource(familyUri+\"Rekha\");\n Resource Sandeep = model.createResource(familyUri+\"Sandeep\");\n Resource Kanchan = model.createResource(familyUri+\"Kanchan\");\n Resource Pihu = model.createResource(familyUri+\"Pihu\");\n Resource DwarkaPrasad = model.createResource(familyUri+\"Dwarkesh\");\n Resource Shakuntala = model.createResource(familyUri+\"Shakuntala\");\n Resource Santosh = model.createResource(familyUri+\"Santosh\");\n Resource Usha = model.createResource(familyUri+\"Usha\");\n Resource Priyadarshan = model.createResource(familyUri+\"Priyadarshan\");\n Resource Sudarshan = model.createResource(familyUri+\"Sudarshan\");\n Resource Pragya = model.createResource(familyUri+\"Pragya\");\n Resource Shailendra = model.createResource(familyUri+\"Shailendra\");\n Resource Rajni = model.createResource(familyUri+\"Rajni\");\n Resource Harsh = model.createResource(familyUri+\"Harsh\");\n Resource Satendra = model.createResource(familyUri+\"Satendra\");\n Resource Vandana = model.createResource(familyUri+\"Vandana\");\n Resource Priyam = model.createResource(familyUri+\"Priyam\");\n Resource Darshan = model.createResource(familyUri+\"Darshan\");\n Resource Vardhan = model.createResource(familyUri+\"Vardhan\");\n \n List<Statement> list = new ArrayList(); \n list.add(model.createStatement(Dhvanit,spouseOf,Kanchan)); \n list.add(model.createStatement(Sandeep,spouseOf,Rekha)); \n list.add(model.createStatement(DwarkaPrasad,spouseOf,Shakuntala)); \n list.add(model.createStatement(Santosh,spouseOf,Usha)); \n list.add(model.createStatement(Shailendra,spouseOf,Rajni)); \n list.add(model.createStatement(Satendra,spouseOf,Vandana)); \n list.add(model.createStatement(Sandeep,childOf,DwarkaPrasad)); \n list.add(model.createStatement(Sandeep,childOf,Shakuntala)); \n list.add(model.createStatement(Santosh,childOf,DwarkaPrasad)); \n list.add(model.createStatement(Santosh,childOf,Shakuntala)); \n list.add(model.createStatement(Shailendra,childOf,DwarkaPrasad)); \n list.add(model.createStatement(Shailendra,childOf,Shakuntala)); \n list.add(model.createStatement(Satendra,childOf,DwarkaPrasad)); \n list.add(model.createStatement(Satendra,childOf,Shakuntala)); \n list.add(model.createStatement(DwarkaPrasad,parentOf,Sandeep)); \n list.add(model.createStatement(DwarkaPrasad,parentOf,Santosh)); \n list.add(model.createStatement(DwarkaPrasad,parentOf,Shailendra)); \n list.add(model.createStatement(DwarkaPrasad,parentOf,Satendra)); \n list.add(model.createStatement(Shakuntala,parentOf,Sandeep)); \n list.add(model.createStatement(Shakuntala,parentOf,Santosh)); \n list.add(model.createStatement(Shakuntala,parentOf,Shailendra)); \n list.add(model.createStatement(Shakuntala,parentOf,Satendra)); \n list.add(model.createStatement(Sandeep,parentOf,Siddharth)); \n list.add(model.createStatement(Sandeep,parentOf,Dhvanit)); \n list.add(model.createStatement(Rekha,parentOf,Siddharth)); \n list.add(model.createStatement(Rekha,parentOf,Dhvanit)); \n list.add(model.createStatement(Siddharth,childOf,Rekha)); \n list.add(model.createStatement(Dhvanit,childOf,Rekha)); \n list.add(model.createStatement(Siddharth,childOf,Sandeep)); \n list.add(model.createStatement(Dhvanit,childOf,Sandeep)); \n list.add(model.createStatement(Harsh,childOf,Shailendra)); \n list.add(model.createStatement(Harsh,childOf,Rajni)); \n list.add(model.createStatement(Shailendra,parentOf,Harsh)); \n list.add(model.createStatement(Rajni,parentOf,Harsh)); \n list.add(model.createStatement(Santosh,parentOf,Priyadarshan)); \n list.add(model.createStatement(Santosh,parentOf,Sudarshan));\n list.add(model.createStatement(Santosh,parentOf,Pragya));\n list.add(model.createStatement(Usha,parentOf,Priyadarshan)); \n list.add(model.createStatement(Usha,parentOf,Sudarshan));\n list.add(model.createStatement(Usha,parentOf,Pragya));\n list.add(model.createStatement(Priyadarshan,childOf,Santosh));\n list.add(model.createStatement(Pragya,childOf,Santosh));\n list.add(model.createStatement(Sudarshan,childOf,Santosh));\n list.add(model.createStatement(Priyadarshan,childOf,Usha));\n list.add(model.createStatement(Pragya,childOf,Usha));\n list.add(model.createStatement(Sudarshan,childOf,Usha));\n list.add(model.createStatement(Satendra,parentOf,Priyam)); \n list.add(model.createStatement(Satendra,parentOf,Darshan));\n list.add(model.createStatement(Satendra,parentOf,Vardhan));\n list.add(model.createStatement(Vandana,parentOf,Priyam)); \n list.add(model.createStatement(Vandana,parentOf,Darshan));\n list.add(model.createStatement(Vandana,parentOf,Vardhan));\n list.add(model.createStatement(Priyam,childOf,Satendra));\n list.add(model.createStatement(Darshan,childOf,Satendra));\n list.add(model.createStatement(Vardhan,childOf,Satendra));\n list.add(model.createStatement(Priyam,childOf,Vandana));\n list.add(model.createStatement(Darshan,childOf,Vandana));\n list.add(model.createStatement(Vardhan,childOf,Vandana));\n list.add(model.createStatement(Pihu,childOf,Dhvanit));\n list.add(model.createStatement(Pihu,childOf,Kanchan));\n list.add(model.createStatement(Dhvanit,parentOf,Pihu));\n list.add(model.createStatement(Kanchan,parentOf,Pihu));\n list.add(model.createStatement(Siddharth,siblingOf,Dhvanit));\n list.add(model.createStatement(Dhvanit,siblingOf,Siddharth)); \n list.add(model.createStatement(Priyadarshan,siblingOf,Sudarshan));\n list.add(model.createStatement(Priyadarshan,siblingOf,Pragya));\n list.add(model.createStatement(Sudarshan,siblingOf,Priyadarshan));\n list.add(model.createStatement(Sudarshan,siblingOf,Pragya));\n list.add(model.createStatement(Pragya,siblingOf,Priyadarshan));\n list.add(model.createStatement(Pragya,siblingOf,Sudarshan)); \n list.add(model.createStatement(Priyam,siblingOf,Darshan));\n list.add(model.createStatement(Priyam,siblingOf,Vardhan)); \n list.add(model.createStatement(Darshan,siblingOf,Vardhan)); \n list.add(model.createStatement(Darshan,siblingOf,Priyam));\n list.add(model.createStatement(Vardhan,siblingOf,Priyam));\n list.add(model.createStatement(Vardhan,siblingOf,Darshan));\n list.add(model.createStatement(Santosh,siblingOf,Sandeep));\n list.add(model.createStatement(Santosh,siblingOf,Shailendra));\n list.add(model.createStatement(Santosh,siblingOf,Satendra));\n list.add(model.createStatement(Sandeep,siblingOf,Santosh));\n list.add(model.createStatement(Sandeep,siblingOf,Shailendra));\n list.add(model.createStatement(Sandeep,siblingOf,Satendra));\n list.add(model.createStatement(Shailendra,siblingOf,Santosh));\n list.add(model.createStatement(Shailendra,siblingOf,Sandeep));\n list.add(model.createStatement(Shailendra,siblingOf,Satendra));\n list.add(model.createStatement(Satendra,siblingOf,Shailendra));\n list.add(model.createStatement(Satendra,siblingOf,Santosh));\n list.add(model.createStatement(Satendra,siblingOf,Sandeep));\n \n model.add(list);\n try{\n \t File file=new File(\"/Users/siddharthgupta/Documents/workspace/FamilyModel/src/family/family.rdf\");\n \t \tFileOutputStream f1=new FileOutputStream(file);\n \t \tRDFWriter d = model.getWriter(\"RDF/XML-ABBREV\");\n \t \t\t\td.write(model,f1,null);\n \t\t}catch(Exception e) {}\n }", "private void ProcessTriples(Model model, String graphName){\n for (final StmtIterator stmts = model.listStatements(); stmts.hasNext(); ) {\n Statement stmt = stmts.next();\n\n ObjectNode json_triple = mapper.createObjectNode();\n json_triple.set(ArangoAttributes.SUBJECT, ProcessResource(stmt.getSubject()));\n json_triple.set(ArangoAttributes.PREDICATE, ProcessUri(stmt.getPredicate()));\n json_triple.set(ArangoAttributes.OBJECT, ProcessObject(stmt.getObject()));\n\n if(!StringUtils.isBlank(graphName))\n json_triple.set(ArangoAttributes.GRAPH_NAME, ProcessUri(graphName));\n\n jsonObjects.add(json_triple);\n }\n }", "public ModelResponse execute(ModelRequest req, ModelResponse res) throws ModelException;", "private static List loadModel() {\r\n List items = new ArrayList();\r\n items.add(new Model(1, \"One\"));\r\n items.add(new Model(2, \"Two\"));\r\n items.add(new Model(3, \"Three\"));\r\n items.add(new Model(4, \"Four\"));\r\n items.add(new Model(5, \"Five\"));\r\n items.add(new Model(6, \"Six\"));\r\n items.add(new Model(7, \"Seven\"));\r\n items.add(new Model(8, \"Eight\"));\r\n items.add(new Model(9, \"Nine\"));\r\n items.add(new Model(10, \"Ten\"));\r\n items.add(new Model(11, \"Eleven\"));\r\n items.add(new Model(12, \"Twelve\"));\r\n items.add(new Model(13, \"Thirteen\"));\r\n items.add(new Model(14, \"Fourteen\"));\r\n items.add(new Model(15, \"Fiveteen\"));\r\n items.add(new Model(16, \"Sixteen\"));\r\n items.add(new Model(17, \"Seventeen\"));\r\n items.add(new Model(18, \"Eighteen\"));\r\n items.add(new Model(19, \"Nineteen\"));\r\n items.add(new Model(20, \"Twenty\"));\r\n\r\n return items;\r\n }", "com.exacttarget.wsdl.partnerapi.ObjectDefinition getObjectDefinitionArray(int i);", "@Override\r\n\tpublic T getModel() {\n\t\treturn model;\r\n\t}", "public void test_sf_940570() {\n OntModel m = ModelFactory.createOntologyModel( OntModelSpec.OWL_MEM_RDFS_INF );\n OntClass C = m.createClass( NS + \"C\" );\n Resource a = m.createResource( NS + \"a\", C );\n \n TestUtil.assertIteratorValues( this, m.listIndividuals(), new Object[] {a} );\n \n OntModel dm = ModelFactory.createOntologyModel( OntModelSpec.DAML_MEM_RULE_INF );\n OntClass D = dm.createClass( NS + \"D\" );\n Resource b = dm.createResource( NS + \"b\", D );\n \n TestUtil.assertIteratorValues( this, dm.listIndividuals(), new Object[] {b} );\n }", "public Object getObject() ;", "public void putObjectsIntoPackage(Package pkg, List<BusinessObject> objects);", "public synchronized static void loadModels() throws SchemaProviderException {\n if (logger.isDebugEnabled()) {\n logger.debug(\"Loading OXM Models\");\n }\n\n for (SchemaVersion oxmVersion : translator.getSchemaVersions().getVersions()) {\n DynamicJAXBContext jaxbContext = nodeIngestor.getContextForVersion(oxmVersion);\n if (jaxbContext != null) {\n loadModel(oxmVersion.toString(), jaxbContext);\n }\n }\n }", "public Set<String> getAllModelName(){\n return buildAuto.getAllModelName();\n }", "@Override\n\tpublic void operation() {\n\t\tfor(Object object:list) {\n\t\t\t((Component)object).operation();\n\t\t}\n\t}", "public List<Resources> getAllResources()\r\n\t{\r\n\t\tList<Resources> l = resourceRepository.findByResource();\r\n\t\treturn l;\r\n\t}", "public abstract AbstractObjectIterator<LocalAbstractObject> getAllObjects();", "public ModelBags call() throws Exception {\n SyncHttpClient syncHttpClient = new SyncHttpClient(true, 80, 443);\n String a = UrlEnum.MODEL_SERVER.mo21104a();\n HttpEntity b = m11177b();\n GetListHttpHandler bVar = new GetListHttpHandler();\n this.f10793a = syncHttpClient.post(null, a, b, RequestParams.APPLICATION_JSON, bVar);\n return bVar.mo21173a();\n }", "public List<ModelClass> getAllModels() throws StorageIOException {\n try {\n Dao<ModelDB, String> modelDao = this.databaseHelper.getDao(ModelDB.class);\n QueryBuilder<ModelDB, String> queryBuilder = modelDao.queryBuilder();\n \n queryBuilder.orderBy(\"name\", true);\n \n List<ModelDB> entities = modelDao.query(queryBuilder.prepare());\n List<ModelClass> models = new ArrayList<ModelClass>(entities.size());\n \n for (ModelDB e : entities) {\n models.add(dbToClass(e));\n }\n\n return models;\n \n } catch (SQLException e) {\n throw new StorageIOException(\"Failed to get models\", e);\n }\n }", "T[] getObjects() {\n\t\treturn this.array;\n\t}", "void setRequiredResources(com.microsoft.schemas.crm._2011.contracts.ArrayOfRequiredResource requiredResources);", "public org.eclipse.stardust.engine.api.runtime.Models\n getModels(org.eclipse.stardust.engine.api.query.DeployedModelQuery query)\n throws org.eclipse.stardust.common.error.WorkflowException;", "public List<IResource> getResources();", "@Test\r\n\tpublic void shouldAssertResourcesAndMethods() throws CoreException {\n\t\tAssert.assertEquals(7, metamodel.getAllResources().size());\r\n\t\tfor (IJaxrsResource jaxrsResource : metamodel.getAllResources()) {\r\n\t\t\tassertThat(((JaxrsResource) jaxrsResource).getJavaElement(), notNullValue());\r\n\t\t\tassertThat(((JaxrsResource) jaxrsResource).getElementKind(), notNullValue());\r\n\t\t\tassertThat(jaxrsResource.getAllMethods().size(), greaterThan(0));\r\n\t\t}\r\n\t}", "public interface ModelProvider <T> {\n\n public Comparator<T> getComparator(T obj);\n\n public T[] getElements();\n\n}", "protected Model loadModelFromResource(String resourcePath) {\n return loadModelFromResource(resourcePath, \"N3\");\n }", "public AdvObject getObject(int index) {\n\t\treturn objects.get(index); // Replace with your code\n\t}", "public Object makeResource();", "com.microsoft.schemas.crm._2011.contracts.ArrayOfObjectiveRelation addNewObjectives();", "public static java.util.Iterator<org.semanticwb.model.ResourceType> listResourceTypes(org.semanticwb.model.SWBModel model)\r\n {\r\n java.util.Iterator it=model.getSemanticObject().getModel().listInstancesOfClass(sclass);\r\n return new org.semanticwb.model.GenericIterator<org.semanticwb.model.ResourceType>(it, true);\r\n }", "public org.semanticwb.model.GenericIterator<org.semanticwb.model.Resource> listResources()\r\n {\r\n return new org.semanticwb.model.GenericIterator<org.semanticwb.model.Resource>(getSemanticObject().listObjectProperties(swb_hasPTResource));\r\n }", "Object getAll(WebRequest webRequest, HttpServletResponse response, Model model) throws Exception;", "public abstract ResourceSet<T> execute(final TwilioRestClient client);", "Set<EObject> getAllModelElements();", "private void addRestResourceClasses(Set<Class<?>> resources) {\n resources.add(co.matisses.web.mbean.BaruApplicationMBean.class);\n resources.add(co.matisses.web.mbean.ImagenProductoMBean.class);\n resources.add(co.matisses.web.rest.ClienteWebFacadeREST.class);\n resources.add(co.matisses.web.rest.DepartamentoSAPFacadeREST.class);\n resources.add(co.matisses.web.rest.EmpaqueVentaFacadeREST.class);\n resources.add(co.matisses.web.rest.EmpleadoFacadeREST.class);\n resources.add(co.matisses.web.rest.FacturaSAPFacadeREST.class);\n resources.add(co.matisses.web.rest.ItemInventarioFacadeREST.class);\n resources.add(co.matisses.web.rest.MercadoLibreREST.class);\n resources.add(co.matisses.web.rest.MunicipioFacadeREST.class);\n resources.add(co.matisses.web.rest.NotaCreditoFacadeREST.class);\n resources.add(co.matisses.web.rest.OperacionCajaFacadeREST.class);\n resources.add(co.matisses.web.rest.POSSessionValidatorREST.class);\n resources.add(co.matisses.web.rest.SocioDeNegociosFacadeREST.class);\n resources.add(co.matisses.web.rest.TarjetaCreditoSAPFacadeREST.class);\n resources.add(co.matisses.web.rest.TipoDocumentoREST.class);\n resources.add(co.matisses.web.rest.VentaPOSFacadeREST.class);\n resources.add(co.matisses.web.rest.regalos.ConsultaProductosREST.class);\n resources.add(co.matisses.web.rest.regalos.ContactoREST.class);\n resources.add(co.matisses.web.rest.regalos.FiltrosProductoREST.class);\n resources.add(co.matisses.web.rest.regalos.ListaRegalosREST.class);\n resources.add(co.matisses.web.rest.regalos.ListaRegalosSessionValidatorREST.class);\n }", "@Override\n\tpublic void execute(Model model) {\n\t\t\n\t\tMap<String, Object> map = model.asMap();\n\t\tHttpServletRequest request = (HttpServletRequest) map.get(\"request\");\n\n\t\tint bNum = Integer.parseInt(request.getParameter(\"bookNum\"));\n\t\t\n\t\tReviewDao dao = new ReviewDao();\n\t\tArrayList<ReviewDto> dtos = dao.reviewList(bNum);\n\t\t\n\t\trequest.setAttribute(\"list\", dtos);\n\t\t\n\t}" ]
[ "0.5629575", "0.5457408", "0.5248155", "0.49968198", "0.49952582", "0.49349293", "0.48831365", "0.47990683", "0.47946152", "0.4776659", "0.47701678", "0.47625342", "0.47294128", "0.46930385", "0.46922556", "0.46876758", "0.46850467", "0.4651032", "0.46255147", "0.46049803", "0.45689994", "0.45654473", "0.4537746", "0.45269412", "0.45267615", "0.45247313", "0.45016617", "0.44777045", "0.44655195", "0.4453433", "0.4447656", "0.44387874", "0.44250572", "0.44131148", "0.44016823", "0.43997467", "0.4388061", "0.43799302", "0.43642285", "0.43464947", "0.43463233", "0.4345136", "0.4340623", "0.4340426", "0.43363914", "0.4331537", "0.4331537", "0.4331537", "0.43280965", "0.43197787", "0.4316786", "0.4307776", "0.43023193", "0.42917842", "0.42912203", "0.42880505", "0.42866653", "0.4282314", "0.42821446", "0.42818135", "0.42594978", "0.42573178", "0.4255382", "0.42511103", "0.42490008", "0.42475304", "0.42441246", "0.4243503", "0.4242924", "0.42402726", "0.42346576", "0.4233343", "0.4230398", "0.42249927", "0.42220238", "0.42207655", "0.42189032", "0.42186993", "0.42134473", "0.4211143", "0.42060784", "0.42049736", "0.4204657", "0.42035213", "0.41963384", "0.4194927", "0.41912428", "0.41877955", "0.41865057", "0.41827664", "0.4181277", "0.41792038", "0.4176074", "0.41714132", "0.4171067", "0.41692728", "0.41675174", "0.4166549", "0.41604903", "0.41602677" ]
0.73804045
0
Handle the change for the existing diff node. The diff node should be changed to have the given sync info
protected void handleChange(ISynchronizeModelElement diffNode, SyncInfo info) { IResource local = info.getLocal(); if(diffNode instanceof SyncInfoModelElement) { ((SyncInfoModelElement)diffNode).update(info); propogateConflictState(diffNode, false); } else { removeFromViewer(local); addResources(new IResource[] {local}); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void changedUpdate(DocumentEvent evt, FoldHierarchyTransaction transaction) {\n }", "@Override\n public void changed( Change change ) {\n if ( !( change.isSelected()\n && change.isForInstanceOf( Node.class )\n && change.isForProperty( \"other\" ) ) ) {\n if ( change.isUpdated() ) {\n setFlowUpdated( true );\n }\n super.changed( change );\n }\n }", "private void doNormalDiffSync(Workspace workspace,\n\t\t\t\t\t\t\t\t GitSyncDetails syncDetails,\n\t\t\t\t\t\t\t\t ObjectMapper mapper,\n\t\t\t\t\t\t\t\t CollectionDiffer diffMerger,\n\t\t\t\t\t\t\t\t File collectionFile,\n\t\t\t\t\t\t\t\t List<Collection> collectionCommonCopy,\n\t\t\t\t\t\t\t\t File environmentFile,\n\t\t\t\t\t\t\t\t List<Environment> environmentCommonCopy,\n\t\t\t\t\t\t\t\t Git repo,\n\t\t\t\t\t\t\t\t List<Collection> collectionServerCopy,\n\t\t\t\t\t\t\t\t List<Environment> environmentServerCopy,\n\t\t\t\t\t\t\t\t List<Collection> collectionWorkingCopy,\n\t\t\t\t\t\t\t\t List<Environment> environmentWorkingCopy) throws IOException, GitAPIException {\n\t\tDiffNode collectionWorkingCopyChanges = diffMerger.compare(collectionWorkingCopy, collectionCommonCopy);\n\t\tDiffNode environmentWorkingCopyChanges = diffMerger.compareEnvs(environmentWorkingCopy, environmentCommonCopy);\n\n\t\t//step2: merge diffs to server copy\n\t\tif (collectionWorkingCopyChanges.isChanged() || environmentWorkingCopyChanges.isChanged()) {\n\t\t\tdiffMerger.mergeDiffs(collectionWorkingCopy, collectionServerCopy, collectionWorkingCopyChanges);\n\t\t\tdiffMerger.mergeDiffsEnvs(environmentWorkingCopy, environmentServerCopy, environmentWorkingCopyChanges);\n\t\t\tmapper.writeValue(collectionFile, collectionServerCopy);\n\t\t\tmapper.writeValue(environmentFile, environmentServerCopy);\n\t\t\trepo.add()\n\t\t\t\t\t.addFilepattern(\".\")\n\t\t\t\t\t.call();\n\t\t\trepo.commit()\n\t\t\t\t\t.setMessage(\"milkman sync\")\n\t\t\t\t\t.call();\n\t\t\tinitWith(repo.push(), syncDetails)\n\t\t\t\t\t.call();\n\t\t}\n\n\n\t\t//step3: merge server-diffs to working copy\n\t\tworkspace.setCollections(collectionServerCopy);\n\t\tworkspace.setEnvironments(environmentServerCopy);\n\t}", "public void diffsChanged(IDiffChangeEvent event, IProgressMonitor monitor) {\n \t\tIPath[] removed = event.getRemovals();\n \t\tIDiff[] added = event.getAdditions();\n \t\tIDiff[] changed = event.getChanges();\n \t\t// Only adjust the set of the rest. The others will be handled by the collectors\n \t\ttry {\n \t\t\tgetTheRest().beginInput();\n \t\t\tfor (int i = 0; i < removed.length; i++) {\n \t\t\t\tIPath path = removed[i];\n \t\t\t\tgetTheRest().remove(path);\n \t\t\t}\n \t\t\tfor (int i = 0; i < added.length; i++) {\n \t\t\t\tIDiff diff = added[i];\n \t\t\t\t// Only add the diff if it is not already in another set\n \t\t\t\tif (!isContainedInSet(diff)) {\n \t\t\t\t\tgetTheRest().add(diff);\n \t\t\t\t}\n \t\t\t}\n \t\t\tfor (int i = 0; i < changed.length; i++) {\n \t\t\t\tIDiff diff = changed[i];\n \t\t\t\t// Only add the diff if it is already contained in the free set\n \t\t\t\tif (getTheRest().getDiff(diff.getPath()) != null) {\n \t\t\t\t\tgetTheRest().add(diff);\n \t\t\t\t}\n \t\t\t}\n \t\t} finally {\n \t\t\tgetTheRest().endInput(monitor);\n \t\t}\n \t\tif (checkedInCollector != null)\n \t\t\tcheckedInCollector.handleChange(event);\n \t}", "public void synchronize(int change);", "@Override\n public void onDataTreeChanged(final Collection<DataTreeCandidate> changes) {\n final DOMDataWriteTransaction tx = this.chain.newWriteOnlyTransaction();\n LOG.debug(\"Received data change to ApplicationRib {}\", changes);\n for (final DataTreeCandidate tc : changes) {\n LOG.debug(\"Modification Type {}\", tc.getRootNode().getModificationType());\n final YangInstanceIdentifier path = tc.getRootPath();\n final PathArgument lastArg = path.getLastPathArgument();\n Verify.verify(lastArg instanceof NodeIdentifierWithPredicates, \"Unexpected type %s in path %s\", lastArg.getClass(), path);\n final NodeIdentifierWithPredicates tableKey = (NodeIdentifierWithPredicates) lastArg;\n for (final DataTreeCandidateNode child : tc.getRootNode().getChildNodes()) {\n final YangInstanceIdentifier tableId = this.adjRibsInId.node(tableKey).node(child.getIdentifier());\n if (child.getDataAfter().isPresent()) {\n LOG.trace(\"App peer -> AdjRibsIn path : {}\", tableId);\n LOG.trace(\"App peer -> AdjRibsIn data : {}\", child.getDataAfter().get());\n tx.put(LogicalDatastoreType.OPERATIONAL, tableId, child.getDataAfter().get());\n }\n }\n }\n tx.submit();\n }", "public native final EditorBaseEvent changedNode(Node val) /*-{\n\t\tthis.changedNode = val;\n\t\treturn this;\n\t}-*/;", "void gotStorageChange(EventType event, Node oldNode, Node newNode);", "@Override\n\t\tpublic void onStatusChanged(int which) {\n\t\t\tgetActivity().runOnUiThread(new Runnable() {\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\n\t\t\t\t\tboolean syncActive = ContentResolver.isSyncActive(\n\t\t\t\t\t\t\tOdooAccountManager.getAccount(getActivity(), OUser\n\t\t\t\t\t\t\t\t\t.current(getActivity()).getAndroidName()),\n\t\t\t\t\t\t\tsyncOberserverModel.authority());\n\t\t\t\t\tboolean syncPending = ContentResolver.isSyncPending(\n\t\t\t\t\t\t\tOdooAccountManager.getAccount(getActivity(), OUser\n\t\t\t\t\t\t\t\t\t.current(getActivity()).getAndroidName()),\n\t\t\t\t\t\t\tsyncOberserverModel.authority());\n\t\t\t\t\tboolean refreshing = syncActive | syncPending;\n\t\t\t\t\tif (!refreshing) {\n\t\t\t\t\t\tscope.main().refreshDrawer(drawer_tag);\n\t\t\t\t\t}\n\t\t\t\t\tmSyncStatusObserverListener.onStatusChange(refreshing);\n\t\t\t\t}\n\t\t\t});\n\t\t}", "private boolean updateRepChanges(boolean sync) {\r\n\t\t\r\n\t\ttry {\t\t\t\t\r\n\t\t\t// get repository header since we need count of versions \r\n\t\t\t// i.e. headVersionNum\r\n\t\t\tString status = \"Status: [ACTION - Update Repository]...\";\r\n\t\t\t\r\n\t\t\tstatusBar.setText(status+\"Loading repository header to find headVersionNumber\");\r\n\t\t\tboolean existsRep = this.loadRepositoryHeader();\r\n\t\t\tif (!existsRep) {\r\n\t\t\t\tif (DEBUG) System.out.println(\"NOT FOUND\");\r\n\t\t\t\t// update from local Swoop log anyway if uri matches ontURI\r\n\t\t\t\tthis.updateRepFromLog(new URI(this.repBaseOntFld.getText()));\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tstatusBar.setText(status+\"HeadVersionNum=\"+this.headVersionNumber);\r\n\t\t\r\n\t\t\t// note: all version commits have been made to URLs:\r\n\t\t\t// repositoryURL+\"#1\"...\"#headVersionNum\"\r\n\t\t\t// so iterate through versionCommits and see if value is null, implying it hasn't been updated\r\n\t\t\tfor (int ctr=1; ctr<=this.headVersionNumber; ctr++) {\r\n\t\t\t\tif (versionNodes[ctr]==null) {\r\n\t\t\t\t\t// form URI using ctr\r\n\t\t\t\t\tURI versionURI = new URI(this.repositoryURI+\"#\"+ctr);\r\n\t\t\t\t\tstatusBar.setText(status+\"Updating version at \"+versionURI);\r\n\t\t\t\t\tSet commitSet = client.findAnnotations(versionURI);\r\n\t\t\t\t\t// get single Description (version) at URI\r\n\t\t\t\t\tDescription version = (Description) commitSet.iterator().next();\r\n\t\t\t\t\tversionDescriptions[ctr] = version;\r\n\t\t\t\t\tTreeTableNode mainNode = this.parseSingleCommit(version);\r\n\t\t\t\t\t// set params on mainNode\r\n\t\t\t\t\tmainNode.swoopChange.isOnRepository = true;\r\n\t\t\t\t\tmainNode.location = version.getLocation();\r\n\t\t\t\t\tversionNodes[ctr] = mainNode;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// also if advanced is off, update from local copy as well\r\n//\t\t\tif (!advanced) {\r\n//\t\t\t\tthis.updateRepFromLog(new URI(this.repBaseOntFld.getText()));\r\n//\t\t\t}\r\n\t\t\t\r\n\t\t\t// resort all nodes under root\r\n\t\t\tthis.refreshRepTreeTable(true);\r\n\t\t\t\r\n\t\t\t// update version repository cache\r\n\t\t\tswoopModel.updateVersionRepository(repositoryURI, versionDescriptions);\r\n\t\t\t\r\n\t\t\t// if sync is true, commit all changes to the synchronized ontology\r\n\t\t\tif (sync) {\r\n\t\t\t\tstatusBar.setText(status+\"Synching with Local Swoop Ontology\");\r\n\t\t\t\tthis.commitOntChanges(true);\t\t\t\t\r\n\t\t\t}\r\n\t\t\tstatusBar.setText(status+\"DONE\");\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tcatch (Exception ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "protected void defaultHandle(TreeNode changedNode) {\n\t\t}", "public native final Node changedNode() /*-{\n\t\treturn this.changedNode;\n\t}-*/;", "void manageDiffs(Git git, RevCommit commit, RevCommit parent, FileDiffNotifier[] notifiers) {\n try (ObjectReader reader = git.getRepository().newObjectReader()) {\n\n // the old tree is based on the parent\n CanonicalTreeParser oldTreeIter = new CanonicalTreeParser();\n oldTreeIter.reset(reader, parent.getTree().getId());\n\n // the new tree is based on the current commit\n CanonicalTreeParser newTreeIter = new CanonicalTreeParser();\n newTreeIter.reset(reader, commit.getTree().getId());\n\n // get the list of changed files and fire them on to the notifiers\n List<DiffEntry> diffs = git.diff()\n .setNewTree(newTreeIter)\n .setOldTree(oldTreeIter)\n .call();\n for (FileDiffNotifier notifier : notifiers) {\n notifier.noticeDiff(commit, diffs);\n }\n } catch (IOException | GitAPIException e) {\n throw new GitException(\"Failed to get diff between \" + parent + \" and \" + commit, e);\n }\n }", "private void updateOntChanges() {\r\n\t\ttry {\r\n\t\t\tString status = \"Status: [ACTION - Update Local Ontology]...\";\r\n\t\t\tstatusBar.setText(status);\r\n\t\t\tif (existingOntRadio.isSelected()) {\r\n\t\t\t\tOWLOntology ont = (OWLOntology) ontBox.getSelectedItem();\r\n\t\t\t\tList changes = swoopModel.getChangesCache().getChangeList(ont.getURI());\r\n\t\t\t\tfor (int i=0; i<changes.size(); i++) {\r\n\t\t\t\t\tSwoopChange swc = (SwoopChange) changes.get(i);\r\n\t\t\t\t\tif (!isPresent(ontChanges, swc)) ontChanges.add(swc.clone());\r\n\t\t\t\t}\r\n\t\t\t\tthis.sortChanges(ontChanges);\r\n\t\t\t\tthis.refreshOntTreeTable(); \r\n\t\t\t}\r\n\t\t\tstatusBar.setText(status+\"DONE\");\r\n\t\t}\r\n\t\tcatch (OWLException ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t}", "@Override\n\t\t\tpublic void syncDateChange(Map<String, Set<DbxRecord>> mMap) {\n\t\t\t\tToast.makeText(this, \"Dropbox sync successed\",\n\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\tif (attachFragment != null ) {\n\t\t\t\t\t OnSyncFinishedListener onSyncFinishedListener = (OnSyncFinishedListener)attachFragment;\n\t\t\t\t\t onSyncFinishedListener.onSyncFinished();\n\t\t\t\t\t \n\t\t\t\t}\n\t\t\t\t\n\t\t\t}", "@Override\n public void run() {\n final Node node = infoData.getNode(query.getPath());\n if (!node.isEmpty()) {\n List<? extends Event> infoEvents =\n infoSyncTree.applyServerOverwrite(query.getPath(), node);\n postEvents(infoEvents);\n onComplete.onListenComplete(null);\n }\n }", "protected void textLeafModified(MutationEvent evt) throws MelodyException {\r\n\t\tsuper.textLeafModified(evt);\r\n\t\t// the changed node\r\n\t\tText t = (Text) evt.getTarget();\r\n\t\t// its parent element\r\n\t\tElement e = (Element) t.getParentNode();\r\n\t\tDUNID edunid = DUNIDDocHelper.getDUNID(e);\r\n\t\t// Modify the DUNIDDoc\r\n\t\tElement eori = getOwnerDUNIDDoc(e).getElement(edunid);\r\n\t\t// It is assume that the Element is a leaf, so getFirstChild is OK\r\n\t\teori.getFirstChild().setNodeValue(t.getTextContent());\r\n\t\t// Modify the targets descriptor\r\n\t\tif (!areTargetsFiltersDefined()) {\r\n\t\t\t/*\r\n\t\t\t * If there is no targets filters defined, there's no need to modify\r\n\t\t\t * the targets descriptor.\r\n\t\t\t */\r\n\t\t\treturn;\r\n\t\t}\r\n\t\teori = getTargetsDescriptor().getElement(edunid);\r\n\t\tif (eori != null) { // changed node is in the targets descriptor\r\n\t\t\t// It is assume that the Element is a leaf, so getFirstChild is OK\r\n\t\t\teori.getFirstChild().setNodeValue(t.getTextContent());\r\n\t\t}\r\n\t}", "public void update(Observable o, Object arg) {\n\n if (!(arg instanceof NodeChange)) {\n logger.severe(\"received unknown notification, ignore...\");\n return;\n }\n\n NodeChange nodeChange = (NodeChange) arg;\n if ((nodeChange.getCause() != NodeChange.MEMBER_JOINED) &&\n (nodeChange.getCause() != NodeChange.MEMBER_LEFT)) {\n // Ignore.\n return;\n }\n\n synchronized(cmmNotifications) {\n cmmNotifications.add(nodeChange);\n }\n }", "protected void updated() {\n if (state.isSynced()) {\n this.state.setState(ENodeState.Updated);\n }\n }", "public void onNeighborBlockChange(World par1World, int par2, int par3, int par4, Block par5)\r\n/* 179: */ {\r\n/* 180:202 */ if ((par1World.getTileEntity(par2, par3, par4) instanceof TileEntityTransferNode)) {\r\n/* 181:203 */ ((TileEntityTransferNode)par1World.getTileEntity(par2, par3, par4)).updateRedstone();\r\n/* 182: */ }\r\n/* 183: */ }", "public void parentChanged(TreeNode node, TreeNode previousParent) {\n\t\t\tdefaultHandle(node);\n\t\t}", "public void updateNodeDataChanges(Object src) {\n\t}", "private void syncNodeSelection() {\r\n\t\tGraphNode node = ((AbstractGraph)graphController.getGraph()).getFirstSelectedNode();\r\n\t\tif(node != null) {\r\n\t\t\tcancelSelectionUpdate = true;\r\n\t\t\tsetGlobalSelection((OWLEntity)node.getUserObject());\r\n\t\t}\r\n\t}", "void selectedSimulationEntityChange(SimulationTreeNode node);", "public void syncNodes(Node dataAfter, Node dataBefore) {\n if (isControllerConfigNode(dataAfter, dataBefore)) {\n LOG.trace(\"{} is ignored by VPP-renderer\", CONTROLLER_CONFIG_NODE);\n return;\n }\n // New node\n if (dataBefore == null && dataAfter != null) {\n createNode(dataAfter);\n }\n // Connected/disconnected node\n if (dataBefore != null && dataAfter != null) {\n updateNode(dataAfter);\n }\n // Removed node\n if (dataBefore != null && dataAfter == null) {\n removeNode(dataBefore);\n }\n }", "protected void onNodeChanged(AbstractNode node) {\r\n\t\t//Activator.getLogger().debug(\"Selection changed: \" + node, null);\r\n\t}", "public void treeStructureChanged(TreeModelEvent evt) {\n\t\t\t\tSystem.out\n\t\t\t\t\t\t.println(\"In TreeModelListener: Tree Structure Changed\");\n\t\t\t}", "void update(DiffReader diff) throws ModelRuntimeException;", "void nodeUpdated(Node n) throws RepositoryException;", "private void commitOntChanges(boolean sync) {\r\n\t\t\r\n\t\tString status = \"Status: [ACTION - Commit to Local Ontology]...\";\r\n\t\t\r\n\t\t// load base ontology first\r\n\t\tOWLOntology baseOntology = null;\r\n\t\tif (!sync) {\r\n\t\t\tif (existingOntRadio.isSelected()) {\r\n\t\t\t\t// get existing ontology from swoopModel\r\n\t\t\t\tbaseOntology = (OWLOntology) ontBox.getSelectedItem();\r\n\t\t\t\ttry {\r\n\t\t\t\t\tbaseOntology = swoopModel.getOntology(baseOntology.getURI());\r\n\t\t\t\t} catch (OWLException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tURI ontURI = null;\r\n\t\t\t\ttry {\r\n\t\t\t\t\t// load ontology with URI\r\n\t\t\t\t\tontURI = new URI(swoopOntFld.getText());\r\n\t\t\t\t\tbaseOntology = swoopModel.loadOntology(ontURI);\r\n\t\t\t\t}\r\n\t\t\t\tcatch (Exception ex) {\r\n\t\t\t\t\t// create new ontology\r\n\t\t\t\t\tOWLBuilder builder = new OWLBuilder();\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tbuilder.createOntology(ontURI, ontURI);\r\n\t\t\t\t\t} catch (OWLException e) {\r\n\t\t\t\t\t\te.printStackTrace();\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbaseOntology = builder.getOntology();\r\n\t\t\t\t}\r\n\t\t\t\ttry {\r\n\t\t\t\t\t//*** remember to add new baseOntology (not currently in SwoopModel) to the model\r\n\t\t\t\t\tswoopModel.addOntology(baseOntology);\r\n\t\t\t\t} catch (OWLException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\t// if sync ontology is specified (i.e. not advanced mode)\r\n\t\t\tif (syncOntology == null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tURI ontURI = new URI(this.repBaseOntFld.getText());\r\n\t\t\t\t\t// check if ontology is already in Swoop \r\n\t\t\t\t\tif (swoopModel.getOntology(ontURI)!=null) {\r\n\t\t\t\t\t\t//TODO: currently commit changes to present ontology\r\n\t\t\t\t\t\tsyncOntology = swoopModel.getOntology(ontURI);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\t// add new ontology to swoop\r\n\t\t\t\t\t\tsyncOntology = swoopModel.loadOntology(ontURI);\r\n\t\t\t\t\t\tswoopModel.addOntology(syncOntology);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tcatch (Exception ex) {\r\n\t\t\t\t\tex.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tbaseOntology = syncOntology;\r\n\t\t}\r\n\t\t\r\n\t\tif (baseOntology == null) {\r\n\t\t\tstatusBar.setText(status+\"Unable to load base ontology\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\t// test changes\r\n\t\tboolean success = true;\r\n\t\tList commitChanges = null;\r\n\t\tif (!sync) {\r\n\t\t\t// if sync is not set, i.e. advanced mode is enabled\r\n\t\t\t// commit only ontside changes\r\n\t\t\tcommitChanges = ontChanges;\r\n\t\t\tsuccess = this.testChanges(false);\r\n\t\t}\r\n\t\telse {\r\n\t\t\t// if sync is set, commit all repository-side changes\r\n\t\t\tcommitChanges = new ArrayList(this.getDescendantChanges(repRoot));\r\n\t\t\t// need to test any repChanges to check for changes already applied to ontology\r\n\t\t\ttry {\r\n\t\t\t\tList alreadyOntChanges = swoopModel.getChangesCache().getChangeList(syncOntology.getURI());\r\n\t\t\t\tfor (Iterator iter = new ArrayList(commitChanges).iterator(); iter.hasNext();) {\r\n\t\t\t\t\tSwoopChange swc = (SwoopChange) iter.next();\r\n\t\t\t\t\tif (this.isPresent(alreadyOntChanges, swc)) commitChanges.remove(swc);\r\n\t\t\t\t}\r\n\t\t\t} \r\n\t\t\tcatch (OWLException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tif (success){\r\n\t\t\ttry {\r\n\t\t\t\t// commit all changes in commitChanges List\r\n\t\t\t\tfor (int i=0; i<commitChanges.size(); i++) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tSwoopChange swc = (SwoopChange) commitChanges.get(i);\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (sync && !swc.isOnRepository) continue; //*** dont commit anything but repository changes to synched ontology\r\n\t\t\t\t\t\r\n\t\t\t\t\tOntologyChange oc = swc.getChange();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//*** need to align changes with base ontology! ***/\r\n\t\t\t\t\tOntologyChange alignOC = (OntologyChange) controlHandler.swoopHandler.changeLog.getChangeInformation(oc, ChangeLog.CHANGE_ALIGN, null, new ArrayList(), baseOntology);\r\n\t\t\t\t\t\r\n\t\t\t\t\t// APPLY CHANGE\r\n\t\t\t\t\tif (alignOC instanceof BooleanElementChange) { \r\n\t \t\t\t\tswoopModel.applyBooleanElementChange(alignOC);\r\n\t \t\t\t}\r\n\t \t\t\telse if (alignOC instanceof EnumElementChange) { \r\n\t \t\t\t\tswoopModel.applyEnumElementChange(alignOC);\r\n\t \t\t\t}\r\n\t\t\t\t\telse alignOC.accept((ChangeVisitor) baseOntology);\r\n\t\t\t\t\t\r\n\t\t\t\t\t// update changesCache in swoopModel\r\n\t\t\t\t\t// first reset aligned ontology change in swc \r\n\t\t\t\t\tswc.setChange(alignOC);\r\n\t\t\t\t\t// and add *clones* to changesCache in SwoopModel\r\n\t\t\t\t\tswoopModel.getChangesCache().addChange(swc.owlObjectURI, (SwoopChange) swc.clone());\r\n\t\t\t\t\t\r\n\t\t\t\t\t// do the same for entities referred to by swc.ontologyChange\r\n\t\t\t\t\t// & also add changed entity URI to swoopModel dirty set\r\n\t\t\t\t\tOWLEntity entity = swoopModel.getEntity(baseOntology, swc.owlObjectURI, true);\r\n\t\t\t\t\tif (swc.getOwlObjectURI().equals(baseOntology.getURI()) && swc.extraSubjects!=null) {\r\n\t\t\t\t\t\tfor (Iterator iter = swc.extraSubjects.iterator(); iter.hasNext();) {\r\n\t\t\t\t\t\t\tURI entityURI = (URI) iter.next();\r\n\t\t\t\t\t\t\t// add to cache\r\n\t\t\t\t\t\t\tswoopModel.getChangesCache().addChange(entityURI, (SwoopChange) swc.clone());\r\n\t\t\t\t\t\t\t// add to dirty set\r\n\t\t\t\t\t\t\tentity = swoopModel.getEntity(baseOntology, entityURI, true);\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//* notify swoopModel!\r\n\t\t\t\tSet changedOntologies = new HashSet();\r\n\t\t\t\tchangedOntologies.add(baseOntology);\r\n\t\t\t\tswoopModel.notifyListeners(new ModelChangeEvent(swoopModel, ModelChangeEvent.ONTOLOGY_CHANGED, changedOntologies));\r\n\t\t\t\t\r\n\t\t\t\tstatusBar.setText(status+\"Committed \"+commitChanges.size()+\" changes\");\r\n\t\t\t}\r\n\t\t\tcatch (OWLException ex) {\r\n\t\t\t\tex.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n\t\t\tpublic void handleChildChange(String parentPath, List<String> currentChilds) throws Exception {\n\t\t\t\tworkServers = currentChilds;\n\t\t\t\tSystem.out.println(\"工作服务器的列表发生变化,变化后的列表为: \"+workServers);\n\t\t\t}", "private void doReadOnlySync(Workspace workspace,\n\t\t\t\t\t\t\t\t GitSyncDetails syncDetails,\n\t\t\t\t\t\t\t\t ObjectMapper mapper,\n\t\t\t\t\t\t\t\t CollectionDiffer diffMerger,\n\t\t\t\t\t\t\t\t File collectionFile,\n\t\t\t\t\t\t\t\t List<Collection> collectionCommonCopy,\n\t\t\t\t\t\t\t\t File environmentFile,\n\t\t\t\t\t\t\t\t List<Environment> environmentCommonCopy,\n\t\t\t\t\t\t\t\t Git repo,\n\t\t\t\t\t\t\t\t List<Collection> collectionServerCopy,\n\t\t\t\t\t\t\t\t List<Environment> environmentServerCopy,\n\t\t\t\t\t\t\t\t List<Collection> collectionWorkingCopy,\n\t\t\t\t\t\t\t\t List<Environment> environmentWorkingCopy) throws IOException, GitAPIException {\n\t\tDiffNode collectionServerCopyChanges = diffMerger.compare(collectionServerCopy, collectionCommonCopy);\n\t\tDiffNode environmentServerCopyChanges = diffMerger.compareEnvs(environmentServerCopy, environmentCommonCopy);\n\n\t\t//step2: merge diffs to working copy\n\t\tif (collectionServerCopyChanges.isChanged() || environmentServerCopyChanges.isChanged()) {\n\t\t\tdiffMerger.mergeDiffs(collectionServerCopy, collectionWorkingCopy, collectionServerCopyChanges);\n\t\t\tdiffMerger.mergeDiffsEnvs(environmentServerCopy, environmentWorkingCopy, environmentServerCopyChanges);\n\t\t}\n\n\n\t\t//step3: apply\n\t\tworkspace.setCollections(collectionWorkingCopy);\n\t\tworkspace.setEnvironments(environmentWorkingCopy);\n\t}", "public abstract void modelStructureChanged();", "protected void handleModelChanged() {\n\t\t// refresh connections on the source edit part!\n\t\tif (isActive()) {\n//\t\t\tLink link = (Link)getModel();\n//\t\t\tEObject sourceActivity = FlowLinkUtil.getLinkSource(link); \n//\t\t\tif (sourceActivity != null) {\n//\t\t\t\tObject editPart = getViewer().getEditPartRegistry().get(sourceActivity);\n//\t\t\t\tif (editPart instanceof ActivityEditPart) {\n//\t\t\t\t\t((ActivityEditPart)editPart).refresh();\n//\t\t\t\t}\n//\t\t\t}\n//\t\t\tEObject targetActivity = FlowLinkUtil.getLinkTarget(link); \n//\t\t\tif (targetActivity != null) {\n//\t\t\t\tObject editPart = getViewer().getEditPartRegistry().get(targetActivity);\n//\t\t\t\tif (editPart instanceof ActivityEditPart) {\n//\t\t\t\t\t((ActivityEditPart)editPart).refresh();\n//\t\t\t\t}\n//\t\t\t}\n\t\t\t// If property name is children, refresh children.\n\t\t\t// If property name is size or location, refresh visuals.\n\t\t\trefreshVisuals();\n\t\t}\n\t}", "public void sync(){\n\t\tDHTNode myNode = dynamoRing.getNode(MY_ADDRESS);\n\t\tArrayList<DHTNode> dependentNodes = dynamoRing.getNPredecessors(myNode, REPLICATION_COUNT-1);\n\t\tdependentNodes.add(myNode);\n\t\tSparseArray<String> dependentNodeMap = new SparseArray<String>();\n\t\tHashMap<String, KeyVal> resultMap = new HashMap<String, KeyVal>();\n\t\tfor(int i=0;i<dependentNodes.size();i++)\t// Ideally it should contact only N-1 successors and N-1 predecessors\n\t\t\t\t\t\t\t\t\t\t\t\t\t// but for total node count = 5 and replica count = 2, this\n\t\t\t\t\t\t\t\t\t\t\t\t\t// number spans through all the nodes\n\t\t\tdependentNodeMap.put(dependentNodes.get(i).getAddress(), dependentNodes.get(i).getId());\n\t\t\n\t\tArrayList<DHTNode> nodeList = dynamoRing.getAllNodes();\n\t\tfor(int i=0;i<nodeList.size();i++){\n\t\t\tif(nodeList.get(i)==myNode)\n\t\t\t\tcontinue;\n\t\t\tArrayList<KeyVal> keyValList = readDHTAllFromNode(nodeList.get(i));\n\t\t\tfor(int j=0;j<keyValList.size();j++){\n\t\t\t\tKeyVal keyVal = keyValList.get(j);\n\t\t\t\tint responsibleNodeAddress = dynamoRing.getResponsibleNode(keyVal.getKey()).getAddress();\n\t\t\t\tif(dependentNodeMap.get(responsibleNodeAddress)==null)\n\t\t\t\t\tcontinue;\n\t\t\t\telse{\n\t\t\t\t\tif(resultMap.get(keyVal.getKey())==null){\n\t\t\t\t\t\tresultMap.put(keyVal.getKey(), keyVal);\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tint oldVersion = Integer.parseInt(resultMap.get(keyVal.getKey()).getVersion());\n\t\t\t\t\t\tint newVersion = Integer.parseInt(keyVal.getVersion());\n\t\t\t\t\t\tif(newVersion > oldVersion)\n\t\t\t\t\t\t\tresultMap.put(keyVal.getKey(), keyVal);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tIterator<Entry<String, KeyVal>> resultIterator = resultMap.entrySet().iterator();\n\t\twhile(resultIterator.hasNext()){\n\t\t\tEntry<String, KeyVal> nextEntry = resultIterator.next();\n\t\t\tKeyVal keyVal = nextEntry.getValue();\n\t\t\twriteLocalKeyVal(keyVal.getKey(), keyVal.getVal(), keyVal.getVersion());\n\t\t}\n\t\t\n\t}", "void willDisplayUpdate(String change) throws RemoteException;", "public void onWorkChanges(IDuccWork left, IDuccWork right);", "public void update(Object obj) {\n\t\t\t\t\t\tNode clone = new Node();\n\t\t\t\t\t\tclone.attachChild(new SharedLine(lineGeo1));\n\t\t\t\t\t\tclone.attachChild(new SharedLine(lineGeo2));\n\t\t\t\t\t\tlines.attachChild(clone);\n\t\t\t\t\t\tTealWorldManager.getWorldManager().addToUpdateList(lines);\n\t\t\t\t\t}", "public void syncReceived(int devAddr)\n {\n syncAddress = devAddr;\n\n // Close current SYNC dialog\n if (syncDiag != null)\n {\n syncDiag.close();\n syncDiag = null;\n }\n }", "public static boolean syncUp(ClientResponsePacket res_packet)throws IOException\n {\n Socket mem_conn = null;\n ClientResponsePacket data = null;\n MemNodeSyncHelper sync_nodes_list = res_packet.getMemNodeSyncHelper();\n ClientRequestPacket req_packet = new ClientRequestPacket();\n for(MemNodeSyncDetails node : sync_nodes_list.syncIps)\n {\n req_packet.setCommand(ProjectConstants.SYNC_MEM_NODE);\n req_packet.setStart_range(node.getStart_range());\n req_packet.setEnd_range(node.getEnd_range());\n req_packet.setStorage_type(node.getStorage_type());\n mem_conn = new Socket(node.getIp_Address(),ProjectConstants.MN_LISTEN_PORT);\n PacketTransfer.sendRequest(req_packet,mem_conn);\n data = PacketTransfer.recv_response(mem_conn);\n System.out.println(\"Loading DS with status : \" + data.getResponse_code() + \" and size : \" + data.getSync_data().size() +\n \" and range \" + node.getStart_range() + \":\" + node.getEnd_range() + \" and ip : \" + node.getIp_Address());\n if(data.getResponse_code() != ProjectConstants.SUCCESS)\n return false;\n loadSyncData(data.getSync_data(),node.getStorage_type());\n }\n return true;\n }", "public void reconcile(IModelElementDelta delta) {\n \t\t\tfReorderedMembers = false;\n \t\t\tfForceFireSelectionChanged = false;\n \t\t\tif (getComparator() == null) {\n \n \t\t\t\tWidget w = findItem(fInput);\n \t\t\t\tif (w != null && !w.isDisposed())\n \t\t\t\t\tupdate(w, delta);\n \t\t\t\tif (fForceFireSelectionChanged)\n \t\t\t\t\tfireSelectionChanged(new SelectionChangedEvent(getSite()\n \t\t\t\t\t\t\t.getSelectionProvider(), this.getSelection()));\n \t\t\t\tif (fReorderedMembers) {\n \t\t\t\t\trefresh(false);\n \t\t\t\t\tfReorderedMembers = false;\n \t\t\t\t}\n \n \t\t\t} else {\n \t\t\t\t// just for now\n \t\t\t\trefresh(true);\n \t\t\t}\n \t\t}", "public void synced() {\n Preconditions.checkNotNull(state);\n state.setState(ENodeState.Synced);\n }", "public void setDiff(Diff diff) {\n\t\tthis.diff = diff;\n\t\tupdateTopNodes();\n\t\tnodeStructureChanged(topNodes);\n\t}", "@Override\n\tpublic void setSyncEventId(long syncEventId) {\n\t\t_dlSyncEvent.setSyncEventId(syncEventId);\n\t}", "@ReceiveEvent\r\n public void onLogicTreeMoveEntityEvent(LogicTreeMoveEntityEvent event, EntityRef entity, ScenarioHubToolUpdateComponent component) {\r\n List<EntityRef> list;\r\n switch (event.getElementType()) {\r\n case EVENT:\r\n list = event.getTriggerEntity().getComponent(TriggerEventListComponent.class).events;\r\n break;\r\n case CONDITIONAL:\r\n list = event.getTriggerEntity().getComponent(TriggerConditionListComponent.class).conditions;\r\n break;\r\n case ACTION:\r\n list = event.getTriggerEntity().getComponent(TriggerActionListComponent.class).actions;\r\n break;\r\n case TRIGGER:\r\n list = scenarioEntity.getComponent(ScenarioComponent.class).triggerEntities;\r\n break;\r\n default:\r\n for (EntityRef e : entityManager.getEntitiesWith(ScenarioHubToolUpdateComponent.class)) {\r\n e.send(new HubtoolRewriteLogicEvent());\r\n }\r\n return;\r\n }\r\n int startIndex = list.indexOf(event.getMoveEntity());\r\n int endIndex = event.getIndex();\r\n if (startIndex < endIndex) {\r\n list.add(endIndex, list.get(startIndex));\r\n list.remove(startIndex);\r\n }\r\n else {\r\n list.add(endIndex, list.get(startIndex));\r\n list.remove(startIndex + 1);\r\n }\r\n\r\n switch (event.getElementType()) {\r\n case EVENT:\r\n event.getTriggerEntity().saveComponent(event.getTriggerEntity().getComponent(TriggerEventListComponent.class));\r\n entity.saveComponent(component);\r\n break;\r\n case CONDITIONAL:\r\n event.getTriggerEntity().saveComponent(event.getTriggerEntity().getComponent(TriggerConditionListComponent.class));\r\n entity.saveComponent(component);\r\n break;\r\n case ACTION:\r\n event.getTriggerEntity().saveComponent(event.getTriggerEntity().getComponent(TriggerActionListComponent.class));\r\n entity.saveComponent(component);\r\n break;\r\n case TRIGGER:\r\n entity.saveComponent(component);\r\n break;\r\n default:\r\n for (EntityRef e : entityManager.getEntitiesWith(ScenarioHubToolUpdateComponent.class)) {\r\n e.send(new HubtoolRewriteLogicEvent());\r\n }\r\n return;\r\n }\r\n\r\n for (EntityRef e : entityManager.getEntitiesWith(ScenarioHubToolUpdateComponent.class)) {\r\n e.send(new HubtoolRewriteLogicEvent());\r\n }\r\n }", "@Test\n public void testDiff() throws Exception {\n String newVersionJarPath = \"data/sample/jar/change4.jar\";\n String oldVersionJarPath = \"data/sample/jar/change3.jar\";\n String changePath = \"data/sample/changes_change4_change3.txt\";\n\n// RelationInfo relationInfoForChangedPart = new RelationInfo(newVersionCodePath, oldVersionCodePath, changePath, false);\n// RelationInfo relationInfoForChangedPart = new RelationInfo(newVersionJarPath, oldVersionJarPath, changePath, false);\n// CallRelationGraph callGraphForChangedPart = new CallRelationGraph(relationInfoForChangedPart);\n//\n// double thresholdForInitialRegion = 0.35;\n// RelationInfo oldRelationInfo = new RelationInfo(newVersionJarPath,false);\n// oldRelationInfo.setPruning(thresholdForInitialRegion);\n// RelationInfo newRelationInfo = new RelationInfo(oldVersionJarPath,false);\n// newRelationInfo.setPruning(thresholdForInitialRegion);\n//\n// CallRelationGraph oldCallGraph = new CallRelationGraph(oldRelationInfo);\n// CallRelationGraph newCallGraph = new CallRelationGraph(newRelationInfo);\n//\n// ChangedArtifacts changedArtifacts = new ChangedArtifacts();\n// changedArtifacts.parse(changePath);\n//\n// InitialRegionFetcher fetcher = new InitialRegionFetcher(changedArtifacts, newCallGraph, oldCallGraph);\n//\n// ExportInitialRegion exporter = new ExportInitialRegion(fetcher.getChangeRegion());\n\n }", "private void processV1AuthoritativeUpdate(SystemMetadata mnSystemMetadata, SystemMetadata cnSystemMetadata)\n throws RetryableException, SynchronizationFailed, UnrecoverableException {\n\n logger.debug(task.taskLabel() + \" entering processV1AuthoritativeUpdate...\");\n try {\n // this is an update from the authoritative memberNode\n // so look for fields with valid changes\n boolean foundValidMNChange = false;\n\n // obsoletedBy can be updated to a value only if its value hasn't\n // already been set. Once set, it cannot change.\n if ((cnSystemMetadata.getObsoletedBy() == null)\n && (mnSystemMetadata.getObsoletedBy() != null)) {\n logger.debug(task.taskLabel() + \" Updating ObsoletedBy...\");\n\n nodeCommunications.getCnCore().setObsoletedBy(session, TypeFactory.buildIdentifier(task.getPid()),\n mnSystemMetadata.getObsoletedBy(),\n cnSystemMetadata.getSerialVersion().longValue());\n // auditReplicaSystemMetadata(pid);\n // serial version will be updated at this point, so get the new version\n logger.debug(task.taskLabel() + \" Updated ObsoletedBy\");\n foundValidMNChange = true;\n }\n\n // (getArchived() returns a boolean)\n // only process the update if the new sysmeta set it to true and the \n // existing value is null or false. Cannot change the value from true\n // to false.\n if (((mnSystemMetadata.getArchived() != null) && mnSystemMetadata.getArchived())\n && ((cnSystemMetadata.getArchived() == null) || !cnSystemMetadata.getArchived())) {\n logger.debug(task.taskLabel() + \" Updating Archived...\");\n nodeCommunications.getCnCore().archive(session, TypeFactory.buildIdentifier(task.getPid()));\n // auditReplicaSystemMetadata(pid);\n // serial version will be updated at this point, so get the new version\n logger.debug(task.taskLabel() + \" Updated Archived\");\n foundValidMNChange = true;\n }\n\n if (foundValidMNChange) {\n notifyReplicaNodes(TypeFactory.buildIdentifier(task.getPid()), true); // true notifies the authMN, too\n } else {\n // TODO: refactor to assume less about how we got here and whether or not to throw an exception\n // \n // a simple reharvest may lead to getting to this point, so check\n // the sysmeta modified date before throwing an exception\n if (mnSystemMetadata.getDateSysMetadataModified().after(\n cnSystemMetadata.getDateSysMetadataModified())) {\n // something has changed, and we should probably investigate,\n // but for now just assume that an out-of-bounds change was attempted.\n InvalidRequest invalidRequest = new InvalidRequest(\n \"567123\",\n \"Synchronization unable to process the update request. Only archived and obsoletedBy may be updated\");\n logger.error(buildStandardLogMessage(invalidRequest, \"Ignoring update from MN. Only archived and obsoletedBy may be updated\"));\n throw SyncFailedTask.createSynchronizationFailed(task.getPid(), null, invalidRequest);\n }\n }\n } \n catch (ServiceFailure e) {\n V2TransferObjectTask.extractRetryableException(e);\n throw new UnrecoverableException(\"Failed to update cn with new SystemMetadata.\", e);\n } \n catch (InvalidRequest e) {\n throw SyncFailedTask.createSynchronizationFailed(task.getPid(),\n \"From processV1AuthoritativeUpdate: Could not update cn with new valid SystemMetadata!\", e);\n }\n catch (VersionMismatch e) {\n if (task.getAttempt() == 1) {\n try {\n notifyReplicaNode(cnSystemMetadata, TypeFactory.buildNodeReference(task.getNodeId()));\n } catch (InvalidToken | NotAuthorized | NotImplemented\n | ServiceFailure | NotFound | InvalidRequest e1) {\n throw new UnrecoverableException(\"Could not notify the source MN to update their SystemMetadata in response to \" +\n \"encountering a VersionMismatch during V1-style system metadata update\", e1);\n }\n }\n throw new RetryableException(\"Cannot update systemMetadata due to VersionMismatch\", e, 5000L);\n }\n \n catch ( NotFound | NotImplemented | NotAuthorized | InvalidToken e) {\n throw new UnrecoverableException(\"Unexpected failure when trying to update v1-permitted fields (archived, obsoletedBy).\", e);\n\n }\n }", "protected void textLeafInserted(MutationEvent evt) throws MelodyException {\r\n\t\tsuper.textLeafInserted(evt);\r\n\t\t// the changed node\r\n\t\tText t = (Text) evt.getTarget();\r\n\t\t// its parent element\r\n\t\tElement e = (Element) t.getParentNode();\r\n\t\tDUNID edunid = DUNIDDocHelper.getDUNID(e);\r\n\t\t// Modify the DUNIDDoc\r\n\t\tElement eori = getOwnerDUNIDDoc(e).getElement(edunid);\r\n\t\t// It is assume that the Element is a leaf, so setTextContent is OK\r\n\t\teori.setTextContent(t.getTextContent());\r\n\t\t// Modify the targets descriptor\r\n\t\tif (!areTargetsFiltersDefined()) {\r\n\t\t\t/*\r\n\t\t\t * If there is no targets filters defined, there's no need to modify\r\n\t\t\t * the targets descriptor.\r\n\t\t\t */\r\n\t\t\treturn;\r\n\t\t}\r\n\t\teori = getTargetsDescriptor().getElement(edunid);\r\n\t\tif (eori != null) { // changed node is in the targets descriptor\r\n\t\t\t// It is assume that the Element is a leaf, so setTextContent is OK\r\n\t\t\teori.setTextContent(t.getTextContent());\r\n\t\t}\r\n\t}", "@Override\n public void detectAndSendChanges() {\n super.detectAndSendChanges();\n\n final int newStoredFuel = this.tileAdvancedFurnace.getStoredFuel();\n final int newSmeltTime = this.tileAdvancedFurnace.getRemainingSmeltTime();\n if ((lastStoredFuel != newStoredFuel) || (lastSmeltTime != newSmeltTime)) {\n this.lastStoredFuel = newStoredFuel;\n this.lastSmeltTime = newSmeltTime;\n for (int i = 0; i < this.crafters.size(); ++i) {\n final ICrafting icrafting = (ICrafting) this.crafters.get(i);\n icrafting.sendProgressBarUpdate(this, UPDATEID_STORED_OPERATIONS, newStoredFuel);\n icrafting.sendProgressBarUpdate(this, UPDATEID_SMELTTIME_REMAINING, newSmeltTime);\n }\n }\n }", "@Override\n\tpublic void onDataChanged(long timestamp, int msg) {\n\t\tif(msg==AgentMessage.ERROR.getCode()) \n\t\t\tToolBox.showRemoteErrorMessage(connBean, error);\n\t\t\n\t\tsynchronized (mutex) {\n setEnabled(false);\n if (solid != null && timestamp > lastestTimeStamp+1500*1000000) {\n int result = JOptionPane.showConfirmDialog(StartUI.getFrame(), \"The config of this lift has changed. Reload it?\", \"Update\",\n JOptionPane.YES_NO_OPTION);\n if (result == JOptionPane.OK_OPTION) {\n solid = null;\n event = new Parser_Event( connBean.getIp(), connBean.getPort() );\n setHot();\n }\n } else {\n setHot();\n }\n setEnabled(true);\n }\n\t}", "void handleChanged(Collection<AGStoredFile> existingFiles, Collection<AGStoredFile> changedFiles);", "@Override\n public void propertyChange(java.beans.PropertyChangeEvent ev) {\n fireInAWT(PROP_NODE_CHANGE, null, null);\n }", "public void setWorkProcessChanges(WorkProcessChangesHandler callback);", "public void structureChanged(GraphEvent e);", "public void tpoChange(){\r\n\r\n System.out.println(\"TPO change detected! \\nReloading compatible transmitters!\");\r\n\r\n tx_cb.getItems().clear();\r\n tx_cb.setPromptText(\"Select Transmitter\");\r\n tx_cb.setButtonCell(new ListCell<String>() {\r\n @Override\r\n protected void updateItem(String item, boolean empty) {\r\n super.updateItem(item, empty);\r\n if (empty || item == null)\r\n setText(\"Select Transmitter\");\r\n else\r\n setText(item);\r\n }\r\n });\r\n genRep.setDisable(true);// disable generate report button we tpo is changed(this function resets some values and makes them null-- error handler\r\n filter.getItems().clear();\r\n filter.setPromptText(\"Select Filter\");\r\n filter.setButtonCell(new ListCell<String>() {\r\n @Override\r\n protected void updateItem(String item, boolean empty) {\r\n super.updateItem(item, empty);\r\n if (empty || item == null)\r\n setText(\"Select Filter\");\r\n else\r\n setText(item);\r\n\r\n if(tpo.getText().equals(\"\")|| tpo.getText().equals(\"0\")){\r\n tx_cb.setValue(null);\r\n filter.setValue(null);\r\n tpo.setText(\"1\");\r\n }\r\n }\r\n });\r\n\r\n /** call addTX() to populate TX combo box with compatible transmitters for selected TPO **/\r\n addTX();\r\n System.out.println(\"New TPO: \"+tpo.getText());\r\n }", "public void setSyncStatus(int syncStatus);", "default void updateNode(\n com.google.cloud.tpu.v2alpha1.UpdateNodeRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateNodeMethod(), responseObserver);\n }", "public void checkUpdateFileComment() {\r\n\t\tif (Thread.currentThread().getId() == DataExplorer.application.getThreadId()) {\r\n\t\t\tif (this.fileCommentTabItem != null && this.fileCommentTabItem.isFileCommentChanged()) this.fileCommentTabItem.setFileComment();\r\n\t\t}\r\n\t\telse { // if the percentage is not up to date it will updated later\r\n\t\t\tGDE.display.asyncExec(new Runnable() {\r\n\t\t\t\tpublic void run() {\r\n\t\t\t\t\tif (DataExplorer.this.fileCommentTabItem != null && DataExplorer.this.fileCommentTabItem.isFileCommentChanged()) DataExplorer.this.fileCommentTabItem.setFileComment();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t}", "public void handle(EntityPlayerMP player, GUIUpdatePacket message) {\n Container container = player.openContainer;\n if(container != null){\n if(container instanceof SyncableContainer){\n SyncableContainer synCont = (SyncableContainer) container;\n SyncableTileEntity tileSyncable = synCont.getSyncableTileEntity();\n tileSyncable.doSync(message.toSync);\n // We have adjusted the clientside values for at least one client. We need to send these updated\n // values to all players so that they can all see it\n TileEntity tile = (TileEntity) tileSyncable;\n for(EntityPlayerMP pl : player.getServerWorld().getPlayers(EntityPlayerMP.class, new Predicate<EntityPlayerMP>() {\n @Override\n public boolean apply(@Nullable EntityPlayerMP input) {\n if(Math.sqrt(input.getPosition().distanceSq(tile.getPos().getX(), tile.getPos().getY(), tile.getPos().getZ())) < 5D){\n if(input.openContainer != null){\n if(input.openContainer instanceof SyncableContainer){\n return true;\n }\n }\n }\n return false;\n }\n })){\n TonePacketHandler.sendTo(new PlayerGuiSyncMessage(message.toSync), pl);\n }\n }\n }\n }", "@Override\r\n \t public void editingStopped(ChangeEvent e1) {\r\n \t \t if (editor.getState()==0 || editor.getState()==2){\r\n \t \t\t \r\n \t \t\t //is father \r\n \t \t\t for (int i = 0; i<((MyDataNode) editor.getNodeEditing()).getChildrenCount(); i++){\r\n \t \t\t\t((MyDataNode) editor.getNodeEditing()).getChildren().get(i).setExtract(editor.getState());\r\n \t \t\t }\r\n \t \t\t \r\n \t \t\t //is child\r\n \t \t\t if (((MyDataNode) editor.getNodeEditing()).getChildrenCount() == 0){\r\n \t \t\t\tMyDataNode child = (MyDataNode) editor.getNodeEditing();\r\n \t \t\t\tMyDataNode parent = ((MyDataModel) ((MyTreeTableModelAdapter) editor.getTable().getModel()).getTreeTableModel()).getParent(child);\r\n \t \t\t\t\t\t//getParent(child);\r\n \t \t\t\tint total = 0;\r\n \t \t\t\t//WHATCHOUT! getParent returns first equal. If there is more than one equal and you are not modifying the first one => bug!!!\r\n \t \t\t\tfor (int i = 0; i<parent.getChildrenCount(); i++){\r\n \t \t \t\t\ttotal += parent.getChildren().get(i).getExtract(); \t \t \t\t\t\t\r\n \t \t \t\t }\r\n \t \t\t\tif (total != 0 && total != parent.getChildrenCount()*2){\r\n \t \t\t\t\tparent.setExtract(1);\r\n \t \t\t\t}else if (total == 0){\r\n \t \t\t\t\tparent.setExtract(0);\r\n \t \t\t\t}else if (total == parent.getChildrenCount()*2){\r\n \t \t\t\t\tparent.setExtract(2);\r\n \t \t\t\t}\r\n \t \t\t }\r\n\r\n \t \t\t \r\n \t \t }\r\n \t \t int temp = editor.getRowEditing(); \t \t \r\n \t \t editor.setRowEditing(-1);\r\n \t \t editor.getTable().setRowSelectionInterval(temp, temp);\r\n \t \t editor.getTable().repaint();\r\n \t }", "private void onComponentUpdate(InheritedComponentInstanceSelDTO dto) {\n\t\tInheritedComponentInstanceSelModelData oldModel = store.findModel(ModuleInstanceSelModelData.PROPERTY_ID, dto\n\t\t\t.getComponent().getId());\n\t\tInheritedComponentInstanceSelModelData newModel = new InheritedComponentInstanceSelModelData(dto);\n\t\tstore.remove(oldModel);\n\t\tstore.add(newModel);\n\t}", "public static void updateFromDto(Node dto, DBONode jdo, DBORevision rev, boolean deleteActivityId) throws DatastoreException, InvalidModelException {\r\n\t\tjdo.setName(dto.getName());\r\n\t\tif(dto.getId() != null){\r\n\t\t\tjdo.setId(KeyFactory.stringToKey(dto.getId()));\r\n\t\t}\r\n\t\tif(dto.getCreatedOn() != null){\r\n\t\t\tjdo.setCreatedOn(dto.getCreatedOn().getTime());\r\n\t\t}\r\n\t\tif (dto.getCreatedByPrincipalId() != null){\r\n\t\t\tjdo.setCreatedBy(dto.getCreatedByPrincipalId());\r\n\t\t}\r\n\t\tif(dto.getParentId() != null){\r\n\t\t\tjdo.setParentId(KeyFactory.stringToKey(dto.getParentId()));\r\n\t\t}\r\n\t\tjdo.setAlias(StringUtils.isEmpty(dto.getAlias()) ? null : dto.getAlias());\r\n\t\tif (dto.getModifiedByPrincipalId()==null) throw new InvalidModelException(\"modifiedByPrincipalId may not be null\");\r\n\t\trev.setModifiedBy(dto.getModifiedByPrincipalId());\r\n\t\tif (dto.getModifiedOn()==null) throw new InvalidModelException(\"modifiedOn may not be null\");\r\n\t\trev.setModifiedOn(dto.getModifiedOn().getTime());\r\n\t\t\r\n\t\tif (dto.getVersionComment()!=null && dto.getVersionComment().length()>DBORevision.MAX_COMMENT_LENGTH) \r\n\t\t\tthrow new IllegalArgumentException(\"Version comment length exceeds \"+DBORevision.MAX_COMMENT_LENGTH+\".\");\r\n\t\t\r\n\t\trev.setComment(dto.getVersionComment());\r\n\t\t\r\n\t\tif(dto.getVersionLabel() != null){\r\n\t\t\trev.setLabel(dto.getVersionLabel());\r\n\t\t} \t\r\n\t\trev.setDescription(dto.getDescription());\r\n\t\tif(dto.getFileHandleId() != null){\r\n\t\t\trev.setFileHandleId(KeyFactory.stringToKey(dto.getFileHandleId()));\r\n\t\t}else{\r\n\t\t\trev.setFileHandleId(null);\r\n\t\t}\r\n\t\t// bring in activity id, if set\r\n\t\tif(deleteActivityId) {\r\n\t\t\trev.setActivityId(null);\r\n\t\t} else if(dto.getActivityId() != null) {\r\n\t\t\trev.setActivityId(Long.parseLong(dto.getActivityId()));\r\n\t\t}\r\n\t\t\r\n\t\tif(dto.getColumnModelIds() != null){\r\n\t\t\trev.setColumnModelIds(createByteForIdList(dto.getColumnModelIds()));\r\n\t\t}\r\n\t\tif(dto.getScopeIds() != null){\r\n\t\t\trev.setScopeIds(createByteForIdList(dto.getScopeIds()));\r\n\t\t}\r\n\t\trev.setItems(writeItemsToJson(dto.getItems()));\r\n\t\trev.setReference(compressReference(dto.getReference()));\r\n\t\trev.setIsSearchEnabled(dto.getIsSearchEnabled());\r\n\t\trev.setDefiningSQL(dto.getDefiningSQL());\r\n\t}", "@ReceiveEvent\r\n public void onLogicTreeDeleteEvent(LogicTreeDeleteEvent event, EntityRef entity, ScenarioHubToolUpdateComponent component) {\r\n if (event.getDeleteFromEntity().hasComponent(TriggerNameComponent.class)) { //Must be event/cond/action\r\n if (event.getDeleteEntity().hasComponent(ScenarioIndicatorEventComponent.class)) { //Event\r\n TriggerEventListComponent events = event.getDeleteFromEntity().getComponent(TriggerEventListComponent.class);\r\n events.events.remove(event.getDeleteEntity());\r\n event.getDeleteFromEntity().saveComponent(events);\r\n event.getDeleteEntity().destroy();\r\n }\r\n else if (event.getDeleteEntity().hasComponent(ScenarioIndicatorConditionalComponent.class)) { //Condition\r\n TriggerConditionListComponent conds = event.getDeleteFromEntity().getComponent(TriggerConditionListComponent.class);\r\n conds.conditions.remove(event.getDeleteEntity());\r\n event.getDeleteFromEntity().saveComponent(conds);\r\n event.getDeleteEntity().destroy();\r\n }\r\n else if (event.getDeleteEntity().hasComponent(ScenarioIndicatorActionComponent.class)) { //Action\r\n TriggerActionListComponent actions = event.getDeleteFromEntity().getComponent(TriggerActionListComponent.class);\r\n actions.actions.remove(event.getDeleteEntity());\r\n event.getDeleteFromEntity().saveComponent(actions);\r\n event.getDeleteEntity().destroy();\r\n }\r\n entity.saveComponent(component);\r\n }\r\n else { //Must be a trigger, not an event/action/conditional\r\n scenarioEntity.getComponent(ScenarioComponent.class).triggerEntities.remove(event.getDeleteEntity());\r\n scenarioEntity.saveComponent(scenarioEntity.getComponent(ScenarioComponent.class));\r\n event.getDeleteEntity().destroy();\r\n }\r\n\r\n for (EntityRef e : entityManager.getEntitiesWith(ScenarioHubToolUpdateComponent.class)) {\r\n e.send(new HubtoolRewriteLogicEvent());\r\n }\r\n }", "public void update() {\n\t\tif (fAssociationClassOrLinkObjectNode.isDragged()) { // && fDiagram.isDoAutoLayout() ) {\n\t\t\tfFirstCall = false;\n\t\t\tfX_old = fAssociationClassOrLinkObjectNode.getX();\n\t\t\tfY_old = fAssociationClassOrLinkObjectNode.getY();\n\t\t\tfX_con_old = fConNode.getX();\n\t\t\tfY_con_old = fConNode.getY();\n\t\t} else if (!fAssociationClassOrLinkObjectNode.isDragged()) { // && fDiagram.isDoAutoLayout() ) {\n\t\t\tdouble x = fX_old - fX_con_old;\n\t\t\tdouble y = fY_old - fY_con_old;\n\t\t\tdouble newX = x + fConNode.getX();\n\t\t\tdouble newY = y + fConNode.getY();\n\t\t\tfNENode.setPosition(newX, newY);\n\t\t\tfAssociationClassOrLinkObjectNode.setPosition(newX, newY);\n\t\t}\n\n\t\tif (fFirstCall && !fAssociationClassOrLinkObjectNode.isSelected()) {\n\t\t\tfinal int maxSpace = 30;\n\t\t\tdouble newX = 0.0;\n\t\t\tdouble newY = 0.0;\n\n\t\t\tif (fAssociationClassOrLinkObjectNode.getCenter().getX() >= fConNode.getCenter().getX()) {\n\t\t\t\tnewX = fConNode.getCenter().getX() + maxSpace + fAssociationClassOrLinkObjectNode.getWidth() / 2;\n\t\t\t\tnewY = fConNode.getCenter().getY();\n\t\t\t} else {\n\t\t\t\tnewX = fConNode.getCenter().getX() - maxSpace - fAssociationClassOrLinkObjectNode.getWidth() / 2;\n\t\t\t\tnewY = fConNode.getCenter().getY();\n\t\t\t}\n\t\t\tfNENode.setPosition(newX, newY);\n\t\t\tfAssociationClassOrLinkObjectNode.setPosition(newX, newY);\n\t\t}\n\n\t\tupdateConnectionPoint(fSourceWayPoint.getX(), fSourceWayPoint.getY(), fTargetWayPoint.getX(),\n\t\t\t\tfTargetWayPoint.getY());\n\t}", "@Override\n\tpublic void svnLogChanged(SVNLogEntry logEntry) {\n\t\tif (mMonitorNotRun) {\n\t\t\treturn;\n\t\t}\n\t\tLogger.println(\"==SvnLog begin to logchanged\");\n\t\t\n\t\t//TODO:文件匹配\n\t\tfilterAuthor(logEntry);\n\t\t\n\t\t//TODO:路径匹配\n\t\tfilterFile(logEntry);\n\t\t\n\t\t//TODO: 是否需要更新本次的版本\n\t\tfilterPath(logEntry);\n\t\t\n\t}", "void onTreeChange(TreeChangeEvent event);", "public void relationParentChanged(RelationInstance ri, int signal)\r\n\t{\n\r\n\t\tm_flags |= REFILL_FLAG;\r\n\t}", "public Sync(Path doc){\n\t\tmodDoc = doc;\n\t\tdmp = new diff_match_patch();\n\t\ttry {\n\t\t\tbaseString = openReadFile(modDoc);\n\t\t} catch (IOException e) {\n\t\t\t// TODO Print to the console\n\t\t\t// \"Could not open the file: '\" + modDoc + \".\" \n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n public void processSyncDir(SyncDirId syncDirId, File syncDir) throws Exception {\n SyncDirId tbDataEntry = findMatchingTbDataEntry(syncDirId);\n\n //Verify each sync directory matches to EXACTLY one entry.\n LocalDateTime maxAllowableTimeV1 = syncDirId.dateTime.plusMinutes(maxTimeWindow);\n\n //If this file is due to major corruption, just bail out.\n File chkdiskFile = new File(syncDir, CHECK_DISK_REFORMAT);\n if (chkdiskFile.exists()) {\n SyncDirId previousSyncDir = foundSyncDirs.put(tbDataEntry, tbDataEntry);\n if (previousSyncDir != null) {\n validationErrors.add(new MultipleTbDatasMatchError(tbDataEntry.dirName, tbDataInfo.get(tbDataEntry).deviceName));\n }\n\n return;\n }\n\n if (syncDir.list().length == 0) {\n validationErrors.add(new EmptySyncDirectory(syncDir));\n return;\n }\n\n\n if (tbDataEntry == null || (manifest.formatVersion == 1 && maxAllowableTimeV1.isBefore(tbDataEntry.dateTime))) {\n validationErrors.add(new NoMatchingTbDataError(syncDirId.dirName, syncDir, manifest.formatVersion == 1 ? SyncDirId.SYNC_VERSION_1 : SyncDirId.SYNC_VERSION_2));\n } else {\n SyncDirId previousSyncDir = foundSyncDirs.put(tbDataEntry, tbDataEntry);\n if (previousSyncDir != null) {\n validationErrors.add(new MultipleTbDatasMatchError(tbDataEntry.dirName, tbDataInfo.get(tbDataEntry).deviceName));\n }\n\n OperationalInfo operationalInfo = tbDataInfo.get(tbDataEntry);\n List<IncorrectPropertyValue> incorrectPropertyValues = new LinkedList<>();\n\n if (!currVillage.equalsIgnoreCase(operationalInfo.inVillage) && !\"UNKNOWN\".equalsIgnoreCase(operationalInfo.inVillage)) {\n incorrectPropertyValues.add(new IncorrectPropertyValue(\"Village\", operationalInfo.inVillage, currVillage));\n }\n\n if (!currTalkingBook.equalsIgnoreCase(operationalInfo.inTalkingBook)) {\n incorrectPropertyValues.add(new IncorrectPropertyValue(\"Talking Book\", operationalInfo.inTalkingBook, currTalkingBook));\n }\n\n if (!currDeploymentPerDevice.deployment.equalsIgnoreCase(operationalInfo.inDeploymentId)) {\n incorrectPropertyValues.add(new IncorrectPropertyValue(\"Deployment Id\", operationalInfo.inDeploymentId, currDeploymentPerDevice.deployment));\n }\n\n if (!currDeploymentPerDevice.device.equalsIgnoreCase(operationalInfo.deviceName)) {\n incorrectPropertyValues.add(new IncorrectPropertyValue(\"Device\", operationalInfo.deviceName, currDeploymentPerDevice.device));\n }\n\n\n if (!incorrectPropertyValues.isEmpty()) {\n File destFile = FileUtils.getFile(currDeploymentPerDevice.getRoot(currRoot, format), operationalInfo.inVillage,\n operationalInfo.inTalkingBook, syncDirId.dirName);\n\n validationErrors.add(new InvalidSyncDirError(syncDir, destFile, incorrectPropertyValues));\n }\n }\n\n //Validate Manifest File\n SyncRange range = manifest.devices.get(currDeploymentPerDevice.device);\n Date startTime = range != null ? range.getStartTime() : null;\n Date endTime = range != null ? range.getEndTime() : null;\n if (startTime == null || endTime == null) {\n\n if (!deviceIncorrectlyInManifest.contains(currDeploymentPerDevice.device)) {\n validationErrors.add(new ManfestDoesNotContainDevice(currDeploymentPerDevice.device));\n deviceIncorrectlyInManifest.add(currDeploymentPerDevice.device);\n }\n } else {\n Date syncDirDate = syncDirId.dateTime.toDate();\n int startCompare = startTime.compareTo(syncDirDate);\n int endCompare = endTime.compareTo(syncDirDate);\n\n if (startCompare > 0 || endCompare < 0) {\n if (!deviceIncorrectlyInManifest.contains(currDeploymentPerDevice.device)) {\n validationErrors.add(new ManifestHasWrongDeviceRanges(currDeploymentPerDevice.device, startTime, endTime, syncDirId.dateTime, syncDir));\n deviceIncorrectlyInManifest.add(currDeploymentPerDevice.device);\n }\n }\n }\n }", "@Override\n\tprotected void treeContentChanged ( ) {\n\n\t\tSubTypingProofNode rootNode = ( SubTypingProofNode ) this.proofModel.getRoot ( );\n\n\t\t// initiate the index\n\t\tthis.index = 1;\n\t\tcheckForUserObject ( rootNode );\n\t\trelayout ( );\n\n\t}", "public synchronized void contactChanged(Contact item, boolean setCurrent) {\n if (!treeBuilt || !hasContact(item)) {\n return;\n }\n\n // Lock tree repainting\n lock();\n TreeNode currentNode = setCurrent ? item : getCurrentNode();\n final boolean hideEmptyGroups = Options.getBoolean(Options.OPTION_CL_HIDE_OFFLINE);\n if (item.isVisibleInContactList() && getContactItems().contains(item)) {\n removeNode(item);\n TreeBranch node = item.getGroup();\n if (hideEmptyGroups && (null != node) && (0 == node.getSubnodesCount())) {\n addNode(getRoot(), node);\n }\n addNode((null == node) ? getRoot() : node, item);\n } else {\n removeNode(item);\n }\n if (hideEmptyGroups) {\n Vector gItems = getGroupItems();\n for (int groupIndex = 0; groupIndex < gItems.size(); ++groupIndex) {\n Group group = (Group)gItems.elementAt(groupIndex);\n if (0 == group.getSubnodesCount()) {\n removeNode(group);\n }\n }\n }\n\n // Updates the client-side contact list (called when a contact changes status)\n Group group = item.getGroup();\n if (null != group) {\n group.updateGroupData();\n }\n \n updateTitle();\n\n setCurrentNode(currentNode);\n // unlock tree and repaint\n unlock();\n\n }", "@Override\n\t\t\t\tpublic void modelStructureChanged() {\n\n\t\t\t\t}", "public final void mT__118() throws RecognitionException {\n try {\n int _type = T__118;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalMyDsl.g:116:8: ( 'changedetection' )\n // InternalMyDsl.g:116:10: 'changedetection'\n {\n match(\"changedetection\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public void valueChanged(TreeSelectionEvent e) \r\n {\r\n DefaultMutableTreeNode node = (DefaultMutableTreeNode)\r\n tree.getLastSelectedPathComponent();\r\n\r\n if (node == null) return;\r\n\r\n Object nodeInfo = node.getUserObject();\r\n Chat_TreeNode TreeNode;\r\n TreeNode=(Chat_TreeNode)nodeInfo;\r\n //Currently just displays node name,need to display description\r\n description.setDescription(TreeNode.getDesc());\r\n \r\n if (node.isLeaf()) \r\n {\r\n ChatID=TreeNode.toString();\r\n }\r\n else\r\n {\r\n \tChatID=\"\";\r\n \t\r\n }\r\n }", "private void updateView() {\r\n if (this.nodes == null || this.nodes.length > 1\r\n || !this.nodes[0].exists()) {\r\n this.titleBorder.setTitle(\"-\");\r\n this.jzvStat.setStat(null);\r\n this.taUpdate.setText(\"\");\r\n this.taChildData.setText(\"\");\r\n this.jbUpdate.setEnabled(false);\r\n this.jbNewChild.setEnabled(false);\r\n this.jbDelete.setEnabled(this.nodes != null);\r\n } else {\r\n this.titleBorder.setTitle(this.nodes[0].getPath());\r\n this.jzvStat.setStat(this.nodes[0].getStat());\r\n byte[] data = this.nodes[0].getData();\r\n this.taUpdate.setText(new String(data == null ? \"null\".getBytes()\r\n : data));\r\n this.taChildData.setText(\"\");\r\n this.jbUpdate.setEnabled( !this.taUpdate.getText().trim().equals(\"\") );\r\n this.jbNewChild.setEnabled( !this.jtfChildName.getText().trim().equals(\"\") );\r\n this.jbDelete.setEnabled(true);\r\n }\r\n this.repaint();\r\n }", "@Override\n public void sync(){\n }", "public static void parentPlugChanged(Long parentID, String kind) {\n String key = Block.getBlock(parentID).getBlockLabel() +\n Block.getBlock(parentID).getGenusName();\n\n // Update our type mapping.\n if (kind == null) {\n parentToPlugType.remove(key);\n } else {\n parentToPlugType.put(key, kind);\n }\n\n // update each stub only if stub is a caller\n Set<Long> stubs = parentNameToBlockStubs.get(key);\n for (Long stub : stubs) {\n BlockStub blockStub = (BlockStub) Block.getBlock(stub);\n if (blockStub.stubGenus.startsWith(CALLER_STUB)) {\n if (kind == null) {\n blockStub.restoreInitConnectors();\n } else {\n blockStub.updatePlug(kind);\n }\n }\n }\n }", "void processAfterLocking(MutableCachedNode modifiedNode,\n SaveContext context) throws Exception;", "public void chg() {\n currentChangeStep = 3;\n }", "private void handleContactInfoUpdated() {\n Call call = getCallToShow(CallList.getInstance());\n if (call != null) {\n showNotification(call);\n }\n }", "void updateRootInfo(Callback callback) {\n\t\t\tif (updatePending.compareAndSet(false, true)) {\n\t\t\t\tFile[] localRoots = listRoots(); // possibly sloooow\n\t\t\t\tsynchronized (this) {\n\t\t\t\t\troots = List.of(localRoots);\n\t\t\t\t}\n\t\t\t\tfor (File root : localRoots) {\n\t\t\t\t\tdescriptionMap.put(root, getInitialRootDescriptionString(root));\n\t\t\t\t\ticonMap.put(root, PENDING_ROOT_ICON);\n\t\t\t\t}\n\n\t\t\t\tThread updateThread = new Thread(\n\t\t\t\t\t() -> asyncUpdateRootInfo(localRoots, Callback.dummyIfNull(callback)));\n\t\t\t\tupdateThread.setName(\"GhidraFileChooser File System Updater\");\n\t\t\t\tupdateThread.start();\n\t\t\t\t// updateThread will unset the updatePending flag when done\n\t\t\t}\n\t\t}", "private void change() {\n\t\tsetChanged();\n\t\t//NotifyObservers calls on the update-method in the GUI\n\t\tnotifyObservers();\n\t}", "public void transferChanges(JTreeTable source, JTreeTable target) {\r\n\t\t\r\n\t\t// add to changes in target based on source\r\n\t\tJEditorPane changePane = null;\r\n\t\tList changes = null;\r\n\t\tboolean refreshOntTT = true;\r\n\t\tif (target == ontChangeTT) {\r\n\t\t\tchanges = ontChanges;\r\n\t\t\tchangePane = ontChangeEdPane;\r\n\t\t}\r\n\t\telse {\r\n\t\t\trefreshOntTT = false;\r\n\t\t\tchanges = repChanges;\r\n\t\t\tchangePane= repChangeEdPane;\r\n\t\t}\r\n\t\t\r\n\t\t// get selected changes in source\r\n\t\tif (source.getTree().getSelectionPath()==null) return;\r\n\t\tTreePath[] paths = source.getTree().getSelectionPaths();\r\n\t\tfor (int i=0; i<paths.length; i++) {\r\n\t\t\tTreePath path = paths[i];\r\n\t\t\tTreeTableNode selNode = (TreeTableNode) path.getLastPathComponent();\r\n\t\t\tif (selNode.swoopChange.isTopNode) {\r\n\t\t\t\t// skip version top nodes, but transfer its children\r\n\t\t\t\tfor (Iterator iter = selNode.children.iterator(); iter.hasNext();) {\r\n\t\t\t\t\tTreeTableNode childNode = (TreeTableNode) iter.next();\r\n\t\t\t\t\tSwoopChange swc = (SwoopChange) childNode.swoopChange;\r\n\t\t\t\t\t// check if it already exists in changes (prevent duplicates) \r\n\t\t\t\t\tif (!isPresent(changes, swc)) changes.add(swc.clone());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse { \r\n\t\t\t\tSwoopChange swc = (SwoopChange) selNode.swoopChange;\r\n\t\t\t\t// check if it already exists in changes (prevent duplicates) \r\n\t\t\t\tif (!isPresent(changes, swc)) changes.add(swc.clone());\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tthis.sortChanges(changes);\r\n\t\t\r\n\t\t// refresh UI of target after adding changes\r\n\t\tif (refreshOntTT) this.refreshOntTreeTable();\r\n\t\telse {\r\n\t\t\t// add (new) repChanges to newCommit node directly\r\n\t\t\tnewCommitNode.children = new Vector();\r\n\t\t\tfor (Iterator iter = changes.iterator(); iter.hasNext();) {\r\n\t\t\t\tSwoopChange swc = (SwoopChange) iter.next();\r\n\t\t\t\tTreeTableNode swcNode = new TreeTableNode(swc);\r\n\t\t\t\tnewCommitNode.addChild(swcNode);\t\r\n\t\t\t}\r\n\t\t\tthis.refreshRepTreeTable(true);\r\n\t\t}\r\n\t}", "@Override\n public void notify(String newFileContent) {\n Repository.getRepositoryInstance().updateStockOrders(newFileContent);\n//end of modifiable zone..................E/a170c128-ca49-4fc4-abdd-43b714481007\n }", "private void updateService(AlertTreeNode parent, \n int nodeIndex, String svcName)\n throws AlertException {\n\n AlertComponent parentComp = parent.getComponent();\n if (parentComp == null) {\n return;\n }\n\n synchronized(AlertCorrelationEngine.class) {\n\n AlertTreeNode child = parent.getChild();\n for (int i = 0; i < parentComp.getNbChildren(); i++) {\n\n if (child == null) {\n logger.severe(\"new branch for service \" + svcName +\n \" on node nodeIndex = \" + nodeIndex +\n \" is corrupted. child is null, \" +\n \"stop processing subBranch...\");\n return;\n }\n\n AlertComponent.AlertProperty prop =\n parentComp.getPropertyChild(i);\n if (prop == null) {\n logger.severe(\"new branch for service \" + svcName +\n \" on node nodeIndex = \" + nodeIndex +\n \" is corrupted. property is null, \" +\n \"stop processing subBranch...\");\n return;\n }\n\n if (prop.getType() == AlertType.COMPOSITE) {\n updateService(child, nodeIndex, svcName);\n } else {\n\n AlertTreeNodeLeaf leaf = child.getLeaf();\n if (leaf == null) {\n logger.severe(\"new branch for service \" + svcName +\n \" on node nodeIndex = \" + nodeIndex +\n \" is corrupted. leaf is null, \" +\n \"stop processing subBranch...\");\n return;\n }\n\n AlertTreeNodeLeaf existingLeaf =\n (AlertTreeNodeLeaf) propertiesMap.get(leaf.getPath());\n if (existingLeaf == null) {\n throw (new AlertException(\"property \" + leaf.getPath() +\n \" does not exist in current tree, \" +\n \"recreate the service...\"));\n\n }\n if (existingLeaf.getType() != leaf.getType()) {\n logger.severe(\"property type for \" + leaf.getPath() +\n \"does not match: existing type = \" +\n existingLeaf.getType() +\n \" new type = \" +\n leaf.getType() + \", skip leaf...\");\n child = child.getSibling();\n continue;\n }\n existingLeaf.setValue(leaf.getValue());\n }\n child = child.getSibling();\n }\n }\n }", "private void invokeSync()\n \t{\n if (iDeviceList.size() == 0)\n {\n System.out.println(\"No devices found, so nothing to test\");\n return;\n }\n CpDevice device = iDeviceList.get(0);\n System.out.println(\"\\n\\nSync call to device \" + device.getUdn());\n \n CpProxyUpnpOrgConnectionManager1 connMgr = new CpProxyUpnpOrgConnectionManager1(device);\n try {\n GetProtocolInfo points = connMgr.syncGetProtocolInfo();\n System.out.println(\"source is \" + points.getSource() + \"\\nsink is \" + points.getSink());\n } catch (ProxyError pe) { }\n connMgr.dispose();\n \t}", "public void notifySyncStarted(PropertyList syncStartedEvent);", "@Override\n\tpublic void changedUpdate(DocumentEvent de) {\n\n\t}", "SyncTree getInfoSyncTree() {\n return infoSyncTree;\n }", "public void treeStructureChanged(TreeModelEvent e) {\n //To change body of implemented methods use Options | File Templates.\n }", "private void applyComment()\n {\n Map<String, GWikiArtefakt<?>> map = new HashMap<String, GWikiArtefakt<?>>();\n page.collectParts(map);\n GWikiArtefakt<?> artefakt = map.get(\"ChangeComment\");\n if (artefakt instanceof GWikiChangeCommentArtefakt == false) {\n return;\n }\n\n GWikiChangeCommentArtefakt commentArtefakt = (GWikiChangeCommentArtefakt) artefakt;\n String oldText = commentArtefakt.getStorageData();\n String ntext;\n String uname = wikiContext.getWikiWeb().getAuthorization().getCurrentUserName(wikiContext);\n int prevVersion = page.getElementInfo().getProps().getIntValue(GWikiPropKeys.VERSION, 0);\n if (StringUtils.isNotBlank(comment) == true) {\n Date now = new Date();\n ntext = \"{changecomment:modifiedBy=\"\n + uname\n + \"|modifiedAt=\"\n + GWikiProps.date2string(now)\n + \"|version=\"\n + (prevVersion + 1)\n + \"}\\n\"\n + comment\n + \"\\n{changecomment}\\n\"\n + StringUtils.defaultString(oldText);\n } else {\n ntext = oldText;\n }\n ntext = StringUtils.trimToNull(ntext);\n commentArtefakt.setStorageData(ntext);\n }", "private boolean handleChannelListChanged(String line){\n Matcher matcher = USER_CHANNELS_LIST_CHANGES.matcher(line);\n \n\n if (!matcher.matches()){\n return false;\n }\n\n int channelNumber = Integer.parseInt(matcher.group(1));\n //System.out.println(\"NUMBER = \" + channelNumber);\n String change = matcher.group(2);\n //System.out.println(\"CHANGE = \" + change);\n //System.out.println(\">>> CHANGE LINE RECEIVED FROM SERVER!!!\");\n if (!processChannelListChanged(change, channelNumber)){\n processLine(line);\n }\n\n return true;\n }", "public static void parentConnectorsChanged(Long parentID) {\n String key = Block.getBlock(parentID).getBlockLabel() +\n Block.getBlock(parentID).getGenusName();\n\n // update each stub only if stub is a caller (as callers are the only type of stubs that\n // can change its connectors after being created)\n Set<Long> stubs = parentNameToBlockStubs.get(key);\n for (Long stub : stubs) {\n BlockStub blockStub = (BlockStub) Block.getBlock(stub);\n if (blockStub.stubGenus.startsWith(CALLER_STUB)) {\n //System.out.println(\"updating connectors of: \"+blockStub);\n if (blockStub.updateConnectors()) {\n blockStub.notifyRenderable();\n }\n }\n }\n }", "private void handleSimSubscriptionInfoChanged() {\n if (!this.mIsSimBindEnable) {\n Assert.isMainThread();\n Log.v(\"KeyguardUpdateMonitor\", \"onSubscriptionInfoChanged()\");\n List completeActiveSubscriptionInfoList = this.mSubscriptionManager.getCompleteActiveSubscriptionInfoList();\n if (completeActiveSubscriptionInfoList != null) {\n Iterator it = completeActiveSubscriptionInfoList.iterator();\n while (it.hasNext()) {\n Log.v(\"KeyguardUpdateMonitor\", \"SubInfo:\" + ((SubscriptionInfo) it.next()));\n }\n } else {\n Log.v(\"KeyguardUpdateMonitor\", \"onSubscriptionInfoChanged: list is null\");\n }\n List<SubscriptionInfo> subscriptionInfo = getSubscriptionInfo(true);\n ArrayList arrayList = new ArrayList();\n for (int i = 0; i < subscriptionInfo.size(); i++) {\n SubscriptionInfo subscriptionInfo2 = subscriptionInfo.get(i);\n if (refreshSimState(subscriptionInfo2.getSubscriptionId(), subscriptionInfo2.getSimSlotIndex())) {\n arrayList.add(subscriptionInfo2);\n }\n }\n for (int i2 = 0; i2 < arrayList.size(); i2++) {\n SimData simData = this.mSimDatas.get(Integer.valueOf(((SubscriptionInfo) arrayList.get(i2)).getSubscriptionId()));\n for (int i3 = 0; i3 < this.mCallbacks.size(); i3++) {\n KeyguardUpdateMonitorCallback keyguardUpdateMonitorCallback = this.mCallbacks.get(i3).get();\n if (keyguardUpdateMonitorCallback != null) {\n keyguardUpdateMonitorCallback.onSimStateChanged(simData.subId, simData.slotId, simData.simState);\n }\n }\n }\n callbacksRefreshCarrierInfo();\n }\n }", "private void updateRepFromLog(URI phyOntURI) {\r\n\t\t// first get ontology whose physical uri matches \r\n\t\tURI logOntURI = null;\r\n\t\tfor (Iterator iter = swoopModel.getOntologies().iterator(); iter.hasNext();) {\r\n\t\t\tOWLOntology ont = (OWLOntology) iter.next(); \r\n\t\t\ttry {\r\n\t\t\t\tif (ont.getPhysicalURI().equals(phyOntURI)) {\r\n\t\t\t\t\tlogOntURI = ont.getLogicalURI();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcatch (OWLException ex) {\r\n\t\t\t\tex.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (logOntURI==null) {\r\n\t\t\tSystem.out.println(\"No Ontology in Swoop has physical URI: \"+phyOntURI);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\t// get changes from swoopModel.changeCache\r\n\t\tList changes = swoopModel.getChangesCache().getChangeList(logOntURI);\r\n\t\tList allRepChanges = this.getDescendantChanges(repRoot);\r\n\t\tallRepChanges.removeAll(this.getDescendantChanges(newCommitNode));\r\n\t\tfor (Iterator iter = new ArrayList(changes).iterator(); iter.hasNext();) {\r\n\t\t\tSwoopChange swc = (SwoopChange) iter.next();\r\n\t\t\tif (this.isPresent(allRepChanges, swc)) changes.remove(swc);\r\n\t\t}\r\n\t\t\r\n\t\tthis.sortChanges(changes);\r\n\t\t\r\n\t\t// add (new) repChanges to newCommit node directly\r\n\t\tnewCommitNode.children = new Vector();\r\n\t\tfor (Iterator iter = changes.iterator(); iter.hasNext();) {\r\n\t\t\tSwoopChange swc = (SwoopChange) iter.next();\r\n\t\t\tTreeTableNode swcNode = new TreeTableNode(swc);\r\n\t\t\tnewCommitNode.addChild(swcNode);\t\r\n\t\t}\t\t\t\t\t\r\n\t\tthis.refreshRepTreeTable(true);\t\r\n\t}", "public void detectAndSendChanges() {\n super.detectAndSendChanges();\n\n for (int var1 = 0; var1 < this.crafters.size(); ++var1) {\n ICrafting var2 = (ICrafting) this.crafters.get(var1);\n\n if (this.brewTime != this.tileBrewingStand.getField(0)) {\n var2.sendProgressBarUpdate(this, 0, this.tileBrewingStand.getField(0));\n }\n }\n\n this.brewTime = this.tileBrewingStand.getField(0);\n }", "public void refreshOntTreeTable() {\n\t\tJTree changeTree = ontChangeTT.getTree();\r\n\t\tTreeTableNode rootNode = (TreeTableNode) changeTree.getModel().getRoot();\r\n\t\trootNode.children = new Vector();\r\n\t\tthis.ontChangeEdPane.setText(\"\");\r\n\t\t\r\n\t\t// populate node tree\r\n\t\tfor (Iterator changeIter = ontChanges.iterator(); changeIter.hasNext();) {\r\n\t\t\tSwoopChange swc = (SwoopChange) changeIter.next();\r\n\t\t\t\r\n\t\t\t// skip checkpoint related changes\r\n\t\t\tif (!swc.isCheckpointRelated /*&& swc.isCommitted*/) {\r\n\t\t\t\tTreeTableNode changeNode = new TreeTableNode(swc);\r\n\t\t\t\trootNode.addChild(changeNode);\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tontChangeTT.getTree().updateUI();\r\n\t\tthis.refreshUI();\t\t\r\n\t}", "void changed(DiscoveryEvent e);", "void confAltered(String path, ChangeType changeType);", "public void connectivityChanged(ConnectivityEvent ce) {\n\t\t\tthrow new RuntimeException(\"Method 'connectivityChanged' in class 'DummyNode' not yet implemented!\");\n\t\t\t//\n\t\t}" ]
[ "0.53727436", "0.5262782", "0.52478355", "0.5237124", "0.51610076", "0.50909334", "0.5074281", "0.50588137", "0.50199693", "0.49844164", "0.4981827", "0.49758306", "0.49731362", "0.49147758", "0.49070546", "0.49039954", "0.4900255", "0.48640972", "0.4857249", "0.48546973", "0.48484614", "0.4843165", "0.48339167", "0.48156962", "0.4794229", "0.47916535", "0.47875243", "0.47856608", "0.47562167", "0.474326", "0.47365096", "0.47289658", "0.47098663", "0.46975616", "0.46923965", "0.4689364", "0.4687758", "0.46782193", "0.46765423", "0.4666459", "0.4659179", "0.4652655", "0.46494144", "0.4644837", "0.46382493", "0.46373427", "0.4632256", "0.46120977", "0.46084815", "0.46028548", "0.46026748", "0.45906729", "0.45833504", "0.4576657", "0.45705035", "0.45661598", "0.45614713", "0.453689", "0.4535956", "0.45296422", "0.4528937", "0.45249414", "0.45232674", "0.45122465", "0.45104617", "0.4497033", "0.4493587", "0.4490823", "0.4486597", "0.44857597", "0.44817525", "0.44810024", "0.44799605", "0.44791242", "0.4479046", "0.4472469", "0.44671282", "0.4458188", "0.44575375", "0.44558054", "0.44550332", "0.44517413", "0.4450069", "0.44493356", "0.4447714", "0.4446761", "0.4445231", "0.44405705", "0.4437104", "0.44330028", "0.4432324", "0.44304657", "0.4427112", "0.4425839", "0.4422013", "0.44217625", "0.4416494", "0.44161183", "0.44128007", "0.44067335" ]
0.77674276
0
bla bla / B u fjjfodjfkl other comment
public static void main(String[] args) { String file = System.getProperty("user.dir") + "\\src\\" + TaskB.class.getName().replace(".", File.separator); String fileIn = file + ".java"; String fileOut = file + ".txt"; StringBuilder convert = new StringBuilder(); try (BufferedReader reader = new BufferedReader( new FileReader(fileIn))) { Boolean commentOne = false; Boolean commentTwo = false; String chars = ""; // text while (reader.ready()) { if (reader.ready()) { char currchar = (char) reader.read(); chars = chars + currchar; if (chars.equals("/" + "*")) { commentOne = true; commentTwo = true; convert.deleteCharAt(convert.length() - 1); } if (chars.equals("/" + "/")) { commentOne = true; commentTwo = false; convert.deleteCharAt(convert.length() - 1); } // text if (!commentOne) { convert.append(chars.substring(chars.length() - 1)); } if (chars.equals("\r\n") && commentOne && !commentTwo) { commentOne = false; commentTwo = false; convert.append(chars); } if (chars.equals("*" + "/") && commentOne && commentTwo) { commentOne = false; commentTwo = false; } chars = Character.toString(currchar); } /* may be the end */ } PrintWriter out = new PrintWriter(new FileWriter(fileOut)); System.out.print(convert); out.print(convert); out.close(); } catch (IOException e) { e.printStackTrace(); // the end! } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getComment() {\n//\t\t\tm1();\n\t\t\treturn \"small\";\n\t\t}", "public void comment(String data);", "@Override\n\tpublic void comment() {\n\t\t\n\t}", "String getComment();", "String getComment();", "@Override\n public void comment(String comment)\n {\n }", "@Test\n public void commentGetContent() {\n comment.match(\"//irgendein Kommentar\\n\");\n Token t = comment.getToken();\n assertEquals(\"//irgendein Kommentar\\n\", t.getContent());\n }", "public abstract char getCommentChar();", "public String getComment();", "public String getComment();", "public String getComment();", "public String getComment();", "public String getComment();", "public String getComment();", "@Override\n public String visit(BlockComment n, Object arg) {\n return null;\n }", "static void writeBlockComment(String s) {\n String[] lines = s.split(\"\\u005cr\\u005cn|\\u005cr|\\u005cn\");\n\n // indent the first line. It won't have any leading whitespace, but\n // may have trailing whitespace\n String line = lines[0].trim();\n for (int j = 0; j < level; j++) {\n line = \" \" + line; // 4 spaces\n }\n outputBuffer.append(line).append(ls);\n\n // output body of comment without change\n for (int i = 1; i < lines.length - 1; i++) {\n line = lines[i]; // trimStart(lines[i], level * 4);\n outputBuffer.append(line).append(ls);\n }\n\n // output the last line. It will probably have leading whitespace, so\n // trim it then indent it the same as the first line.\n line = lines[lines.length - 1].trim();\n for (int j = 0; j < level; j++) {\n line = \" \" + line; // 4 spaces\n }\n outputBuffer.append(line);\n }", "private String nocomment(String s) {\r\n\t\tint excLocation=s.indexOf('!');\r\n\t\tif(excLocation!=-1) s=s.substring(0,excLocation);\r\n\t\treturn s.trim();\r\n\t}", "public String getSampleComment();", "@Test\n public void commentMatch() {\n comment.match(\"//hier steht text\\n\");\n assertEquals(comment.getClass(), comment.getToken().getClass());\n }", "public String getComment() {\n \t\t\t\t\t\t\t\t\treturn null;\n \t\t\t\t\t\t\t\t}", "@Test\n public void wrongCommentMatch() {\n comment.match(\"jhadj //kasf \");\n assertEquals(null, comment.getToken());\n }", "@Override\r\n\tpublic void comment(String uname, String content) {\n\t\tSystem.out.println(uname + \"发表评论:\" + content);\r\n\t}", "private String getContent(String s) {\n\t\tif (s == null)\n\t\t\treturn null;\n\t\tint commentIndex = s.indexOf(\"//\");\n\t\tif (commentIndex != -1)\n\t\t\ts = s.substring(0, commentIndex);\n\t\treturn s.trim();\n\t}", "public String getComment(){\n return this.comment;\n }", "static boolean comment(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"comment\")) return false;\n if (!nextTokenIs(b, \"\", DOUBLE_COMMENT, TRIPLE_COMMENT)) return false;\n boolean r;\n r = consumeToken(b, TRIPLE_COMMENT);\n if (!r) r = consumeToken(b, DOUBLE_COMMENT);\n return r;\n }", "private void emitComment() throws SAXException {\n if (wantsComments) {\n if (longStrBufPending != '\\u0000') {\n appendLongStrBuf(longStrBufPending);\n }\n }\n tokenHandler.comment(longStrBuf, longStrBufLen);\n }", "public String getComment(){\n return comment;\n }", "@Test\r\n public void testCIFCommentString() {\r\n CIFComment comment = new CIFComment(COMMENT);\r\n String s = comment.toCIFString();\r\n Assert.assertEquals(\"cif comment\", \"#\"+COMMENT+\"\\n\", s);\r\n }", "java.lang.String getComments();", "void extractComments(String longString)\n\t{\n\t\tlongString = longString.toLowerCase();\n\t\tString openingCommentTag = \"<div class=\\\"CT\\\">\".toLowerCase();\n\t\tString endingCommentTag = \"</div>\".toLowerCase();\n\n\t\tfor (int i = 0; i < longString.length(); i++)\n\t\t{\n\t\t\tint openIndex = longString.indexOf(openingCommentTag, i);\n\t\t\tif (openIndex != -1)\n\t\t\t{\n\t\t\t\tint endIndex = longString.indexOf(endingCommentTag, openIndex);\n\t\t\t\t// System.out.println(\"openIndex: \" + openIndex + \"\\n\" +\n\t\t\t\t// \"endIndex: \" + endIndex);\n\n\t\t\t\tcomments.add(longString.substring(\n\t\t\t\t\t\topenIndex + openingCommentTag.length(), endIndex));\n\t\t\t\ti = endIndex;\n\n\t\t\t}\n\t\t}\n\t\treturn;\n\t}", "public static void openComment() {\n Log.write(\"<!-- \");\n }", "public void setComment(String c) {\n comment = c ;\n }", "private String magicComment( CharSequence needle, String haystack,\r\n CharSequence replacement )\r\n {\r\n int startIndex = haystack.indexOf( \"//# \" + needle );\r\n String endString = \"//# END \" + needle;\r\n int endIndex = haystack.indexOf( endString ) + endString.length();\r\n CharSequence region = haystack.subSequence( startIndex, endIndex + 1 );\r\n\r\n return haystack.replace( region, replacement );\r\n }", "public void setComment(String comment){\n this.comment = comment;\n }", "@Test(timeout = 4000)\n public void test008() throws Throwable {\n String string0 = SQLUtil.removeComments(\"!}1w/G=6\");\n assertEquals(\"!}1w/G=6\", string0);\n }", "@Override\n public String visit(LineComment n, Object arg) {\n return null;\n }", "public CommentHeader(BaseBlock bb, byte[] commentHeader) {\r\n super(bb);\r\n\r\n int pos = 0;\r\n// unpSize = Raw.readShortLittleEndian(commentHeader, pos);\r\n pos += 2;\r\n unpVersion |= commentHeader[pos] & 0xff;\r\n pos++;\r\n\r\n unpMethod |= commentHeader[pos] & 0xff;\r\n pos++;\r\n// commCRC = Raw.readShortLittleEndian(commentHeader, pos);\r\n\r\n }", "public void setComment(String comment) {\n this.comment = comment;\n }", "String getComment() {\n final StringBuilder sb = new StringBuilder();\n sb.append(indent(1)).append(\"/**\").append(EOL);\n sb.append(indent(1)).append(\" * \").append(\"{@code\").append(EOL);\n\n // Unwrapped so that you can search through the descriptor\n // file for a message and not have to worry about line breaks\n final String ws = formatString; // wrapText(formatString, 70);\n\n final String[] sa = ws.split(EOL);\n for (final String s : sa) {\n sb.append(indent(1)).append(\" * \").append(s).append(EOL);\n }\n\n sb.append(indent(1)).append(\" * \").append(\"}\").append(EOL);\n sb.append(indent(1)).append(\" */\").append(EOL);\n return sb.toString();\n }", "public String getComment()\n {\n return comment;\n }", "@Override\n\t/**\n\t * does nothing because comments are disabled for classes \n\t * \n\t * @param c\n\t */\n\tpublic void setComment(String c) {\n\t}", "@Test(timeout = 4000)\n public void test090() throws Throwable {\n String string0 = SQLUtil.removeComments(\"java.lang.Object@4d3d5d29\");\n assertNotNull(string0);\n }", "public void handleComment(HtmlObjects.Comment t)\n {\n }", "public void setComment(String comment);", "public void setComment(String comment);", "public static String commentTag(CommentUnit comment) {\n\t\treturn \"\\t\\t\\t<comm cntt=\\\"\" + comment.toString() + \"\\\"/>\\n\";\n\t}", "void createCommentWithAllSingleFileComments(String string);", "@Test\n public void commentMatchNotNull() {\n comment.match(\"//hier steht text\\n@test zuziuziuziu\");\n assertNotSame(null, comment.getToken().getClass());\n }", "private Comment handleComment(String line) {\n\t\tComment c = new Comment();\n\t\tc.setText(\"\");\n\t\treturn (Comment) c;\n\t}", "public static void comment(String comment) {\n openComment();\n Log.write(comment);\n closeComment();\n Log.writeln();\n }", "private void scanComment(LocatedChar ch) {\n\t\tch = input.next();\n\t\twhile(!ch.matchChar('%') && !ch.matchChar('\\n')) {\n\t\t\tch = input.next();\n\t\t}\n\t}", "public void handleCfComment(HtmlObjects.CfComment c)\n {\n }", "@Test\r\n public void testCIFComment() {\r\n CIFComment comment = new CIFComment();\r\n String s = comment.toCIFString();\r\n Assert.assertEquals(\"cif comment\", \"#\\n\", s);\r\n }", "Comment getBase_Comment();", "public String getComment() {\n return comment ;\n }", "public static void closeComment() {\n Log.write(\" -->\");\n }", "void createSingleFileComment(ChangedFile file, Integer line, String comment);", "public void getComment() {\n System.out.println(\"The target was at \" + targetDistance + \" meters\");\n System.out.println(\"Your shot went \" + projDistance + \" meters far\"); //displays stats\n System.out.println(\"The projectile was \" + missDistance + \" from the target\");\n if (abs(missDistance) >= 100) {\n System.out.println(\"That was terrible\");\n }\n else if (abs(missDistance) >= 50) {\n System.out.println(\"It's getting closer\"); //various comments depending on how good the shot was\n }\n else if (abs(missDistance) >= 20) {\n System.out.println(\"You're nearly there\");\n }\n else {\n System.out.println(\"SO INTENSE\");\n }\n }", "public String getComment(int commentType, Address address);", "public String getComment() {\n return comment;\n }", "public String getComment() {\n return comment;\n }", "public String getComment() {\n return comment;\n }", "public String getComment() {\n return comment;\n }", "public String getComment() {\n return comment;\n }", "public String getComment() {\n return comment;\n }", "public String getComment() {\n return comment;\n }", "@Override\n public String visit(JavadocComment n, Object arg) {\n return null;\n }", "protected int scanComment () throws HTMLParseException {\r\n int startvalue = index - 1;\r\n int i = -1;\r\n int j = index;\r\n while (j+2 < length) {\r\n if (pagepart[j] == '-' &&\r\n pagepart[j + 1] == '-' &&\r\n pagepart[j + 2] == '>') {\r\n i = j;\r\n break;\r\n }\r\n j++;\r\n }\r\n if (i > -1) {\r\n index = i + 2;\r\n nextToken = MT;\r\n match (MT);\r\n stringLength = index - startvalue;\r\n return COMMENT;\r\n }\r\n block.setRest (startvalue);\r\n return END;\r\n }", "public ST getComment() { \r\n\t\tST retVal = this.getTypedField(48, 0);\r\n\t\treturn retVal;\r\n }", "public void showMyComments(){\n String nothing=null;\n }", "org.hl7.fhir.String addNewComments();", "private static void Secondcommentary() {\n\t\tSystem.out.println(\" Ind Scored very Good \");\n\t\t\n\t}", "public void setComment(String comment)\n {\n this.comment = comment;\n }", "protected boolean isComment () {\r\n int startvalue = index - 1;\r\n if (index + 3 >= length)\r\n return false;\r\n return (pagepart[index] == '!' &&\r\n pagepart[index + 1] == '-' &&\r\n pagepart[index + 2] == '-');\r\n }", "public String getComment() {\r\n\t\treturn comment;\r\n\t}", "public String getComment() {\n return this.comment;\n }", "public void setComment(String new_comment){\n this.comment=new_comment;\n }", "private static void handleCommentBlock(BlockData data){\n \tBlockData before = BlockData.getBlockData(data.getBeforeId());\n BlockData after = BlockData.getBlockData(data.getAfterId());\n if(before != null){\n \tif(after != null)\n \t\tbefore.setAfterId(after.getBlockID());\n \telse \n \t\tbefore.setAfterId(-1l);\n }\n if(after != null ){\n \tif(before != null)\n \t\tafter.setBeforeId(before.getBlockID());\n \telse \n \t\tafter.setBeforeId(-1l);\n }\n \t\n }", "private Comment createSimpleComment(String content) {\n Comment comment = new Comment();\n comment.setContent(content);\n return comment;\n }", "public void debug(String comment);", "public String getComment() {\n Object ref = comment_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n comment_ = s;\n }\n return s;\n }\n }", "private void skipCommentLine() {\n while (position < length) {\n int c = data.charAt(position);\n if (c == '\\r' || c == '\\n') {\n return;\n }\n position++;\n }\n }", "Comment createComment();", "@Test(timeout = 4000)\n public void test118() throws Throwable {\n StringReader stringReader0 = new StringReader(\"<SINGLE_LINE_COMMENT>\");\n stringReader0.read();\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 47, 32);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n javaParserTokenManager0.getNextToken();\n assertEquals(18, javaCharStream0.bufpos);\n assertEquals(50, javaCharStream0.getEndColumn());\n }", "void visitElement_comment(org.w3c.dom.Element element) { // <comment>\n // element.getValue();\n org.w3c.dom.NodeList nodes = element.getChildNodes();\n for (int i = 0; i < nodes.getLength(); i++) {\n org.w3c.dom.Node node = nodes.item(i);\n switch (node.getNodeType()) {\n case org.w3c.dom.Node.CDATA_SECTION_NODE:\n // ((org.w3c.dom.CDATASection)node).getData();\n break;\n case org.w3c.dom.Node.ELEMENT_NODE:\n org.w3c.dom.Element nodeElement = (org.w3c.dom.Element)node;\n break;\n case org.w3c.dom.Node.PROCESSING_INSTRUCTION_NODE:\n // ((org.w3c.dom.ProcessingInstruction)node).getTarget();\n // ((org.w3c.dom.ProcessingInstruction)node).getData();\n break;\n case org.w3c.dom.Node.TEXT_NODE:\n issue.comments.add(((org.w3c.dom.Text)node).getData());\n break;\n }\n }\n }", "public final String getComment() {\n return comment;\n }", "private void appendToComment(char c) throws SAXException {\n if (longStrBufPending == '-' && c == '-') {\n if (commentPolicy == XmlViolationPolicy.FATAL) {\n fatal(\"This document is not mappable to XML 1.0 without data loss to \\u201C--\\u201D in a comment.\");\n } else {\n warn(\"This document is not mappable to XML 1.0 without data loss to \\u201C--\\u201D in a comment.\");\n if (wantsComments) {\n if (commentPolicy == XmlViolationPolicy.ALLOW) {\n appendLongStrBuf('-');\n } else {\n appendLongStrBuf('-');\n appendLongStrBuf(' ');\n }\n }\n longStrBufPending = '-';\n }\n } else {\n if (longStrBufPending != '\\u0000') {\n if (wantsComments) {\n appendLongStrBuf(longStrBufPending);\n }\n longStrBufPending = '\\u0000';\n }\n if (c == '-') {\n longStrBufPending = '-';\n } else {\n if (wantsComments) {\n appendLongStrBuf(c);\n }\n }\n }\n }", "@Test\n public void commentGetHtmlEnd() {\n // White-Box! Temporär mit NotNull-Test ersetzt\n // assertEquals(\"</i></font><br />\", comment.htmlEnd());\n assertNotNull(comment.htmlStart());\n }", "public String getComment() {\n\t LogWriter.logMessage(LogWriter.TRACE_DEBUG,\"getComment() \" );\n Via via=(Via)sipHeader;\n return via.getComment();\n }", "public String getComment() {\n\t\tif (comment != null)\n\t\t\treturn ProteomeXchangeFilev2_1.COM + TAB\n\t\t\t// + \"comment\" + TAB\n\t\t\t\t\t+ comment;\n\t\treturn null;\n\t}", "public void setComment(String comment) {\n this.comment = comment;\n }", "private boolean comment() {\r\n return STRING(\"--\") && visibles() && newline();\r\n }", "public static String commentString(final String msg) {\n return \"# \" + msg;\n }", "private DoComment(com.google.protobuf.GeneratedMessageLite.Builder builder) {\n super(builder);\n\n }", "public String getComment() {\n\t\treturn comment;\n\t}", "public String getComment() {\n\t\treturn comment;\n\t}", "@Test(timeout = 4000)\n public void test082() throws Throwable {\n String string0 = SQLUtil.removeComments(\"\");\n assertEquals(\"\", string0);\n }", "private void write(int b) throws Exception{\r\n\tif (b == commentSeparator) {\r\n\t\tout.write(commentSeparator);\r\n\t\tout.write(commentSeparator);\r\n\t} else {\r\n\t\tout.write(b);\r\n\t}\r\n}", "public String description(){\n\t\treturn \"Mark: \" + mark + \"\\n\" + \"Comment: \" + comment;\n\t}", "@Override\n\t/**\n\t * returns nothing because comments are disabled for classes\n\t * \n\t * @return nothing\n\t */\n\tpublic String getComment() {\n\t\treturn \"\";\n\t}", "String getCheckinComment();" ]
[ "0.6804638", "0.67331415", "0.6700881", "0.6633742", "0.6633742", "0.6574014", "0.64414144", "0.6429277", "0.6304188", "0.6304188", "0.6304188", "0.6304188", "0.6304188", "0.6304188", "0.6295472", "0.62078077", "0.6070951", "0.60426843", "0.6026894", "0.60188085", "0.60174435", "0.60128164", "0.59547436", "0.59530395", "0.59508145", "0.5949799", "0.594451", "0.59311146", "0.5927573", "0.59213734", "0.59009326", "0.58992684", "0.58905596", "0.5879923", "0.5860815", "0.5835545", "0.58323616", "0.5831679", "0.5827869", "0.58257544", "0.5823422", "0.5815569", "0.5806824", "0.5806439", "0.5806439", "0.5803765", "0.5795303", "0.57952845", "0.57920724", "0.57895285", "0.57858706", "0.5775414", "0.57750475", "0.5772083", "0.57680815", "0.5741127", "0.57081205", "0.57042074", "0.5703018", "0.57017946", "0.57017946", "0.57017946", "0.57017946", "0.57017946", "0.57017946", "0.57017946", "0.57010424", "0.56947166", "0.56911844", "0.5691162", "0.56900245", "0.56893414", "0.568356", "0.5677949", "0.5674654", "0.56725115", "0.5671357", "0.56712556", "0.5657335", "0.5652887", "0.5644746", "0.56437147", "0.56419617", "0.5641769", "0.56413984", "0.564083", "0.5639381", "0.56296104", "0.56294006", "0.56216896", "0.5605511", "0.5602938", "0.5600718", "0.55821437", "0.55804175", "0.55804175", "0.55785173", "0.5564086", "0.5558196", "0.5553414", "0.55480325" ]
0.0
-1
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.fragment_drug_small, container, false); //Toolbar toolbar = (Toolbar)view.findViewById(R.id.toolbar); //context.setSupportActionBar(toolbar); //initialize view Model searchview=view.findViewById(R.id.drug_searchView); tabLayout = view.findViewById(R.id.dr_tablayout); drugsViewModel = ViewModelProviders.of(this).get(DrugsViewModel.class); drugsViewModel.loadDrugs(pageNumber); initRecyclerView(view); subscribeToLiveData(); return view; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.wallpager_layout, null);\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_invit_friends, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_zhuye, container, false);\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_posts, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.ilustration_fragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_sow_drug_cost_per_week, container, false);\n\n db = new DataBaseAdapter(getActivity());\n hc = new HelperClass();\n pop = new FeedSowsFragment();\n\n infltr = (LayoutInflater) getActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n parent = (LinearLayout) v.findViewById(R.id.layout_for_add);\n tvTotalCost = (TextView) v.findViewById(R.id.totalCost);\n\n getData();\n setData();\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_stream_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_event, container, false);\n\n\n\n\n\n\n\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_feed, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.screen_select_list_student, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_overall, container, false);\n mNamesLayout = (LinearLayout) rootView.findViewById(R.id.fragment_overall_names_layout);\n mOverallView = (OverallView) rootView.findViewById(R.id.fragment_overall_view);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState)\n {\n\n\n view = inflater.inflate(R.layout.fragment_earning_fragmant, container, false);\n ini(view);\n return view;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n super.onCreateView(inflater, container, savedInstanceState);\n final View rootview = inflater.inflate(R.layout.activity_email_frag, container, false);\n ConfigInnerElements(rootview);\n return rootview;\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\trootView = inflater.inflate(R.layout.fragment_attack_armor, container, false);\r\n\r\n\t\tfindInterfaceElements();\r\n\t\taddRangeSelector();\r\n\t\tupdateHeadings();\r\n\t\tsetListeners();\r\n\r\n\t\tsetFromData();\r\n\r\n\t\treturn rootView;\r\n\t}", "@SuppressLint(\"InflateParams\")\r\n\t@Override\r\n\tpublic View initLayout(LayoutInflater inflater) {\n\t\tView view = inflater.inflate(R.layout.frag_customer_all, null);\r\n\t\treturn view;\r\n\t}", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_fore_cast, container, false);\r\n initView();\r\n mainLayout.setVisibility(View.GONE);\r\n apiInterface = RestClinet.getClient().create(ApiInterface.class);\r\n loadData();\r\n return view;\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_friend, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_detail, container, false);\n image = rootView.findViewById(R.id.fr_image);\n name = rootView.findViewById(R.id.fr_name);\n phoneNumber = rootView.findViewById(R.id.fr_phone_number);\n email = rootView.findViewById(R.id.fr_email);\n street = rootView.findViewById(R.id.fr_street);\n city = rootView.findViewById(R.id.fr_city);\n state = rootView.findViewById(R.id.fr_state);\n zipcode = rootView.findViewById(R.id.fr_zipcode);\n dBrith = rootView.findViewById(R.id.date_brith);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_pm25, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_kkbox_playlist, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_feed_pager, container, false);\n\n// loadData();\n\n findViews(rootView);\n\n setViews();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n layout = (FrameLayout) inflater.inflate(R.layout.fragment_actualites, container, false);\n\n relLayout = (RelativeLayout) layout.findViewById(R.id.relLayoutActus);\n\n initListView();\n getXMLData();\n\n return layout;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.frag_post_prayer_video, container, false);\n setCustomDesign();\n setCustomClickListeners();\n return rootView;\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.lf_em4305_fragment, container, false);\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_recordings, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.fragment_category, container, false);\n initView(view);\n bindRefreshListener();\n loadParams();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_cm_box_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_layout12, container, false);\n\n iniv();\n\n init();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_details, container, false);\n //return inflater.inflate(R.layout.fragment_details, container, false);\n getIntentValues();\n initViews();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_mem_body_blood, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_qiugouxiaoxi, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_coll_blank, container, false);\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_attendance_divide, container, false);\n\n initView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.show_program_fragment, parent, false);\n }", "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container,\n @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.visualization_fragment, container, false);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_category_details_page, container, false);\n initializeAll();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View v = inflater.inflate(R.layout.fragemnt_reserve, container, false);\n\n\n\n\n return v;\n }", "protected int getLayoutResId() {\n return R.layout.activity_fragment;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_quizs, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n role = getArguments().getInt(\"role\");\n rootview = inflater.inflate(R.layout.fragment_application, container, false);\n layout = rootview.findViewById(R.id.patentDetails);\n progressBar = rootview.findViewById(R.id.progressBar);\n try {\n run();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return rootview;\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tview = inflater.inflate(R.layout.fragment_zhu, null);\n\t\tinitView();\n\t\tinitData();\n\t\treturn view;\n\t}", "@Override\n\t\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)\n\t\t{\n\t\t\tView rootView = inflater.inflate(R.layout.maimfragment, container, false);\n\t\t\treturn rootView;\n\t\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n // Inflate the layout for this fragment\n return inflater.inflate(R.layout.fragment__record__week, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_porishongkhan, container, false);\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_dashboard, container, false);\n resultsRv = view.findViewById(R.id.db_results_rv);\n resultText = view.findViewById(R.id.db_search_empty);\n progressBar = view.findViewById(R.id.db_progressbar);\n lastVisitText = view.findViewById(R.id.db_last_visit);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(getLayoutId(), container, false);\n init(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_feedback, container, false);\n self = getActivity();\n initUI(view);\n initControlUI();\n initData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_service_summery, container, false);\n tvVoiceMS = v.findViewById(R.id.tvVoiceValue);\n tvDataMS = v.findViewById(R.id.tvdataValue);\n tvSMSMS = v.findViewById(R.id.tvSMSValue);\n tvVoiceFL = v.findViewById(R.id.tvVoiceFLValue);\n tvDataBS = v.findViewById(R.id.tvDataBRValue);\n tvTotal = v.findViewById(R.id.tvTotalAccountvalue);\n return v;\n }", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_clan_rank_details, container, false);\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_star_wars_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_lei, container, false);\n\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_quotation, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_wode_ragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n\n\n\n\n\n return inflater.inflate(R.layout.fragment_appoint_list, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n if (rootView == null) {\n rootView = inflater.inflate(R.layout.fragment_ip_info, container, false);\n initView();\n }\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_offer, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_rooms, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\n View view = inflater.inflate(R.layout.fragment_img_eva, container, false);\n\n getSendData();\n\n initView(view);\n\n initData();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_project_collection, container, false);\n ButterKnife.bind(this, view);\n fragment = this;\n initView();\n getCollectionType();\n // getCategoryList();\n initBroadcastReceiver();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_yzm, container, false);\n initView(view);\n return view;\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\tmainLayout = inflater.inflate(R.layout.fragment_play, container, false);\r\n\t\treturn mainLayout;\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_invite_request, container, false);\n initialiseVariables();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n getLocationPermission();\n return inflater.inflate(R.layout.centrum_fragment, container, false);\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_habit_type_details, container, false);\n\n habitTitle = rootView.findViewById(R.id.textViewTitle);\n habitReason = rootView.findViewById(R.id.textViewReason);\n habitStartDate = rootView.findViewById(R.id.textViewStartDate);\n habitWeeklyPlan = rootView.findViewById(R.id.textViewWeeklyPlan);\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_information_friends4, container, false);\n\n if (getArguments() != null) {\n FriendsID = getArguments().getString(\"keyFriends\");\n }\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_post_details, container, false);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hotel, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_bus_inquiry, container, false);\n initView();\n initData();\n initDialog();\n getDataFromNet();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_weather, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_srgl, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_ground_detail_frgment, container, false);\n init();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_book_appointment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_wheretogo, container, false);\n ids();\n setup();\n click();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n binding = DataBindingUtil\n .inflate(inflater, R.layout.fragment_learning_leaders, container, false);\n init();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_end_game_tab, container, false);\n\n setupWidgets();\n setupTextFields(view);\n setupSpinners(view);\n\n // Inflate the layout for this fragment\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.memoir_fragment, container, false);\n\n getUserIdFromSharedPref();\n configureUI(view);\n configureSortSpinner();\n configureFilterSpinner();\n\n networkConnection = new NetworkConnection();\n new GetAllMemoirTask().execute();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_jadwal, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_delivery_detail, container, false);\n initialise();\n\n\n\n return view;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_4, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_product, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_group_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment06_7, container, false);\n initView(view);\n setLegend();\n setXAxis();\n setYAxis();\n setData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_downloadables, container, false);\n }", "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.movie_list_fragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_like, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hall, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_unit_main, container, false);\n TextView mTxvBusinessAassistant = (TextView) view.findViewById(R.id.txv_business_assistant);\n TextView mTxvCardINformation = (TextView) view.findViewById(R.id.txv_card_information);\n RelativeLayout mRelOfficialWebsite = (RelativeLayout) view.findViewById(R.id.rel_official_website);\n RelativeLayout mRelPictureAblum = (RelativeLayout) view.findViewById(R.id.rel_picture_album);\n TextView mTxvQrCodeCard = (TextView) view.findViewById(R.id.txv_qr_code_card);\n TextView mTxvShareCard = (TextView) view.findViewById(R.id.txv_share_card);\n mTxvBusinessAassistant.setOnClickListener(this.mOnClickListener);\n mTxvCardINformation.setOnClickListener(this.mOnClickListener);\n mRelOfficialWebsite.setOnClickListener(this.mOnClickListener);\n mRelPictureAblum.setOnClickListener(this.mOnClickListener);\n mTxvQrCodeCard.setOnClickListener(this.mOnClickListener);\n mTxvShareCard.setOnClickListener(this.mOnClickListener);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_moviespage, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_s, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_overview, container, false);\n\n initOverviewComponents(view);\n registerListeners();\n initTagListener();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_bahan_ajar, container, false);\n initView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n root = (ViewGroup) inflater.inflate(R.layout.money_main, container, false);\n context = getActivity();\n initHeaderView(root);\n initView(root);\n\n getDate();\n initEvetn();\n return root;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_historical_event, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_event_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_video, container, false);\n unbinder = ButterKnife.bind(this, view);\n initView();\n initData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n v= inflater.inflate(R.layout.fragment_post_contacts, container, false);\n this.mapping(v);\n return v;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_measures, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_feed, container, false);\n findViews(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_surah_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_data_binded, container, false);\n }" ]
[ "0.6739604", "0.67235583", "0.6721706", "0.6698254", "0.6691869", "0.6687986", "0.66869223", "0.6684548", "0.66766286", "0.6674615", "0.66654444", "0.66654384", "0.6664403", "0.66596216", "0.6653321", "0.6647136", "0.66423255", "0.66388357", "0.6637491", "0.6634193", "0.6625158", "0.66195583", "0.66164845", "0.6608733", "0.6596594", "0.65928894", "0.6585293", "0.65842897", "0.65730995", "0.6571248", "0.6569152", "0.65689117", "0.656853", "0.6566686", "0.65652984", "0.6553419", "0.65525705", "0.65432084", "0.6542382", "0.65411425", "0.6538022", "0.65366334", "0.65355957", "0.6535043", "0.65329415", "0.65311074", "0.65310687", "0.6528645", "0.65277404", "0.6525902", "0.6524516", "0.6524048", "0.65232015", "0.65224624", "0.65185034", "0.65130377", "0.6512968", "0.65122765", "0.65116245", "0.65106046", "0.65103024", "0.6509013", "0.65088093", "0.6508651", "0.6508225", "0.6504662", "0.650149", "0.65011525", "0.6500686", "0.64974767", "0.64935696", "0.6492234", "0.6490034", "0.6487609", "0.6487216", "0.64872116", "0.6486594", "0.64861935", "0.6486018", "0.6484269", "0.648366", "0.6481476", "0.6481086", "0.6480985", "0.6480396", "0.64797544", "0.647696", "0.64758915", "0.6475649", "0.6474114", "0.6474004", "0.6470706", "0.6470275", "0.64702207", "0.6470039", "0.6467449", "0.646602", "0.6462256", "0.64617974", "0.6461681", "0.6461214" ]
0.0
-1
Use this factory method to create a new instance of this fragment using the provided parameters.
public static HomeFragment newInstance(String param1, String param2) { HomeFragment fragment = new HomeFragment(); Bundle args = new Bundle(); args.putString(ARG_PARAM1, param1); args.putString(ARG_PARAM2, param2); fragment.setArguments(args); return fragment; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static FragmentTousWanted newInstance() {\n FragmentTousWanted fragment = new FragmentTousWanted();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "protected abstract Fragment createFragment();", "public void createFragment() {\n\n }", "@Override\n protected Fragment createFragment() {\n Intent intent = getIntent();\n\n long id = intent.getLongExtra(MovieDetailFragment.EXTRA_ID, -1);\n return MovieDetailFragment.newInstance(id);\n }", "public CuartoFragment() {\n }", "public StintFragment() {\n }", "public ExploreFragment() {\n\n }", "public RickAndMortyFragment() {\n }", "public FragmentMy() {\n }", "public LogFragment() {\n }", "public FeedFragment() {\n }", "public HistoryFragment() {\n }", "public HistoryFragment() {\n }", "public static MyFeedFragment newInstance() {\n return new MyFeedFragment();\n }", "public WkfFragment() {\n }", "public static ScheduleFragment newInstance() {\n ScheduleFragment fragment = new ScheduleFragment();\n Bundle args = new Bundle();\n //args.putString(ARG_PARAM1, param1);\n //args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public ProfileFragment(){}", "public WelcomeFragment() {}", "public static ForumFragment newInstance() {\n ForumFragment fragment = new ForumFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n\n return fragment;\n }", "public static NotificationFragment newInstance() {\n NotificationFragment fragment = new NotificationFragment();\n Bundle args = new Bundle();\n// args.putString(ARG_PARAM1, param1);\n// args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public progFragment() {\n }", "public HeaderFragment() {}", "public static RouteFragment newInstance() {\n RouteFragment fragment = new RouteFragment();\n Bundle args = new Bundle();\n //fragment.setArguments(args);\n return fragment;\n }", "public EmployeeFragment() {\n }", "public Fragment_Tutorial() {}", "public NewShopFragment() {\n }", "public FavoriteFragment() {\n }", "public static MyCourseFragment newInstance() {\n MyCourseFragment fragment = new MyCourseFragment();\r\n// fragment.setArguments(args);\r\n return fragment;\r\n }", "public static MessageFragment newInstance() {\n MessageFragment fragment = new MessageFragment();\n Bundle args = new Bundle();\n\n fragment.setArguments(args);\n return fragment;\n }", "public static ReservationFragment newInstance() {\n\n ReservationFragment _fragment = new ReservationFragment();\n// Bundle args = new Bundle();\n// args.putString(ARG_PARAM1, param1);\n// args.putString(ARG_PARAM2, param2);\n// fragment.setArguments(args);\n return _fragment;\n }", "public CreateEventFragment() {\n // Required empty public constructor\n }", "public static RecipeListFragment newInstance() {\n RecipeListFragment fragment = new RecipeListFragment();\n// Bundle args = new Bundle();\n// args.putString(ARG_PARAM1, param1);\n// args.putString(ARG_PARAM2, param2);\n// fragment.setArguments(args);\n return fragment;\n }", "public static Fragment newInstance() {\n\t\treturn new ScreenSlidePageFragment();\n\t}", "public NoteActivityFragment() {\n }", "public static WeekViewFragment newInstance(int param1, int param2) {\n WeekViewFragment fragment = new WeekViewFragment();\n //WeekViewFragment 객체 생성\n Bundle args = new Bundle();\n //Bundle 객체 생성\n args.putInt(ARG_PARAM1, param1);\n //ARG_PARAM1에 param1의 정수값 넣어서 args에 저장\n args.putInt(ARG_PARAM2, param2);\n //ARG_PARAM2에 param2의 정수값 넣어서 args에 저장\n fragment.setArguments(args);\n //args를 매개변수로 한 setArguments() 메소드 수행하여 fragment에 저장\n return fragment; //fragment 반환\n }", "public static Fragment0 newInstance(String param1, String param2) {\n Fragment0 fragment = new Fragment0();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public static QueenBEmbassyF newInstance() {\n QueenBEmbassyF fragment = new QueenBEmbassyF();\n //the way to pass arguments between fragments\n Bundle args = new Bundle();\n\n fragment.setArguments(args);\n return fragment;\n }", "public static Fragment newInstance() {\n StatisticsFragment fragment = new StatisticsFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "public EventHistoryFragment() {\n\t}", "public HomeFragment() {}", "public PeopleFragment() {\n // Required empty public constructor\n }", "public static FeedFragment newInstance() {\n FeedFragment fragment = new FeedFragment();\n return fragment;\n }", "public static MainFragment newInstance(String param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "public VantaggiFragment() {\n // Required empty public constructor\n }", "public AddressDetailFragment() {\n }", "public ArticleDetailFragment() { }", "public static DropboxMainFrag newInstance() {\n DropboxMainFrag fragment = new DropboxMainFrag();\n // set arguments in Bundle\n return fragment;\n }", "public RegisterFragment() {\n }", "public EmailFragment() {\n }", "public static CommentFragment newInstance() {\n CommentFragment fragment = new CommentFragment();\n\n return fragment;\n }", "public static FragmentComida newInstance(String param1) {\n FragmentComida fragment = new FragmentComida();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n fragment.setArguments(args);\n return fragment;\n\n\n }", "public static ParqueosFragment newInstance() {\n ParqueosFragment fragment = new ParqueosFragment();\n return fragment;\n }", "public ForecastFragment() {\n }", "public FExDetailFragment() {\n \t}", "public static AddressFragment newInstance(String param1) {\n AddressFragment fragment = new AddressFragment();\n\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n fragment.setArguments(args);\n\n return fragment;\n }", "public TripNoteFragment() {\n }", "public ItemFragment() {\n }", "public NoteListFragment() {\n }", "public CreatePatientFragment() {\n\n }", "public DisplayFragment() {\n\n }", "public static frag4_viewcompliment newInstance(String param1, String param2) {\r\n frag4_viewcompliment fragment = new frag4_viewcompliment();\r\n Bundle args = new Bundle();\r\n args.putString(ARG_PARAM1, param1);\r\n args.putString(ARG_PARAM2, param2);\r\n fragment.setArguments(args);\r\n return fragment;\r\n }", "public static fragment_profile newInstance(String param1, String param2) {\n fragment_profile fragment = new fragment_profile();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "@Override\n\tprotected Fragment createFragment() {\n\t\treturn new FormFragment();\n\t}", "public static MainFragment newInstance() {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "public ProfileFragment() {\n\n }", "public BackEndFragment() {\n }", "public CustomerFragment() {\n }", "public static FriendsFragment newInstance(int sectionNumber) {\n \tFriendsFragment fragment = new FriendsFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "public ArticleDetailFragment() {\n }", "public ArticleDetailFragment() {\n }", "public ArticleDetailFragment() {\n }", "public static Fragment newInstance() {\n return new SettingsFragment();\n }", "public SummaryFragment newInstance()\n {\n return new SummaryFragment();\n }", "public PeersFragment() {\n }", "public TagsFragment() {\n }", "public static ProfileFragment newInstance() {\n ProfileFragment fragment = new ProfileFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, \"\");\n args.putString(ARG_PARAM2, \"\");\n fragment.setArguments(args);\n return fragment;\n }", "public static FriendsFragment newInstance() {\n FriendsFragment fragment = new FriendsFragment();\n\n return fragment;\n }", "public HomeSectionFragment() {\n\t}", "public static FirstFragment newInstance(String text) {\n\n FirstFragment f = new FirstFragment();\n Bundle b = new Bundle();\n b.putString(\"msg\", text);\n\n f.setArguments(b);\n\n return f;\n }", "public PersonDetailFragment() {\r\n }", "public static LogFragment newInstance(Bundle params) {\n LogFragment fragment = new LogFragment();\n fragment.setArguments(params);\n return fragment;\n }", "public RegisterFragment() {\n // Required empty public constructor\n }", "public VehicleFragment() {\r\n }", "public static Fine newInstance(String param1, String param2) {\n Fine fragment = new Fine();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public static FriendsFragment newInstance(String param1, String param2) {\n FriendsFragment fragment = new FriendsFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "public static ChangesViewFragment newInstance() {\n\t\tChangesViewFragment fragment = new ChangesViewFragment();\n\t\tBundle args = new Bundle();\n\t\targs.putInt(HomeViewActivity.ARG_SECTION_NUMBER, 2);\n\t\tfragment.setArguments(args);\n\t\treturn fragment;\n\t}", "public static NoteFragment newInstance(String param1, String param2) {\n NoteFragment fragment = new NoteFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public static MainFragment newInstance(Context context) {\n MainFragment fragment = new MainFragment();\n if(context != null)\n fragment.setVariables(context);\n return fragment;\n }", "@Override\n\tprotected Fragment createFragment() {\n\t\treturn new CrimeListFragment();\n\t}", "public static MoneyLogFragment newInstance() {\n MoneyLogFragment fragment = new MoneyLogFragment();\n return fragment;\n }", "public static ForecastFragment newInstance() {\n\n //Create new fragment\n ForecastFragment frag = new ForecastFragment();\n return(frag);\n }", "public static MainFragment newInstance(String param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public static MainFragment newInstance(String param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public static MainFragment newInstance(String param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public static MyTaskFragment newInstance(String param1) {\n MyTaskFragment fragment = new MyTaskFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n fragment.setArguments(args);\n return fragment;\n }", "public static MyProfileFragment newInstance(String param1, String param2) {\n MyProfileFragment fragment = new MyProfileFragment();\n return fragment;\n }", "public static MainFragment newInstance(int param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_PARAM1, param1);\n\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public PlaylistFragment() {\n }", "public static HistoryFragment newInstance() {\n HistoryFragment fragment = new HistoryFragment();\n return fragment;\n }", "public static SurvivorIncidentFormFragment newInstance(String param1, String param2) {\n// SurvivorIncidentFormFragment fragment = new SurvivorIncidentFormFragment();\n// Bundle args = new Bundle();\n// args.putString(ARG_PARAM1, param1);\n// args.putString(ARG_PARAM2, param2);\n// fragment.setArguments(args);\n// return fragment;\n\n SurvivorIncidentFormFragment fragment = new SurvivorIncidentFormFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n\n\n }", "public static PersonalFragment newInstance(String param1, String param2) {\n PersonalFragment fragment = new PersonalFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }" ]
[ "0.7259329", "0.72331375", "0.71140355", "0.69909847", "0.69902235", "0.6834592", "0.683074", "0.68134046", "0.6801526", "0.6801054", "0.67653185", "0.6739714", "0.6739714", "0.6727412", "0.6717231", "0.6705855", "0.6692112", "0.6691661", "0.66869426", "0.66606814", "0.6646188", "0.66410166", "0.6640725", "0.6634425", "0.66188246", "0.66140765", "0.6608169", "0.66045964", "0.65977716", "0.6592119", "0.659137", "0.65910816", "0.65830594", "0.65786606", "0.6562876", "0.65607685", "0.6557126", "0.65513307", "0.65510213", "0.65431285", "0.6540448", "0.65336084", "0.6532555", "0.6528302", "0.6524409", "0.652328", "0.6523149", "0.6516528", "0.65049976", "0.6497274", "0.6497235", "0.64949715", "0.64944136", "0.6484968", "0.6484214", "0.64805835", "0.64784926", "0.64755154", "0.64710265", "0.6466466", "0.6457089", "0.645606", "0.6454554", "0.6452161", "0.64520335", "0.6450325", "0.64488834", "0.6446765", "0.64430225", "0.64430225", "0.64430225", "0.64420956", "0.6441306", "0.64411277", "0.6438451", "0.64345145", "0.64289486", "0.64287597", "0.6423755", "0.64193285", "0.6418699", "0.6414679", "0.6412867", "0.6402168", "0.6400724", "0.6395624", "0.6395109", "0.6391252", "0.63891554", "0.63835025", "0.63788056", "0.63751805", "0.63751805", "0.63751805", "0.6374796", "0.63653135", "0.6364529", "0.6360922", "0.63538784", "0.6351111", "0.635067" ]
0.0
-1
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { homeBinding = DataBindingUtil.inflate(inflater, R.layout.fragment_home, container, false); // homeBinding.recyclerCategories.setLayoutManager(new LinearLayoutManager(getActivity(),LinearLayoutManager.HORIZONTAL,false)); homeBinding.recyclerCategories.setHasFixedSize(true); homeBinding.recyclerPopularProducts.setLayoutManager(new LinearLayoutManager(getActivity(),LinearLayoutManager.HORIZONTAL,false)); homeBinding.recyclerPopularProducts.setHasFixedSize(true); homeBinding.recyclerFeaturedProducts.setLayoutManager(new LinearLayoutManager(getActivity(),LinearLayoutManager.HORIZONTAL,false)); homeBinding.recyclerCategories.setHasFixedSize(true); setValuesToFields(); getCategories(); getOffers(); getfeaturedProduct(); return homeBinding.getRoot(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.wallpager_layout, null);\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_invit_friends, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_zhuye, container, false);\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_posts, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.ilustration_fragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_sow_drug_cost_per_week, container, false);\n\n db = new DataBaseAdapter(getActivity());\n hc = new HelperClass();\n pop = new FeedSowsFragment();\n\n infltr = (LayoutInflater) getActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n parent = (LinearLayout) v.findViewById(R.id.layout_for_add);\n tvTotalCost = (TextView) v.findViewById(R.id.totalCost);\n\n getData();\n setData();\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_stream_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_event, container, false);\n\n\n\n\n\n\n\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_feed, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.screen_select_list_student, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_overall, container, false);\n mNamesLayout = (LinearLayout) rootView.findViewById(R.id.fragment_overall_names_layout);\n mOverallView = (OverallView) rootView.findViewById(R.id.fragment_overall_view);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState)\n {\n\n\n view = inflater.inflate(R.layout.fragment_earning_fragmant, container, false);\n ini(view);\n return view;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n super.onCreateView(inflater, container, savedInstanceState);\n final View rootview = inflater.inflate(R.layout.activity_email_frag, container, false);\n ConfigInnerElements(rootview);\n return rootview;\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\trootView = inflater.inflate(R.layout.fragment_attack_armor, container, false);\r\n\r\n\t\tfindInterfaceElements();\r\n\t\taddRangeSelector();\r\n\t\tupdateHeadings();\r\n\t\tsetListeners();\r\n\r\n\t\tsetFromData();\r\n\r\n\t\treturn rootView;\r\n\t}", "@SuppressLint(\"InflateParams\")\r\n\t@Override\r\n\tpublic View initLayout(LayoutInflater inflater) {\n\t\tView view = inflater.inflate(R.layout.frag_customer_all, null);\r\n\t\treturn view;\r\n\t}", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_fore_cast, container, false);\r\n initView();\r\n mainLayout.setVisibility(View.GONE);\r\n apiInterface = RestClinet.getClient().create(ApiInterface.class);\r\n loadData();\r\n return view;\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_friend, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_detail, container, false);\n image = rootView.findViewById(R.id.fr_image);\n name = rootView.findViewById(R.id.fr_name);\n phoneNumber = rootView.findViewById(R.id.fr_phone_number);\n email = rootView.findViewById(R.id.fr_email);\n street = rootView.findViewById(R.id.fr_street);\n city = rootView.findViewById(R.id.fr_city);\n state = rootView.findViewById(R.id.fr_state);\n zipcode = rootView.findViewById(R.id.fr_zipcode);\n dBrith = rootView.findViewById(R.id.date_brith);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_pm25, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_kkbox_playlist, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_feed_pager, container, false);\n\n// loadData();\n\n findViews(rootView);\n\n setViews();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n layout = (FrameLayout) inflater.inflate(R.layout.fragment_actualites, container, false);\n\n relLayout = (RelativeLayout) layout.findViewById(R.id.relLayoutActus);\n\n initListView();\n getXMLData();\n\n return layout;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.frag_post_prayer_video, container, false);\n setCustomDesign();\n setCustomClickListeners();\n return rootView;\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.lf_em4305_fragment, container, false);\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_recordings, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.fragment_category, container, false);\n initView(view);\n bindRefreshListener();\n loadParams();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_cm_box_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_layout12, container, false);\n\n iniv();\n\n init();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_details, container, false);\n //return inflater.inflate(R.layout.fragment_details, container, false);\n getIntentValues();\n initViews();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_mem_body_blood, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_qiugouxiaoxi, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_coll_blank, container, false);\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_attendance_divide, container, false);\n\n initView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.show_program_fragment, parent, false);\n }", "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container,\n @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.visualization_fragment, container, false);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_category_details_page, container, false);\n initializeAll();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View v = inflater.inflate(R.layout.fragemnt_reserve, container, false);\n\n\n\n\n return v;\n }", "protected int getLayoutResId() {\n return R.layout.activity_fragment;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_quizs, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n role = getArguments().getInt(\"role\");\n rootview = inflater.inflate(R.layout.fragment_application, container, false);\n layout = rootview.findViewById(R.id.patentDetails);\n progressBar = rootview.findViewById(R.id.progressBar);\n try {\n run();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return rootview;\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tview = inflater.inflate(R.layout.fragment_zhu, null);\n\t\tinitView();\n\t\tinitData();\n\t\treturn view;\n\t}", "@Override\n\t\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)\n\t\t{\n\t\t\tView rootView = inflater.inflate(R.layout.maimfragment, container, false);\n\t\t\treturn rootView;\n\t\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n // Inflate the layout for this fragment\n return inflater.inflate(R.layout.fragment__record__week, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_porishongkhan, container, false);\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_dashboard, container, false);\n resultsRv = view.findViewById(R.id.db_results_rv);\n resultText = view.findViewById(R.id.db_search_empty);\n progressBar = view.findViewById(R.id.db_progressbar);\n lastVisitText = view.findViewById(R.id.db_last_visit);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(getLayoutId(), container, false);\n init(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_feedback, container, false);\n self = getActivity();\n initUI(view);\n initControlUI();\n initData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_service_summery, container, false);\n tvVoiceMS = v.findViewById(R.id.tvVoiceValue);\n tvDataMS = v.findViewById(R.id.tvdataValue);\n tvSMSMS = v.findViewById(R.id.tvSMSValue);\n tvVoiceFL = v.findViewById(R.id.tvVoiceFLValue);\n tvDataBS = v.findViewById(R.id.tvDataBRValue);\n tvTotal = v.findViewById(R.id.tvTotalAccountvalue);\n return v;\n }", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_clan_rank_details, container, false);\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_star_wars_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_lei, container, false);\n\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_quotation, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_wode_ragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n\n\n\n\n\n return inflater.inflate(R.layout.fragment_appoint_list, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n if (rootView == null) {\n rootView = inflater.inflate(R.layout.fragment_ip_info, container, false);\n initView();\n }\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_offer, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_rooms, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\n View view = inflater.inflate(R.layout.fragment_img_eva, container, false);\n\n getSendData();\n\n initView(view);\n\n initData();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_project_collection, container, false);\n ButterKnife.bind(this, view);\n fragment = this;\n initView();\n getCollectionType();\n // getCategoryList();\n initBroadcastReceiver();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_yzm, container, false);\n initView(view);\n return view;\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\tmainLayout = inflater.inflate(R.layout.fragment_play, container, false);\r\n\t\treturn mainLayout;\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_invite_request, container, false);\n initialiseVariables();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n getLocationPermission();\n return inflater.inflate(R.layout.centrum_fragment, container, false);\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_habit_type_details, container, false);\n\n habitTitle = rootView.findViewById(R.id.textViewTitle);\n habitReason = rootView.findViewById(R.id.textViewReason);\n habitStartDate = rootView.findViewById(R.id.textViewStartDate);\n habitWeeklyPlan = rootView.findViewById(R.id.textViewWeeklyPlan);\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_information_friends4, container, false);\n\n if (getArguments() != null) {\n FriendsID = getArguments().getString(\"keyFriends\");\n }\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_post_details, container, false);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hotel, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_bus_inquiry, container, false);\n initView();\n initData();\n initDialog();\n getDataFromNet();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_weather, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_srgl, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_ground_detail_frgment, container, false);\n init();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_book_appointment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_wheretogo, container, false);\n ids();\n setup();\n click();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n binding = DataBindingUtil\n .inflate(inflater, R.layout.fragment_learning_leaders, container, false);\n init();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_end_game_tab, container, false);\n\n setupWidgets();\n setupTextFields(view);\n setupSpinners(view);\n\n // Inflate the layout for this fragment\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.memoir_fragment, container, false);\n\n getUserIdFromSharedPref();\n configureUI(view);\n configureSortSpinner();\n configureFilterSpinner();\n\n networkConnection = new NetworkConnection();\n new GetAllMemoirTask().execute();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_jadwal, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_delivery_detail, container, false);\n initialise();\n\n\n\n return view;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_4, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_product, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_group_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment06_7, container, false);\n initView(view);\n setLegend();\n setXAxis();\n setYAxis();\n setData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_downloadables, container, false);\n }", "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.movie_list_fragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_like, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hall, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_unit_main, container, false);\n TextView mTxvBusinessAassistant = (TextView) view.findViewById(R.id.txv_business_assistant);\n TextView mTxvCardINformation = (TextView) view.findViewById(R.id.txv_card_information);\n RelativeLayout mRelOfficialWebsite = (RelativeLayout) view.findViewById(R.id.rel_official_website);\n RelativeLayout mRelPictureAblum = (RelativeLayout) view.findViewById(R.id.rel_picture_album);\n TextView mTxvQrCodeCard = (TextView) view.findViewById(R.id.txv_qr_code_card);\n TextView mTxvShareCard = (TextView) view.findViewById(R.id.txv_share_card);\n mTxvBusinessAassistant.setOnClickListener(this.mOnClickListener);\n mTxvCardINformation.setOnClickListener(this.mOnClickListener);\n mRelOfficialWebsite.setOnClickListener(this.mOnClickListener);\n mRelPictureAblum.setOnClickListener(this.mOnClickListener);\n mTxvQrCodeCard.setOnClickListener(this.mOnClickListener);\n mTxvShareCard.setOnClickListener(this.mOnClickListener);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_moviespage, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_s, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_overview, container, false);\n\n initOverviewComponents(view);\n registerListeners();\n initTagListener();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_bahan_ajar, container, false);\n initView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n root = (ViewGroup) inflater.inflate(R.layout.money_main, container, false);\n context = getActivity();\n initHeaderView(root);\n initView(root);\n\n getDate();\n initEvetn();\n return root;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_historical_event, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_event_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_video, container, false);\n unbinder = ButterKnife.bind(this, view);\n initView();\n initData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n v= inflater.inflate(R.layout.fragment_post_contacts, container, false);\n this.mapping(v);\n return v;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_measures, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_feed, container, false);\n findViews(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_surah_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_data_binded, container, false);\n }" ]
[ "0.6739604", "0.67235583", "0.6721706", "0.6698254", "0.6691869", "0.6687986", "0.66869223", "0.6684548", "0.66766286", "0.6674615", "0.66654444", "0.66654384", "0.6664403", "0.66596216", "0.6653321", "0.6647136", "0.66423255", "0.66388357", "0.6637491", "0.6634193", "0.6625158", "0.66195583", "0.66164845", "0.6608733", "0.6596594", "0.65928894", "0.6585293", "0.65842897", "0.65730995", "0.6571248", "0.6569152", "0.65689117", "0.656853", "0.6566686", "0.65652984", "0.6553419", "0.65525705", "0.65432084", "0.6542382", "0.65411425", "0.6538022", "0.65366334", "0.65355957", "0.6535043", "0.65329415", "0.65311074", "0.65310687", "0.6528645", "0.65277404", "0.6525902", "0.6524516", "0.6524048", "0.65232015", "0.65224624", "0.65185034", "0.65130377", "0.6512968", "0.65122765", "0.65116245", "0.65106046", "0.65103024", "0.6509013", "0.65088093", "0.6508651", "0.6508225", "0.6504662", "0.650149", "0.65011525", "0.6500686", "0.64974767", "0.64935696", "0.6492234", "0.6490034", "0.6487609", "0.6487216", "0.64872116", "0.6486594", "0.64861935", "0.6486018", "0.6484269", "0.648366", "0.6481476", "0.6481086", "0.6480985", "0.6480396", "0.64797544", "0.647696", "0.64758915", "0.6475649", "0.6474114", "0.6474004", "0.6470706", "0.6470275", "0.64702207", "0.6470039", "0.6467449", "0.646602", "0.6462256", "0.64617974", "0.6461681", "0.6461214" ]
0.0
-1
/ 7: / 8:
public OreStack(String mat, int qty) /* 9: */ { /* 10: 8 */ this.material = mat; /* 11: 9 */ this.quantity = qty; /* 12: */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void level7() {\n }", "@Override\n\tpublic void challenge7() {\n\n\t}", "static void q8(){\t\n\t}", "static void q7(){\n\t}", "@Override\n\tpublic void challenge8() {\n\n\t}", "Main8(int a) {\n\t\tSystem.out.println(a);\n\t}", "@Override\n\tpublic void challenge9() {\n\n\t}", "static void feladat8() {\n\t}", "@Override\n\tpublic void challenge6() {\n\n\t}", "@Test\n\tpublic void test7()\n\t{\n\t\tassertEquals(\n\t\t\t\"$1: {<web> page}\\n\" +\n\t\t\t\"$2: (webpage|$1)\\n\" +\n\t\t\t\"$webpage: {<spacex> $2}\\n\" +\n\t\t\t\"$webpage: {<slashdot>}\",\n\t\t\texplodeRulesAndCreateString(\"webpage:\\n\\tspacex (webpage|(web page))\\n\\tslashdot\")\n\t\t);\n\t}", "public static void main(String[] args) {\n\r\n for (int x = 1; x < 10; x++) {// x=1\r\n\r\n for (int h = 1; h < 10; h++) { // h=1+1+1...8+1\r\n\r\n System.out.println(x + \"*\" + h \"=\" +x*h);// 1-2-3....8-9\r\n\r\n if(h==2){\r\n break;\r\n }\r\n }\r\n\r\n if(x==4){\r\n continue;\r\n }\r\n\r\n }\r\n\r\n }", "static void feladat7() {\n\t}", "void mo1507n();", "private byte[] m1034b(java.lang.String r8) {\n /*\n r7 = this;\n r6 = 2\n r4 = 6\n r2 = 0\n java.lang.String r0 = \":\"\n java.lang.String[] r0 = r8.split(r0)\n byte[] r1 = new byte[r4]\n if (r0 == 0) goto L_0x0010\n int r3 = r0.length // Catch:{ Throwable -> 0x0043 }\n if (r3 == r4) goto L_0x001e\n L_0x0010:\n r0 = 6\n java.lang.String[] r0 = new java.lang.String[r0] // Catch:{ Throwable -> 0x0043 }\n r3 = r2\n L_0x0014:\n int r4 = r0.length // Catch:{ Throwable -> 0x0043 }\n if (r3 >= r4) goto L_0x001e\n java.lang.String r4 = \"0\"\n r0[r3] = r4 // Catch:{ Throwable -> 0x0043 }\n int r3 = r3 + 1\n goto L_0x0014\n L_0x001e:\n int r3 = r0.length // Catch:{ Throwable -> 0x0043 }\n if (r2 >= r3) goto L_0x0041\n r3 = r0[r2] // Catch:{ Throwable -> 0x0043 }\n int r3 = r3.length() // Catch:{ Throwable -> 0x0043 }\n if (r3 <= r6) goto L_0x0033\n r3 = r0[r2] // Catch:{ Throwable -> 0x0043 }\n r4 = 0\n r5 = 2\n java.lang.String r3 = r3.substring(r4, r5) // Catch:{ Throwable -> 0x0043 }\n r0[r2] = r3 // Catch:{ Throwable -> 0x0043 }\n L_0x0033:\n r3 = r0[r2] // Catch:{ Throwable -> 0x0043 }\n r4 = 16\n int r3 = java.lang.Integer.parseInt(r3, r4) // Catch:{ Throwable -> 0x0043 }\n byte r3 = (byte) r3 // Catch:{ Throwable -> 0x0043 }\n r1[r2] = r3 // Catch:{ Throwable -> 0x0043 }\n int r2 = r2 + 1\n goto L_0x001e\n L_0x0041:\n r0 = r1\n L_0x0042:\n return r0\n L_0x0043:\n r0 = move-exception\n java.lang.String r1 = \"Req\"\n java.lang.StringBuilder r2 = new java.lang.StringBuilder\n r2.<init>()\n java.lang.String r3 = \"getMacBa \"\n java.lang.StringBuilder r2 = r2.append(r3)\n java.lang.StringBuilder r2 = r2.append(r8)\n java.lang.String r2 = r2.toString()\n com.amap.loc.C0310c.m956a(r0, r1, r2)\n java.lang.String r0 = \"00:00:00:00:00:00\"\n byte[] r0 = r7.m1034b(r0)\n goto L_0x0042\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.amap.loc.C0321cj.m1034b(java.lang.String):byte[]\");\n }", "private void level6() {\n }", "public static void main(String[] args) {\n int n;\n Scanner ja=new Scanner(System.in);\n n=ja.nextInt();\n if(n%7==0)\n{\n\tSystem.out.println(\"yes\");\n}\nelse\n{\n\tSystem.out.println(\"no\");\n}\n\t}", "private void kk12() {\n\n\t}", "@Test\n public void allSpareAndLast_2_Expected_111(){\n String input = \"1/1/1/1/1/1/1/1/1/1/2\";\n assertEquals(game.scoreOfGame(input),111);\n }", "public void mo21877s() {\n }", "public void mo21783H() {\n }", "java.lang.String getS7();", "static int count8(int n) {\n if (n == 0)\n return 0;\n if (n % 10 == 8) {\n // RC1: if two rightmost digits is 88, count as 2, and recurse on rest\n if (n % 100 == 88)\n return 2 + count8(n / 10);\n else\n // RC2: if rightmost digit is just one 8, standard--count as 1 and recurse on rest\n return 1 + count8(n / 10);\n } else\n // RC3: if rightmost not 8, recurse on rest\n return count8(n / 10);\n }", "public static void main(String args[])\n {\n int a=8%3; //Finding the reminder of 8 when divided by 3 using the modulus operator '%'\n\n System.out.println(\"a=\"+a);\n\n }", "public static void main(String[] args) {\n System.out.println(\"1.1\");\n System.out.println(\"Welcome to java\");\n System.out.println(\"Learning java now\");\n System.out.println(\"Programming is fun\");\n\n // Kapitel3.opgave 1.2 (display 5 messages)\n System.out.println(1.2);\n int i = 0;\n while (i <= 4) {\n System.out.println(\"I love java\");\n i++;\n }\n // Kapitel3.opgave 1.4 (print a table)\n System.out.println(\"1.4\");\n System.out.println(\"a a^2 a^3 a^4\");\n System.out.println(\"1 1 1 1\");\n System.out.println(\"2 4 8 16\");\n System.out.println(\"3 9 27 81\");\n System.out.println(\"4 16 64 256\");\n\n // Kapitel3.opgave 1.5\n System.out.println(1.5);\n System.out.print(\"(7.5 * 6.5 - 4.5 * 3)/(47.5 - 5.5 ) = \");\n System.out.println((7.5 * 6.5 - 4.5 * 3)/(47.5 - 5.5));\n\n // Kapitel3.opgave 1.6\n System.out.println(\"1.6\");\n System.out.print(\"1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 = \");\n System.out.println(1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10);\n\n //Kapitel3.opgave 1.12\n System.out.println(\"1.12\");\n // vi skal omskrive miles til kilometer\n System.out.println(\"Miles to kilometers is \" + (24 * 1.6));\n // vi skal omskrive 1 time 40 min og 35 sek til sekunder\n System.out.println(\"Number of hour in fraction is \" + ((60 * 60) + (40 * 60) + 35)/ (60.0 * 60));\n\n System.out.println(\"he ran \" + (38.400000000000006 / 1.676388888888889 ) + \" kilometers per hour\");\n\n }", "static void feladat9() {\n\t}", "public void verliesLeven() {\r\n\t\t\r\n\t}", "@Test\r\n\tvoid lowDiffLowPlus8TimesHigh()\r\n\t{\r\n\t\tSystem.out.println(\"NOW TESTING LOWDIFSTRING LOWPLUS8TIMESHIGH\");\r\n\t\tint k = 42;\r\n\t\tDomino d1 = new DominoLowDifferenceStringImpl_Khan(k);\r\n\t\tint assertHigh = d1.getHighPipCount();\r\n\t\tint assertLow = d1.getLowPipCount();\r\n\t\tassertEquals(assertHigh, 5);\r\n\t\tassertEquals(assertLow, 2);\r\n\t\t\r\n\t\tk = 34;\r\n\t\tDomino d2 = new DominoLowDifferenceStringImpl_Khan(k);\r\n\t\tassertHigh = d2.getHighPipCount();\r\n\t\tassertLow = d2.getLowPipCount();\r\n\t\tassertEquals(assertHigh, 4);\r\n\t\tassertEquals(assertLow, 2);\r\n\t\tSystem.out.println(\"TEST SUCCESFULLY COMPLETED\");\r\n\t}", "public int mo36g() {\n return 8;\n }", "public static void ninethProgram() {\n\t\tfor(int i=1;i<=4;i++) {\n\t\t\tfor(int j=4-1;j>=i;j--) {\n\t\t\t\tSystem.out.print(\" \");\t\n\t\t\t}for(int k=1;k<=4;k++) {\n\t\t\t\tSystem.out.print(\"*\");\t\t\n\t\t\t}System.out.println();\n\t\t}\n\t}", "private void f(java.lang.String r8) {\n /*\n r7 = this;\n r6 = 1;\n r2 = F;\n r7.y = r8;\n r0 = r7.m;\n r0 = r0.entrySet();\n r3 = r0.iterator();\n L_0x000f:\n r0 = r3.hasNext();\n if (r0 == 0) goto L_0x004a;\n L_0x0015:\n r0 = r3.next();\n r0 = (java.util.Map.Entry) r0;\n r1 = r0.getValue();\n r1 = (java.util.List) r1;\n r4 = r1.size();\t Catch:{ RuntimeException -> 0x0077 }\n if (r4 != r6) goto L_0x0043;\n L_0x0027:\n r4 = J;\t Catch:{ RuntimeException -> 0x0079 }\n r5 = 28;\n r4 = r4[r5];\t Catch:{ RuntimeException -> 0x0079 }\n r5 = 0;\n r5 = r1.get(r5);\t Catch:{ RuntimeException -> 0x0079 }\n r4 = r4.equals(r5);\t Catch:{ RuntimeException -> 0x0079 }\n if (r4 == 0) goto L_0x0043;\n L_0x0038:\n r4 = r7.e;\t Catch:{ RuntimeException -> 0x007b }\n r0 = r0.getKey();\t Catch:{ RuntimeException -> 0x007b }\n r4.add(r0);\t Catch:{ RuntimeException -> 0x007b }\n if (r2 == 0) goto L_0x0048;\n L_0x0043:\n r0 = r7.x;\t Catch:{ RuntimeException -> 0x007b }\n r0.addAll(r1);\t Catch:{ RuntimeException -> 0x007b }\n L_0x0048:\n if (r2 == 0) goto L_0x000f;\n L_0x004a:\n r0 = r7.x;\t Catch:{ RuntimeException -> 0x007d }\n r1 = J;\t Catch:{ RuntimeException -> 0x007d }\n r2 = 29;\n r1 = r1[r2];\t Catch:{ RuntimeException -> 0x007d }\n r0 = r0.remove(r1);\t Catch:{ RuntimeException -> 0x007d }\n if (r0 == 0) goto L_0x0065;\n L_0x0058:\n r0 = B;\t Catch:{ RuntimeException -> 0x007d }\n r1 = java.util.logging.Level.WARNING;\t Catch:{ RuntimeException -> 0x007d }\n r2 = J;\t Catch:{ RuntimeException -> 0x007d }\n r3 = 30;\n r2 = r2[r3];\t Catch:{ RuntimeException -> 0x007d }\n r0.log(r1, r2);\t Catch:{ RuntimeException -> 0x007d }\n L_0x0065:\n r1 = r7.G;\n r0 = r7.m;\n r2 = java.lang.Integer.valueOf(r6);\n r0 = r0.get(r2);\n r0 = (java.util.Collection) r0;\n r1.addAll(r0);\n return;\n L_0x0077:\n r0 = move-exception;\n throw r0;\t Catch:{ RuntimeException -> 0x0079 }\n L_0x0079:\n r0 = move-exception;\n throw r0;\t Catch:{ RuntimeException -> 0x007b }\n L_0x007b:\n r0 = move-exception;\n throw r0;\n L_0x007d:\n r0 = move-exception;\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.e2.f(java.lang.String):void\");\n }", "public int tablesExample(int num,boolean divisibleBy7) {\n do {\n System.out.println(num);\n if (num % 7 == 0)divisibleBy7 = true;\n num--;\n }while (divisibleBy7 == false);\n\n return num;\n\n }", "public void method8(int i) {\n }", "void doStuff() {\n System.out.println(7/0);\r\n }", "public static void pattern7(int input){\n\t\tfor(int i=1;i<=input;i++){\n\t\t\tfor(int j=1;j<=i;j++){\n\t\t\t\tSystem.out.print(j+\" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public static void main(String[] args) {\n\n\n for(int a=0; a<7;a++){\n for(int b=0;b<7-a;b++){\n System.out.print(\" \");\n }\n for(int c=0; c<=a;c++){\n System.out.print(\"* \");\n }\n System.out.println(\" \");\n }\n\n }", "public static void main(String[] args) {\n\n\n\n System.out.println(4 * (1.0 - (1 / 3) + (1 / 5) - (1 / 7) + (1 / 9) - (1 / 11)));\n\n System.out.println(4 * (1.0 - (1/3) + (1/5) - (1/7)\n + (1 / 9) - (1/11) + (1/13)));\n }", "public static void main(String[] args) {\n\t\tfor(int j=0;j<8;j++){\n\t\t\tfor(int i=0;i<8;i++){\n\t\t\t\t//上下两侧\n\t\t\t\tif(j==0||j==7){\n\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t}else{\n\t\t\t\t\t//中间\n\t\t\t\t\tif(i>0&&i<7){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public static void incorrect6() {\r\n\r\n System.out.println(\" *---*\");\r\n System.out.println(\" | |\");\r\n System.out.println(\" 0 |\");\r\n System.out.println(\" /|\\\\ | Incorrect - 6\");\r\n System.out.println(\" / \\\\ |\");\r\n System.out.println(\" |\");\r\n System.out.println(\"==========\");\r\n }", "public final void zzc(T r7, T r8) {\n /*\n r6 = this;\n if (r8 == 0) goto L_0x0105;\n L_0x0002:\n r0 = 0;\n L_0x0003:\n r1 = r6.zzmi;\n r1 = r1.length;\n if (r0 >= r1) goto L_0x00f2;\n L_0x0008:\n r1 = r6.zzag(r0);\n r2 = 1048575; // 0xfffff float:1.469367E-39 double:5.18065E-318;\n r2 = r2 & r1;\n r2 = (long) r2;\n r4 = r6.zzmi;\n r4 = r4[r0];\n r5 = 267386880; // 0xff00000 float:2.3665827E-29 double:1.321066716E-315;\n r1 = r1 & r5;\n r1 = r1 >>> 20;\n switch(r1) {\n case 0: goto L_0x00de;\n case 1: goto L_0x00d0;\n case 2: goto L_0x00c2;\n case 3: goto L_0x00bb;\n case 4: goto L_0x00ad;\n case 5: goto L_0x00a6;\n case 6: goto L_0x009f;\n case 7: goto L_0x0091;\n case 8: goto L_0x0083;\n case 9: goto L_0x007e;\n case 10: goto L_0x0077;\n case 11: goto L_0x0070;\n case 12: goto L_0x0069;\n case 13: goto L_0x0062;\n case 14: goto L_0x005a;\n case 15: goto L_0x0053;\n case 16: goto L_0x004b;\n case 17: goto L_0x007e;\n case 18: goto L_0x0044;\n case 19: goto L_0x0044;\n case 20: goto L_0x0044;\n case 21: goto L_0x0044;\n case 22: goto L_0x0044;\n case 23: goto L_0x0044;\n case 24: goto L_0x0044;\n case 25: goto L_0x0044;\n case 26: goto L_0x0044;\n case 27: goto L_0x0044;\n case 28: goto L_0x0044;\n case 29: goto L_0x0044;\n case 30: goto L_0x0044;\n case 31: goto L_0x0044;\n case 32: goto L_0x0044;\n case 33: goto L_0x0044;\n case 34: goto L_0x0044;\n case 35: goto L_0x0044;\n case 36: goto L_0x0044;\n case 37: goto L_0x0044;\n case 38: goto L_0x0044;\n case 39: goto L_0x0044;\n case 40: goto L_0x0044;\n case 41: goto L_0x0044;\n case 42: goto L_0x0044;\n case 43: goto L_0x0044;\n case 44: goto L_0x0044;\n case 45: goto L_0x0044;\n case 46: goto L_0x0044;\n case 47: goto L_0x0044;\n case 48: goto L_0x0044;\n case 49: goto L_0x0044;\n case 50: goto L_0x003d;\n case 51: goto L_0x002b;\n case 52: goto L_0x002b;\n case 53: goto L_0x002b;\n case 54: goto L_0x002b;\n case 55: goto L_0x002b;\n case 56: goto L_0x002b;\n case 57: goto L_0x002b;\n case 58: goto L_0x002b;\n case 59: goto L_0x002b;\n case 60: goto L_0x0026;\n case 61: goto L_0x001f;\n case 62: goto L_0x001f;\n case 63: goto L_0x001f;\n case 64: goto L_0x001f;\n case 65: goto L_0x001f;\n case 66: goto L_0x001f;\n case 67: goto L_0x001f;\n case 68: goto L_0x0026;\n default: goto L_0x001d;\n };\n L_0x001d:\n goto L_0x00ee;\n L_0x001f:\n r1 = r6.zza(r8, r4, r0);\n if (r1 == 0) goto L_0x00ee;\n L_0x0025:\n goto L_0x0031;\n L_0x0026:\n r6.zzb(r7, r8, r0);\n goto L_0x00ee;\n L_0x002b:\n r1 = r6.zza(r8, r4, r0);\n if (r1 == 0) goto L_0x00ee;\n L_0x0031:\n r1 = com.google.android.gms.internal.clearcut.zzfd.zzo(r8, r2);\n com.google.android.gms.internal.clearcut.zzfd.zza(r7, r2, r1);\n r6.zzb(r7, r4, r0);\n goto L_0x00ee;\n L_0x003d:\n r1 = r6.zzmz;\n com.google.android.gms.internal.clearcut.zzeh.zza(r1, r7, r8, r2);\n goto L_0x00ee;\n L_0x0044:\n r1 = r6.zzmw;\n r1.zza(r7, r8, r2);\n goto L_0x00ee;\n L_0x004b:\n r1 = r6.zza(r8, r0);\n if (r1 == 0) goto L_0x00ee;\n L_0x0051:\n goto L_0x00c8;\n L_0x0053:\n r1 = r6.zza(r8, r0);\n if (r1 == 0) goto L_0x00ee;\n L_0x0059:\n goto L_0x006f;\n L_0x005a:\n r1 = r6.zza(r8, r0);\n if (r1 == 0) goto L_0x00ee;\n L_0x0060:\n goto L_0x00c8;\n L_0x0062:\n r1 = r6.zza(r8, r0);\n if (r1 == 0) goto L_0x00ee;\n L_0x0068:\n goto L_0x006f;\n L_0x0069:\n r1 = r6.zza(r8, r0);\n if (r1 == 0) goto L_0x00ee;\n L_0x006f:\n goto L_0x00b3;\n L_0x0070:\n r1 = r6.zza(r8, r0);\n if (r1 == 0) goto L_0x00ee;\n L_0x0076:\n goto L_0x00b3;\n L_0x0077:\n r1 = r6.zza(r8, r0);\n if (r1 == 0) goto L_0x00ee;\n L_0x007d:\n goto L_0x0089;\n L_0x007e:\n r6.zza(r7, r8, r0);\n goto L_0x00ee;\n L_0x0083:\n r1 = r6.zza(r8, r0);\n if (r1 == 0) goto L_0x00ee;\n L_0x0089:\n r1 = com.google.android.gms.internal.clearcut.zzfd.zzo(r8, r2);\n com.google.android.gms.internal.clearcut.zzfd.zza(r7, r2, r1);\n goto L_0x00eb;\n L_0x0091:\n r1 = r6.zza(r8, r0);\n if (r1 == 0) goto L_0x00ee;\n L_0x0097:\n r1 = com.google.android.gms.internal.clearcut.zzfd.zzl(r8, r2);\n com.google.android.gms.internal.clearcut.zzfd.zza(r7, r2, r1);\n goto L_0x00eb;\n L_0x009f:\n r1 = r6.zza(r8, r0);\n if (r1 == 0) goto L_0x00ee;\n L_0x00a5:\n goto L_0x00b3;\n L_0x00a6:\n r1 = r6.zza(r8, r0);\n if (r1 == 0) goto L_0x00ee;\n L_0x00ac:\n goto L_0x00c8;\n L_0x00ad:\n r1 = r6.zza(r8, r0);\n if (r1 == 0) goto L_0x00ee;\n L_0x00b3:\n r1 = com.google.android.gms.internal.clearcut.zzfd.zzj(r8, r2);\n com.google.android.gms.internal.clearcut.zzfd.zza(r7, r2, r1);\n goto L_0x00eb;\n L_0x00bb:\n r1 = r6.zza(r8, r0);\n if (r1 == 0) goto L_0x00ee;\n L_0x00c1:\n goto L_0x00c8;\n L_0x00c2:\n r1 = r6.zza(r8, r0);\n if (r1 == 0) goto L_0x00ee;\n L_0x00c8:\n r4 = com.google.android.gms.internal.clearcut.zzfd.zzk(r8, r2);\n com.google.android.gms.internal.clearcut.zzfd.zza(r7, r2, r4);\n goto L_0x00eb;\n L_0x00d0:\n r1 = r6.zza(r8, r0);\n if (r1 == 0) goto L_0x00ee;\n L_0x00d6:\n r1 = com.google.android.gms.internal.clearcut.zzfd.zzm(r8, r2);\n com.google.android.gms.internal.clearcut.zzfd.zza(r7, r2, r1);\n goto L_0x00eb;\n L_0x00de:\n r1 = r6.zza(r8, r0);\n if (r1 == 0) goto L_0x00ee;\n L_0x00e4:\n r4 = com.google.android.gms.internal.clearcut.zzfd.zzn(r8, r2);\n com.google.android.gms.internal.clearcut.zzfd.zza(r7, r2, r4);\n L_0x00eb:\n r6.zzb(r7, r0);\n L_0x00ee:\n r0 = r0 + 4;\n goto L_0x0003;\n L_0x00f2:\n r0 = r6.zzmq;\n if (r0 != 0) goto L_0x0104;\n L_0x00f6:\n r0 = r6.zzmx;\n com.google.android.gms.internal.clearcut.zzeh.zza(r0, r7, r8);\n r0 = r6.zzmo;\n if (r0 == 0) goto L_0x0104;\n L_0x00ff:\n r0 = r6.zzmy;\n com.google.android.gms.internal.clearcut.zzeh.zza(r0, r7, r8);\n L_0x0104:\n return;\n L_0x0105:\n r7 = new java.lang.NullPointerException;\n r7.<init>();\n throw r7;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.clearcut.zzds.zzc(java.lang.Object, java.lang.Object):void\");\n }", "public void mo9233aH() {\n }", "public void mo21867i() {\n mo21877s();\n }", "private int m514b(int i, int i2) {\n return ((i + 7) + (i2 - 1)) / 7;\n }", "public void mo3376r() {\n }", "public static int m8668h() {\n return 8;\n }", "public int mo4308c(int r6, int r7) {\n /*\n r5 = this;\n int r0 = r5.mo4307b(r6)\n r1 = 0\n if (r0 != r7) goto L_0x0008\n return r1\n L_0x0008:\n boolean r2 = r5.f3130b\n if (r2 == 0) goto L_0x0026\n android.util.SparseIntArray r2 = r5.f3129a\n int r2 = r2.size()\n if (r2 <= 0) goto L_0x0026\n int r2 = r5.mo4311a(r6)\n if (r2 < 0) goto L_0x0026\n android.util.SparseIntArray r3 = r5.f3129a\n int r3 = r3.get(r2)\n int r4 = r5.mo4307b(r2)\n int r3 = r3 + r4\n goto L_0x0036\n L_0x0026:\n r2 = 0\n r3 = 0\n L_0x0028:\n if (r2 >= r6) goto L_0x0039\n int r4 = r5.mo4307b(r2)\n int r3 = r3 + r4\n if (r3 != r7) goto L_0x0033\n r3 = 0\n goto L_0x0036\n L_0x0033:\n if (r3 <= r7) goto L_0x0036\n r3 = r4\n L_0x0036:\n int r2 = r2 + 1\n goto L_0x0028\n L_0x0039:\n int r0 = r0 + r3\n if (r0 > r7) goto L_0x003d\n return r3\n L_0x003d:\n return r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: androidx.recyclerview.widget.GridLayoutManager.C0781c.mo4308c(int, int):int\");\n }", "public void skystonePos6() {\n }", "public static int i()\r\n/* 25: */ {\r\n/* 26: 48 */ return 9;\r\n/* 27: */ }", "public void mo21879u() {\n }", "java.lang.String getS8();", "static void feladat6() {\n\t}", "@Override\n protected long advanceH(final long k) {\n return 5 * k - 2;\n }", "void mo7445h(int i, int i2);", "private final void step6()\n\t { j = k;\n\t if (b[k] == 'e')\n\t { int a = m();\n\t if (a > 1 || a == 1 && !cvc(k-1)) k--;\n\t }\n\t if (b[k] == 'l' && doublec(k) && m() > 1) k--;\n\t }", "@Test\n\tpublic void testHw1_1000000LOC26method8_7()\n\t\tthrows Exception {\n\t\tString var0 = \"\";\n\t\tint var1 = 1;\n\t\tint var2 = 1;\n\n\t\tString result = hw1_1000000LOC26.hw1_1000000LOC26method8(var0, var1, var2);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: hw1_1000000LOC26\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:744)\n\t\tassertNotNull(result);\n\t}", "public void mo97908d() {\n }", "public void mo9241ay() {\n }", "public static void main(String[] args)throws IOException {\n System.out.print(\"Please enter 8 integer : \");\n BufferedReader br = \n \t\t new BufferedReader(new InputStreamReader(System.in));\n String num1 = br.readLine();\n String num2 = br.readLine();\n String num3 = br.readLine();\n String num4 = br.readLine();\n String num5 = br.readLine();\n String num6 = br.readLine();\n String num7 = br.readLine();\n String num8 = br.readLine();\n int number1 = Integer.parseInt(num1);\n int number2 = Integer.parseInt(num2);\n int number3 = Integer.parseInt(num3);\n int number4 = Integer.parseInt(num4);\n int number5 = Integer.parseInt(num5);\n int number6 = Integer.parseInt(num6);\n int number7 = Integer.parseInt(num7);\n int number8 = Integer.parseInt(num8);\n System.out.printf(\"%30d\", number1, number2, number3, number4);\n System.out.printf(\"%30d\",number5, number6, number7, number8);\n \n \n\t}", "private int h8 (int[] p, int sd) {\n\t\tint h = sd & 0xFF;\n\t\tfor (int k = 0; k < p.length; k++) {\n\t\t\th = P[h + p[k] & 0xFF];\n\t\t}\n\t\treturn h;\n\t}", "public static String solve8Puzzle(State s0)\n\t{\n\t\n\t\t// 1) Return null if the puzzle is not solvable. \n\t\tif(s0.solvable() != true){\n\t\t\treturn null;\n\t\t}\n\n\t\t// 2) Otherwise, solve the puzzle with two heuristics. The two solutions may be different\n\t\t// but must have the same length for optimality. \n\t\t\n\t\tHeuristic h[] = {Heuristic.TileMismatch, Heuristic.ManhattanDist }; \n\t\tString [] moves = new String[2]; \n\t\t\n\t\tfor (int i = 0; i < 2; i++)\n\t\t{\n\t\t\tmoves[i] = AStar(s0, h[i]); \n\t\t}\n\t\t\n\t\t// 3) Combine the two solution strings into one that would print out in the \n\t\t// output format specified in Section 5 of the project description.\n\t\t\n\t\treturn null; \n\t}", "@Override\n\tpublic void implementionSeven(String[] args) throws Exception {\n\n\t}", "public void Series() {\n\t\tint n=8,i=1,k=2,count=0;\n\t\tSystem.out.print(n+\" \");\n\t\twhile (count<5) {\n\t\t\tn=n*i;//12\n\t\t\tn=n-k;//9\n\t\t\tSystem.out.print(n+\" \");//9\n\t\t\ti++;\n\t\t\tk++;\n\t\t\tcount++;\n\t\t}\n\t\t/*System.out.println(n);//8\n\t\tn=n*1;//8\n\t\tn=n-2;//6\n\t\t\n\t\tSystem.out.println(n);//6\n\t\tn=n*2;//12\n\t\tn=n-3;//9\n\t\tSystem.out.println(n);//9\n\t\tn=n*3;//27\n\t\tn=n-4;//23\n\t\tSystem.out.println(n);\n\t\tn=n*4;//12\n\t\tn=n-5;*/\n\t\t\n\t\t/*System.out.println(n);\n\t\tn=n*5;//12\n\t\tn=n-6;\n\t\tSystem.out.println(n);*/\n\t\t\n\t}", "@Test public void testPublic8() {\n Graph<Integer> graph= TestGraphs.testGraph4();\n String[] results= {\"1 4\", \"2 4\", \"3 4\", \"0 4\", \"\"};\n Integer i;\n\n for (i= 0; i <= 4; i++)\n assertEquals(results[i],\n TestGraphs.collToString(graph.getNeighbors(i)));\n }", "@Override\n\tpublic void challenge10() {\n\n\t}", "public static void main(String[] args) {\n\t\tSystem.out.println(Arrays.toString(solution(8, 1)));\r\n\t}", "public void mo21792Q() {\n }", "public final synchronized void zzdw(int r7) {\n /*\n r6 = this;\n monitor-enter(r6)\n if (r7 > 0) goto L_0x0005\n monitor-exit(r6)\n return\n L_0x0005:\n java.util.concurrent.TimeUnit r0 = java.util.concurrent.TimeUnit.SECONDS // Catch:{ all -> 0x0043 }\n long r1 = (long) r7 // Catch:{ all -> 0x0043 }\n long r0 = r0.toMillis(r1) // Catch:{ all -> 0x0043 }\n boolean r7 = r6.zzfol // Catch:{ all -> 0x0043 }\n if (r7 == 0) goto L_0x0025\n long r2 = r6.zzfpc // Catch:{ all -> 0x0043 }\n r4 = 0\n int r7 = (r2 > r4 ? 1 : (r2 == r4 ? 0 : -1))\n if (r7 <= 0) goto L_0x001f\n long r2 = r6.zzfpc // Catch:{ all -> 0x0043 }\n int r7 = (r0 > r2 ? 1 : (r0 == r2 ? 0 : -1))\n if (r7 >= 0) goto L_0x001f\n goto L_0x0021\n L_0x001f:\n long r0 = r6.zzfpc // Catch:{ all -> 0x0043 }\n L_0x0021:\n r6.zzfpc = r0 // Catch:{ all -> 0x0043 }\n monitor-exit(r6)\n return\n L_0x0025:\n com.google.android.gms.common.util.Clock r7 = r6.zzbqa // Catch:{ all -> 0x0043 }\n long r2 = r7.elapsedRealtime() // Catch:{ all -> 0x0043 }\n long r4 = r6.zzfpb // Catch:{ all -> 0x0043 }\n int r7 = (r2 > r4 ? 1 : (r2 == r4 ? 0 : -1))\n if (r7 > 0) goto L_0x003e\n long r2 = r6.zzfpb // Catch:{ all -> 0x0043 }\n com.google.android.gms.common.util.Clock r7 = r6.zzbqa // Catch:{ all -> 0x0043 }\n long r4 = r7.elapsedRealtime() // Catch:{ all -> 0x0043 }\n long r2 = r2 - r4\n int r7 = (r2 > r0 ? 1 : (r2 == r0 ? 0 : -1))\n if (r7 <= 0) goto L_0x0041\n L_0x003e:\n r6.zzfe(r0) // Catch:{ all -> 0x0043 }\n L_0x0041:\n monitor-exit(r6)\n return\n L_0x0043:\n r7 = move-exception\n monitor-exit(r6)\n throw r7\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.ads.zzbwk.zzdw(int):void\");\n }", "void m8367a();", "public void mo9769i(int r9) {\n /*\n r8 = this;\n int r0 = r8.f9080g\n int r1 = r8.f9082i\n int r0 = r0 - r1\n if (r9 > r0) goto L_0x000e\n if (r9 < 0) goto L_0x000e\n int r1 = r1 + r9\n r8.f9082i = r1\n goto L_0x0097\n L_0x000e:\n if (r9 < 0) goto L_0x00a2\n int r0 = r8.f9084k\n int r1 = r8.f9082i\n int r2 = r0 + r1\n int r3 = r2 + r9\n int r4 = r8.f9085l\n if (r3 > r4) goto L_0x0098\n q.b.c.a.j0.a.k$c$a r0 = r8.f9086m\n r3 = 0\n if (r0 != 0) goto L_0x007d\n r8.f9084k = r2\n int r0 = r8.f9080g\n int r0 = r0 - r1\n r8.f9080g = r3\n r8.f9082i = r3\n r3 = r0\n L_0x002b:\n if (r3 >= r9) goto L_0x0075\n int r0 = r9 - r3\n java.io.InputStream r1 = r8.f9078e // Catch:{ all -> 0x006b }\n long r4 = (long) r0 // Catch:{ all -> 0x006b }\n long r0 = r1.skip(r4) // Catch:{ all -> 0x006b }\n r6 = 0\n int r2 = (r0 > r6 ? 1 : (r0 == r6 ? 0 : -1))\n if (r2 < 0) goto L_0x0046\n int r4 = (r0 > r4 ? 1 : (r0 == r4 ? 0 : -1))\n if (r4 > 0) goto L_0x0046\n if (r2 != 0) goto L_0x0043\n goto L_0x0075\n L_0x0043:\n int r0 = (int) r0 // Catch:{ all -> 0x006b }\n int r3 = r3 + r0\n goto L_0x002b\n L_0x0046:\n java.lang.IllegalStateException r9 = new java.lang.IllegalStateException // Catch:{ all -> 0x006b }\n java.lang.StringBuilder r2 = new java.lang.StringBuilder // Catch:{ all -> 0x006b }\n r2.<init>() // Catch:{ all -> 0x006b }\n java.io.InputStream r4 = r8.f9078e // Catch:{ all -> 0x006b }\n java.lang.Class r4 = r4.getClass() // Catch:{ all -> 0x006b }\n r2.append(r4) // Catch:{ all -> 0x006b }\n java.lang.String r4 = \"#skip returned invalid result: \"\n r2.append(r4) // Catch:{ all -> 0x006b }\n r2.append(r0) // Catch:{ all -> 0x006b }\n java.lang.String r0 = \"\\nThe InputStream implementation is buggy.\"\n r2.append(r0) // Catch:{ all -> 0x006b }\n java.lang.String r0 = r2.toString() // Catch:{ all -> 0x006b }\n r9.<init>(r0) // Catch:{ all -> 0x006b }\n throw r9 // Catch:{ all -> 0x006b }\n L_0x006b:\n r9 = move-exception\n int r0 = r8.f9084k\n int r0 = r0 + r3\n r8.f9084k = r0\n r8.mo9764A()\n throw r9\n L_0x0075:\n int r0 = r8.f9084k\n int r0 = r0 + r3\n r8.f9084k = r0\n r8.mo9764A()\n L_0x007d:\n if (r3 >= r9) goto L_0x0097\n int r0 = r8.f9080g\n int r1 = r8.f9082i\n int r1 = r0 - r1\n r8.f9082i = r0\n r0 = 1\n L_0x0088:\n r8.mo9768h(r0)\n int r2 = r9 - r1\n int r3 = r8.f9080g\n if (r2 <= r3) goto L_0x0095\n int r1 = r1 + r3\n r8.f9082i = r3\n goto L_0x0088\n L_0x0095:\n r8.f9082i = r2\n L_0x0097:\n return\n L_0x0098:\n int r4 = r4 - r0\n int r4 = r4 - r1\n r8.mo9769i(r4)\n q.b.c.a.j0.a.c0 r9 = p213q.p217b.p301c.p302a.p311j0.p312a.C3606c0.m8181h()\n throw r9\n L_0x00a2:\n q.b.c.a.j0.a.c0 r9 = p213q.p217b.p301c.p302a.p311j0.p312a.C3606c0.m8179f()\n throw r9\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p213q.p217b.p301c.p302a.p311j0.p312a.C3656k.C3659c.mo9769i(int):void\");\n }", "public void mo21878t() {\n }", "@Override\n\tpublic void challenge17() {\n\n\t}", "void mo21076g();", "public void method_2486(ahl var1, int var2, int var3, int var4) {\r\n String[] var10000 = class_752.method_4253();\r\n int var6 = var1.method_33(var2, var3, var4);\r\n String[] var5 = var10000;\r\n if(method_2687(var6)) {\r\n label47: {\r\n label46: {\r\n label45: {\r\n label44: {\r\n label43: {\r\n label42: {\r\n float var7 = 0.25F;\r\n if(var5 != null) {\r\n switch(method_2686(var6)) {\r\n case 0:\r\n this.method_2443(0.0F, 0.25F, 0.0F, 1.0F, 1.0F, 1.0F);\r\n break;\r\n case 1:\r\n break label42;\r\n case 2:\r\n break label43;\r\n case 3:\r\n break label44;\r\n case 4:\r\n break label45;\r\n case 5:\r\n break label46;\r\n default:\r\n break label47;\r\n }\r\n }\r\n\r\n if(var5 != null) {\r\n break label47;\r\n }\r\n }\r\n\r\n this.method_2443(0.0F, 0.0F, 0.0F, 1.0F, 0.75F, 1.0F);\r\n if(var5 != null) {\r\n break label47;\r\n }\r\n }\r\n\r\n this.method_2443(0.0F, 0.0F, 0.25F, 1.0F, 1.0F, 1.0F);\r\n if(var5 != null) {\r\n break label47;\r\n }\r\n }\r\n\r\n this.method_2443(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 0.75F);\r\n if(var5 != null) {\r\n break label47;\r\n }\r\n }\r\n\r\n this.method_2443(0.25F, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F);\r\n if(var5 != null) {\r\n break label47;\r\n }\r\n }\r\n\r\n this.method_2443(0.0F, 0.0F, 0.0F, 0.75F, 1.0F, 1.0F);\r\n }\r\n\r\n if(var5 != null) {\r\n return;\r\n }\r\n }\r\n\r\n this.method_2443(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F);\r\n }", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "public void mo21786K() {\n }", "void mo7308d(int i, int i2);", "public static void pattern7(int n) {\r\n\r\n\t\tfor (int i = 1; i <= 7; i++) {\r\n\t\t\tfor (int j = 1; j <= i; j++) {\r\n\t\t\t\tSystem.out.print(j + \" \");\r\n\t\t\t}\r\n\t\t\tint temp = i;\r\n\t\t\tif (temp > 1 && temp<=7) {\r\n\t\t\t\tfor (int k = i - 1; k > 0; k--) {\r\n\t\t\t\t\tSystem.out.print(k + \" \");\r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t}", "public void mo21782G() {\n }", "@Test\n\tpublic void testSubtraction() {\n\t assertEquals(\"16 - 7 must be 9\", 9, this.tester.subTwoNumbers(16, 7));\n\t }", "public void mo21787L() {\n }", "public int mo80c() {\n return 7;\n }", "@Override\n\tpublic void challenge11() {\n\n\t}", "public void mo21789N() {\n }", "public void mo2471e() {\n }", "private static android.graphics.Bitmap a(android.graphics.Bitmap r6, int r7, int r8) {\n /*\n r5 = 1;\n r4 = 0;\n r1 = com.whatsapp.wallpaper.ImageViewTouchBase.e;\n if (r6 != 0) goto L_0x0008;\n L_0x0006:\n r6 = 0;\n L_0x0007:\n return r6;\n L_0x0008:\n r0 = r6.getWidth();\n r0 = (float) r0;\n r2 = (float) r7;\n r0 = r0 / r2;\n r2 = r6.getHeight();\n r2 = (float) r2;\n r3 = (float) r8;\n r2 = r2 / r3;\n r0 = (r0 > r2 ? 1 : (r0 == r2 ? 0 : -1));\n if (r0 <= 0) goto L_0x0040;\n L_0x001a:\n r0 = r6.getWidth();\n r0 = (float) r0;\n r0 = r0 / r2;\n r0 = (int) r0;\n if (r0 <= 0) goto L_0x003d;\n L_0x0023:\n if (r8 <= 0) goto L_0x003d;\n L_0x0025:\n if (r7 <= 0) goto L_0x003d;\n L_0x0027:\n r2 = android.graphics.Bitmap.createScaledBitmap(r6, r0, r8, r5);\n r0 = r2.getWidth();\n r0 = r0 - r7;\n r0 = r0 / 2;\n r0 = android.graphics.Bitmap.createBitmap(r2, r0, r4, r7, r8);\n if (r0 == r2) goto L_0x003b;\n L_0x0038:\n r2.recycle();\t Catch:{ RuntimeException -> 0x006c }\n L_0x003b:\n if (r1 == 0) goto L_0x003e;\n L_0x003d:\n r0 = r6;\n L_0x003e:\n if (r1 == 0) goto L_0x006a;\n L_0x0040:\n r0 = r6.getHeight();\n r0 = (float) r0;\n r2 = (float) r7;\n r0 = r0 * r2;\n r2 = r6.getWidth();\n r2 = (float) r2;\n r0 = r0 / r2;\n r0 = (int) r0;\n if (r0 <= 0) goto L_0x0007;\n L_0x0050:\n if (r8 <= 0) goto L_0x0007;\n L_0x0052:\n if (r7 <= 0) goto L_0x0007;\n L_0x0054:\n r2 = android.graphics.Bitmap.createScaledBitmap(r6, r7, r0, r5);\n r0 = r2.getHeight();\n r0 = r0 - r8;\n r0 = r0 / 2;\n r0 = android.graphics.Bitmap.createBitmap(r2, r4, r0, r7, r8);\n if (r0 == r2) goto L_0x0068;\n L_0x0065:\n r2.recycle();\t Catch:{ RuntimeException -> 0x006e }\n L_0x0068:\n if (r1 != 0) goto L_0x0007;\n L_0x006a:\n r6 = r0;\n goto L_0x0007;\n L_0x006c:\n r0 = move-exception;\n throw r0;\n L_0x006e:\n r0 = move-exception;\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.whatsapp.wallpaper.p.a(android.graphics.Bitmap, int, int):android.graphics.Bitmap\");\n }", "public static void main(String[] args) {\r\n\t\t\r\n\t\tfor(int i = 1;i<= 7; i++)\r\n\t\t{\r\n\t\t\tfor(int j = 1;j<= i;j++)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.print(j+\" \");\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t\tfor(int i = 6; i>=1; i--)\r\n\t\t{\r\n\t\t\tfor(int j = 1;j<=i; j++)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.print(j+\" \");\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "public void method_4270() {}", "static void feladat10() {\n\t}", "public static void tenthProgram() {\n\t\tfor(int i=1;i<=4;i++) {\n\t\t\tfor(int j=1;j<=i-1;j++) {\n\t\t\t\tSystem.out.print(\" \");\t\t\t\n\t\t\t}for(int k=1;k<=4;k++) {\n\t\t\t\tSystem.out.print(\"*\");\t\t\n\t\t\t}System.out.println();\n\t\t}\n\t}", "java.lang.String getS9();", "public static void pattern8(int input){\n\t\tfor(int i=0;i<input;i++){\n\t\t\tfor(int j=0;j<=i;j++){\n\t\t\t\tSystem.out.print(findCobination(i,j)+\" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public void mo6081a() {\n }", "public static int Main()\n\t{\n\tint[] b = new int[12];\n\tint w;\n\tint i;\n\tint[] a = {13, 44, 72, 103, 133, 164, 194, 225, 256, 286, 317, 347};\n\tString tempVar = ConsoleInput.scanfRead();\n\tif (tempVar != null)\n\t{\n\t\tw = Integer.parseInt(tempVar);\n\t}\n\tfor (i = 0;i < 12;i++)\n\t{\n\t\tb[i] = a[i] % 7 - 1;\n\t\tb[i] = (b[i] + w) % 7;\n\t}\n\tfor (i = 0;i < 12;i++)\n\t{\n\t\tif (b[i] == 5)\n\t\t{\n\t\t\tSystem.out.printf(\"%d\\n\",i + 1);\n\t\t}\n\t}\n\treturn 0;\n\t}", "public void mo8738a() {\n }", "@Override\n\tpublic void challenge14() {\n\n\t}", "private void method_2684(ahb var1, int var2, int var3, int var4) {\r\n String[] var10000 = class_752.method_4253();\r\n int var6 = var1.method_33(var2, var3, var4);\r\n int var7 = method_2686(var6);\r\n String[] var5 = var10000;\r\n int var9 = var7;\r\n if(var5 != null) {\r\n if(var7 == 7) {\r\n return;\r\n }\r\n\r\n var9 = this.method_2685(var1, var2, var3, var4, var7);\r\n }\r\n\r\n int var8 = var9;\r\n var9 = var8;\r\n if(var5 != null) {\r\n label45: {\r\n if(var8 != 0) {\r\n var9 = method_2687(var6);\r\n if(var5 == null) {\r\n break label45;\r\n }\r\n\r\n if(var9 == 0) {\r\n ahb var10 = var1;\r\n int var10001 = var2;\r\n int var10002 = var3;\r\n int var10003 = var4;\r\n if(var5 != null) {\r\n if(!method_2690(var1, var2, var3, var4, var7)) {\r\n return;\r\n }\r\n\r\n var10 = var1;\r\n var10001 = var2;\r\n var10002 = var3;\r\n var10003 = var4;\r\n }\r\n\r\n var10.method_2193(var10001, var10002, var10003, this, 0, var7);\r\n if(var5 != null) {\r\n return;\r\n }\r\n }\r\n }\r\n\r\n var9 = var8;\r\n }\r\n }\r\n\r\n if(var5 != null) {\r\n if(var9 != 0) {\r\n return;\r\n }\r\n\r\n var9 = method_2687(var6);\r\n }\r\n\r\n if(var5 != null) {\r\n if(var9 == 0) {\r\n return;\r\n }\r\n\r\n var1.method_2055(var2, var3, var4, var7, 2);\r\n }\r\n\r\n var1.method_2193(var2, var3, var4, this, 1, var7);\r\n }", "public String tri4(int h){\n\t\tString S = \"\";\n\t\tint H = h;\n\t\tint HH = H;\n\t\tint Counter = 0;\n\t\tint UsingCounter = Counter;\n\n\t\twhile (H > 0){\n\t\t\tHH = H;\n\t\t\twhile (UsingCounter > 0){\n\t\t\t\tS = S + \" \";\n\t\t\t\tUsingCounter = UsingCounter - 1;}\n\t\t\twhile (HH > 0) {\n\t\t\t\tS = S + \"*\";\n\t\t\t\tHH = HH - 1;}\n\t\t\tCounter = Counter + 1;\n\t\t\tUsingCounter = Counter;\n\t\t\tS = S + \"\\n\";\n\t\t\tH = H - 1;}\n\n\t\treturn S; }", "public static void main(String[] args) {\n way8();\n }", "public static void main (String [] args) {\n\t\n\t//num4/=10;\n\t//System.out.println(num4);\n//\t\n\t//num4%=2; num4=4%2;\n\t//System.out.println(num4);\n\t\n\t\n\tint num=100;\n\tnum-=67;\n\tint cakePiece1=11;\n\tcakePiece1/=4;\n\tint cakePiece=25;\n\tcakePiece%=7;\n\t\t\tSystem.out.println(num);\n\t\t\tSystem.out.println(cakePiece1);\n\t\t\tSystem.out.println(cakePiece);\n\t\n\t\n\t\n\t\n\t\n\t}", "void mo57277b();", "void mo7444g(int i, int i2);", "@Test\n\t\tpublic void applyRecusivelyHyp() {\n\t\t\tassertSuccess(\" ;H; ;S; s⊆ℤ ;; r∈s ↔ s |- ⊥\",\n\t\t\t\t\trm(\"\", ri(\"\", ri(\"\", rm(\"2.1\", empty)))));\n\t\t}" ]
[ "0.6112501", "0.5765348", "0.5754567", "0.5618992", "0.558371", "0.5521559", "0.5421944", "0.54056245", "0.53499883", "0.5333221", "0.5322564", "0.53118336", "0.5273209", "0.5266734", "0.5266708", "0.5263158", "0.52528614", "0.52270573", "0.52151495", "0.52148783", "0.5200791", "0.51947314", "0.51760185", "0.51760167", "0.51759773", "0.51495826", "0.51458097", "0.5132574", "0.512799", "0.5124778", "0.5100735", "0.5096757", "0.5093093", "0.50884265", "0.5081537", "0.5081175", "0.5078062", "0.5076378", "0.5073627", "0.5068044", "0.506737", "0.5062015", "0.50615734", "0.50570047", "0.504807", "0.50480443", "0.50479054", "0.50467676", "0.5040589", "0.5033285", "0.5023498", "0.50211143", "0.50208414", "0.5019599", "0.5013155", "0.50119877", "0.5010286", "0.4997354", "0.49856156", "0.4980205", "0.49787363", "0.49776348", "0.49764335", "0.49759582", "0.4972717", "0.49720854", "0.49714866", "0.496598", "0.4965546", "0.49648386", "0.49609828", "0.49557808", "0.49505562", "0.4947067", "0.4944734", "0.4944506", "0.49368837", "0.49314198", "0.49275067", "0.4926905", "0.492482", "0.492183", "0.491466", "0.4911233", "0.4907202", "0.4905295", "0.49027374", "0.49027053", "0.490147", "0.490129", "0.48961547", "0.48960033", "0.48908943", "0.48844856", "0.48795483", "0.48778278", "0.4873484", "0.48717445", "0.48668438", "0.48650616", "0.48605356" ]
0.0
-1
/ 13: / 14:
public OreStack(String mat) /* 15: */ { /* 16:13 */ this.material = mat; /* 17:14 */ this.quantity = 1; /* 18: */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected String mo3406c() {\n return \"Minute\";\n }", "void mo1506m();", "private static String timeLine()\n {\n return String.format(STR_FORMAT_1 + STR_FORMAT_2, TIME_STR, TIME);\n }", "public static void main(String[] args) {\n\n String time =\"16:49:40\".substring(0,2);\n System.out.println(time);\n\n }", "public String getName() {\n/* 50 */ return \"M\";\n/* */ }", "public int mo36g() {\n return 4;\n }", "public View mo15792hr() {\n return this.f3879JJ;\n }", "public void mo21783H() {\n }", "void mo1507n();", "@Test public void Time_len_6()\t\t\t\t\t\t\t\t\t{tst_time_(\"041526\"\t\t\t\t\t, \"04:15:26.000\");}", "public String mo9504h() {\n return this.f1518g;\n }", "public int mo36g() {\n return 8;\n }", "public void mo2470d() {\n }", "public static String m13823m() {\n return f12476h;\n }", "private String multipleStartTimes() {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tif (startTimes.size() > 1) {\n\t\t\tsb.append(\"Flera starttider? \");\n\t\t\tfor (int i = 1; i < startTimes.size(); i++) {\n\t\t\t\tsb.append(startTimes.get(i) + \" \");\n\t\t\t}\n\t\t\tsb.append(\"; \");\n\t\t}\n\t\treturn sb.toString();\n\t}", "public static String getHHMM()\r\n/* 74: */ {\r\n/* 75: 94 */ String nowTime = \"\";\r\n/* 76: 95 */ Date now = new Date();\r\n/* 77: 96 */ SimpleDateFormat formatter = new SimpleDateFormat(\"HH:mm\");\r\n/* 78: 97 */ nowTime = formatter.format(now);\r\n/* 79: 98 */ return nowTime;\r\n/* 80: */ }", "public String tiempoRestanteHMS(Integer segundos) {\n\t\tint hor = segundos / 3600;\n\t\tint min = (segundos - (3600 * hor)) / 60;\n\t\tint seg = segundos - ((hor * 3600) + (min * 60));\n\t\treturn String.format(\"%02d\", hor) + \" : \" + String.format(\"%02d\", min)\n\t\t\t\t+ \" : \" + String.format(\"%02d\", seg);\n\t}", "static void viteza(int d, int h, int m, int s) {\n double secunde = s+60*m+3600*h;\n double minute = secunde/60;\n double ore = minute/60;\n\n double vitezaMPS = d/secunde;\n double vitezaKPH = d/1000.0/ore;\n double vitezaMPH = d/1609.0/ore;\n\n System.out.println(\"metri/secunda: \" + vitezaMPS);\n System.out.println(\"kilometri/ora: \" + vitezaKPH);\n System.out.println(\"mile/ora: \" + vitezaMPH);\n }", "public void mo21788M() {\n }", "public void formatoTiempo() {\n String segundos, minutos, hora;\n\n hora = hrs < 10 ? String.valueOf(\"0\" + hrs) : String.valueOf(hrs);\n\n minutos = min < 10 ? String.valueOf(\"0\" + min) : String.valueOf(min);\n\n jLabel3.setText(hora + \" : \" + minutos + \" \" + tarde);\n }", "private String TimeConversion() {\n\n int hours, minutes, seconds, dayOfWeek, date, month, year;\n\n seconds = ((raw[27] & 0xF0) >> 4) + ((raw[28] & 0x03) << 4);\n minutes = ((raw[28] & 0xFC) >> 2);\n hours = (raw[29] & 0x1F);\n dayOfWeek = ((raw[29] & 0xE0) >> 5);\n date = (raw[30]) & 0x1F;\n month = ((raw[30] & 0xE0) >> 5) + ((raw[31] & 0x01) << 3);\n year = (((raw[31] & 0xFE) >> 1) & 255) + 2000;\n\n\n\n return hR(month) + \"/\" + hR(date) + \"/\" + year + \" \" + hR(hours) + \":\" + hR(minutes) + \":\" + hR(seconds) + \":00\";\n }", "private void normalGmtStringToMinutes() {\n int i = Integer.parseInt(gmtString.substring(4, 6));\n offsetMinutes = i * 60;\n i = Integer.parseInt(gmtString.substring(7));\n offsetMinutes += i;\n if (gmtString.charAt(3) == MINUS) {\n offsetMinutes *= -1;\n }\n }", "public void mo21877s() {\n }", "int main()\n{\n cin>>a.h>>a.m>>a.s>>b.h>>b.m>>b.s;\n int x=a.s-b.s;\n int y=a.m-b.m;\n int z=a.h-b.h;\n if(y<0){\n y+=60;\n z--;\n }\n if(x<0){\n x+=60;\n y--;\n }\n cout<<z<<\":\"<<y<<\":\"<<x;\n}", "public void mo21794S() {\n }", "public void mo1405e() {\n }", "public String getADD_STRING13_MAND() {\r\n return ADD_STRING13_MAND;\r\n }", "public String getADD_STRING13_MAND() {\r\n return ADD_STRING13_MAND;\r\n }", "public final String mo1686e() {\n return this.f1356h;\n }", "public int mo36g() {\n return 2;\n }", "public void mo3749d() {\n }", "@RequiresApi(api = Build.VERSION_CODES.O)\n private String obtenerSegundos(){\n try{\n this.minutos = java.time.LocalDateTime.now().toString().substring(17,19);\n }catch (StringIndexOutOfBoundsException sioobe){\n this.segundos = \"00\";\n }\n return this.minutos;\n }", "@Override\n public String toString() {\n return \"H\";\n }", "int getTonicNote(){\n String lastnote=\"\";\n int result;\n lastnote += Strinput.toCharArray()[Strinput.length()-4];\n lastnote += Strinput.toCharArray()[Strinput.length()-3];\n result = Integer.parseInt(lastnote);\n if(result<72){\n return result-60;\n }else{\n return result-12-60;\n }\n }", "public String m3147h() {\n return this.f2416j;\n }", "private static int getNodeTime(String node) {\n int offSet = 4;\n return (int) node.toCharArray()[0] - offSet;\n }", "public static String timeInWords(final int h, final int m) {\n\n\t\tif(m == 0) {\n\t\t\treturn getFromNumber(h).getWord() + \" \" + minuteInWord(m);\n\t\t} else if (m > 30) {\n\t\t\treturn minuteInWord(60 - m) + \" to \" + getFromNumber(h + 1).getWord();\n\t\t} else {\n\t\t\treturn minuteInWord(m) + \" past \" + getFromNumber(h).getWord();\n\t\t}\n\n }", "public void mo21878t() {\n }", "public static void main(String[] args) {\n\t\tSystem.out.println( getDurationString(61, 61));\r\n\t\t System.out.println(getDurationString(60, 59));\r\n\t\t System.out.println(getDurationString(-610, 9));\r\n\t\t System.out.println( getDurationString(1, 6));\r\n\t\t System.out.println( getDurationString(3722));\r\n\t\t\r\n\t\t\r\n\t}", "public void mo21782G() {\n }", "private void drawTimeLine (Graphics g) {\n g.setColor (parent.parent.parent.rulerColor);\n g.fillRect (0, _yPix - 3 * parent.lineSize, _xPix, 3 * parent.lineSize);\n \n g.setColor (Color.black);\n g.drawLine (0, _yPix - 3 * parent.lineSize, _xPix, _yPix - 3 * parent.lineSize);\n double inchT = parent.getTime (parent.dpi); if (inchT <= 0) return;\n int i = (int)Math.rint (begT / inchT);\n double t = i * inchT;\n while (t < endT) {\n int xcord = i * parent.dpi - parent.getEvtXCord (begT) - \n (int)Math.rint (parent.fm.charWidth ('|') / 2.0);\n \n g.drawString (\"|\", xcord, _yPix - 2 * parent.lineSize - parent.fDescent);\n \n String t1 = (new Float (t)).toString (), t2;\n \n if (t1.indexOf ('E') == -1) {\n\tint index = max;\n\tif (index > t1.length ()) index = t1.length ();\n\tt2 = t1.substring (0, index);\n }\n else {\n\tint exp = t1.indexOf ('E');\n\tString e = t1.substring (exp, t1.length ());\n\t\n\tint si = 5; if (exp < si) si = exp;\n\tString a = t1.substring (0, si);\n\t\n\tt2 = a + e;\n }\n \n g.drawString (t2,\n xcord - (int)Math.rint (parent.fm.stringWidth (t2) / 2.0),\n _yPix - (parent.lineSize + parent.fDescent));\n t = (++i * inchT);\n }\n }", "private static String minuteInWord(final int minute) {\n\t\tif( minute == 0 ) {\n\t\t\treturn \"o' clock\";\n\t\t}else if(minute == 15 || minute == 30) {\n\t\t\treturn getFromNumber(minute).getWord();\n\t\t} else {\n\t\t\treturn getFromNumber(minute).getWord() + (minute > 1 ? \" minutes\" : \" minute\");\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tString s = \"12:45:54PM\";\r\n\t\tString temp=\":\";\r\n\t\tString Result=\"\";\r\n\t\t\r\n\t\tif(s.charAt(8)=='P' || s.charAt(8)=='p')\r\n\t\t {\r\n\t\t\tString s1[] = s.split(\":\");\r\n\t int Hour = Integer.parseInt(s1[0]);\r\n\t String Actual_Hour = \"\";\r\n\t if(Hour == 12)\r\n\t {\r\n\t \tActual_Hour = \"12\";\r\n\t }\r\n\t else\r\n\t {\r\n\t \tint data = 12 + Hour;\r\n\t \tActual_Hour = String.valueOf(data);\r\n\t }\r\n\t \r\n\t \r\n\t Result = Actual_Hour +temp+s1[1]+temp+s1[2].substring(0, 2);\r\n\t\t }\r\n\t\t else\r\n\t\t {\r\n\t\t \tString s1[] = s.split(\":\");\r\n\t\t \tint Hour = Integer.parseInt(s1[0]);\r\n\t\t String Actual_Hour = \"\";\r\n\t\t if(Hour == 12)\r\n\t\t {\r\n\t\t \tActual_Hour = \"00\";\r\n\t\t \tResult = Actual_Hour +temp+s1[1]+temp+s1[2].substring(0, 2); \r\n\t\t }\r\n\t\t else {\r\n\t\t \tString s2[] = s.split(\"AM\");\r\n\t\t\t for(int i=0; i<s2.length; i++)\r\n\t\t\t {\r\n\t\t\t \tResult = s2[i];\r\n\t\t\t }\t\r\n\t\t }\r\n\t\t \t\r\n\t\t }\r\n\t\t\r\n\t\t\t\tSystem.out.println(Result);\r\n}", "public String TI()\n\t{\n\t\tDateTimeFormatter f = DateTimeFormatter.ofPattern(\"hh:mm a\");\n\t\tString ti = f.format(st);\n\t\tString ti2 = f.format(et);\n\t\treturn ti + \" - \" + ti2;\n \t}", "protected String mo1606d() {\n return null;\n }", "void mo17013d();", "public String dimeTuTiempo()\n {\n String cadResultado=\"\";\n if (horas<10)\n {\n cadResultado=cadResultado+\"0\";\n }\n cadResultado=cadResultado+horas;\n cadResultado=cadResultado+\":\";\n if(minutos<10)\n {\n cadResultado=cadResultado+\"0\";\n }\n cadResultado=cadResultado+minutos;\n \n return cadResultado;\n }", "void mo1501h();", "void milestone4(int inputSeconds){\n int days = inputSeconds / 86400;\n int seconds = inputSeconds % 86400;\n int hours = seconds / 3600;\n seconds = seconds % 3600;\n int minutes = seconds / 60;\n seconds = seconds % 60;\n\n System.out.println(\"Day/s: \" + days);\n System.out.println(\"Hour/s: \" + hours);\n System.out.println(\"Minute/s: \" + minutes);\n System.out.println(\"Second/s: \" + seconds);\n }", "public String tri4(int h){\n\t\tString S = \"\";\n\t\tint H = h;\n\t\tint HH = H;\n\t\tint Counter = 0;\n\t\tint UsingCounter = Counter;\n\n\t\twhile (H > 0){\n\t\t\tHH = H;\n\t\t\twhile (UsingCounter > 0){\n\t\t\t\tS = S + \" \";\n\t\t\t\tUsingCounter = UsingCounter - 1;}\n\t\t\twhile (HH > 0) {\n\t\t\t\tS = S + \"*\";\n\t\t\t\tHH = HH - 1;}\n\t\t\tCounter = Counter + 1;\n\t\t\tUsingCounter = Counter;\n\t\t\tS = S + \"\\n\";\n\t\t\tH = H - 1;}\n\n\t\treturn S; }", "public void mo5994p() {\n this.f5411d = this.f5389I.getString(R.string.new_recording) + \" \" + C1398b.m6805a();\n C1413m.f5726x = this.f5411d;\n }", "public static void main(String[] args) {\n System.out.println(getDurationString(65,45));\n\n System.out.println(getDurationString(3945));\n }", "public String mo862g() {\n return this.f2278h;\n }", "private Vector getTimeSeg(Stroke theStroke)\n\t{\n\t\tdouble[] timeData = theStroke.getTimeData();\n\t\tm_timeSeg = new TimeBasedDetection(timeData);\n\t\tVector segPt_time = m_timeSeg.detectSegmentPoints();\n\t\treturn segPt_time;\n\t}", "public void mo1403c() {\n }", "public String getBeginTime() {\n/* 28 */ return this.beginTime;\n/* */ }", "Period mo20733e();", "private static String getTime() {\n\t\tDate getDate = new Date();\n\t\tString timeFormat = \"M/d/yy hh:mma\";\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(timeFormat);\n\t\treturn \"[\" + sdf.format(getDate) + \"]\\t\";\n\t}", "static String timeConversion1(String s) {\n String[] timeSplit = s.split(\":\");\n String hours = timeSplit[0];\n String minutes = timeSplit[1];\n String seconds = timeSplit[2].substring(0, 2);\n String ampm = timeSplit[2].substring(2);\n\n int hour = Integer.parseInt(hours);\n\n int differential = 0;\n if (\"PM\".equals(ampm) && hour != 12) {\n differential = 12;\n }\n\n\n hour += differential;\n hour = hour % 24;\n\n hours = String.format(\"%02d\", hour);\n\n return hours + \":\" + minutes + \":\" + seconds;\n\n }", "private static String formatTime(String time) {\n\t\treturn String.format(\"%s:%s\", time.substring(0, 2), time.substring(2));\n\t}", "public int getDuration()\r\n/* 70: */ {\r\n/* 71: 71 */ return this.duration;\r\n/* 72: */ }", "java.lang.String getField1440();", "private String calculaTempo(Date dtTileLine) {\n\t\treturn \"2 minutos atrás (\"+dtTileLine.toString()+\")\";\n\t}", "public void mo21779D() {\n }", "private static String dickAndJane(int s, int p, int y, int j) {\n\t\tint Y = (12 + j - y - p) / 3;\n\t\tint S = Y + y;\n\t\tint P = Y + p;\n\n\t\tif (S + P + Y - 12 - j == 0)\n\t\t\treturn S + \" \" + P + \" \" + Y;\n\n\t\tif (S + P + Y - 12 - j == -2)\n\t\t\treturn (S + 1) + \" \" + (P + 1) + \" \" + Y;\n\n\t\tif (y > s + p)\n\t\t\tP++;\n\t\telse\n\t\t\tS++;\n\n\t\treturn S + \" \" + P + \" \" + Y;\n\n\t}", "public void mo4359a() {\n }", "public static void main(String[] args) {\n\t\tString n = \"수 10:00~18:30/목,토 09:00~13:00\";\n\t\t\n\t\tSystem.out.println(isTimePatternIn(n));\n\t}", "public String morningMeeting(){\n return \"accountants have meetings beginning at 9:15 AM and run until 8:45 AM\";\n }", "public static void main(String[] args) {\n\n\tint time = 32150;\n\t\n\t\t\tSystem.out.print((time / 3600)+\" 시간 \");\n\t\t\tSystem.out.print((time % 3600 / 60)+\" 분 \");\n\t\t\tSystem.out.println((time % 3600 % 60)+\" 초\");\n\t\t\n\t\t\n\t}", "public void mo2471e() {\n }", "public void mo21795T() {\n }", "String canonHr(String s) {\n List<String> l = StringUtil.breakAt(s, \":\");\n if (l.size() == 2) {\n return l.get(0) + \":\" + l.get(1).toUpperCase();\n }\n return s.toUpperCase();\n }", "public String getADD_STRING14_MAND() {\r\n return ADD_STRING14_MAND;\r\n }", "public String getADD_STRING14_MAND() {\r\n return ADD_STRING14_MAND;\r\n }", "@Override\n\tpublic String getExtraInformation() {\n\t\tDateTimeFormatter fmt = DateTimeFormat.forPattern(\"dd-MM-yyyy HH:mm\");\n\t\treturn \"Deadline: \" + fmt.print(this.getDeadLine());\n\t}", "public int getOperacion()\r\n/* 22: */ {\r\n/* 23:45 */ return this.operacion;\r\n/* 24: */ }", "public String printActivityPatternsSeason()\n\t{\n\t\tStringBuilder toReturn = new StringBuilder();\n\n\t\ttoReturn.append(\"ACTIVITY PATTERNS BY SEASON\\n\");\n\t\ttoReturn.append(\" Activity in one-hour segments by season\\n\");\n\n\t\tint[][] seasons = new int[][]\n\t\t{\n\t\t\t\t{ 11, 0, 1 }, // 1\n\t\t\t\t{ 2, 3, 4 }, // 2\n\t\t\t\t{ 5, 6, 7 }, // 3\n\t\t\t\t{ 8, 9, 10 } }; // 4\n\n\t\tint[] lengthPerSeason = new int[4];\n\t\tint[] monthlyTotals = new int[12];\n\t\tfor (Location location : analysis.getAllImageLocations())\n\t\t{\n\t\t\tList<ImageEntry> withLocation = new ImageQuery().locationOnly(location).query(images);\n\t\t\tLocalDateTime firstDate = analysis.getFirstImageInList(withLocation).getDateTaken();\n\t\t\tLocalDateTime lastDate = analysis.getLastImageInList(withLocation).getDateTaken();\n\t\t\tInteger firstMonth = firstDate.getMonthValue();\n\t\t\tInteger lastMonth = lastDate.getMonthValue();\n\t\t\tInteger firstDay = firstDate.getDayOfMonth();\n\t\t\tInteger lastDay = lastDate.getDayOfMonth();\n\t\t\ttoReturn.append(String.format(\"%-28s\", location.getName()));\n\t\t\tint monthTotal = 0;\n\t\t\tfor (int i = 0; i < 12; i++)\n\t\t\t{\n\t\t\t\tint monthValue = 0;\n\t\t\t\tif (firstMonth == lastMonth && firstMonth == i)\n\t\t\t\t\tmonthValue = lastDay - firstDay + 1;\n\t\t\t\telse if (firstMonth == i)\n\t\t\t\t\tmonthValue = 31 - firstDay + 1;\n\t\t\t\telse if (lastMonth == i)\n\t\t\t\t\tmonthValue = lastDay;\n\t\t\t\telse if (firstMonth < i && lastMonth > i)\n\t\t\t\t\tmonthValue = 31;\n\n\t\t\t\ttoReturn.append(String.format(\" %2d \", monthValue));\n\t\t\t\tmonthTotal = monthTotal + monthValue;\n\t\t\t\tmonthlyTotals[i] = monthlyTotals[i] + monthValue;\n\t\t\t}\n\t\t\ttoReturn.append(monthTotal).append(\"\\n\");\n\t\t}\n\n\t\tfor (int[] season : seasons)\n\t\t\tfor (int month : season)\n\t\t\t\tlengthPerSeason[ArrayUtils.indexOf(seasons, season)] = lengthPerSeason[ArrayUtils.indexOf(seasons, season)] + monthlyTotals[month];\n\n\t\tfor (Species species : analysis.getAllImageSpecies())\n\t\t{\n\t\t\tList<ImageEntry> withSpecies = new ImageQuery().speciesOnly(species).query(analysis.getImagesSortedByDate());\n\n\t\t\ttoReturn.append(species.getName()).append(\"\\n\");\n\t\t\ttoReturn.append(\" Dec-Jan-Feb Mar-Apr-May Jun-Jul-Aug Sep-Oct-Nov\\n\");\n\t\t\ttoReturn.append(\"Camera trap days \");\n\n\t\t\tfor (Integer length : lengthPerSeason)\n\t\t\t\ttoReturn.append(String.format(\"%7d \", length));\n\t\t\ttoReturn.append(\"\\n\");\n\n\t\t\ttoReturn.append(\"Number of pictures \");\n\t\t\tint[] imagesPerSeason = new int[4];\n\t\t\tfor (int i = 0; i < 4; i++)\n\t\t\t{\n\t\t\t\tList<ImageEntry> seasonWithSpecies = new ImageQuery().monthOnly(seasons[i]).query(withSpecies);\n\t\t\t\tInteger activity = analysis.activityForImageList(seasonWithSpecies);\n\t\t\t\ttoReturn.append(String.format(\"%7d \", activity));\n\t\t\t\timagesPerSeason[i] = activity;\n\t\t\t}\n\t\t\ttoReturn.append(\"\\n\");\n\t\t\ttoReturn.append(\"Pictures/Effort \");\n\t\t\tdouble total = 0;\n\t\t\tdouble ratios[] = new double[4];\n\t\t\tfor (int i = 0; i < 4; i++)\n\t\t\t{\n\t\t\t\tdouble currentRatio = 0;\n\t\t\t\tif (lengthPerSeason[i] != 0)\n\t\t\t\t\tcurrentRatio = (double) imagesPerSeason[i] / lengthPerSeason[i];\n\t\t\t\ttoReturn.append(String.format(\"%5.4f \", currentRatio));\n\t\t\t\tratios[i] = currentRatio;\n\t\t\t\ttotal = total + currentRatio;\n\t\t\t}\n\t\t\ttoReturn.append(\"\\n\");\n\t\t\ttoReturn.append(\"Visitation proportion \");\n\t\t\tfor (int i = 0; i < 4; i++)\n\t\t\t{\n\t\t\t\tif (total != 0)\n\t\t\t\t\ttoReturn.append(String.format(\"%5.4f \", ratios[i] / total));\n\t\t\t\telse\n\t\t\t\t\ttoReturn.append(String.format(\"%5.4f \", 0f));\n\t\t\t}\n\n\t\t\ttoReturn.append(\"\\n\");\n\n\t\t\tStringBuilder toAdd = new StringBuilder();\n\n\t\t\ttoAdd.append(\" Hour Number Freq Number Freq Number Freq Number Freq\\n\");\n\n\t\t\tint[] hourlyTotals = new int[4];\n\n\t\t\t// 24 hrs\n\t\t\tfor (int j = 0; j < 24; j++)\n\t\t\t{\n\t\t\t\tList<ImageEntry> withSpeciesAtTime = new ImageQuery().timeFrame(j, j + 1).query(withSpecies);\n\n\t\t\t\ttoAdd.append(String.format(\" %02d:00-%02d:00 \", j, j + 1));\n\n\t\t\t\t// 4 seasons\n\t\t\t\tfor (int i = 0; i < 4; i++)\n\t\t\t\t{\n\t\t\t\t\tList<ImageEntry> withSpeciesAtTimeInSeason = new ImageQuery().monthOnly(seasons[i]).query(withSpeciesAtTime);\n\t\t\t\t\tList<ImageEntry> withSpeciesInSeason = new ImageQuery().monthOnly(seasons[i]).query(withSpecies);\n\t\t\t\t\tInteger numPics = analysis.activityForImageList(withSpeciesAtTimeInSeason);\n\t\t\t\t\tInteger totalPics = analysis.activityForImageList(withSpeciesInSeason);\n\t\t\t\t\tdouble frequency;\n\t\t\t\t\tif (totalPics != 0)\n\t\t\t\t\t\tfrequency = (double) numPics / totalPics;\n\t\t\t\t\telse\n\t\t\t\t\t\tfrequency = 0;\n\n\t\t\t\t\thourlyTotals[i] = hourlyTotals[i] + numPics;\n\n\t\t\t\t\ttoAdd.append(String.format(\"%5d %5.3f \", numPics, frequency));\n\t\t\t\t}\n\n\t\t\t\ttoAdd.append(\"\\n\");\n\t\t\t}\n\n\t\t\ttoAdd.append(\" Hourly pics \");\n\t\t\tfor (int hourlyTotal : hourlyTotals) toAdd.append(String.format(\"%7d \", hourlyTotal));\n\n\t\t\ttoAdd.append(\"\\n\");\n\n\t\t\ttoReturn.append(toAdd).append(\"\\n\");\n\t\t}\n\n\t\treturn toReturn.toString();\n\t}", "public String mo3824n() {\n return this.f1471at;\n }", "public void display_round_start_text() {\n }", "private void raceFormat()\n {\n topLine();\n secondLine();\n thirdLine();\n fourthLine();\n }", "public static double getAttHour(String time1, String time2)\r\n/* 178: */ throws ParseException\r\n/* 179: */ {\r\n/* 180:258 */ double hour = 0.0D;\r\n/* 181:259 */ DateFormat fulDate = new SimpleDateFormat(\"HH:mm\");\r\n/* 182:260 */ long t12 = fulDate.parse(\"12:00\").getTime();\r\n/* 183:261 */ long t13 = fulDate.parse(\"13:00\").getTime();\r\n/* 184:262 */ long t1 = fulDate.parse(time1).getTime();\r\n/* 185:263 */ long PERHOUR = 3600000L;\r\n/* 186:264 */ if (time2 == null)\r\n/* 187: */ {\r\n/* 188:265 */ if (t12 - t1 > 0L) {\r\n/* 189:266 */ hour = (t12 - t1) / PERHOUR;\r\n/* 190: */ }\r\n/* 191: */ }\r\n/* 192: */ else\r\n/* 193: */ {\r\n/* 194:269 */ long t2 = fulDate.parse(time2).getTime();\r\n/* 195:270 */ if ((t1 <= t12) && (t2 >= t12) && (t2 <= t13)) {\r\n/* 196:271 */ hour = (t12 - t1) / PERHOUR;\r\n/* 197:272 */ } else if ((t1 <= t12) && (t2 >= t13)) {\r\n/* 198:273 */ hour = (t2 - t1) / PERHOUR - 1.0D;\r\n/* 199:274 */ } else if ((t1 >= t12) && (t1 <= t13) && (t2 >= t12) && (t2 <= t13)) {\r\n/* 200:275 */ hour = 0.0D;\r\n/* 201:276 */ } else if ((t1 >= t12) && (t1 <= t13) && (t2 >= t13)) {\r\n/* 202:277 */ hour = (t2 - t13) / PERHOUR;\r\n/* 203: */ } else {\r\n/* 204:279 */ hour = (t2 - t1) / PERHOUR;\r\n/* 205: */ }\r\n/* 206: */ }\r\n/* 207:282 */ DecimalFormat df = new DecimalFormat(\"#.0\");\r\n/* 208:283 */ return Double.parseDouble(df.format(hour));\r\n/* 209: */ }", "@Override\r\n public String toString() {\r\n return pontosTimeMandante + \" x \" + pontosTimeVisitante + \" - \" + (isFinalizado() ? \"Finalizado\" : \"Em andamento\");\r\n }", "public static void main(String [] args){//inicio del main\r\n\r\n Scanner sc= new Scanner(System.in); \r\n\r\nSystem.out.println(\"ingrese los segundos \");//mesaje\r\nint num=sc.nextInt();//total de segundos\r\nint hor=num/3600;//total de horas en los segundos\r\nint min=(num-(3600*hor))/60;//total de min en las horas restantes\r\nint seg=num-((hor*3600)+(min*60));//total de segundo sen los miniutos restantes\r\nSystem.out.println(\"Horas: \" + hor + \" Minutos: \" + min + \" Segundos: \" + seg);//salida del tiempo\r\n\r\n}", "abstract String mo1748c();", "private String FormatoHoraDoce(String Hora){\n String HoraFormateada = \"\";\n\n switch (Hora) {\n case \"13\": HoraFormateada = \"1\";\n break;\n case \"14\": HoraFormateada = \"2\";\n break;\n case \"15\": HoraFormateada = \"3\";\n break;\n case \"16\": HoraFormateada = \"4\";\n break;\n case \"17\": HoraFormateada = \"5\";\n break;\n case \"18\": HoraFormateada = \"6\";\n break;\n case \"19\": HoraFormateada = \"7\";\n break;\n case \"20\": HoraFormateada = \"8\";\n break;\n case \"21\": HoraFormateada = \"9\";\n break;\n case \"22\": HoraFormateada = \"10\";\n break;\n case \"23\": HoraFormateada = \"11\";\n break;\n case \"00\": HoraFormateada = \"12\";\n break;\n default:\n int fmat = Integer.parseInt(Hora);\n HoraFormateada = Integer.toString(fmat);\n }\n return HoraFormateada;\n }", "@Override\n\tpublic void get_time_int(ShortHolder heure, ShortHolder min) {\n\t\t\n\t}", "public static void pocetniMeni() {\r\n\t\tSystem.out\r\n\t\t\t\t.println(\"***********************************************\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 1 ako zelite vidjeti kalendar(za dati mjesec i godinu)\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 2 za pregled podsjetnika za dati mjesec i godinu\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 3 da pregledate podsjetnik za datu godinu\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 4 ako zelite da pogledate sve podsjetnike!\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 5 ako zelite da upisete neki podsjetnik!\\n\"\r\n\t\t\t\t\t\t+ \":::::::::::::::::::::::::::::::::::::::::::::::\");\r\n\t}", "public void mo97908d() {\n }", "private static String m11g() {\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"sh\");\n stringBuilder.append(\"el\");\n stringBuilder.append(\"la\");\n stringBuilder.append(\"_ve\");\n stringBuilder.append(\"rs\");\n stringBuilder.append(\"i\");\n stringBuilder.append(\"on\");\n return stringBuilder.toString();\n }", "private byte m1654g() {\n char charAt;\n do {\n int i = this.f2519d;\n if (i >= this.f2518c) {\n return 12;\n }\n CharSequence charSequence = this.f2516a;\n this.f2519d = i + 1;\n charAt = charSequence.charAt(i);\n this.f2520e = charAt;\n } while (charAt != ';');\n return 12;\n }", "public void mo21786K() {\n }", "public String toString() {\n return hour+\" \"+minute;\r\n }", "public String b4OrAfter();", "public void mo23813b() {\n }", "public abstract CharSequence mo2161g();", "public static void main(String[] args) {\n\t\tdouble d = 14/1.6;\r\n\t\tdouble t = (45*60+30)/3600.0;\r\n\t\tdouble s = d/t;\r\n\t\tSystem.out.println(\"the average speed in miles per hour is \"+s);\r\n\t}", "public void mo9233aH() {\n }", "public void mo21789N() {\n }", "public String formatTime() {\n if ((myGameTicks / 16) + 1 != myOldGameTicks) {\n myTimeString = \"\";\n myOldGameTicks = (myGameTicks / 16) + 1;\n int smallPart = myOldGameTicks % 60;\n int bigPart = myOldGameTicks / 60;\n myTimeString += bigPart + \":\";\n if (smallPart / 10 < 1) {\n myTimeString += \"0\";\n }\n myTimeString += smallPart;\n }\n return (myTimeString);\n }", "public int getPontosTimeMandante() {\r\n return pontosTimeMandante;\r\n }", "public void mo12930a() {\n }" ]
[ "0.5861009", "0.560535", "0.55880255", "0.5547447", "0.5442537", "0.54270667", "0.538788", "0.53654134", "0.5361993", "0.53346646", "0.5329271", "0.5307483", "0.5293754", "0.5272947", "0.5271207", "0.5261985", "0.5242313", "0.5226949", "0.5219455", "0.5212481", "0.52042395", "0.5191843", "0.5186796", "0.5170044", "0.51692235", "0.5165167", "0.5158719", "0.5158719", "0.51521015", "0.51441115", "0.51423264", "0.5136366", "0.5131595", "0.5123031", "0.5114075", "0.51102304", "0.5106824", "0.51062435", "0.5101966", "0.5091661", "0.50897187", "0.5087642", "0.5067072", "0.5065571", "0.5063191", "0.5053635", "0.5053615", "0.5048421", "0.5047727", "0.50468254", "0.5042505", "0.50405407", "0.5039165", "0.50376314", "0.5036402", "0.50357586", "0.50343883", "0.5034383", "0.50342387", "0.5020983", "0.5019686", "0.5016782", "0.5015605", "0.5015351", "0.50130063", "0.5009493", "0.5008821", "0.50045747", "0.5004135", "0.49937937", "0.499136", "0.49883825", "0.49771973", "0.49771973", "0.4971281", "0.49667335", "0.49592423", "0.49564517", "0.49548158", "0.49542212", "0.49512845", "0.49507824", "0.4949949", "0.49466735", "0.49447435", "0.494317", "0.49428982", "0.49427807", "0.49385998", "0.4938311", "0.4934648", "0.4933258", "0.49233475", "0.4917311", "0.4916673", "0.49140272", "0.49102494", "0.49096224", "0.49084216", "0.49000245", "0.48999718" ]
0.0
-1
Task failed with an exception
@Override public void onFailure(@NonNull Exception e) { e.printStackTrace(); Toast.makeText(context, "Image process failed", Toast.LENGTH_SHORT).show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void onTaskFail() {\n\t\t\n\t}", "public static void handleInvalidTaskException() {\n System.out.println(\"\\tSorry sir, no such task was found in the list.\");\n Duke.jarvis.printDivider();\n }", "@Override\n public void onResponse(PersistentTasksCustomMetadata.PersistentTask<?> task) {\n onFailure.accept(exception);\n }", "public void onTaskFailure(Task<?> tsk, Exception ex)\n {\n m_RunningTasks.remove(tsk);\n }", "void taskFinished(Throwable t);", "@Override\n public void taskErrorMessage(Object result) {\n\n }", "@Override\n\t\t\t\tpublic void doFail() {\n\t\t\t\t}", "public interface ITaskFailure<E> {\n /**\n * \n * <i>Description:</i> ID that identifies the task that caused the failure\n * \n * @return the id\n */\n Object getTaskId();\n\n /**\n * \n * <i>Description:</i> The task can be used to retry to recover the failure\n * \n * @return the task\n */\n Callable<E> getTask();\n\n /**\n * \n * <i>Description:</i> transfer an <code>error</code> exception to a\n * FailureType so we a Failure Manager can handle the failure properly\n * \n * @param error\n * the exception that cause the failure\n * @return the {@link FailureType}\n */\n FailureType getFailureType(Throwable error);\n\n /**\n * \n * <i>Description:</i> called when the failure is identified as\n * unrecoverable\n * \n */\n void onFatal();\n}", "public DoneUndefinedTaskException() {\n }", "void failed (Exception e);", "private void handleErrorsInTask(String result) {\n Log.e(\"ASYNC_TASK_ERROR\", result);\n }", "private void handleErrorsInTask(String result) {\n Log.e(\"ASYNC_TASK_ERROR\", result);\n }", "public OutOfBoundException() {\n super(\"Task does not exist. Please send a correct task number ><\");\n }", "void retry(Task task);", "private void failWithException(final CronetException exception) {\n postTaskToExecutor(new Runnable() {\n @Override\n public void run() {\n failWithExceptionOnExecutor(exception);\n }\n });\n }", "@Override\n\t\tpublic void asyncFailure(long id, Exception e)\n\t\t\t\tthrows ConnectorException {\n\t\t\t\n\t\t}", "private void createNodeFailure(String path) {\n LOG.warn(\"failed to create task node\" + path);\n setDone(path, FAILURE);\n }", "@Override\n boolean isFailed() {\n return false;\n }", "@Override\n public void testTaskManagerFailure(\n TestEnvironment testEnv,\n ExternalContext<RowData> externalContext,\n ClusterControllable controller)\n throws Exception {\n }", "@Test\n public void testError() {\n FutureRecordMetadata future = new FutureRecordMetadata(asyncRequest(baseOffset, new CorruptRecordException(), 50L),\n relOffset, RecordBatch.NO_TIMESTAMP, 0, 0, Time.SYSTEM);\n assertThrows(ExecutionException.class, future::get);\n }", "@Test\n public void testInvokeEffectorStartFailing_MethodInDynamicTask() {\n Task<Void> task = app.getExecutionContext().submit(Tasks.<Void>builder().dynamic(true).body(new Callable<Void>() {\n @Override public Void call() throws Exception {\n testInvokeEffectorStartFailing_Method();\n return null;\n }\n }).build());\n \n assertTaskSucceeds(task);\n assertTaskHasFailedChild(task);\n }", "private static void testFail() throws Throwable {\n Scheduler userInt = SchedulerTHelper.getSchedulerInterface();\n\n for (int i = 0; i < jobs_fail; i++) {\n String job_path = new File(jobs_path.toURI()).getAbsolutePath() + \"/flow_fail_\" + (i + 1) +\n \".xml\";\n\n Exception exc = null;\n JobId job = null;\n try {\n job = userInt.submit(JobFactory.getFactory().createJob(job_path));\n } catch (Exception e) {\n exc = e;\n }\n Assert\n .assertTrue(\"Job \" + job_path + \" was supposed to be rejected but was created\",\n job == null);\n Assert.assertTrue(exc != null);\n }\n SchedulerTHelper.log(jobs_fail + \" invalid jobs successfully rejected\");\n }", "@Override\n public void onFailure(IMqttToken asyncActionToken, Throwable exception) {\n }", "@Test\n void buildTaskEventWrongCode() {\n String args = \"do CS2103 project (at: FOREVER IT NEVER STOPS)\";\n assertThrows(DukeIoException.class, () -> Storage.buildTask(\"F\", args, true));\n }", "void instanceFailed(String pid, IFailedResult result);", "@Override\n boolean canFail() {\n return true;\n }", "@Override\n public void onFailure(IMqttToken asyncActionToken,\n Throwable exception) {\n }", "@Override\n public void onFailure(IMqttToken asyncActionToken,\n Throwable exception) {\n }", "@Override\n public void onFailure(IMqttToken asyncActionToken,\n Throwable exception) {\n }", "@Override\n public void onFailure(IMqttToken asyncActionToken,\n Throwable exception) {\n }", "private void handleTrainTaskFailure(final BackendEngineStatus queued, final ServerTracker server,\n final ServerConnector.AiServicesException exception) {\n\n // queue flag\n boolean requeueThis = !exception.getPermanentError();\n String logMessage;\n // get the first error with a non-zero result code\n ServerConnector.AiServicesException httpError = findFirstSuppressedHttpError(exception);\n // if there is one\n if (httpError != null) {\n switch (httpError.getResponseStatus()) {\n case HttpURLConnection.HTTP_BAD_REQUEST:\n case HttpURLConnection.HTTP_NOT_FOUND:\n requeueThis = false;\n break;\n default:\n break;\n }\n logMessage = httpError.getMessage();\n } else {\n logMessage = exception.toString();\n }\n\n try {\n if (requeueThis) {\n\n this.logger.logError(this.logFrom,\n String.format(\"REQUEUE train task that failed on backend %s with error %s\",\n server.getServerIdentifier(), logMessage));\n // requeue the task now\n this.database.queueUpdate(this.serviceIdentity, queued.getAiid(),\n true, this.config.getProcessQueueScheduleFutureCommand(), QueueAction.TRAIN);\n } else {\n // don't requeue\n this.logger.logError(this.logFrom,\n String.format(\"DROP train-task that failed on backend %s with error %s\",\n server.getServerIdentifier(), logMessage));\n // and permanently flag the AI state as ERROR\n this.database.updateAIStatus(this.serviceIdentity, queued.getAiid(), TrainingStatus.AI_ERROR,\n server.getServerIdentifier(), 0.0, 0.0);\n }\n } catch (DatabaseException e1) {\n this.logger.logException(this.logFrom, e1);\n }\n }", "@Override\n public void onTaskFailure(String result) {\n connectionProgressDialog.dismiss();\n\n }", "private void handleErrorsInTask(String result) {\n Log.e(\"ASYNC_TASK_ERROR\", result);\n mListener.onWaitFragmentInteractionHide();\n }", "public InvalidTaskTypeException(String errorMessage) {\n super(errorMessage);\n }", "public ExecutionResult failed(Throwable throwable) {\n var duration = Duration.between(start(), Instant.now());\n return new ExecutionResult(1, duration, out.toString(), err.toString(), throwable);\n }", "public void taskSetFailed(TaskSet taskSet, String reason, Throwable exception) {\n eventProcessLoop.post(new TaskSetFailed(taskSet, reason, exception));\n }", "@Override\n public void onFailure(@NonNull Exception exception) {\n }", "@Override\n public void onFailure(@NonNull Exception exception) {\n }", "@Test\n public void testRejectedExecution() throws Exception {\n assertEquals(0, errorStorageDir.listFiles().length);\n\n for (int k = 0; k < TASK_COUNT; k++) {\n client.notify(new Throwable(\"Rejected Execution\"));\n }\n\n // the exact number of files is indeterminate (dependent on the ThreadPoolExecutor)\n File[] files = errorStorageDir.listFiles();\n assertTrue(files.length > 0);\n File errorFile = files[0];\n\n JSONObject payload = ErrorStoreTest.getJsonObjectFromReport(new Report(\"api\", errorFile));\n ErrorStoreTest.validateReportPayload(payload);\n }", "void failure(ServiceExecutionEvent e) {\n\n }", "private void handleLostExecutor(Protos.SchedulerTask task)\n {\n SchedulerNode.State state = this.app.getState(task.getNodeId());\n\n //dont deliver the failure if it was already sent in some form\n if( state.equals(SchedulerNode.State.FAILED)\n || state.equals(SchedulerNode.State.FINISHED)\n || state.equals(SchedulerNode.State.KILLED))\n {\n return;\n }\n\n //this.app.nodeFailed(this, task.getNodeId());\n }", "@Override\n public void failure(int rc, Object error)\n {\n task.setReadPoolSelectionContext(getReply().getContext());\n switch (rc) {\n case CacheException.OUT_OF_DATE:\n /* Pool manager asked for a\n * refresh of the request.\n * Retry right away.\n */\n retry(task, 0);\n break;\n case CacheException.FILE_NOT_IN_REPOSITORY:\n case CacheException.PERMISSION_DENIED:\n fail(task, rc, error.toString());\n break;\n default:\n /* Ideally we would delegate the retry to the door,\n * but for the time being the retry is dealed with\n * by pin manager.\n */\n retry(task, RETRY_DELAY);\n break;\n }\n }", "public void checkTask() throws InvalidTask {\n\n int incidenceOfTask = (int) TaskList.taskArrayList.stream()\n .filter(task -> task.toString().contains(command))\n .count();\n if (incidenceOfTask == 0) {\n throw new InvalidTask();\n }\n\n }", "public boolean isIfTaskFails() {\n return getFlow().isIfTaskFails();\n }", "@Override\n\tpublic void notifyFailure(ResourceOperationDescription operationDescription, Task task, OperationResult parentResult) {\n\t\tnotifyAny(operationDescription);\n\t}", "@Override\n public void onFailure(Call<ArrayList<Tasks>> call, Throwable t) {\n Log.e(\"TAG\", t.toString());\n }", "boolean processFailure(Throwable t);", "@Override\n public void onFailure(@NonNull Exception e) {\n }", "List<ExceptionAndTasks> getFailedTasksAndExceptions();", "@Override\n public void onFailure(IMqttToken asyncActionToken, Throwable exception) {\n Log.d(LOG_TAG, \"onFailure\");\n exception.printStackTrace();\n\n }", "@Override\n public void onFailure(@NonNull Exception exception) {\n }", "@Override\n public void onFailure(@NonNull Exception exception) {\n }", "@Override\n\tpublic void fail(Throwable t) {\n\t}", "@Override\n public void onFailure(IMqttToken asyncActionToken,\n Throwable exception) {\n }", "@Override\n public void onFailure(@NonNull Exception exception) {\n }", "@Override\n public void onFailure(@NonNull Exception exception) {\n }", "@Override\n public void onFailure(@NonNull Exception exception) {\n }", "@Override\n public void onFailure(@NonNull Exception exception) {\n }", "@Override\n public void onFailure(@NonNull Exception exception) {\n }", "@Override\n public void onFailure(@NonNull Exception exception) {\n }", "@Override\n public void onFailure(@NonNull Exception exception) {\n }", "@Override\n public void onFailure(@NonNull Exception exception) {\n }", "@Override\n public void onFailure(@NonNull Exception exception) {\n }", "@Override\n public void onFailure(@NonNull Exception exception) {\n }", "@Override\n public void onFailure(@NonNull Exception exception) {\n }", "@Override\n public void onFailure(@NonNull Exception exception) {\n }", "@Override\n public void onFailure(@NonNull Exception exception) {\n }", "@Override\n public void onFailure(@NonNull Exception exception) {\n }", "@Override\n\t\t\tpublic void onFail(int code) {\n\t\t\t\t\n\t\t\t}", "protected void dofinally(TaskResult taskResult){\n }", "@Override\n public void onFailure(IMqttToken asyncActionToken,\n Throwable exception) {\n\n }", "private void failWithExceptionOnExecutor(CronetException e) {\n mException = e;\n // Do not call into mCallback if request is complete.\n synchronized (mNativeStreamLock) {\n if (isDoneLocked()) {\n return;\n }\n mReadState = mWriteState = State.ERROR;\n destroyNativeStreamLocked(false);\n }\n try {\n mCallback.onFailed(this, mResponseInfo, e);\n } catch (Exception failException) {\n Log.e(CronetUrlRequestContext.LOG_TAG, \"Exception notifying of failed request\",\n failException);\n }\n mInflightDoneCallbackCount.decrement();\n }", "@Override\n public void onFailure(@NonNull Exception e) {\n }", "@Override\n public void onFailure(@NonNull Exception e) {\n }", "@Override\n public void onFailure(@NonNull Exception e) {\n }", "@Override\n public void onFailure(@NonNull Exception e) {\n }", "@Override\n public void onFailure(@NonNull Exception e) {\n }", "@Override\n public void onFailure(@NonNull Exception e) {\n }", "@Override\n public void onFailure(@NonNull Exception e) {\n }", "@Override\n public void onFailure(@NonNull Exception e) {\n }", "@Override\n public void onFailure(IMqttToken asyncActionToken, Throwable exception) {\n Log.d(\"mqtt\", \"onFailure\");\n\n }", "public void downloadFailed(Throwable t);", "@Override\r\n\t\t\t\t\tpublic void failed(String message) {\n\r\n\t\t\t\t\t}", "public void markAsFailed() {\n \n \t\texecutionStateChanged(ExecutionState.FAILED, \"Execution thread died unexpectedly\");\n \t}", "public void onFailure(Exception t);", "@Override\n public void onFailure(Throwable t) {\n isSucessful.compareAndSet(true, false);\n failedMessages.put(id.getName(), t.getMessage());\n handleIfFinished(t, isSucessful.get());\n }", "@Override\n public void onFailure(Throwable t) {\n throw new RuntimeException(t);\n }", "@Override\n public void onFailure(Throwable t) {\n throw new RuntimeException(t);\n }", "public abstract R createFailedResult(Status status);", "public void failure(TwitterException exception) {\n }", "void markFailed(Execution execution, Throwable cause);", "@Override\n\t\t\tpublic void onFail(int code) {\n\t\t\t\t\t\n\t\t\t}", "@Override\n public void onFailure() {\n }", "@Override\n public void onFailure(@NonNull Exception e) {\n }", "@Test\n public void executeWithFailure() {\n new SimpleCommandFailure(\"badRequest\", HystrixRuntimeException.FailureType.COMMAND_EXCEPTION).execute();\n }", "public static void printInvalidTaskType() {\n botSpeak(Message.INVALID_TASK_TYPE_ERROR);\n }", "public CommandFailedByConfigException(Throwable ex) {\n super(ex);\n }", "protected void succeed() throws InvalidKeyException {\n task.succeed();\n }", "public void onFailure();", "public abstract TaskResult runTask(TaskKey taskKey) throws JobException;", "@Override\n public void onFailure(Throwable t) {\n }" ]
[ "0.78459567", "0.6872242", "0.6851851", "0.6750427", "0.6687407", "0.66295356", "0.66264623", "0.6602331", "0.65632164", "0.64615905", "0.64329576", "0.64329576", "0.6359681", "0.63189656", "0.6317757", "0.62705", "0.62427694", "0.6220895", "0.62054527", "0.6190558", "0.6175884", "0.6173779", "0.6084827", "0.6059205", "0.60467565", "0.60461783", "0.60379475", "0.60379475", "0.60379475", "0.60379475", "0.6033613", "0.60179865", "0.6004527", "0.59940195", "0.5986872", "0.5980172", "0.5979297", "0.5979297", "0.59782505", "0.59780526", "0.5965963", "0.5963345", "0.59621704", "0.59558904", "0.5943251", "0.5941701", "0.5928498", "0.5917583", "0.5916958", "0.59132177", "0.5908781", "0.5908781", "0.59060425", "0.59028476", "0.5899802", "0.5899802", "0.5899802", "0.5899802", "0.5899802", "0.5899802", "0.5899802", "0.5899802", "0.5899802", "0.5899802", "0.58971775", "0.58971775", "0.58971775", "0.58971775", "0.58914405", "0.58767486", "0.58648634", "0.58597016", "0.5849973", "0.5837682", "0.5837682", "0.583705", "0.583705", "0.583705", "0.583705", "0.583705", "0.58349603", "0.58256036", "0.58201486", "0.58199567", "0.5813516", "0.58122456", "0.5810235", "0.5810235", "0.5807512", "0.5794684", "0.57921004", "0.578864", "0.5781765", "0.57800937", "0.5773834", "0.57582986", "0.57575834", "0.5754166", "0.57346416", "0.5729492", "0.5726012" ]
0.0
-1
TODO Analyze the text will probably work only in English How is it working? More info about android implementation: Use logs to print data into the log the objective is to fill up the receipt object with data
private void analyzeResult(final FirebaseVisionText firebaseVisionText, final Receipt receipt) { new AsyncTask<String, Boolean, Boolean>() { @Override protected Boolean doInBackground(String... strings) { String resultText = firebaseVisionText.getText(); Log.d(TAG, "All text: " + resultText); System.out.println("All text: " + resultText); receipt.setReceiptName(""); receipt.setAllData(resultText.toLowerCase()); for (FirebaseVisionText.TextBlock block : firebaseVisionText.getTextBlocks()) { String blockText = block.getText(); Float blockConfidence = block.getConfidence(); List<RecognizedLanguage> blockLanguages = block.getRecognizedLanguages(); Point[] blockCornerPoints = block.getCornerPoints(); Rect blockFrame = block.getBoundingBox(); for (FirebaseVisionText.Line line : block.getLines()) { String lineText = line.getText(); Float lineConfidence = line.getConfidence(); List<RecognizedLanguage> lineLanguages = line.getRecognizedLanguages(); Point[] lineCornerPoints = line.getCornerPoints(); Rect lineFrame = line.getBoundingBox(); searchInLineResult(receipt, line); for (FirebaseVisionText.Element element : line.getElements()) { String elementText = element.getText(); Float elementConfidence = element.getConfidence(); List<RecognizedLanguage> eƒlementLanguages = element.getRecognizedLanguages(); Point[] elementCornerPoints = element.getCornerPoints(); Rect elementFrame = element.getBoundingBox(); searchInElementResult(receipt, element); } } } return null; } @Override protected void onPostExecute(Boolean aBoolean) { Log.d(TAG, "Receipt: " + receipt.toString()); callback.onAnalyzeDone(true, receipt); } }.execute(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void printReceipt(){\n\t\t//TO DO\n\t\t\n\t}", "private static void displayReceipt()\r\n\t{\r\n\t\tSystem.out.println(\"__________________________________________________________\");\r\n\t\tSystem.out.println(\"Receipt \");\r\n\t\tSystem.out.println(\"__________________________________________________________\");\r\n\t\tSystem.out.println(\"Waiter/waitress: \"+name);\r\n\t\tSystem.out.println(\"Table Number: \"+tableNo);\r\n\t\tSystem.out.println(\"__________________________________________________________\");\r\n\t\tSystem.out.println(\"ID Item Name Unit Price Quantity Sub-total\");\r\n\t\tSystem.out.println(\"__________________________________________________________\");\r\n\t\tBillingSystemFormatter.receiptFormatter(orderList,menu,subTotalList);\r\n\t\tSystem.out.println(\"__________________________________________________________\");\r\n\t\tBillingSystemFormatter.billFormatter(total, tax, tip, grandTotal);\r\n\t}", "private void writeReceipt(String text) throws IOException {\n\n PrintWriter pw = new PrintWriter(\"receipt.txt\");\n pw.println(text);\n pw.close();\n }", "public void printReceipt(Receipt receipt){\n System.out.println(receipt.toString());\n }", "public void printReceipt() {\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION,\"Would you like a receipt?\",ButtonType.YES,ButtonType.NO);\n Optional<ButtonType> result = alert.showAndWait();\n if (result.get() == ButtonType.YES) {\n try {\n String element = \"\";\n int height = 200;\n int length = 0;\n for (int i = 0; i < getItemList().size(); i++) {\n element += getItemList().get(i).toString() + \" \"+System.getProperty(\"line.separator\");\n height += 20;\n }\n String text = \"Receipt \" + System.getProperty(\"line.separator\")\n + System.getProperty(\"line.separator\") + \"Items: \" + System.getProperty(\"line.separator\")\n + element + System.getProperty(\"line.separator\") + \"Total: \" + getTotalCost();\n char[] array = text.toCharArray();\n System.out.println(array);\n length += array.length;\n BufferedImage bi = imageGenerator.createImageWithText(array, length, height);\n File outputfile = new File(\"receipt.png\");\n ImageIO.write(bi, \"png\", outputfile);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n } else{\n alert.close();\n }\n }", "public void printReceipt(){\n sale.updateExternalSystems();\n sale.printReceipt(totalCost, amountPaid, change);\n }", "public void printReceipt(Receipt receipt) {\n System.out.println(receipt.receiptInStringFormat());\n }", "private ArrayList<String> generateReceipt(@NotNull Order o, double total, double paid, Invoice.PaymentType type) {\n // Max Length of receipt is 50\n Table t = o.getTable();\n Staff s = o.getStaff();\n int tableNum = (t == null) ? -1 : t.getTableNum();\n String staffName = (s == null) ? \"Unknown\" : s.getStaffName() + \" (\" + s.getStaffId() + \")\";\n ArrayList<String> receiptStrings = new ArrayList<>();\n receiptStrings.add(centerText(MainApp.APP_NAME, 60, ' '));\n receiptStrings.add(spacer(60, '_'));\n receiptStrings.add(centerText(\"Block N4, SCSE, NTU Singapore\", 60, ' '));\n receiptStrings.add(centerText(\"50 Nanyang Ave, SG 639798\", 60, ' '));\n receiptStrings.add(\"\");\n receiptStrings.add(String.format(\"%-35s%-20s\", \"Check #: \" + o.getOrderID(), \"Server: \" + staffName));\n receiptStrings.add(String.format(\"%-35s%-20s\", \"Date: \" + DateTimeFormatHelper.formatMillisToDateTime(o.getCompletedAt()), \"Table: \" + tableNum));\n receiptStrings.add(spacer(60, '_'));\n // Print order items\n o.getOrderItems().forEach((item) -> receiptStrings.add(String.format(\" %-3sx %-45s $%6.2f\", item.getQuantity(), item.getItem().getName(), item.getItemTotal())));\n receiptStrings.add(spacer(60, '_'));\n receiptStrings.add(String.format(\"%51s $%6.2f\", \"Order Subtotal: \", o.getSubtotal()));\n receiptStrings.add(String.format(\"%51s $%6.2f\", \"GST (7%): \", total - o.getSubtotal()));\n receiptStrings.add(spacer(60, '_'));\n receiptStrings.add(String.format(\"%51s $%6.2f\", \"Total: \", total));\n receiptStrings.add(spacer(60, '_'));\n receiptStrings.add(String.format(\"%51s $%6.2f\", \"Paid (\" + type.toString() + \"): \", paid));\n if (type == Invoice.PaymentType.PAYMENT_CASH)\n receiptStrings.add(String.format(\"%51s $%6.2f\\n\", \"Change: \", (paid > total) ? Math.abs(total - paid) : 0));\n receiptStrings.add(spacer(60, '_'));\n receiptStrings.add(\"\");\n receiptStrings.add(\"\");\n receiptStrings.add(centerText(\"Thank you and have a nice day!\", 60, ' '));\n receiptStrings.add(centerText(\"Transaction Completed: \" + DateTimeFormatHelper.formatMillisToDateTime(o.getCompletedAt()), 60, ' '));\n return receiptStrings;\n }", "@Override\n public String toString() {\n return \"Receipt{id=\"\n + this.receiptId.toString()\n + \", \"\n + \"Time placed=\"\n + this.timePlaced\n + \", \"\n + \"StoreId=\"\n + this.cart.getStoreID()\n + \", \"\n + \"Pizzas=\"\n + this.cart.getPizzas()\n + \", \"\n + \"Sides=\"\n + this.cart.getSides()\n + \", \"\n + \"Total Amount=\"\n + this.cart.getTotalAmount()\n + \", \"\n + \"Card=card number ending with \"\n + this.card.getCardNumber().substring(this.card.getCardNumber().length() - 4)\n + \"}\";\n }", "private void generateReceipt(){\n ArrayList<Product> productList = cart.getProductList();\n ArrayList<Float> costsList = cart.getCostsList();\n for (int i=0; i<productList.size(); i++){\n String quantity = \"\"+productList.get(i).getQuantity();\n String name = \"\"+productList.get(i).getName();\n String cost = \"\"+Math.round(costsList.get(i) * 100.0) / 100.0;\n //String cost = \"\"+costsList.get(i);\n \n reciept.addLine(quantity+\" \"+name+\": \"+cost);\n }\n \n reciept.addLine(\"Total Taxes: \"+Math.round(cart.getTotalTax() * 100.0) / 100.0);\n reciept.addLine(\"Total: \"+ Math.round((cart.getTotalTax()+cart.getTotalCost()) * 100.0) / 100.0);\n // print reciept\n }", "public synchronized void onReceipt(DatagramPacket packet) {\n\t\tStringContent content= new StringContent(packet);\n\t\tthis.notify();\n\t\tterminal.println(content.toString());\n\t}", "public Receipt(Purchase p) {\r\n this.purch=p;\r\n totalPurch=0;\r\n totalDisc=0;\r\n \r\n db= new FakeDataBase();\r\n c= new Customer(db.getCustomerDbItem(purch.getCustIdx()));\r\n //System.out.println(c.toString());\r\n lineItem = new LineItem[0];\r\n generateLineItems();\r\n }", "public void loanPaymentReceitStamp(List receiptDetails,Component c) {\n \np.resetAll();\n\np.initialize();\n\np.feedBack((byte)2);\n\n//p.color(0);\n//p.chooseFont(1);\np.alignCenter();\np.emphasized(true);\np.underLine(2);\np.newLine();\np.setText(receiptDetails.get(1).toString());\np.newLine();\np.setText(receiptDetails.get(2).toString());\np.newLine();\np.setText(receiptDetails.get(3).toString());\np.newLine();\np.newLine();\n//p.addLineSeperatorX();\np.underLine(0);\np.emphasized(false);\np.underLine(0);\np.alignCenter();\np.setText(\" *** Loan Repayment Receipt ***\");\np.newLine();\np.addLineSeperator();\np.newLine();\n\np.alignLeft();\np.setText(\"Batch Number: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(10).toString()+p.underLine(0));\np.newLine(); \np.alignLeft();\np.setText(\"Loan ID: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(11).toString()+p.underLine(0));\np.newLine(); \np.alignLeft();\np.emphasized(true);\np.setText(\"Customer: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(4).toString()+p.underLine(0));\np.newLine(); \np.emphasized(false);\np.setText(\"Loan+Interest: \" +p.underLine(0)+p.underLine(2)+\"UGX\"+receiptDetails.get(6).toString()+\"/=\"+p.underLine(0));\np.newLine();\np.setText(\"Date Taken: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(7).toString()+p.underLine(0));\np.newLine();\np.setText(\"Loan Status: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(14).toString()+p.underLine(0));\np.newLine();\np.setText(\"Payment Date: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(12).toString()+p.underLine(0));\np.newLine();\np.setText(\"Payment Time: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(13).toString()+p.underLine(0));\np.newLine();\n\np.underLine(0);\np.emphasized(false);\n//p.underLine(0);\np.addLineSeperator();\np.newLine();\np.alignCenter();\np.setText(\"***** Payment Details ***** \");\np.newLine();\np.addLineSeperator();\np.newLine();\np.newLine();\np.alignLeft();\np.setText(\"Loan Paid: \" +p.underLine(0)+p.underLine(2)+\"UGX \"+receiptDetails.get(8).toString()+\"/=\"+p.underLine(0));\np.newLine(); \np.alignLeft();\np.setText(\"Loan Balance: \" +p.underLine(0)+p.underLine(2)+\"UGX \"+receiptDetails.get(9).toString()+\"/=\"+p.underLine(0));\np.newLine(); \n//p.alignLeft();\n//p.emphasized(true);\n//p.setText(\"Customer Name: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(4).toString()+p.underLine(0));\n//p.newLine(); \n//p.emphasized(false);\np.newLine();\n\np.addLineSeperator();\np.doubleStrik(true);\n\np.underLine(2) ;\np.newLine();\np.setText(\"Officer: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(5).toString()+p.underLine(0));\n\np.addLineSeperatorX();\np.newLine();\np.addLineSeperator();\np.newLine();\np.doubleStrik(true);\np.newLine();\np.underLine(2) ;\np.setText(\"Officer Signiture:\");\np.addLineSeperatorX();\n//p.newLine();\n\np.addLineSeperator();\n//p.newLine();\np.doubleStrik(true);\np.newLine();\np.underLine(2) ;\np.newLine();\np.newLine();\np.newLine();\np.newLine();\np.newLine();\np.newLine();\np.newLine();\np.setText(\"Customer Signiture:\");\np.addLineSeperatorX();\n//p.newLine();\n\n//p.addLineSeperator();\n//p.newLine();\n//p.setText(\"OFFICE NUMBER: \"+receiptDetails.get(17).toString());\n//p.newLine();\np.feed((byte)3);\np.finit();\n\nprint.feedPrinter(dbq.printDrivers(c),p.finalCommandSet().getBytes());\n \n\n }", "@Override\n public String toString()\n {\n String str = \"\";\n str += \"\\n********* Receipt *********\\n\";\n str += \"Order Number: \" + orderNum + \"\\nDate: \" + date + \"\\n\";\n str += \"Bartender: \" + bartenderName + \", \" + \"Customer: \" + customerName + \"\\n\";\n str += \"Drinks: \";\n\n for(DrinkAndQuantity d : drinksAndQuantities){\n str += d.toString() + \", \";\n }\n str = str.substring(0, str.length() - 2);\n \n //get payment info\n String payValue = \"\";\n String payType = \"\";\n if(paid){\n payValue = \" Yes,\";\n payType = paymentType;\n }else{\n payValue = \" No,\";\n payType = paymentType;\n }\n \n str += \"\\n\";\n str += \"Paid: \" + payValue + \" \" + paymentType;\n \n //get price\n NumberFormat formatter = NumberFormat.getCurrencyInstance();\n String totalCurrency = formatter.format(totalPrice);\n str += \"\\n\";\n str += \"Total: \" + totalCurrency;\n str += \"\\n***************************\\n\";\n return str;\n }", "public void savingsReceipPrint(List receiptDetails,Component c) {\n \np.resetAll();\n\np.initialize();\n\np.feedBack((byte)2);\n\n//p.color(0);\n//p.chooseFont(1);\np.alignCenter();\n//p.emphasized(true);\n//p.underLine(2);\np.setText(receiptDetails.get(1).toString());\np.newLine();\np.setText(receiptDetails.get(2).toString());\np.newLine();\np.setText(receiptDetails.get(3).toString());\np.newLine();\np.newLine();\n//p.addLineSeperatorX();\np.underLine(0);\np.emphasized(false);\np.underLine(0);\np.alignCenter();\np.setText(\" *** Savings Made Receipt ***\");\np.newLine();\np.addLineSeperator();\np.newLine();\n\np.alignLeft();\np.setText(\"Account Number: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(9).toString()+p.underLine(0));\np.newLine(); \np.alignLeft();\np.setText(\"Savings Id: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(0).toString()+p.underLine(0));\np.newLine(); \np.alignLeft();\np.emphasized(true);\np.setText(\"Customer: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(4).toString()+p.underLine(0));\np.newLine(); \n//p.emphasized(false);\n//p.setText(\"Loan+Interest: \" +p.underLine(0)+p.underLine(2)+\"UGX \"+receiptDetails.get(6).toString()+\"/=\"+p.underLine(0));\n//p.newLine();\n//p.setText(\"Date Taken: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(7).toString()+p.underLine(0));\n//p.newLine();\n//p.setText(\"Loan Status: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(14).toString()+p.underLine(0));\n//p.newLine();\np.setText(\"Savings Date: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(10).toString()+p.underLine(0));\np.newLine();\np.setText(\"Savings Time: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(11).toString()+p.underLine(0));\np.newLine();\n\np.underLine(0);\np.emphasized(false);\n//p.underLine(0);\np.addLineSeperator();\np.newLine();\np.alignCenter();\np.setText(\"***** Savings Details ***** \");\np.newLine();\np.addLineSeperator();\np.newLine();\n\np.alignLeft();\np.setText(\"Savings Made: \" +p.underLine(0)+p.underLine(2)+\"UGX \"+receiptDetails.get(6).toString()+\"/=\"+p.underLine(0));\np.newLine(); \np.alignLeft();\np.setText(\"Savings Balance: \" +p.underLine(0)+p.underLine(2)+\"UGX \"+receiptDetails.get(8).toString()+\"/=\"+p.underLine(0));\np.newLine(); \np.alignLeft();\np.emphasized(true);\n//p.setText(\"Customer Name: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(4).toString()+p.underLine(0));\n//p.newLine(); \n//p.emphasized(false);\n\np.addLineSeperator();\np.doubleStrik(true);\np.newLine();\np.underLine(2) ;\np.setText(\"Officer: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(5).toString()+p.underLine(0));\np.newLine();\np.addLineSeperatorX();\n\np.addLineSeperator();\np.doubleStrik(true);\np.newLine();\np.underLine(2) ;\np.setText(\"Officer Signiture:\");\np.addLineSeperatorX();\np.newLine();\np.addLineSeperator();\np.doubleStrik(true);\n//p.newLine();\n//p.newLine();\n//p.newLine();\n//p.newLine();\n//p.newLine();\n//p.newLine();\n//p.newLine();\n//p.newLine();\np.underLine(2) ;\np.setText(\"Customer Signiture:\");\np.addLineSeperatorX();\np.newLine();\np.setText(\"OFFICE NUMBER: \"+receiptDetails.get(12).toString());\n////p.newLine();\n//p.addLineSeperatorX();\np.feed((byte)3);\np.finit();\n\nprint.feedPrinter(dbq.printDrivers(c),p.finalCommandSet().getBytes());\n \n\n }", "public void loanPaymentReceit(List receiptDetails,Component c) {\n \np.resetAll();\n\np.initialize();\n\np.feedBack((byte)2);\n\n//p.color(0);\n//p.chooseFont(1);\np.alignCenter();\np.emphasized(true);\np.underLine(2);\np.newLine();\np.setText(receiptDetails.get(1).toString());\np.newLine();\np.setText(receiptDetails.get(2).toString());\np.newLine();\np.setText(receiptDetails.get(3).toString());\np.newLine();\np.newLine();\n//p.addLineSeperatorX();\np.underLine(0);\np.emphasized(false);\np.underLine(0);\np.alignCenter();\np.setText(\" *** Loan Repayment Receipt ***\");\np.newLine();\np.addLineSeperator();\np.newLine();\n\np.alignLeft();\np.setText(\"Batch Number: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(10).toString()+p.underLine(0));\np.newLine(); \np.alignLeft();\np.setText(\"Loan ID: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(11).toString()+p.underLine(0));\np.newLine(); \np.alignLeft();\np.emphasized(true);\np.setText(\"Customer: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(4).toString()+p.underLine(0));\np.newLine(); \np.emphasized(false);\np.setText(\"Loan+Interest: \" +p.underLine(0)+p.underLine(2)+\"UGX\"+receiptDetails.get(6).toString()+\"/=\"+p.underLine(0));\np.newLine();\np.setText(\"Date Taken: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(7).toString()+p.underLine(0));\np.newLine();\np.setText(\"Loan Status: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(14).toString()+p.underLine(0));\np.newLine();\np.setText(\"Payment Date: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(12).toString()+p.underLine(0));\np.newLine();\np.setText(\"Payment Time: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(13).toString()+p.underLine(0));\np.newLine();\n\np.underLine(0);\np.emphasized(false);\n//p.underLine(0);\np.addLineSeperator();\np.newLine();\np.alignCenter();\np.setText(\"***** Payment Details ***** \");\np.newLine();\np.addLineSeperator();\np.newLine();\np.newLine();\np.alignLeft();\np.setText(\"Loan Paid: \" +p.underLine(0)+p.underLine(2)+\"UGX \"+receiptDetails.get(8).toString()+\"/=\"+p.underLine(0));\np.newLine(); \np.alignLeft();\np.setText(\"Loan Balance: \" +p.underLine(0)+p.underLine(2)+\"UGX \"+receiptDetails.get(9).toString()+\"/=\"+p.underLine(0));\np.newLine(); \n//p.alignLeft();\n//p.emphasized(true);\n//p.setText(\"Customer Name: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(4).toString()+p.underLine(0));\n//p.newLine(); \n//p.emphasized(false);\np.newLine();\n\np.addLineSeperator();\np.doubleStrik(true);\n\np.underLine(2) ;\np.newLine();\np.setText(\"Officer: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(5).toString()+p.underLine(0));\n\np.addLineSeperatorX();\np.newLine();\np.addLineSeperator();\np.newLine();\np.doubleStrik(true);\np.newLine();\np.underLine(2) ;\np.setText(\"Officer Signiture:\");\np.addLineSeperatorX();\n//p.newLine();\n\np.addLineSeperator();\n//p.newLine();\np.doubleStrik(true);\np.newLine();\np.underLine(2) ;\n//p.newLine();\n//p.newLine();\n//p.newLine();\n//p.newLine();\n//p.newLine();\n//p.newLine();\n//p.newLine();\np.setText(\"Customer Signiture:\");\np.addLineSeperatorX();\n//p.newLine();\n\n//p.addLineSeperator();\np.newLine();\np.setText(\"OFFICE NUMBER: \"+receiptDetails.get(17).toString());\n//p.newLine();\np.feed((byte)3);\np.finit();\n\nprint.feedPrinter(dbq.printDrivers(c),p.finalCommandSet().getBytes());\n \n\n }", "public void loanDisbursementReceitStamp(List receiptDetails,Component c) {\n \np.resetAll();\n\np.initialize();\n\np.feedBack((byte)2);\n\n//p.color(0);\n//p.chooseFont(1);\np.alignCenter();\n//p.emphasized(true);\n//p.underLine(2);\np.setText(receiptDetails.get(1).toString());\np.newLine();\np.setText(receiptDetails.get(2).toString());\np.newLine();\np.setText(receiptDetails.get(3).toString());\np.newLine();\np.newLine();\n//p.addLineSeperatorX();\np.underLine(0);\np.emphasized(false);\np.underLine(0);\np.alignCenter();\np.setText(\" *** Loan Disbursment Receipt ***\");\np.newLine();\np.addLineSeperator();\np.newLine();\n\np.alignLeft();\np.setText(\"Batch Number: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(10).toString()+p.underLine(0));\np.newLine(); \np.alignLeft();\np.setText(\"Loan ID: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(11).toString()+p.underLine(0));\np.newLine(); \np.alignLeft();\np.emphasized(true);\np.setText(\"Customer: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(4).toString()+p.underLine(0));\np.newLine(); \n//p.emphasized(false);\np.setText(\"Loan+Interest: \" +p.underLine(0)+p.underLine(2)+\"UGX \"+receiptDetails.get(6).toString()+\"/=\"+p.underLine(0));\np.newLine();\np.setText(\"Date Taken: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(7).toString()+p.underLine(0));\np.newLine();\np.setText(\"Loan Status: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(14).toString()+p.underLine(0));\np.newLine();\np.setText(\"Disbursemnt Date: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(12).toString()+p.underLine(0));\np.newLine();\np.setText(\"Disbursement Time: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(13).toString()+p.underLine(0));\np.newLine();\n\np.underLine(0);\np.emphasized(false);\n//p.underLine(0);\np.addLineSeperator();\np.newLine();\np.alignCenter();\np.setText(\"***** Disbursement Details ***** \");\np.newLine();\np.addLineSeperator();\np.newLine();\n\np.alignLeft();\np.setText(\"Loan Disbursed: \" +p.underLine(0)+p.underLine(2)+\"UGX \"+receiptDetails.get(15).toString()+\"/=\"+p.underLine(0));\np.newLine(); \n//p.alignLeft();\n//p.setText(\"Loan Remaining: \" +p.underLine(0)+p.underLine(2)+\"UGX \"+receiptDetails.get(9).toString()+\"/=\"+p.underLine(0));\n//p.newLine(); \n//p.alignLeft();\n//p.emphasized(true);\n//p.setText(\"Customer Name: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(4).toString()+p.underLine(0));\n//p.newLine(); \n//p.emphasized(false);\n\np.addLineSeperator();\np.doubleStrik(true);\np.newLine();\np.underLine(2) ;\np.setText(\"Officer: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(5).toString()+p.underLine(0));\np.newLine();\np.addLineSeperatorX();\n\np.addLineSeperator();\np.doubleStrik(true);\np.newLine();\np.underLine(2) ;\np.setText(\"Officer Signiture:\");\np.addLineSeperatorX();\n//p.newLine();\np.addLineSeperator();\np.doubleStrik(true);\np.newLine();\np.newLine();\np.newLine();\np.newLine();\np.newLine();\np.newLine();\np.newLine();\np.newLine();\np.underLine(2) ;\np.setText(\"Customer Signiture:\");\np.addLineSeperatorX();\n//p.newLine();\n//p.setText(\"OFFICE NUMBER: \"+receiptDetails.get(17).toString());\n//p.addLineSeperatorX();\n//p.newLine();\np.feed((byte)3);\np.finit();\n\nprint.feedPrinter(dbq.printDrivers(c),p.finalCommandSet().getBytes());\n \n }", "public abstract void generateReceipt(Transaction trans);", "public void savingsReceipPrintStamp(List receiptDetails,Component c) {\n \np.resetAll();\n\np.initialize();\n\np.feedBack((byte)2);\n\n//p.color(0);\n//p.chooseFont(1);\np.alignCenter();\n//p.emphasized(true);\n//p.underLine(2);\np.setText(receiptDetails.get(1).toString());\np.newLine();\np.setText(receiptDetails.get(2).toString());\np.newLine();\np.setText(receiptDetails.get(3).toString());\np.newLine();\np.newLine();\n//p.addLineSeperatorX();\np.underLine(0);\np.emphasized(false);\np.underLine(0);\np.alignCenter();\np.setText(\" *** Savings Made Receipt ***\");\np.newLine();\np.addLineSeperator();\np.newLine();\n\np.alignLeft();\np.setText(\"Account Number: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(9).toString()+p.underLine(0));\np.newLine(); \np.alignLeft();\np.setText(\"Savings Id: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(0).toString()+p.underLine(0));\np.newLine(); \np.alignLeft();\np.emphasized(true);\np.setText(\"Customer: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(4).toString()+p.underLine(0));\np.newLine(); \n//p.emphasized(false);\n//p.setText(\"Loan+Interest: \" +p.underLine(0)+p.underLine(2)+\"UGX \"+receiptDetails.get(6).toString()+\"/=\"+p.underLine(0));\n//p.newLine();\n//p.setText(\"Date Taken: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(7).toString()+p.underLine(0));\n//p.newLine();\n//p.setText(\"Loan Status: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(14).toString()+p.underLine(0));\n//p.newLine();\np.setText(\"Savings Date: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(10).toString()+p.underLine(0));\np.newLine();\np.setText(\"Savings Time: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(11).toString()+p.underLine(0));\np.newLine();\n\np.underLine(0);\np.emphasized(false);\n//p.underLine(0);\np.addLineSeperator();\np.newLine();\np.alignCenter();\np.setText(\"***** Savings Details ***** \");\np.newLine();\np.addLineSeperator();\np.newLine();\n\np.alignLeft();\np.setText(\"Savings Made: \" +p.underLine(0)+p.underLine(2)+\"UGX \"+receiptDetails.get(6).toString()+\"/=\"+p.underLine(0));\np.newLine(); \np.alignLeft();\np.setText(\"Savings Balance: \" +p.underLine(0)+p.underLine(2)+\"UGX \"+receiptDetails.get(8).toString()+\"/=\"+p.underLine(0));\np.newLine(); \np.alignLeft();\np.emphasized(true);\n//p.setText(\"Customer Name: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(4).toString()+p.underLine(0));\n//p.newLine(); \n//p.emphasized(false);\n\np.addLineSeperator();\np.doubleStrik(true);\np.newLine();\np.underLine(2) ;\np.setText(\"Officer: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(5).toString()+p.underLine(0));\np.newLine();\np.addLineSeperatorX();\n\np.addLineSeperator();\np.doubleStrik(true);\np.newLine();\np.underLine(2) ;\np.setText(\"Officer Signiture:\");\np.addLineSeperatorX();\np.newLine();\np.addLineSeperator();\np.doubleStrik(true);\np.newLine();\np.newLine();\np.newLine();\np.newLine();\np.newLine();\np.newLine();\np.newLine();\np.newLine();\np.underLine(2) ;\np.setText(\"Customer Signiture:\");\np.addLineSeperatorX();\np.newLine();\n//p.setText(\"OFFICE NUMBER: \"+receiptDetails.get(12).toString());\n////p.newLine();\n//p.addLineSeperatorX();\np.feed((byte)3);\np.finit();\n\nprint.feedPrinter(dbq.printDrivers(c),p.finalCommandSet().getBytes());\n \n\n }", "public void loanDisbursementReceit(List receiptDetails,Component c) {\n \np.resetAll();\n\np.initialize();\n\np.feedBack((byte)2);\n\n//p.color(0);\n//p.chooseFont(1);\np.alignCenter();\n//p.emphasized(true);\n//p.underLine(2);\np.setText(receiptDetails.get(1).toString());\np.newLine();\np.setText(receiptDetails.get(2).toString());\np.newLine();\np.setText(receiptDetails.get(3).toString());\np.newLine();\np.newLine();\n//p.addLineSeperatorX();\np.underLine(0);\np.emphasized(false);\np.underLine(0);\np.alignCenter();\np.setText(\" *** Loan Disbursment Receipt ***\");\np.newLine();\np.addLineSeperator();\np.newLine();\n\np.alignLeft();\np.setText(\"Batch Number: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(10).toString()+p.underLine(0));\np.newLine(); \np.alignLeft();\np.setText(\"Loan ID: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(11).toString()+p.underLine(0));\np.newLine(); \np.alignLeft();\np.emphasized(true);\np.setText(\"Customer: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(4).toString()+p.underLine(0));\np.newLine(); \n//p.emphasized(false);\np.setText(\"Loan+Interest: \" +p.underLine(0)+p.underLine(2)+\"UGX \"+receiptDetails.get(6).toString()+\"/=\"+p.underLine(0));\np.newLine();\np.setText(\"Date Taken: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(7).toString()+p.underLine(0));\np.newLine();\np.setText(\"Loan Status: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(14).toString()+p.underLine(0));\np.newLine();\np.setText(\"Disbursemnt Date: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(12).toString()+p.underLine(0));\np.newLine();\np.setText(\"Disbursement Time: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(13).toString()+p.underLine(0));\np.newLine();\n\np.underLine(0);\np.emphasized(false);\n//p.underLine(0);\np.addLineSeperator();\np.newLine();\np.alignCenter();\np.setText(\"***** Disbursement Details ***** \");\np.newLine();\np.addLineSeperator();\np.newLine();\n\np.alignLeft();\np.setText(\"Loan Disbursed: \" +p.underLine(0)+p.underLine(2)+\"UGX \"+receiptDetails.get(15).toString()+\"/=\"+p.underLine(0));\np.newLine(); \n//p.alignLeft();\n//p.setText(\"Loan Remaining: \" +p.underLine(0)+p.underLine(2)+\"UGX \"+receiptDetails.get(9).toString()+\"/=\"+p.underLine(0));\n//p.newLine(); \n//p.alignLeft();\n//p.emphasized(true);\n//p.setText(\"Customer Name: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(4).toString()+p.underLine(0));\n//p.newLine(); \n//p.emphasized(false);\n\np.addLineSeperator();\np.doubleStrik(true);\np.newLine();\np.underLine(2) ;\np.setText(\"Officer: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(5).toString()+p.underLine(0));\np.newLine();\np.addLineSeperatorX();\n\np.addLineSeperator();\np.doubleStrik(true);\np.newLine();\np.underLine(2) ;\np.setText(\"Officer Signiture:\");\np.addLineSeperatorX();\n//p.newLine();\np.addLineSeperator();\np.doubleStrik(true);\n//p.newLine();\n//p.newLine();\n//p.newLine();\n//p.newLine();\n//p.newLine();\n//p.newLine();\n//p.newLine();\n//p.newLine();\np.underLine(2) ;\np.setText(\"Customer Signiture:\");\np.addLineSeperatorX();\np.newLine();\np.setText(\"OFFICE NUMBER: \"+receiptDetails.get(17).toString());\n//p.addLineSeperatorX();\n//p.newLine();\np.feed((byte)3);\np.finit();\n\nprint.feedPrinter(dbq.printDrivers(c),p.finalCommandSet().getBytes());\n \n }", "public void savingsWithdrawReceipPrint(List receiptDetails,Component c) {\n \np.resetAll();\n\np.initialize();\n\np.feedBack((byte)2);\n\np.color(0);\np.chooseFont(1);\np.alignCenter();\n//p.emphasized(true);\n//p.underLine(2);\np.setText(receiptDetails.get(1).toString());\np.newLine();\np.setText(receiptDetails.get(2).toString());\np.newLine();\np.setText(receiptDetails.get(3).toString());\np.newLine();\np.newLine();\n//p.addLineSeperatorX();\np.underLine(0);\np.emphasized(false);\np.underLine(0);\np.alignCenter();\np.setText(\" *** Savings Withdrawal ***\");\np.newLine();\np.addLineSeperator();\np.newLine();\n\np.alignLeft();\np.setText(\"Account Number: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(9).toString()+p.underLine(0));\np.newLine(); \np.alignLeft();\np.setText(\"Savings Id: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(0).toString()+p.underLine(0));\np.newLine(); \np.alignLeft();\np.emphasized(true);\np.setText(\"Customer: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(4).toString()+p.underLine(0));\np.newLine(); \n//p.emphasized(false);\n//p.setText(\"Loan+Interest: \" +p.underLine(0)+p.underLine(2)+\"UGX \"+receiptDetails.get(6).toString()+\"/=\"+p.underLine(0));\n//p.newLine();\n//p.setText(\"Date Taken: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(7).toString()+p.underLine(0));\n//p.newLine();\n//p.setText(\"Loan Status: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(14).toString()+p.underLine(0));\n//p.newLine();\np.setText(\"Withdrawal Date: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(10).toString()+p.underLine(0));\np.newLine();\np.setText(\"Withdrawal Time: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(11).toString()+p.underLine(0));\np.newLine();\n\np.underLine(0);\np.emphasized(false);\n//p.underLine(0);\np.addLineSeperator();\np.newLine();\np.alignCenter();\np.setText(\"***** Withdrawal Details ***** \");\np.newLine();\np.addLineSeperator();\np.newLine();\n\np.alignLeft();\np.setText(\"Withdrawal Made: \" +p.underLine(0)+p.underLine(2)+\"UGX \"+receiptDetails.get(7).toString()+\"/=\"+p.underLine(0));\np.newLine(); \np.alignLeft();\np.setText(\"Savings Balance: \" +p.underLine(0)+p.underLine(2)+\"UGX \"+receiptDetails.get(8).toString()+\"/=\"+p.underLine(0));\np.newLine(); \np.alignLeft();\np.emphasized(true);\n//p.setText(\"Customer Name: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(4).toString()+p.underLine(0));\n//p.newLine(); \n//p.emphasized(false);\n\np.addLineSeperator();\np.doubleStrik(true);\np.newLine();\np.underLine(2) ;\np.setText(\"Officer: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(5).toString()+p.underLine(0));\np.newLine();\np.addLineSeperatorX();\n\np.addLineSeperator();\np.doubleStrik(true);\np.newLine();\np.underLine(2) ;\np.setText(\"Officer Signiture:\");\np.addLineSeperatorX();\np.newLine();\np.addLineSeperator();\np.doubleStrik(true);\n//p.newLine();\np.underLine(2) ;\np.setText(\"Customer Signiture:\");\np.addLineSeperatorX();\n//p.newLine();\n//p.newLine();\n//p.newLine();\n//p.newLine();\n//p.newLine();\n//p.newLine();\n//p.newLine();\np.newLine();\np.setText(\"OFFICE NUMBER: \"+receiptDetails.get(12).toString());\n\np.newLine();\np.addLineSeperatorX();\n//p.newLine();\np.feed((byte)3);\np.finit();\n\nprint.feedPrinter(dbq.printDrivers(c),p.finalCommandSet().getBytes());\n \n\n }", "private void printTxnReceipt(IApplicationManager theAppMgr, String receiptName\n , boolean isFirstPrint) {\n ReceiptLocaleSetter localeSetter = new ReceiptLocaleSetter(compositePOSTransaction.getStore()\n , getCustomer());\n ReceiptFactory receiptFactory = new ReceiptFactory(new Object[] {this\n }, receiptName);\n localeSetter.setLocale(receiptFactory);\n if (isFirstPrint)\n receiptFactory.print(theAppMgr);\n else{\n //\tSystem.out.println(\"666666666666666666666666\");\n receiptFactory.reprint(theAppMgr);\n }}", "public void savingsWithdrawReceipPrintStamp(List receiptDetails,Component c) {\n \np.resetAll();\n\np.initialize();\n\np.feedBack((byte)2);\n\np.color(0);\np.chooseFont(1);\np.alignCenter();\n//p.emphasized(true);\n//p.underLine(2);\np.setText(receiptDetails.get(1).toString());\np.newLine();\np.setText(receiptDetails.get(2).toString());\np.newLine();\np.setText(receiptDetails.get(3).toString());\np.newLine();\np.newLine();\n//p.addLineSeperatorX();\np.underLine(0);\np.emphasized(false);\np.underLine(0);\np.alignCenter();\np.setText(\" *** Savings Withdrawal ***\");\np.newLine();\np.addLineSeperator();\np.newLine();\n\np.alignLeft();\np.setText(\"Account Number: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(9).toString()+p.underLine(0));\np.newLine(); \np.alignLeft();\np.setText(\"Savings Id: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(0).toString()+p.underLine(0));\np.newLine(); \np.alignLeft();\np.emphasized(true);\np.setText(\"Customer: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(4).toString()+p.underLine(0));\np.newLine(); \n//p.emphasized(false);\n//p.setText(\"Loan+Interest: \" +p.underLine(0)+p.underLine(2)+\"UGX \"+receiptDetails.get(6).toString()+\"/=\"+p.underLine(0));\n//p.newLine();\n//p.setText(\"Date Taken: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(7).toString()+p.underLine(0));\n//p.newLine();\n//p.setText(\"Loan Status: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(14).toString()+p.underLine(0));\n//p.newLine();\np.setText(\"Withdrawal Date: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(10).toString()+p.underLine(0));\np.newLine();\np.setText(\"Withdrawal Time: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(11).toString()+p.underLine(0));\np.newLine();\n\np.underLine(0);\np.emphasized(false);\n//p.underLine(0);\np.addLineSeperator();\np.newLine();\np.alignCenter();\np.setText(\"***** Withdrawal Details ***** \");\np.newLine();\np.addLineSeperator();\np.newLine();\n\np.alignLeft();\np.setText(\"Withdrawal Made: \" +p.underLine(0)+p.underLine(2)+\"UGX \"+receiptDetails.get(7).toString()+\"/=\"+p.underLine(0));\np.newLine(); \np.alignLeft();\np.setText(\"Savings Balance: \" +p.underLine(0)+p.underLine(2)+\"UGX \"+receiptDetails.get(8).toString()+\"/=\"+p.underLine(0));\np.newLine(); \np.alignLeft();\np.emphasized(true);\n//p.setText(\"Customer Name: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(4).toString()+p.underLine(0));\n//p.newLine(); \n//p.emphasized(false);\n\np.addLineSeperator();\np.doubleStrik(true);\np.newLine();\np.underLine(2) ;\np.setText(\"Officer: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(5).toString()+p.underLine(0));\np.newLine();\np.addLineSeperatorX();\n\np.addLineSeperator();\np.doubleStrik(true);\np.newLine();\np.underLine(2) ;\np.setText(\"Officer Signiture:\");\np.addLineSeperatorX();\np.newLine();\np.addLineSeperator();\np.doubleStrik(true);\n//p.newLine();\np.underLine(2) ;\np.setText(\"Customer Signiture:\");\np.addLineSeperatorX();\np.newLine();\np.newLine();\np.newLine();\np.newLine();\np.newLine();\np.newLine();\np.newLine();\np.newLine();\np.setText(\"OFFICE NUMBER: \"+receiptDetails.get(12).toString());\n\np.newLine();\np.addLineSeperatorX();\n//p.newLine();\np.feed((byte)3);\np.finit();\n\nprint.feedPrinter(dbq.printDrivers(c),p.finalCommandSet().getBytes());\n \n\n }", "public String showReceipt(Account account);", "private void getrec() {\n\t\tcontractDetail.retrieve(stateVariable.getXwordn(), stateVariable.getXwabcd());\n\t\tnmfkpinds.setPgmInd36(! lastIO.isFound());\n\t\tnmfkpinds.setPgmInd66(isLastError());\n\t\t// BR00010 Product not found on Contract_Detail\n\t\tif (nmfkpinds.pgmInd36()) {\n\t\t\tmsgObjIdx = setMsgObj(\"OES0115\", \"XWABCD\", msgObjIdx, messages);\n\t\t\tstateVariable.setZmsage(subString(errmsg, 1, 78));\n\t\t}\n\t\telse {\n\t\t\tif (nmfkpinds.pgmInd66()) {\n\t\t\t\tif (fileds.filests == 1218) {\n\t\t\t\t\tmsgObjIdx = setMsgObj(\"Y3U9999\", \"\", msgObjIdx, messages);\n\t\t\t\t\tstateVariable.setZmsage(subString(errmsg, 1, 78));\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tmsgObjIdx = setMsgObj(\"OEM0004\", \"\", msgObjIdx, messages);\n\t\t\t\t\tstateVariable.setZmsage(subString(errmsg, 1, 78));\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tvalidt();\n\t\t\t}\n\t\t}\n\t}", "public LinkedList<String> printReceipts (TheGroceryStore g);", "public void readCustomerReceipt()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tScanner reader = new Scanner(new FileReader(\"customerReceipt.txt\"));\r\n\t\t\twhile (reader.hasNext())\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(reader.nextLine());\r\n\t\t\t}\r\n\t\t\treader.close();\r\n\t\t}\r\n\t\tcatch(FileNotFoundException e)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"FileNotFoundException\");\r\n\t\t}\r\n\t}", "public void loanStatamentStamp(List receiptDetails,Component c) {\n \np.resetAll();\n\np.initialize();\n\np.feedBack((byte)2);\n\np.color(0);\np.chooseFont(1);\np.alignCenter();\n//p.emphasized(true);\n//p.underLine(2);\np.setText(receiptDetails.get(1).toString());\np.newLine();\np.setText(receiptDetails.get(2).toString());\np.newLine();\np.setText(receiptDetails.get(3).toString());\np.newLine();\np.newLine();\n//p.addLineSeperatorX();\np.underLine(0);\np.emphasized(false);\np.underLine(0);\np.alignCenter();\np.setText(\" *** Savings Withdrawal ***\");\np.newLine();\np.addLineSeperator();\np.newLine();\n\np.alignLeft();\np.setText(\"Account Number: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(9).toString()+p.underLine(0));\np.newLine(); \np.alignLeft();\np.setText(\"Savings Id: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(0).toString()+p.underLine(0));\np.newLine(); \np.alignLeft();\np.emphasized(true);\np.setText(\"Customer: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(4).toString()+p.underLine(0));\np.newLine(); \n//p.emphasized(false);\n//p.setText(\"Loan+Interest: \" +p.underLine(0)+p.underLine(2)+\"UGX \"+receiptDetails.get(6).toString()+\"/=\"+p.underLine(0));\n//p.newLine();\n//p.setText(\"Date Taken: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(7).toString()+p.underLine(0));\n//p.newLine();\n//p.setText(\"Loan Status: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(14).toString()+p.underLine(0));\n//p.newLine();\np.setText(\"Withdrawal Date: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(10).toString()+p.underLine(0));\np.newLine();\np.setText(\"Withdrawal Time: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(11).toString()+p.underLine(0));\np.newLine();\n\np.underLine(0);\np.emphasized(false);\n//p.underLine(0);\np.addLineSeperator();\np.newLine();\np.alignCenter();\np.setText(\"***** Withdrawal Details ***** \");\np.newLine();\np.addLineSeperator();\np.newLine();\n\np.alignLeft();\np.setText(\"Withdrawal Made: \" +p.underLine(0)+p.underLine(2)+\"UGX \"+receiptDetails.get(7).toString()+\"/=\"+p.underLine(0));\np.newLine(); \np.alignLeft();\np.setText(\"Savings Balance: \" +p.underLine(0)+p.underLine(2)+\"UGX \"+receiptDetails.get(8).toString()+\"/=\"+p.underLine(0));\np.newLine(); \np.alignLeft();\np.emphasized(true);\n//p.setText(\"Customer Name: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(4).toString()+p.underLine(0));\n//p.newLine(); \n//p.emphasized(false);\n\np.addLineSeperator();\np.doubleStrik(true);\np.newLine();\np.underLine(2) ;\np.setText(\"Officer: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(5).toString()+p.underLine(0));\np.newLine();\np.addLineSeperatorX();\n\np.addLineSeperator();\np.doubleStrik(true);\np.newLine();\np.underLine(2) ;\np.setText(\"Officer Signiture:\");\np.addLineSeperatorX();\n//p.newLine();\np.addLineSeperator();\np.doubleStrik(true);\np.newLine();\np.newLine();\np.newLine();\np.newLine();\np.newLine();\np.newLine();\np.newLine();\np.newLine();\np.underLine(2) ;\np.setText(\"Customer Signiture:\");\n//p.addLineSeperatorX();\n//p.newLine();\n//p.setText(\"OFFICE NUMBER: \"+receiptDetails.get(17).toString());\np.addLineSeperatorX();\n//p.newLine();\np.feed((byte)3);\np.finit();\n\nprint.feedPrinter(dbq.printDrivers(c),p.finalCommandSet().getBytes());\n \n\n }", "@Override\n public String toString() {\n return \"Receipt{\"\n + \"itemsReceived=\" + itemsReceived\n + \", itemsOutOfStock=\" + itemsOutOfStock\n + \", removedItems=\" + removedItems\n + '}';\n }", "private boolean createDepartmentData(String token, String foodRefId, String department, List<String> items, List<String> qtys, List<String> remarks, List<String> departmentNames, List<String> seats) {\n String method = \"\";\n //Bitmap logoData = BitmapFactory.decodeResource(getResources(), R.drawable.store);\n StringBuilder textData = new StringBuilder();\n final int barcodeWidth = 3;\n final int barcodeHeight = 7;\n\n /*\n if (mPrinter == null) {\n return false;\n }\n */\n\n if (department.toLowerCase().contains(\"consolidation\")) {\n consolidateDebugMsg += \"P1\";\n }\n\n try {\n method = \"addTextAlign\";\n mPrinter.addTextAlign(Printer.ALIGN_CENTER);\n\n /*\n method = \"addImage\";\n mPrinter.addImage(logoData, 0, 0,\n logoData.getWidth(),\n logoData.getHeight(),\n Printer.COLOR_1,\n Printer.MODE_MONO,\n Printer.HALFTONE_DITHER,\n Printer.PARAM_DEFAULT,\n Printer.COMPRESS_AUTO);\n*/\n\n\n method = \"addTextStyle\";\n mPrinter.addTextStyle(Printer.PARAM_DEFAULT, Printer.FALSE, Printer.TRUE, Printer.PARAM_DEFAULT);\n\n method = \"addTextSize\";\n mPrinter.addTextSize(2, 2);\n\n method = \"addText\";\n //mPrinter.addText(token + \"\\n\"); /* foodRefNo */\n mPrinter.addText(foodRefId + \"\\n\"); /* foodRefNo */\n\n method = \"addTextSize\";\n mPrinter.addTextSize(1, 1);\n\n\n method = \"addTextStyle\";\n mPrinter.addTextStyle(Printer.PARAM_DEFAULT, Printer.FALSE, Printer.FALSE, Printer.PARAM_DEFAULT);\n\n method = \"addTextAlign\";\n mPrinter.addTextAlign(Printer.ALIGN_LEFT);\n\n\n method = \"addText\";\n mPrinter.addText(\"_______________________________________________\");\n\n method = \"addTextAlign\";\n mPrinter.addTextAlign(Printer.ALIGN_CENTER);\n\n\n method = \"addFeedLine\";\n mPrinter.addFeedLine(2);\n\n\n if (department.toLowerCase().indexOf(\"consolidation\") >= 0) {\n String displaySeats = \"\";\n\n // By Consolidation Table\n int noOfComma = 0;\n if (items.size() > 0) {\n for (int l = 0; l < items.size(); l++) {\n\n int chkInside = seats.get(l).toLowerCase().indexOf(displaySeats.toLowerCase());\n\n if (\"\".compareTo(displaySeats) == 0) {\n\n\n chkInside = -1;\n }\n\n if (chkInside >= 0) {\n // Found\n\n } else {\n if (\"\".compareTo(displaySeats) != 0) {\n\n if (noOfComma % 4 != 0) {\n displaySeats += \",\";\n }\n\n }\n displaySeats += seats.get(l);\n displaySeats += seats.get(l).toString();\n\n noOfComma++;\n\n if (noOfComma % 4 == 0) {\n displaySeats += \"\\n\";\n }\n\n\n }\n }\n }\n\n /*\n textData.append(\" VIP | \" + displaySeats + \" \");\n method = \"addText\";\n mPrinter.addText(textData.toString());\n //System.out.print(textData.toString());\n textData.delete(0, textData.length());\n */\n\n textData.append(\" VIP | \\n\");\n method = \"addText\";\n mPrinter.addText(textData.toString());\n //System.out.print(textData.toString());\n textData.delete(0, textData.length());\n\n\n method = \"addTextStyle\";\n mPrinter.addTextStyle(Printer.PARAM_DEFAULT, Printer.FALSE, Printer.TRUE, Printer.PARAM_DEFAULT);\n\n method = \"addTextAlign\";\n mPrinter.addTextAlign(Printer.ALIGN_RIGHT);\n\n\n method = \"addText\";\n textData.append(\"\" + displaySeats + \"\");\n mPrinter.addText(textData.toString());\n textData.delete(0, textData.length());\n\n\n // Restore original Style\n method = \"addTextStyle\";\n mPrinter.addTextStyle(Printer.PARAM_DEFAULT, Printer.FALSE, Printer.FALSE, Printer.PARAM_DEFAULT);\n\n method = \"addTextAlign\";\n mPrinter.addTextAlign(Printer.ALIGN_LEFT);\n\n //mPrinter.addTextAlign(Printer.ALIGN_CENTER);\n\n\n } else {\n String displaySeats = \"\";\n int noOfComma = 0;\n // Department\n if (seats.size() > 0) {\n for (int l = 0; l < seats.size(); l++) {\n String tmpDepartName = departmentNames.get(l);\n if (tmpDepartName.compareTo(department) == 0) {\n\n int chkInside = seats.get(l).toLowerCase().indexOf(displaySeats.toLowerCase());\n\n if (\"\".compareTo(displaySeats) == 0) {\n chkInside = -1;\n }\n\n if (chkInside >= 0) {\n // Found\n\n } else {\n if (\"\".compareTo(displaySeats) != 0) {\n if (noOfComma % 4 != 0) {\n displaySeats += \",\";\n }\n }\n displaySeats += seats.get(l).toString();\n\n noOfComma++;\n\n if (noOfComma % 4 == 0) {\n displaySeats += \"\\n\";\n }\n }\n\n\n }\n }\n\n\n }\n\n //textData.append(displaySeats + \"\\n\");\n /*\n textData.append(\" VIP | \" + displaySeats + \" \");\n method = \"addText\";\n mPrinter.addText(textData.toString());\n //System.out.print(\" VIP | \" + displaySeats + \" \");\n textData.delete(0, textData.length());\n */\n\n\n textData.append(\" VIP | \\n\");\n method = \"addText\";\n mPrinter.addText(textData.toString());\n //System.out.print(textData.toString());\n textData.delete(0, textData.length());\n\n\n method = \"addTextStyle\";\n mPrinter.addTextStyle(Printer.PARAM_DEFAULT, Printer.FALSE, Printer.TRUE, Printer.PARAM_DEFAULT);\n\n method = \"addTextAlign\";\n mPrinter.addTextAlign(Printer.ALIGN_RIGHT);\n\n\n method = \"addText\";\n textData.append(\"\" + displaySeats + \"\");\n mPrinter.addText(textData.toString());\n textData.delete(0, textData.length());\n\n\n // Restore original Style\n method = \"addTextStyle\";\n mPrinter.addTextStyle(Printer.PARAM_DEFAULT, Printer.FALSE, Printer.FALSE, Printer.PARAM_DEFAULT);\n\n\n method = \"addTextAlign\";\n mPrinter.addTextAlign(Printer.ALIGN_LEFT);\n\n }\n\n\n method = \"addFeedLine\";\n mPrinter.addFeedLine(2);\n\n if (department.toLowerCase().contains(\"consolidation\")) {\n consolidateDebugMsg += \"P2\";\n }\n\n // method = \"addText\";\n // mPrinter.addText(textData.toString());\n // textData.delete(0, textData.length());\n\n\n //if (\"Consolidate\".compareTo(department) == 0) {\n if (department.toLowerCase().contains(\"consolidation\")) {\n\n method = \"addText\";\n mPrinter.addText(\"_______________________________________________\\n\\n\");\n\n method = \"addSymbol\";\n mPrinter.addSymbol(token, Printer.SYMBOL_PDF417_STANDARD, Printer.LEVEL_0, barcodeWidth, barcodeHeight, 0);\n\n /* foodRefNo */\n/*\n method = \"addText\";\n mPrinter.addText(\"\\n\\n\");\n\n method=\"addHLine\";\n mPrinter.addHLine(0, 100, Printer.LINE_THIN);\n*/\n\n method = \"addTextAlign\";\n mPrinter.addTextAlign(Printer.ALIGN_LEFT);\n\n\n }\n\n method = \"addText\";\n mPrinter.addText(\"_______________________________________________\\n\");\n\n\n method = \"addTextStyle\";\n mPrinter.addTextStyle(Printer.PARAM_DEFAULT, Printer.TRUE, Printer.TRUE, Printer.PARAM_DEFAULT);\n mPrinter.addTextAlign(Printer.ALIGN_LEFT);\n\n method = \"addTextAlign\";\n mPrinter.addTextAlign(Printer.ALIGN_LEFT);\n\n method = \"addFeedLine\";\n mPrinter.addFeedLine(1);\n textData.append(\"Department\\n\");\n\n\n method = \"addTextStyle\";\n mPrinter.addTextStyle(Printer.PARAM_DEFAULT, Printer.TRUE, Printer.TRUE, Printer.PARAM_DEFAULT);\n method = \"addText\";\n mPrinter.addText(textData.toString());\n textData.delete(0, textData.length());\n\n // Restore the Text Style\n method = \"addTextStyle\";\n mPrinter.addTextStyle(Printer.PARAM_DEFAULT, Printer.FALSE, Printer.FALSE, Printer.PARAM_DEFAULT);\n\n\n method = \"addTextAlign\";\n mPrinter.addTextAlign(Printer.ALIGN_LEFT);\n\n textData.append(department + \"\\n\\n\\n\");\n method = \"addText\";\n mPrinter.addText(textData.toString());\n textData.delete(0, textData.length());\n\n\n if (department.toLowerCase().indexOf(\"consolidation\") >= 0) {\n if (items.size() > 0) {\n for (int l = 0; l < items.size(); l++) {\n\n method = \"addTextStyle\";\n mPrinter.addTextStyle(Printer.PARAM_DEFAULT, Printer.TRUE, Printer.TRUE, Printer.PARAM_DEFAULT);\n\n method = \"addTextAlign\";\n mPrinter.addTextAlign(Printer.ALIGN_LEFT);\n\n textData.append(seats.get(l).toString() + \"\\n\");\n\n method = \"addText\";\n mPrinter.addText(textData.toString());\n //System.out.print(textData.toString());\n textData.delete(0, textData.length());\n\n method = \"addTextStyle\";\n mPrinter.addTextStyle(Printer.PARAM_DEFAULT, Printer.FALSE, Printer.FALSE, Printer.PARAM_DEFAULT);\n\n method = \"addTextAlign\";\n mPrinter.addTextAlign(Printer.ALIGN_LEFT);\n\n textData.append(items.get(l).toString() + \"\\n\");\n method = \"addText\";\n mPrinter.addText(textData.toString());\n //System.out.print(textData.toString());\n textData.delete(0, textData.length());\n\n\n if (\"\".compareTo(remarks.get(l).toString()) != 0) {\n\n String tmpCheck = remarks.get(l).toString();\n\n if (tmpCheck.trim().compareTo(\"\") != 0) {\n textData.append(remarks.get(l).toString() + \"\\n\\n\");\n\n method = \"addText\";\n mPrinter.addText(textData.toString());\n //System.out.print(textData.toString());\n textData.delete(0, textData.length());\n }\n }\n }\n }\n } else {\n\n // Item\n method = \"addTextStyle\";\n mPrinter.addTextStyle(Printer.PARAM_DEFAULT, Printer.TRUE, Printer.TRUE, Printer.PARAM_DEFAULT);\n\n textData.append(\"Item Detail\\n\");\n method = \"addText\";\n mPrinter.addText(textData.toString());\n //System.out.print(textData.toString());\n textData.delete(0, textData.length());\n\n method = \"addTextStyle\";\n mPrinter.addTextStyle(Printer.PARAM_DEFAULT, Printer.FALSE, Printer.FALSE, Printer.PARAM_DEFAULT);\n\n\n if (items.size() > 0) {\n ArrayList items1 = new ArrayList();\n ArrayList remarks1 = new ArrayList();\n ArrayList qty1 = new ArrayList();\n\n for (int l = 0; l < items.size(); l++) {\n String tmpDepartName = departmentNames.get(l).toString();\n if (tmpDepartName.compareTo(department) == 0) {\n // Same Department, Check same item or not\n boolean foundItems = false;\n for (int y = 0; y < items1.size(); y++) {\n if (items1.get(y).toString().compareTo(items.get(l).toString()) == 0) {\n foundItems = true;\n\n // Add the quantity\n int orgQty = Integer.parseInt(qty1.get(y).toString());\n orgQty += Integer.parseInt(qtys.get(l).toString());\n qty1.set(y, String.valueOf(orgQty));\n\n String tmpRemark = \"\";\n if (\"\".compareTo(remarks.get(l).toString().trim()) == 0) {\n tmpRemark = remarks1.get(y).toString();\n } else {\n tmpRemark = remarks1.get(y).toString() + \"\\n\" + remarks.get(l).toString();\n }\n\n remarks1.set(y, tmpRemark);\n break;\n }\n }\n\n if (!foundItems) {\n\n items1.add(items.get(l).toString());\n qty1.add(qtys.get(l).toString());\n remarks1.add(remarks.get(l).toString().trim());\n\n }\n\n\n }\n }\n\n for (int k = 0; k < items1.size(); k++) {\n String value = items1.get(k) + \" X \" + qty1.get(k).toString();\n textData.append(value + \"\\n\");\n method = \"addText\";\n mPrinter.addText(textData.toString());\n //System.out.print(textData.toString());\n textData.delete(0, textData.length());\n\n if (\"\".compareTo(remarks1.get(k).toString()) != 0) {\n textData.append(remarks1.get(k) + \"\\n\\n\");\n method = \"addText\";\n mPrinter.addText(textData.toString());\n //System.out.print(textData.toString());\n textData.delete(0, textData.length());\n }\n }\n }\n }\n\n if (department.toLowerCase().indexOf(\"consolidation\") >= 0) {\n consolidateDebugMsg += \"P3\";\n }\n\n textData.append(\"\\n\\n\\n\");\n method = \"addText\";\n mPrinter.addText(textData.toString());\n textData.delete(0, textData.length());\n\n\n // Print Date\n method = \"addTextStyle\";\n mPrinter.addTextStyle(Printer.PARAM_DEFAULT, Printer.TRUE, Printer.TRUE, Printer.PARAM_DEFAULT);\n\n\n textData.append(\"Print Date\\n\");\n method = \"addText\";\n mPrinter.addText(textData.toString());\n textData.delete(0, textData.length());\n\n\n method = \"addTextStyle\";\n mPrinter.addTextStyle(Printer.PARAM_DEFAULT, Printer.FALSE, Printer.FALSE, Printer.PARAM_DEFAULT);\n\n\n Date currentDt = new Date();\n SimpleDateFormat displayFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm\", java.util.Locale.US);\n String displayFileDateTime = displayFormat.format(currentDt);\n textData.append(displayFileDateTime + \"\\n\\n\");\n mPrinter.addText(textData.toString());\n textData.delete(0, textData.length());\n\n\n // F&B Order ID\n method = \"addTextStyle\";\n\n mPrinter.addTextStyle(Printer.PARAM_DEFAULT, Printer.TRUE, Printer.TRUE, Printer.PARAM_DEFAULT);\n mPrinter.addTextAlign(Printer.ALIGN_RIGHT);\n\n textData.append(\"F&B Order Id\\n\");\n method = \"addText\";\n mPrinter.addText(textData.toString());\n textData.delete(0, textData.length());\n\n\n method = \"addTextStyle\";\n mPrinter.addTextStyle(Printer.PARAM_DEFAULT, Printer.FALSE, Printer.FALSE, Printer.PARAM_DEFAULT);\n\n\n textData.append(token + \"\\n\\n\");\n\n\n method = \"addText\";\n mPrinter.addText(textData.toString());\n textData.delete(0, textData.length());\n\n\n method = \"addCut\";\n mPrinter.addCut(Printer.CUT_FEED);\n\n if (department.toLowerCase().indexOf(\"consolidation\") >= 0) {\n consolidateDebugMsg += \"P4\";\n }\n } catch (Exception e) {\n // ShowMsg.showException(e, method, mContext);\n String tmp = e.getMessage();\n return false;\n }\n\n textData = null;\n\n\n return true;\n }", "public void sendReceipt(String fName, String customerEmail,int bookingNo, int numTicks,String movieTitle, String date, String timeslot){\n\t Properties props = makeProps();\r\n\t \r\n\t final String username = \"[email protected]\";\r\n\t final String password = \"movie4050\";\r\n\t \r\n\t try{\r\n\t\t Session session = Session.getDefaultInstance(props, \r\n\t\t\t\t new Authenticator(){\r\n\t\t\t \t\tprotected PasswordAuthentication getPasswordAuthentication() {\r\n\t\t\t \t\t\treturn new PasswordAuthentication(username,password);}});\r\n\t // -- Create a new message --\r\n\t Message msg = new MimeMessage(session);\r\n\t String slot;\r\n\t if(timeslot.equals(\"A\")) {\r\n\t\t slot = \"1 PM\";\r\n\t }else if(timeslot.equals(\"B\")) {\r\n\t\t slot = \"4 PM\";\r\n\t }else if(timeslot.equals(\"C\")) {\r\n\t\t slot = \"7 PM\";\r\n\t }else if(timeslot.equals(\"D\")) {\r\n\t\t slot = \"10 PM\";\r\n\t }else {\r\n\t\t slot = slot = \"Houston, we have a problem.\";\r\n\t }\r\n\t /* from */\r\n\t msg.setFrom(new InternetAddress(username));\r\n \r\n\t /* to */\r\n\t msg.setRecipients(Message.RecipientType.TO, \r\n InternetAddress.parse(customerEmail,false));\r\n\t /* title */\r\n\t msg.setSubject(\"Order Confirmation - Receipt\");\r\n \r\n\t /* text field */ \r\n\t String sendThis = \"Hello \\t\"+fName + \"!\\n\\nHere's your most recent booking for:\\t\"+movieTitle\r\n\t\t\t +\"\\nOrder Number:\\t\" + bookingNo\r\n\t\t\t +\"\\nNumber of tickets purchased:\\t\"+numTicks\r\n\t\t\t +\"\\nDate of showing:\\t\"+ date +\" at:\"+ slot\r\n\t\t\t +\"\\n\\n\\nThank you for choosing :^U\";\r\n\t msg.setText(sendThis);\r\n\t msg.setSentDate(new Date());\r\n\t Transport.send(msg);\r\n \r\n\t System.out.println(\"Message sent.\");\r\n\t }catch (MessagingException e){ \r\n\t\t System.out.println(\"Error: \" + e);\r\n\t }\r\n }", "public void loanStatament(List receiptDetails,Component c) {\n \np.resetAll();\n\np.initialize();\n\np.feedBack((byte)2);\n\np.color(0);\np.chooseFont(1);\np.alignCenter();\n//p.emphasized(true);\n//p.underLine(2);\np.setText(receiptDetails.get(1).toString());\np.newLine();\np.setText(receiptDetails.get(2).toString());\np.newLine();\np.setText(receiptDetails.get(3).toString());\np.newLine();\np.newLine();\n//p.addLineSeperatorX();\np.underLine(0);\np.emphasized(false);\np.underLine(0);\np.alignCenter();\np.setText(\" *** Savings Withdrawal ***\");\np.newLine();\np.addLineSeperator();\np.newLine();\n\np.alignLeft();\np.setText(\"Account Number: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(9).toString()+p.underLine(0));\np.newLine(); \np.alignLeft();\np.setText(\"Savings Id: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(0).toString()+p.underLine(0));\np.newLine(); \np.alignLeft();\np.emphasized(true);\np.setText(\"Customer: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(4).toString()+p.underLine(0));\np.newLine(); \n//p.emphasized(false);\n//p.setText(\"Loan+Interest: \" +p.underLine(0)+p.underLine(2)+\"UGX \"+receiptDetails.get(6).toString()+\"/=\"+p.underLine(0));\n//p.newLine();\n//p.setText(\"Date Taken: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(7).toString()+p.underLine(0));\n//p.newLine();\n//p.setText(\"Loan Status: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(14).toString()+p.underLine(0));\n//p.newLine();\np.setText(\"Withdrawal Date: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(10).toString()+p.underLine(0));\np.newLine();\np.setText(\"Withdrawal Time: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(11).toString()+p.underLine(0));\np.newLine();\n\np.underLine(0);\np.emphasized(false);\n//p.underLine(0);\np.addLineSeperator();\np.newLine();\np.alignCenter();\np.setText(\"***** Withdrawal Details ***** \");\np.newLine();\np.addLineSeperator();\np.newLine();\n\np.alignLeft();\np.setText(\"Withdrawal Made: \" +p.underLine(0)+p.underLine(2)+\"UGX \"+receiptDetails.get(7).toString()+\"/=\"+p.underLine(0));\np.newLine(); \np.alignLeft();\np.setText(\"Savings Balance: \" +p.underLine(0)+p.underLine(2)+\"UGX \"+receiptDetails.get(8).toString()+\"/=\"+p.underLine(0));\np.newLine(); \np.alignLeft();\np.emphasized(true);\n//p.setText(\"Customer Name: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(4).toString()+p.underLine(0));\n//p.newLine(); \n//p.emphasized(false);\n\np.addLineSeperator();\np.doubleStrik(true);\np.newLine();\np.underLine(2) ;\np.setText(\"Officer: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(5).toString()+p.underLine(0));\np.newLine();\np.addLineSeperatorX();\n\np.addLineSeperator();\np.doubleStrik(true);\np.newLine();\np.underLine(2) ;\np.setText(\"Officer Signiture:\");\np.addLineSeperatorX();\n//p.newLine();\np.addLineSeperator();\np.doubleStrik(true);\n//p.newLine();\n//p.newLine();\n//p.newLine();\n//p.newLine();\n//p.newLine();\n//p.newLine();\n//p.newLine();\n//p.newLine();\np.underLine(2) ;\np.setText(\"Customer Signiture:\");\n//p.addLineSeperatorX();\np.newLine();\np.setText(\"OFFICE NUMBER: \"+receiptDetails.get(17).toString());\np.addLineSeperatorX();\n//p.newLine();\np.feed((byte)3);\np.finit();\n\nprint.feedPrinter(dbq.printDrivers(c),p.finalCommandSet().getBytes());\n \n\n }", "public static void saveReceipt()\r\n\t{\r\n\t\tPrintWriter listWriter = null;\r\n\t\tPrintWriter contentWriter = null;\r\n\t\tnewReceipt = getTimeStamp();\r\n\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\tlistWriter = new PrintWriter(new FileOutputStream(RECEIPT_LIST_FILE, true));\r\n\t\t\tcontentWriter = new PrintWriter(RECEIPT_PATH + newReceipt);\r\n\t\t}\r\n\t\tcatch(FileNotFoundException e)\r\n\t\t{\r\n\t\t\tJOptionPane.showMessageDialog(null,\"File Not Found\");\r\n\t\t}\r\n\t\t\r\n\t\tlistWriter.println(newReceipt);\r\n\t\tfor(int count=0; count < listModel.getSize(); count++)\r\n\t\t\tcontentWriter.println(listModel.elementAt(count));\r\n\t\t\r\n\t\tlistWriter.close();\r\n\t\tcontentWriter.close();\r\n\t\tclearReceipt();\r\n\t}", "void createOrderText(Client_H client, ProductController_H menu) throws OrderLineFullListException;", "private synchronized void print4() {\n try {\n int jNum = 0;\n\n byte[] printText22 = new byte[10240];\n\n byte[] oldText = setAlignCenter('0');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setInternationalCharcters('3');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setAlignCenter('1');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setBold(true);\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n\n oldText = setWH('4');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n\n oldText = getGbk(\"FoodCiti\");\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n\n oldText = setAlignCenter('1');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setBold(true);\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n\n oldText = setWH('4');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n\n oldText = getGbk(\"\\nOrder No : \" + order.getOrderNo());\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setWH('2');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setAlignCenter('1');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setBold(false);\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n// oldText = getGbk(\"\\n-----------------------\\n\");\n oldText = getGbk(\"\\n........................\\n\");\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setAlignCenter('1');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setBold(true);\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setWH('2');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = getGbk(SessionManager.get(getActivity()).getRestaurantName() + \"\\n\");\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n String location = SessionManager.get(getActivity()).getRestaurantLocation();\n int spacecount = commacount(location);\n\n oldText = setAlignCenter('1');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setBold(false);\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setWH('2');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n if (spacecount >= 1) {\n oldText = getGbk(location.substring(0, location.indexOf(',')) + \"\\n\" + location.substring(location.indexOf(',') + 1) + \"\\n\");\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n } else {\n oldText = getGbk(location + \"\\n\");\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n }\n\n\n oldText = setAlignCenter('1');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setBold(false);\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setWH('2');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n\n oldText = getGbk(SessionManager.get(getActivity()).getRestaurantPostalCode() + \"\\n\");\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setAlignCenter('1');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setBold(false);\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setWH('2');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = getGbk(\"Tel:\" + SessionManager.get(getActivity()).getRestaurantPhonenumber());\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setWH('2');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setAlignCenter('1');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setBold(false);\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n// oldText = getGbk(\"\\n-----------------------\\n\");\n oldText = getGbk(\"\\n........................\\n\");\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n\n if (order.getOrderSpecialInstruction() != null) {\n oldText = setAlignCenter('1');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setBold(true);\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setWH('2');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = getGbk(order.getOrderSpecialInstruction());\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setWH('2');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setAlignCenter('1');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setBold(false);\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n// oldText = getGbk(\"\\n-----------------------\\n\");\n oldText = getGbk(\"\\n........................\\n\");\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n }\n\n oldText = setAlignCenter('0');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n\n oldText = setWH('5');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setBold(false);\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setCusorPosition(390);\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = getGbk(\" \" + \"GBP\" + \"\\n\");\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n // Toast.makeText(getContext(),\"Size \"+order.getOrderedItemList().size(),Toast.LENGTH_LONG).show();\n\n for (int i = 0; i < order.getOrderedItemList().size(); i++) {\n\n OrderedItem orderedItem = order.getOrderedItemList().get(i);\n\n\n oldText = setBold(true);\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setWH('5');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n// int qntity = Integer.parseInt(orderedItem.getQuantity());\n oldText = getGbk(\" \" + orderedItem.getQuantity() + \" x \" + orderedItem.getItemData().getItemName());\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n\n oldText = setCusorPosition(390);\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n Double total_price = Double.valueOf(orderedItem.getTotalPrice()) * Double.valueOf(orderedItem.getQuantity());\n\n oldText = getGbk(\" \" + String.format(Locale.getDefault(), \"%.2f\", total_price) + \"\\n\");\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n\n oldText = setBold(true);\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n for (int j = 0; j < orderedItem.getSubItemList().size(); j++) {\n\n oldText = setWH('5');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setCusorPosition(35);\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n SubItem subItem = orderedItem.getSubItemList().get(j);\n\n String subitemname = subItem.getItemName();\n int subItemOrderQty = Integer.parseInt(subItem.getOrderedQuantity());\n\n if (subItemOrderQty > 1) {\n oldText = getGbk(\" \" + subItem.getOrderedQuantity() + \" x \" + subitemname + \"\\n\");\n } else {\n oldText = getGbk(\" \" + subitemname + \"\\n\");\n }\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n // By Ravi\n// oldText = getGbk(\"........................\\n\");\n// System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n// jNum += oldText.length;\n//////////////////////////////////////////////////////////////////////////////////////////////////////////\n /** TODO\n * change here for print suboptions text\n * **/\n //print text for suboptions items\n if (subItem.getSubOptions() != null && subItem.getSubOptions().size() > 0) {\n List<SubOptions> subOptions = subItem.getSubOptions();\n for (int k = 0; k < subOptions.size(); k++) {\n SubOptions options = subOptions.get(k);\n oldText = getGbk(\" - \" + options.getName() + \"\\n\");\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n }\n }\n\n }\n\n\n oldText = setWH('2');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n /*oldText = setAlignCenter('1');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;*/\n\n oldText = setBold(false);\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n// oldText = getGbk(\"-----------------------\\n\");\n oldText = getGbk(\"........................\\n\");\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = getGbk(\"\\n\");\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n }\n\n oldText = setAlignCenter('0');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setBold(true);\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setWH('5');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = getGbk(\"Subtotal : \");\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setCusorPosition(390);\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n\n oldText = getGbk(\" \" + String.format(\" %.2f\", Double.valueOf(order.getOrderSubtotal())) + \"\\n\");\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n if (Double.valueOf(order.getDiscount()) > 0) {\n oldText = setAlignCenter('0');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setBold(true);\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setWH('5');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = getGbk(\"Discount : \");\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setCusorPosition(390);\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n\n oldText = getGbk(\" \" + String.format(\" %.2f\", Double.valueOf(order.getDiscount())) + \"\\n\");\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n }\n\n\n if (Double.valueOf(order.getTax()) > 0) {\n oldText = setAlignCenter('0');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setBold(true);\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setWH('5');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = getGbk(\"Service Charge : \");\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setCusorPosition(390);\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n if (order.getTax() != null) {\n oldText = getGbk(\" \" + String.format(\" %.2f\", Double.valueOf(order.getTax())) + \"\\n\");\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n } else {\n oldText = getGbk(\" \" + \"0.00\" + \"\\n\");\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n }\n }\n\n if (!order.getOrderDelivery().equals(Consts.PICK_UP) && Double.valueOf(order.getDeliveryCharges()) > 0) {\n oldText = setAlignCenter('0');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setBold(true);\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setWH('5');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = getGbk(\"Delivery Charges : \");\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setCusorPosition(390);\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n\n oldText = getGbk(\" \" + String.format(\" %.2f\", Double.valueOf(order.getDeliveryCharges())) + \"\\n\");\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n }\n\n\n oldText = setWH('2');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setAlignCenter('1');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setBold(false);\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n// oldText = getGbk(\"\\n-----------------------\\n\");\n oldText = getGbk(\"........................\\n\");\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setAlignCenter('0');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setWH('2');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setBold(true);\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = getGbk(\"TOTAL Price: \");\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setCusorPosition(370);\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setWH('2');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setBold(true);\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n //Toast.makeText(getActivity(),String.valueOf(order.getOrderTotal()),Toast.LENGTH_LONG).show();\n\n oldText = getGbk(\" \" + String.format(\" %.2f\", Double.valueOf(order.getOrderTotal())));\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n\n oldText = setWH('2');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setAlignCenter('1');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setBold(false);\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n// oldText = getGbk(\"\\n-----------------------\\n\");\n oldText = getGbk(\"\\n........................\\n\");\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n\n if (order.getFreenDrinkText() != null && !TextUtils.isEmpty(order.getFreenDrinkText())) {\n oldText = setAlignCenter('0');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setWH('1');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setBold(true);\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n String freeTxt = \"Free \" + order.getFreenDrinkText();\n oldText = getGbk(freeTxt);\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n }\n\n\n oldText = setWH('2');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setAlignCenter('1');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setBold(false);\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n// oldText = getGbk(\"\\n-----------------------\\n\");\n oldText = getGbk(\"\\n........................\\n\");\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setBold(true);\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setWH('4');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setAlignCenter('1');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n\n /** TODO\n * change here to print payment method text\n * **/\n //print text for payment method\n if (order.getOrderPaid().equalsIgnoreCase(\"paypal\") || order.getOrderPaid().equalsIgnoreCase(\"worldpay\")) {\n oldText = getGbk(order.getOrderPaid() + \" PAID \" + \"\\n\");\n } else {\n oldText = getGbk(order.getOrderPaid() + \" NOT PAID \" + \"\\n\");\n }\n// oldText = getGbk(\"ORDER BY \" + order.getOrderPaid() + \"\\n\");\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n\n oldText = setAlignCenter('1');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n\n oldText = setWH('4');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setBold(true);\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n\n if (order.getOrderDelivery().equals(Consts.PICK_UP)) {\n oldText = getGbk(\"COLLECTION\" + \"\\n\");\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n } else {\n oldText = getGbk(\"DELIVERY\" + \"\\n\");\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n\n }\n\n oldText = setAlignCenter('1');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setWH('2');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setBold(false);\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n // String strTmp2 = new SimpleDateFormat(\"dd-MM-yyyy hh:mm a\", Locale.UK).format(new Date());\n oldText = getGbk(getDate(order.getOrderTime()));\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n\n oldText = setWH('2');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setAlignCenter('1');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setBold(false);\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n// oldText = getGbk(\"\\n-----------------------\\n\");\n oldText = getGbk(\"\\n........................\\n\");\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setAlignCenter('0');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setWH('4');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = getGbk(\"Customer Details: \" + \"\\n\" +\n order.getUser().getUserName().toUpperCase() + \"\\n\" +\n order.getUser().getAddress().toUpperCase() + \"\\n\" +\n order.getUser().getCity().toUpperCase() + \"\\n\" +\n order.getUser().getPostalCode().toUpperCase() + \"\\n\" +\n order.getUser().getPhNo().toUpperCase()\n );\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setWH('2');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setAlignCenter('1');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setBold(false);\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n// oldText = getGbk(\"\\n-----------------------\\n\");\n oldText = getGbk(\"\\n........................\\n\");\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setWH('5');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setBold(true);\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setAlignCenter('1');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = getGbk(\"Ref:\");\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n\n oldText = getGbk(order.getOrderId());\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setWH('2');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setAlignCenter('1');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setBold(false);\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n// oldText = getGbk(\"\\n-----------------------\\n\");\n oldText = getGbk(\"\\n........................\\n\");\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setAlignCenter('1');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setBold(true);\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n\n oldText = setWH('2');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n\n oldText = getGbk(\"www.foodciti.co.uk\");\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = getGbk(\"\\n\\n\");\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n /*String s = new String(printText22);\n Toast.makeText(getActivity(),s,Toast.LENGTH_LONG).show();*/\n\n oldText = CutPaper();\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n Intent intent = new Intent(PrintUtils.ACTION_PRINT_REQUEST);\n intent.putExtra(PrintUtils.PRINT_DATA, printText22);\n localBroadcastManager.sendBroadcast(intent);\n\n// mOutputStream.write(printText22);\n\n } catch (Exception ex) {\n Exlogger exlogger = new Exlogger();\n exlogger.setErrorType(\"Print Error\");\n exlogger.setErrorMessage(ex.getMessage());\n exlogger.setScreenName(\"OrderInfo->>print4() function\");\n logger.addException(exlogger);\n Toast.makeText(getActivity(), ex.getMessage(), Toast.LENGTH_LONG).show();\n\n\n }\n }", "public receipt() {\n initComponents();\n \n }", "private CartReceiptResponse executeReceiptApi(final CartReceiptRequest receiptRequest) {\n CartReceiptResponse receiptResponse = null;\n HttpURLConnection conn = null;\n InputStreamReader inputStreamReader = null;\n BufferedReader reader = null;\n InputStream inputStream = null;\n try {\n ObjectMapper mapper = new ObjectMapper();/* Set request object in to jackson object */\n String requestJson = mapper.writeValueAsString(receiptRequest);\n\n String mobileApiServiceBaseUrl = APP_CONFIG_BUNDLE.getString(\"pdf.mobileApiBaseUrl\");\n /* Constructing URL for the RE - PRINT API call */\n String apiUrl = mobileApiServiceBaseUrl + \"/api\" + ApiPaths.BP_PUBLIC_BASE +\n ApiPaths.BP_CART_RECEIPT_REPRINT_3_2_3;\n URL url = new URL(apiUrl);/* String type URL passed to URL class constructor */\n LOGGER.debug(\"Api url :: \" + url);\n conn = (HttpURLConnection) url.openConnection();/* connection opened */\n conn.setDoOutput(true);\n conn.setRequestMethod(\"POST\");\n conn.setRequestProperty(\"Content-Type\", \"application/json\");\n /* Created an object for the OutputStream and write byte information */\n OutputStream os = conn.getOutputStream();\n os.write(requestJson.getBytes());\n os.flush();\n\n\t\t\t/* error from server */\n int responseCode = conn.getResponseCode();\n if (responseCode != 200) {\n LOGGER.warn(\"unable to call API to get data to render the PDF: responseCode=\" + responseCode\n + \", url=\" + apiUrl\n + \", request=\" + requestJson);\n inputStream = conn.getErrorStream();\n if (null == inputStream) {\n inputStream = conn.getInputStream();\n }\n } else {\n inputStream = conn.getInputStream();\n }\n\n inputStreamReader = new InputStreamReader(inputStream);\n reader = new BufferedReader(inputStreamReader);\n String output;\n StringBuilder apiResponse = new StringBuilder();\n while ((output = reader.readLine()) != null) {\n apiResponse.append(output);\n }\n if (responseCode != 200) {\n LOGGER.warn(\"apiResponse=\" + apiResponse);\n } else {\n LOGGER.debug(\"apiResponse=\" + apiResponse);\n }\n String responseJson = apiResponse.toString();\n System.out.println(\"response :\" + apiResponse);\n /* De serializing jackSon object in to CartReceiptResponse*/\n receiptResponse = mapper.readValue(responseJson, CartReceiptResponse.class);\n\n } catch (final Throwable e) {\n LOGGER.error(\"trouble executing the receipt api: receiptRequest=\" + receiptRequest, e);\n return null;\n } finally {\n try {\n if (null != conn) {\n conn.disconnect();\n }\n } catch (final Throwable e) {\n LOGGER.error(\"trouble disconnecting\", e);\n } finally {\n try {\n if (null != reader) {\n reader.close();\n }\n } catch (final Throwable e) {\n LOGGER.error(\"trouble closing reader\", e);\n } finally {\n try {\n if (null != inputStream) {\n inputStream.close();\n }\n } catch (final Throwable e) {\n LOGGER.error(\"trouble closing inputStream\", e);\n } finally {\n try {\n if (null != inputStreamReader) {\n inputStreamReader.close();\n }\n } catch (final Throwable e) {\n LOGGER.error(\"trouble closing inputStreamReader\", e);\n }\n }\n }\n }\n }\n return receiptResponse;\n }", "private void receiveOrder() {\n Intent intent = getIntent();\n MyOrder order = (MyOrder) intent.getSerializableExtra(getResources().getString(R.string.intentMesOrder));\n String help;\n final ArrayList<String> listing = new ArrayList<String>();\n ArrayAdapter<String> adap = new ArrayAdapter<String>(this,\n android.R.layout.simple_list_item_1, listing);\n tableSauceString = order.findTableSauce();\n\n switch (intent.getExtras().getInt(getResources().getString(R.string.intentMesOrderType))) { // depending on the order type the received information are displayed\n case 1:\n txtOrderType.setText(getResources().getString(R.string.stringPartOption) +\" \" +\n getResources().getString(R.string.rdbtPizzeria).toString());\n firstInfo.setText(getResources().getString(R.string.stringPartTable) + \" \" +\n String.valueOf(intent.getExtras().getInt(getResources()\n .getString(R.string.intentMesTable))));\n break;\n case 2:\n txtOrderType.setText(getResources().getString(R.string.stringPartOption)+ \" \" +\n getResources().getString(R.string.rdbtTakeaway).toString());\n firstInfo.setText(intent.getExtras().getString(getResources().getString(R.string.intentMesPacking)));\n secondInfo.setText(intent.getExtras().getString(getResources().getString(R.string.intentMesTime)));\n break;\n case 3:\n txtOrderType.setText(getResources().getString(R.string.stringPartOption)+ \" \" +\n getResources().getString(R.string.rdbtDelivery).toString());\n firstInfo.setText(intent.getExtras().getString(getResources().getString(R.string.intentMesAddress)));\n secondInfo.setText(intent.getExtras().getString(getResources().getString(R.string.intentMesPhone)));\n break;\n }\n help = String.format(\"%.2f\", order.getTotal());\n txtMoney.setText(help + getResources()\n .getString(R.string.currency));\n\n if(!(tableSauceString.equals(getResources().getString(R.string.stringNone)))){\n help = String.format(\"%.2f\", order.getTableSaucePrice());\n txtTableSauce.setText(getResources().getString(R.string.stringPartSauce)+\" \"\n + tableSauceString + \"(\" + help+ getResources().getString(R.string.currency) +\" )\");\n }\n\n helpTitle = order.writeOrder();\n helpInfo = order.getMoreOrder();\n for (int i = 0; i < helpTitle.length; i++) {\n if (helpTitle[i] != null) {\n listing.add(helpTitle[i]);\n }\n }\n list.setAdapter(adap);\n list.setOnItemLongClickListener(this);\n }", "private void loadRec() {\n\t\tString test = \"ID, Name, Amount, Price\\n\";\n\t\t//formatting for string to load into the screen\n\t\tfor(int i=0 ; i< t.items.size() ; i++) {\n\t\t\ttest += (i+1) + \" \" + t.items.get(i).name +\", \" \n\t\t\t\t\t+ t.items.get(i).amount + \n\t\t\t\t\t\", $\"+ t.items.get(i).price +\"\\n\";\n\t\t}\n\t\tthis.reciet.setText(test);\n\t}", "private void designBillTransactionInfo(CartReceiptResponse receiptResponse, final Document document, Locale locale)\n throws DocumentException, IOException {\n LOGGER.debug(\"Entered in designBillTransactionInfo() method\");\n SubmittedBill[] submittedBills = receiptResponse.getSubmittedBills();\n /* Start of Bill Submit Section */\n PdfPTable paymentSectionTable = new PdfPTable(3);\n paymentSectionTable.setWidths(new int[]{50, 150, 50});\n PdfPCell paymentSectionBlankSpaceCell = new PdfPCell(new Phrase(\" \", getFont(WHITE_COLOR, 8, Font.BOLD)));\n cellAlignment(paymentSectionBlankSpaceCell, Element.ALIGN_LEFT, GRAY_COLOR, 0);\n cellAddingToTable(paymentSectionTable, paymentSectionBlankSpaceCell, Rectangle.NO_BORDER, 3, 0);\n BigDecimal totalBillAmount = new BigDecimal(0);\n BigDecimal totalFeeAmount = new BigDecimal(0);\n Boolean flag = true;\n\n if (submittedBills != null && receiptResponse.getReturnedItems().length != 0) {\n returnPaymentHeading(locale, paymentSectionTable);\n for (final SubmittedBill submittedBill : submittedBills) {\n final ReturnReceiptItem[] returnReceiptItems = receiptResponse.getReturnedItems();\n for (final ReturnReceiptItem returnReceiptItem : returnReceiptItems) {\n long cartId = returnReceiptItem.getCartItemId();\n if (cartId == submittedBill.getId() &&\n submittedBill.getStatus().name().equalsIgnoreCase(PdfConstants.RETURNED)) {\n designReturnHeaderBillSection(submittedBill,\n returnReceiptItem,\n locale,\n paymentSectionTable,\n paymentSectionBlankSpaceCell, receiptResponse);\n }\n }\n }\n }\n\n if (submittedBills != null) {\n for (final SubmittedBill submittedBill : submittedBills) {\n BigDecimal transactionFee = new BigDecimal(0);\n if (submittedBill.getFee() != null) {\n transactionFee = submittedBill.getFee();\n }\n if (flag.equals(true)) {\n setTableForCells(paymentSectionTable, locale);\n cellAlignment(paymentSectionBlankSpaceCell, Element.ALIGN_LEFT, WHITE_COLOR, 0);\n cellAddingToTable(paymentSectionTable, paymentSectionBlankSpaceCell, Rectangle.NO_BORDER, 3, 0);\n flag = false;\n }\n\n\t\t\t\t/* Paid Biller Details Start */\n if (getStatusForPaid(submittedBill.getStatus().name())) {\n designSubmittedBillsSection(submittedBill, locale, paymentSectionTable);\n totalBillAmount = totalBillAmount.add(submittedBill.getAmount());\n totalFeeAmount = totalFeeAmount.add(transactionFee);\n }\n /* End Paid Biller Details */\n\n\t\t\t\t/* Failed Biller Details Start */\n if (getStatusForRejected(submittedBill.getStatus().name())) {\n LOGGER.debug(\"Enterd in to REJECTED Related section after checking all status\");\n designFailedBillsSection(locale, paymentSectionTable,\n submittedBill);\n }\n /* End Failed Biller Details */\n\n if (submittedBill.getStatus().name().equalsIgnoreCase(PdfConstants.RETURNED)) {\n LOGGER.debug(\"Enterd in to RETURNED Related section after checking all status\");\n designReturnedBillsSection(locale, paymentSectionTable, paymentSectionBlankSpaceCell,\n submittedBill);\n totalBillAmount = totalBillAmount.add(submittedBill.getAmount());\n totalFeeAmount = totalFeeAmount.add(transactionFee);\n }\n }\n }\n\n\t\t/* add blank Space Start */\n cellAlignment(paymentSectionBlankSpaceCell, Element.ALIGN_LEFT, WHITE_COLOR, 0);\n cellAddingToTable(paymentSectionTable, paymentSectionBlankSpaceCell, Rectangle.NO_BORDER, 3, 0);\n /* add blank space end */\n\n\t\t/* Calculating and displaying card service fee amount and service fee percent*/\n totalBillAmount = totalBillAmount.add(getCardServiceFeeAmount(receiptResponse, paymentSectionTable\n , paymentSectionBlankSpaceCell, locale));\n\t\t/* End of Card service fee */\n\n\t\t/* bill Total Paid start */\n drawTotalAmountCell(paymentSectionTable, paymentSectionBlankSpaceCell, locale, totalBillAmount, totalFeeAmount);\n /* bill Total Paid End */\n /* Add Line separator to the PDF document */\n addLineSeperator(paymentSectionTable, paymentSectionBlankSpaceCell);\n /* End of line separator */\n\n document.add(paymentSectionTable);\n LOGGER.debug(\"End pdfPaymentSection Table \");\n\n\n }", "private void Print_Test(){\n String lang = getString(R.string.strLang);\n if((lang.compareTo(\"en\")) == 0){\n\n //cetak gambar logo dulu\n Print_BMP();\n\n //cetak string struk\n String data = struk;\n SendDataByte(PrinterCommand.POS_Print_Text(data, CHINESE, 0, 0, 0, 0));\n SendDataByte(PrinterCommand.POS_Set_Cut(1));\n SendDataByte(PrinterCommand.POS_Set_PrtInit());\n }else if((lang.compareTo(\"cn\")) == 0){\n String msg = \"恭喜您!\\n\\n\";\n String data = \"您已经成功的连接上了我们的便携式蓝牙打印机!\\n我们公司是一家专业从事研发,生产,销售商用票据打印机和条码扫描设备于一体的高科技企业.\\n\\n\\n\\n\\n\\n\\n\";\n SendDataByte(PrinterCommand.POS_Print_Text(msg, CHINESE, 0, 1, 1, 0));\n SendDataByte(PrinterCommand.POS_Print_Text(data, CHINESE, 0, 0, 0, 0));\n SendDataByte(PrinterCommand.POS_Set_Cut(1));\n SendDataByte(PrinterCommand.POS_Set_PrtInit());\n }else if((lang.compareTo(\"hk\")) == 0 ){\n String msg = \"恭喜您!\\n\";\n String data = \"您已經成功的連接上了我們的便攜式藍牙打印機! \\n我們公司是一家專業從事研發,生產,銷售商用票據打印機和條碼掃描設備於一體的高科技企業.\\n\\n\\n\\n\\n\\n\\n\";\n SendDataByte(PrinterCommand.POS_Print_Text(msg, BIG5, 0, 1, 1, 0));\n SendDataByte(PrinterCommand.POS_Print_Text(data, BIG5, 0, 0, 0, 0));\n SendDataByte(PrinterCommand.POS_Set_Cut(1));\n SendDataByte(PrinterCommand.POS_Set_PrtInit());\n }else if((lang.compareTo(\"kor\")) == 0){\n String msg = \"축하 해요!\\n\";\n String data = \"성공적으로 우리의 휴대용 블루투스 프린터에 연결 한! \\n우리는 하이테크 기업 중 하나에서 개발, 생산 및 상업 영수증 프린터와 바코드 스캐닝 장비 판매 전문 회사입니다.\\n\\n\\n\\n\\n\\n\\n\";\n SendDataByte(PrinterCommand.POS_Print_Text(msg, KOREAN, 0, 1, 1, 0));\n SendDataByte(PrinterCommand.POS_Print_Text(data, KOREAN, 0, 0, 0, 0));\n SendDataByte(PrinterCommand.POS_Set_Cut(1));\n SendDataByte(PrinterCommand.POS_Set_PrtInit());\n }else if((lang.compareTo(\"thai\")) == 0){\n String msg = \"ขอแสดงความยินดี!\\n\";\n String data = \"คุณได้เชื่อมต่อกับบลูทู ธ เครื่องพิมพ์แบบพกพาของเรา! \\n เราเป็น บริษัท ที่มีความเชี่ยวชาญในการพัฒนา, การผลิตและการขายของเครื่องพิมพ์ใบเสร็จรับเงินและการสแกนบาร์โค้ดอุปกรณ์เชิงพาณิชย์ในหนึ่งในองค์กรที่มีเทคโนโลยีสูง.\\n\\n\\n\\n\\n\\n\\n\";\n SendDataByte(PrinterCommand.POS_Print_Text(msg, THAI, 255, 1, 1, 0));\n SendDataByte(PrinterCommand.POS_Print_Text(data, THAI, 255, 0, 0, 0));\n SendDataByte(PrinterCommand.POS_Set_Cut(1));\n SendDataByte(PrinterCommand.POS_Set_PrtInit());\n }\n }", "@Test\r\n public void testPrintReceipt() {\r\n \r\n instance = new Controller(dbMgr);\r\n instance.printReceipt();\r\n \r\n }", "@Override\n\tpublic synchronized void onReceipt(DatagramPacket packet) {\n\t\tint type = checkPacketType(packet);\n\t\tMessage message;\n\t\tswitch(type){\n\t\t\tcase RoutingTable.ROUTING_TABLE_CODE:\n\t\t\t\tRoutingTable rt = new RoutingTable(packet);\n\t\t\t\tterminal.println(\"Received Ping from: \" + rt.getRouterName());\n\t\t\t\ttable.updateRoutingTable(rt);\n\t\t\t\tif(RoutingTable.TIMES_TO_BE_UNCHANGED <= table.getTimesNotChanged()) {\n\t\t\t\t}\telse\t{\n\t\t\t\t\tping();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase Message.MESSAGE_CODE:\n\t\t\t\tterminal.println(\"recieved message!\");\n\t\t\t\tmessage = new Message(packet);\n\t\t\t\tif(routerContainsUser(message.getUserTo())) {\n\t\t\t\t\t//terminal.println(message.getType())\n\t\t\t\t\tterminal.println(\"From: \" + message.getUserFrom() + \",To: \" + message.getUserTo() + \", Normal Message:\" + message.getMessage());\n\t\t\t\t}\telse\t{\n\t\t\t\t\tterminal.println(\"Message not for user on this Router.\");\n\t\t\t\t\tterminal.println(\"Recieved from: Router \" + table.getRouterToSendTo(message.getUserFrom()) + \" Sending on to: Router \" + table.getRouterToSendTo(message.getUserTo()));\n\t\t\t\t\t\n\t\t\t\t\tsendMessage(message);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase Message.FILE_CODE:\n\t\t\t\tterminal.println(\"recieved file message!\");\n\t\t\t\tmessage = new Message(packet);\n\t\t\t\tif(routerContainsUser(message.getUserTo())) {\n\t\t\t\t\tterminal.println(\"From: \" + message.getUserFrom() + \",To: \" + message.getUserTo() + \", FIleName:\" + message.getMessage());\n\t\t\t\t\t\n\t\t\t\t\t//Save file\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\tbyte[] fileBytes =message.getFileBytes();\n\t\t\t\t\t\tString fileName = message.getMessage();\n\t\t\t\t\t\tSystem.out.println(\"FileName: \" + \"1\"+fileName ); //one added so it doesnt overwrite original file\n\t\t\t\t\t\tFileOutputStream fos = new FileOutputStream(\"1\"+fileName);\n\t\t\t\t\t\tfos.write(fileBytes);\n\t\t\t\t\t\tfos.close();\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\n\t\t\t\t\t\n\t\t\t\t}\telse\t{\n\t\t\t\t\tterminal.println(\"Message not for user on this Router.\");\n\t\t\t\t\tterminal.println(\"Recieved from: Router \" + table.getRouterToSendTo(message.getUserFrom()) + \" Sending on to: Router \" + table.getRouterToSendTo(message.getUserTo()));\n\t\t\t\t\t\n\t\t\t\t\tsendMessage(message);\n\t\t\t\t}\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t}\n\t}", "private void pdfReceiptIdSection(final CartReceiptResponse receiptResponse, final Document document, Locale locale)\n throws DocumentException, IOException {\n\n LOGGER.debug(\"pdfReceiptIdSection(HttpServletRequest,HttpServletResponse,ResourceBundle)\" + receiptResponse);\n\n\t\t/* Payment Receipt Title code snippet Start */\n PdfPTable receiptHeaderTextTable = new PdfPTable(4);\n String message = getMessage(locale, \"pdf.receipt.receipt_title\");\n Font font = getFont(WHITE_COLOR, FONT_SIZE_18, Font.BOLD);\n PdfPCell receiptTextCell = new PdfPCell(new Phrase(message, font));\n cellAlignment(receiptTextCell, Element.ALIGN_CENTER, WHITE_COLOR, 0);\n cellAddingToTable(receiptHeaderTextTable, receiptTextCell, Rectangle.LEFT | Rectangle.RIGHT, 4, 0);\n document.add(receiptHeaderTextTable);\n PdfPCell headerBlankSpaceCell1 = new PdfPCell(new Phrase(\" \", getFont(WHITE_COLOR, 8, Font.BOLD)));\n\n PdfPTable receiptTable = new PdfPTable(2);\n\n cellAlignment(headerBlankSpaceCell1, 0, \"\", 0);\n cellAddingToTable(receiptTable, headerBlankSpaceCell1, Rectangle.LEFT | Rectangle.RIGHT, 2, 0);\n PdfPCell receiptNumberCell;\n String receiptNumberMessage = getMessage(locale, \"pdf.receipt.receipt_number\"\n , Long.toString(receiptResponse.getCartId()));\n Font boldFont = getFont(WHITE_COLOR, FONT_SIZE_12, Font.BOLD);\n receiptNumberCell = new PdfPCell(new Phrase(receiptNumberMessage, boldFont));\n\n\t\t/* PDF receipt Id section starts */\n cellAlignment(receiptNumberCell, Element.ALIGN_CENTER, WHITE_COLOR, 0);\n cellAddingToTable(receiptTable, receiptNumberCell, Rectangle.LEFT | Rectangle.RIGHT, 2, 0);\n /* PDF receipt Id section Ends */\n\n\t\t/* Blank Space Start */\n PdfPCell headerBlankSpaceCell = new PdfPCell(new Phrase(\" \", getFont(WHITE_COLOR, 8, Font.BOLD)));\n cellAlignment(headerBlankSpaceCell, 0, WHITE_COLOR, 0);\n cellAddingToTable(receiptTable, headerBlankSpaceCell, Rectangle.LEFT | Rectangle.RIGHT | Rectangle.BOTTOM, 2,\n 0);\n /* End Blank Space */\n\n\t\t/* Adding Complete structure to document */\n document.add(receiptTable);\n document.add(new Paragraph(\" \"));\n LOGGER.debug(\"End pdfReceiptIdSection(HttpServletRequest,HttpServletResponse,ResourceBundle)\");\n }", "public void doPrint() {\n printBehavior.printReceipt();\n\n }", "@Override\n public void onReceivedData(byte[] arg0) {\n String data;\n try {\n data = new String(arg0, \"UTF-8\");\n data.concat(\"/n\");\n tvAppend(textView, data);\n\n\n\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n\n\n }", "@Override\n public void onReceivedData(byte[] arg0) {\n String data = null;\n try {\n data = new String(arg0, \"UTF-8\");\n data.concat(\"/n\");\n //tvAppend(textView, data);\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n\n\n }", "private void receiveData()\n {\n Intent i = getIntent();\n productSelected = Paper.book().read(Prevalent.currentProductKey);\n vendorID = i.getStringExtra(\"vendorID\");\n if (productSelected != null) {\n\n productName = i.getStringExtra(\"productName\");\n productImage = i.getStringExtra(\"imageUrl\");\n productLongDescription = i.getStringExtra(\"productLongDescription\");\n productCategory = i.getStringExtra(\"productCategory\");\n productPrice = i.getStringExtra(\"productPrice\");\n productSizesSmall = i.getStringExtra(\"productSizesSmall\");\n productSizesMedium = i.getStringExtra(\"productSizesMedium\");\n productSizesLarge = i.getStringExtra(\"productSizesLarge\");\n productSizesXL = i.getStringExtra(\"productSizesXL\");\n productSizesXXL = i.getStringExtra(\"productSizesXXL\");\n productSizesXXXL = i.getStringExtra(\"productSizesXXXL\");\n productQuantity = i.getStringExtra(\"productQuantity\");\n }\n }", "private void reprint() {\n HashMap<Integer, Invoice> invoiceHashMap = new HashMap<>();\n printHeader(\"List of Invoices\");\n MainApp.invoices.forEach((invoice -> {\n System.out.println(\"Receipt #\" + invoice.getOrderID() + \", Paid On: \" + DateTimeFormatHelper.formatMillisToDateTime(invoice.getCompletedAt()));\n invoiceHashMap.put(invoice.getOrderID(), invoice);\n }));\n printBreaks();\n invoiceHashMap.put(-1, null);\n int selection = ScannerHelper.getIntegerInput(\"Select invoice to reprint receipt: \", new ArrayList<>(invoiceHashMap.keySet()), \"Invalid Receipt Number. Please select a valid receipt number or enter -1 to cancel\");\n if (selection == -1) {\n System.out.println(\"Receipt Cancelled\");\n return;\n }\n Invoice selected = invoiceHashMap.get(selection);\n ArrayList<String> receipts;\n if (selected.getReceipt().equals(\"-\")) {\n // No receipt, generate and save\n receipts = generateReceipt(selected, selected.getTotal(), selected.getAmountPaid(), selected.getPaymentType());\n } else {\n String filePath = RECEIPT_SUBFOLDER + selected.getReceipt();\n try {\n BufferedReader reader = FileIOHelper.getFileBufferedReader(filePath);\n receipts = reader.lines().collect(Collectors.toCollection(ArrayList::new));\n } catch (IOException e) {\n System.out.println(\"Failed to load receipt. Regenerating\");\n receipts = generateReceipt(selected, selected.getTotal(), selected.getAmountPaid(), selected.getPaymentType());\n }\n }\n\n System.out.println(\"Reprinting Receipt...\");\n System.out.println();\n System.out.println();\n receipts.forEach(System.out::println);\n System.out.println(\"\\n\");\n }", "private String getOrderDetails(Order order) {\n String message = getString(R.string.total) + \"\\n\" + getString(R.string.name) + \": \" + order.getCustomerName() +\n \"\\n\" + getString(R.string.add_cream) + \"? \" + String.valueOf(order.isHasWhippedCream()) +\n \"\\n\" + getString(R.string.add_chocolate) + \"? \" + String.valueOf(order.isHasChocolate()) +\n \"\\n\" + getString(R.string.quantity) + \": \" + order.getCupsNumber() + \"\\n\" + getString(R.string.resut) +\n \": $\" + MainActivity.calculatePrice(order) + \"\\n\" + getString(R.string.thanks) + \"!\";\n return message;\n }", "private void btnGetReceiptActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnGetReceiptActionPerformed\n String stringID = textReceiptID.getText();\n if(textReceiptID.getText().isEmpty()){\n JOptionPane.showMessageDialog(rootPane, \"Please Enter a valid ID\");\n return;\n }\n int ID = Integer.parseInt(stringID);\n newHandler.getReceipt(ID);\n \n if(newHandler.getReceiptErrorMsg() != null){\n JOptionPane.showMessageDialog(rootPane, newHandler.getReceiptErrorMsg());\n }\n textReceiptID.setText(Integer.toString(newHandler.getReceiptID()));\n textReceiptDate.setText(newHandler.getReceiptDate());\n textReceiptAmmount.setText(Double.toString(newHandler.getReceiptAmmount()));\n textReceiptType.setText(newHandler.getReceiptType());\n textReceiptDescription.setText(newHandler.getReceiptDescription());\n searched = true;\n }", "public void create_final_string_product(){\n\n // initialize tablelayout variable\n TableLayout tableLayout = (TableLayout) findViewById(R.id.mainTable);\n\n for(Map.Entry<Integer,ArrayList<Integer>> entry : to_refer_each_item.entrySet()){\n\n TableRow tr = (TableRow) tableLayout.getChildAt(entry.getKey());\n\n // get subtype name of product\n LinearLayout l_pn = (LinearLayout) tr.getChildAt(0);\n TextView tv_pn = (TextView) l_pn.getChildAt(0);\n String text_pn = tv_pn.getText().toString();\n\n LinearLayout l_pc = (LinearLayout) findViewById(R.id.product_linearlayout);\n // get color of product\n TextView text_pc_yv = (TextView) l_pn.getChildAt(1);\n String text_pc = text_pc_yv.getText().toString();\n String[] text_pc_str = text_pc.split(\":\");\n String final_text_pc = text_pc_str[1].replace(\" \", \"\");\n // define array list object\n ArrayList<Integer> list = entry.getValue();\n Order_Detail_Object orderDetailObject = null;\n for(int i = 0; i < list.size();i++) {\n // set checkbox in according to product items\n CheckBox c = (CheckBox)findViewById(list.get(i));\n /* check status of checkbox */\n if(c.isChecked()) {\n\n // create string variable to concat\n String text_str = text_pn;\n /* get data from haspMap of Order_Detail_Object object as\n orderDetailObject from database*/\n orderDetailObject = new Order_Detail_Object\n (text_str + \";\" + c.getText().toString() + \";\" + final_text_pc);\n // function pass ProductId and orderDetailObject\n AddToFinalOrder(orderDetailObject);\n }\n }\n }\n }", "@Override\n public void onReceivedData(byte[] arg0) {\n String data = null;\n try {\n data = new String(arg0, \"UTF-8\");\n data.concat(\"/n\");\n tvAppend(textView, data);\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n\n\n }", "@Override\n public void onReceive(Context context, Intent intent) {\n if (intent.getAction().equals(NOTE_ACTION)) {\n remark = intent.getStringExtra(\"remark\");\n updataNote();\n }\n }", "@SuppressWarnings(\"StringBufferReplaceableByString\")\n private static String generateFeedbackBody(Context c) {\n StringBuilder sb = new StringBuilder(\"\\n\\n\\n\" +\n \"(only write above this line)\\n\\n\" +\n \"-----------\\n\" +\n \"System info\\n\" +\n \"-----------\\n\\n\");\n\n // HW information\n sb.append(\"Device model: \").append(Build.MODEL).append(\"\\n\");\n sb.append(\"Manifacturer: \").append(Build.MANUFACTURER).append(\"\\n\");\n sb.append(\"Brand: \").append(Build.BRAND).append(\"\\n\");\n sb.append(\"CPU ABI: \").append(Build.CPU_ABI).append(\"\\n\");\n sb.append(\"Product: \").append(Build.PRODUCT).append(\"\\n\").append(\"\\n\");\n\n // SW information\n sb.append(\"Android version: \").append(Build.VERSION.CODENAME).append(\"\\n\");\n sb.append(\"Release: \").append(Build.VERSION.RELEASE).append(\"\\n\");\n sb.append(\"Incremental: \").append(Build.VERSION.INCREMENTAL).append(\"\\n\");\n sb.append(\"Build: \").append(Build.FINGERPRINT).append(\"\\n\");\n sb.append(\"Kernel: \").append(getKernelVersion()).append(\"\\n\");\n\n // App info\n sb.append(\"App version: \").append(getAppVersionNumber(c));\n\n return sb.toString();\n }", "public void startSale() {\r\n System.out.println(\"[CashRegister] startSale\");\r\n System.out.println(\"\");\r\n\r\n //receipt = new Receipt(customerId); \r\n receipt = new Receipt(\"100\");\r\n\r\n //addItemToSale(productId, quantity);\r\n addItemToSale(\"A101\", 10);\r\n\r\n addItemToSale(\"B205\", 6);\r\n\r\n addItemToSale(\"C222\", 12);\r\n\r\n }", "private void pdfInfoMessage(final Document document, final Locale locale) throws DocumentException {\n LOGGER.debug(\"entered in 'pdfInfoMessage' method\");\n PdfPTable receiptInfoMessageTextTable = new PdfPTable(4);\n String message = getMessage(locale, \"pdf.receipt.more_info_message\");\n Font font = getFont(WHITE_COLOR, FONT_SIZE_9, Font.ITALIC);\n PdfPCell receiptTextCell = new PdfPCell(new Phrase(message, font));\n receiptTextCell.setHorizontalAlignment(Element.ALIGN_LEFT);\n receiptTextCell.setBorder(Rectangle.NO_BORDER);\n receiptTextCell.setColspan(4);\n cellAlignment(receiptTextCell, Element.ALIGN_LEFT, GRAY_COLOR, 0);\n cellAddingToTable(receiptInfoMessageTextTable, receiptTextCell, Rectangle.NO_BORDER, 4, 0);\n document.add(receiptInfoMessageTextTable);\n }", "@Override\r\n public void messageReceived(String messageText) {\n Log.e(\"Message\",messageText);\r\n Toast.makeText(StatusScreen.this,\"Message: \"+messageText,Toast.LENGTH_LONG).show();\r\n\r\n // If your OTP is six digits number, you may use the below code\r\n\r\n Pattern pattern = Pattern.compile(OTP_REGEX);\r\n Matcher matcher = pattern.matcher(messageText);\r\n String otp = \"\";\r\n while (matcher.find())\r\n {\r\n otp = matcher.group();\r\n }\r\n\r\n Toast.makeText(StatusScreen.this,\"OTP: \"+ otp ,Toast.LENGTH_LONG).show();\r\n\r\n }", "public String setReceiptTpsString()\n\t{\n\t\treturn BP_SECRET_KEY + BP_MERCHANT + RECEIPT_FORM_ID + RETURN_URL + DBA + AMEX_IMAGE + DISCOVER_IMAGE + RECEIPT_TPS_DEF;\n\t}", "public static void printReceipt(double totalPurchase, double tip, double tipAmount, double totalAmount) {\n\t\tSystem.out.println(\"Total purchase: \" + totalPurchase + \"\\n\" +\n\t\t\t\t\"Tip amount: \" + tipAmount + \" (\" + tip + \"%) \\n\" +\n\t\t\t\t\"Total amount with tip: \" + totalAmount);\n\t\n\t}", "@Override\r\n public String receita() {\n return \"Misturar os ingredientes; bater no liquidificador; colocar na máquina de waffle por 10m\";\r\n }", "public void addToCart_process(View v) {\n\n addToCart_flag = true;\n // create string\n create_final_string_product();\n // function show message\n ToastMessage();\n // clear all data after adding product into cart\n clear_data();\n }", "public void printReceipt(int amount){\r\n PaymentAuthorization payAuth = new PaymentAuthorization();\r\n if (payAuth.authRequest(card)){\r\n System.out.println(\"Take the receipt\");\r\n }\r\n }", "public void printTest(){\n\r\n p.resetAll();\r\n p.initialize();\r\n p.feedBack((byte)2);\r\n// p.color(1);\r\n p.alignCenter();\r\n p.setText(\"The Dum Dum Name\");\r\n p.newLine();\r\n p.setText(\"Restaurant Dining\");\r\n p.newLine();\r\n p.addLineSeperator();\r\n p.newLine();\r\n p.setText(\"Bling Bling\");\r\n p.newLine();\r\n p.addLineSeperator();\r\n p.newLine();\r\n\r\n p.alignLeft();\r\n p.setText(\"POD No \\t\\t: 2001 \\t\\t Table \\t: E511\");\r\n p.newLine(); \r\n\r\n p.setText(\"Res Date \\t: \" + \"01/01/1801 22:59\");\r\n\r\n p.newLine();\r\n p.setText(\"Session \\t: Evening Session\");\r\n p.newLine();\r\n p.setText(\"Staff \\t\\t: Bum Dale\");\r\n p.newLine();\r\n p.addLineSeperator();\r\n p.newLine();\r\n p.alignCenter();\r\n p.setText(\" - Some Items - \");\r\n p.newLine();\r\n p.alignLeft();\r\n p.addLineSeperator();\r\n\r\n p.newLine();\r\n\r\n p.setText(\"No \\tItem\\t\\tUnit\\tQty\");\r\n p.newLine();\r\n p.addLineSeperator();\r\n \r\n p.newLine();\r\n p.setText(\"1\" + \"\\t\" + \"Aliens Everywhere\" + \"\\t\" + \"Rats\" + \"\\t\" + \"500\");\r\n p.newLine();\r\n p.setText(\"1\" + \"\\t\" + \"Aliens Everywhere\" + \"\\t\" + \"Rats\" + \"\\t\" + \"500\");\r\n p.newLine();\r\n p.setText(\"1\" + \"\\t\" + \"Aliens Everywhere\" + \"\\t\" + \"Rats\" + \"\\t\" + \"500\");\r\n p.newLine();\r\n p.setText(\"1\" + \"\\t\" + \"Aliens Everywhere\" + \"\\t\" + \"Rats\" + \"\\t\" + \"500\");\r\n p.newLine();\r\n p.setText(\"1\" + \"\\t\" + \"Aliens Everywhere\" + \"\\t\" + \"Rats\" + \"\\t\" + \"500\");\r\n p.newLine();\r\n p.setText(\"1\" + \"\\t\" + \"Aliens Everywhere\" + \"\\t\" + \"Rats\" + \"\\t\" + \"500\");\r\n p.newLine();\r\n \r\n p.addLineSeperator();\r\n p.feed((byte)3);\r\n p.finit();\r\n\r\n p.feedPrinter(p.finalCommandSet().getBytes());\r\n \r\n }", "public void printReceiptSingleItem(Product product) {\n // Convert ZPL to Byte[]\n byte[] templateBytes = ZPL.SINGLE_ITEM_ZPL.getBytes(StandardCharsets.UTF_8);\n\n // Set Variable Data\n HashMap<String, String> variableData = new HashMap<>();\n variableData.put(ZPL.ITEM, product.getName());\n variableData.put(ZPL.PRICE, \"Prix: \" + getPriceFormatted(product.getPrice() * mBasket.get(product)));\n variableData.put(ZPL.QUANTITY, \"x\" + mBasket.get(product) + \" \");\n variableData.put(ZPL.BARCODE, product.getEan().toString());\n variableData.put(ZPL.IMAGE_1, product.getSingleIconBase64());\n\n PrintHandler.sendPrintJobWithContent(this, templateBytes, variableData,\n printResultReceiver);\n }", "@Override\n public void onReceive(Context context, Intent intent) {\n final Bundle bundle = intent.getExtras();\n boolean verify=false;\n try {\n if (bundle != null) {\n final Object[] pdusObj = (Object[]) bundle.get(\"pdus\");\n for (int i = 0; i < pdusObj.length; i++) {\n SmsMessage currentMessage = SmsMessage.createFromPdu((byte[]) pdusObj[i]);\n String message = currentMessage.getDisplayMessageBody();\n\n String[] inputSplitNewLine = message.split(\"\\\\n\");\n for (int j = 0; j < inputSplitNewLine.length; j++) {\n System.out.println(inputSplitNewLine[j]);\n if (inputSplitNewLine[j].contains(\"Your Zaparound verification code is\")) {\n String verifyCode = inputSplitNewLine[j].replaceAll(\"[^0-9]\", \"\");\n et_username.setText(verifyCode);\n verify=true;\n //Verify(new View(VerificationActivity.this));\n break;\n }\n }//end of for\n }//end of for\n if(verify)\n Verify(new View(VerificationActivity.this));\n }\n } catch (Exception e) {\n Log.e(\"SmsReceiver\", \"Exception smsReceiver\" + e);\n }\n }", "public String completeSale(){\n updateEISAndEAS();\n return sale.printReceipt(paymentDTO);\n }", "private void IdentifyHeaderAndFooter() {\n receipt_Header = receipt_lines.length > 0 ? receipt_lines[0] : null;\n receipt_Footer = receipt_lines.length > 1 ? receipt_lines[receipt_lines.length - 1].split(\" \")[0] : null;\n }", "public void GotoReceipts(View view) {\n mFirebaseAnalytics.logEvent(\"engagement_party\", new Bundle());\n Intent intent = new Intent(this, AddReceipt.class);\n startActivity(intent);\n }", "private String readText(NdefRecord record) throws UnsupportedEncodingException {\n\n byte[] payload = record.getPayload();\n\n // Get the Text Encoding\n String textEncoding = ((payload[0] & 128) == 0) ? \"UTF-8\" : \"UTF-16\";\n\n // Get the Language Code\n int languageCodeLength = payload[0] & 0063;\n\n // String languageCode = new String(payload, 1, languageCodeLength, \"US-ASCII\");\n // e.g. \"en\"\n\n // Get the Text\n return new String(payload, languageCodeLength + 1, payload.length - languageCodeLength - 1, textEncoding);\n }", "@Override\n\tpublic String printBillInvoice(Billing bill) {\n\t\tStringBuilder stringBuilder = new StringBuilder();\n\t\tstringBuilder.append(\"RetailCustomer Details:\");\n\t\tstringBuilder.append(retailCustomer);\n\t\tstringBuilder.append(\"Shop the following:\");\n\t\tstringBuilder.append(bill.getOnlineShoppingCartItem());\n\t\tstringBuilder.append(\" Total Bill Amount : \");\n\t\tstringBuilder.append(bill.getTotalBill());\n\t\tstringBuilder.append(\" Bill Amount After RetailCustomer Discount:\");\n\t\tstringBuilder.append(bill.getTotalBillAfterRetailCustomerTypeDiscount());\n\t\tstringBuilder.append(\" Bill Amount After final Discount:\");\n\t\tstringBuilder.append(bill.getTotalBillCost());\n\t\treturn stringBuilder.toString();\n\t}", "public static void main(String[] args){\n\t\t \n\t\t Receipt.Money price = new Receipt(\"网球拍\",7).new Money(1500000,0.7F);\n\t\t price.print();\n\t }", "public String insertStartReceipt() {\r\n\t\tif (receiptS == null) {\r\n\t\t\treceiptS = new Receipt();\r\n\t\t}\r\n\t\treturn SUCCESS;\r\n\t}", "@Override\n public void onNotificationPosted(StatusBarNotification sbn) {\n int notificationCode = matchNotificationCode(sbn);\n String pack = \"\";\n Bundle extras = null;\n String title = \"\";\n String text = \"\";\n String subtext = \"\";\n String key = \"\";\n try {\n pack = sbn.getPackageName();\n extras = sbn.getNotification().extras;\n //Prendo i dati della notifica\n title = extras.getString(\"android.title\");\n //Parso il titolo\n if (title.contains(\"(\") && title.contains(\")\") && (title.contains((\"messaggi\")) || title.contains(\"messaggio\"))) {\n int posA = title.lastIndexOf('(');\n title = title.substring(0, posA - 1);\n }\n text = extras.getCharSequence(\"android.text\").toString();\n subtext = \"\";\n } catch (Exception ex) {\n Log.d(\"WHATSAPP RIGA 100\", \"Conv fallita\");\n }\n if (matchNotificationCode(sbn) != InterceptedNotificationCode.OTHER_NOTIFICATIONS_CODE) {\n if ((Build.VERSION.SDK_INT >= Build.VERSION_CODES.N)) {\n //EDIT\n /* Used for SendBroadcast */\n try {\n Parcelable b[] = (Parcelable[]) extras.get(Notification.EXTRA_MESSAGES);\n String content;\n if (b != null) {\n content = \"\";\n for (Parcelable tmp : b) {\n key = String.valueOf(tmp.hashCode());\n Bundle msgBundle = (Bundle) tmp;\n subtext = msgBundle.getString(\"text\");\n //content = content + msgBundle.getString(\"text\") + \"\\n\";\n }\n /*Toast.makeText(getApplicationContext(), content,\n Toast.LENGTH_LONG).show();*/\n }\n if (subtext.isEmpty()) {\n subtext = text;\n }\n } catch (Exception e) {\n Log.d(\"ERRORE RIGA 90 WHATSAPP\", \"Probabilmente la notifica è sballata\");\n }\n Notifica nuovaNotifica = new Notifica();\n\n if (subtext != null) {\n if (!text.contains(\"nuovi messaggi\") && !text.contains(\"WhatsApp Web is currently active\") && !text.contains(\"WhatsApp Web login\") && !title.toLowerCase().equals(\"whatsapp\")) {\n try {\n DateFormat df = new SimpleDateFormat(\"ddMMyyyyHHmmss\");\n String date = df.format(Calendar.getInstance().getTime());\n nuovaNotifica = new Notifica(key, pack, title, subtext, date);\n } catch (Exception ex) {\n Log.d(\"WHATSAPP RIGA 100\", \"Conversione fallita\");\n }\n try {\n //Parso il messaggio se viene da instagram\n if (matchNotificationCode(sbn) == InterceptedNotificationCode.INSTAGRAM_CODE) {\n //Elimino l'username nel messaggio\n if (subtext.contains(\":\"))\n subtext = subtext.substring(subtext.indexOf(':') + 2, subtext.length());\n else {\n if (subtext.contains(title)) {\n int ind = subtext.indexOf(title);\n subtext = subtext.replace(title, \"\");\n subtext = subtext.substring(1, subtext.length());\n }\n }\n }\n } catch (Exception ex) {\n Log.d(\"WHATSAPP RIGA 160\", \"Parser fallito\");\n }\n //Controllo che non abbia già ricevuto il messaggio\n String contatto = title + matchNotificationCode(sbn);\n int posizioneContatto = TrovaContattoInUltimiMessaggi(contatto);\n boolean daInviare = true;\n //Se ho trovato il contatto, controllo il valore se è diverso aggiungo e invio\n //Altrimenti modifico e non invio\n //Se non lo trovo lo registro e invio\n if (posizioneContatto != -1) {\n String strV = UltimiMessaggi.get(posizioneContatto).UltimoMessaggio;\n if (strV.equals(subtext)) {\n daInviare = false;\n } else {\n SettaUltimoMessaggio(posizioneContatto, subtext);\n }\n } else {\n //Aggiungo il contatto e il messaggio nella lista\n UltimiMessaggi.add(new ContattoAC(contatto, subtext));\n }\n //Invio la notifica alla mainActivity\n if (daInviare) {\n Intent intent = new Intent(\"ricevitoreNotifiche\");\n try {\n /*//LOG\n Log.d(\"Notifica KEY\", key);\n Log.d(\"Contatto\", title);\n Log.d(\"Messaggio\", subtext);*/\n intent.putExtra(\"ID\", nuovaNotifica.getID());\n intent.putExtra(\"Applicazione\", nuovaNotifica.getApplicazione());\n intent.putExtra(\"Titolo\", nuovaNotifica.getTitolo());\n intent.putExtra(\"Testo\", nuovaNotifica.getTesto());\n intent.putExtra(\"DateTime\", nuovaNotifica.getDateTime());\n sendBroadcast(intent);\n } catch (Exception ex) {\n Log.d(\"ERROR RIGA 103 WHATSAPP\", \"Non riesco a inviare in broadcast\");\n }\n }\n }\n /* End Used for Toast */\n }\n }\n }\n\n }", "private void pdfPaymentMethod(CartReceiptResponse receiptResponse, Document document, Locale locale)\n throws DocumentException, IOException {\n\n LOGGER.debug(\"Entered in 'pdfPaymentMethod' method\");\n Double totalPaymentApplied = 0.0;\n PdfPTable paymentMethodTable = new PdfPTable(2);\n paymentMethodTable.setWidths(new int[]{200, 50});\n PdfPCell paymentMethodBlankSpaceCell = new PdfPCell(new Phrase(\" \", getFont(WHITE_COLOR, 8, Font.BOLD)));\n String message = getMessage(locale, \"pdf.receipt.paymentMethod\");\n Font font = getFont(BLACK_COLOR, FONT_SIZE_18, Font.BOLD);\n PdfPCell paymentMethodHeaderCell = new PdfPCell(new Phrase(message, font));\n cellAlignment(paymentMethodHeaderCell, Element.ALIGN_LEFT, GRAY_COLOR, 0);\n cellAddingToTable(paymentMethodTable, paymentMethodHeaderCell, Rectangle.NO_BORDER, 0, 0);\n\n cellAlignment(paymentMethodBlankSpaceCell, 0, GRAY_COLOR, 0);\n cellAddingToTable(paymentMethodTable, paymentMethodBlankSpaceCell, Rectangle.NO_BORDER, 2, 0);\n cellAlignment(paymentMethodBlankSpaceCell, 0, GRAY_COLOR, 0);\n cellAddingToTable(paymentMethodTable, paymentMethodBlankSpaceCell, Rectangle.NO_BORDER, 2, 0);\n\n FundingSourceResponse[] fundingSources = receiptResponse.getFundingSources();\n\n if (fundingSources.length != 0) {\n for (final FundingSourceResponse aFundingSource1 : fundingSources) {\n if (aFundingSource1 != null) {\n if (aFundingSource1.getType().equalsIgnoreCase(PdfConstants.CREDIT)) {\n LOGGER.debug(\"Entered in to credits section : \" + aFundingSource1.getType());\n creditFundingSection(locale, paymentMethodTable,\n new BigDecimal(getUsedAmountFromFunding(aFundingSource1)));\n cellAlignment(paymentMethodBlankSpaceCell, Element.ALIGN_RIGHT, GRAY_COLOR, 0);\n cellAddingToTable(paymentMethodTable, paymentMethodBlankSpaceCell, Rectangle.NO_BORDER, 2, 0);\n totalPaymentApplied = totalPaymentApplied + getUsedAmountFromFunding(aFundingSource1);\n }\n }\n }\n for (final FundingSourceResponse aFundingSource : fundingSources) {\n if (aFundingSource instanceof VestaFundingSourceResponse) {\n VestaFundingSourceResponse vestaFundingSourceResponse =\n (VestaFundingSourceResponse) aFundingSource;\n String tenderType = vestaFundingSourceResponse.getTenderType();\n CardBrand cardBrand = vestaFundingSourceResponse.getCardBrand();\n if (tenderType.equalsIgnoreCase(PdfConstants.DEBIT) ||\n tenderType.equalsIgnoreCase(PdfConstants.CREDIT)) {\n PdfPCell cardNumberCell = new PdfPCell(new Phrase(getMessage(locale, \"pdf.receipt.cardPinMsg\",\n getTenderTypeForCard(tenderType,\n locale),\n getCardBrandText(cardBrand,\n locale),\n vestaFundingSourceResponse\n .getCardLast4()),\n getFont(null, FONT_SIZE_12, Font.NORMAL)));\n PdfPCell amountSectionCell = new PdfPCell(new Phrase(getFormattedAmount(new BigDecimal(\n getUsedAmountFromFunding(vestaFundingSourceResponse))),\n getFont(null, FONT_SIZE_12, Font.NORMAL)));\n cellAlignment(cardNumberCell, Element.ALIGN_LEFT, GRAY_COLOR, 0);\n cellAddingToTable(paymentMethodTable, cardNumberCell, Rectangle.NO_BORDER, 0, 15);\n\n cellAlignment(amountSectionCell, Element.ALIGN_RIGHT, GRAY_COLOR, 0);\n cellAddingToTable(paymentMethodTable, amountSectionCell, Rectangle.NO_BORDER, 0, 0);\n chargedOnSection(locale, paymentMethodTable, paymentMethodBlankSpaceCell, receiptResponse);\n totalPaymentApplied =\n totalPaymentApplied + getUsedAmountFromFunding(vestaFundingSourceResponse);\n continue;\n }\n }\n\n if (aFundingSource != null) {\n if (getCashStatus(aFundingSource.getType())) {\n cashFundingSection(paymentMethodTable, locale, aFundingSource);\n cellAlignment(paymentMethodBlankSpaceCell, Element.ALIGN_RIGHT, GRAY_COLOR, 0);\n cellAddingToTable(paymentMethodTable, paymentMethodBlankSpaceCell, Rectangle.NO_BORDER, 2, 0);\n totalPaymentApplied = totalPaymentApplied + getUsedAmountFromFunding(aFundingSource);\n }\n }\n }\n } else {\n creditFundingSection(locale, paymentMethodTable, new BigDecimal(0));\n cellAlignment(paymentMethodBlankSpaceCell, Element.ALIGN_RIGHT, GRAY_COLOR, 0);\n cellAddingToTable(paymentMethodTable, paymentMethodBlankSpaceCell, Rectangle.NO_BORDER, 2, 0);\n totalPaymentApplied = totalPaymentApplied + 0;\n }\n\n\n calculateTotalPayment(locale, paymentMethodTable, totalPaymentApplied);\n cellAlignment(paymentMethodBlankSpaceCell, Element.ALIGN_RIGHT, GRAY_COLOR, 0);\n cellAddingToTable(paymentMethodTable, paymentMethodBlankSpaceCell, Rectangle.NO_BORDER, 2, 0);\n generatedNewCredits(locale, paymentMethodTable, receiptResponse.getCreditsGenerated());\n document.add(paymentMethodTable);\n }", "public void sendReceipt(ActionEvent event) throws IOException, FileNotFoundException, DocumentException {\n HttpServletRequest request = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();\r\n HttpServletResponse response = (HttpServletResponse) FacesContext.getCurrentInstance().getExternalContext().getResponse();\r\n System.err.println(\"hahaha teest\");\r\n// thisOrder = (OrderEntity) event.getComponent().getAttributes().get(\"viewOrder\");\r\n System.out.println(\"No1: in sending invoice\" + thisOrder.getOrderId());\r\n billingSessionBean.createReceipt(thisOrder.getInvoice().getInvoiceId(), currentDate);\r\n thisOrder.setStatus(\"ReceiptSent\");\r\n orderSessionBean.updateOrder(thisOrder);\r\n double amount = thisOrder.getSalePrice();\r\n int receivable = billingSessionBean.viewAccount(2).getId();\r\n int cash = billingSessionBean.viewAccount(1).getId();\r\n System.out.println(\"whats the price now? and account\" + amount + receivable + cash);\r\n billingSessionBean.receivePayment(amount, cash);\r\n billingSessionBean.postPayment(amount, receivable);\r\n System.out.println(\"NO2: After confirming\" + thisOrder.getStatus());\r\n fBEmailSessionBean.sendReceipt(thisOrder.getEmail(), thisOrder.getInvoice().getReceipt());\r\n }", "@Override\n\t\t\tpublic void mainBuyPro() {\n\t\t\t\tif (iap_is_ok && mHelper != null) {\n\t\t\t\t\t\n\t\t\t\t\t String payload = \"\";\n\t\t\t\t\t mHelper.launchPurchaseFlow(MainActivity.this, Paid_Id_VF, RC_REQUEST, mPurchaseFinishedListener);\n\t\t\t\t}else{\n\t\t\t\t}\n\t\t\t}", "private void sendReceipt(String name, String message){\n\n Intent intent = new Intent(Intent.ACTION_SEND);\n intent.setType(\"*/*\");\n intent.putExtra(Intent.EXTRA_SUBJECT, getString(R.string.order_summary_email_subject, name));\n intent.putExtra(Intent.EXTRA_TEXT, message);\n if (intent.resolveActivity(getPackageManager()) != null) {\n startActivity(intent);\n }\n }", "@Override\n public String getDescription() {\n return \"Digital goods purchase\";\n }", "public void generateAcknowledgeReceipt(String receiptBody,\r\n\t\t\tString receiptName) {\n\t\tString contextPath = servletContext.getContextPath();\r\n\r\n\t\tlogger.info(\"Start of generateAcknowledgeReceipt( \" + receiptBody\r\n\t\t\t\t+ \" ) in PdfGeneratorService\");\r\n\t\tlogger.info(\"contextPath :: \" + contextPath);\r\n\t\t// String dest = servletContext.getRealPath(\"/\")+ receiptName;\r\n\t\tString dest = getFileServerPath(receiptName);\r\n\t\tlogger.info(\"fileName :: \" + dest);\r\n\r\n\t\tDocument ackReceipt = new Document();\r\n\t\t\r\n\t\tPdfWriter pdfWriter = null;\r\n\t\tFile f = null;\r\n\t\ttry {\r\n\t\t\tf = new File(dest);\r\n\t\t\tf.createNewFile();\r\n\t\t\tpdfWriter = PdfWriter.getInstance(ackReceipt,\r\n\t\t\t\t\tnew FileOutputStream(f));\r\n\t\t\tackReceipt.open();\r\n\t\t\taddMetaData(ackReceipt);\r\n\t\t\tXMLWorkerHelper worker = XMLWorkerHelper.getInstance();\r\n\t\t\tworker.parseXHtml(pdfWriter, ackReceipt, new StringReader(\r\n\t\t\t\t\treceiptBody));\r\n\t\t\tackReceipt.close();\r\n\t\t\t//logger.error(\"================================ end of e generateAcknowledgeReceipt\");\r\n\t\t} catch (DocumentException e) {\r\n\t\t\tlogger.error(e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\tlogger.error(e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (Exception e) {\r\n\t\t\tlogger.error(e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t} finally {\r\n\t\t\tif(pdfWriter!=null){\r\n\t\t\tpdfWriter.flush();\r\n\t\t\tpdfWriter.close();}\r\n\t\t\tif(ackReceipt!=null){\r\n\t\t\t\tackReceipt.close();\r\n\t\t\t}\r\n\t\t\t//System.out.println(\"================PDF================ \"+dest +\" \"+ new File(dest).exists());\r\n\t\t\t//logger.error(\"================PDF================ \"+dest +\" \"+ new File(dest).exists());\r\n\t\t}\r\n\t}", "private void saveReceipt() {\n\n\t\tFinalHttp finalHttp = new FinalHttp();\n\t\tGetServerUrl.addHeaders(finalHttp,true);\n\t\tAjaxParams params = new AjaxParams();\n\t\tparams.put(\"id\", receiptId);\n\t\tparams.put(\"receiptDate\", tv_canshu.getText().toString());\n\t\tparams.put(\"orderId\", orderId);\n\t\tparams.put(\"count\", et_num.getText().toString());\n\t\tparams.put(\"remarks\", et_remark.getText().toString());\n\t\tparams.put(\"receiptAddressId\", receiptAddressId);\n\t\tfinalHttp.post(GetServerUrl.getUrl() + \"admin/buyer/order/saveReceipt\",\n\t\t\t\tparams, new AjaxCallBack<Object>() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onSuccess(Object t) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tJSONObject jsonObject = new JSONObject(t.toString());\n\t\t\t\t\t\t\tString code = JsonGetInfo.getJsonString(jsonObject,\n\t\t\t\t\t\t\t\t\t\"code\");\n\t\t\t\t\t\t\tString msg = JsonGetInfo.getJsonString(jsonObject,\n\t\t\t\t\t\t\t\t\t\"msg\");\n\t\t\t\t\t\t\tif (!\"\".equals(msg)) {\n\t\t\t\t\t\t\t\tToast.makeText(SaveReceipptActivity.this, msg,\n\t\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (\"1\".equals(code)) {\n\t\t\t\t\t\t\t\tsetResult(1);\n\t\t\t\t\t\t\t\tfinish();\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t} catch (JSONException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tsuper.onSuccess(t);\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onFailure(Throwable t, int errorNo,\n\t\t\t\t\t\t\tString strMsg) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\tToast.makeText(SaveReceipptActivity.this,\n\t\t\t\t\t\t\t\tR.string.error_net, Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\tsuper.onFailure(t, errorNo, strMsg);\n\t\t\t\t\t}\n\n\t\t\t\t});\n\n\t}", "private ArrayList<String> GetOrderContent() {\n ArrayList<String> order_content = new ArrayList<>();\n boolean added = false;\n for (String line : receipt_lines) {\n if (IsReceiptHeader(line) || IsReceiptFooter(line) || ColesReceiptItem.Is_So_On_Keyword(line) || ColesReceiptItem.Is_Empty(line))\n continue;\n if (ColesReceiptItem.Is_Total_Line(line)) break;\n if (ColesReceiptItem.Is_Order_Summary_Keyword(line))\n added = true;\n else if (added) order_content.add(line);\n }\n return order_content;\n }", "public Receipt recordTransaction(Transaction t) throws RemoteException;", "public void sendTemplate(){\n int printer_size;\n try {\n printer_size = Integer.parseInt(ls.getString(LocalStorage.PRINTER_PAPER_SIZE,\"48\"));\n }catch (Exception e){\n printer_size = 48;\n }\n\n requestBody = \"<?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?>\\n\" +\n \"<Report Name=\\\"Large( \"+printer_size+\", 0)\\\" Width=\\\"\"+printer_size+\"\\\" Height=\\\"0\\\">\\n\" +\n\n \"<Text Alignment=\\\"CENTER\\\" Text=\\\"UNITS COPY\\\" Width=\\\"\" + printer_size + \"\\\" />\\n\"+\n \"<Value Alignment=\\\"CENTER\\\" Value=\\\"Barcode Id\\\" Width=\\\"\"+printer_size+\"\\\" />\\n\" +\n \"<Barcode Alignment=\\\"CENTER\\\" Value=\\\"Item Barcode\\\" Transform=\\\"BIG\\\" HRIPosition=\\\"\\\" Type=\\\"ITF\\\" Width=\\\"\"+printer_size+\"\\\" />\\n\"+\n\n \"<Value Value=\\\"Dealer\\\" Width=\\\"\"+printer_size+\"\\\" />\\n\" +\n \"<Value Value=\\\"DateCreated\\\" Width=\\\"\"+printer_size+\"\\\" />\\n\" +\n \"<Value Value=\\\"Unit\\\" Width=\\\"\"+printer_size+\"\\\" />\\n\" +\n \"<Value Value=\\\"Model\\\" Width=\\\"\"+printer_size+\"\\\" />\\n\" +\n \"<Value Value=\\\"Serial\\\" Width=\\\"\"+printer_size+\"\\\" />\\n\" +\n \"<Value Value=\\\"Warranty\\\" Width=\\\"\"+printer_size+\"\\\" />\\n\" +\n \"<Value Value=\\\"Complaint\\\" Width=\\\"\"+printer_size+\"\\\" />\\n\" +\n\n \"<Text Alignment=\\\"CENTER\\\" Text=\\\"\\\" Width=\\\"\"+printer_size+\"\\\" />\\n\"+\n \"<Value Value=\\\"Name\\\" Width=\\\"\"+printer_size+\"\\\" />\\n\" +\n \"<Value Value=\\\"Phone\\\" Width=\\\"\"+printer_size+\"\\\" />\\n\" +\n \"<Text Alignment=\\\"CENTER\\\" Text=\\\"\\\" Width=\\\"\"+printer_size+\"\\\" />\\n\"+\n\n \"<Text Text=\\\"Notes:\\\" Width=\\\"\"+printer_size+\"\\\" />\\n\"+\n \"<Text Alignment=\\\"CENTER\\\" Text=\\\"\\\" Width=\\\"\"+printer_size+\"\\\" />\\n\"+\n \"<Text Alignment=\\\"CENTER\\\" Text=\\\"\\\" Width=\\\"\"+printer_size+\"\\\" />\\n\"+\n \"<Text Alignment=\\\"CENTER\\\" Text=\\\"\\\" Width=\\\"\"+printer_size+\"\\\" />\\n\"+\n \"<Text Alignment=\\\"CENTER\\\" Text=\\\"\\\" Width=\\\"\"+printer_size+\"\\\" />\\n\"+\n \"<Text Alignment=\\\"CENTER\\\" Text=\\\"\\\" Width=\\\"\"+printer_size+\"\\\" />\\n\"+\n\n \"<Separator Width=\\\"\"+printer_size+\"\\\" />\\n\" +\n \"<Text Alignment=\\\"CENTER\\\" Text=\\\"CLAIM STUB\\\" Width=\\\"\" + printer_size + \"\\\" />\\n\"+\n \"<Value Alignment=\\\"CENTER\\\" Value=\\\"Barcode Id2\\\" Width=\\\"\"+printer_size+\"\\\" />\\n\" +\n \"<Barcode Alignment=\\\"CENTER\\\" Value=\\\"Item Barcode2\\\" Transform=\\\"BIG\\\" HRIPosition=\\\"\\\" Type=\\\"ITF\\\" Width=\\\"\"+printer_size+\"\\\" />\\n\"+\n\n \"<Value Value=\\\"DateCreated2\\\" Width=\\\"\"+printer_size+\"\\\" />\\n\" +\n \"<Value Value=\\\"Name2\\\" Width=\\\"\"+printer_size+\"\\\" />\\n\" +\n \"<Value Value=\\\"Phone2\\\" Width=\\\"\"+printer_size+\"\\\" />\\n\" +\n \"<Value Value=\\\"Unit2\\\" Width=\\\"\"+printer_size+\"\\\" />\\n\" +\n \"<Value Value=\\\"Model2\\\" Width=\\\"\"+printer_size+\"\\\" />\\n\" +\n \"<Value Value=\\\"Serial2\\\" Width=\\\"\"+printer_size+\"\\\" />\\n\" +\n \"<Text Alignment=\\\"CENTER\\\" Text=\\\"\\\" Width=\\\"\"+printer_size+\"\\\" />\\n\"+\n \"<Text Alignment=\\\"CENTER\\\" Text=\\\"\\\" Width=\\\"\"+printer_size+\"\\\" />\\n\"+\n \"</Report>\";\n }", "public ProductTextFile() {\n\t\t\n\t\t\tProduct item = new Product();\n\t\t\titem.setDescription(\"South West Exploration\");\n\t\t\titem.setCode(\"SWE\");\n\t\t\titem.setPrice(49.50);\n\t\t\t\n\t\t\tproducts.add(item);\n\t\t\t\n\t\t\tProduct product = new Product();\n\t\t\tproduct.setDescription(\"All The Stars\");\n\t\t\tproduct.setCode(\"ATS\");\n\t\t\tproduct.setPrice(13.00);\n\t\t\t\n\t\t\tproducts.add(product);\n\t\t\t\n\t\t\tProduct book = new Product();\n\t\t\tbook.setDescription(\"Who Moved My Cheese?\");\n\t\t\tbook.setCode(\"WMC\");\n\t\t\tbook.setPrice(10.00);\n\t\t\t\n\t\t\tproducts.add(product);\n\t\t\t\n\t\n\t}", "private void GetDetailAnalysisText() {\n\t\tMap<Integer, ArrayList<ReportPluDayComboModifier>> combMap = getCombItemMap(this.comb);\n\n\t\tComparatorPluDayItem comparatorPluDayItem = new ComparatorPluDayItem();\n\t\tCollections.sort(reportPluDayItems, comparatorPluDayItem);\n//\t\tList<ReportPluDayItem> cop = new ArrayList<ReportPluDayItem>();\n\t\tint allQty = 0;\n\t\tBigDecimal allAmount = BH.getBD(ParamConst.DOUBLE_ZERO);\n//\t\t\tboolean showMainCategory = true;\n//\t\t\tint mainCategoryId = 0;\n\t\tboolean lastLinePrinted = false;\n//\t\tBigDecimal categoryAmount = BH.getBD(ParamConst.DOUBLE_ZERO);\n//\t\tString name = \"\";\n//\t\tint id = 0;\n\t\tMap<Integer, ReportPluDayItem> map = new HashMap<Integer, ReportPluDayItem>();\n\t\tfor (int j = 0; j < reportPluDayItems.size(); j++) {\n\n\t\t\tReportPluDayItem reportPluDayItem = reportPluDayItems.get(j);\n\t\t\t//ObjectFactory.getInstance().getReportPluDayItem(reportPluDayItem);\n\t\t\tif(map.containsKey(reportPluDayItem.getItemMainCategoryId().intValue())){\n\t\t\t\tReportPluDayItem amountReportPluDayItem = map.get(reportPluDayItem.getItemMainCategoryId().intValue());\n\t\t\t\tBigDecimal amount = BH.add(BH.getBD(amountReportPluDayItem.getItemAmount()), BH.getBD(reportPluDayItem.getItemAmount()), false);\n\t\t\t\tamountReportPluDayItem.setItemAmount(amount.toString());\n\t\t\t}else{\n\t\t\t\tReportPluDayItem rr = new ReportPluDayItem();\n\t\t\t\trr.setItemMainCategoryId(reportPluDayItem.getItemMainCategoryId());\n\t\t\t\trr.setItemMainCategoryName(reportPluDayItem.getItemMainCategoryName());\n\t\t\t\trr.setItemAmount(BH.formatMoney(reportPluDayItem.getItemAmount()));\n\t\t\t\tmap.put(reportPluDayItem.getItemMainCategoryId().intValue(), rr);\n\t\t\t}\n//\t\t\t\tif(mainCategoryId == 0 || mainCategoryId == reportPluDayItem.getItemMainCategoryId().intValue()){\n//\t\t\t\t\tcategoryAmount = BH.add(categoryAmount,\n//\t\t\t\t\t\t\tBH.getBD(reportPluDayItem.getItemAmount()), true);\n//\t\t\t\t\tname = reportPluDayItem.getItemMainCategoryName();\n//\t\t\t\t\tid = reportPluDayItem.getItemMainCategoryId().intValue();\n//\n//\t\t\t\t\tif(mainCategoryId == 0)\n//\t\t\t\t\t\tmainCategoryId = id;\n//\n//\t\t\t\t\tif( j == reportPluDayItems.size() - 1){\n//\t\t\t\t\t\tReportPluDayItem rr = new ReportPluDayItem();\n//\t\t\t\t\t\trr.setItemMainCategoryId(id);\n//\t\t\t\t\t\trr.setItemMainCategoryName(name);\n//\t\t\t\t\t\trr.setItemAmount(categoryAmount.toString());\n//\t\t\t\t\t\tcop.add(rr);\n//\t\t\t\t\t}\n//\t\t\t\t}else{\n//\t\t\t\t\tReportPluDayItem rr = new ReportPluDayItem();\n//\t\t\t\t\trr.setItemMainCategoryId(id);\n//\t\t\t\t\trr.setItemMainCategoryName(name);\n//\t\t\t\t\trr.setItemAmount(categoryAmount.toString());\n//\t\t\t\t\tcop.add(rr);\n//\t\t\t\t\tname = reportPluDayItem.getItemMainCategoryName();\n//\t\t\t\t\tid = reportPluDayItem.getItemMainCategoryId().intValue();\n//\t\t\t\t\tmainCategoryId = id;\n//\t\t\t\t\tcategoryAmount = BH.getBD(ParamConst.DOUBLE_ZERO);\n//\t\t\t\t\tcategoryAmount = BH.add(categoryAmount,\n//\t\t\t\t\t\t\tBH.getBD(reportPluDayItem.getItemAmount()), true);\n//\n//\t\t\t\t}\n\t\t}\n\n\t\tIterator<Map.Entry<Integer, ReportPluDayItem>> entries = map.entrySet().iterator();\n\t\tboolean isFirst = true;\n\t\twhile (entries.hasNext()){\n\t\t\tMap.Entry<Integer, ReportPluDayItem> entry = entries.next();\n\t\t\tif(!isFirst){\n\t\t\t\tthis.addHortionalLine(this.charSize);\n\t\t\t}\n\t\t\tisFirst = false;\n\t\t\tReportPluDayItem amontReportPluDayItem = entry.getValue();\n\t\t\tthis.AddItem(amontReportPluDayItem.getItemMainCategoryName(), \"\", \"\", BH.formatMoney(amontReportPluDayItem.getItemAmount()).toString(), 1);\n\t\t\tthis.addHortionalLine(this.charSize);\n\t\t\tfor (int j = 0; j < reportPluDayItems.size(); j++) {\n\n\t\t\t\tReportPluDayItem reportPluDayItem = reportPluDayItems.get(j);\n\t\t\t\tif (amontReportPluDayItem.getItemMainCategoryId().intValue() == reportPluDayItem.getItemMainCategoryId().intValue()) {\n\t\t\t\t\t// Print comb modifier\n\t\t\t\t\tint itmId = reportPluDayItem.getItemDetailId().intValue();\n\t\t\t\t\tArrayList<ReportPluDayComboModifier> comItems = combMap.get(itmId);\n\t\t\t\t\tif (comItems != null && comItems.size() > 0) {\n\n\t\t\t\t\t\tint mm = 0;\n\t\t\t\t\t\tthis.AddItem(\" \"+reportPluDayItem.getItemName(), BH.formatMoney(reportPluDayItem.getItemPrice()),\n\t\t\t\t\t\t\t\treportPluDayItem.getItemCount().toString(),\n\t\t\t\t\t\t\t\tBH.formatThree(reportPluDayItem.getItemAmount()), 1);\n\t\t\t\t\t\tlastLinePrinted = false;\n\t\t\t\t\t\tthis.addHortionalLine(this.charSize);\n\t\t\t\t\t\tfor (mm = 0; mm < comItems.size(); mm++) {\n\t\t\t\t\t\t\tReportPluDayComboModifier pluModifier = comItems.get(mm);\n\t\t\t\t\t\t\tint count = pluModifier.getModifierCount().intValue() - pluModifier.getVoidModifierCount().intValue() - pluModifier.getBillVoidCount().intValue();\n\t\t\t\t\t\t\tif (count > 0) {\n\t\t\t\t\t\t\t\tBigDecimal modifierAmount = BH.mul(BH.getBD(1.00), BH.getBD(pluModifier.getModifierPrice()), true);\n\t\t\t\t\t\t\t\tBigDecimal modifierPrice = BH.mul(BH.getBD(1.00), BH.getBD(pluModifier.getModifierItemPrice()), true);\n\t\t\t\t\t\t\t\tthis.AddItem(\" (\" + pluModifier.getModifierName() + \")\",\n\t\t\t\t\t\t\t\t\t\t\"(\" + BH.formatThree(modifierPrice.toString()) + \")\", \"(\" + String.valueOf(count) + \")\", \"(\" + BH.formatThree(modifierAmount.toString())+ \")\", 1);\n\t\t\t\t\t\t\t\tlastLinePrinted = false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (mm == comItems.size() && mm > 0) {\n\t\t\t\t\t\t\tif (!lastLinePrinted)\n\t\t\t\t\t\t\t\tthis.addHortionalLine(this.charSize);\n\t\t\t\t\t\t\tlastLinePrinted = true;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\tthis.AddItem(\" \"+reportPluDayItem.getItemName(), BH.formatMoney(reportPluDayItem.getItemPrice()),\n\t\t\t\t\t\t\t\treportPluDayItem.getItemCount().toString(), \"\" + BH.formatMoney(reportPluDayItem.getItemAmount()), 1);\n\t\t\t\t\t\tlastLinePrinted = false;\n\t\t\t\t\t}\n\t\t\t\t\t//END Comb modifier print\n\t\t\t\t\tallQty += reportPluDayItem.getItemCount();\n\t\t\t\t\tallAmount = BH.add(allAmount,\n\t\t\t\t\t\t\tBH.getBD(reportPluDayItem.getItemAmount()), true);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n//\t\tfor(ReportPluDayItem category : cop) {\n//\t\t\t\tif(cop.indexOf(category) != 0){\n//\t\t\t\t\tthis.addHortionalLine(this.charSize);\n//\t\t\t\t}\n//\t\t\t\tthis.AddItem(category.getItemMainCategoryName(), \"\", \"\", category.getItemAmount(), 1);\n//\t\t\t\tthis.addHortionalLine(this.charSize);\n//\t\t\t\tfor (int j = 0; j < reportPluDayItems.size(); j++) {\n//\n//\t\t\t\t\tReportPluDayItem reportPluDayItem = reportPluDayItems.get(j);\n////\t\t\t\t\tif (mainCategoryId != reportPluDayItem.getItemMainCategoryId().intValue()) {\n////\t\t\t\t\t\tif (mainCategoryId != 0) {\n////\t\t\t\t\t\t\tif (!lastLinePrinted)\n////\t\t\t\t\t\t\t\tthis.addHortionalLine(this.charSize);\n////\t\t\t\t\t\t\tlastLinePrinted = true;\n////\t\t\t\t\t\t}\n////\t\t\t\t\t\tmainCategoryId = reportPluDayItem.getItemMainCategoryId().intValue();\n////\t\t\t\t\t\tshowMainCategory = true;\n////\t\t\t\t\t}\n////\t\t\t\t\tif (showMainCategory) {\n////\t\t\t\t\t\tthis.AddItem(reportPluDayItem.getItemMainCategoryName(), \"\", \"\", \"\", 1);\n////\t\t\t\t\t\tthis.addHortionalLine(this.charSize);\n////\t\t\t\t\t\tshowMainCategory = false;\n////\t\t\t\t\t\tlastLinePrinted = true;\n////\t\t\t\t\t}\n//\t\t\t\t\tif (category.getItemMainCategoryId().intValue() == reportPluDayItem.getItemMainCategoryId().intValue()) {\n//\t\t\t\t\t\t//Bob: Print comb modifier\n//\t\t\t\t\t\tint itmId = reportPluDayItem.getItemDetailId().intValue();\n//\t\t\t\t\t\tArrayList<ReportPluDayComboModifier> comItems = combMap.get(itmId);\n//\t\t\t\t\t\tif (comItems != null && comItems.size() > 0) {\n//\n//\t\t\t\t\t\t\tint mm = 0;\n//\t\t\t\t\t\t\tthis.AddItem(\" \"+reportPluDayItem.getItemName(), reportPluDayItem.getItemPrice(),\n//\t\t\t\t\t\t\t\t\treportPluDayItem.getItemCount().toString(),\n//\t\t\t\t\t\t\t\t\treportPluDayItem.getItemAmount(), 1);\n//\t\t\t\t\t\t\tlastLinePrinted = false;\n//\t\t\t\t\t\t\tthis.addHortionalLine(this.charSize);\n//\t\t\t\t\t\t\tfor (mm = 0; mm < comItems.size(); mm++) {\n//\t\t\t\t\t\t\t\tReportPluDayComboModifier pluModifier = comItems.get(mm);\n//\t\t\t\t\t\t\t\tint count = pluModifier.getModifierCount().intValue() - pluModifier.getVoidModifierCount().intValue() - pluModifier.getBillVoidCount().intValue();\n//\t\t\t\t\t\t\t\tif (count > 0) {\n//\t\t\t\t\t\t\t\t\tBigDecimal modifierAmount = BH.mul(BH.getBD(1.00), BH.getBD(pluModifier.getModifierPrice()), true);\n//\t\t\t\t\t\t\t\t\tBigDecimal modifierPrice = BH.mul(BH.getBD(1.00), BH.getBD(pluModifier.getModifierItemPrice()), true);\n//\t\t\t\t\t\t\t\t\tthis.AddItem(\" (\" + pluModifier.getModifierName() + \")\",\n//\t\t\t\t\t\t\t\t\t\t\t\"(\" + modifierPrice.toString() + \")\", \"(\" + String.valueOf(count) + \")\", \"(\" + modifierAmount.toString() + \")\", 1);\n//\t\t\t\t\t\t\t\t\tlastLinePrinted = false;\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\tif (mm == comItems.size() && mm > 0) {\n//\t\t\t\t\t\t\t\tif (!lastLinePrinted)\n//\t\t\t\t\t\t\t\t\tthis.addHortionalLine(this.charSize);\n//\t\t\t\t\t\t\t\tlastLinePrinted = true;\n//\t\t\t\t\t\t\t}\n//\n//\t\t\t\t\t\t} else {\n//\n//\t\t\t\t\t\t\tthis.AddItem(\" \"+reportPluDayItem.getItemName(), reportPluDayItem.getItemPrice(),\n//\t\t\t\t\t\t\t\t\treportPluDayItem.getItemCount().toString(), \"\" + reportPluDayItem.getItemAmount(), 1);\n//\t\t\t\t\t\t\tlastLinePrinted = false;\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t//END Comb modifier print\n//\t\t\t\t\t\tallQty += reportPluDayItem.getItemCount();\n//\t\t\t\t\t\tallAmount = BH.add(allAmount,\n//\t\t\t\t\t\t\t\tBH.getBD(reportPluDayItem.getItemAmount()), true);\n//\t\t\t\t\t}\n//\t\t\t\t}\n//\t\t\t}\n\t\tif (allQty != 0) {\n\t\t\tthis.addHortionalLine(this.charSize);\n\t\t\tthis.AddItem(PrintService.instance.getResources().getString(R.string.total), \"\", allQty + \"\", BH.formatMoney(allAmount.toString()), 1);\n\t\t}\n\n\n\t}", "private void showSuccessfullPreparationAndPrintLabel(Prescription prescription) {\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\n alert.setTitle(\"Information Dialog\");\n alert.setHeaderText(null);\n\n // if (prescription.getMedications().size() > 1) {\n\n/* alert.setContentText(\"You now have successfully prepared all medications\\n for the prescription\" +\n \"congratulations!! :-p\" +\n \"\\nTake the printed barcode and put in on the item\" +\n \"\\nto enable bedside scanning.\" +\n \"\\n<< Happy Scan >>\"\n );*/\n\n alert.setContentText(\"Für die Verordnung -\" + prescription.getDescription()\n + \"- mit ID \" + prescription.getPolypointID() +\n \" wurden alle Medikamente vorbereitet,\\n\" +\n \"eine Barcode-Etikette wird im Anschluss gedruckt.\"\n );\n alert.showAndWait();\n\n try {\n barcodeGenerator.printBarcode(prescription, printerName, filePath);\n } catch (IOException e) {\n e.printStackTrace();\n } catch (PrinterException e) {\n e.printStackTrace();\n Alert printAlert = new Alert(Alert.AlertType.ERROR);\n printAlert.setTitle(\"Druckfehler Dialog\");\n printAlert.setHeaderText(null);\n printAlert.setContentText(\"Leider gab es ein Fehler beim Drucken mit Drucker \" + printerName + \".\\n\" +\n \"Falls der Drucker in Ordnung ist, lösen Sie den Vorgang erneut aus.\");\n printAlert.showAndWait();\n }\n\n //}\n\n\n\n\n }", "@Override\n public String getDescription() {\n return \"Digital goods delivery\";\n }", "@Override\n\tpublic String getText() {\n\t\treturn \"MMS: \" + text;\n\t}", "@Override\n public void onReceivedData(byte[] arg0) {\n String data = null;\n try {\n data = new String(arg0, \"UTF-8\");\n createMsg(data.trim());\n tvAppend(txtResponse, data);\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n }", "private void generatePdf(){\n drawContent();\n\n itemList.clear(); //clear the temporary list of number of items\n\n // clear the form\n AddedItem = 0;\n\n EditText[] AllText = { pay1, pay2, detail1, detail2, item, qty, price, Remark };\n for (EditText e: AllText)\n e.setText(\"\");\n\n items = findViewById(R.id.itemAdded);\n items.setText(\"Item Added: \");\n }", "public void read() {\r\n\t\tJTextField txtCustomerNo = new JTextField();\r\n\t\ttxtCustomerNo.setText(\"\" + this.getCustomerNo());\r\n\t\tJTextField txtTitle = new JTextField();\r\n\t\ttxtTitle.requestFocus();\r\n\t\tJTextField txtFirstName = new JTextField();\r\n\t\tJTextField txtSurname = new JTextField();\r\n\t\tJTextField txtAddress = new JTextField();\r\n\t\tJTextField txtPhoneNo = new JTextField();\r\n\t\tJTextField txtEmail = new JTextField();\r\n\r\n\t\t\r\n\t\tObject[] message = { \"Customer Number:\", txtCustomerNo, \"Title:\", txtTitle, \"First Name:\", txtFirstName,\r\n\t\t\t\t\"Surname:\", txtSurname, \"Address:\", txtAddress, \"Phone Number:\", txtPhoneNo, \"Email:\", txtEmail, };\r\n\t\t\r\n\r\n\t\tint option = JOptionPane.showConfirmDialog(null, message, \"Enter customer details\",\r\n\t\t\t\tJOptionPane.OK_CANCEL_OPTION);\r\n\t\t\r\n\t\tName txtName = new Name(txtTitle.getText(), txtFirstName.getText(), txtSurname.getText());\r\n\r\n\t\tif (option == JOptionPane.OK_OPTION) {\r\n\t\t\tthis.name = txtName;\r\n\t\t\tthis.address = txtAddress.getText();\r\n\t\t\tthis.phoneNo = txtPhoneNo.getText();\r\n\t\t\tthis.emailAddress = txtEmail.getText();\r\n\t\t}\r\n\t}", "public void KTesteCompleto() throws RemoteException {\n\n // Alinhamento\n kPrinterPresenter.printStyleBold(false);\n kPrinterPresenter.setAlign(kPrinterPresenter.Alignment_CENTER);\n kPrinterPresenter.text(\"Alinhamento\\n\");\n kPrinterPresenter.text(\"--------------------------------\\n\");\n kPrinterPresenter.setAlign(kPrinterPresenter.Alignment_LEFT);\n kPrinterPresenter.text(\"TecToy Automação\\n\");\n kPrinterPresenter.setAlign(kPrinterPresenter.Alignment_CENTER);\n kPrinterPresenter.text(\"TecToy Automação\\n\");\n kPrinterPresenter.setAlign(kPrinterPresenter.Alignment_RIGTH);\n kPrinterPresenter.text(\"TecToy Automação\\n\");\n kPrinterPresenter.print3Line();\n\n // Formas de impressão\n\n kPrinterPresenter.setAlign(kPrinterPresenter.Alignment_CENTER);\n kPrinterPresenter.text(\"Formas de Impressão\\n\");\n kPrinterPresenter.text(\"--------------------------------\\n\");\n kPrinterPresenter.setAlign(kPrinterPresenter.Alignment_LEFT);\n kPrinterPresenter.printStyleBold(true);\n kPrinterPresenter.text(\"TecToy Automação\\n\");\n\n\n // Barcode\n\n kPrinterPresenter.setAlign(kPrinterPresenter.Alignment_CENTER);\n kPrinterPresenter.text(\"BarCode\\n\");\n kPrinterPresenter.text(\"--------------------------------\\n\");\n kPrinterPresenter.setAlign(kPrinterPresenter.Alignment_LEFT);\n kPrinterPresenter.printBarcode(\"7891098010575\", 2, 162, 2, 0);\n kPrinterPresenter.setAlign(kPrinterPresenter.Alignment_CENTER);\n kPrinterPresenter.printBarcode(\"7891098010575\", 2, 162, 2, 2);\n kPrinterPresenter.setAlign(kPrinterPresenter.Alignment_RIGTH);\n kPrinterPresenter.printBarcode(\"7891098010575\", 2, 162, 2, 1);\n kPrinterPresenter.setAlign(kPrinterPresenter.Alignment_CENTER);\n kPrinterPresenter.printBarcode(\"7891098010575\", 2, 162, 2, 3);\n kPrinterPresenter.print3Line();\n // QrCode\n\n kPrinterPresenter.setAlign(kPrinterPresenter.Alignment_CENTER);\n kPrinterPresenter.text(\"QrCode\\n\");\n kPrinterPresenter.text(\"--------------------------------\\n\");\n kPrinterPresenter.setAlign(kPrinterPresenter.Alignment_CENTER);\n kPrinterPresenter.printQr(\"www.tectoyautomacao.com.br\", 8, 0);\n kPrinterPresenter.setAlign(kPrinterPresenter.Alignment_LEFT);\n kPrinterPresenter.printQr(\"www.tectoyautomacao.com.br\", 8, 0);\n kPrinterPresenter.setAlign(kPrinterPresenter.Alignment_RIGTH);\n kPrinterPresenter.printQr(\"www.tectoyautomacao.com.br\", 8, 0);\n kPrinterPresenter.setAlign(kPrinterPresenter.Alignment_LEFT);\n kPrinterPresenter.printDoubleQRCode(\"www.tectoyautomacao.com.br\",\"tectoy\", 7, 1);\n // Imagem\n\n\n kPrinterPresenter.setAlign(kPrinterPresenter.Alignment_CENTER);\n kPrinterPresenter.text(\"Imagem\\n\");\n kPrinterPresenter.text(\"--------------------------------\\n\");\n BitmapFactory.Options options = new BitmapFactory.Options();\n options.inTargetDensity = 160;\n options.inDensity = 160;\n Bitmap bitmap1 = null;\n if (bitmap1 == null) {\n bitmap1 = BitmapFactory.decodeResource(getResources(), test1, options);\n bitmap1 = scaleImage(bitmap1);\n }\n kPrinterPresenter.printBitmap(bitmap1, 0);\n kPrinterPresenter.setAlign(0);\n kPrinterPresenter.printBitmap(bitmap1, 0);\n kPrinterPresenter.setAlign(2);\n kPrinterPresenter.printBitmap(bitmap1, 0);\n // Tabelas\n\n\n kPrinterPresenter.setAlign(kPrinterPresenter.Alignment_CENTER);\n kPrinterPresenter.text(\"Tabelas\\n\");\n kPrinterPresenter.text(\"--------------------------------\\n\");\n String[] prod = new String[3];\n int[] width = new int[3];\n int[] align = new int[3];\n\n width[0] = 100;\n width[1] = 50;\n width[2] = 50;\n\n align[0] = kPrinterPresenter.Alignment_LEFT;\n align[1] = kPrinterPresenter.Alignment_CENTER;\n align[2] = kPrinterPresenter.Alignment_RIGTH;\n\n prod[0] = \"Produto 001\";\n prod[1] = \"10 und\";\n prod[2] = \"3,98\";\n kPrinterPresenter.printTable(prod, width, align);\n\n prod[0] = \"Produto 002\";\n prod[1] = \"10 und\";\n prod[2] = \"3,98\";\n kPrinterPresenter.printTable(prod, width, align);\n\n\n prod[0] = \"Produto 003\";\n prod[1] = \"10 und\";\n prod[2] = \"3,98\";\n kPrinterPresenter.printTable(prod, width, align);\n\n\n prod[0] = \"Produto 004\";\n prod[1] = \"10 und\";\n prod[2] = \"3,98\";\n kPrinterPresenter.printTable(prod, width, align);\n\n\n prod[0] = \"Produto 005\";\n prod[1] = \"10 und\";\n prod[2] = \"3,98\";\n kPrinterPresenter.printTable(prod, width, align);\n\n prod[0] = \"Produto 006\";\n prod[1] = \"10 und\";\n prod[2] = \"3,98\";\n kPrinterPresenter.printTable(prod, width, align);\n\n\n kPrinterPresenter.print3Line();\n kPrinterPresenter.cutpaper(KTectoySunmiPrinter.HALF_CUTTING, 10);\n\n }", "public String licenseToMarriagePrintInit() {\n logger.debug(\"attempt to print license to marriage for marriage notice :idUKey : {} and notice type : {}\",\n idUKey, noticeType);\n try {\n marriage = marriageRegistrationService.getMarriageNoticeForPrintLicense(idUKey, user);\n } catch (CRSRuntimeException e) {\n switch (e.getErrorCode()) {\n case ErrorCodes.INVALID_STATE_FOR_PRINT_LICENSE:\n addActionError(getText(\"error.print.license.failed.invalid.state\"));\n }\n addActionError(getText(\"error.print.license.failed\"));\n getApprovalPendingNotices();\n return ERROR;\n }\n //displaying issuing locations and authorized users\n populateLocationsAndIssuingUsersDropDowns(marriage);\n populateIssuingUserAndLocation(marriage, user);\n populateLicense(marriage);\n return SUCCESS;\n }", "public void testProductionRecord() {\n // test constructor used when creating production records from user interface\n Integer numProduced = 3; // this will come from the combobox in the UI\n\n for (int productionRunProduct = 0; productionRunProduct < numProduced; productionRunProduct++) {\n ProductionRecord pr = new ProductionRecord(0);\n System.out.println(pr.toString());\n }\n\n ProductionRecord pr = new ProductionRecord(0, 3, \"1\", new Date(System.currentTimeMillis()));\n\n textLog.setText(textLog.getText() + pr.toString());\n textLog.setText(textLog.getText() + \"\\n\" + pr.getProductionNumber());\n textLog.setText(textLog.getText() + \"\\n\" + pr.getProductID());\n textLog.setText(textLog.getText() + \"\\n\" + pr.getSerialnumber());\n textLog.setText(textLog.getText() + \"\\n\" + pr.getDateProduced());\n\n }", "public String printableString()\r\n {\r\n String answer=\"\";\r\n answer=\"\\n Title:\\t\"+title+\"\\n Author:\\t\"+author+\"\\n Asking Price:\\t\"+askingPrice+\r\n \"\\n Purchased for:\\t\"+purchasePrice+\"\\n Date Acquired:\\t\"+dateAcquired+\"\\n Genre:\\t\"+genre+\"\\n Number on hand:\\t\"+bookCount+\"\\n\";\r\n return answer;\r\n }", "public void cashReceipt(int amount){\r\n System.out.println(\"Take the receipt\");\r\n }", "public static void getMessage() {\r\n\t\tLog.i(TAG,\r\n\t\t\t\t\"+++ GOT MESSAGE FROM ARDUINO +++\" + getArduinoMessage());\r\n\t\tString[] msgSplit = getArduinoMessage().split(\":\");\r\n\t\tString keyWord = \"\";\r\n\t\tString firstVaule = \"\";\r\n\t\tString secondValue = \"\";\r\n\r\n\t\tif (msgSplit.length > 0) {\r\n\t\t\tkeyWord = msgSplit[1];\r\n\t\t\tfirstVaule = msgSplit[2];\r\n\t\t\tsecondValue = msgSplit[3];\r\n\t\t}\r\n\r\n\t\tif (keyWord.equals(\"xy\")) {\r\n\t\t\tgetTelescopeAltAz(firstVaule, secondValue);\r\n\t\t\tstartTracking();\r\n\t\t}\r\n\t\tif (keyWord.equals(\"xyt\")) {\r\n\t\t\tLog.i(TAG, \"+++ GOT TELESCOPE POSITION \" + firstVaule + \" \"\r\n\t\t\t\t\t+ secondValue);\r\n\t\t\tstar++;\r\n\t\t\tgetTelescopeAltAz(firstVaule, secondValue, star );\r\n\t\t}\r\n\t}", "protected String getMailDebugInfo()\n {\n StringBuffer str = new StringBuffer();\n str.append(\"Email Details:\").append(\"\\n\");\n str.append(\"konakartAPI = \").append(konakartAPI).append(\"\\n\");\n str.append(\"storeOwner = \").append(storeOwner).append(\"\\n\");\n str.append(\"storeOwnerEmailAddr = \").append(storeOwnerEmailAddr).append(\"\\n\");\n str.append(\"storeName = \").append(storeName).append(\"\\n\");\n str.append(\"storeId = \").append(storeId).append(\"\\n\");\n str.append(\"imageBaseUrl = \").append(imageBaseUrl).append(\"\\n\");\n str.append(\"templateBase = \").append(templateBase).append(\"\\n\");\n str.append(\"displayPricesWithTax = \").append(displayPricesWithTax).append(\"\\n\");\n str.append(\"emailSubject = \").append(emailSubject).append(\"\\n\");\n str.append(\"destinationEmailAddr = \").append(emailAddr).append(\"\\n\");\n str.append(\"fromAddress = \").append(fromAddressStr).append(\"\\n\");\n str.append(\"fromAddressName = \").append(fromName).append(\"\\n\");\n str.append(\"replyToAddress = \").append(replyToAddressStr).append(\"\\n\");\n str.append(\"replyToAddressName = \").append(replyToName).append(\"\\n\");\n if (bccEmailsStrArray != null && bccEmailsStrArray.length > 0)\n {\n for (int i = 0; i < bccEmailsStrArray.length; i++)\n {\n String bccEmail = bccEmailsStrArray[i];\n str.append(\"bccEmail = \").append(bccEmail).append(\"\\n\");\n }\n }\n str.append(\"contentType = \").append(contentType).append(\"\\n\");\n str.append(\"doBlindCopy = \").append(doBlindCopy).append(\"\\n\");\n str.append(\"fullAttachmentFilename = \").append(fullAttachmentFilename).append(\"\\n\");\n str.append(\"isAsync = \").append(isAsync).append(\"\\n\");\n str.append(\"countryCode = \").append(countryCode).append(\"\\n\");\n str.append(\"templateName = \").append(templateName).append(\"\\n\");\n str.append(\"customerName = \").append(customerName).append(\"\\n\");\n if (newPassword != null)\n {\n str.append(\"newPassword = \").append(\"YES\").append(\"\\n\");\n str.append(\"expiryMins = \").append(expiryMins).append(\"\\n\");\n }\n if (productName != null)\n {\n str.append(\"productName = \").append(productName).append(\"\\n\");\n str.append(\"productQuantity = \").append(productQuantity).append(\"\\n\");\n str.append(\"productId = \").append(productId).append(\"\\n\");\n str.append(\"sku = \").append(sku).append(\"\\n\");\n }\n\n str.append(\"emailBody = \").append(emailBody).append(\"\\n\");\n if (appCustomer != null)\n {\n str.append(\"customer = \").append(appCustomer.toString()).append(\"\\n\");\n } else if (adminCustomer != null)\n {\n str.append(\"customer = \").append(adminCustomer.toString()).append(\"\\n\");\n } else\n {\n str.append(\"customer is null\").append(\"\\n\");\n }\n if (appOrder != null)\n {\n str.append(\"order = \").append(appOrder.toString()).append(\"\\n\");\n } else if (adminOrder != null)\n {\n str.append(\"order = \").append(adminOrder.toString()).append(\"\\n\");\n } else\n {\n str.append(\"order is null\").append(\"\\n\");\n }\n if (vendorOrders != null && vendorOrders.length > 0)\n {\n for (int i = 0; i < vendorOrders.length; i++)\n {\n Order vOrder = vendorOrders[i];\n str.append(\"vendor order = \").append(vOrder.toString()).append(\"\\n\");\n }\n }\n return str.toString();\n }", "@Override\n protected void onSuccessRequestReceipts(Collection<Receipt> receipts) {\n \tmTxtStatus.setText(\"requestReceipts onSuccess: received \"+receipts.size() + \" receipts\");\n \t}", "public void purchase(){\n\t\t\n\t\t//Ask the user for notes about the item\n\t\tSystem.out.println(\"Please enter any special requests regarding your \" +\n\t\t\t\t\t\t\t\"food item for our staff to see while they prepare it.\");\n\t\tScanner scan = new Scanner(System.in);\n\t\tString foodNotes = scan.nextLine();\n\t\tnotes = foodNotes;\n\t\t\n\t\t//Add this item's price to the order total\n\t\tMenu.orderPrice += price;\n\t\t\n\t}" ]
[ "0.6816269", "0.66755354", "0.66014963", "0.63235676", "0.6307949", "0.6251374", "0.6176009", "0.6167995", "0.6155773", "0.61064446", "0.60918546", "0.5992662", "0.5933184", "0.5931003", "0.59009546", "0.5899459", "0.588998", "0.5865942", "0.58512825", "0.5809473", "0.580242", "0.5788303", "0.575749", "0.5722923", "0.5714597", "0.56657565", "0.5618438", "0.56137556", "0.56029034", "0.5578284", "0.5550828", "0.5550097", "0.5535276", "0.55337894", "0.55067354", "0.5486922", "0.5465555", "0.54590696", "0.5439018", "0.536168", "0.5356882", "0.53478295", "0.53441274", "0.5343634", "0.53403234", "0.5333537", "0.5330562", "0.5324938", "0.53230643", "0.53189206", "0.531025", "0.5307681", "0.53071433", "0.530603", "0.5296417", "0.52745306", "0.5268733", "0.526288", "0.52390295", "0.52307826", "0.5227965", "0.51930726", "0.51513195", "0.5146913", "0.5144311", "0.5136195", "0.51358604", "0.513359", "0.5131747", "0.5128376", "0.51267225", "0.51254827", "0.512391", "0.511611", "0.5115968", "0.5111305", "0.51026994", "0.5099155", "0.5094624", "0.5094275", "0.5090233", "0.50860626", "0.5084082", "0.50792855", "0.50594157", "0.50564563", "0.50472766", "0.50446856", "0.5042162", "0.50397444", "0.50388086", "0.5028307", "0.50187284", "0.50183153", "0.5016333", "0.5010134", "0.50042397", "0.5003496", "0.4994148", "0.49857643", "0.4981876" ]
0.0
-1
TODO Autogenerated method stub
@Override public String getColumnName(int col) { return columnNames.get(col); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public int getColumnCount() { return columnNames.size(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public int getRowCount() { return rowData.size(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public Object getValueAt(int rowIndex, int colIndex) { return rowData.get(rowIndex).get(colIndex); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
This method must be called before you request the EntityManagerFactory
@BeforeAll public static void setUpClass() { EMF_Creator.startREST_TestWithDB(); emf = EMF_Creator.createEntityManagerFactoryForTest(); httpServer = startServer(); //Setup RestAssured RestAssured.baseURI = SERVER_URL; RestAssured.port = SERVER_PORT; RestAssured.defaultParser = Parser.JSON; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract EntityManagerFactory getEntityManagerFactory();", "@Override\n\tpublic EntityManagerFactory getEntityManagerFactory() {\n\t\treturn null;\n\t}", "private static void init() {\n\t\tif (factory == null) {\n\t\t\tfactory = Persistence.createEntityManagerFactory(\"hibernatePersistenceUnit\");\n\t\t}\n\t\tif (em == null) {\n\t\t\tem = factory.createEntityManager();\n\t\t}\n\t}", "@Override\n\tprotected EntityManager getEntityManager() {\n\t\treturn entityManager;\n\t}", "@Override\n\tprotected EntityManager getEntityManager() {\n\t return em;\n\t}", "@Override\n protected EntityManager getEntityManager() {\n return em;\n }", "EMInitializer() {\r\n try {\r\n emf = Persistence.createEntityManagerFactory(\"pl.polsl_MatchStatist\"\r\n + \"icsWeb_war_4.0-SNAPSHOTPU\");\r\n em = emf.createEntityManager();\r\n } catch (Exception e) {\r\n em = null;\r\n emf = null;\r\n }\r\n\r\n }", "static EntityManager getEntityManager(){\n return ENTITY_MANAGER_FACTORY.createEntityManager();\n }", "private static void init(){\n entityManager = HibernateUtil.getEntityManager();\n transaction = entityManager.getTransaction();\n }", "EntityManager createEntityManager();", "@Before\n\tpublic void setUp() throws Exception {\n\t\tydelseService.setEntityManager(entityManager);\n\t}", "@Override\n\tprotected EntityManager getEntityManager() {\n\t\treturn em;\n\t}", "@Override\n\tprotected EntityManager getEntityManager() {\n\t\treturn em;\n\t}", "@Override\n\tprotected EntityManager getEntityManager() {\n\t\treturn null;\n\t}", "@Override\n public EntityManager getEntityManager() {\n return entityManager;\n }", "protected void entityInit() {}", "@Before\n\tpublic void init()\n\t{\n\t\tEntityManagerFactory entityManagerFactory = Persistence.createEntityManagerFactory(\"persistenceUnit\");\n\t\tEntityManager entityManager = entityManagerFactory.createEntityManager();\n\t\tcacheManager = new CacheManagerDefaultImpl();\n\t\t((CacheManagerDefaultImpl) cacheManager).setEntityManager(entityManager);\n\t}", "protected abstract EntityManager getEntityManager();", "protected EntityManager getEntityManager() {\n return emf.createEntityManager();\n }", "@Override\n\tpublic EntityManager getEntityManager() {\n\t return em;\n\t}", "public interface IEntityManagerFactory {\r\n\r\n\t/**\r\n\t * Called when entity manager factory will help to create DAO objects.\r\n\t * \r\n\t * @return\r\n\t */\r\n\tEntityManager createEntityManager();\r\n}", "private EntityManagerProvider(){}", "abstract E getEntityManager();", "@BeforeClass\n public static void initTestFixture() throws Exception {\n entityManagerFactory = Persistence.createEntityManagerFactory(\"test\");\n entityManager = entityManagerFactory.createEntityManager();\n }", "private AdminEntity() {\n \tsuper();\n\n this.emf = Persistence.createEntityManagerFactory(\"entityManager\");\n\tthis.em = this.emf.createEntityManager();\n\tthis.tx = this.em.getTransaction();\n }", "@Override\n\tpublic void contextInitialized(ServletContextEvent arg0) {\n\t\temf = Persistence.createEntityManagerFactory(\"CACIC2018\");\n\t}", "public void setupEntities() {\n }", "@BeforeEach\n void init() {\n\n EntityManagerFactory entityManagerFactory = Persistence.createEntityManagerFactory(\"pu\");\n employeeDao = new EmployeeDao(entityManagerFactory);\n\n\n }", "protected EntityManager getEntityManager() {\n return em;\n }", "public EntityManagerFactory newEMFactory() {\n emFactory = Persistence.createEntityManagerFactory(\"Exercici1-JPA\");\n return emFactory;\n }", "protected EntityManager getEntityManager() {\n return this.entityManager;\n }", "@Before\n\tpublic void setUp() throws Exception {\n\t\ttry {\n\t\t\temf = Persistence.createEntityManagerFactory(\"DistribSubastaCoreEM\");\n\t\t dao.setEm(emf.createEntityManager());\n\t\t dao.getEm().setFlushMode(FlushModeType.COMMIT);\n\t\t dao.getEm().getEntityManagerFactory().getCache().evictAll();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tfail();\n\t\t}\n\t}", "@Override\n\tpublic void contextInitialized(ServletContextEvent arg0) {\n\t\tfactory = Persistence.createEntityManagerFactory(\"Test\");\n\t\tServletContext sc = arg0.getServletContext();\n\t\tsc.setAttribute(EntityManagerFactory.class.getName(), factory);\n\t}", "@BeforeClass\n\tpublic static void init() {\n\t\ttry {\n\t\t\tif (emf == null) {\n\t\t\t\temf = Persistence.createEntityManagerFactory(\"application\");\n\t\t\t\tif (em == null) {\n\t\t\t\t\tem = loadConfiguration(emf);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public EntityManager getEntityManager() {\n return getFactory().createEntityManager();\n }", "@BeforeClass\n\tpublic static void setUpBeforeClass() throws Exception {\n\t\temf = Persistence.createEntityManagerFactory(\"si-database\");\n\t}", "@Override\n @Test(groups = {\"Entity Manager access\"})\n public void testEntityManager00() throws Exception {\n super.testEntityManager00();\n }", "public EntityManager getEntityManager() {\r\n return entityManager;\r\n }", "public void initializeOnCreation() \n\t\t\t\tthrows PersistenceException{\n\n\t}", "@Override\r\n public void testGettingEntityManager() { debug(\"overriddenTestGettingEntityManager - noop\"); }", "@Bean\n\tpublic LocalContainerEntityManagerFactoryBean entityManagerFactory() {\n\t\tLocalContainerEntityManagerFactoryBean entityManagerFactory = new LocalContainerEntityManagerFactoryBean();\n\t\tentityManagerFactory.setDataSource(dataSource());\n\t\t// Classpath scanning of @Component, @Service, etc annotated class\n\t\tentityManagerFactory.setPackagesToScan(\"com.jpa\");\n\t\t// Vendor adapter\n\t\tHibernateJpaVendorAdapter vendorAdapter = new HibernateJpaVendorAdapter();\n\t\tentityManagerFactory.setJpaVendorAdapter(vendorAdapter);\n\t\t// Hibernate properties\n\t\tProperties additionalProperties = new Properties();\n\t\tadditionalProperties.put(\"hibernate.show_sql\", \"true\");\n\t\tadditionalProperties.put(\"hibernate.hbm2ddl.auto\", \"none\");\n\t\tadditionalProperties.put(\"hibernate.jdbc.batch_size\", \"10\");\n\t\tadditionalProperties.put(\"hibernate.order_inserts\", \"true\");\n\t\tadditionalProperties.put(\"hibernate.order_updates\", \"true\");\n\t\tadditionalProperties.put(\"hibernate.jdbc.batch_versioned_data\", \"true\");\n\t\tentityManagerFactory.setJpaProperties(additionalProperties);\n\t\treturn entityManagerFactory;\n\t}", "public EntityFactoryImpl() {\n\t\tsuper();\n\t}", "@Bean\n EntityManagerFactory entityManagerFactoryProvider() {\n \tEntityManagerFactory emf = Persistence.createEntityManagerFactory(DATA_SOURCE_NAME);\n return emf;\n }", "public abstract void setEntityManager(EntityManager em);", "@Bean\n public LocalContainerEntityManagerFactoryBean managerFactory() {\n HibernateJpaVendorAdapter adapter = new HibernateJpaVendorAdapter();\n adapter.setGenerateDdl(false);\n\n Properties jpaProps = new Properties();\n jpaProps.put(\"hibernate.dialect\",\"org.hibernate.dialect.H2Dialect\");\n\n LocalContainerEntityManagerFactoryBean factory = new LocalContainerEntityManagerFactoryBean();\n factory.setJpaVendorAdapter(adapter);\n factory.setPackagesToScan(\"com.webmvc.mywebmvc\");\n factory.setDataSource(dataSource);\n factory.setJpaProperties(jpaProps);\n\n\n return factory;\n }", "@Bean\n public LocalContainerEntityManagerFactoryBean entityManagerFactory() throws NamingException {\n LocalContainerEntityManagerFactoryBean factoryBean = new LocalContainerEntityManagerFactoryBean();\n factoryBean.setDataSource(dataSource());\n factoryBean.setPackagesToScan(new String[]{\"com.group.project.entities\"});\n factoryBean.setJpaVendorAdapter(jpaVendorAdapter());\n factoryBean.setJpaProperties(jpaProperties());\n return factoryBean;\n }", "@Override\n\t@PersistenceContext(unitName=\"PU-POC\")\t\n\tpublic void setEntityManager(EntityManager entityManager) {\n\t\tsuper.setEntityManager(entityManager);\n\t}", "@BeforeClass\r\n public static void initTextFixture(){\r\n entityManagerFactory = Persistence.createEntityManagerFactory(\"itmd4515PU\");\r\n }", "public BookJPAImpl(TxDAOFactoryImpl factory) {\n\t\t//emf = Persistence.createEntityManagerFactory(\"sistemiDistribuitiLS\");\n\t\tthis.em = factory.getEntityManager();\n\t}", "@Override\r\n\tpublic EntityManager getEntityManger() {\n\t\treturn em;\r\n\t}", "public interface EntityManagerCreator {\n EntityManager createEntityManager();\n}", "@Override\n public void initSessionFactories() {\n super.initSessionFactories();\n\n sessionFactories.put(EntityCache.class, new SessionFactory() {\n\n @Override\n public Class<?> getSessionType() {\n return EntityCache.class;\n }\n @Override\n public Session openSession(CommandContext commandContext) {\n return new EntityCacheImpl();\n }\n });\n }", "protected static void setUp() throws Exception {\n // A SessionFactory is set up once for an application!\n final StandardServiceRegistry registry = new StandardServiceRegistryBuilder()\n .configure(\"conflict.cfg.xml\")\n .build();\n try {\n sessionFactory = new MetadataSources(registry).buildMetadata().buildSessionFactory();\n } catch (Exception e) {\n e.printStackTrace();\n StandardServiceRegistryBuilder.destroy(registry);\n }\n }", "static void initialize() {\n final StandardServiceRegistry registry = new StandardServiceRegistryBuilder()\r\n .configure() // configures settings from hibernate.cfg.xml\r\n .build();\r\n try {\r\n sessionFactory = new MetadataSources( registry ).buildMetadata().buildSessionFactory();\r\n }\r\n catch (Exception e) {\r\n StandardServiceRegistryBuilder.destroy( registry );\r\n }\r\n }", "@Bean\n\tpublic LocalContainerEntityManagerFactoryBean entityManagerFactory() {\n\t\tLocalContainerEntityManagerFactoryBean entityManagerFactory = new LocalContainerEntityManagerFactoryBean();\n\t\tentityManagerFactory.setDataSource(dataSource);\n\t\tentityManagerFactory.setJpaDialect(hibernateJpaDialect());\n\t\tentityManagerFactory.setJpaVendorAdapter(hibernateJpaVendorAdapter());\n\t\tentityManagerFactory.setJpaProperties(getJpaProperties());\n\t\tentityManagerFactory.setPackagesToScan(\"com.bouacheria.ami.domain\");\n\t\treturn entityManagerFactory;\n\t}", "public static EntityManagerFactory getEntityManagerFactory()\n\t\t\tthrows PersistenceException, UnsupportedUserAttributeException, NamingException {\n\t\tif (emf == null)\n\t\t\temf = createNewEntityManagerFactory();\n\t\treturn emf;\n\t}", "public EntityManager getEntityManager() {\n return this.em;\n }", "@PostConstruct\n protected void initNewEntity() {\n setNewEntity(getService().create());\n }", "private static EntityManagerFactory createNewEntityManagerFactory()\n\t\t\tthrows NamingException, PersistenceException, UnsupportedUserAttributeException {\n\n\t\tInitialContext ctx = new InitialContext();\n\t\tDataSource ds = (DataSource) ctx.lookup(DATA_SOURCE_NAME);\n\n\t\tMap<String, Object> properties = new HashMap<String, Object>();\n\t\tproperties.put(PersistenceUnitProperties.NON_JTA_DATASOURCE, ds);\n\n\t\t// As replication will change the underlying database without\n\t\t// notifying the hub the JPA cache needs to be disabled.\n\t\t// Else the hub might provide outdated data\n\t\tproperties.put(PersistenceUnitProperties.CACHE_SHARED_DEFAULT, \"false\");\n\n\t\treturn Persistence.createEntityManagerFactory(PERSISTENCE_UNIT_NAME, properties);\n\t}", "@Override\n\tpublic void init() throws ServletException {\n\t\tsuper.init();\n\t\tObject object=getServletContext().getAttribute(\"entitymanagerfactory\");\n\n\t\tif(object==null){\n\t\t\temf=Persistence.createEntityManagerFactory(\"10-em-jsp\");\n\t\t\tgetServletContext().setAttribute(\"entitymanagerfactory\", emf);\n\t\t}else {\n\t\t\temf=(EntityManagerFactory) object;\n\t\t}\n\t\tservice=new StudentService(emf.createEntityManager());\n\t}", "public EntityManager getEntityManager() {\r\n\t\treturn entityManager;\r\n\t}", "public EntityManager getEntityManager() {\r\n\t\treturn entityManager;\r\n\t}", "public EntityManager getEntityManager() {\r\n\t\treturn entityManager;\r\n\t}", "static void initialize() {\n final StandardServiceRegistry registry = new StandardServiceRegistryBuilder()\n .configure() // configures settings from hibernate.cfg.xml\n .build();\n try {\n sessionFactory = new MetadataSources( registry ).buildMetadata().buildSessionFactory();\n }\n catch (Exception e) {\n StandardServiceRegistryBuilder.destroy( registry );\n }\n }", "@PersistenceContext\n public void setEntityManager(EntityManager em) {\n this.em = em;\n }", "@PersistenceContext\n public void setEntityManager(EntityManager em) {\n this.em = em;\n }", "@PersistenceContext\n public void setEntityManager(EntityManager em) {\n this.em = em;\n }", "protected\r\n JpaDaoFactory()\r\n {\r\n ISessionStrategy mySessionStrategy = new JpaSessionStrategy();\r\n ITransactionStrategy myTransactionStrategy = \r\n new JpaTransactionStrategy(mySessionStrategy);\r\n\r\n setSessionStrategy(mySessionStrategy);\r\n setTransactionStrategy(myTransactionStrategy);\r\n }", "@Before\n\tpublic void init() {\n\t\tuserDao=new UsersDAO();\n\t\tentityManager=mock(EntityManager.class);\n\t\tuserDao.setEntityManager(entityManager);\n\t\t\n\t}", "@Test\n\tpublic void contextUp() {\n\t\tassertNotNull(entityManager());\n\t}", "protected void setUp() throws Exception {\n\t\tfinal StandardServiceRegistry registry = new StandardServiceRegistryBuilder().configure().build();\n\t\ttry {\n\t\t\tsessionFactory = new MetadataSources(registry).buildMetadata().buildSessionFactory();\n\t\t} catch (Exception e) {\n\t\t\tStandardServiceRegistryBuilder.destroy(registry);\n\t\t}\n\t}", "@PersistenceContext\r\n public void setEntityManager(EntityManager em) {\r\n this.em = em;\r\n }", "public CustomerJPAImpl(EntityManagerFactory emfPassed) {\n\t\temf = emfPassed;\n\t}", "abstract void initPersistance();", "public void initializeOnInstantiation() \n\t\t\t\tthrows PersistenceException{\n\n\t}", "public void bootstrap() {\n EntityManager em = CONNECTION_FACTORY.getConnection();\n List<CaixaItemTipo> cits = new ArrayList<>();\n cits.add(CaixaItemTipo.LANCAMENTO_MANUAL);\n cits.add(CaixaItemTipo.DOCUMENTO);\n cits.add(CaixaItemTipo.ESTORNO);\n cits.add(CaixaItemTipo.TROCO);\n \n cits.add(CaixaItemTipo.SUPRIMENTO);\n cits.add(CaixaItemTipo.SANGRIA);\n \n cits.add(CaixaItemTipo.CONTA_PROGRAMADA);\n //cits.add(CaixaItemTipo.PAGAMENTO_DOCUMENTO); 2019-06-10 generalizado com tipo 2\n cits.add(CaixaItemTipo.TRANSFERENCIA);\n \n cits.add(CaixaItemTipo.FUNCIONARIO);\n \n \n em.getTransaction().begin();\n for(CaixaItemTipo cit : cits){\n if(findById(cit.getId()) == null){\n em.persist(cit);\n } else {\n em.merge(cit);\n }\n }\n em.getTransaction().commit();\n\n em.close();\n }", "@Override\n\tpublic void initEntity() {\n\n\t}", "@Bean\n @Scope(SCOPE_PROTOTYPE)\n EntityManager entityManagerProvider(EntityManagerFactory emf) {\n EntityManagerHolder holder = (EntityManagerHolder) getResource(emf);\n if (holder == null) {\n return emf.createEntityManager();\n }\n return holder.getEntityManager();\n }", "@Test\n public void testGetEntityManager() {\n System.out.println(\"getEntityManager\");\n DaftarPengguna instance = new DaftarPengguna();\n EntityManager expResult = null;\n EntityManager result = instance.getEntityManager();\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 }", "@Bean\n\tpublic LocalContainerEntityManagerFactoryBean entityManagerFactory() {\n\t\tProperties jpaProperties = new Properties();\n\t\tjpaProperties.put(org.hibernate.cfg.AvailableSettings.HBM2DDL_AUTO, this.env.getProperty(\"hibernate.hbm2ddl.auto\"));\n\t\tjpaProperties.put(org.hibernate.cfg.AvailableSettings.CACHE_REGION_FACTORY, SingletonEhCacheRegionFactory.class.getCanonicalName());\n\t\tjpaProperties.put(\"hibernate.cache.use_structured_entries\", Boolean.TRUE);\n\t\tjpaProperties.put(\"hibernate.cache.use_second_level_cache\", Boolean.TRUE);\n\n\t\tHibernateJpaVendorAdapter vendorAdapter = new HibernateJpaVendorAdapter();\n\t\tvendorAdapter.setGenerateDdl(Boolean.valueOf(this.env.getProperty(\"hibernate.ddl_create\")).booleanValue());\n\t\tvendorAdapter.setShowSql(Boolean.valueOf(this.env.getProperty(\"hibernate.show_sql\")).booleanValue());\n\t\tvendorAdapter.getJpaPropertyMap().put(\"databasePlatform\", this.env.getProperty(\"hibernate.dialect\"));\n\n\t\tLocalContainerEntityManagerFactoryBean factory = new LocalContainerEntityManagerFactoryBean();\n\t\tfactory.setDataSource(this.dataSource());\n\t\tfactory.setJpaVendorAdapter(vendorAdapter);\n\t\tfactory.setPackagesToScan(PersistenceConfiguration.ENTITIES_PACKAGE);\n\t\tfactory.setJpaProperties(jpaProperties);\n\t\tfactory.afterPropertiesSet();\n\t\tfactory.setLoadTimeWeaver(new InstrumentationLoadTimeWeaver());\n\t\tfactory.setPersistenceProvider(new HibernatePersistenceProvider());\n\n\t\treturn factory;\n\t}", "protected void afterSessionFactoryCreation() throws Exception {\n\t}", "public EntityManager getEntityManager() {\n\t\treturn entityManager;\n\t}", "public EntityManager getEntityManager() {\n\t\treturn entityManager;\n\t}", "public EntityManager getEntityManager() {\n\t\treturn entityManager;\n\t}", "public EntityManager getEntityManager() {\n\t\treturn entityManager;\n\t}", "public UserDAO() {\n\t\tthis.emf = Persistence.createEntityManagerFactory(\"feedr_v3\");\n\t\tthis.em = this.emf.createEntityManager();\n\t\tthis.et = this.em.getTransaction();\n\t}", "@PersistenceContext\r\n\tpublic void setEntityManager(EntityManager em) {\r\n\t\tthis.em = em;\r\n\t}", "private static synchronized void lazyinit()\n {\n try\n {\n if (sessionFactory == null)\n {\n System.out.println(\"Going to create SessionFactory \");\n sessionFactory = new Configuration().configure().buildSessionFactory();\n// sessionFactory.openSession();\n System.out.println(\"Hibernate could create SessionFactory\");\n }\n } catch (Throwable t)\n {\n System.out.println(\"Hibernate could not create SessionFactory\");\n t.printStackTrace();\n }\n }", "protected JpaModule() {\n }", "protected CompanyJPA() {\n\t}", "DAOClienteJPA(EntityManager entity) {\r\n this.entity = entity;\r\n }", "@Before\r\n public void initTestMethod(){\r\n entityManager = entityManagerFactory.createEntityManager();\r\n entityTransaction = entityManager.getTransaction();\r\n \r\n entityTransaction.begin();\r\n Post post = new Post();\r\n post.setUserId(1l);\r\n post.setCreatedAt(new GregorianCalendar(2015,5,7).getTime());\r\n post.setDescription(\"PEOPLE ARE BAD AT TAKING OVER FROM AUTONOMOUS CARS.\");\r\n post.setLikes(5);\r\n \r\n assertNotNull(\"User object is initialized.\", post);\r\n assertSame(\"User ID is same\", 1l, post.getUserId());\r\n entityManager.persist(post);\r\n entityTransaction.commit(); \r\n\r\n \r\n \r\n }", "public EmpleadoService() {\n super();\n emf = Persistence.createEntityManagerFactory(\"up_h2\");\n empDAO = new EmpleadoDAO(emf);\n }", "public final static EntityManager getEntityManager() {\r\n\t\treturn entityManager;\r\n\t}", "@Autowired\n\tpublic EmployeeDAOJpaImpl(EntityManager theEntityManager) {\n\t\tentityManager = theEntityManager;\n\t}", "@BeforeClass\n public static void before() {\n final EntityManagerFactory factory = Persistence.createEntityManagerFactory(\"testpersistence\");\n jpa = new StandaloneJpaDao(factory.createEntityManager());\n handler = new QuotePaymentHandler(jpa);\n }", "@Bean\n @DependsOn(\"flyway\")\n public LocalContainerEntityManagerFactoryBean entityManagerFactory() {\n LocalContainerEntityManagerFactoryBean entityManagerFactoryBean = new LocalContainerEntityManagerFactoryBean();\n entityManagerFactoryBean.setDataSource(dataSource());\n entityManagerFactoryBean.setPackagesToScan(env.getRequiredProperty(ENTITY_PACKAGES_TO_SCAN));\n\n JpaVendorAdapter vendorAdapter = new HibernateJpaVendorAdapter();\n entityManagerFactoryBean.setJpaVendorAdapter(vendorAdapter);\n entityManagerFactoryBean.setJpaProperties(hibernateProperties());\n\n return entityManagerFactoryBean;\n }", "@Override\n @Test(groups = {\"Entity Factory access\"})\n public void testEntityFactory00() throws Exception {\n super.testEntityFactory00();\n }", "public RequisicaoDAO() {\n em = JPAUtil.initConnection();\n }", "private EntityFactory() {}", "@BeforeTransaction\n void verifyInitialDatabaseState() throws Exception {\n this.baseDatabaseSetup.setup(this.entityManager);\n }" ]
[ "0.76307774", "0.74729913", "0.74309415", "0.7388223", "0.73720205", "0.73687845", "0.73190546", "0.731202", "0.7301665", "0.72729874", "0.7248969", "0.72398734", "0.72398734", "0.7238956", "0.72032505", "0.71972483", "0.7189136", "0.70672834", "0.70152205", "0.6960958", "0.693365", "0.6921105", "0.6896838", "0.6810552", "0.6784707", "0.6744682", "0.6661273", "0.6637241", "0.6602626", "0.65736705", "0.6573208", "0.6560772", "0.65495336", "0.6514928", "0.6508848", "0.6502327", "0.64877415", "0.6482785", "0.6461839", "0.64339083", "0.6430319", "0.6418643", "0.64138126", "0.63792145", "0.6378498", "0.6375556", "0.636813", "0.6345659", "0.63435733", "0.633211", "0.6320633", "0.6283416", "0.6275726", "0.62729096", "0.6271955", "0.6271664", "0.62663835", "0.62458336", "0.62451404", "0.6224639", "0.6219525", "0.6219525", "0.6219525", "0.62141585", "0.62102437", "0.62102437", "0.62102437", "0.62072116", "0.61988145", "0.615971", "0.6158674", "0.6154244", "0.61369085", "0.6128919", "0.6127295", "0.6125941", "0.6123352", "0.6122259", "0.61153", "0.61130524", "0.611255", "0.60979676", "0.60979676", "0.60979676", "0.60979676", "0.6086377", "0.6086124", "0.60800064", "0.60761064", "0.6071801", "0.60684794", "0.6060714", "0.60574985", "0.6045002", "0.60440934", "0.60369134", "0.60252595", "0.6016923", "0.59933275", "0.5984953", "0.5975509" ]
0.0
-1
Setup the DataBase (used by the testserver and this test) in a known state BEFORE EACH TEST TODO Make sure to change the EntityClass used below to use YOUR OWN (renamed) Entity class
@BeforeEach public void setUp() { EntityManager em = emf.createEntityManager(); car1 = new Car("1997", "Ford", "E350",3000, new Date(), "Daniel"); car2 = new Car("1999", "Chevy", "Venture", 4900, new Date(), "Emil"); car3 = new Car("2000", "Chevy", "Venture", 5000, new Date(), "Jimmy"); car4 = new Car("1996", "Jeep", "Grand Cherokee", 4799, new Date(), "Jannich"); try { em.getTransaction().begin(); em.createNamedQuery("Car.deleteAllRows").executeUpdate(); em.createNativeQuery("ALTER TABLE CAR AUTO_INCREMENT = 1").executeUpdate(); em.persist(car1); em.persist(car2); em.persist(car3); em.persist(car4); em.getTransaction().commit(); } finally { em.close(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@BeforeClass\n public static void initTestFixture() throws Exception {\n entityManagerFactory = Persistence.createEntityManagerFactory(\"test\");\n entityManager = entityManagerFactory.createEntityManager();\n }", "@BeforeClass\n\tpublic static void setUpBeforeClass() throws Exception {\n\t\temf = Persistence.createEntityManagerFactory(\"si-database\");\n\t}", "@Before\n public void setUp() {\n\n EntityManager em = emf.createEntityManager();\n try {\n em.getTransaction().begin();\n //Delete all, since some future test cases might add/change data\n em.createQuery(\"delete from Car\").executeUpdate();\n //Add our test data\n Car e1 = new Car(\"Volvo\");\n Car e2 = new Car(\"WW\");\n em.persist(e1);\n em.persist(e2);\n em.getTransaction().commit();\n } finally {\n em.close();\n }\n }", "@Before\n\tpublic void setUp() throws Exception {\n\t\tydelseService.setEntityManager(entityManager);\n\t}", "@Before\n public void inicializaBaseDatos() throws Exception {\n app = Helpers.fakeApplication(settings());\n databaseTester = new JndiDatabaseTester(\"DefaultDS\");\n IDataSet initialDataSet = new FlatXmlDataSetBuilder().build(new\n FileInputStream(\"test/resources/tareas_dataset_1.xml\"));\n databaseTester.setDataSet(initialDataSet);\n databaseTester.onSetup();\n }", "@BeforeClass\r\n public static void initTextFixture(){\r\n entityManagerFactory = Persistence.createEntityManagerFactory(\"itmd4515PU\");\r\n }", "@Before\n\tpublic void setup() {\n\t\tdatabase = new DatabaseLogic();\n\t}", "@BeforeClass\n\tpublic static void init() {\n\t\ttry {\n\t\t\tif (emf == null) {\n\t\t\t\temf = Persistence.createEntityManagerFactory(\"application\");\n\t\t\t\tif (em == null) {\n\t\t\t\t\tem = loadConfiguration(emf);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "protected void setUp() throws Exception {\n super.setUp();\n FailureTestHelper.loadConfig();\n FailureTestHelper.loadData();\n dao = new SQLServerGameDataDAO(\"com.orpheus.game.persistence.SQLServerGameDataDAO\");\n }", "public void setUp() {\n entity = new Entity(BaseCareerSet.FIGHTER);\n }", "@BeforeClass\r\n public static void classSetUp() {\r\n sdebug(TEST_NAME, \"In setup\");\r\n initialEmf = lookupEntityManagerFactory(TEST_NAME, PERSISTENCE_UNIT_UNDER_TEST, ctx);\r\n sdebug(TEST_NAME, \"Got EMF - \" + initialEmf);\r\n emfb = lookupEntityManagerFactoryBuilder(TEST_NAME, PERSISTENCE_UNIT_UNDER_TEST, ctx);\r\n sdebug(TEST_NAME, \"Got EMFBuilder - \" + emfb);\r\n }", "@Before\n\tpublic void init()\n\t{\n\t\tEntityManagerFactory entityManagerFactory = Persistence.createEntityManagerFactory(\"persistenceUnit\");\n\t\tEntityManager entityManager = entityManagerFactory.createEntityManager();\n\t\tcacheManager = new CacheManagerDefaultImpl();\n\t\t((CacheManagerDefaultImpl) cacheManager).setEntityManager(entityManager);\n\t}", "@Before\n public void setUp() {\n EntityManager em = emf.createEntityManager();\n try {\n em.getTransaction().begin();\n //Delete all, since some future test cases might add/change data\n em.createQuery(\"delete from Customer\").executeUpdate();\n //Add our test data\n Customer c1 = new Customer(\"Kurt\", \"Hansen\");\n Customer c2 = new Customer(\"Hans\", \"Jensen\");\n Customer c3 = new Customer(\"Bjarne\", \"Olsen\");\n em.persist(c1);\n em.persist(c2);\n em.persist(c3);\n em.getTransaction().commit();\n } finally {\n em.close();\n }\n }", "@Before\n\tpublic void setUp() throws Exception {\n\t\tDatabaseProvider.setInstance(new DerbyDatabase());\n\t\tdb = DatabaseProvider.getInstance();\t\t\n\t\t\n\t}", "@BeforeAll\n public static void setUpClass() {\n emf = EMF_Creator.createEntityManagerFactoryForTest();\n\n //Set System property so the project executed by the Grizly-server wil use this same database\n EMF_Creator.startREST_TestWithDB();\n \n httpServer = startServer();\n\n //Setup RestAssured\n RestAssured.baseURI = SERVER_URL;\n RestAssured.port = SERVER_PORT;\n\n RestAssured.defaultParser = Parser.JSON;\n }", "public void setupEntities() {\n }", "@BeforeClass\n public static void before() {\n final EntityManagerFactory factory = Persistence.createEntityManagerFactory(\"testpersistence\");\n jpa = new StandaloneJpaDao(factory.createEntityManager());\n handler = new QuotePaymentHandler(jpa);\n }", "@Before\n public void setUp() throws Exception {\n HashMap<String, String> prop = PropertyReader.getProperties(ORACLEPROP);\n if (prop.get(\"schema\") != null && !prop.get(\"schema\").isEmpty())\n databaseTester = new JdbcDatabaseTester(prop.get(\"dbClass\"), prop.get(\"dbURL\"), prop.get(\"user\"), prop.get(\"pass\"), prop.get(\"schema\"));\n else\n databaseTester = new JdbcDatabaseTester(prop.get(\"dbClass\"), prop.get(\"dbURL\"), prop.get(\"user\"), prop.get(\"pass\"));\n\n // initialize your dataset here\n IDataSet dataSet = getDataSet();\n\n databaseTester.setDataSet(dataSet);\n // will call default setUpOperation\n databaseTester.onSetup();\n }", "@BeforeClass\n public static void beforeClass()\n {\n DatabaseDescriptor.daemonInitialization();\n }", "@Before\n\tpublic void setUp() throws Exception {\n\t\ttry {\n\t\t\temf = Persistence.createEntityManagerFactory(\"DistribSubastaCoreEM\");\n\t\t dao.setEm(emf.createEntityManager());\n\t\t dao.getEm().setFlushMode(FlushModeType.COMMIT);\n\t\t dao.getEm().getEntityManagerFactory().getCache().evictAll();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tfail();\n\t\t}\n\t}", "@BeforeClass\n public static void setUpBeforeClass() throws Exception {\n dbService = DatabaseServiceFactory.getInstance();\n }", "@BeforeEach\n void init() {\n\n EntityManagerFactory entityManagerFactory = Persistence.createEntityManagerFactory(\"pu\");\n employeeDao = new EmployeeDao(entityManagerFactory);\n\n\n }", "@BeforeEach\n void setUp() {\n\n Database database = Database.getInstance();\n database.runSQL(\"cleandb.sql\");\n\n genericDao = new GenericDao(Event.class);\n }", "@Before\r\n\tpublic void setup() throws Exception {\n\t\tinitializeInMemoryDatabase();\r\n\r\n\t\t// Created from org.openmrs.test.CreateInitialDataSet\r\n\t\t// without line for \"concept_synonym\" table (not exist)\r\n\t\t// using 1.4.4-createdb-from-scratch-with-demo-data.sql\r\n\t\t// Removed all empty short_name=\"\" from concepts\r\n\t\t// Added missing description to relationship_type\r\n\t\t// Removed all patients and related patient/person info (id 2-500)\r\n\t\t// Removed all concepts except those in sqldiff\r\n\t\texecuteDataSet(\"initial-openmrs-dataset.xml\");\r\n\r\n\t\t// Includes Motech data added in sqldiff\r\n\t\texecuteDataSet(\"motech-dataset.xml\");\r\n\t\t\r\n\t\t// Add example Location, Facility and Community\r\n\t\texecuteDataSet(\"facility-community-dataset.xml\");\r\n\r\n\t\tauthenticate();\r\n\r\n\t\tactivator.startup();\r\n\t}", "protected void setUp() throws Exception {\r\n\t\tmodelDS = new ServiceModelDS(\"dbtest\",\"pizzeria_service\");\r\n\t\tClass.forName(\"com.mysql.jdbc.Driver\");\r\n\t\tconnection = DriverManager.getConnection(\"jdbc:mysql://localhost/dbtest\", \"root\", \"\");\r\n\t\tconnection.setAutoCommit(false);\r\n\t}", "@BeforeAll\n public static void setUpClassV2() {\n emf = EMF_Creator.createEntityManagerFactory(DbSelector.TEST, Strategy.DROP_AND_CREATE);\n facade = MovieFacade.getMovieFacade(emf);\n }", "@BeforeEach\n void setUp() {\n Database database = Database.getInstance();\n database.runSQL(\"cleandb.sql\");\n\n noteDao = new GenericDao(Note.class);\n }", "@BeforeClass(groups = {\"multi-master\"}, timeOut = SETUP_TIMEOUT)\n public void beforeClass() {\n\n client = this.clientBuilder().build();\n database = createDatabase(client, databaseId);\n }", "@Before\n\tpublic void setUp() {\n\t\tgateInfoDatabase = new GateInfoDatabase();\t\t\n\t}", "protected void setUp() throws Exception {\r\n super.setUp();\r\n target = new JPADigitalRunTrackStatusDAO();\r\n target.setUnitName(\"persistence_unit\");\r\n target.setSessionContext(context);\r\n }", "@Before\n\tpublic void setUpData() {\n\n\t\t// Make sure there is a type in the database\n\t\tType defaultType = new Type();\n\t\tdefaultType.setName(\"type\");\n\t\ttypeService.save(defaultType);\n\n\t\t// Make sure there is a seed packet in the database\n\t\tSeedPacket seedPacket = new SeedPacketBuilder()\n\t\t\t\t.withName(\"seed\")\n\t\t\t\t.withType(\"type\")\n\t\t\t\t.withPackSize(500).build();\n\n\t\tseedPacketService.save(seedPacket);\n\t}", "@Override\r\n public void setUp() throws Exception {\r\n super.setUp();\r\n\r\n dbOpenHelper = new DbOpenHelper(getContext());\r\n\r\n db = dbOpenHelper.getWritableDatabase();\r\n db.beginTransaction();\r\n dao = new ExtraPartsDAO(db);\r\n }", "@Before\n public void initDb() {\n mDatabase = Room.inMemoryDatabaseBuilder(InstrumentationRegistry.getContext(),\n ToDoDatabase.class).build();\n }", "@BeforeEach\n void setUp() {\n dao = new GenericDao(User.class);\n Database database = Database.getInstance();\n database.runSQL(\"cleandb.sql\");\n }", "@BeforeTest\n public void setUp() {\n UrlaubrWsUtils.migrateDatabase(TravelServiceImpl.DEFAULT_URL, TravelServiceImpl.DEFAULT_USER, TravelServiceImpl.DEFAULT_PASSWORD);\n\n service = new TravelServiceImpl();\n }", "@Before\r\n public void setUp() throws Exception {\r\n super.setUp();\r\n\r\n connection = getConnection();\r\n\r\n configurationObject = TestsHelper.getConfig(TestsHelper.CONFIG_PROJECT_TERMS);\r\n\r\n instance = new ProjectTermsOfUseDaoImpl(configurationObject);\r\n }", "@Before\n public void setUp() throws Exception {\n String connectionString = \"jdbc:h2:mem:testing;INIT=RUNSCRIPT from 'classpath:db/create.sql'\";\n Sql2o sql2o = new Sql2o(connectionString, \"\", \"\");\n departmentDao = new Sql2oDepartmentDao(sql2o); //ignore me for now\n conn = sql2o.open(); //keep connection open through entire test so it does not get erased\n }", "@BeforeEach\n void setUp() {\n\n\n // repopulate the table I'm testing\n com.lukebusch.test.util.Database database = com.lukebusch.test.util.Database.getInstance();\n database.runSQL(\"cleandb.sql\");\n\n genericDao = new GenericDao( User.class );\n\n }", "protected void setUp() throws Exception {\r\n super.setUp();\r\n UnitTestHelper.addConfig(CONFIG_FILE);\r\n\r\n defaultDBUserRetrieval = new MockDBUserRetrieval(NAMESPACE);\r\n defaultDBProjectRetrieval = new MockDBProjectRetrieval(NAMESPACE);\r\n\r\n // Retrieves DBConnectionFactory.\r\n defaultConnection = ((MockDBUserRetrieval) defaultDBUserRetrieval).getConnection();\r\n\r\n cleanupDatabase();\r\n\r\n // Inserts.\r\n UnitTestHelper.insertIntoComponentCataLog(defaultConnection);\r\n UnitTestHelper.insertIntoComponentVersions(defaultConnection);\r\n UnitTestHelper.insertIntoCompForumXref(defaultConnection);\r\n UnitTestHelper.insertIntoTechnologyTypes(defaultConnection);\r\n UnitTestHelper.associateComponentTechnologies(defaultConnection);\r\n\r\n UnitTestHelper.insertIntoEmail(defaultConnection);\r\n UnitTestHelper.insertIntoUser(defaultConnection);\r\n UnitTestHelper.insertIntoUserRating(defaultConnection);\r\n UnitTestHelper.insertIntoUserReliability(defaultConnection);\r\n }", "@BeforeTransaction\n void verifyInitialDatabaseState() throws Exception {\n this.baseDatabaseSetup.setup(this.entityManager);\n }", "@BeforeClass\n\tpublic static void setUp() throws Exception {\n\t\tdao = new SupplierOrderDao();\n\t\tsdao = new SupplierDao();\n\t\tpdao = new ProductDao();\n\t\tidao = new ItemSupplierOrderDao();\n\t\t\n\t\tSupplier supplier = new Supplier();\n\t\tsupplier.setName(\"Supplier\");\n\t\tsupplier = sdao.persist(supplier);\n\n\t\tProduct product = new Product();\n\t\tproduct.setProductSupplierId(1L);\n\t\tproduct.setSupplier(supplier);\n\t\tproduct = pdao.persist(product);\n\t}", "@Override\n public void setUp() {\n setUp(DROP_TABLES, Person.class, TblChild.class, TblGrandChild.class, TblParent.class);\n }", "private void setupDatabase() {\r\n\t\tDatabaseHelperFactory.init(this);\r\n\t\tdatabase = DatabaseHelperFactory.getInstance();\r\n\t}", "@Before\r\n public void initTestMethod(){\r\n entityManager = entityManagerFactory.createEntityManager();\r\n entityTransaction = entityManager.getTransaction();\r\n \r\n entityTransaction.begin();\r\n Post post = new Post();\r\n post.setUserId(1l);\r\n post.setCreatedAt(new GregorianCalendar(2015,5,7).getTime());\r\n post.setDescription(\"PEOPLE ARE BAD AT TAKING OVER FROM AUTONOMOUS CARS.\");\r\n post.setLikes(5);\r\n \r\n assertNotNull(\"User object is initialized.\", post);\r\n assertSame(\"User ID is same\", 1l, post.getUserId());\r\n entityManager.persist(post);\r\n entityTransaction.commit(); \r\n\r\n \r\n \r\n }", "@BeforeClass\n\tpublic static void setupClass() throws JsonParseException, JsonMappingException, IOException, URISyntaxException {\n\t\tTEST_ENVIRONMENT.setupConfiguration();\n\t\tTEST_ENVIRONMENT.setupDbConnection();\n\t\tTEST_ENVIRONMENT.migrateDb();\n\t\tTEST_ENVIRONMENT.setupServer();\n\t}", "@BeforeClass\n public static void initTestClass() throws Exception {\n Map props = MapUtil.mapIt(\"hibernate.connection.url\", \"jdbc:mysql://localhost:3306/event_test\");\n SnowTestSupportNG.initWebApplication(\"src/main/webapp\", props);\n\n inView = appInjector.getInstance(HibernateSessionInViewHandler.class);\n categoryDao = appInjector.getInstance(CategoryDao.class);\n }", "@Before\n public void setUp() {\n //clearDbData();//having some trouble\n }", "@Override\r\n\tprotected void setUp() throws Exception {\n\t\tsuper.setUp();\r\n\t\timpl=new ProductDAOImpl();\r\n\t}", "@BeforeAll\r\n public static void setUpClass() {\n EMF_Creator.startREST_TestWithDB();\r\n emf = EMF_Creator.createEntityManagerFactoryForTest();\r\n \r\n httpServer = startServer();\r\n //Setup RestAssured\r\n RestAssured.baseURI = SERVER_URL;\r\n RestAssured.port = SERVER_PORT;\r\n RestAssured.defaultParser = Parser.JSON;\r\n }", "@Before\n public void setupTests()\n {\n Service s1 = new Service();\n s1.setCategory(\"HAIR\");\n\n repository.save(s1);\n\n }", "public void setup() throws DatabaseTestException;", "@Override\n protected void setUp() throws Exception {\n super.setUp();\n mDBService = new DBService(getContext());\n deleteAllRecords();\n }", "@BeforeClass\n public static void setup() {\n getDatabase(\"mandarin\");\n }", "@Before\n\tpublic void setup(){\n\t\ttarget = new MakeDaoImpl();\n\t\tmockEm = mock(EntityManager.class);\n\t\ttarget.setEm(mockEm);\n\t}", "@Before\n public void createDatabase() {\n dbService.getDdlInitializer()\n .initDB();\n kicCrud = new KicCrud();\n }", "@Before\n\tpublic void setUp() throws Exception {\n//\t\tdao = new MonkeyDao();\n\t}", "@BeforeAll\n public static void setUpClass() {\n EMF_Creator.startREST_TestWithDB();\n emf = EMF_Creator.createEntityManagerFactoryForTest();\n\n httpServer = startServer();\n //Setup RestAssured\n RestAssured.baseURI = SERVER_URL;\n RestAssured.port = SERVER_PORT;\n RestAssured.defaultParser = Parser.JSON;\n }", "@Before\r\n public void setup() {\r\n dbwMock.userId = \"testUser\";\r\n dbw = new DatabaseWrapper(dbwMock);\r\n\r\n context = ApplicationProvider.getApplicationContext();\r\n\r\n book = new Book();\r\n\r\n requester = new Profile();\r\n }", "public void setUp()\r\n throws Exception\r\n {\r\n super.setUp();\r\n Schema.setup();\r\n }", "@BeforeEach\n public void setUp() throws Exception {\n\n helper = new DatabaseConfigurationTestHelper();\n helper.setUp();\n }", "@Before\n\tpublic void init() {\n\t\tuserDao=new UsersDAO();\n\t\tentityManager=mock(EntityManager.class);\n\t\tuserDao.setEntityManager(entityManager);\n\t\t\n\t}", "@Before\r\n\tpublic void setup() {\n\t\tH2Bootstrap.loadSchema(\r\n\t\t\t\tdataSourceLondon, \r\n\t\t\t\t\"/sql/create_bnk_database_h2.sql\", \r\n\t\t\t\t\"/sql/insert_bnk_static_data.sql\",\r\n\t\t\t\t\"/sql/drop_bnk_database.sql\");\r\n\r\n\t\t// H2Boostrap will create and insert the schema just once\r\n\t\tH2Bootstrap.loadSchema(\r\n\t\t\t\tdataSourceNewYork, \r\n\t\t\t\t\"/sql/create_bnk_database_h2.sql\", \r\n\t\t\t\t\"/sql/insert_bnk_static_data.sql\",\r\n\t\t\t\t\"/sql/drop_bnk_database.sql\");\r\n\t}", "protected void setUp() throws Exception {\r\n AccuracyTestHelper.clearConfig();\r\n AccuracyTestHelper.loadXMLConfig(AccuracyTestHelper.CONFIG_FILE);\r\n AccuracyTestHelper.loadXMLConfig(AccuracyTestHelper.AUDIT_CONFIG_FILE);\r\n AccuracyTestHelper.setUpDataBase();\r\n AccuracyTestHelper.setUpEJBEnvironment(null, null, null);\r\n\r\n DBConnectionFactory dbFactory = new DBConnectionFactoryImpl(AccuracyTestHelper.DB_FACTORY_NAMESPACE);\r\n AuditManager auditManager = new AuditDelegate(AccuracyTestHelper.AUDIT_NAMESPACE);\r\n TaskTypeDAO taskTypeDao = new DbTaskTypeDAO(dbFactory, AccuracyTestHelper.CONNECTION_NAME,\r\n \"TaskTypeIdGenerator\", AccuracyTestHelper.SEARCH_NAMESPACE, auditManager);\r\n TimeStatusDAO timeStatusDao = new DbTimeStatusDAO(dbFactory, AccuracyTestHelper.CONNECTION_NAME,\r\n \"TimeStatusIdGenerator\", AccuracyTestHelper.SEARCH_NAMESPACE, auditManager);\r\n\r\n instance = new DbTimeEntryDAO(dbFactory, AccuracyTestHelper.CONNECTION_NAME, \"TimeEntryIdGenerator\",\r\n AccuracyTestHelper.SEARCH_NAMESPACE, auditManager, taskTypeDao, timeStatusDao);\r\n }", "@BeforeEach\n void setUp(){\n DatabaseTwo database = DatabaseTwo.getInstance();\n database.runSQL(\"cleanAll.sql\");\n\n genericDao = new GenericDao(CompositionInstrument.class);\n }", "@Before\n public void prepare() {\n MetaStore metadb = prepareTestDB();\n testObj = new SdbSchemeRewriter(metadb.getAllDBs().get(0));\n }", "@BeforeEach\n void setUp() {\n\n Database database = Database.getInstance();\n database.runSQL(\"cleanDb.sql\");\n\n\n genericDao = new GenericDao(UserRoles.class);\n }", "@Before\r\n\tpublic void setUp() throws Exception {\r\n\r\n\t\tpd = new PreparedData();\r\n\r\n\t}", "@Before\r\n\tpublic void setUp() throws Exception {\r\n\t\tdbme = new DBManagerException(dbme.getMessage());\r\n\t}", "@Before\n public void setupDatabase() {\n graphDb = new TestGraphDatabaseFactory().newImpermanentDatabaseBuilder().newGraphDatabase();\n registerShutdownHook(graphDb);\n \n// server = new WrappingNeoServerBootstrapper((GraphDatabaseAPI) graphDb);\n// server.start();\n \n ProcessEngineConfiguration processEngineConfiguration = new ProcessEngineConfiguration();\n processEngineConfiguration.setGraphDatabaseService(graphDb);\n processEngine = processEngineConfiguration.buildProcessEngine();\n }", "@BeforeClass\n public static void setUpBeforeClass() {\n TestNetworkClient.reset();\n context = ApplicationProvider.getApplicationContext();\n dataStorage = TestDataStorage.getInstance(context);\n ApplicationSessionManager.getInstance().startSession();\n }", "public void setUp() {\n deleteTheDatabase();\n }", "public void setUp() {\n deleteTheDatabase();\n }", "@BeforeEach\n public void setUp() {\n EntityManager em = emf.createEntityManager();\n j1 = new Joke(1,\"dårlig joke 1\", \"type1\");\n j2 = new Joke(2,\"dårlig joke 2\", \"type2\");\n j3 = new Joke(3,\"dårlig joke 3\", \"type2\");\n try {\n em.getTransaction().begin();\n em.createQuery(\"DELETE from Joke\").executeUpdate();\n em.persist(j1);\n em.persist(j2);\n em.persist(j3);\n em.getTransaction().commit();\n } finally {\n em.close();\n }\n }", "@Before\r\n\tpublic void setUp() throws SQLException {\n\t\tconn = DBManager.getInstance().getConnection();\r\n\t}", "protected void setUp() throws Exception {\n\t\tString filePath = new File(\".\").getAbsolutePath() + \"./\";\n\t\tSystem.out.println(\"DB path: \" + filePath);\n\t\t\n\t\tDriverManagerDataSource dataSource = new DriverManagerDataSource();\n\t\tdataSource.setDriverClassName(\"org.hsqldb.jdbcDriver\");\n\t\tdataSource.setUrl(\"jdbc:hsqldb:file:\" + filePath + DATA_BASE_NAME + \";shutdown=true\");\n\t\tdataSource.setUsername(\"SA\");\n\t\tdataSource.setPassword(\"\");\n\t\t\n\t\tthis.hsqlDao = new HsqlCustomerManageDAO();\n\t\tthis.hsqlDao.setDataSource(dataSource);\n\t}", "@BeforeEach\n public void setUp() {\n EntityManager em = emf.createEntityManager();\n try {\n em.getTransaction().begin();\n em.createQuery(\"DELETE from Role\").executeUpdate();\n em.createQuery(\"DELETE from Post\").executeUpdate();\n em.persist(new Role(\"user\"));\n em.getTransaction().commit();\n em.getTransaction().begin();\n em.createQuery(\"DELETE from User\").executeUpdate();\n em.persist(new User(\"Some txt\", \"More text\"));\n user = new User(\"aaa\", \"bbb\");\n em.persist(user);\n em.getTransaction().commit();\n } finally {\n em.close();\n }\n }", "private void initDB() {\n dataBaseHelper = new DataBaseHelper(this);\n }", "@Override\n @Before\n public void setUp() throws Exception {\n super.setUp();\n\n entityManager = getEntityManager();\n\n logger = Logger.getLogger(getClass());\n\n instance = new UserServiceImpl();\n TestsHelper.setField(instance, \"logger\", logger);\n TestsHelper.setField(instance, \"entityManager\", entityManager);\n TestsHelper.setField(instance, \"supervisorRoleName\", supervisorRoleName);\n TestsHelper.setField(instance, \"adminRoleName\", adminRoleName);\n }", "@BeforeClass\n\tpublic static void setUp() throws Exception {\n\t\tSession session = Preparation.getSessionFactory().openSession();\n\t\tcatDAO = new CategoryHibernateDAO();\n\t\tcatDAO.setSession(session);\n\t}", "@BeforeEach\n\tpublic void initDbManagerThreadInstance() throws Exception {\n\t\tDbManager.setThreadInstance(dbManager);\n\t}", "@Override\n public void setUp() {\n deleteTheDatabase();\n }", "@BeforeEach\n public void setUp() throws ManagedProcessException, SQLException {\n // See https://github.com/vorburger/MariaDB4j\n DBConfigurationBuilder configBuilder = DBConfigurationBuilder.newBuilder();\n configBuilder.setPort(0); // Setting port to 0 to let configBuilder choose a free open port.\n db = DB.newEmbeddedDB(configBuilder.build());\n db.start();\n db.source(\"database.sql\");\n connection = DriverManager.getConnection(db.getConfiguration().getURL(\"test\"));\n mysqlDatabase = new MysqlDatabase(connection);\n }", "public setup() {\n dbConnection = \"jdbc:\"+DEFAULT_DB_TYPE+\"://\"+DEFAULT_DB_HOST+\":\"+DEFAULT_DB_PORT+\"/\"+DEFAULT_DB_PATH;\n dbType = DEFAULT_DB_TYPE;\n dbUser = DEFAULT_DB_USER;\n dbPass = DEFAULT_DB_PASSWORD;\n beginSetup();\n }", "private static void init() {\n\t\tif (factory == null) {\n\t\t\tfactory = Persistence.createEntityManagerFactory(\"hibernatePersistenceUnit\");\n\t\t}\n\t\tif (em == null) {\n\t\t\tem = factory.createEntityManager();\n\t\t}\n\t}", "@BeforeClass (alwaysRun = true)\n public void dataPreparation()\n {\n serverHealth.isServerReachable();\n serverHealth.assertServerIsOnline();\n\n // Before we start testing the live indexing we need to use the reindexing component to index the system nodes.\n Step.STEP(\"Index system nodes.\");\n AlfrescoStackInitializer.reindexEverything();\n\n Step.STEP(\"Create a test user and private site.\");\n testUser = dataUser.createRandomTestUser();\n testSite = helper.createPrivateSite(testUser);\n }", "@Override\n public void afterPropertiesSet() {\n\n super.afterPropertiesSet();\n\n Assert.notNull(getDataSources(), \"Data sources not set\");\n\n /**\n * SettingServiceProvider setup.\n */\n setSettingService((SettingServiceProvider) getServiceFactory().makeService(SettingServiceProvider.class));\n Assert.notNull(getSettingService(), \"Settings Service Provider could be located.\");\n\n /**\n * IdGenerator setup.\n */\n setIdGenerator((IdGenerator) getServiceFactory().makeService(IdGenerator.class));\n Assert.notNull(getIdGenerator(), \"ID Generator could be located.\");\n\n /**\n * TransactionDAO setup.\n */\n setTransactionDao((JdbcTransactionDao) getServiceFactory().makeService(JdbcTransactionDao.class));\n Assert.notNull(getTransactionDao(), \"TransactionDAO could not be located.\");\n\n /**\n * PartnerDAO setup.\n */\n setPartnerDao((JdbcPartnerDao) getServiceFactory().makeService(JdbcPartnerDao.class));\n Assert.notNull(getTransactionDao(), \"PartnerDao could not be located.\");\n\n /**\n * CompressionService setup.\n */\n setCompressionService((CompressionService) getServiceFactory().makeService(CompressionService.class));\n Assert.notNull(getTransactionDao(), \"CompressionService could not be located.\");\n\n /**\n * Data Access Objects setup\n */\n HibernatePersistenceProvider provider = new HibernatePersistenceProvider();\n EntityManagerFactory emf = provider.createEntityManagerFactory(\n getDataSources().get(ARG_DS_SOURCE),\n new PluginPersistenceConfig()\n .classLoader(OrganizationDataType.class.getClassLoader())\n .debugSql(Boolean.FALSE)\n .rootEntityPackage(\"com.windsor.node.plugin.wqx.domain\")\n .setBatchFetchSize(1000));\n\n setEntityManager(emf.createEntityManager());\n\n /**\n * SubmissionHistoryDao setup\n */\n setSubmissionHistoryDao(new SubmissionHistoryDaoJpaImpl(getEntityManager()));\n\n /**\n * WqxDao setup\n */\n setWqxDao(new WqxDaoJpaImpl(getEntityManager()));\n Assert.notNull(getWqxDao(), \"WqxDao could not be located.\");\n }", "@BeforeEach\n void setUp() {\n Configuration configuration = new Configuration();\n configuration.addAnnotatedClass(SitterController.class);\n configuration.setProperty(\"hibernate.dialect\", \"org.hibernate.dialect.H2Dialect\");\n configuration.setProperty(\"hibernate.connection.driver_class\", \"org.h2.Driver\");\n String urlConfigValue = \"jdbc:h2:mem:test;\";\n String urlConfigMode = \"MODE=Mysql;\";\n String urlConfigInit = \"INIT=CREATE SCHEMA IF NOT EXISTS ROVERREVIEWS\";\n String urlConfigs = urlConfigValue + urlConfigMode + urlConfigInit;\n configuration.setProperty(\"hibernate.connection.url\", urlConfigs);\n configuration.setProperty(\"hibernate.hbm2ddl.auto\", \"create\");\n configuration.addAnnotatedClass(Sitter.class);\n sessionFactory = configuration.buildSessionFactory();\n session = sessionFactory.openSession();\n }", "public void setupEntityClass(Class clazz) ;", "protected void entityInit() {}", "@Before\n public void initTest() {\n AccountCapsule ownerAccountFirstCapsule =\n new AccountCapsule(\n ByteString.copyFromUtf8(ACCOUNT_NAME_FIRST),\n ByteString.copyFrom(ByteArray.fromHexString(OWNER_ADDRESS_FIRST)),\n AccountType.Normal,\n 10000_000_000L);\n AccountCapsule ownerAccountSecondCapsule =\n new AccountCapsule(\n ByteString.copyFromUtf8(ACCOUNT_NAME_SECOND),\n ByteString.copyFrom(ByteArray.fromHexString(OWNER_ADDRESS_SECOND)),\n AccountType.Normal,\n 20000_000_000L);\n\n dbManager.getAccountStore()\n .put(ownerAccountFirstCapsule.getAddress().toByteArray(), ownerAccountFirstCapsule);\n dbManager.getAccountStore()\n .put(ownerAccountSecondCapsule.getAddress().toByteArray(), ownerAccountSecondCapsule);\n\n dbManager.getDynamicPropertiesStore().saveLatestBlockHeaderTimestamp(1000000);\n dbManager.getDynamicPropertiesStore().saveLatestBlockHeaderNumber(10);\n dbManager.getDynamicPropertiesStore().saveNextMaintenanceTime(2000000);\n }", "@BeforeClass\n\tpublic static void setupDataSource() {\n\t\tdataSource = new SingleConnectionDataSource();\n\t\tdataSource.setUrl(\"jdbc:postgresql://localhost:5432/nationalpark\");\n\t\tdataSource.setUsername(\"postgres\");\n\t\tdataSource.setPassword(\"postgres1\");\n\t\t/* The following line disables autocommit for connections\n\t\t * returned by this DataSource. This allows us to rollback\n\t\t * any changes after each test */\n\t\tdataSource.setAutoCommit(false);\n\t}", "EMInitializer() {\r\n try {\r\n emf = Persistence.createEntityManagerFactory(\"pl.polsl_MatchStatist\"\r\n + \"icsWeb_war_4.0-SNAPSHOTPU\");\r\n em = emf.createEntityManager();\r\n } catch (Exception e) {\r\n em = null;\r\n emf = null;\r\n }\r\n\r\n }", "@Before\n public void onSetUpBeforeTransaction() throws Exception {\n super.onSetUpBeforeTransaction();\n\n // load up any other needed spring beans\n\n // setup the mock objects if needed\n\n // create and setup the object to be tested\n hierarchyLogicImpl = new ExternalHierarchyLogicImpl();\n hierarchyLogicImpl.setDao(evaluationDao);\n //hierarchyLogicImpl.setHierarchyService(hierarchyService);\n\n }", "@Before\n public void setUp() throws Exception {\n dataSource1 = createDataSource(\"jdbc:hsqldb:mem:foodb\");\n createTableWithTestData(dataSource1);\n\n dataSource2 = createDataSource(\"jdbc:hsqldb:mem:bardb\");\n createTableWithTestData(dataSource2);\n }", "@Before\n public void setUp() {\n start(fakeApplication(inMemoryDatabase(), fakeGlobal()));\n }", "@Before\n\tpublic void setup()\n\t{\n\t\tEbean.execute(Ebean.createCallableSql(dropDdl));\n\t\tEbean.execute(Ebean.createCallableSql(createDdl));\n\n\t\tpr1 = new Province();\n\t\tpr1.provinceId = 1;\n\t\tpr1.abbreviation = \"P1\";\n\t\tpr1.save();\n\n\t\tc1 = new City();\n\t\tc1.cityId = 11;\n\t\tc1.cityParentId = 1;\n\t\tc1.cityName = \"Fake1\";\n\t\tc1.province = pr1;\n\t\tc1.save();\n\n\t\tpr2 = new Province();\n\t\tpr2.provinceId = 2;\n\t\tpr2.abbreviation = \"P2\";\n\t\tpr2.save();\n\n\t\tc2 = new City();\n\t\tc2.cityId = 22;\n\t\tc2.cityParentId = 2;\n\t\tc2.cityName = \"Fake2\";\n\t\tc2.province = pr2;\n\t\tc2.save();\n\n\t\tsetupDelegate();\n\n\t}", "@BeforeClass\n\tpublic static void setupDataSource() {\n\t\tdataSource = new SingleConnectionDataSource();\n\t\tdataSource.setUrl(\"jdbc:postgresql://localhost:5432/campground\");\n\t\tdataSource.setUsername(\"postgres\");\n\t\tdataSource.setPassword(\"postgres1\");\n\t\t/* The following line disables autocommit for connections\n\t\t * returned by this DataSource. This allows us to rollback\n\t\t * any changes after each test */\n\t\tdataSource.setAutoCommit(false);\n\n\t}", "@Before\r\n public void initDb() throws Exception {\n mDatabase = Room.inMemoryDatabaseBuilder(ApplicationProvider.getApplicationContext(),\r\n MyDatabase.class)\r\n // allowing main thread queries, just for testing\r\n .allowMainThreadQueries()\r\n .build();\r\n\r\n mTemplateDao = mDatabase.templateDao();\r\n }", "public void testV1Setup() throws Exception {\n Properties props = new Properties();\n props.setProperty(LockssRepositoryImpl.PARAM_CACHE_LOCATION, tempDirPath);\n props\n\t.setProperty(ConfigManager.PARAM_PLATFORM_DISK_SPACE_LIST, tempDirPath);\n ConfigurationUtil.setCurrentConfigFromProps(props);\n\n sqlDbManager = new SqlDbManager();\n theDaemon.setDbManager(sqlDbManager);\n sqlDbManager.initService(theDaemon);\n assertTrue(sqlDbManager.setUpDatabase(1));\n sqlDbManager.setTargetDatabaseVersion(1);\n sqlDbManager.startService();\n assertTrue(sqlDbManager.isReady());\n\n Connection conn = sqlDbManager.getConnection();\n assertNotNull(conn);\n assertTrue(sqlDbManager.tableExists(conn, SqlDbManager.OBSOLETE_METADATA_TABLE));\n }", "protected void setUp() throws Exception {\n\t\tfinal StandardServiceRegistry registry = new StandardServiceRegistryBuilder().configure().build();\n\t\ttry {\n\t\t\tsessionFactory = new MetadataSources(registry).buildMetadata().buildSessionFactory();\n\t\t} catch (Exception e) {\n\t\t\tStandardServiceRegistryBuilder.destroy(registry);\n\t\t}\n\t}" ]
[ "0.75621784", "0.749643", "0.7473466", "0.74296975", "0.73995805", "0.73755413", "0.73720366", "0.73221266", "0.72915864", "0.72822535", "0.7273213", "0.72707325", "0.7234612", "0.7233467", "0.71825427", "0.7174559", "0.7115673", "0.71012837", "0.70699173", "0.7048097", "0.70343745", "0.7022407", "0.70151025", "0.70034426", "0.6996927", "0.69927645", "0.6929601", "0.6923495", "0.69116783", "0.68939984", "0.6891877", "0.6885117", "0.68839115", "0.6879399", "0.6877596", "0.6852075", "0.6828356", "0.682139", "0.6817783", "0.6814667", "0.6808185", "0.6789387", "0.678711", "0.6780318", "0.67568606", "0.67405", "0.67404157", "0.6730261", "0.67300546", "0.6727205", "0.6726141", "0.67217094", "0.671907", "0.67073256", "0.6701886", "0.66986567", "0.6696205", "0.66940767", "0.66932887", "0.6689982", "0.6672718", "0.66667044", "0.66637707", "0.66537476", "0.6649419", "0.6647429", "0.66407216", "0.66367114", "0.66165", "0.66090274", "0.66061556", "0.66061556", "0.6605207", "0.6602042", "0.6598139", "0.65939254", "0.65877783", "0.6578387", "0.6573101", "0.6560545", "0.65447986", "0.65427285", "0.65391624", "0.6530203", "0.65266824", "0.6524841", "0.6518765", "0.6514007", "0.6506363", "0.6501543", "0.64898056", "0.6487102", "0.6476012", "0.64593166", "0.6439219", "0.6433625", "0.6433489", "0.6432602", "0.6425768", "0.64251363" ]
0.6569239
79
This test assumes the database contains two rows
@Test public void testDummyMsg() throws Exception { given() .contentType("application/json") .get("/cars/").then() .assertThat() .statusCode(HttpStatus.OK_200.getStatusCode()) .body("msg", equalTo("Hello World")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testSelectSpecificRow() throws SQLException {\n // Arrange\n CommitStructure commit = getSampleCommit();\n String commitID = commit.getCommitID();\n // Act\n mysqlDatabase.insertCommitToDatabase(commit);\n CommitStructure commits = mysqlDatabase.selectSpecificRow(commitID);\n // Assert\n assertEquals(commits.getCommitID() , commitID);\n }", "@Test\n public void testSave() throws Exception {\n IDataSet databaseDataSet = databaseTester.getConnection().createDataSet();\n ITable actualTable = databaseDataSet.getTable(\"employees2\");\n SortedTable sortedActualTable = new SortedTable(actualTable, new String[]{\"ID\"});\n\n // Load expected data from an XML dataset\n IDataSet expectedDataSet = new FlatXmlDataSetBuilder().build(new File(\"src\\\\test\\\\resources\\\\dataset.xml\"));\n ITable expectedTable = expectedDataSet.getTable(\"employees\");\n\n\n // Assert actual database table match expected table\n Assertion.assertEquals(expectedTable, sortedActualTable);\n }", "@Test\n public void testSelectingAllRowsWhenNotEmpty() throws SQLException {\n // Arrange\n CommitStructure commit = getSampleCommit();\n // Act\n mysqlDatabase.insertCommitToDatabase(commit);\n List<CommitStructure> commits = mysqlDatabase.selectAllCommits();\n // Assert\n assertFalse(commits.isEmpty());\n assertEquals(commits.get(0).getCommitID() , commit.getCommitID());\n }", "public static void test()\n\t{\n\t Environment myDbEnvironment = null;\n\t Database myDatabase = null;\n\n\t /* OPENING DB */\n\n\t // Open Database Environment or if not, create one.\n\t EnvironmentConfig envConfig = new EnvironmentConfig();\n\t envConfig.setAllowCreate(true);\n\t myDbEnvironment = new Environment(new File(\"db/\"), envConfig);\n\n\t // Open Database or if not, create one.\n\t DatabaseConfig dbConfig = new DatabaseConfig();\n\t dbConfig.setAllowCreate(true);\n\t dbConfig.setSortedDuplicates(true);\n\t myDatabase = myDbEnvironment.openDatabase(null, \"schema\", dbConfig);\n\n\t Cursor cursor = null;\n\t /* GET <K,V > FROM DB */\n\t DatabaseEntry foundKey = new DatabaseEntry();\n\t DatabaseEntry foundData = new DatabaseEntry();\n\n\t cursor = myDatabase.openCursor(null, null);\n\t cursor.getFirst(foundKey, foundData, LockMode.DEFAULT);\n\n\t do {\n\t try {\n\t String keyString = new String(foundKey.getData(), \"UTF-8\");\n\t String dataString = new String(foundData.getData(), \"UTF-8\");\n\t System.out.println(\"<\" + keyString + \", \" + dataString + \">\");\n\t } catch (UnsupportedEncodingException e) {\n\t e.printStackTrace();\n\t }\n\t } while (cursor.getNext(foundKey, foundData, LockMode.DEFAULT) == OperationStatus.SUCCESS);\n\t if (cursor != null) cursor.close();\n\t System.out.println(\"-----\");\n\t \n\t if (myDatabase != null) myDatabase.close();\n\t if (myDbEnvironment != null) myDbEnvironment.close();\n\t}", "public void testRawQuery() {\n Random random = new Random();\n ContentValues values1 = makeServiceStateValues(random, mBaseDb);\n final long row1 = mBaseDb.insert(TBL_SERVICE_STATE, null, values1);\n ContentValues values2 = makeServiceStateValues(random, mBaseDb);\n final long row2 = mBaseDb.insert(TBL_SERVICE_STATE, null, values2);\n\n // query tuple\n ServiceStateTable table = new ServiceStateTable();\n String sql = \"SELECT * FROM \" + TBL_SERVICE_STATE + \" WHERE \" + COL_ID + \" = ?\";\n String[] selectionArgs = { String.valueOf(row1) };\n List<ServiceStateTuple> tuples = table.rawQuery(mTestContext, sql, selectionArgs);\n\n // verify values\n assertNotNull(tuples);\n // klocwork\n if (tuples == null) return;\n assertFalse(tuples.isEmpty());\n assertEquals(1, tuples.size());\n ServiceStateTuple tuple = tuples.get(0);\n assertValuesTuple(row1, values1, tuple);\n }", "@Test\n public void rowExists(){\n userDAO.createUser(new User(\"dummy\", \"dummy\", 1));\n timeListDAO.createTimeList(new TimeList(\"dummy\", 1990, 0, 60, 0, 0));\n\n assertTrue(timeListResource.rowExists(\"dummy\",1990,0));\n\n //clean up\n timeListDAO.removeTimeList(1990,0, \"dummy\");\n userDAO.removeUser(\"dummy\");\n }", "@Test(timeout = 4000)\n public void test109() throws Throwable {\n Boolean boolean0 = SQLUtil.mutatesDataOrStructure(\" SELECT * FROM \");\n assertFalse(boolean0);\n assertNotNull(boolean0);\n }", "@Test\n\tvoid test1() throws SQLException {\n\t\tString username_1 = \"testtest1\";\n\t\tboolean actual_1 = database.isExistUser(username_1);\n\t\tboolean expected_1 = false;\n\t\tassertEquals(expected_1,actual_1);\n\t\t\n\t\tString username_2 = \"testtest4\";\n\t\tboolean actual_2 = database.isExistUser(username_2);\n\t\tboolean expected_2 = true;\n\t\tassertEquals(expected_2,actual_2);\n\t}", "@Test\n public void create1Test2() throws SQLException {\n manager = new TableServizioManager(mockDb);\n manager.create1(true,true,true,true,true,true,true);\n Servizio servizio = manager.retriveById(5);\n assertNotNull(servizio,\"Should return true if create Servizio\");\n }", "@Test\n public void testSelectSpecificRowThatDoesNotExist() throws SQLException {\n // Arrange\n CommitStructure commit = getSampleCommit();\n String commitID = commit.getCommitID() + \"A\";\n // Act\n mysqlDatabase.insertCommitToDatabase(commit);\n CommitStructure commits = mysqlDatabase.selectSpecificRow(commitID);\n // Assert\n assertNull(commits);\n }", "@Test\n\tpublic void testFetchResult_with_proper_data() {\n\t}", "@Test\n public void create2Test() throws SQLException {\n manager = new TableServizioManager(mockDb);\n manager.create2(false,true,false,true,false,false,true);\n Servizio servizio = manager.retriveById(5);\n assertNotNull(servizio,\"Should return true if create Servizio\");\n }", "@Test\n @DisplayName(\"Testataan kaikkien tilausten haku\")\n void getAllReservations() {\n assertEquals(0, reservationsDao.getAllReservations().size());\n\n TablesEntity table1 = new TablesEntity();\n table1.setSeats(2);\n tablesDao.createTable(table1);\n // Test that returns the same number as created reservations\n ReservationsEntity firstReservation = new ReservationsEntity(\"amal\",\"46111222\", new Date(System.currentTimeMillis()), table1.getId(),new Time(1000),new Time(2000));\n reservationsDao.createReservation(firstReservation);\n\n TablesEntity table2 = new TablesEntity();\n table2.setSeats(2);\n tablesDao.createTable(table2);\n reservationsDao.createReservation(new ReservationsEntity(\"juho\", \"46555444\", new Date(System.currentTimeMillis()), table2.getId(), new Time(1000),new Time(2000)));\n\n List<ReservationsEntity> reservations = reservationsDao.getAllReservations();\n assertEquals(2, reservations.size());\n assertEquals(firstReservation, reservations.get(0));\n }", "@Test\n public void testGetAll2() throws DbException, SQLException {\n assertSame(listCreditCardEntityList.get(0).getBalance(), creditCardEntity.getBalance());\n }", "@Test\n public void testInsertSingleRecordIntoWeatherTable() {\n ContentValues testMovieValues = TestUtilities.createTestMovieContentValues();\n\n /* Insert ContentValues into database and get a row ID back */\n long movieRowId = database.insert(\n REFLECTED_TABLE_NAME,\n null,\n testMovieValues);\n\n /* If the insert fails, database.insert returns -1 */\n int valueOfIdIfInsertFails = -1;\n String insertFailed = \"Unable to insert into the database\";\n assertNotSame(insertFailed,\n valueOfIdIfInsertFails,\n movieRowId);\n\n Cursor movieCursor = database.query(\n REFLECTED_TABLE_NAME,\n null,\n null,\n null,\n null,\n null,\n null);\n\n String emptyQueryError = \"Error: No Records returned from weather query\";\n assertTrue(emptyQueryError,\n movieCursor.moveToFirst());\n\n String expectedMovieDidntMatchActual =\n \"Expected weather values didn't match actual values.\";\n TestUtilities.validateCurrentRecord(expectedMovieDidntMatchActual,\n movieCursor,\n testMovieValues);\n\n assertFalse(\"Error: More than one record returned from weather query\",\n movieCursor.moveToNext());\n\n movieCursor.close();\n }", "@Test\n public void selectStatementSuccessful() throws SQLException {\n assertNotNull(testConnection.selectStatement(con, \"SELECT * FROM Employees;\"));\n assertNull(testConnection.selectStatement(con, \"SELECT * FROM Emp;\"));\n\n //Test if RS is empty\n assertTrue(testConnection.selectStatement(con, \"SELECT * FROM Employees\").next());\n assertFalse(testConnection.selectStatement(con, \"SELECT * FROM Employees WHERE email='x'\").next());\n }", "@Test\n public void testSelectingAllRowsWhenEmpty() throws SQLException {\n // Arrange\n CommitStructure commit = getSampleCommit();\n // Act\n List<CommitStructure> commits = mysqlDatabase.selectAllCommits();\n // Assert\n assertTrue(commits.isEmpty());\n }", "@Test\n public void testGetPersonsCount() {\n assertEquals(2, facade.getPersonCount(), \"Expects two rows in the database\");\n }", "public void test3() throws ClassNotFoundException, SQLException {\r\n\t\tsqlTable tbl = new sqlTable();\r\n\t\ttbl.printInAplication(\"SELECT * FROM metropolises WHERE metropolis = \" + \"\\\"Mumbai\" + \"\\\";\");\r\n\t\tassertTrue(tbl.getGrid().get(0).get(1).equals(\"Asia\"));\r\n\t\ttbl.printInAplication(\"SELECT * FROM metropolises WHERE metropolis = \" + \"\\\"New York\" + \"\\\";\");\r\n\t\tassertTrue(tbl.getGrid().get(0).get(1).equals(\"North America\"));\r\n\t\ttbl.printInAplication(\"SELECT * FROM metropolises WHERE population >= \" + 20400000 +\";\"); \r\n\t\tassertTrue(tbl.getGrid().get(0).get(0).equals(\"Mumbai\"));\r\n\t\ttbl.printInAplication(\"SELECT * FROM metropolises WHERE population >= \" + 21000000 +\";\");\r\n\t\tassertTrue(tbl.getGrid().get(0).get(0).equals(\"New York\"));\r\n\t}", "@Test\n void getAllUserRolesSuccess() {\n List<UserRoles> userRoles = genericDao.getAll();\n //assert that you get back the right number of results assuming nothing alters the table\n assertEquals(6, userRoles.size());//\n log.info(\"get all userRoles test: all userRoles;\" + genericDao.getAll());\n }", "@Test(timeout = 4000)\n public void test018() throws Throwable {\n // Undeclared exception!\n try { \n DBUtil.prepareStatement((Connection) null, \"Expected exactly one row, found more.\", true);\n fail(\"Expecting exception: IllegalStateException\");\n \n } catch(IllegalStateException e) {\n //\n // Tried to mutate a database with read-only settings: Expected exactly one row, found more.\n //\n verifyException(\"org.databene.jdbacl.DBUtil\", e);\n }\n }", "public void test2() throws ClassNotFoundException, SQLException {\r\n\t\tsqlTable tbl = new sqlTable();\r\n\t\ttbl.printInAplication(\"SELECT * FROM metropolises WHERE metropolis like \" + \"\\\"%m%\" + \"\\\";\");\r\n\t\tVector<Object> v1 = tbl.getGrid().get(0);\r\n\t\tVector<Object> v2 = tbl.getGrid().get(1);\r\n\t\tVector<Object> v3 = tbl.getGrid().get(2);\r\n\t\tassertTrue(v1.get(0).equals(\"Mumbai\"));\r\n\t\tassertTrue(v2.get(0).equals(\"Rome\")); \r\n\t\tassertTrue(v3.get(0).equals(\"Melbourne\"));\r\n\t}", "@Test\n public void create1Test1() throws SQLException {\n manager = new TableServizioManager(mockDb);\n manager.create1(false,false,false,false,false,false,false);\n Servizio servizio = manager.retriveById(5);\n assertNotNull(servizio,\"Should return true if create Servizio\");\n }", "@Test\n public void insertNote_returnRow() throws Exception {\n // Arrange\n Note note = new Note(TestUtil.TEST_NOTE_1);\n LiveDataTestUtil<DataStateStatus<Integer>> liveDataTestUtil = new LiveDataTestUtil<>();\n final int insertedRow = 1;\n Flowable<DataStateStatus<Integer>> returnedData = SingleToFlowable.just(DataStateStatus.success(insertedRow, INSERT_SUCCESS));\n when(localRepository.insertNote(any(Note.class))).thenReturn(returnedData);\n\n // Act\n noteViewModel.setNote(note);\n DataStateStatus<Integer> returnedValue = liveDataTestUtil.getValue(noteViewModel.insertNote());\n\n // Assert\n assertEquals(DataStateStatus.success(insertedRow, INSERT_SUCCESS), returnedValue);\n }", "@Test\n public void twoColumns_and_projection() {\n for (Tuple row : query().from(Constants.survey).select(Constants.survey.id, Constants.survey.name, new QIdName(Constants.survey.id, Constants.survey.name)).fetch()) {\n Assert.assertEquals(3, row.size());\n Assert.assertEquals(Integer.class, row.get(0, Object.class).getClass());\n Assert.assertEquals(String.class, row.get(1, Object.class).getClass());\n Assert.assertEquals(IdName.class, row.get(2, Object.class).getClass());\n }\n }", "@Test\n public void testGetApartmentDetails() throws SQLException {\n System.out.println(\"getApartmentDetails\");\n int apartmentid = 2;\n ApartmentBLL instance = new ApartmentBLL();\n ResultSet result = instance.getApartmentDetails(apartmentid);\n assertTrue(result.next());\n \n }", "@Test\n public void testPostedApartmentList() throws SQLException {\n System.out.println(\"postedApartmentList\");\n String username = \"hello13\";\n ApartmentBLL instance = new ApartmentBLL();\n ResultSet result = instance.postedApartmentList(username);\n assertTrue(result.next());\n }", "@Test(timeout = 4000)\n public void test108() throws Throwable {\n Boolean boolean0 = SQLUtil.mutatesDataOrStructure(\"select into\");\n assertNotNull(boolean0);\n assertTrue(boolean0);\n }", "public void testDelete() {\n Random random = new Random();\n ContentValues values1 = makeServiceStateValues(random, mBaseDb);\n final long row1 = mBaseDb.insert(TBL_SERVICE_STATE, null, values1);\n ContentValues values2 = makeServiceStateValues(random, mBaseDb);\n final long row2 = mBaseDb.insert(TBL_SERVICE_STATE, null, values2);\n\n // delete row 1\n ServiceStateTable table = new ServiceStateTable();\n String whereClause = COL_ID + \" = ?\";\n String[] whereArgs = { String.valueOf(row1) };\n int deleted = table.delete(mTestContext, whereClause, whereArgs);\n assertEquals(1, deleted);\n\n // query verify using base db\n Cursor cursor = mBaseDb.query(TBL_SERVICE_STATE, null, null, null, null, null, null);\n assertValuesCursor(row2, values2, cursor);\n cursor.close();\n }", "@Test(timeout = 4000)\n public void test61() throws Throwable {\n NameSpec nameSpec0 = NameSpec.IF_REPRODUCIBLE;\n DefaultDBTable defaultDBTable0 = new DefaultDBTable();\n String[] stringArray0 = new String[7];\n stringArray0[0] = \"org.h2.index.PageBtreeLeaf\";\n stringArray0[1] = \"org.h2.index.PageBtreeLeaf\";\n stringArray0[2] = \"org.h2.index.PageBtreeLeaf\";\n stringArray0[4] = \"org.h2.index.PageBtreeLeaf\";\n stringArray0[5] = \"org.h2.index.PageBtreeLeaf\";\n stringArray0[6] = \"org.h2.index.PageBtreeLeaf\";\n DBPrimaryKeyConstraint dBPrimaryKeyConstraint0 = new DBPrimaryKeyConstraint(defaultDBTable0, \"org.h2.index.PageBtreeLeaf\", true, stringArray0);\n dBPrimaryKeyConstraint0.setTable(defaultDBTable0);\n MockPrintWriter mockPrintWriter0 = new MockPrintWriter(\"org.h2.index.PageBtreeLeaf\");\n SQLUtil.renderCreateTable(defaultDBTable0, false, nameSpec0, mockPrintWriter0);\n assertNull(defaultDBTable0.getDoc());\n }", "@Test\n public void checkDataValue() {\n\n manager.getAllExpense(new DatabaseCallback() {\n @Override\n public void onDataLoaded(List<ExpenseEntity> lists) {\n assertEquals(lists.size(),2);\n }\n\n @Override\n public void onAdded() {\n\n }\n\n @Override\n public void onQueryAll() {\n\n }\n });\n\n }", "@Test\n public void addRecipeDirection_DatabaseUpdates(){\n int returnedRecipe = testDatabase.addRecipe(testRecipe);\n int returnedDirection1 = testDatabase.addRecipeDirection(recipeDirection1);\n ArrayList<RecipeDirection> allDirections = testDatabase.getAllRecipeDirections(returnedRecipe);\n RecipeDirection retrieved = new RecipeDirection();\n if(allDirections != null){\n for(int i = 0; i < allDirections.size(); i++){\n if(allDirections.get(i).getKeyID() == returnedDirection1){\n retrieved = allDirections.get(i);\n }\n }\n }\n assertEquals(\"addRecipeDirection - Correct Number\", 1, retrieved.getDirectionNumber(), 0);\n assertEquals(\"addRecipeDirection - Correct Text\", \"TestDirection1\", retrieved.getDirectionText());\n }", "public void testMatchCRUD() {\n assertFalse(dbHelper.mMatchTable.hasData());\n\n // Create\n\n // Read\n\n // Update\n\n // Delete\n dbHelper.mMatchTable.deleteAll();\n assertFalse(dbHelper.mMatchTable.hasData());\n }", "@Test\n public void testSubmitFood() throws Exception {\n \n //submits a food with the given parmeters and randomizes the \n //foods calories, then verifys the food was created by comparing\n //the random number with the expected random number\n System.out.println(\"Submit Food\");\n Connection conn = DriverManager.getConnection(\"jdbc:mysql://localhost/users\", \"root\", \"tech\");\n Statement stmt= (Statement) conn.createStatement();\n Random rn = new Random();\n int maximum = 300;\n int minimum = 1;\n int range = maximum - minimum + 1;\n int randomNum = rn.nextInt(range) + minimum;\n sql=\"insert into foodlog (id,userName,food,log,totalCalories) \"\n + \"VAlUES (NULL,'thuff','Apple','2016-03-09','\"+randomNum+\"')\";\n stmt.executeUpdate(sql);\n sql = \"SELECT * FROM foodlog WHERE totalCalories='\"+randomNum+\"'\";\n rs = stmt.executeQuery(sql);\n \n while(rs.next()){\n assertTrue(rs.getInt(\"totalCalories\")==(randomNum));\n assertFalse(rs.getInt(\"totalCalories\")==(0));\n }\n }", "@Test(timeout = 4000)\n public void test062() throws Throwable {\n DBUtil.checkReadOnly(\"SELECT pronae,oid FROM pg_roc WHEE \", true);\n }", "@Test\r\n public void testInsert() {\r\n assertTrue(false);\r\n }", "@Test\n public void testNextWithoutHasNext() throws SQLException, InputIterationException {\n // Setup\n ResultSet resultSet = twoLinesResultSetFixture.getTestData();\n ResultSetIterator resultSetIterator = new ResultSetIterator(resultSet);\n\n // Check result\n List<ImmutableList<String>> expectedRecords = twoLinesResultSetFixture.getExpectedRecords();\n for (int i = 0; i < twoLinesResultSetFixture.numberOfRows(); i++) {\n assertEquals(expectedRecords.get(i), resultSetIterator.next());\n }\n // Next should have been called (although hasNext has not been called on sqlIterator).\n verify(resultSet, times(2)).next();\n }", "@Test\n public void addRecipeIngredient_DatabaseUpdates(){\n int returnedRecipe = testDatabase.addRecipe(testRecipe);\n ArrayList<RecipeIngredient> allRecipeIngredients = testDatabase.getAllRecipeIngredients(returnedRecipe);\n RecipeIngredient retrieved = new RecipeIngredient();\n if(allRecipeIngredients != null){\n for(int i = 0; i < allRecipeIngredients.size(); i++){\n if(allRecipeIngredients.get(i).getIngredientID() == ingredientID){\n retrieved = allRecipeIngredients.get(i);\n }\n }\n }\n assertEquals(\"addRecipeIngredient - Correct Quantity\", 2.0, retrieved.getQuantity(), 0);\n assertEquals(\"addRecipeIngredient - Correct Unit\", \"cups\", retrieved.getUnit());\n assertEquals(\"addRecipeIngredient - Correct Details\", \"White Flour\", retrieved.getDetails());\n }", "public void testQuery() {\n Random random = new Random();\n ContentValues values = makeServiceStateValues(random, mBaseDb);\n final long rowId = mBaseDb.insert(TBL_SERVICE_STATE, null, values);\n\n // query tuple\n ServiceStateTable table = new ServiceStateTable();\n List<ServiceStateTuple> tuples = table.query(mTestContext, null, null, null, null,\n null, null, null);\n\n // verify values\n assertNotNull(tuples);\n // klocwork\n if (tuples == null) return;\n assertFalse(tuples.isEmpty());\n assertEquals(1, tuples.size());\n ServiceStateTuple tuple = tuples.get(0);\n assertValuesTuple(rowId, values, tuple);\n }", "@Test\r\n\tpublic void createAndRetrieveStudent() {\n\t\tStudent duke = Student.find.where().eq(\"studentId\", 1).findUnique();\r\n\r\n\t\t// Check whether inMemoryDatabase() works\r\n\t\t// If not, more than 2 row might be found\r\n\t\tint totalRow = Student.find.findRowCount();\r\n\t\torg.junit.Assert.assertEquals(2, totalRow);\r\n\r\n\t\torg.junit.Assert.assertNotNull(duke);\r\n\t\torg.junit.Assert.assertEquals(1, duke.studentId.longValue());\r\n\t}", "@Test\n public void test_getAll_2() throws Exception {\n User user1 = createUser(1, false);\n User user2 = createUser(2, false);\n createUser(3, true);\n\n List<User> res = instance.getAll();\n\n assertEquals(\"'getAll' should be correct.\", 2, res.size());\n\n User entity1 = res.get(0);\n User entity2 = res.get(1);\n if (entity1.getUsername().equals(user2.getUsername())) {\n entity1 = res.get(1);\n entity2 = res.get(0);\n }\n\n assertEquals(\"'getAll' should be correct.\", user1.getUsername(), entity1.getUsername());\n assertEquals(\"'getAll' should be correct.\", user1.getDefaultTab(), entity1.getDefaultTab());\n assertEquals(\"'getAll' should be correct.\", user1.getNetworkId(), entity1.getNetworkId());\n assertEquals(\"'getAll' should be correct.\", user1.getRole().getId(), entity1.getRole().getId());\n assertEquals(\"'getAll' should be correct.\", user1.getFirstName(), entity1.getFirstName());\n assertEquals(\"'getAll' should be correct.\", user1.getLastName(), entity1.getLastName());\n assertEquals(\"'getAll' should be correct.\", user1.getEmail(), entity1.getEmail());\n assertEquals(\"'getAll' should be correct.\", user1.getTelephone(), entity1.getTelephone());\n assertEquals(\"'getAll' should be correct.\", user1.getStatus().getId(), entity1.getStatus().getId());\n\n assertEquals(\"'getAll' should be correct.\", user2.getUsername(), entity2.getUsername());\n assertEquals(\"'getAll' should be correct.\", user2.getDefaultTab(), entity2.getDefaultTab());\n assertEquals(\"'getAll' should be correct.\", user2.getNetworkId(), entity2.getNetworkId());\n assertEquals(\"'getAll' should be correct.\", user2.getRole().getId(), entity2.getRole().getId());\n assertEquals(\"'getAll' should be correct.\", user2.getFirstName(), entity2.getFirstName());\n assertEquals(\"'getAll' should be correct.\", user2.getLastName(), entity2.getLastName());\n assertEquals(\"'getAll' should be correct.\", user2.getEmail(), entity2.getEmail());\n assertEquals(\"'getAll' should be correct.\", user2.getTelephone(), entity2.getTelephone());\n assertEquals(\"'getAll' should be correct.\", user2.getStatus().getId(), entity2.getStatus().getId());\n }", "@Test\n\tpublic void testAddRowCommit() {\n\t}", "@Test\n\tpublic void testCreateRow() throws SQLException\n\t{\n\t\tString insertStatement = \"INSERT INTO Nail (\" + \n\t\t\t\t\"id, UPC, ManufacturerID, Price,Length, NumberInBox\" +\n\t\t\t\t\") VALUES (1,'asdf',5,5,5.0,20)\";\n\t\tDatabaseGateway.createRow(insertStatement);\n\t\t\n\t\tResultSet rs = DatabaseGateway.getObjectByID(\"Nail\", 1);\n\t\tif(rs.next())\n\t\t{\n\t\t\tassertEquals(rs.getInt(\"id\"),1);\n\t\t\tassertEquals(rs.getInt(\"ManufacturerID\"),5);\n\t\t\tassertEquals(rs.getInt(\"Price\"),5);\n\t\t\tassertEquals(rs.getString(\"UPC\"),\"asdf\");\n\t\t\tassertTrue(rs.getDouble(\"Length\") == 5.0);\n\t\t\tassertEquals(rs.getInt(\"NumberInBox\"), 20);\n\t\t}\n\t}", "@Test\n public void testgetPostedApartmentEndDate() throws SQLException {\n System.out.println(\"getPostedApartmentEndDate\");\n String username = \"hello13\";\n ApartmentBLL instance = new ApartmentBLL();\n ResultSet result = instance.getPostedApartmentEndDate(username);\n assertTrue(result.next());\n }", "@Test\n public void testShowSearchedApartment() throws SQLException {\n System.out.println(\"showSearchedApartment\");\n String location = \"gokarna\";\n ApartmentBLL instance = new ApartmentBLL();\n ResultSet result = instance.showSearchedApartment(location);\n assertTrue(result.next());\n }", "private void test() throws SQLException {\n\n\t}", "@Test\n\tpublic void testCreateRowRelation() throws SQLException\n\t{\n\t\tnew PowerTool(\"asdf\", 5, 5, \"PowerTooldescription\", true);\n\t\tnew StripNail(\"UPC\", 5, 5, 3.33, 9);\n\t\t\n\t\tnew PowerToolsToStripNailsMapper(1,2);\n\t\t\n\t\tResultSet rs = DatabaseGateway.getTable(\"PowerToolsTOStripNails\");\n\t\tif(rs.next())\n\t\t{\n\t\t\tassertEquals(rs.getInt(\"PowerToolid\"),1);\n\t\t\tassertEquals(rs.getInt(\"StripNailid\"),2);\n\t\t}\n\t}", "@Test\n public void projection_and_twoColumns() {\n for (Tuple row : query().from(Constants.survey).select(new QIdName(Constants.survey.id, Constants.survey.name), Constants.survey.id, Constants.survey.name).fetch()) {\n Assert.assertEquals(3, row.size());\n Assert.assertEquals(IdName.class, row.get(0, Object.class).getClass());\n Assert.assertEquals(Integer.class, row.get(1, Object.class).getClass());\n Assert.assertEquals(String.class, row.get(2, Object.class).getClass());\n }\n }", "@Test\n void getAllSuccess() {\n List<User> Users = dao.getAll();\n assertEquals(2, Users.size());\n }", "@Test(timeout = 4000)\n public void test103() throws Throwable {\n Boolean boolean0 = SQLUtil.mutatesDataOrStructure(\"SELECT * FROM null WHERE null = null AND null = null AND null = 'oeQdkmCG0DtW' AND null = null AND null = java.lang.Object@1593efe2\");\n assertFalse(boolean0);\n assertNotNull(boolean0);\n }", "@Test\n public void testPreparedStatementOne() throws Throwable\n {\n assertNotNull(ds);\n Connection c = ds.getConnection();\n assertNotNull(c);\n \n Statement st = c.createStatement();\n assertNotNull(st);\n \n // Create\n st.execute(\"CREATE TABLE Employees (Employee_ID INTEGER, Name VARCHAR(30));\");\n st.execute(\"INSERT INTO Employees VALUES (1, '#1')\");\n st.execute(\"INSERT INTO Employees VALUES (2, '#2')\");\n \n // Prepared statement\n PreparedStatement pstmt = c.prepareStatement(\"SELECT * FROM Employees WHERE Employee_ID = ?\");\n assertNotNull(pstmt);\n \n pstmt.setInt(1, 1);\n \n ResultSet rs = pstmt.executeQuery();\n assertNotNull(rs);\n \n assertTrue(rs.next());\n \n // Drop\n st.execute(\"DROP TABLE Employees\");\n \n rs.close();\n pstmt.close();\n st.close();\n c.close();\n }", "@Test\n public void retriveAllTest() throws SQLException {\n manager = new TableServizioManager(mockDb);\n List<Servizio> lista = manager.retriveAll();\n assertEquals(7,lista.size(),\"It should return a list of length 7\");\n }", "public void testModel(Context context) {\n // insert our test records into the database\n MovieDBHelper dbHelper = new MovieDBHelper(context);\n SQLiteDatabase db = dbHelper.getWritableDatabase();\n\n\n ContentValues movieValues = TestUtilities.createMovieValues();\n long movieRowId = db.insert(MovieContract.MovieEntry.TABLE_NAME, null, movieValues);\n // Verify we got a row back.\n assertTrue(\"Error: Failure to insert records into movie table\", movieRowId != -1);\n\n ContentValues trailerValues = TestUtilities.createTrailerValues();\n long trailerRowId = db.insert(MovieContract.TrailerEntry.TABLE_NAME, null, trailerValues);\n // Verify we got a row back.\n assertTrue(\"Error: Failure to insert trailer records\", trailerRowId != -1);\n\n //[uery the database and receive a Cursor back\n Cursor cursor = db.query(MovieContract.MovieEntry.TABLE_NAME, // Table to Query\n null, // all columns\n null, // Columns for the \"where\" clause\n null, // Values for the \"where\" clause\n null, // columns to group by\n null, // columns to filter by row groups\n null // sort order\n );\n // Move the cursor to a valid database row\n assertTrue(\"Error: No Records returned from location query\", cursor.moveToFirst());\n\n // Validate data in resulting Cursor with the original ContentValues\n TestUtilities.validateCurrentRecord(\"Error: Movie Query Validation Failed\", cursor, movieValues);\n\n\n // Move the cursor to demonstrate that there is only one record in the database\n assertFalse(\"Error: More than one record returned from location query\",\n cursor.moveToNext());\n\n // Finally, close the cursor and database\n cursor.close();\n db.close();\n\n\n }", "@Test\n\tpublic void testQuery1() {\n\t}", "@Test(timeout = 4000)\n public void test123() throws Throwable {\n DefaultDBTable defaultDBTable0 = new DefaultDBTable();\n String[] stringArray0 = new String[5];\n String string0 = SQLUtil.renderQuery(defaultDBTable0, stringArray0, stringArray0);\n assertEquals(\"SELECT * FROM null WHERE null = null AND null = null AND null = null AND null = null AND null = null\", string0);\n }", "@Test\n void getByPropertyEqualSuccess() {\n List<Order> orders = dao.getByPropertyEqual(\"description\", \"February Large Long-Sleeve\");\n assertEquals(1, orders.size());\n assertEquals(2, orders.get(0).getId());\n }", "@Test(timeout = 4000)\n public void test037() throws Throwable {\n DBUtil.checkReadOnly(\"SELECT pronae,oid FROM pg_roc WHEE \", false);\n }", "public void testGetRowKey() {\n TaskSeriesCollection c = createCollection1();\n }", "@Test\r\n public void testRead() throws Exception {\r\n System.out.println(\"read\");\r\n int idbureau = 0;\r\n BureauDAO instance = new BureauDAO();\r\n instance.setConnection(dbConnect);\r\n Bureau obj = new Bureau(0,\"Test\",\"000000000\",\"\");\r\n Bureau expResult = instance.create(obj);\r\n idbureau=expResult.getIdbur();\r\n Bureau result = instance.read(idbureau);\r\n assertEquals(\"sigles différents\",expResult.getSigle(), result.getSigle());\r\n assertEquals(\"tel différents\",expResult.getTel(), result.getTel());\r\n //etc\r\n assertEquals(\"id différents\",expResult.getIdbur(),result.getIdbur());\r\n try{\r\n result=instance.read(0);\r\n fail(\"exception d'id inconnu non générée\");\r\n }\r\n catch(SQLException e){}\r\n instance.delete(result);\r\n }", "public void testInsertGetUpdateAndDeleteItem() {\n Item actualItem;\n int affected;\n \n checkNotExistingItems();\n \n //inserts first item\n Item item1 = createTestItem1();\n long itemId1 = insertAndVerifyItem(item1);\n \n //compares first item\n actualItem = mDaoToTest.getItem(mContext, itemId1);\n compareItem(item1, actualItem);\n checkNotExistingItems();\n \n //inserts second item\n Item item2 = createTestItem2();\n long itemId2 = insertAndVerifyItem(item2);\n //compares first item\n actualItem = mDaoToTest.getItem(mContext, itemId1);\n compareItem(item1, actualItem);\n //compares second item\n actualItem = mDaoToTest.getItem(mContext, itemId2);\n compareItem(item2, actualItem);\n checkNotExistingItems();\n \n //inserts third item\n Item item3 = createTestItem3();\n long itemId3 = insertAndVerifyItem(item3);\n //compares first item\n actualItem = mDaoToTest.getItem(mContext, itemId1);\n compareItem(item1, actualItem);\n //compares second item\n actualItem = mDaoToTest.getItem(mContext, itemId2);\n compareItem(item2, actualItem);\n //compares third item\n actualItem = mDaoToTest.getItem(mContext, itemId3);\n compareItem(item3, actualItem);\n checkNotExistingItems();\n \n //deletes not existing item\n affected = mDaoToTest.deleteItem(mContext, 234234);\n assertEquals(\"Wrong affected items\", 0, affected);\n affected = mDaoToTest.deleteItem(mContext, -3024);\n assertEquals(\"Wrong affected items\", 0, affected);\n affected = mDaoToTest.deleteItem(mContext, RainbowBaseContentProviderDao.NOT_FOUND);\n assertEquals(\"Wrong affected items\", 0, affected);\n \n //deletes first item\n deleteAndVerifyItem(itemId1);\n actualItem = mDaoToTest.getItem(mContext, itemId1);\n assertNull(\"Item not null\", actualItem);\n //compares second item\n actualItem = mDaoToTest.getItem(mContext, itemId2);\n compareItem(item2, actualItem);\n //compares third item\n actualItem = mDaoToTest.getItem(mContext, itemId3);\n compareItem(item3, actualItem);\n checkNotExistingItems();\n \n //deletes second item\n deleteAndVerifyItem(itemId2);\n actualItem = mDaoToTest.getItem(mContext, itemId1);\n assertNull(\"Item not null\", actualItem);\n actualItem = mDaoToTest.getItem(mContext, itemId2);\n assertNull(\"Item not null\", actualItem);\n //compare third item\n actualItem = mDaoToTest.getItem(mContext, itemId3);\n compareItem(item3, actualItem);\n checkNotExistingItems();\n \n //updates not-existing items\n affected = mDaoToTest.updateItem(mContext, item1);\n assertEquals(\"Wrong affected items\", 0, affected);\n affected = mDaoToTest.updateItem(mContext, item2);\n assertEquals(\"Wrong affected items\", 0, affected);\n \n //re-add first item\n itemId1 = insertAndVerifyItem(item1);\n actualItem = mDaoToTest.getItem(mContext, itemId1);\n compareItem(item1, actualItem);\n \n //update first item\n item1 = createTestItem2();\n item1.setId(itemId1);\n updateAndVerifyItem(item1);\n actualItem = mDaoToTest.getItem(mContext, itemId1);\n compareItem(item1, actualItem);\n actualItem = mDaoToTest.getItem(mContext, itemId3);\n compareItem(item3, actualItem);\n \n //update third item\n item3 = createTestItem1();\n item3.setId(itemId3);\n updateAndVerifyItem(item3);\n actualItem = mDaoToTest.getItem(mContext, itemId3);\n compareItem(item3, actualItem);\n actualItem = mDaoToTest.getItem(mContext, itemId1);\n compareItem(item1, actualItem);\n }", "@Test\n public void test1() {\n CourseAdd Course_Adder = new CourseAdd(MPCS_52011,Amanda,con);\n int updates = Course_Adder.getState().addStudent(Course_Adder,MPCS_52011,Amanda);\n assertEquals(1,updates); // Assert that an update was made\n List<Integer> StudentIDs = new ArrayList<Integer>();\n assertTrue(MPCS_52011.getStudents().contains(Amanda)); // Check if Amanda Present in course\n try{ // Check Database\n Statement stmt=con.createStatement();\n ResultSet rs=stmt.executeQuery(\"select StudentID from Course_Student where course_code = '\" + MPCS_52011.getcode() + \"';\");\n while(rs.next()){\n StudentIDs.add(rs.getInt(1)); // Add each student ID from database\n }\n }catch (Exception e){\n System.out.println(e);\n }\n assertTrue(StudentIDs.contains(Amanda.getID())); // Check if Amanda present in course\n }", "@Test\n public void testGetMovieCount() {\n assertEquals(3, facade.getMovieCount(), \"Expects three rows in the database\");\n }", "@Test\n public void testWhere_withValidQuery() {\n String column0 = \"user_id\";\n String column1 = \"age\";\n int idValue0 = 0;\n int ageValue0 = 23;\n int idValue1 = 1;\n int ageValue1 = 22;\n int idValue2 = 2;\n int ageValue2 = 18;\n\n try {\n String sql = \"CREATE TABLE ModelExtension (\" +\n column0 + \" int, \" +\n column1 + \" int)\";\n PreparedStatement pstmt = Setup.getConnection().prepareStatement(sql);\n pstmt.execute();\n sql = \"INSERT INTO ModelExtension (\" +\n column0 + \", \" +\n column1 + \") VALUES (\" +\n idValue0 + \", \" +\n ageValue0 + \"), (\" +\n idValue1 + \", \" +\n ageValue1 + \"), (\" +\n idValue2 + \", \" +\n ageValue2 + \")\";\n pstmt = Setup.getConnection().prepareStatement(sql);\n pstmt.executeUpdate();\n } catch (SQLException e) {\n e.printStackTrace();\n assertTrue(false);\n }\n\n List<ModelExtension> models = child.findAll().where(column1 + \">20\").execute(ModelExtension.class);\n\n assertEquals(2, models.size());\n assertEquals(idValue0, models.get(0).get(column0));\n assertEquals(ageValue0, models.get(0).get(column1));\n assertEquals(idValue1, models.get(1).get(column0));\n assertEquals(ageValue1, models.get(1).get(column1));\n }", "public void testTwoTable() {\n\n String\tsql\t= \"SELECT t.AD_Table_ID, t.TableName, c.AD_Column_ID, c.ColumnName FROM AD_Table t, AD_Column c WHERE t.AD_Table_ID=c.AD_Table_ID AND t.IsActive='Y'\";\n AccessSqlParser\tfixture\t= new AccessSqlParser(sql);\n\n assertEquals(\"AccessSqlParser[AD_Table=t,AD_Column=c|0]\", fixture.toString());\n }", "@Test\n public void shouldCreatePreviousHospitalization() {\n assertThat(DatabaseHelper.getPreviousHospitalizationDao().queryForAll().size(), is(0));\n\n Case caze = TestEntityCreator.createCase();\n TestEntityCreator.createPreviousHospitalization(caze);\n\n // Assure that the previous hospitalization has been successfully created\n assertThat(DatabaseHelper.getPreviousHospitalizationDao().queryForAll().size(), is(1));\n }", "@Test(timeout = 4000)\n public void test102() throws Throwable {\n Boolean boolean0 = SQLUtil.mutatesDataOrStructure(\"delete\");\n assertTrue(boolean0);\n assertNotNull(boolean0);\n }", "private void testRow( QuerySet aQuerySet, String aPartDescription, int aRemoveQty,\n String aPartSerialOff, String aCondReasonOff, int aWarrentyCoverage,\n String aShedPartKey ) {\n\n Assert.assertEquals( \"part_description\", aPartDescription,\n aQuerySet.getString( \"part_description\" ) );\n Assert.assertEquals( \"removed_quantity\", aRemoveQty, aQuerySet.getInt( \"removed_quantity\" ) );\n\n Assert.assertEquals( \"part_serial_off\", aPartSerialOff,\n aQuerySet.getString( \"part_serial_off\" ) );\n Assert.assertEquals( \"cond_reason_off\", aCondReasonOff,\n aQuerySet.getString( \"cond_reason_off\" ) );\n Assert.assertEquals( \"warranty_coverage\", aWarrentyCoverage,\n aQuerySet.getInt( \"warranty_coverage\" ) );\n Assert.assertEquals( \"sched_part_key\", aShedPartKey,\n aQuerySet.getString( \"sched_part_key\" ) );\n }", "@Test\n public void testGetTabella_String() throws MainException, SQLException {\n System.out.println(\"getTabella\");\n String queryText = \"select * from infermieri\";\n LinkingDb instance = new LinkingDb(new ConfigurazioneTO(\"jdbc:hsqldb:file:database/\",\n \"ADISysData\", \"asl\", \"\"));\n instance.connect();\n ADISysTableModel result = instance.getTabella(queryText);\n assertNotNull(result);\n queryText = \"select * from infermieri where id = -1\";\n result = instance.getTabella(queryText);\n assertTrue(result.getRowCount() == 0);\n }", "@Test\n public void testInsertingValidValues() throws SQLException {\n CommitStructure commit = getSampleCommit();\n MysqlDatabase mysqlDatabase = new MysqlDatabase(connection);\n assertTrue(mysqlDatabase.insertCommitToDatabase(commit));\n }", "@Test\n public void testGetLogbookFaultWithLooseInventory() {\n QuerySet lQuerySet = executeQuery( java.util.UUID.fromString( iUUID_LOOSE_INV ) );\n\n Assert.assertEquals( \"Number of retrieved rows\", 1, lQuerySet.getRowCount() );\n\n lQuerySet.next();\n\n // ensure the value of inv_loose_bool is as expected\n Assert.assertEquals( 1, lQuerySet.getInt( \"inv_loose_bool\" ) );\n\n }", "@Test(timeout = 4000)\n public void test101() throws Throwable {\n Boolean boolean0 = SQLUtil.mutatesStructure(\"executealter table\");\n assertFalse(boolean0);\n }", "@Test\n public void addIngredient_DatabaseUpdates(){\n int returned = testDatabase.addIngredient(ingredient);\n Ingredient retrieved = testDatabase.getIngredient(returned);\n assertEquals(\"addIngredient - Correct Ingredient Name\", \"Flour\", retrieved.getName());\n assertEquals(\"addIngredient - Set Ingredients ID\", returned, retrieved.getKeyID());\n }", "@Test\n\tpublic void testGetNewTableKey() throws SQLException\n\t{\n\t\tassertEquals(1, DatabaseGateway.getNewID());\n\t}", "@Test\n public void testPersonMethods() throws SQLException, InterruptedException {\n\n //Arrange\n PagingService service = new PagingService(connection);\n Person testPerson = new Person(1, \"TEST\", \"test\", \"testEmail\", \"testCountry\", \"testIpAddress\");\n\n //Act\n service.insertPerson(connection, testPerson);\n Person selectPerson = service.selectPerson(connection, 1);\n\n connection.close();\n\n //Assert\n assertThat(selectPerson.getId(), is(1));\n }", "@Test\n public void testGetFinalRow() {\n setUp();\n assertEquals(3, move.getFinalRow());\n tearDown();\n }", "@Test\n public void updateNote_returnRow() throws Exception {\n // Arrange\n Note note = new Note(TestUtil.TEST_NOTE_1);\n LiveDataTestUtil<DataStateStatus<Integer>> liveDataTestUtil = new LiveDataTestUtil<>();\n final int updatedRow = 1;\n Flowable<DataStateStatus<Integer>> returnedData = SingleToFlowable.\n just(DataStateStatus.success(updatedRow, UPDATE_SUCCESS));\n when(localRepository.updateNote(any(Note.class))).thenReturn(returnedData);\n\n // Act\n noteViewModel.setNote(note);\n DataStateStatus<Integer> returnedValue = liveDataTestUtil.getValue(noteViewModel.updateNote());\n\n // Assert\n assertEquals(DataStateStatus.success(updatedRow, UPDATE_SUCCESS), returnedValue);\n }", "@Test\n public void testReq2() throws Exception {\n\n DataSetArgument lArgs = new DataSetArgument();\n lArgs.add( REQ_2, \"aTaskDbId\", \"aTaskId\" );\n\n // execute the query\n DataSet lDs = QueryExecutor.executeQuery( sDatabaseConnectionRule.getConnection(),\n QueryExecutor.getQueryName( getClass() ), lArgs );\n\n MxAssert.assertEquals( \"Number of retrieved rows\", 2, lDs.getRowCount() );\n\n assertRow( lDs, MP1_ACTV );\n assertRow( lDs, MP3_BUILD );\n }", "@Test\r\n public void testSave_again() {\r\n\r\n PaymentDetailPojo expResult = instance.save(paymentDetail1);\r\n assertEquals(expResult, instance.save(paymentDetail1));\r\n }", "@Test\n public void testNext() throws SQLException, InputIterationException {\n // Setup\n ResultSet resultSet = twoLinesResultSetFixture.getTestData();\n ResultSetIterator resultSetIterator = new ResultSetIterator(resultSet);\n\n // Check result\n List<Boolean> expectedNextValues = twoLinesResultSetFixture.getExpectedNextValues();\n List<ImmutableList<String>> expectedRecords = twoLinesResultSetFixture.getExpectedRecords();\n for (int i = 0; i < twoLinesResultSetFixture.numberOfRows(); i++) {\n assertEquals(expectedNextValues.get(i), resultSetIterator.hasNext());\n assertEquals(expectedRecords.get(i), resultSetIterator.next());\n }\n assertEquals(expectedNextValues.get(twoLinesResultSetFixture.numberOfRows()),\n resultSetIterator.hasNext());\n // Next should have been called.\n verify(resultSet, times(3)).next();\n\n }", "public void testInsert2() throws Exception {\n\n DAS das = DAS.FACTORY.createDAS(getConnection());\n Command insert = das.createCommand(\"insert into COMPANY (NAME) values (?)\");\n insert.setParameter(1, \"AAA Rental\");\n insert.execute();\n\n // insert another using same command\n insert.setParameter(1, \"BBB Rental\");\n insert.execute();\n\n // Verify insert\n // Verify\n Command select = das.createCommand(\"Select ID, NAME from COMPANY\");\n DataObject root = select.executeQuery();\n\n assertEquals(5, root.getList(\"COMPANY\").size());\n\n }", "@Test\n\tpublic void testGetTable() throws SQLException\n\t{\n\t\tnew Nail(\"asdf\",5,5,5.0,20);\n\t\tResultSet rs = DatabaseGateway.getTable(\"Nail\");\n\t\tif(rs.next())\n\t\t{\n\t\t\tassertEquals(rs.getInt(\"id\"),1);\n\t\t\tassertEquals(rs.getInt(\"ManufacturerID\"),5);\n\t\t\tassertEquals(rs.getInt(\"Price\"),5);\n\t\t\tassertEquals(rs.getString(\"UPC\"),\"asdf\");\n\t\t\tassertTrue(rs.getDouble(\"Length\") == 5.0);\n\t\t\tassertEquals(rs.getInt(\"NumberInBox\"), 20);\n\t\t}\n\t}", "@Test\n void getByPropertyEqualSuccess() {\n List<User> users = dao.findByPropertyEqual(\"firstName\", \"Mark\");\n assertEquals(1, users.size());\n assertEquals(2, users.get(0).getId());\n }", "public void test_0() throws Exception {\n \r\n String sql = \"select benchmark( 1, sha1( 'test' ) )\";\r\n Statement stmt = conn.createStatement();\r\n\r\n ResultSet rs = stmt.executeQuery(sql);\r\n JdbcUtils.printResultSet(rs);\r\n \r\n stmt.close();\r\n }", "@Test\n public void testSelectAllByEducationIdAndEducationPromo() {\n List<Discipline> listDisciplines = new ArrayList();\n listDisciplines = disciplineDao.selectAllByEducationIdAndEducationPromo(educationBdd);\n boolean result = listDisciplines.size() > 0;\n assertTrue(result);\n }", "@Test\n public void deleteRecipeDirections_ReturnsTrue(){\n int returned = testDatabase.addRecipe(testRecipe);\n assertEquals(\"deleteRecipeDirections - Returns True\",true, testDatabase.deleteRecipeDirections(returned));\n }", "@Test\n public void retriveByIdTest() throws SQLException {\n manager = new TableServizioManager(mockDb);\n Servizio servizio = manager.retriveById(1);\n assertNotNull(servizio,\"Should return true if return Servizio 1\");\n }", "@Test\n public void testQueryMore1() throws Exception {\n testQueryMore(true, true);\n }", "@Test(timeout = 4000)\n public void test137() throws Throwable {\n DefaultDBTable defaultDBTable0 = new DefaultDBTable();\n String[] stringArray0 = new String[0];\n String string0 = SQLUtil.renderQuery(defaultDBTable0, stringArray0, stringArray0);\n assertEquals(\"SELECT * FROM null WHERE \", string0);\n }", "public void testImportNonEmptyDB() throws Exception {\n URL testXMLFileURL = getClass().getResource(\"prox2db-testdb.xml\");\n new ImportProx2XMLApp(testXMLFileURL.getFile());\n\n // check the resulting database\n verifyObjects(new String[]{\"0\", \"1\", \"2\", \"3\", \"4\"});\n verifyLinks(new String[][]{\n {\"0\", \"1\", \"2\"},\n {\"1\", \"0\", \"3\"},\n {\"2\", \"1\", \"3\"},\n {\"3\", \"1\", \"2\"},\n {\"4\", \"3\", \"4\"}});\n verifyAttribute(\"name\", \"O\", \"VARCHAR\", new String[][]{\n {\"3\", \"Matthew Cornell\"},\n {\"2\", \"David Jensen\"},\n {\"4\", \"our place (an already existing obj)\"}});\n verifyAttribute(\"obj-type\", \"O\", \"VARCHAR\", new String[][]{\n {\"3\", \"person\"},\n {\"2\", \"person\"},\n {\"1\", \"research group\"}});\n verifyAttribute(\"office-num\", \"O\", \"INTEGER\", new String[][]{\n {\"3\", \"218\"},\n {\"2\", \"238\"}});\n verifyAttribute(\"double-test\", \"O\", \"DOUBLE\", new String[][]{\n {\"3\", \"3\"},\n {\"2\", \"2.1000000000000001\"}}); // NB: values match those in file and take into account double precision math changes in Monet version 4.3.14\n verifyAttribute(\"date-test\", \"O\", \"DATE\", new String[][]{\n {\"3\", \"2003-08-25\"},\n {\"2\", \"1962-10-22\"}});\n verifyAttribute(\"link-test\", \"L\", \"VARCHAR\", new String[][]{\n {\"3\", \"this looks like an object ref: _[xx],_but it isn_t because it_s inside a link attribute\"}});\n verifyAttribute(\"link-type\", \"L\", \"VARCHAR\", new String[][]{\n {\"2\", \"member\"},\n {\"3\", \"member\"},\n {\"4\", \"lives-at\"}});\n verifyAttribute(\"nickname\", \"O\", \"VARCHAR\", new String[][]{\n {\"1\", \"kdl\"},\n {\"2\", \"dj\"},\n {\"3\", \"me\"},\n {\"4\", \"home\"}});\n verifyAttribute(\"sa.implied\", \"L\", \"INTEGER\", new String[][]{\n {\"0\", \"1\"},\n {\"1\", \"1\"}});\n verifyAttribute(\"sa.undefined\", \"O\", \"INTEGER\", new String[][]{{}});\n\n veryifyCollection(\"test-coll\", new String[]{\"0\"},\n new String[][]{\n {\"0\", \"0\", \"#test\"},\n {\"0\", \"1\", \"kdl\"},\n {\"0\", \"2\", \"dj\"},\n {\"0\", \"3\", \"me\"},\n {\"0\", \"4\", \"home\"}},\n new String[][]{\n {\"0\", \"0\", \"0:implied:kdl->dj\"},\n {\"0\", \"1\", \"1:implied:#test->me\"},\n {\"0\", \"2\", \"2:kdl->me\"},\n {\"0\", \"3\", \"3:kdl->dj\"},\n {\"0\", \"4\", \"4:me->home\"}});\n veryifyCollection(\"qg2test\", new String[]{\"1\", \"2\", \"3\"},\n new String[][]{\n {\"1\", \"1\", \"group\"},\n {\"2\", \"1\", \"group\"},\n {\"3\", \"1\", \"group\"},\n {\"1\", \"2\", \"person\"},\n {\"2\", \"3\", \"person\"},\n {\"3\", \"2\", \"person\"}},\n new String[][]{\n {\"1\", \"0\", \"group-person\"},\n {\"2\", \"2\", \"group-person\"},\n {\"3\", \"3\", \"group-person\"}});\n }", "@Test\n public void addHighScoreTest() {\n database.createHighScoreTable(testTable);\n assertTrue(database.addHighScore(100, testTable));\n database.clearTable(testTable);\n\n }", "@Test\n public void getIngredient_CorrectInformation(){\n int returned = testDatabase.addIngredient(ingredient);\n Ingredient retrieved = testDatabase.getIngredient(returned);\n assertEquals(\"getIngredient - Correct Name\", \"Flour\", retrieved.getName());\n assertEquals(\"getIngredient - Correct ID\", returned, retrieved.getKeyID());\n }", "@Test\r\n\tpublic void randomTest() {\r\n\t\tItem item = new Item();\r\n\t\ttry {\r\n\t\t\tItem tempSet[] = item.getRandom(0);\r\n\t\t\tassertNotSame(tempSet.length, 0);\r\n\t\t} catch (SQLException e) {\r\n\t\t\tfail(\"Failed to execute search of random items: SQLException\");\r\n\t\t}\r\n\t}", "@Test(timeout = 4000)\n public void test111() throws Throwable {\n DefaultDBColumn defaultDBColumn0 = new DefaultDBColumn(\"XSRS9.S\", (DBTable) null, (-2837), \"qfayuHL\");\n DBColumn[] dBColumnArray0 = new DBColumn[6];\n dBColumnArray0[0] = (DBColumn) defaultDBColumn0;\n dBColumnArray0[1] = (DBColumn) defaultDBColumn0;\n dBColumnArray0[2] = (DBColumn) defaultDBColumn0;\n dBColumnArray0[3] = (DBColumn) defaultDBColumn0;\n dBColumnArray0[4] = (DBColumn) defaultDBColumn0;\n dBColumnArray0[5] = (DBColumn) defaultDBColumn0;\n String string0 = SQLUtil.renderColumnNames(dBColumnArray0);\n assertEquals(\"XSRS9.S, XSRS9.S, XSRS9.S, XSRS9.S, XSRS9.S, XSRS9.S\", string0);\n }", "@Test\n void getByPropertyExactSuccess() {\n List<Car> carList = carDao.getByPropertyEqual(\"make\", \"Jeep\");\n assertEquals(1, carList.size());\n }", "private void assertIsolatedSnapshot(String source, String dest) {\n List<Row> expected = spark.sql(String.format(\"SELECT * FROM %s\", source)).collectAsList();\n\n List<SimpleRecord> extraData = Lists.newArrayList(new SimpleRecord(4, \"d\"));\n Dataset<Row> df = spark.createDataFrame(extraData, SimpleRecord.class);\n df.write().format(\"iceberg\").mode(\"append\").saveAsTable(dest);\n\n List<Row> result = spark.sql(String.format(\"SELECT * FROM %s\", source)).collectAsList();\n Assert.assertEquals(\n \"No additional rows should be added to the original table\", expected.size(), result.size());\n\n List<Row> snapshot =\n spark\n .sql(String.format(\"SELECT * FROM %s WHERE id = 4 AND data = 'd'\", dest))\n .collectAsList();\n Assert.assertEquals(\"Added row not found in snapshot\", 1, snapshot.size());\n }", "@Test(timeout = 4000)\n public void test056() throws Throwable {\n boolean boolean0 = SQLUtil.isQuery(\"SELECT * FROM null WHERE delete = 'delete' AND delete = 'delete' AND delete = 'delete' AND delete = 'delete' AND delete = 'delete' AND delete = 'delete' AND delete = 'delete'\");\n assertTrue(boolean0);\n }", "@Test\n\tvoid existDataInDBTest2() {\n\t\tparkName = \"Tel-Aviv Park\";\n\t\tdate = new Date(120, 5, 1);\n\t\texpected = \"11 22 33 44 55 66 17 23 5 8 4 2 3 2 54 34 2 32 1 61 1 75 32 46 12 67 23 82 12 56 32 36 12 85 232 7\";\n\t\tresult = ReportsController.getReport(date, reportType, parkName);\n\n\t\tassertEquals(expected, result);\n\n\t}", "private void testRow( QuerySet aQuerySet, String aZone ) {\n Assert.assertEquals( \"zone\", aZone, aQuerySet.getString( \"zone\" ) );\n }", "@Test\n public void testEPPNThenTwo() throws Exception {\n UserMultiID umk = createUMK(getRandomString());\n UserMultiID eppnKey = new UserMultiID(umk.getEppn());\n UserMultiID umk2 = new UserMultiID(umk.getEppn(), umk.getEptid());\n User user = testOneThenTwoIds(eppnKey, umk2);\n user = getUserStore().get(user.getIdentifier());\n assert user.getePPN().equals(umk2.getEppn());\n assert user.getePTID().equals(umk2.getEptid());\n\n }", "@Test\n public void testGetTableId() {\n assertEquals(\"getTableID failed\", 3, o1.getTableId());\n }", "@Test(timeout = 4000)\n public void test006() throws Throwable {\n SimpleResultSet simpleResultSet0 = new SimpleResultSet();\n Statement statement0 = DBUtil.getStatement(simpleResultSet0);\n assertNull(statement0);\n }" ]
[ "0.6700122", "0.65891844", "0.63661575", "0.6315008", "0.63084865", "0.63046056", "0.6299103", "0.629556", "0.62817025", "0.6253097", "0.61995065", "0.6192345", "0.61797905", "0.6168276", "0.61362684", "0.6135324", "0.61092937", "0.6101182", "0.6097147", "0.6081702", "0.60772014", "0.60762066", "0.6068743", "0.6054739", "0.60525006", "0.6051129", "0.6042595", "0.6028245", "0.60249037", "0.60172296", "0.60062873", "0.600055", "0.5994456", "0.5986969", "0.5986702", "0.59841526", "0.5941918", "0.59413785", "0.5940038", "0.5938867", "0.59361887", "0.593577", "0.59304255", "0.59209126", "0.59134686", "0.59096223", "0.58959806", "0.5893255", "0.58919454", "0.5882364", "0.5878109", "0.58605874", "0.5857448", "0.5853574", "0.58531517", "0.5851034", "0.5848944", "0.5847066", "0.5846109", "0.58446795", "0.58444434", "0.5840117", "0.58299756", "0.5826318", "0.5819146", "0.5811112", "0.5805955", "0.58033097", "0.5798326", "0.5786875", "0.57810616", "0.5778722", "0.5773204", "0.5771769", "0.5768737", "0.57671076", "0.57609653", "0.5756077", "0.575518", "0.5754842", "0.57459784", "0.57454294", "0.5741637", "0.57387334", "0.57341856", "0.57289916", "0.5727366", "0.5725901", "0.57234454", "0.5723274", "0.57228124", "0.57193905", "0.5718075", "0.5718007", "0.57178086", "0.57132834", "0.5713126", "0.5711195", "0.57106566", "0.57096124", "0.5706777" ]
0.0
-1
Represents a productlike (either a product or a tool) resource in the repository. This interface allows read access to fields which are specific to productlike things.
public interface ProductRelatedResource extends RepositoryResource { /** * Gets the productId for the resource. * * @return the product id, or null if it has not been set */ public String getProductId(); /** * Gets the edition of the product, if applicable. * * @return the edition of the product, or null if it is not set */ public String getProductEdition(); /** * Gets the install type of the product (e.g. "Archive") * * @return the install type, or null if it is not set */ public String getProductInstallType(); /** * Gets the version of the product * * @return the product version, or null if it is not set */ public String getProductVersion(); /** * Gets the features included in this product * * @return the features provided by this product, or null if not set */ public Collection<String> getProvideFeature(); /** * Gets the features that this product depends on * * @return the features required by this product, or null if not set */ public Collection<String> getRequireFeature(); /** * Gets the collection of OSGi requirements this product has * * @return the collection of OSGi requirements applicable to this product, or null if not set */ public Collection<Requirement> getGenericRequirements(); /** * Gets the version information for the Java packaged with this product * * @return The Java version information, or null if this product is not packaged with Java */ public String getPackagedJava(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface Product {\n /**\n * Gets the id property: Fully qualified resource Id for the resource.\n *\n * @return the id value.\n */\n String id();\n\n /**\n * Gets the name property: The name of the resource.\n *\n * @return the name value.\n */\n String name();\n\n /**\n * Gets the type property: The type of the resource.\n *\n * @return the type value.\n */\n String type();\n\n /**\n * Gets the etag property: The entity tag used for optimistic concurrency when modifying the resource.\n *\n * @return the etag value.\n */\n String etag();\n\n /**\n * Gets the displayName property: The display name of the product.\n *\n * @return the displayName value.\n */\n String displayName();\n\n /**\n * Gets the description property: The description of the product.\n *\n * @return the description value.\n */\n String description();\n\n /**\n * Gets the publisherDisplayName property: The user-friendly name of the product publisher.\n *\n * @return the publisherDisplayName value.\n */\n String publisherDisplayName();\n\n /**\n * Gets the publisherIdentifier property: Publisher identifier.\n *\n * @return the publisherIdentifier value.\n */\n String publisherIdentifier();\n\n /**\n * Gets the offer property: The offer representing the product.\n *\n * @return the offer value.\n */\n String offer();\n\n /**\n * Gets the offerVersion property: The version of the product offer.\n *\n * @return the offerVersion value.\n */\n String offerVersion();\n\n /**\n * Gets the sku property: The product SKU.\n *\n * @return the sku value.\n */\n String sku();\n\n /**\n * Gets the billingPartNumber property: The part number used for billing purposes.\n *\n * @return the billingPartNumber value.\n */\n String billingPartNumber();\n\n /**\n * Gets the vmExtensionType property: The type of the Virtual Machine Extension.\n *\n * @return the vmExtensionType value.\n */\n String vmExtensionType();\n\n /**\n * Gets the galleryItemIdentity property: The identifier of the gallery item corresponding to the product.\n *\n * @return the galleryItemIdentity value.\n */\n String galleryItemIdentity();\n\n /**\n * Gets the iconUris property: Additional links available for this product.\n *\n * @return the iconUris value.\n */\n IconUris iconUris();\n\n /**\n * Gets the links property: Additional links available for this product.\n *\n * @return the links value.\n */\n List<ProductLink> links();\n\n /**\n * Gets the legalTerms property: The legal terms.\n *\n * @return the legalTerms value.\n */\n String legalTerms();\n\n /**\n * Gets the privacyPolicy property: The privacy policy.\n *\n * @return the privacyPolicy value.\n */\n String privacyPolicy();\n\n /**\n * Gets the payloadLength property: The length of product content.\n *\n * @return the payloadLength value.\n */\n Long payloadLength();\n\n /**\n * Gets the productKind property: The kind of the product (virtualMachine or virtualMachineExtension).\n *\n * @return the productKind value.\n */\n String productKind();\n\n /**\n * Gets the productProperties property: Additional properties for the product.\n *\n * @return the productProperties value.\n */\n ProductProperties productProperties();\n\n /**\n * Gets the compatibility property: Product compatibility with current device.\n *\n * @return the compatibility value.\n */\n Compatibility compatibility();\n\n /**\n * Gets the inner com.azure.resourcemanager.azurestack.fluent.models.ProductInner object.\n *\n * @return the inner object.\n */\n ProductInner innerModel();\n}", "Object getProduct();", "public interface ProductAPI {\n\tProduct create(final String key);\n\n\tCollection<Product> listAll();\n\n\tProduct getByKey(final String productId);\n}", "public T getProduct() {\n return this.product;\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public entity.APDProduct getProduct();", "@Override\n\tpublic Product getProduct() {\n\t\treturn product;\n\t}", "@NotNull\n @Valid\n @JsonProperty(\"product\")\n public ProductReference getProduct();", "public ProductModel getProduct()\n\t{\n\t\treturn product;\n\t}", "public Product getProduct() {\n\t\treturn product;\n\t}", "private Product readProduct(JsonReader reader) throws IOException {\n\t\tint id = 0;\n\t\tString name = null;\n\t\tfloat price = (float) 0.0;\n\n\t\treader.beginObject();\n\t\twhile(reader.hasNext()){\n\t\t\tString item = reader.nextName();\n\t\t\tif(item.equals(\"id\")){\n\t\t\t\tid = reader.nextInt();\n\t\t\t}else if(item.equals(\"name\")){\n\t\t\t\tname = reader.nextString();\n\t\t\t}else if(item.equals(\"price\")){\n\t\t\t\tprice = (float) reader.nextDouble();\n\t\t\t}\n\t\t}\n\t\treader.endObject();\n\n\t\treturn new Product(id, name, price);\n\t}", "public interface ProductInfoRepository {\n}", "public org.mrk.grpc.catalog.ProductOrBuilder getProductOrBuilder() {\n return getProduct();\n }", "Product getProductById(Serializable productId);", "public ProductType getProduct() {\n return product;\n }", "public String getProduct() {\n return this.product;\n }", "public String getProduct() {\r\n return this.product;\r\n }", "x0401.oecdStandardAuditFileTaxPT1.ProductDocument.Product getProduct();", "public String getProduct()\n {\n return product;\n }", "public String getProduct() {\n return product;\n }", "public String getProduct() {\n return product;\n }", "public ProductResource() {\n }", "@Override\n public Productor getProductor() {\n return new ProductorImp1();\n }", "ProductProperties productProperties();", "Product getProductById(Integer productId);", "Product getProductById(Integer productId);", "public interface ReferentialItem extends Persistable<Long>, SecuredObject {\n\n boolean isEnabled();\n void setEnabled(boolean enabled);\n int getOrder();\n void setOrder(int order);\n String getDescription();\n void setDescription(String description);\n String getName();\n void setName(String name);\n String getShortName();\n void setShortName(String shortName);\n\n}", "Product getProductById(Integer productID);", "public String getProductReference() {\n return productReference;\n }", "@Override\n\tpublic Product getProduct() {\n\t\treturn productDao.getProduct();\n\t}", "CafeProduct getProductById(final Integer productId);", "public interface Product {\n\n void use();\n}", "Product getPProducts();", "public interface IToolPart extends IMaterialItem {\n /**\n * Gets the stat type for the given item, limits which materials are supported\n * @return Stat type for the given item\n */\n MaterialStatsId getStatType();\n}", "public interface RfpHotel extends RfpCompany {\n\n EntityImage getImage();\n\n int getRating();\n\n HotelChain getChain();\n\n List<String> getAmenities();\n\n HotelCategory getCategory();\n\n String getBrandChainName();\n\n String getMasterChainName();\n\n String getMasterChainId();\n}", "public interface Product {\n String getName();\n void produce();\n}", "public interface ProductService {\n Product save(Product unsavedProduct);\n void remove(long id);\n Product getOne(long id);\n Page<Product> list(long productTemplateId, String name, int status, int page, int size);\n Page<Product> list(String username, long productTemplateId, String name, int status, int page, int size);\n List<Product> list(Collection<Long> productIds);\n List<Product> list(long cityId, int status);\n Product review(User user, Product fromProduct, Product toProduct);\n boolean hasChildProducts(Product product);\n}", "@Override\n\tpublic Product getModel() {\n\t\treturn product;\n\t}", "Product getProductByID(Long id);", "public String getProductId() ;", "public java.lang.String getProduct() {\n return product;\n }", "protected final Product getProduct() {\n Product.Builder product = new Product.Builder()\n .implementationTitle(getClass())\n .implementationVersion(getClass());\n Optional.ofNullable(getClass().getPackage())\n .flatMap(p -> Optional.ofNullable(p.getSpecificationVersion()))\n .map(specVersion -> \"(specification \" + specVersion + \")\")\n .ifPresent(product::comment);\n return product.build();\n }", "public String getProductOwner();", "TradingProduct getTradingProduct();", "public interface Product {\n\n //Define Variables data Type\n\n\n\n //methods Get and set information\n\n //item number, the name of the product, the number of units in stock, and the price of each unit.\n\n void SetItemNumber(int ItemNumber);\n int getItemNumber();\n\n void SetPrice(Double Price);\n Double getPrice();\n\n void SetName(String ProductName);\n String getName();\n\n double GetUnitsInStock();\n\n}", "public ProductType(String name, String spacecraft, String sensor,\n String description, String level)\n {\n this.name = name;\n this.spacecraft = spacecraft.toUpperCase();\n this.sensor = sensor;\n this.description = description;\n this.level = level;\n }", "public String product() {\n return this.product;\n }", "public org.mrk.grpc.catalog.Product getProduct() {\n return product_ == null ? org.mrk.grpc.catalog.Product.getDefaultInstance() : product_;\n }", "protected abstract Product modifyProduct(ProductApi api,\n Product modifyReq) throws RestApiException;", "@Override\r\n\tpublic Product retrieveResult() {\n\t\treturn product;\r\n\t}", "Product getProductByName(String name) throws EntityNotFoundException;", "public interface Product extends Cloneable {\n\n void use(String s);\n Product createClone();\n}", "public interface IResource {\n\t// TODO: Have priorities for resources either here or implemented in IResourceView\n\n\n\tpublic String getName();\n\t\n\tpublic IUniformLocation getLocation(); // public IStorageLocation getLocation() ?\n\t\n\tpublic IResourceType getType();\n}", "Product getProductDetails(int idproduct) throws DataBaseException;", "public interface IPropertyReadableRepository {\n\n List<IPropertyReadable> getAll();\n\n IPropertyReadable getForId(Long id);\n}", "public interface DppBaseResource {\n /**\n * Gets the id property: Resource Id represents the complete path to the resource.\n *\n * @return the id value.\n */\n String id();\n\n /**\n * Gets the name property: Resource name associated with the resource.\n *\n * @return the name value.\n */\n String name();\n\n /**\n * Gets the type property: Resource type represents the complete path of the form\n * Namespace/ResourceType/ResourceType/...\n *\n * @return the type value.\n */\n String type();\n\n /**\n * Gets the inner com.azure.resourcemanager.dataprotection.fluent.models.DppBaseResourceInner object.\n *\n * @return the inner object.\n */\n DppBaseResourceInner innerModel();\n}", "public interface Product {\n\n void productSpec();\n}", "public String getProductDescription() {\r\n/* 221 */ return this._productDescription;\r\n/* */ }", "String getProduct();", "public String getProductId();", "RecipeInformationObject getRecipeInformation(int recipeId) throws EntityException, EntityNotFoundException;", "public byte getIProduct() {\r\n\t\treturn iProduct;\r\n\t}", "public interface ProductRepo {\n Product createProduct(Product product);\n Optional<Product> getProduct(String pid);\n}", "ResourceSkuInner innerModel();", "private Product getProduct(ProductVO product) {\n return Product.builder()\n .id(product.getId())\n .description(product.getDescription())\n .name(product.getName())\n .price(product.getPrice())\n .stock(product.getStock())\n .build();\n }", "public String getDatabaseProduct();", "public Product Product() {\n return null;\n }", "public Product getProductFromId(Integer prodId) throws BackendException;", "Product findProductById(Long id);", "java.lang.String getProductDescription();", "@ManyToOne(fetch=FetchType.LAZY)\r\n\t@JoinColumn(name=\"PID\")\r\n\tpublic Product getProduct() {\r\n\t\treturn this.product;\r\n\t}", "public PremierAddOnPatchResourceProperties withProduct(String product) {\n this.product = product;\n return this;\n }", "public Product createProduct() {\n\t\tProduct prod = new Product();\n\t\tprod.setProdId(this.getProdId());\n\t\tprod.setProductName(this.getProductName());\n\t\tprod.setPrice(this.getPrice());\n\t\tprod.setStock(this.getStock());\n\t\tprod.setDescription(this.getDescription());\n\t\tprod.setImage(this.getImage());\n\t\tprod.setSellerId(this.getSellerId());\n\t\tprod.setCategory(this.getCategory());\n\t\tprod.setSubcategory(this.getSubcategory());\n\t\tprod.setProductrating(this.getProductrating());\n\t\treturn prod;\n\t}", "private void WriteProduct(JsonWriter writer, Product p) throws IOException {\n\t\twriter.beginObject();\n\n\t\twriter.name(\"id\").value(p.getId());\n\t\twriter.name(\"name\").value(p.getName());\n\t\twriter.name(\"price\").value(p.getPrice());\n\n\t\twriter.endObject();\n\t}", "public interface ResourceSku {\n /**\n * Gets the resourceType property: The type of resource the SKU applies to.\n *\n * @return the resourceType value.\n */\n String resourceType();\n\n /**\n * Gets the name property: The name of SKU.\n *\n * @return the name value.\n */\n String name();\n\n /**\n * Gets the tier property: Specifies the tier of DMS in a scale set.\n *\n * @return the tier value.\n */\n String tier();\n\n /**\n * Gets the size property: The Size of the SKU.\n *\n * @return the size value.\n */\n String size();\n\n /**\n * Gets the family property: The Family of this particular SKU.\n *\n * @return the family value.\n */\n String family();\n\n /**\n * Gets the kind property: The Kind of resources that are supported in this SKU.\n *\n * @return the kind value.\n */\n String kind();\n\n /**\n * Gets the capacity property: Not used.\n *\n * @return the capacity value.\n */\n ResourceSkuCapacity capacity();\n\n /**\n * Gets the locations property: The set of locations that the SKU is available.\n *\n * @return the locations value.\n */\n List<String> locations();\n\n /**\n * Gets the apiVersions property: The api versions that support this SKU.\n *\n * @return the apiVersions value.\n */\n List<String> apiVersions();\n\n /**\n * Gets the costs property: Metadata for retrieving price info.\n *\n * @return the costs value.\n */\n List<ResourceSkuCosts> costs();\n\n /**\n * Gets the capabilities property: A name value pair to describe the capability.\n *\n * @return the capabilities value.\n */\n List<ResourceSkuCapabilities> capabilities();\n\n /**\n * Gets the restrictions property: The restrictions because of which SKU cannot be used. This is empty if there are\n * no restrictions.\n *\n * @return the restrictions value.\n */\n List<ResourceSkuRestrictions> restrictions();\n\n /**\n * Gets the inner com.azure.resourcemanager.datamigration.fluent.models.ResourceSkuInner object.\n *\n * @return the inner object.\n */\n ResourceSkuInner innerModel();\n}", "@GetMapping(VERSION + \"/product/{productId}\")\n public ResponseEntity<?> retrieveProductDetails(@PathVariable(\"productId\") String productId) {\n ProductDto productDto = productCompositeService.fetchProductById(productId);\n return ResponseEntity.ok().body(productDto);\n }", "public Product getProductInventory() {\n return productInventory;\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public entity.APDProductLine getProductLine();", "public interface ShopItem\n{\n\tDrawable getIcon();\n\n\tString getDisplayName();\n\n\tString getDescription();\n\n\tString getDataName();\n\n\tBigDecimal getCost(int count);\n\n\tvoid init(GameResources resources, AtomicInteger progress);\n\n\tint getProgressCount();\n}", "protected abstract T getResource(ItemVariant currentVariant);", "@JsonGetter(\"product_details\")\n public ProductData getProductDetails ( ) { \n return this.productDetails;\n }", "public Product get(String id);", "public interface Offer {\r\n\t/**\r\n\t * information about provider \r\n\t * @return\r\n\t */\r\n\tOperationUser getOfferProvider();\r\n\r\n\t/**\r\n\t * short description of offer\r\n\t * @return\r\n\t */\r\n\tString getOfferSummary();\r\n}", "public interface ProductService {\n public List<Product> findAllProducts();\n public Product findProductsByProductId(int id);\n public List<Product> findProductsLike(String productName);\n public int findProductsLikeCount(String productName);\n public List<Product> findProductByKind(int productKind);\n\n}", "public interface ItemDescriptor {\n\n /**\n * Get the ID of the item\n *\n * @return item id\n */\n public int getID();\n\n /**\n * Get the name of the item\n *\n * @return item name\n */\n public String getName();\n\n /**\n * Get the type descriptor\n *\n * @return item type\n */\n public ItemType getType();\n\n}", "@JsonProperty(\"ProductDescription\")\n public String getProductDescription() {\n return productDescription;\n }", "public interface DeviceResource extends GpoResource, GpiResource {\n\n public String getId();\n}", "@Cache(usage = NONSTRICT_READ_WRITE)\n @JoinColumn(name = \"product_id\", nullable = false)\n @ManyToOne(cascade = PERSIST, fetch = LAZY)\n @NotFound(action= NotFoundAction.IGNORE)\n public TdProduct getProduct() {\n return product;\n }", "@Override\n\tprotected Class<ResourcesRelatedDetail> getEntity() {\n\t\treturn ResourcesRelatedDetail.class;\n\t}", "ProductPlan getProductPlan();", "public interface Item {\n\n String getName();\n\n String getDescription();\n\n int getSkill(SkillType skillType);\n\n String getSkillDescr();\n}", "public interface ProductService {\n\n\n ProductExecution getList(Product condition, int pageNum, int pageSize);\n\n /**\n * 添加商品信息以及图片处理\n *\n * @param product 商品对象\n * @param thumbnail 缩略图\n * @param productImgList 商品子图\n * @return\n * @throws ProductOperationException\n */\n ProductExecution add(Product product, ImageHolder thumbnail, List<ImageHolder> productImgList);\n\n /**\n * 根据商品id查询商品\n * @param id\n * @return\n */\n Product getById(long id);\n\n /**\n * 修改商品信息以及图片处理\n *\n * @param product 商品对象\n * @param thumbnail 缩略图\n * @param productImgList 商品子图\n * @return\n * @throws ProductOperationException\n */\n ProductExecution modify(Product product, ImageHolder thumbnail, List<ImageHolder> productImgList);\n\n boolean setProductCategoryToNull(long productCategoryId);\n\n}", "public interface ProductService {\n\t\n\tpublic List<Product> getAllProducts();\n\t\n\tpublic Product getProductById(String id);\n\t\n\tpublic Product addProduct(Product product);\n\t\n\tpublic Product updateProduct(Product product);\n\t\n\tpublic void deleteProductById(String productId);\n\t\n}", "Product getProductByProductName(String productName);", "DppBaseResourceInner innerModel();", "public interface IProduct {\n\n /**\n * 热搜词\n */\n void getHotWords(String tag);\n\n /**\n * 获取搜索结果\n */\n void getSearchResult(String condition,String pageNo,String pageSize,String sortField,String order, String tag);\n\n /**\n * 获取homefragment页面数据\n */\n void getHomeData(String tag);\n\n /**\n * 获取homefragment页面的热门推荐数据\n */\n void getHomeRecData(String page_no,String pageSize, String tag);\n\n /**\n * 获取商品分类数据(分类页面)\n */\n void getProductCategory(String tag);\n\n /**\n * 商品筛选项数据(分类页面)\n */\n void getCategoryFilter(String categoryId, String tag);\n\n /**\n * 商品分类搜索结果数据(分类页面)\n */\n void getCategorySearchData(String gcIds, String sort, String page_no, String tag);\n\n /**\n * 商品详情接口 (商品详情页)\n */\n void getProductDetailData(String skuId, String tag);\n\n /**\n * 评价列表接口(商品详情)\n */\n void evaluateListData(String skuId, String pageNo,String pageSize, String tag);\n\n /**\n * 评价商品列表接口(商品详情页)\n */\n void getProductEvaluateListData(String goodsId, String pageNo, String tag);\n\n /**\n * 商品评价各项指标接口(商品详情页)\n */\n void getProductEvaluateScoreData(String goodsId, String tag);\n\n /**\n * 商品详情 热门推荐商品接口(商品详情页)\n */\n void getProductDetailHotData(String product_id, String tag);\n\n /**\n * 收藏商品(商品详情页)\n */\n void collecteGoods(String skuId, String tag);\n\n /**\n * 收藏商品(商品详情页)\n */\n void collecteProduct(String product_id, String tag);\n\n /**\n * 取消收藏商品(商品详情页)\n */\n void cancelCollecteProduct(String product_id, String tag);\n\n /**\n * 获取收藏夹数据\n */\n void getCollectionList(String page_no, String tag);\n\n /**\n * 商品评价接口\n */\n void setEvaluate(String params,String tag);\n\n}", "public interface ProductRepository extends MongoRepository<Offer, Integer> {\n}", "public Product getProductFromName(String prodName) throws BackendException;", "public static com.glority.qualityserver.model.Product convertToSeverModel(\n com.glority.quality.model.ProductInfo productInfo) {\n com.glority.qualityserver.model.Product sProduct = new com.glority.qualityserver.model.Product();\n\n if (productInfo != null) {\n sProduct.setName(productInfo.getProductName());\n sProduct.setDisplayName(productInfo.getProductName());\n sProduct.setGroup(productInfo.getBusinessUnit());\n // sProduct.setSvnUrl(productInfo.getSvnUrl());\n // sProduct.setSvnRevision(productInfo.getSvnRevision());\n }\n\n return sProduct;\n }", "Product findById(long id);", "public short getIdProduct() {\r\n\t\treturn idProduct;\r\n\t}" ]
[ "0.6749092", "0.6001554", "0.5970496", "0.58631176", "0.5809381", "0.580358", "0.577071", "0.5677749", "0.5669477", "0.5668286", "0.5663909", "0.56565434", "0.56304777", "0.561296", "0.5598825", "0.55760115", "0.5562615", "0.5516671", "0.5510978", "0.5510978", "0.5503266", "0.5496836", "0.5495969", "0.54911697", "0.54911697", "0.54795104", "0.5419272", "0.5414432", "0.5373853", "0.5361831", "0.5361082", "0.53456604", "0.5335055", "0.5326718", "0.53217524", "0.5311935", "0.5297414", "0.52631426", "0.52538127", "0.52458525", "0.52414066", "0.5231054", "0.52188045", "0.521811", "0.5212955", "0.5209566", "0.52095145", "0.51996166", "0.51957023", "0.51940495", "0.51839745", "0.5179677", "0.5177435", "0.5165066", "0.5158376", "0.5155725", "0.5150325", "0.5147181", "0.51407343", "0.5135077", "0.5132407", "0.51195806", "0.51182187", "0.5108164", "0.50994766", "0.50984067", "0.50956196", "0.5095451", "0.5094227", "0.50804883", "0.50599265", "0.50575423", "0.5050918", "0.5049987", "0.5043345", "0.50366503", "0.503273", "0.5028358", "0.502561", "0.50125194", "0.5007789", "0.5002887", "0.5002541", "0.49949783", "0.49903625", "0.49873844", "0.49844208", "0.4981186", "0.49724862", "0.49661237", "0.49660495", "0.49607605", "0.49600756", "0.49570698", "0.49556994", "0.49553204", "0.49543452", "0.49523282", "0.49503323", "0.49438518" ]
0.7174686
0