query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
sequencelengths
19
20
metadata
dict
Sets the new enum lists for this schema. The sets in the provided maps are converted into lists, and sorted according to their natural ordering.
@SuppressWarnings({"rawtypes", "unchecked"}) public void setEnumsSetComparable(Map<String, Set<Comparable>> enums) { Preconditions.checkNotNull(enums); areEnumsUpdated = true; Map<String, List<Object>> enumsList = Maps.newHashMap(); //Check that all the given keys are valid Preconditions.checkArgument( configurationSchema.getKeyDescriptor().getFields().getFields().containsAll(enums.keySet()), "The given map doesn't contain valid keys. Valid keys are %s and the provided keys are %s", configurationSchema.getKeyDescriptor().getFields().getFields(), enums.keySet()); //Todo check the type of the objects, for now just set them on the enum. for (Map.Entry<String, Set<Comparable>> entry : enums.entrySet()) { String name = entry.getKey(); Set<Comparable> vals = entry.getValue(); Preconditions.checkNotNull(name); Preconditions.checkNotNull(vals); for (Object value : entry.getValue()) { Preconditions.checkNotNull(value); } List<Comparable> valsListComparable = Lists.newArrayList(vals); Collections.sort(valsListComparable); List<Object> valsList = (List)valsListComparable; enumsList.put(name, valsList); } currentEnumVals = Maps.newHashMap(enumsList); }
[ "public void setEnumsList(Map<String, List<Object>> enums)\n {\n Preconditions.checkNotNull(enums);\n areEnumsUpdated = true;\n\n //Check that all the given keys are valid\n Preconditions.checkArgument(\n configurationSchema.getKeyDescriptor().getFields().getFields().containsAll(enums.keySet()),\n \"The given map doesn't contain valid keys. Valid keys are %s and the provided keys are %s\",\n configurationSchema.getKeyDescriptor().getFields().getFields(),\n enums.keySet());\n\n //Todo check the type of the objects, for now just set them on the enum.\n for (Map.Entry<String, List<Object>> entry : enums.entrySet()) {\n Preconditions.checkNotNull(entry.getKey());\n Preconditions.checkNotNull(entry.getValue());\n }\n\n Map<String, List<Object>> tempEnums = Maps.newHashMap();\n\n for (Map.Entry<String, List<Object>> entry : enums.entrySet()) {\n String key = entry.getKey();\n List<?> enumValues = entry.getValue();\n List<Object> tempEnumValues = Lists.newArrayList();\n\n for (Object enumValue : enumValues) {\n tempEnumValues.add(enumValue);\n }\n\n tempEnums.put(key, tempEnumValues);\n }\n\n currentEnumVals = tempEnums;\n }", "public void setEnumsSet(Map<String, Set<Object>> enums)\n {\n Preconditions.checkNotNull(enums);\n areEnumsUpdated = true;\n\n Map<String, List<Object>> enumsList = Maps.newHashMap();\n\n //Check that all the given keys are valid\n Preconditions.checkArgument(\n configurationSchema.getKeyDescriptor().getFields().getFields().containsAll(enums.keySet()),\n \"The given map doesn't contain valid keys. Valid keys are %s and the provided keys are %s\",\n configurationSchema.getKeyDescriptor().getFields().getFields(),\n enums.keySet());\n\n //Todo check the type of the objects, for now just set them on the enum.\n\n for (Map.Entry<String, Set<Object>> entry : enums.entrySet()) {\n String name = entry.getKey();\n Set<Object> vals = entry.getValue();\n\n Preconditions.checkNotNull(name);\n Preconditions.checkNotNull(vals);\n\n for (Object value : entry.getValue()) {\n Preconditions.checkNotNull(value);\n }\n\n List<Object> valsList = Lists.newArrayList(vals);\n enumsList.put(name, valsList);\n }\n\n currentEnumVals = Maps.newHashMap(enumsList);\n }", "protected void setLists() {\n\t\t\n\t\t// first clear incase they were previously set\n\t\tif(typeList!= null) typeList.clear();\n\t\tif(systemList != null) systemList.clear();\n\t\t\n\t\t//populate the lists\n\t\t\n\t\ttypeList = new TreeSet<Object>(theSnapshot.getData().getDataTable().getUniquePrimaryKeyValues(\"type\"));\n\t\tsystemList = new TreeSet<Object>(theSnapshot.getData().getDataTable().getUniquePrimaryKeyValues(\"system\") );\n\t\t// make user select + hit button\n\t\ttypesSelected = false;\n\t\tsystemsSelected = false;\n\t\t\n }", "public static <E extends Ordinal> void setOrdinals(List<E> list) {\r\n\t\tif(list != null && list.stream().allMatch(o -> o.getOrdinal() == null)) {\r\n\t\t\tfor(int i=0; i<list.size(); i++) {\r\n\t\t\t\tlist.get(i).setOrdinal(i);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void setArrayList(LinkedHashMap<String, ArrayList<Expense>> map) {\n\n ArrayList<Item> itemsList = new ArrayList<>();\n Set<String> keySet = map.keySet();\n\n ArrayList<String> sortedKeys = new ArrayList<>(keySet);\n\n for(String s: sortedKeys){\n\n HeaderItem headerItem = new HeaderItem(s);\n itemsList.add(headerItem);\n ArrayList<Expense> expenseItems = map.get(s);\n itemsList.addAll(expenseItems);\n }\n\n items.addAll(itemsList);\n customAdapter.notifyDataSetChanged();\n }", "public static <E extends Enum<E>> Set<E> parsePropertyListAsEnumSet(String properties,\n Map<String, ? extends Vocab> vocabs, Class<E> clazz)\n {\n return Sets.newEnumSet(Property.filter(VocabUtil.parsePropertyList(properties, vocabs,\n QuietReport.INSTANCE, EPUBLocation.create(\"\")), clazz), clazz);\n }", "public static Expression createEnumsCreateMapFromValuesMethodCall(Expression values) {\n\n MethodDescriptor createMapMethodDescriptor =\n TypeDescriptors.get()\n .javaemulInternalEnums\n .getMethodDescriptorByName(\"createMapFromValues\");\n\n // createMapFromValues is parameterized by T extends Enum, so specialize the method to the\n // right type.\n TypeVariable enumType = createMapMethodDescriptor.getTypeParameterTypeDescriptors().get(0);\n return MethodCall.Builder.from(\n createMapMethodDescriptor.specializeTypeVariables(\n ImmutableMap.of(\n enumType,\n ((ArrayTypeDescriptor) values.getTypeDescriptor())\n .getComponentTypeDescriptor())))\n .setArguments(values)\n .build();\n }", "public void map(HashMap<String, Object> map) {\n String indexString = (String) map.get(\"serviceIndexes\");\n String[] arr = indexString.split(\",\");\n // Fill indexes from map's return value.\n for(int i = 0; i < arr.length; i++) {\n this.indexes.add(new Integer(arr[i]));\n }\n // Retrieve services from enum by index\n for(int i = 0; i < indexes.size(); i++) {\n String s = ServiceTypes.values()[indexes.get(i)].getKey();\n this.services.add(s);\n }\n }", "public void testListEnum() {\n \t\tList<RadioBand> enumValueList = Arrays.asList(RadioBand.values());\n\n\t\tList<RadioBand> enumTestList = new ArrayList<RadioBand>();\n\t\tenumTestList.add(RadioBand.AM);\n\t\tenumTestList.add(RadioBand.FM);\n\t\tenumTestList.add(RadioBand.XM);\n\n\t\tassertTrue(\"Enum value list does not match enum class list\", \n\t\t\t\tenumValueList.containsAll(enumTestList) && enumTestList.containsAll(enumValueList));\n\t}", "public void testListEnum() {\n \t\tList<CompassDirection> enumValueList = Arrays.asList(CompassDirection.values());\n\n\t\tList<CompassDirection> enumTestList = new ArrayList<CompassDirection>();\n\t\tenumTestList.add(CompassDirection.NORTH);\n\t\tenumTestList.add(CompassDirection.NORTHWEST);\n\t\tenumTestList.add(CompassDirection.WEST);\n\t\tenumTestList.add(CompassDirection.SOUTHWEST);\n\t\tenumTestList.add(CompassDirection.SOUTH);\n\t\tenumTestList.add(CompassDirection.SOUTHEAST);\t\t\n\t\tenumTestList.add(CompassDirection.EAST);\n\t\tenumTestList.add(CompassDirection.NORTHEAST);\t\n\n\t\tassertTrue(\"Enum value list does not match enum class list\", \n\t\t\t\tenumValueList.containsAll(enumTestList) && enumTestList.containsAll(enumValueList));\n\t}", "void setFlags(EnumSet<MessageFlag> messageFlags);", "private static void extend(Class<? extends Enum<?>> baseEnumClass, Class<? extends Enum<?>> targetEnumClass) {\n try {\n List<Enum<?>> baseValues = new LinkedList<>( // need to remove items (see below)\n Arrays.asList(baseEnumClass.getEnumConstants())\n );\n List<Enum<?>> targetValues = Arrays.asList(targetEnumClass.getEnumConstants());\n\n EnumConstruct ec = EnumConstruct.$();\n ec.init(baseEnumClass, targetEnumClass);\n\n int i[] = { 0 };\n List<Enum<?>> newValues = new ArrayList<>();\n // copy the target values, but if one is found within base values, remove it\n targetValues.stream().forEach(t -> {\n for (Iterator<Enum<?>> baseIt = baseValues.iterator() ; baseIt.hasNext() ; ) {\n Enum<?> b = baseIt.next();\n if (b.name().equals(t.name())) {\n baseIt.remove();\n break;\n }\n }\n newValues.add(t);\n i[0]++;\n });\n // then copy the base values\n baseValues.stream().forEach(b -> {\n newValues.add(Thrower.safeCall(() -> ec.build(b.name(), i[0]++, b)));\n });\n\n // finally, replace the enum values in the class\n Field modifField = Field.class.getDeclaredField(\"modifiers\");\n modifField.setAccessible(true);\n Field valuesField;\n try {\n valuesField = targetEnumClass.getDeclaredField(\"$VALUES\");\n } catch (NoSuchFieldException e) {\n // I don't know why I need this one (well... I found it)\n valuesField = targetEnumClass.getDeclaredField(\"ENUM$VALUES\");\n }\n valuesField.setAccessible(true);\n final int modifiers = valuesField.getModifiers();\n modifField.setInt(valuesField, modifiers & ~Modifier.FINAL);\n valuesField.setAccessible(true);\n Object[] newValuesArr = newValues.toArray((Object[]) Array.newInstance(targetEnumClass, newValues.size()));\n valuesField.set(targetEnumClass, newValuesArr);\n modifField.setInt(valuesField, modifiers);\n\n // reset internal cache\n Field enumConstants = Class.class.getDeclaredField(\"enumConstants\");\n AccessController.doPrivileged((PrivilegedAction<Void>) (() -> {\n enumConstants.setAccessible(true);\n return null;\n }));\n enumConstants.set(targetEnumClass, null); // it will be recomputed on demand\n AccessController.doPrivileged((PrivilegedAction<Void>) (() -> {\n enumConstants.setAccessible(false);\n return null;\n }));\n } catch (Exception e) {\n Logger.getLogger(targetEnumClass.getName())\n .severe(\"Unable to access to internal fields of class \" + targetEnumClass.getName());\n Thrower.doThrow(e);\n }\n }", "private ListEnum(int listEnum) \n {\n // The constructor sets the values for each enumeration.\n this.listEnum = listEnum;\n }", "public void addDefinitions(Map<String, Definition> defsMap,\n Locale locale) {\n localeSpecificDefinitions.put(locale, defsMap);\n resolveInheritances(locale);\n }", "public abstract void setSortKeys(List<? extends SortKey> keys);", "public SchemaInfo addEnum(Object...values) {\n\t\tsetEnum(setBuilder(Object.class).sparse().addAny(values).build());\n\t\treturn this;\n\t}", "public final void setCaseTypes(ugs.proxies.Enum_CaseTypes casetypes)\n\t{\n\t\tsetCaseTypes(getContext(), casetypes);\n\t}", "public void setValueMap (List<MapEntry> valueMap) {\n this.valueMap = valueMap;\n }", "public void fillMap() {\n this.months.put(\"янв\", Month.JANUARY);\n this.months.put(\"фев\", Month.FEBRUARY);\n this.months.put(\"мар\", Month.MARCH);\n this.months.put(\"апр\", Month.APRIL);\n this.months.put(\"май\", Month.MAY);\n this.months.put(\"июн\", Month.JUNE);\n this.months.put(\"июл\", Month.JULY);\n this.months.put(\"авг\", Month.AUGUST);\n this.months.put(\"сен\", Month.SEPTEMBER);\n this.months.put(\"окт\", Month.OCTOBER);\n this.months.put(\"ноя\", Month.NOVEMBER);\n this.months.put(\"дек\", Month.DECEMBER);\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method validates the security answers for the loaded security questions to retrieve the forgotten password
@RequestMapping(value = "/validateUserSecurityQuestionsandAnswers",method = RequestMethod.POST) public ModelAndView validateUserSecurityQuestionsandAnswers(Model model,@ModelAttribute("forgotPasswordForm") ForgotPasswordForm forgotPasswordForm, HttpSession session,final RedirectAttributes redirectAttributes) { int flagType=0; ModelAndView mv = new ModelAndView(); HipaaPasswordValidator hipaaValidator=null; List<PhysicianAccount> phyAcct=null; List<PhysicianAssistantAccount> phyAsstAcct=null; AdminAccount adminAcct=null; PatientAccount patientAcct=null; List<GroupDirector> groupDirAcct=null; String errMsg=""; try { //System.out.println("username ===="+forgotPasswordForm.getEmail()); //System.out.println("user type ===="+forgotPasswordForm.getType()); if (forgotPasswordForm != null && (forgotPasswordForm.getEmail() != null || forgotPasswordForm.getUsername() != null) && forgotPasswordForm.getType() != null) { hipaaValidator=new HipaaPasswordValidator(); if (forgotPasswordForm.getType().equalsIgnoreCase(PharmacyUtil.userPhysician)) { phyAcct=phyAcctRepo.findByEmail(forgotPasswordForm.getEmail()); if(phyAcct != null && phyAcct.size()>0) { flagType=hipaaValidator.validateUserSecurityQuesAnswer( model, phyAcct.get(0), forgotPasswordForm,env,loginService); } }else if (forgotPasswordForm.getType().equalsIgnoreCase(PharmacyUtil.userPhysicianAssistant)) { phyAsstAcct=phyAsstAcctPwdRepo.findByEmail(forgotPasswordForm.getEmail()); if(phyAsstAcct != null && phyAsstAcct.size()>0) { flagType=hipaaValidator.validateUserSecurityQuesAnswer( model, phyAsstAcct.get(0), forgotPasswordForm,env,loginService); } }else if (forgotPasswordForm.getType().equalsIgnoreCase(PharmacyUtil.userAdministrator) || forgotPasswordForm.getType().equalsIgnoreCase(PharmacyUtil.userSuperAdmin) || forgotPasswordForm.getType().equalsIgnoreCase(PharmacyUtil.userAdmin)) { List<AdminAccount> obj = adminRepo.findByEmail(forgotPasswordForm.getEmail()); if (obj.size() > 0) adminAcct= obj.get(0); if(adminAcct != null) { flagType=hipaaValidator.validateUserSecurityQuesAnswer( model, adminAcct, forgotPasswordForm,env,loginService); } }else if (forgotPasswordForm.getType().equalsIgnoreCase(PharmacyUtil.userPatient)) { List<PatientAccount> patAcctList=patRepo.findByUserLoginId(forgotPasswordForm.getUsername()); if(patAcctList!=null && patAcctList.size()>0){ patientAcct = patAcctList.get(0); if(patientAcct != null) { flagType=hipaaValidator.validateUserSecurityQuesAnswer( model, patientAcct, forgotPasswordForm,env,loginService); } } } else if (forgotPasswordForm.getType().equalsIgnoreCase(PharmacyUtil.userGroupDirector)) { groupDirAcct=groupDirRepo.findByEmail(forgotPasswordForm.getEmail()); if(groupDirAcct!=null && groupDirAcct.size() > 0) { flagType=hipaaValidator.validateUserSecurityQuesAnswer( model, groupDirAcct.get(0), forgotPasswordForm, env,loginService); } } //System.out.println("flagType ============"+flagType); if(flagType==1)//validdetails { if (phyAcct!=null && phyAcct.size() > 0 && forgotPasswordForm.getType().equalsIgnoreCase(PharmacyUtil.userPhysician)){ ResetPasswordForm resetPasswordForm=new ResetPasswordForm(); resetPasswordForm.setUserId(phyAcct.get(0).getId()); resetPasswordForm.setUserName(phyAcct.get(0).getPhysicianName()); resetPasswordForm.setUserType(forgotPasswordForm.getType()); resetPasswordForm.setUserEmailId(forgotPasswordForm.getEmail()); resetPasswordForm.setOldPassword(phyAcct.get(0).getPassword()); resetPasswordForm.setSecurityquestion(phyAcct.get(0).getSecurityQuestionNumber()); resetPasswordForm.setSecurityquestion2(phyAcct.get(0).getSecurityQuestionNumber2()); resetPasswordForm.setSecurityanswer(phyAcct.get(0).getSecurityAnswer()); resetPasswordForm.setSecurityanswer2(phyAcct.get(0).getSecurityAnswer2()); redirectAttributes.addFlashAttribute("resetPasswordForm",resetPasswordForm); errMsg=env.getProperty("error.resetPassword"); model.addAttribute("error", errMsg); mv.setViewName("redirect:loadResetPasswordForm"); }else if (phyAsstAcct!=null && forgotPasswordForm.getType().equalsIgnoreCase(PharmacyUtil.userPhysicianAssistant)){ ResetPasswordForm resetPasswordForm=new ResetPasswordForm(); resetPasswordForm.setUserId(phyAsstAcct.get(0).getId()); resetPasswordForm.setUserName(phyAsstAcct.get(0).getAssistantName()); resetPasswordForm.setUserType(forgotPasswordForm.getType()); resetPasswordForm.setUserEmailId(forgotPasswordForm.getEmail()); resetPasswordForm.setOldPassword(phyAsstAcct.get(0).getPassword()); resetPasswordForm.setSecurityquestion(phyAsstAcct.get(0).getSecurityQuestionNumber()); resetPasswordForm.setSecurityquestion2(phyAsstAcct.get(0).getSecurityQuestionNumber2()); resetPasswordForm.setSecurityanswer(phyAsstAcct.get(0).getSecurityAnswer()); resetPasswordForm.setSecurityanswer2(phyAsstAcct.get(0).getSecurityAnswer2()); redirectAttributes.addFlashAttribute("resetPasswordForm",resetPasswordForm); errMsg=env.getProperty("error.resetPassword"); model.addAttribute("error", errMsg); mv.setViewName("redirect:/loadResetPasswordForm"); }else if (adminAcct!=null && (forgotPasswordForm.getType().equalsIgnoreCase(PharmacyUtil.userAdministrator) || forgotPasswordForm.getType().equalsIgnoreCase(PharmacyUtil.userSuperAdmin) || forgotPasswordForm.getType().equalsIgnoreCase(PharmacyUtil.userAdmin))){ ResetPasswordForm resetPasswordForm=new ResetPasswordForm(); resetPasswordForm.setUserId(adminAcct.getId()); resetPasswordForm.setUserName(adminAcct.getName()); resetPasswordForm.setUserType(forgotPasswordForm.getType()); resetPasswordForm.setUserEmailId(forgotPasswordForm.getEmail()); resetPasswordForm.setOldPassword(adminAcct.getPassword()); resetPasswordForm.setSecurityquestion(adminAcct.getSecurityQuestionNumber()); resetPasswordForm.setSecurityquestion2(adminAcct.getSecurityQuestionNumber2()); resetPasswordForm.setSecurityanswer(adminAcct.getSecurityAnswer()); resetPasswordForm.setSecurityanswer2(adminAcct.getSecurityAnswer2()); redirectAttributes.addFlashAttribute("resetPasswordForm",resetPasswordForm); errMsg=env.getProperty("error.resetPassword"); model.addAttribute("error", errMsg); mv.setViewName("redirect:/loadResetPasswordForm"); }else if (patientAcct!=null && (forgotPasswordForm.getType().equalsIgnoreCase(PharmacyUtil.userPatient))){ ResetPasswordForm resetPasswordForm=new ResetPasswordForm(); resetPasswordForm.setUserId(patientAcct.getId()); resetPasswordForm.setUserName(patientAcct.getPatientName()); resetPasswordForm.setUserType(forgotPasswordForm.getType()); resetPasswordForm.setUserEmailId(forgotPasswordForm.getEmail()); resetPasswordForm.setOldPassword(patientAcct.getPassword()); resetPasswordForm.setSecurityquestion(patientAcct.getSecurityQuestionNumber()); resetPasswordForm.setSecurityquestion2(patientAcct.getSecurityQuestionNumber2()); resetPasswordForm.setSecurityanswer(patientAcct.getSecurityAnswer()); resetPasswordForm.setSecurityanswer2(patientAcct.getSecurityAnswer2()); redirectAttributes.addFlashAttribute("resetPasswordForm",resetPasswordForm); errMsg=env.getProperty("error.resetPassword"); model.addAttribute("error", errMsg); mv.setViewName("redirect:/loadResetPasswordForm"); }else if (groupDirAcct!=null && (forgotPasswordForm.getType().equalsIgnoreCase(PharmacyUtil.userGroupDirector))){ ResetPasswordForm resetPasswordForm=new ResetPasswordForm(); resetPasswordForm.setUserId(groupDirAcct.get(0).getId()); resetPasswordForm.setUserName(groupDirAcct.get(0).getGroupDirectorName()); resetPasswordForm.setUserType(forgotPasswordForm.getType()); resetPasswordForm.setUserEmailId(forgotPasswordForm.getEmail()); resetPasswordForm.setOldPassword(groupDirAcct.get(0).getPassword()); resetPasswordForm.setSecurityquestion(groupDirAcct.get(0).getSecurityQuestionNumber()); resetPasswordForm.setSecurityquestion2(groupDirAcct.get(0).getSecurityQuestionNumber2()); resetPasswordForm.setSecurityanswer(groupDirAcct.get(0).getSecurityAnswer()); resetPasswordForm.setSecurityanswer2(groupDirAcct.get(0).getSecurityAnswer2()); redirectAttributes.addFlashAttribute("resetPasswordForm",resetPasswordForm); errMsg=env.getProperty("error.resetPassword"); model.addAttribute("error", errMsg); mv.setViewName("redirect:/loadResetPasswordForm"); } }else if(flagType==2)//invalidemailid { List<SecurityQuestion> securityQuestionList = securityQuestionService.getAllSecurityQuestions(); mv.addObject("securityQuestions", securityQuestionList); errMsg=env.getProperty("error.invalidemailid"); model.addAttribute("forgotPasswordForm", forgotPasswordForm); if (forgotPasswordForm.getType().equalsIgnoreCase(PharmacyUtil.userPatient)) model.addAttribute("notshowusertype", "notshowusertype"); else model.addAttribute("showusertype", "showusertype"); model.addAttribute("error", errMsg); mv.setViewName("forgotPasswordForm"); }else if(flagType==3)//invalidsecurityquestionanswer { List<SecurityQuestion> securityQuestionList = securityQuestionService.getAllSecurityQuestions(); mv.addObject("securityQuestions", securityQuestionList); errMsg=""; model.addAttribute("forgotPasswordForm", forgotPasswordForm); if(model.asMap().get("invalidque1")!=null && model.asMap().get("invalidque1").toString().length()>0) { errMsg=env.getProperty("error.invalidSecurityQuestion1"); } if(model.asMap().get("invalidque2")!=null && model.asMap().get("invalidque2").toString().length()>0) { errMsg+=env.getProperty("error.invalidSecurityQuestion2"); } if(model.asMap().get("invalidans1")!=null && model.asMap().get("invalidans1").toString().length()>0) { errMsg+=env.getProperty("error.invalidSecurityAnswer1"); } if(model.asMap().get("invalidans2")!=null && model.asMap().get("invalidans2").toString().length()>0) { errMsg+=env.getProperty("error.invalidSecurityAnswer2"); } model.addAttribute("error", errMsg); model.addAttribute("showsecurityques", "showsecurityques"); if (forgotPasswordForm.getType().equalsIgnoreCase(PharmacyUtil.userPatient)) model.addAttribute("notshowusertype", "notshowusertype"); else model.addAttribute("showusertype", "showusertype"); mv.setViewName("forgotPasswordForm"); }else if(flagType==4)//forgotlockuptime { List<SecurityQuestion> securityQuestionList = securityQuestionService.getAllSecurityQuestions(); mv.addObject("securityQuestions", securityQuestionList); errMsg=env.getProperty("error.forgotlockuptime"); model.addAttribute("forgotPasswordForm", forgotPasswordForm); model.addAttribute("error", errMsg+model.asMap().get("elapsingtime")); if (forgotPasswordForm.getType().equalsIgnoreCase(PharmacyUtil.userPatient)) model.addAttribute("notshowusertype", "notshowusertype"); else model.addAttribute("showusertype", "showusertype"); model.addAttribute("showsecurityques", "showsecurityques"); mv.setViewName("forgotPasswordForm"); } }else { List<SecurityQuestion> securityQuestionList = securityQuestionService.getAllSecurityQuestions(); mv.addObject("securityQuestions", securityQuestionList); errMsg=env.getProperty("error.invalidemailid"); model.addAttribute("forgotPasswordForm", forgotPasswordForm); if (forgotPasswordForm.getType().equalsIgnoreCase(PharmacyUtil.userPatient)) model.addAttribute("notshowusertype", "notshowusertype"); else model.addAttribute("showusertype", "showusertype"); model.addAttribute("error", errMsg); mv.setViewName("forgotPasswordForm"); } } catch (Exception e) { e.printStackTrace(); model.addAttribute("message", env.getProperty("error.internalError") ); mv.setViewName("error500"); } return mv; }
[ "@Test(description= \"Forgot password - User has not set security questions\", groups = {\"smoke\"},priority=12)\n\tpublic void forgotPasswordSecurityQuesNotSet() {\n\t\tloginPageObj.clickForgotPass();\t\t\n\t\tloginPageObj.clickRetrieveForgotPass(loginData.get(VALID_USERNAME_SECURITY_QUESTIONS_NOT_SET));\n\t\tloginAssert.assertTrue(loginPageObj.verifyCreateNewPasswordError(loginData.get(MSG_SECURITY_QUESTIONS_NOT_SET)));\n\t\tloginPageObj.clickCloseForgotPassModal();\n\t}", "public void validateAnswers(final String ans1, final String ans2, final String ans3, final String newpass1, final String newpass2) {\n RequestQueue queue = Volley.newRequestQueue(this);\n String url = \"http://\" + Config.getWebServerURL(this) + \"/validateanswers\";\n StringRequest stringRequest = new StringRequest(Request.Method.POST, url, new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n startActivity(new Intent(ForgotPassword.this, LoginScreen.class));\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n txtNewPass1.requestFocus();\n txtNewPass1.setError(\"Answers do not match our records, try again\");\n }\n }) {\n protected Map<String, String> getParams() {\n Map<String, String> data = new HashMap<String, String>();\n data.put(\"email\", userEmail);\n data.put(\"answer1\", ans1);\n data.put(\"answer2\", ans2);\n data.put(\"answer3\", ans3);\n data.put(\"newpassword\", newpass1);\n data.put(\"passwordcheck\", newpass2);\n return data;\n }\n };\n queue.add(stringRequest);\n }", "@Test(description = \"Forgot password - User has set security questions\", groups = {\"smoke\"},priority=11)\n\tpublic void forgotPasswordResetPassword() {\n\t\tloginPageObj.clickForgotPass();\n\t\tloginPageObj.clickRetrieveForgotPass(loginData.get(VALID_USERNAME_SECURITY_QUESTIONS_SET));\n\t\tloginPageObj.submitSecurityAnswers(loginData.get(VALID_SECURITY_ANS1), loginData.get(VALID_SECURITY_ANS2),loginData.get(VALID_SECURITY_ANS3));\n\t\tloginPageObj.setPassword(loginData.get(NEW_PASSWORD),loginData.get(NEW_PASSWORD));\n\t\tloginAssert.assertTrue(loginPageObj.verifyPasswordUpdateModal());\n\t\tloginPageObj.clickOkayBtn();\n\t\tloginPageObj.loginAs(loginData.get(VALID_USERNAME_SECURITY_QUESTIONS_SET), loginData.get(NEW_PASSWORD));\t\t\n\t\tlogoutPageobj.clickLogoutLink(\"Portal\");\n\t\tsetcurrentContext(null, null, false);\t\t\n\t}", "@Test(description = \"Forgot password - User has entered one incorrect response\", groups = {\"smoke\"},priority=10)\n\tpublic void forgotPasswordOneIncorrectResponse() {\n\n\t\tloginPageObj.clickForgotPass();\n\t\tloginPageObj.clickRetrieveForgotPass(loginData.get(VALID_USERNAME_SECURITY_QUESTIONS_SET));\n\t\tloginPageObj.submitSecurityAnswers(loginData.get(INVALID_SECURITY_ANS), loginData.get(VALID_SECURITY_ANS2),\n\t\t\t\tloginData.get(VALID_SECURITY_ANS3));\n\t\tloginPageObj.verifyCreateNewPasswordError(loginData.get(MSG_INCORRECT_ANSWER));\n\t\tloginPageObj.clickCloseForgotPassModal();\n\t}", "@Override\n\tpublic String forgotPassword(String username, String securityQuestion, String answer)\n\t{\n\t\tif(custRepository.existsById(username)) {\n\t\t\tcustomer = custRepository.getOne(username);\n\t\t\tif(customer.getSecurityQuestion().equals(securityQuestion) && customer.getAnswer().equals(answer)) {\n//\t\t\t\tlogger.info(\"Password retrieved\");\n\t\t\t\treturn \"Your password is \"+customer.getPassword()+\". Plz change it for security purpose.\";\n\t\t\t}\n//\t\t\tlogger.error(\"Invalid Security question/Answer\");\n\t\t\treturn \"Invalid Security question/Answer\";\n\t\t}\n\t\telse {\n//\t\t\tlogger.error(\"UserId does not exist\");\n\t\t\treturn \"UserId does not exist\";\n\t\t}\n\t}", "private void verifyData() {\n if (!inputValidation.isInputEditTextFilled(textInputEditTextUsername, textInputLayoutUsername, getString(R.string.error_message_email))) {\n return;\n }else if (!inputValidation.isInputEditTextFilled(textInputEditTextPassword, textInputLayoutPassword, getString(R.string.error_message_password))) {\n return;\n }else{\n String email = textInputEditTextUsername.getText().toString().trim();\n String password = textInputEditTextPassword.getText().toString().trim();\n\n login(email, password);\n }\n }", "public List<String> passwordMessageValidations() {\n name.sendKeys(\"Karan Prinja\");\n email.sendKeys(\"k1234@hotmail.com\");\n password.sendKeys(\"12345678\");\n helperMethods.waitForWebElement(smallPassword, 30);\n String sosoPassword = smallPassword.getText();\n password.clear();\n password.sendKeys(\"Randomer12345678\");\n helperMethods.waitForWebElement(smallPassword, 30);\n String goodPassword = smallPassword.getText();\n List<String> passwordValidationText = new ArrayList<>();\n passwordValidationText.add(sosoPassword);\n passwordValidationText.add(goodPassword);\n return passwordValidationText;\n }", "private void checkAllQuestions() {\n checkQuestionOneAnswer ();\n checkQuestionTwoAnswers ();\n checkQuestionThreeAnswers ();\n checkQuestionFourAnswers ();\n checkQuestionFiveAnswers ();\n checkQuestionSexAnswers ();\n checkQuestionSevenAnswers ();\n checkQuestionEighthAnswers ();\n checkQuestionNineAnswers ();\n checkQuestionTenAnswers ();\n }", "private boolean validatePasswords() {\r\n\t\tString current = getPasswordCurrent();\r\n\t\tString newPwd = getPasswordNew();\r\n\t\tString confirmed = getPasswordConfirmed();\r\n\t\t\r\n\t\t// The old password must match\r\n\t\tif ( current.isEmpty() || !current.equals(user.getPassword()) ) {\r\n\t\t\tToast.makeText(getApplicationContext(), R.string.old_password_bad, Toast.LENGTH_SHORT).show();\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\t// Neither can be empty\r\n\t\tif (newPwd.isEmpty() || confirmed.isEmpty()) {\r\n\t\t\tToast.makeText(getApplicationContext(), R.string.invalid_password, Toast.LENGTH_SHORT).show();\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\t// The passwords must match\r\n\t\tif ( !newPwd.equals(confirmed) ) {\r\n\t\t\tToast.makeText(getApplicationContext(), R.string.invalid_passwords, Toast.LENGTH_SHORT).show();\r\n\t\t\tresetPasswords();\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\t// The passwords must be at least 4 characters long\r\n\t\tif (newPwd.length() < User.MIN_PASSWORD_LENGTH) {\r\n\t\t\tToast.makeText(getApplicationContext(), R.string.invalid_password_length, Toast.LENGTH_SHORT).show();\r\n\t\t\tresetPasswords();\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\treturn true;\t// All fields checkout and are valid\r\n\t}", "private void checkQuestionSexAnswers() {\n question6_choice4 = (RadioButton) findViewById ( R.id.question6_choice4 );\n boolean isQuestion6_choice4Checked = question6_choice4.isChecked ();\n if (isQuestion6_choice4Checked) {\n correctAnswers += 1;\n }\n }", "public void validatingSelectQuestion() {\r\n\t\tResultUtil.report(\"INFO\", \"CreatingAssignmentHelpPage>>> validatingSelectQuestion\", driver);\r\n\t\tlnkSelectQuestions.click();\r\n\t\t\r\n\t\tif(driver.findElement(By.xpath(\"//h4[2]/b\")).isDisplayed()){\r\n\t\t\tSystem.out.println(\"Pass- Validated Select Question Text\");\r\n\t\t}\r\n\t\telse{\r\n\t\t\tSystem.out.println(\"Fail- Validated Select Question Text\");\r\n\t\t}\r\n\t\tSync.waitForSeconds(2, driver);\r\n\t}", "@Test\n public void test_password_correctness() throws Exception {\n \n Question question = new Question(\"Question A\", new MeasurementParams(50, 2));\n QuestionBank questions = new QuestionBank(Arrays.<Question>asList(question));\n SecLogin secLogin = new SecLogin(userInterface, userStatePersistence, random, questions, 1, .99);\n \n passwordIs(\"password\");\n userIs(\"steve\");\n answerIs(question, \"20\");\n \n // Add one user, and the system prompts for a password.\n secLogin.addUser(\"steve\");\n expect(PasswordPrompt, Done);\n \n // Log in with correct password\n secLogin.prompt();\n expect(UserPrompt, PasswordPrompt, questions, Success, Done);\n \n // Try to log in with a different password, and fail.\n passwordIs(\"psosarwd\");\n secLogin.prompt();\n expect(UserPrompt, PasswordPrompt, questions, Failure, Done);\n \n }", "public void promptStudentAnswers()\n {\n for (int i = 0; i < ANSWERS.length; i++)\n {\n System.out.println(\"select an answer for question \"+(i+1));\n String answer = inputAnswers.readString().toUpperCase(); //investigate for later\n\n if(checkValidity(answer))\n {\n System.out.println(\"Correct !\");\n driverAnswers[i] = answer;\n }\n else\n {\n System.out.println(\"Incorrect! \"+(i+1));\n i--;\n }\n \n }\n System.out.println(\"You answered \" +getTotalCorrectAnswers() +\" questions correctly\");\n System.out.println(\"You answered \" +getTotalIncorrectAnswers() +\" questions incorrectly\");\n \n }", "private void attemptForgotPass() {\n edEmail.setError(null);\n emailId = edEmail.getText().toString();\n if (TextUtils.isEmpty(emailId)) {\n edEmail.setError(getString(R.string.error_field_required));\n } else if (!Validation.isValidEmail(emailId)) {\n edEmail.setError(getString(R.string.error_invalid_email));\n } else {\n forgotPassApi(emailId);\n }\n\n }", "public void passwordCheck() {\r\n\t \r\n\t\t int countPasswordEnter = 0;\r\n\t\t \r\n\t\t String thePassword = theStaff.getPassword();\r\n\t\t \r\n\t\t System.out.println(\"Please enter your staff password: \");\r\n\t\t String input = getInput();\r\n\t\t \r\n\t\t boolean isValidPassword = input.equals(thePassword);\r\n\r\n\r\n\t\t while(!isValidPassword) {\r\n\t\t\t \r\n\t\t\t countPasswordEnter++;\r\n\t\t\t \r\n\t\t\t if(countPasswordEnter > 2) {\r\n\t\t\t\t \r\n\t\t\t\t isValidPassword = false;\r\n\t\t\t\t System.out.println(\"You have entered invalid password too many times. \"\r\n\t\t\t\t \t\t\t\t+ \"\\nNow the system goes back to previous session.\");\r\n\t\t\t\t breakingLineFour();\r\n\t\t\t\t return;\r\n\r\n\t\t\t\t \r\n\t\t\t } else {\r\n\t\t\t\t \r\n\t\t\t\t System.out.println(\"Invalid password, please try again!\");\r\n\t\t\t\t input = getInput();\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\t breakingLineFour();\r\n\t\t getStaffVote();\r\n\t \r\n\t}", "private String extractSecurityAnswer() {\n return SwingUtil.extract(securityAnswerJTextField, Boolean.TRUE);\n }", "public String getPwdQuestion() {\n return pwdQuestion;\n }", "private void validateQuestion(){\n int checkedRadioButtonId = Question.getCheckedRadioButtonId();\n\n // If the correct question has been chosen, update the score & display a toast message\n if (checkedRadioButtonId == R.id.radio4_question1) {\n score = score + 2;\n }\n }", "public void validateSurveyResponse(Survey survey, RecordAnswer answer)\n throws Exception\n {\n if (answer.getEmail() != null)\n return;\n\n List<OneAnswer> ans = answer.getAnswers();\n //List<Question> questions = survey.getQuestions();\n int questionforemail = survey.getQuestionForEmail();\n boolean emailreqd = false;\n String question = \"\";\n for (int i = 0; !emailreqd && (i < ans.size()); i++)\n {\n //not a good practice to hardcode. This is done because of demo.\n //if ((questions.get(i).shouldRecordEmail() >= 1) && (ans.get(i).getAnswer().equals(\"aye\")))\n if ((i == questionforemail) && (ans.get(i).getAnswer().equals(\"aye\")))\n {\n emailreqd = true;\n //question = questions.get(i).getQuestion();\n }\n }\n\n if (emailreqd && answer.getEmail() == null)\n throw new Exception(\"Survey cannot be recorded. Email is required \");\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "entryRuleJointConstraint" $ANTLR start "ruleJointConstraint" ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/srcgen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:1217:1: ruleJointConstraint : ( ( rule__JointConstraint__Group__0 ) ) ;
public final void ruleJointConstraint() throws RecognitionException { int stackSize = keepStackSize(); try { // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:1221:2: ( ( ( rule__JointConstraint__Group__0 ) ) ) // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:1222:1: ( ( rule__JointConstraint__Group__0 ) ) { // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:1222:1: ( ( rule__JointConstraint__Group__0 ) ) // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:1223:1: ( rule__JointConstraint__Group__0 ) { before(grammarAccess.getJointConstraintAccess().getGroup()); // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:1224:1: ( rule__JointConstraint__Group__0 ) // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:1224:2: rule__JointConstraint__Group__0 { pushFollow(FOLLOW_rule__JointConstraint__Group__0_in_ruleJointConstraint2554); rule__JointConstraint__Group__0(); state._fsp--; } after(grammarAccess.getJointConstraintAccess().getGroup()); } } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { restoreStackSize(stackSize); } return ; }
[ "public final void rule__JointConstraint__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:7325:1: ( ( 'constraint' ) )\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:7326:1: ( 'constraint' )\n {\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:7326:1: ( 'constraint' )\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:7327:1: 'constraint'\n {\n before(grammarAccess.getJointConstraintAccess().getConstraintKeyword_0()); \n match(input,67,FOLLOW_67_in_rule__JointConstraint__Group__0__Impl14759); \n after(grammarAccess.getJointConstraintAccess().getConstraintKeyword_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void ruleJoint() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:717:2: ( ( ( rule__Joint__Group__0 ) ) )\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:718:1: ( ( rule__Joint__Group__0 ) )\n {\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:718:1: ( ( rule__Joint__Group__0 ) )\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:719:1: ( rule__Joint__Group__0 )\n {\n before(grammarAccess.getJointAccess().getGroup()); \n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:720:1: ( rule__Joint__Group__0 )\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:720:2: rule__Joint__Group__0\n {\n pushFollow(FOLLOW_rule__Joint__Group__0_in_ruleJoint1474);\n rule__Joint__Group__0();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getJointAccess().getGroup()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__JointConstraint__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:7313:1: ( rule__JointConstraint__Group__0__Impl rule__JointConstraint__Group__1 )\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:7314:2: rule__JointConstraint__Group__0__Impl rule__JointConstraint__Group__1\n {\n pushFollow(FOLLOW_rule__JointConstraint__Group__0__Impl_in_rule__JointConstraint__Group__014728);\n rule__JointConstraint__Group__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__JointConstraint__Group__1_in_rule__JointConstraint__Group__014731);\n rule__JointConstraint__Group__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__JointConstraint__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:7344:1: ( rule__JointConstraint__Group__1__Impl rule__JointConstraint__Group__2 )\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:7345:2: rule__JointConstraint__Group__1__Impl rule__JointConstraint__Group__2\n {\n pushFollow(FOLLOW_rule__JointConstraint__Group__1__Impl_in_rule__JointConstraint__Group__114790);\n rule__JointConstraint__Group__1__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__JointConstraint__Group__2_in_rule__JointConstraint__Group__114793);\n rule__JointConstraint__Group__2();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__JointConstraint__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:7373:1: ( rule__JointConstraint__Group__2__Impl rule__JointConstraint__Group__3 )\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:7374:2: rule__JointConstraint__Group__2__Impl rule__JointConstraint__Group__3\n {\n pushFollow(FOLLOW_rule__JointConstraint__Group__2__Impl_in_rule__JointConstraint__Group__214850);\n rule__JointConstraint__Group__2__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__JointConstraint__Group__3_in_rule__JointConstraint__Group__214853);\n rule__JointConstraint__Group__3();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void ruleJointType() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:745:2: ( ( ( rule__JointType__Group__0 ) ) )\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:746:1: ( ( rule__JointType__Group__0 ) )\n {\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:746:1: ( ( rule__JointType__Group__0 ) )\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:747:1: ( rule__JointType__Group__0 )\n {\n before(grammarAccess.getJointTypeAccess().getGroup()); \n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:748:1: ( rule__JointType__Group__0 )\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:748:2: rule__JointType__Group__0\n {\n pushFollow(FOLLOW_rule__JointType__Group__0_in_ruleJointType1534);\n rule__JointType__Group__0();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getJointTypeAccess().getGroup()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__JointConstraint__Group__3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:7404:1: ( rule__JointConstraint__Group__3__Impl rule__JointConstraint__Group__4 )\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:7405:2: rule__JointConstraint__Group__3__Impl rule__JointConstraint__Group__4\n {\n pushFollow(FOLLOW_rule__JointConstraint__Group__3__Impl_in_rule__JointConstraint__Group__314912);\n rule__JointConstraint__Group__3__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__JointConstraint__Group__4_in_rule__JointConstraint__Group__314915);\n rule__JointConstraint__Group__4();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__Joint__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:4846:1: ( ( 'joint' ) )\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:4847:1: ( 'joint' )\n {\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:4847:1: ( 'joint' )\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:4848:1: 'joint'\n {\n before(grammarAccess.getJointAccess().getJointKeyword_0()); \n match(input,50,FOLLOW_50_in_rule__Joint__Group__0__Impl9892); \n after(grammarAccess.getJointAccess().getJointKeyword_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__JointConstraint__Group__6() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:7495:1: ( rule__JointConstraint__Group__6__Impl )\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:7496:2: rule__JointConstraint__Group__6__Impl\n {\n pushFollow(FOLLOW_rule__JointConstraint__Group__6__Impl_in_rule__JointConstraint__Group__615096);\n rule__JointConstraint__Group__6__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__JointConstraint__Group__4() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:7433:1: ( rule__JointConstraint__Group__4__Impl rule__JointConstraint__Group__5 )\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:7434:2: rule__JointConstraint__Group__4__Impl rule__JointConstraint__Group__5\n {\n pushFollow(FOLLOW_rule__JointConstraint__Group__4__Impl_in_rule__JointConstraint__Group__414972);\n rule__JointConstraint__Group__4__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__JointConstraint__Group__5_in_rule__JointConstraint__Group__414975);\n rule__JointConstraint__Group__5();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__JointConstraint__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:7385:1: ( ( ':' ) )\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:7386:1: ( ':' )\n {\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:7386:1: ( ':' )\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:7387:1: ':'\n {\n before(grammarAccess.getJointConstraintAccess().getColonKeyword_2()); \n match(input,51,FOLLOW_51_in_rule__JointConstraint__Group__2__Impl14881); \n after(grammarAccess.getJointConstraintAccess().getColonKeyword_2()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__Joint__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:4834:1: ( rule__Joint__Group__0__Impl rule__Joint__Group__1 )\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:4835:2: rule__Joint__Group__0__Impl rule__Joint__Group__1\n {\n pushFollow(FOLLOW_rule__Joint__Group__0__Impl_in_rule__Joint__Group__09861);\n rule__Joint__Group__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__Joint__Group__1_in_rule__Joint__Group__09864);\n rule__Joint__Group__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__JointConstraint__Group__5() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:7464:1: ( rule__JointConstraint__Group__5__Impl rule__JointConstraint__Group__6 )\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:7465:2: rule__JointConstraint__Group__5__Impl rule__JointConstraint__Group__6\n {\n pushFollow(FOLLOW_rule__JointConstraint__Group__5__Impl_in_rule__JointConstraint__Group__515034);\n rule__JointConstraint__Group__5__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__JointConstraint__Group__6_in_rule__JointConstraint__Group__515037);\n rule__JointConstraint__Group__6();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__JointType__Group_0__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:5224:1: ( ( 'joint' ) )\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:5225:1: ( 'joint' )\n {\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:5225:1: ( 'joint' )\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:5226:1: 'joint'\n {\n before(grammarAccess.getJointTypeAccess().getJointKeyword_0_0()); \n match(input,50,FOLLOW_50_in_rule__JointType__Group_0__0__Impl10640); \n after(grammarAccess.getJointTypeAccess().getJointKeyword_0_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void ruleConstraint() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:1193:2: ( ( ( rule__Constraint__Group__0 ) ) )\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:1194:1: ( ( rule__Constraint__Group__0 ) )\n {\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:1194:1: ( ( rule__Constraint__Group__0 ) )\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:1195:1: ( rule__Constraint__Group__0 )\n {\n before(grammarAccess.getConstraintAccess().getGroup()); \n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:1196:1: ( rule__Constraint__Group__0 )\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:1196:2: rule__Constraint__Group__0\n {\n pushFollow(FOLLOW_rule__Constraint__Group__0_in_ruleConstraint2494);\n rule__Constraint__Group__0();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getConstraintAccess().getGroup()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__JointConstraint__Group__3__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:7416:1: ( ( ( rule__JointConstraint__Joint1Assignment_3 ) ) )\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:7417:1: ( ( rule__JointConstraint__Joint1Assignment_3 ) )\n {\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:7417:1: ( ( rule__JointConstraint__Joint1Assignment_3 ) )\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:7418:1: ( rule__JointConstraint__Joint1Assignment_3 )\n {\n before(grammarAccess.getJointConstraintAccess().getJoint1Assignment_3()); \n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:7419:1: ( rule__JointConstraint__Joint1Assignment_3 )\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:7419:2: rule__JointConstraint__Joint1Assignment_3\n {\n pushFollow(FOLLOW_rule__JointConstraint__Joint1Assignment_3_in_rule__JointConstraint__Group__3__Impl14942);\n rule__JointConstraint__Joint1Assignment_3();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getJointConstraintAccess().getJoint1Assignment_3()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__JointType__Group_0__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:5243:1: ( rule__JointType__Group_0__1__Impl rule__JointType__Group_0__2 )\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:5244:2: rule__JointType__Group_0__1__Impl rule__JointType__Group_0__2\n {\n pushFollow(FOLLOW_rule__JointType__Group_0__1__Impl_in_rule__JointType__Group_0__110671);\n rule__JointType__Group_0__1__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__JointType__Group_0__2_in_rule__JointType__Group_0__110674);\n rule__JointType__Group_0__2();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__JointType__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:5163:1: ( ( ( rule__JointType__Group_0__0 )? ) )\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:5164:1: ( ( rule__JointType__Group_0__0 )? )\n {\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:5164:1: ( ( rule__JointType__Group_0__0 )? )\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:5165:1: ( rule__JointType__Group_0__0 )?\n {\n before(grammarAccess.getJointTypeAccess().getGroup_0()); \n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:5166:1: ( rule__JointType__Group_0__0 )?\n int alt31=2;\n int LA31_0 = input.LA(1);\n\n if ( (LA31_0==50) ) {\n alt31=1;\n }\n switch (alt31) {\n case 1 :\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:5166:2: rule__JointType__Group_0__0\n {\n pushFollow(FOLLOW_rule__JointType__Group_0__0_in_rule__JointType__Group__0__Impl10517);\n rule__JointType__Group_0__0();\n\n state._fsp--;\n\n\n }\n break;\n\n }\n\n after(grammarAccess.getJointTypeAccess().getGroup_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void entryRuleJointConstraint() throws RecognitionException {\n try {\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:1209:1: ( ruleJointConstraint EOF )\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:1210:1: ruleJointConstraint EOF\n {\n before(grammarAccess.getJointConstraintRule()); \n pushFollow(FOLLOW_ruleJointConstraint_in_entryRuleJointConstraint2521);\n ruleJointConstraint();\n\n state._fsp--;\n\n after(grammarAccess.getJointConstraintRule()); \n match(input,EOF,FOLLOW_EOF_in_entryRuleJointConstraint2528); \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
repeated uint32 appids = 1 [(.description) = "List of App IDs to grab bookmarks for. Can be empty if using updated_since."];
int getAppids(int index);
[ "java.util.List<java.lang.Integer> getAppidsList();", "public java.util.List<java.lang.Integer>\n getAppidsList() {\n return appids_;\n }", "public java.util.List<java.lang.Integer>\n getAppidsList() {\n return java.util.Collections.unmodifiableList(appids_);\n }", "java.util.List<? extends com.clarifai.grpc.api.AppOrBuilder> \n getAppsOrBuilderList();", "java.util.List<com.clarifai.grpc.api.App> \n getAppsList();", "public static Set<Integer> getAppids() {\n return APP_IDS.ids;\n }", "com.clarifai.grpc.api.App getApps(int index);", "java.util.List<java.lang.Integer> getAllowedAppIdsList();", "void getAppIdsWithPrefix(Future<Set<String>> appIds, String baseDir, String appIdPrefix);", "int getAllowedAppIds(int index);", "int getAllowedAppIdsCount();", "com.clarifai.grpc.api.AppOrBuilder getAppsOrBuilder(\n int index);", "public String getAppsId() {\n return appsId;\n }", "@ApiOperation(value = \"List registered IDs\", responseContainer = \"List\", response = AppId.class)\n @GET\n @Path(\"/list\")\n @UnitOfWork\n public List<AppId> listEntries() {\n return appIdDAO.findAll();\n }", "@Override\r\n public int[] getApplicationIDs() {\n tag.selectApplication(0);\r\n return tag.getApplicationIDs();\r\n }", "public void setAppInstances(List<AppInstance> apps)\n {\n this.apps = apps;\n }", "public java.util.List<java.lang.Integer>\n getAllowedAppIdsList() {\n return ((bitField0_ & 0x00001000) != 0) ?\n java.util.Collections.unmodifiableList(allowedAppIds_) : allowedAppIds_;\n }", "public Builder addAllowedAppIds(int value) {\n ensureAllowedAppIdsIsMutable();\n allowedAppIds_.addInt(value);\n onChanged();\n return this;\n }", "public int getAllowedAppIdsCount() {\n return allowedAppIds_.size();\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get method for struct member 'temperature_unit'. Field Documentation Blender Python API Unit that will be used to display temperature values
public byte getTemperature_unit() throws IOException { if ((__io__pointersize == 8)) { return __io__block.readByte(__io__address + 11); } else { return __io__block.readByte(__io__address + 11); } }
[ "uk.me.uohiro.protobuf.model.extras.ex1.Temperature.Units getUnits();", "double getLoTemperature(TempUnit unit);", "double getHiTemperature(TempUnit unit);", "public String getUnit() {\r\n\r\n return data.getUnit();\r\n\r\n }", "public TempUnit getHighUnit() {\n return highUnit;\n }", "public String getUnit() {\n\t\treturn unit;\n\t}", "public String unit() {\n return this.unit;\n }", "public int getUnit()\n {\n\treturn opfacData.getUnit();\n }", "public static int temperatureUnit(int kelvin, boolean unit) {\n\t\tif (unit)\n\t\t\treturn (getCelsius(kelvin));\n\t\telse\n\t\t\treturn (getFarhenheit(kelvin));\n\t}", "public Unit getUnit() {\n \t\treturn this.unit;\n \t}", "public TempUnit getLowUnit() {\n return lowUnit;\n }", "public Unit getUnit() {\n\t\treturn unit;\n\t}", "public String getTemperatureM1();", "public String getPhysicalUnit()\r\n {\r\n return pUnit;\r\n }", "private String getSelectedTempUnit() {\n String temperatureUnit;\n if(imperialToggle.isSelected()) {\n temperatureUnit = \"°F\";\n } else {\n temperatureUnit = \"°C\";\n }\n return temperatureUnit;\n }", "public float getTemperature() {\r\n return temperature;\r\n }", "public double getHumidityTemperature() {\r\n return humidityTemperature;\r\n }", "@Accessor(qualifier = \"Unit\", type = Accessor.Type.GETTER)\n\tpublic B2BUnitModel getUnit()\n\t{\n\t\treturn getPersistenceContext().getPropertyValue(UNIT);\n\t}", "String getUnit();" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO:move to standalone web shell project
private WebShellServer() { }
[ "public void launchWebGui() {\n webgui = (WebGui) Runtime.create(\"webgui\", \"WebGui\");\r\n webgui.autoStartBrowser(false);\r\n webgui.startService();\r\n webgui.startBrowser(\"http://localhost:8888/#/service/\" + ear.getName());\r\n }", "public void exec() {\n\n try {\n\n String webDotXMLPath = webAppPath + \"/WEB-INF/web.xml\";\n DocumentBuilderFactory builderFactory = DocumentBuilderFactory\n .newInstance();\n\n DocumentBuilder builder = DocumentBuilderFactory.newInstance()\n .newDocumentBuilder();\n Document doc = builder.parse(new File(webDotXMLPath));\n DocumentType docType = doc.getDoctype();\n if (docType != null) {\n doc.removeChild(docType);\n }\n Element webAppElement = (Element) doc.getFirstChild();\n webAppElement.setAttribute(\"version\", \"2.4\");\n webAppElement.setAttribute(\"xmlns\",\n \"http://java.sun.com/xml/ns/j2ee\");\n webAppElement.setAttribute(\"xmlns:xsi\",\n \"http://www.w3.org/2001/XMLSchema-instance\");\n webAppElement\n .setAttribute(\n \"xsi:schemaLocation\",\n \"http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd\");\n\n OutputFormat of = new OutputFormat();\n of.setIndenting(true);\n of.setIndent(4); // 2-space indention\n of.setLineWidth(16384);\n\n OutputStream outputStream = new FileOutputStream(webDotXMLPath);\n Writer writer = new OutputStreamWriter(outputStream, \"utf-8\");\n\n XMLSerializer serializer = new XMLSerializer(writer, of);\n serializer.serialize(doc);\n\n writer.close();\n\n } catch (Exception e) {\n throw new RuntimeException(\"Processing failed\", e);\n }\n\n }", "private static void runSmartDashboard() {\n }", "private void runEjs (String _filename) { runEjs(_filename,null); }", "public static void main(String[] args) {\n String msg = \"hello everyone$<script>, fuck\";\n Request req = new Request();\n req.setResquestString(msg);\n Response res = new Response();\n res.setResponseString(\"reponse\");\n \n FilterChain fc = new FilterChain();\n \n \n fc.addFilter(new HtmlFilter())\n .addFilter(new SensitiveFilter())\n .addFilter(new FaceFilter());\n \n fc.doFilter(req, res,fc);\n System.out.println(req.getResquestString());\n System.out.println(res.getResponseString());\n\n\t}", "public static void main(String[] args) throws IOException {\n//\r\n//\t\tdocumentBody = new String(Files.readAllBytes(Paths.get(\"zbrajanje.smscr\")), StandardCharsets.UTF_8);\r\n//\t\tparameters = new HashMap<String, String>();\r\n//\t\tpersistentParameters = new HashMap<String, String>();\r\n//\t\tcookies = new ArrayList<RequestContext.RCCookie>();\r\n//\t\tparameters.put(\"a\", \"4\");\r\n//\t\tparameters.put(\"b\", \"2\");\r\n//\t\t// create engine and execute it\r\n//\t\tnew SmartScriptEngine(new SmartScriptParser(documentBody).getDocumentNode(),\r\n//\t\t\t\tnew RequestContext(System.out, parameters, persistentParameters, cookies)).execute();\r\n\r\n\t\tString documentBody = new String(Files.readAllBytes(Paths.get(\"webroot/scripts/brojPoziva.smscr\")),\r\n\t\t\t\tStandardCharsets.UTF_8);\r\n\t\tMap<String, String> parameters = new HashMap<String, String>();\r\n\t\tMap<String, String> persistentParameters = new HashMap<String, String>();\r\n\t\tList<RCCookie> cookies = new ArrayList<RequestContext.RCCookie>();\r\n\t\tpersistentParameters.put(\"brojPoziva\", \"3\");\r\n\t\tRequestContext rc = new RequestContext(System.out, parameters, persistentParameters, cookies);\r\n\t\tnew SmartScriptEngine(new SmartScriptParser(documentBody).getDocumentNode(), rc).execute();\r\n\t\tSystem.out.println(\"Vrijednost u mapi: \" + rc.getPersistentParameter(\"brojPoziva\"));\r\n\t}", "DevIO getDevIO();", "private String application1(HttpServletRequest request, HttpServletResponse response) throws ClassNotFoundException, ServletException {\n\t\t\n\t\t\n\t\treturn \"loanDetails.jsp\";\n\t}", "String getShell();", "public static void main(String ... a) {\n\n // Action datasets - read-only versions\n // Including plain file.\n\n\n plainRun();\n //mainWebapp();\n //curl --header 'Content-type: text/turtle' -XPOST --data-binary @config-inf.ttl 'http://localhost:3030/$/datasets'\n }", "@Override\r\n public void run() {\n ax.browserPane.setTitleAt(0,ax.browser.getTitle());\r\n String stringToken1 = null; \r\n try {\r\n stringToken1 = (\"<Navigate Home>::\" + getHome());\r\n } catch (IOException ex) {\r\n Logger.getLogger(AxBrowser.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n ax.consoleTextArea.setText(stringToken1);\r\n //Put the current html address in the addressbar\r\n ax.addressBar.setText(ax.browser.getCurrentLocation());\r\n \r\n }", "public interface WebappRuntime extends ServletRequestListener, HttpSessionListener, SCA4JRuntime<WebappHostInfo> {\n\n /**\n * Activates a composite in the domain.\n *\n * @param qName the composite qualified name\n * @param componentId the id of the component that should be bound to the webapp\n * @throws DeploymentException if there was a problem initializing the composite\n * @throws ContributionException if an error is found in the contribution. If validation errors are encountered, a ValidationException will be\n * thrown.\n */\n void activate(QName qName, URI componentId) throws ContributionException, DeploymentException;\n\n /**\n * Returns the ServletRequestInjector for the runtime.\n *\n * @return the ServletRequestInjector for the runtime\n */\n ServletRequestInjector getRequestInjector();\n\n}", "private void createWebView(Stage primaryStage, String page) {\n\t\tfinal WebView webView = new WebView();\n //TODO fetch username and password from properties file Todo grab u,p from a login form, this needs a OrdiniService refactor\n \n\t\tString u,p;\n\t\tu=\"F08062\";\n\t\tp=\"password\";\n\t\t// connect the FruitsService instance as \"ordiniService\" \n\t\t// javascript variable\n\t\tJava2JavascriptUtils.connectBackendObject(\n\t\t\t\twebView.getEngine(),\n\t\t\t\t\"ordiniService\", new OrdiniWebServiceWrapperImpl(u,p));\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t// show \"alert\" Javascript messages in stdout (useful to debug)\t\n\t\twebView.getEngine().setOnAlert(new EventHandler<WebEvent<String>>(){\n\t\t\t@Override\n\t\t\tpublic void handle(WebEvent<String> arg0) {\n\t\t\t\tSystem.err.println(\"alertwb1: \" + arg0.getData());\n\t\t\t}\n\t\t});\n\t\t\n\t\t// load index.html\n\t\twebView.getEngine().load(\n\t\t\t\tgetClass().getResource(page).\n\t\t\t\ttoExternalForm());\n\n\t\tprimaryStage.setScene(new Scene(webView));\n\t\tprimaryStage.setTitle(\"Client Ordini Regione Lazio Destkop\");\t\t\n\t\tprimaryStage.show();\n\t}", "public static void main(String[] args) {\n\n staticFileLocation(\"public\");\n webSocket(\"/eyetribe\", WebSocketHandler.class);\n init();\n }", "@Test\n public void testTemplate2() throws Exception {\n TemplateWebApplication webApp = new TemplateWebApplication(\"src/main/template2\");\n webApp.initialize();\n webApp.start();\n\n TemplateHttpServletRequest request = new TemplateHttpServletRequest();\n request.setWebApplication(webApp);\n request.setContextPath(\"\");\n request.setServletPath(\"/index.html\");\n request.setPathInfo(null);\n\n TemplateHttpServletResponse response = new TemplateHttpServletResponse();\n TemplateServletOutputStream outputStream = new TemplateServletOutputStream();\n response.setOutputStream(outputStream);\n outputStream.setResponse(response);\n\n webApp.service(request, response);\n\n assertEquals(200, response.getStatus());\n String responseString = new String(response.getResponseBody());\n assertTrue(responseString.contains(\"Hello Mojarra\"));\n }", "public static void main(String[] args) {\n // initialize Logging\n try {\n ClassLoader classLoader = WebServer.class.getClassLoader();\n final InputStream logConfig = classLoader.getResourceAsStream(\"log.properties\");\n LogManager.getLogManager().readConfiguration(logConfig);\n } catch (Exception e) {\n e.printStackTrace();\n System.err.println(\"Could not initialize log manager because: \" + e.getMessage());\n }\n\n // The application uses Gson to generate JSON representations of Java objects.\n // This should be used by your Ajax Routes to generate JSON for the HTTP\n // response to Ajax requests.\n\n LOG.info(\"NGAFID WebServer is initializing.\");\n\n // Get the port for the NGAFID webserver to listen on\n Spark.port( Integer.parseInt(System.getenv(\"NGAFID_PORT\")) );\n //String base = \"/\" + System.getenv(\"NGAFID_NAME\") + \"/\";\n\n // Configuration to serve static files\n //Spark.staticFiles.location(\"/public\");\n if (System.getenv(\"SPARK_STATIC_FILES\") == null) {\n System.err.println(\"ERROR: 'SPARK_STATIC_FILES' environment variable not specified at runtime.\");\n System.err.println(\"Please add the following to your ~/.bash_rc or ~/.profile file:\");\n System.err.println(\"export SPARK_STATIC_FILES=<path/to/template_dir>\");\n System.exit(1);\n }\n Spark.staticFiles.externalLocation(System.getenv(\"SPARK_STATIC_FILES\"));\n\n Spark.before(\"/protected/*\", (request, response) -> {\n LOG.info(\"protected URI: \" + request.uri());\n\n //if the user session variable has not been set, then don't allow\n //access to the protected pages (the user is not logged in).\n User user = (User)request.session().attribute(\"user\");\n if (user == null) {\n LOG.info(\"redirecting to access_denied\");\n response.redirect(\"/access_denied\");\n } \n });\n\n Spark.before(\"/\", (request, response) -> {\n User user = (User)request.session().attribute(\"user\");\n if (user != null) {\n LOG.info(\"user already logged in, redirecting to dashboard!\");\n response.redirect(\"/protected/dashboard\");\n }\n });\n\n Spark.get(\"/\", new GetHome(gson));\n Spark.get(\"/access_denied\", new GetHome(gson, \"danger\", \"You attempted to load a page you did not have access to or attempted to access a page while not logged in.\"));\n Spark.get(\"/logout_success\", new GetHome(gson, \"primary\", \"You have logged out successfully.\"));\n\n\n\n //the following need to be accessible for non-logged in users, and\n //logout doesn't need to be protected\n Spark.post(\"/login\", new PostLogin(gson));\n Spark.post(\"/logout\", new PostLogout(gson));\n\n //for account creation\n Spark.get(\"/create_account\", new GetCreateAccount(gson));\n Spark.post(\"/create_account\", new PostCreateAccount(gson));\n\n //to reset a password\n Spark.get(\"/reset_password\", new GetResetPassword(gson));\n Spark.post(\"/reset_password\", new PostResetPassword(gson));\n\n\n Spark.get(\"/protected/dashboard\", new GetDashboard(gson));\n Spark.get(\"/protected/waiting\", new GetWaiting(gson));\n\n Spark.get(\"/protected/manage_fleet\", new GetManageFleet(gson));\n Spark.post(\"/protected/update_user_access\", new PostUpdateUserAccess(gson));\n\n Spark.get(\"/protected/update_profile\", new GetUpdateProfile(gson));\n Spark.post(\"/protected/update_profile\", new PostUpdateProfile(gson));\n\n Spark.get(\"/protected/update_password\", new GetUpdatePassword(gson));\n Spark.post(\"/protected/update_password\", new PostUpdatePassword(gson));\n\n Spark.get(\"/protected/uploads\", new GetUploads(gson));\n Spark.post(\"/protected/remove_upload\", new PostRemoveUpload(gson));\n\n Spark.get(\"/protected/imports\", new GetImports(gson));\n Spark.post(\"/protected/upload_details\", new PostUploadDetails(gson));\n\n //Spark.post(\"/protected/get_uploads\", new PostUploads(gson));\n //Spark.post(\"/protected/get_imports\", new PostImports(gson));\n Spark.get(\"/protected/flights\", new GetFlights(gson));\n Spark.post(\"/protected/get_flights\", new PostFlights(gson));\n Spark.get(\"/protected/get_kml\", new GetKML(gson));\n\n Spark.get(\"/protected/create_event\", new GetCreateEvent(gson));\n Spark.post(\"/protected/create_event\", new PostCreateEvent(gson));\n\n //routes for uploading files\n Spark.post(\"/protected/new_upload\", \"multipart/form-data\", new PostNewUpload(gson));\n Spark.post(\"/protected/upload\", \"multipart/form-data\", new PostUpload(gson));\n\n Spark.post(\"/protected/coordinates\", new PostCoordinates(gson));\n Spark.post(\"/protected/double_series\", new PostDoubleSeries(gson));\n Spark.post(\"/protected/double_series_names\", new PostDoubleSeriesNames(gson));\n\n Spark.get(\"/protected/*\", new GetDashboard(gson, \"danger\", \"The page you attempted to access does not exist.\"));\n Spark.get(\"/*\", new GetHome(gson, \"danger\", \"The page you attempted to access does not exist.\"));\n\n LOG.info(\"NGAFID WebServer initialization complete.\");\n }", "public interface DevTemplate {\n\t\n\tString name=\"selenium\";\n\t// these features have to implemented for chrome browser, FF browser and IE browser\n\tvoid browserMethod();\n\tvoid OpenURL();\n\tvoid senddata();\n\tvoid click();\n\tvoid getattribute();\n\n}", "public Backend() {\t\t\n\t\tthis.rpc = new HttpPost(Backend.URL_BASE + Backend.URL_PATH_RPC);\n\t\tthis.rpc.setHeader(Backend.HEADER_CONTENT_TYPE, Backend.HEADER_VALUE_CONTENT_TYPE);\n\t\t\n\t\tthis.shutdown = new HttpGet(Backend.URL_BASE + Backend.URL_PATH_SHUTDOWN);\n\t\tthis.ping = new HttpGet(Backend.URL_BASE + Backend.URL_PATH_PING);\n\t\tthis.guid = new HttpGet(Backend.URL_BASE + Backend.URL_PATH_GUID);\n\t\t\n\t\tFile basePath = new File(\"\");\n\t\ttry {\n\t\t\tbasePath = new File(FileLocator.toFileURL(Activator.getDefault().getBundle().getEntry(\"/\")).toURI());\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(\"Could not resolve bundle absolute path.\");\n\t\t\tSystem.err.print(e);\n\t\t}\n\t\t\n\t\tthis.processRunner.setProcessPath(new File(basePath, Backend.NODE_PATH).getAbsolutePath());\n\t\tthis.processRunner.setArguments(\n\t\t\tnew File(basePath, Backend.APPLICATION_ENTRY_PATH).getAbsolutePath(),\n\t\t\tBackend.APPLICATION_OPTIONS\n\t\t);\n\t}", "private static void startJetty(String descriptor, String resourceBase, int port) throws Exception {\n Server server = new Server(8080);\n WebAppContext webapp = new WebAppContext();\n webapp.setContextPath(\"/znz-web\");\n webapp.setResourceBase(\"d:/git/znz-web/src/main/webapp/\");\n // webapp.setDescriptor(\"d:/git/znz-web/src/main/webapp/WEB-INF/web.xml\");\n server.setHandler(webapp);\n server.start();\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Spring Data repository for the Paypal entity.
@SuppressWarnings("unused") @Repository public interface PaypalRepository extends JpaRepository<Paypal, Long> { }
[ "@Repository\npublic interface IPaymentRepository extends JpaRepository<Payment, Long> {\n}", "public interface PaymentContextRepository extends CrudRepository<PaymentContext, Long> {\n\n}", "public interface SellerPaymentsTypeRepositrory extends CrudRepository<SellerPaymentsType, Integer> {\n\t\n\t\n\t/**\n\t * Find by payment title.\n\t *\n\t * @param sellerPaymentsTypeId the seller payments type id\n\t * @return the seller payments type\n\t */\n\t@Query(value = \"select * from sellerpaymentstype where seller_Payments_Type_Id=?1 \", nativeQuery = true)\n\tpublic SellerPaymentsType findByPaymentTitle(int sellerPaymentsTypeId);\n\n\n}", "public interface CurrencyRepository extends JpaRepository<Currency, Long> {\n\n}", "public interface UserBillingRepository extends CrudRepository<UserBilling, Long> {\n\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface PayCardRepository extends JpaRepository<PayCard, Long>, JpaSpecificationExecutor<PayCard> {\n\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface OrdPaymentRefRepository extends JpaRepository<OrdPaymentRef, Long>, JpaSpecificationExecutor<OrdPaymentRef> {}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface ApprovalRequestItemRepository extends JpaRepository<ApprovalRequestItem, Long> {}", "public interface PurchaseRequestRepository extends JpaRepository<PurchaseRequest, Long> {\n\n}", "@Repository\npublic interface ItemPedidoRepository extends JpaRepository<ItemPedido, Long> {\n\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface PaymentFournisseurRepository extends JpaRepository<PaymentFournisseur, Long> {\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface PlayerCurrencyRepository extends JpaRepository<PlayerCurrency, Long> {\n\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface CertificatRepository extends JpaRepository<Certificat, Long> {}", "@Repository\npublic interface DealerRepository extends JpaRepository<Dealer,Long> {\n\n}", "@Repository\npublic interface OrderPaymentRepository extends JpaRepository<OrderPayment, String>{\n\t\n\t@Query(\"select op from com.sandeep.entity.OrderPayment op where op.order.orderId=?1\")\n\tList<OrderPayment> getAllPaymentsByOrderId(Long orderId);\n\t\n\t@Query(value=\"select * from order_payments where order_id=?1 order by created_on desc limit 1;\", nativeQuery=true)\n\tOrderPayment getBalanceAmountForOrderId(Long orderId);\n\n}", "@Repository\npublic interface SaleRepository extends JpaRepository<Sale, Long> {\n\n\tSale findById(long Id);\n\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface AttractionPurchaseRepository extends JpaRepository<AttractionPurchase, Long> {\n\n}", "@Repository\npublic interface ProductRepository extends JpaRepository<Product, Long> {\n\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface ReceiptItemRepository extends JpaRepository<ReceiptItem, Long> {\n\n}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set numDecimals to numDecimals.
public void setNumDecimals(int numDecimals) { this.numDecimals = numDecimals; }
[ "public void setNoOfDecimals(int value) {\n this.noOfDecimals = value;\n }", "public void setNumDecimalPlaces(int num) {\n m_numDecimalPlaces = num;\n }", "public void setDecimals(int decimals) {\n this.converter.decimalsProperty().set(decimals);\n }", "public void setDecimals(JTextField decimals) {\n\t\tthis.decimals = decimals;\n\t}", "public void setDecimals(int decimals) throws java.beans.PropertyVetoException {\r\n this.decimals = decimals;\r\n if (!isInteger()) {\r\n numberFormat.setMaximumFractionDigits(decimals);\r\n numberFormat.setMinimumFractionDigits(decimals);\r\n }\r\n this.setText( numberFormat.format(getValue()));\r\n }", "public final void testSetDecimals() {\n int decimals = 2;\n SeekBarPreference seekBarPreference = new SeekBarPreference(getContext());\n seekBarPreference.setDecimals(decimals);\n assertEquals(decimals, seekBarPreference.getDecimals());\n }", "public void refreshDecimals() {\r\n\tint decimal = config.getDecimalPlaces();\r\n\tdecimals.setDecimals(decimal);\r\n\tsetColumnDecimals();\r\n }", "@JSProperty(\"valueDecimals\")\n void setValueDecimals(double value);", "public void setDecimalPlaces(int places) {\n places = Math.abs(places);\n places = Math.min(places, 5);\n format.setMinimumIntegerDigits(1);\n format.setMinimumFractionDigits(places);\n format.setMaximumFractionDigits(places);\n }", "public void setDecimalPlaces(BigInteger decimalPlaces) {\n this.decimalPlaces = decimalPlaces;\n }", "public void setDecimalSize(int size);", "@JSProperty(\"changeDecimals\")\n void setChangeDecimals(double value);", "public void numberOfDecimalPlaces(int trunc){\n this.trunc = trunc;\n }", "void setPrecision(double precision);", "public static double setDecimal(double value, int numberOfDecimal) {\n\t\tBigDecimal dec = new BigDecimal(value);\n\t\tdec = dec.setScale(numberOfDecimal, BigDecimal.ROUND_HALF_UP);\n\t\treturn dec.doubleValue();\n\t}", "private void setDigitsAfterDot(int digits) {\n // check for logical error\n if(digits < 0) {\n // error ..\n eHandler.newError(ErrorType.INVALID_ARGUMENT, \"setDigitsAfterDot\" , \"Negative digits number\");\n\n // exit from method\n return;\n } // end of if statement\n\n // set the digitsAfterDot\n digitsAfterDot = digits;\n\n }", "public void setNumDigits(int digits) {\r\n \r\n //Set Value\r\n numDigits = digits;\r\n \r\n }", "void setDecimal(String decimal);", "public AxisOptions clearTickDecimals()\r\n {\r\n clear( TICK_DECIMALS_KEY );\r\n return this;\r\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Matches sets of modifiers that have None of these modifiers
public static $modifiers not(Collection<Modifier> mods ){ $modifiers $mods = new $modifiers(); $mods.mustExclude.addAll(mods); return $mods; }
[ "public MethodPredicate withoutModifiers(Collection<Integer> modifiers) {\n this.withoutModifiers = new ArrayList<>(modifiers);\n return this;\n }", "public FieldPredicate withoutModifiers(Collection<Integer> modifiers) {\n this.withoutModifiers = new ArrayList<>(modifiers);\n return this;\n }", "public boolean isNotNullModifiers() {\n return cacheValueIsNotNull(CacheKey.modifiers);\n }", "public boolean isNotNullModifierIds() {\n return cacheValueIsNotNull(CacheKey.modifierIds);\n }", "public MethodPredicate withoutModifiers(int... modifiers) {\n this.withoutModifiers = Arrays.stream(modifiers).boxed().collect(Collectors.toList());\n return this;\n }", "public FieldPredicate withoutModifiers(int... modifiers) {\n this.withoutModifiers = Arrays.stream(modifiers).boxed().collect(Collectors.toList());\n return this;\n }", "private void assertAllModifiersCovered() {\r\n Set<String> coveredModifiers = Sets.newHashSet(\"NONE\",\r\n \"EVICT_ONLY\",\r\n \"FIFO_GROUPING_POLL\",\r\n \"FIFO\",\r\n \"IF_EXISTS\",\r\n \"IGNORE_PARTIAL_FAILURE\",\r\n \"MEMORY_ONLY_SEARCH\");\r\n\r\n Set<String> actualModifiers = new Constants(TakeModifiers.class).getNames(\"\");\r\n \r\n Assert.assertEquals(\"Missing modifier should be added to openspaces-core.xsd!\", \r\n coveredModifiers, actualModifiers);\r\n }", "public boolean isNotEmptyModifiers() {\n return isNotNullModifiers() && !getModifiers().isEmpty();\n }", "public $body $not( $part...parts ){\n for(int i=0;i<parts.length;i++){\n final $part $p = parts[i];\n Predicate<_body> pb = b-> (($pattern)$p).firstIn(b) != null;\n $and( pb.negate() );\n }\n return this;\n }", "public void testMatcherWithoutRegularExpressions() {\n // Test with full names\n checkMatcher(\"p1\", Sets.newHashSet(\"p1\"));\n checkMatcher(\"Eddy\", Sets.newHashSet(\"Eddy\"));\n checkMatcher(\"M with 'simple' quotes\", Sets.newHashSet(\"M with 'simple' quotes\"));\n\n // Test with beginning of names\n checkMatcher(\"Me\", Sets.newHashSet(\"Merks\"));\n checkMatcher(\"E\", Sets.newHashSet(\"Ed\", \"Eddy\"));\n checkMatcher(\"X\", new HashSet<String>());\n\n }", "public void testMatcherWithEmptyPattern() {\n checkMatcher(\"\", Sets.newHashSet(\"p1\", \"p2\", \"p3\", \"4\", \"Ed\", \"Eddy\", \"Merks\", \"Mum\", \"Mom\", \"M with 'simple' quotes\", \"M with spaces s\", \"M with \\\"quotes\\\" s\", \"Mummy\", \"mummY\"));\n checkMatcher(null, Sets.newHashSet(\"p1\", \"p2\", \"p3\", \"4\", \"Ed\", \"Eddy\", \"Merks\", \"Mum\", \"Mom\", \"M with 'simple' quotes\", \"M with spaces s\", \"M with \\\"quotes\\\" s\", \"Mummy\", \"mummY\"));\n }", "default boolean modifierKeysEmpty() {\n\treturn getModifierKeys() == null || getModifierKeys().length == 0;\n }", "boolean getUseAllPossibleDisjunctions();", "public abstract boolean canMatchEmpty();", "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 void testMatchingEmpty() {\n pattern = new ProductionPattern(P1, \"P1\");\n alt = new ProductionPatternAlternative();\n alt.addProduction(P2, 0, -1);\n alt.addToken(T1, 0, 1);\n alt.addProduction(P1, 0, 1);\n addAlternative(pattern, alt);\n assertTrue(pattern.isMatchingEmpty());\n }", "static boolean none(EnumSet<Trait> traits, Trait... args)\n {\n return Arrays.stream(args).noneMatch(traits::contains);\n }", "public void clearModifiers();", "boolean getGetUnusedConditionPartsNull();" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the result of interpreting the object as an instance of 'Or'. This implementation returns null; returning a nonnull result will terminate the switch.
public T caseOr(Or object) { return null; }
[ "public T caseOr(Or object)\n {\n return null;\n }", "public T caseLogicalOrExpression(LogicalOrExpression object)\n {\n return null;\n }", "public T caseOrExpression(OrExpression object)\n {\n return null;\n }", "public T caseORNodeExpression(ORNodeExpression object)\n {\n return null;\n }", "public T caseEFLogicOr(EFLogicOr object) {\r\n\t\treturn null;\r\n\t}", "public T caseOrden(Orden object) {\n\t\treturn null;\n\t}", "String getOr_op();", "@Override\n public ILogical or(ILogical operador) {\n return operador.orBinary(this);\n }", "public abstract R getRightOr(R or);", "public boolean getOR() {\n return OR;\n }", "DSL_Expression_Or createDSL_Expression_Or();", "@Nonnull\n\tstatic LLogicalBinaryOperator or() {\n\t\treturn Boolean::logicalOr;\n\t}", "public boolean getOR() {\n return OR;\n }", "private Expr or() {\n Expr expr = and();\n while (match(OR)) {\n Token operator = previous();\n Expr right = and();\n expr = new Expr.Logical(expr, operator, right);\n }\n\n return expr;\n }", "public T caseUnion(Union object) {\n\t\treturn null;\n\t}", "@Test\n\tpublic void testOr() {\n\t\tOr instruction = new Or(\"or\", \"$s5\", \"$s7\", \"$t1\");\n\t\t\n\t\t// test fields\n\t\tassertEquals(\"or\", instruction.getOpcode());\t// opcode\n\t\tassertEquals(\"$s5\", instruction.getRd());\t\t// rd\n\t\tassertEquals(\"$s7\", instruction.getRs());\t\t// rs\n\t\tassertEquals(\"$t1\", instruction.getRt());\t\t// rt\n\t}", "public T caseObjectOrRole(ObjectOrRole object) {\n\t\treturn null;\n\t}", "private Node parseOr() {\n\t\tList<Node> children = new LinkedList<>();\n\t\t\n\t\twhile (true) {\n\t\t\tchildren.add(parseXor());\n\t\t\t\n\t\t\tcheckPostExpression();\n\t\t\t\n\t\t\tif (tokenIsType(TokenType.OPERATOR) && \"or\".equals(getTokenValue())) {\n\t\t\t\tgetNextToken();\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\tif (children.size() == 1) {\n\t\t\treturn children.get(0);\n\t\t}\n\t\t\n\t\treturn new BinaryOperatorNode(\n\t\t\t\t\"or\",\n\t\t\t\tchildren,\n\t\t\t\tBoolean::logicalOr\n\t\t);\n\t}", "OrExpr createOrExpr();" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column trade_order.shipping_id
public void setShippingId(Integer shippingId) { this.shippingId = shippingId; }
[ "public void setShippingId(Integer shippingId) {\n this.shippingId = shippingId;\n }", "public void setShipping_id(Byte shipping_id) {\n this.shipping_id = shipping_id;\n }", "public Integer getShippingId() {\r\n return shippingId;\r\n }", "public Integer getShippingId() {\n return shippingId;\n }", "public void setShippingId(int shippingId) {\n\t\tthis.shippingId = shippingId;\n\t}", "void setShipping(BigDecimal shipping);", "@Id\r\n\t@GeneratedValue(strategy = IDENTITY)\r\n\t@Column(name = \"shipping_address_id\", unique = true, nullable = false)\r\n\tpublic Long getShippingAddressId() {\r\n\t\treturn shippingAddressId;\r\n\t}", "public Builder setShippingTrackingId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n shippingTrackingId_ = value;\n onChanged();\n return this;\n }", "public String getShippingId() {\n return shippingId;\n }", "public void setShippingAddressId(Long shippingAddressId) {\r\n\t\tthis.shippingAddressId = shippingAddressId;\r\n\t}", "public void setShippingKey(final String shippingKey);", "Update withReturnShipping(ReturnShipping returnShipping);", "java.lang.String getShippingTrackingId();", "public Byte getShipping_id() {\n return shipping_id;\n }", "public void setShipping(Address ship)\r\n\t{\r\n\t\tshipping = ship;\r\n\t}", "public void setShippingAmount(MMDecimal shippingAmount) {\r\n this.shippingAmount = shippingAmount;\r\n }", "public void setShippingDeailsId(Long shippingDeailsId) {\r\n this.shippingDeailsId = shippingDeailsId;\r\n }", "public void setShipping_price(java.lang.String shipping_price) {\n this.shipping_price = shipping_price;\n }", "@Override\n\tpublic void setShippingCountry(java.lang.String shippingCountry) {\n\t\t_bookOrder.setShippingCountry(shippingCountry);\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
method to insert user defined stock list or update
void insertOrUpdate(StockList stockList) throws Exception;
[ "org.datacontract.schemas._2004._07.cdiscount_service_marketplace_api_external_contract_data_product.ArrayOfProductStock addNewProductStockList();", "public void addStock(Stock stock);", "stockFilePT102.StockDocument.Stock insertNewStock(int i);", "public void UpdateNewStock(ArrayList<StockData> newUpdStockData){\n for (int i = 0; i < newUpdStockData.size(); i++){\n mysqlfiles.MorningStock(newUpdStockData.get(i));\n }\n }", "public void addStock(Stock stock) {\n Log.d(TAG, \"addStock: Adding stock \" + stock.getStock_symbol());\n\n ContentValues values = new ContentValues();\n values.put(SYMBOL, stock.getStock_symbol());\n values.put(COMPANY, stock.getCompany_name());\n database.insert(TABLE_NAME, null, values);\n\n }", "public void addStoreStock(String name, int amount);", "public Stock updateStock(Stock stock);", "public Stock saveStock(Stock stock);", "private void updateStocks(StockTransferTransactionRequest item) {\n\n Integer updatedQuantity = item.getQuantity();\n StockTraderServiceFactoryIF serviceFactory = new StockTraderServiceFactory();\n DematServiceIF dematService = serviceFactory.dematService();\n\n Optional<Integer> oldQuantity = dematService.getStockStatus(item.getUserName(),\n item.getStock());\n if(oldQuantity != null && oldQuantity.get() > 0) {\n updatedQuantity = oldQuantity.get() + item.getQuantity();\n }\n try(Connection conn = DriverManager.getConnection(Constants.DB_URL,\n Constants.USER,\n Constants.PASS);\n PreparedStatement stmt = conn.prepareStatement(\n Constants.MERGE_STOCK)) {\n stmt.setString(1, item.getUserName());\n stmt.setString(2, item.getStock().toString());\n stmt.setInt(3, updatedQuantity);\n stmt.execute();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n }", "public void processStockList(List<Stock> stockList);", "public void addWarehouseStock(String name, int amount);", "public void insertOrderedItems(TireList orderedItems){\n for(int i=0; i<orderedItems.listSize(); i++){\n int temp = Integer.parseInt(orderedItems.getTire(i).getStock()) - orderedItems.getTire(i).getQuantity();\n orderedItems.getTire(i).setStock(temp + \"\");\n orderedItems.getTire(i).updateTire();\n sql=\"Insert into OrderedItems (OrderID, TireID, Quantity) VALUES ('\"+newID+\"','\"+orderedItems.getTire(i).getStockID()+\"',\"+orderedItems.getTire(i).getQuantity()+\")\";\n db.insertDB(sql); \n }\n }", "void recordStock(Stock stock);", "public static void addStock(Stock sIn) \n\t{ \n\t\tdbConnection();\n\t\ttry {\n\t\t\tjava.sql.PreparedStatement pstatement = conn.prepareStatement(\"INSERT INTO DevOpsPansies.Stock(SuppOrderId,Name,Expiry,quantity,Colour,price,code) values(?,?,?,?,?,?,?)\");\n\t\t\tpstatement.setInt(1, sIn.getSupOrderId());\n\t\t\tpstatement.setString(2, sIn.getName());\n\t\t\tpstatement.setString(3, sIn.getExpiry());\n\t\t\tpstatement.setString(4,sIn.getQuantity());\n\t\t\tpstatement.setString(5,sIn.getColour());\n\t\t\tpstatement.setDouble(6,sIn.getPrice());\n\t\t\tpstatement.setString(7,sIn.getCode());\n\t\t\tpstatement.executeUpdate();\n\t\t\tJOptionPane.showMessageDialog(null, \"Stock added to the Stock table\");\n\t\t} catch (SQLException e1) {\n\t\t\tSystem.out.println(\"ERROR EXECUTING PREPARED STATEMENT\");\n\t\t\te1.printStackTrace();\n\t\t}\n\n\t\tcloseConnection();\n\t}", "public void add(Stock s)\n {\n stocks.add(s);\n }", "public abstract void addStock(Stock stock) throws DeliveryException;", "void addStock(String symbol, StockType type, BigDecimal lastDividend, BigDecimal fiedDividend, BigDecimal parValue);", "public void StockInHistoryIns(stockInHistroy stockInHistroy);", "List<Dvd> listStockToReplace() throws DaoException;" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The general contract of a Publisher
interface Publisher { public void add(Subscriber sub); public void publish(String message); }
[ "public interface Publisher {\n\t// Publishes new message to PubSubService\n\tvoid publish(Message message, PubSubService pubSubService);\n}", "public void subscribe(Publisher pub);", "public interface Publisher {\n\n\tMap<String, String> publish(String description, boolean uploadLogs) throws PublisherException;\n\n\t/**\n\t * \n\t * @param description\n\t * Description of the execution\n\t * @param uploadLogs\n\t * Publish also the logs\n\t * @return General purpose list of values. The most common usage of those\n\t * values is adding them to the body of the mail.\n\t * @throws Exception\n\t */\n\tMap<String, String> publish(String description, boolean uploadLogs, String[] publishOptions)\n\t\t\tthrows PublisherException;\n\n\t/**\n\t * This method will validate that the publisher server is up. The publisher\n\t * settings can be kept in the jsystem.properties.\n\t * \n\t * @return true if and only if the server is up\n\t */\n\tboolean isUp();\n\n\t/**\n\t * Implementation specific publish options\n\t * \n\t * @return \n\t */\n\tString[] getAllPublishOptions();\n}", "public interface Subscriber {\n void update(Publisher p, Object arg);\n\n}", "public void publish();", "public interface Publisher {\n\n /**\n * Method used to subscribe to updates on stock movements.\n *\n * @param u\n * @param product\n * @throws Exception\n */\n void subscribe(User u, String product) throws Exception;\n\n /**\n * Method used to un-subscribe to updates on stock movements.\n *\n * @param u user\n * @param product symbol\n * @throws Exception\n */\n void unSubscribe(User u, String product) throws Exception;\n}", "public void setPublisher(String publisher){\n this.publisher = publisher;\n }", "public void setPublisher(String publisher) {\n\tthis.publisher = publisher;\n}", "public void setPublisher(String publisher) {\n this.publisher = publisher;\n }", "public void publishTwo();", "public interface SyncEventPublisher<C, R> {\n\n /**\n * Publishes an event based using the underlying implementation.\n *\n * @param event the event to send\n * @return return value from processing the event\n */\n R publish(C event);\n}", "public interface PublisherStore {\r\n\r\n\t/**\r\n\t * Returns the publisher information for the given publisher id\r\n\t *\r\n\t * @param aId the publisher id to fetch\r\n\t * @return the publisher object\r\n\t * @throws Exception\r\n\t */\r\n\tPublisher getPublisher(String aId) throws Exception;\r\n\r\n\t/**\r\n\t * Removes the publisher from the store based on given id\r\n\t *\r\n\t *\r\n\t * @param aId\r\n\t * @throws Exception\r\n\t */\r\n\tvoid removePublisher(String aId) throws Exception;\r\n}", "public interface ShardedEventPublisher extends EventPublisher {\n \n /**\n * Add listener for default share publisher.\n *\n * @param subscriber {@link Subscriber}\n * @param subscribeType subscribe event type, such as slow event or general event.\n */\n void addSubscriber(Subscriber subscriber, Class<? extends Event> subscribeType);\n \n /**\n * Remove listener for default share publisher.\n *\n * @param subscriber {@link Subscriber}\n * @param subscribeType subscribe event type, such as slow event or general event.\n */\n void removeSubscriber(Subscriber subscriber, Class<? extends Event> subscribeType);\n}", "public void setPublisher(String publisher);", "pubsub.message.NetworkMessage.Messages.Publisher getPublisher();", "@Override\r\n\tpublic abstract boolean coversPublication(Publication pub);", "public interface Driver extends Publisher<DriveCommand> {\n\n}", "public interface Channel extends Publisher, Distributor {\n}", "public String getPublisher();" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test for method void java.util.Hashtable.clear()
@Test public void test_clear() { Hashtable<String, String> h = hashtableClone(htfull); h.clear(); assertEquals("Hashtable was not cleared", 0, h.size()); Enumeration<String> el = h.elements(); Enumeration<String> keys = h.keys(); assertTrue("Hashtable improperly cleared", !el.hasMoreElements() && !(keys.hasMoreElements())); }
[ "@Test\n void testClear() {\n HashTable table = new HashTable();\n table.put(\"key\", \"value\");\n table.put(\"key2\", \"value2\");\n table.clear();\n assertEquals(0, table.size());\n table.clear();\n assertEquals(0, table.size());\n }", "@org.junit.Test\n public void clear() throws Exception {\n hashTable.clear();\n assertEquals(null, hashTable.get(\"Savon\"));\n assertEquals(null, hashTable.get(\"Blue\"));\n assertEquals(null, hashTable.get(\"math\"));\n }", "@Test\n void testSize() {\n HashTable table = new HashTable();\n assertEquals(0, table.size());\n table.put(\"key\", \"value\");\n assertEquals(1, table.size());\n table.put(\"key2\", \"value\");\n assertEquals(2, table.size());\n table.remove(\"key2\");\n assertEquals(1, table.size());\n table.clear();\n assertEquals(0, table.size());\n }", "@Test\n public void test_removeLjava_lang_Object() {\n Hashtable<String, String> h = hashtableClone(htfull);\n Object k = h.remove(\"FKey 0\");\n assertTrue(\"Remove failed\", !h.containsKey(\"FKey 0\") || k == null);\n }", "@Test\n void testRemove() {\n HashTable table = new HashTable();\n table.put(\"key\", \"value\");\n assertNull(table.remove(\"key2\"));\n assertEquals(\"value\", table.remove(\"key\"));\n assertFalse(table.contains(\"key\"));\n assertNull(table.remove(\"key\"));\n }", "public void clear (){\n\t\tfor (int i = 0; i < table.length; i++)\n\t\t\ttable[i] = null;\n\n\t\t// we have modified the hash table, and it has\n\t\t// no entries\n\t\tmodCount++;\n\t\thashTableSize = 0;\n\t}", "@Test\r\n public void testClear() {\r\n BiMap<Integer, String> biMap = new BiMap();\r\n biMap.put(1, \"One\");\r\n biMap.put(2, \"Two\");\r\n biMap.put(3, \"Three\");\r\n biMap.clear();\r\n assertEquals(0, biMap.size());\r\n assertEquals(0, biMap.getKeyFromValueMap().size());\r\n assertEquals(0, biMap.getValueFromKeyMap().size());\r\n }", "public void testNormalClearIsEmpty()\r\n throws Exception\r\n {\r\n try\r\n {\r\n SCOMapTests.checkClearMap(pmf,\r\n HashMap1.class,\r\n ContainerItem.class);\r\n }\r\n finally\r\n {\r\n clean(HashMap1.class);\r\n clean(ContainerItem.class);\r\n }\r\n }", "public void clear() {\n this.table = (MapEntry<K, V>[]) new MapEntry[INITIAL_CAPACITY];\n this.size = 0;\n }", "public void clearTable(){\n this.table.clear();\n }", "@Test\n public void testClearAll() {\n NameValueMap instance = new NameValueMap();\n Iterator<String> iterFields = instance.getFields();\n while (iterFields.hasNext()) {\n fail(\"you should never enter here\");\n iterFields.next();\n }\n String[] someFieldNames = {\"a\", \"B\", \"C\", \"d\", \"FK121_RES_TBL\"};\n for (int i = 0; i < someFieldNames.length; ++i)\n instance.setFieldValue(someFieldNames[i], null);\n iterFields = instance.getFields();\n assertTrue(iterFields.hasNext());\n instance.clearAll();\n iterFields = instance.getFields();\n while (iterFields.hasNext()) {\n fail(\"you should never enter here\");\n iterFields.next();\n }\n }", "@Test\n public void testClearOnEmptyMap() {\n if (!doesMapSupportRemove()) return;\n \n Map originalMap = createEmptyMap();\n originalMap.clear();\n \n assertTrue(originalMap.isEmpty());\n }", "@Before\r\n public void test_change(){\r\n HashTable<String,String> table = new HashTable<>(1);\r\n MySet<String> s = (MySet<String>) table.keySet();\r\n table.put(\"AA\",\"BB\");\r\n table.put(\"AA\",\"CC\");\r\n assertTrue(s.contains(\"AA\"));\r\n table.remove(\"AA\");\r\n assertFalse(s.contains(\"AA\"));\r\n }", "@Override\r\n @SuppressWarnings(\"unchecked\")\r\n public void clear() {\r\n size = 0;\r\n hashTable = new LinkedList[capacity];\r\n }", "public void testClear() {\n // Get the default name.\n assertTrue(impl.contains(\"MySqlJDBCConnection\"));\n\n impl.add(\"newName\", producer);\n\n assertTrue(impl.contains(\"newName\"));\n\n impl.clear();\n\n // Get nothing.\n assertFalse(\"Shuold get nothing and return false.\", impl.contains(\"MySqlJDBCConnection\"));\n assertFalse(\"Shuold get nothing and return false.\", impl.contains(\"newName\"));\n }", "public void clearTriples()\n { table.clear() ; }", "@Test\n public void test_isEmpty() {\n\n assertTrue(\"isEmpty returned incorrect value\", !ht10.isEmpty());\n assertTrue(\"isEmpty returned incorrect value\", new Hashtable<String, String>().isEmpty());\n }", "@Test\n public void testClear_EmptyMap() {\n configureAnswer();\n testObject.clear();\n\n verifyZeroInteractions(helper);\n }", "public void testReset() {\n System.out.println(\"testReset\");\n Dictionary dictionary = new Dictionary();\n dictionary.reset();\n dictionary.reset();\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Add to the list of emotes
public void addEmote(EmoteAndIndices emoteSet) { emotes.put(emoteSet.getBegin(), emoteSet); }
[ "void addEmotion(Emotion emotion) {\n // Get the stored emotions and add the emotion passed in the parameter\n getStoredEmotions().addEmotion(emotion);\n }", "public Map<Integer, EmoteAndIndices> getEmotes()\n {\n return emotes;\n }", "public void attachEvidences(List<Evidence> evidences);", "public void addEntity(Entity e)\n {\n entities.add(e); \n }", "public List<Emotion> getEmotions();", "public void addMessage(String msg){messages.add(msg);}", "public void addMoteToList(SwapMote mote)\n {\n swapMotes.addElement(\"Addr: \" + mote.getAddress() + \" Prod: \" + mote.getProduct());\n }", "public ArrayList<ChatEmote> findChatEmote(String message, Emote emote){\n\t\tArrayList<ChatEmote> list = new ArrayList<ChatEmote>();\n\t\tif(message.contains(emote.getName())){\n\t\t\tint lastIndex = 0;\n\t\t\twhile(lastIndex != -1){\n\t\t\t lastIndex = message.indexOf(emote.getName(),lastIndex);\n\t\t\t if(lastIndex != -1){\n\t\t\t \tboolean foundEmote = false;\n\t\t\t \t\n\t\t\t \tif(lastIndex==0){\n\t\t\t \t\tif(message.equals(emote.getName()) || message.charAt(emote.getName().length())==' ')\n\t\t\t \t\t\tfoundEmote = true;\n\t\t\t \t}\n\t\t\t \telse if(lastIndex+emote.getName().length()==message.length()){\n\t\t\t \t\tif(message.charAt(lastIndex-1)==' ')\n\t\t\t \t\t\tfoundEmote = true;\n\t\t\t \t}\n\t\t\t \telse{\n\t\t\t \t\tif(message.charAt(lastIndex-1)==' ' && message.charAt(lastIndex+emote.getName().length())==' ')\n\t\t\t \t\t\tfoundEmote = true;\n\t\t\t \t}\n\t\t\t \tif(foundEmote)\n\t\t\t \t\tlist.add(new ChatEmote(message, emote.getEmoteType(), emote.getID(), lastIndex, lastIndex+(emote.getName().length()-1)));\n\t\t\t \tlastIndex+=1;\n\t\t\t }\n\t\t\t}\n\t\t}\n\t\treturn list;\n\t}", "private void addToFavorite() {\n\n ArrayList<String> favorite;\n String text = tvMessage.getText().toString();\n boolean textAlreadyExists=false;\n if(AppPreferences.getFavoriteList(getActivity())== null) {\n favorite = new ArrayList<>();\n favorite.add(text);\n AppPreferences.setFavoriteList(getActivity(),favorite);\n Snackbar.make(tvMessage, R.string.added_to_fav,Snackbar.LENGTH_LONG).show();\n }else {\n favorite = AppPreferences.getFavoriteList(getActivity());\n\n for(int i=0;i<favorite.size();i++)\n {\n if(text.equals(favorite.get(i)))\n {\n textAlreadyExists=true;\n break;\n }\n }\n if(!textAlreadyExists)\n {\n favorite.add(text);\n AppPreferences.setFavoriteList(getActivity(),favorite);\n Snackbar.make(tvMessage, R.string.added_to_fav,Snackbar.LENGTH_LONG).show();\n updateWidget(getActivity());\n }else{\n Snackbar.make(tvMessage, R.string.already_exist_in_fav_list,Snackbar.LENGTH_LONG).show();\n }\n }\n }", "private void AddParticipants()\n {\n ArrayList<String> emailBuffer =\n (ArrayList<String>) MiddleMan.getConversationObject();\n\n AddParticipantsToConversationAsyncTask aptc =\n new AddParticipantsToConversationAsyncTask(conversation.getID(), emailBuffer, new IListener<ArrayList<String>>()\n {\n @Override\n public void onBegin()\n {}\n\n @Override\n public void onFinish(WebServiceResult<ArrayList<String>> result)\n {\n if (result.status != 0)\n Toast.makeText(activity, result.message, Toast.LENGTH_LONG).show();\n }\n });\n\n aptc.execute();\n }", "public void addElts(NoteToken note){\r\n NotesList.add(note);\r\n }", "public void doAddMotes(MoteType moteType) {\n if (mySimulation != null) {\n mySimulation.stopSimulation();\n\n Vector<Mote> newMotes = AddMoteDialog.showDialog(getTopParentContainer(), mySimulation,\n moteType);\n if (newMotes != null) {\n for (Mote newMote : newMotes) {\n mySimulation.addMote(newMote);\n }\n }\n\n } else {\n logger.warn(\"No simulation active\");\n }\n }", "public void addEntity(Entity e)\r\n\t{\r\n\t\tentities.add(e);\r\n\t}", "public void add(ReplyToPost reply){\n super.add(reply);\n list.add(reply);\n }", "private void addJobOffers(Model model, EmailUtil emailUtil) {\n ObservableList<JobOffer> contents = model.getFilteredCompanyJobList();\n for (JobOffer content : contents) {\n //if added successfully into linkedhashset, means it was not there.\n //if not added successfully then object already exists.\n if (!emailUtil.addJobOffer(content)) {\n duplicateJobOffers.add(content);\n } else {\n addedJobOffers.add(content);\n }\n }\n }", "public synchronized void putInRoom(Entity e){\n\t\tentities.add(e);\n\t}", "public void initiateOfferQueue() {\n List<Offer> offerList = offerRepository.findAll();\n\n if (!offerList.isEmpty()) {\n\n for (Offer offer : offerList) {\n\n addOfferToOfferBook(offer);\n }\n }\n\n }", "private void addNote() {\n if (checkNote()) {\n return;\n }\n\n Note note = new Note(noteTitle.getText(), noteBody.getText());\n\n notesToAdd.add(note);\n\n broadcast(\"Note successfully added!\");\n }", "public void addInboxMessage(Inbox message){\n if(inbox == null)\n inbox = new ArrayList<>();//new Arraylist if first time \n inbox.add(message); //add new message \n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns true if the given Edge Position is directed, otherwise false
public boolean isDirected(Position ep) throws InvalidPositionException;
[ "boolean isDirected();", "public boolean isEdge();", "public abstract boolean isUsing(Edge graphEdge);", "public boolean isEdgeVisible(Object edge);", "public abstract boolean hasEdge(int from, int to);", "public boolean isAdjacent(final Edge<E, V> edge) {\n return (!isDirected() && source().isOutIncident(edge)) || destination().isOutIncident(edge);\n }", "public boolean isInEdge(int width, int height, Position position);", "public boolean isDirected() {\r\n\t\treturn isDirected;\r\n\t}", "public abstract boolean getEdge(Point a, Point b);", "public boolean isEdge() {\n return SIMPLE_SHAPE_HEDGE.equals(this) || SIMPLE_SHAPE_VEDGE.equals(this);\n }", "@Override\n public Boolean isDirected() {\n\n return isDirected;\n }", "public boolean isEdge()\r\n\t\t\t{\r\n\t\t\t\treturn driver instanceof EdgeDriver;\r\n\t\t\t}", "public abstract boolean isConnectedInDirection(N n1, E edgeValue, N n2);", "public boolean isEdgePoint(ConnectPoint point) {\n Set<ConnectPoint> connectPoints = edgePorts.get(point.deviceId());\n return connectPoints != null && connectPoints.contains(point);\n }", "public boolean isAssymetricalEdge() { return assymetricalEdge; }", "boolean isEdge(Place p) {\n return isEdge(p.x, p.y);\n }", "public boolean isEdgeLabel();", "public boolean hasEdge(int i, int j){\n return adjMatrix[i][j];\n\n }", "@Override\n\tpublic boolean isAdjacent(T vertexA, T vertexB) {\n\t\tboolean is = false;\n\t\tint index = getIndexVertex(vertexA);\n\t\tfor (int i = 0; i < adjList.get(index).size(); i++) {\n\t\t\tif (adjList.get(index).get(i).getValue().equals(vertexB)) {\n\t\t\t\tis = true;\n\t\t\t}\n\t\t}\n\t\treturn is;\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
handles a player clicking yes by calling the respective consumer
@Override protected void onYes(final Player player) { if(this.onYes != null) { this.onYes.accept(player); } }
[ "void yesPressed();", "public void yesClick(View view){\n showAnswerResults(game.checkAnswer(1));\n }", "private void yesClicked(ActionEvent ae) {\n synchronized (this) {\n lastClicked = true;\n notifyAll();\n }\n }", "void onYesClicked(int position);", "public void onClick(PlayerInteractEvent e) {\n\n }", "void onPositiveClick();", "@Override\n public void onContinueDialogYesButtonClick() {\n startNewGame();\n }", "public void yahtzee_clicked(View view){\r\n TextView yahtzee;\r\n FrameLayout yahtzee_button;\r\n if(is_player_one_turn){\r\n yahtzee = (TextView) findViewById(R.id.player_one_yahtzee);\r\n yahtzee_button = (FrameLayout) findViewById(R.id.yahtzee_button_one);\r\n yahtzee_one_clicked = true;\r\n } else {\r\n yahtzee = (TextView) findViewById(R.id.player_two_yahtzee);\r\n yahtzee_button = (FrameLayout) findViewById(R.id.yahtzee_button_two);\r\n yahtzee_two_clicked = true;\r\n }\r\n if(exists_yahtzee)\r\n update_lower_points(50);\r\n else {\r\n yahtzee.setText(\"X\");\r\n update_total_points(0);\r\n }\r\n yahtzee.setTextColor(Color.BLACK);\r\n yahtzee_button.setOnClickListener(new View.OnClickListener(){\r\n\r\n @Override\r\n public void onClick(View view){\r\n nothing();\r\n }\r\n });\r\n reset_dices();\r\n }", "private void announceGameWinner()\n {\n\n }", "void askWantToPlay(AskWantToPlayEvent askWantToPlay);", "public void handleUseLeaderCards(ActionEvent event){\n\n if (playerState != PlayerState.LEADER) {\n sender.sendInput(\"use leader cards GUI\");\n }\n\n else {\n sender.sendInput(\"not use leader card\");\n playerState = lastPlayerState;\n setLeaderButtons(false);\n }\n }", "public void onYesDeletePlayer() {\n playerDAO.delete(player);\n (new MemoryLoggedInUser()).clear();\n view.dismissPopUp();\n view.startDeletePlayer();\n }", "public void ack(){\n gfh.getCurrent().ack(this.player);\n }", "public void yesBtnAction(MouseEvent event) throws SQLException, IOException {\n PatientWrapper wrapper = (PatientWrapper) Main.getUserWrapper();\n wrapper.setNext_appointment(next_appointment);\n questionnaire.saveChanges();\n wrapper.saveChanges();\n scheduler.saveChanges();\n (((Node) event.getSource()).getScene().getWindow()).hide();\n Main.setHomeScreen(false);\n }", "@FXML\n public void singlePlayerBtPressed() {\n getController().actionPerformedSingleplayerBtn();\n }", "public LambdaYesNoMenu(final String title, final Consumer<Player> onYes) {\r\n\t\tsuper(title);\r\n\t\t\r\n\t\tthis.onYes = onYes;\r\n\t\tthis.onNo = null;\r\n\t}", "public boolean saidYes(boolean onQuit) {\r\n\r\n System.out.print(\" (Y/N) \");\r\n \r\n\t\tchar responce = Keyboard.readChar();\r\n responce = Character.toLowerCase(responce);\r\n\r\n\t\tswitch (responce) {\r\n case 'y':\r\n return true;\r\n\r\n case 'q':\r\n case 'e':\r\n\r\n // Is the user is being asked to quit?\r\n if (onQuit) {\r\n return true;\r\n\t\t\t\t}\r\n\r\n endGameSwitch = true;\r\n return false;\r\n\r\n default:\r\n return false;\r\n }\r\n\t}", "public void handleActivateLeader(ActionEvent event){\n\n Button activateButton = (Button) event.getSource();\n\n if(activateButton== activate0){\n sender.sendInput(\"activate leader card 0\");\n activatedLeader = activate0;\n discardedLeader = burn0;\n }\n\n if(activateButton== activate1){\n sender.sendInput(\"activate leader card 1\");\n activatedLeader = activate1;\n discardedLeader = burn1;\n\n }\n\n if(activateButton== activate2){\n sender.sendInput(\"activate leader card 2\");\n activatedLeader = activate2;\n discardedLeader = burn2;\n\n }\n\n if(activateButton== activate3){\n sender.sendInput(\"activate leader card 3\");\n activatedLeader = activate3;\n discardedLeader = burn3;\n\n }\n\n activateButton.setDisable(true);\n\n }", "public void yes() {\n\t\tyes = new JButton(\"Yes\");\n\n\t\t// \"yes\" button's action listener\n\t\tyes.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tprevious = current;\n\t\t\t\tcurrent = current.getLeft();\n\n\t\t\t\t// if current is not a node, not a leaf\n\t\t\t\tif (current != null) {\n\t\t\t\t\tquestion.setText((String) current.getData());\n\t\t\t\t\tvalidate();\n\t\t\t\t}\n\n\t\t\t\t// Once you hit a leaf, set a final message\n\t\t\t\telse {\n\t\t\t\t\tquestion.setText(\"Wonderful! Hopefully, you found a story and lesson plan that will help you move forward in your journey! \");\n\t\t\t\t\tsouth.remove(yes);\n\t\t\t\t\tsouth.remove(no);\n\t\t\t\t\tvalidate();\n\t\t\t\t\t// add a restart button that restores the game\n\t\t\t\t\trestartGame();\n\n\t\t\t\t}\n\n\t\t\t\t// if current.getNext() is\n\t\t\t}\n\t\t});\n\n\t\t// add Yes button to left\n\t\tsouth.add(yes, BorderLayout.WEST);\n\t\tvalidate();\n\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the MenuFactory which will create the menus for this plugin
public MenuBuilder getMenuFactory() { if (menuBuilder == null) { menuBuilder = lookupMenuBuilder(); } return menuBuilder; }
[ "IMenuFactory getMenuFactory();", "@Override\r\n\tprotected MenuManager createMenuManager() {\r\n\t\tMenuManager menuManager = new MenuManager(\"menu\");\r\n\t\treturn menuManager;\r\n\t}", "MenuEntry.Factory getMenuEntryFactory();", "protected MenuManager createMenuManager() {\n\t\tMenuManager mm = new MenuManager();\n\n\t\tSeparator sparator = new Separator();\n\n\t\t/*\n\t\t * File menu\n\t\t */\n\t\tMenuManager fileMenu = new MenuManager(Localization\n\t\t\t\t.getString(Localization.MENU_FILE));\n\t\tmm.add(fileMenu);\n\n\t\tfileMenu.add(new CloseWindowAction(shellProvider));\n\t\tfileMenu.add(sparator);\n\t\tfileMenu.add(new ExitAction());\n\n\t\t/*\n\t\t * Videos menu\n\t\t */\n\t\tMenuManager videoMenu = new MenuManager(Localization\n\t\t\t\t.getString(Localization.MENU_VIDEOS));\n\t\tmm.add(videoMenu);\n\n\t\tvideoMenu.add(addVideoFileAction);\n\t\tvideoMenu.add(addDVDAction);\n\t\tvideoMenu.add(sparator);\n\t\tvideoMenu.add(removeVideo);\n\t\tvideoMenu.add(removeAllVideoAction);\n\t\tvideoMenu.add(sparator);\n\t\tvideoMenu.add(previewAction);\n\t\tvideoMenu.add(convertVideoAction);\n\t\tvideoMenu.add(convertAllVideoAction);\n\n\t\t// TODO : Usability : Add a list of current video.\n\n\t\t// TODO : Usability : Add a menu for vidéo output options ?? In this\n\t\t// menu we can add the list of profile.\n\n\t\t/*\n\t\t * Window menu\n\t\t */\n\t\tMenuManager windowMenu = new MenuManager(Localization\n\t\t\t\t.getString(Localization.MENU_WINDOW));\n\t\tmm.add(windowMenu);\n\n\t\twindowMenu.add(new ShowJobQueueWindowAction());\n\t\twindowMenu.add(new PreferencesAction(shellProvider, site));\n\n\t\t/*\n\t\t * Help menu\n\t\t */\n\t\tMenuManager helpMenu = new MenuManager(Localization\n\t\t\t\t.getString(Localization.MENU_HELP));\n\t\tmm.add(helpMenu);\n\n\t\t// TODO : Provide a documentation. DocBook seem a good idea\n\t\t// http://en.wikipedia.org/wiki/DocBook\n\n\t\thelpMenu.add(new ShowAboutDialogAction(shellProvider));\n\n\t\treturn mm;\n\t}", "@Override\n\tpublic JMenu getMenu() {\n\t\tif (menu == null) {\n\t\t\tmenu = new BeanShellMenu(uiController);\n\t\t}\n\t\treturn menu;\n\t}", "@Override\r\n\tprotected MenuManager createMenuManager() {\r\n\t\tMenuManager menuManager = new MenuManager(\"menu\");\r\n\t\t{\r\n\t\t\tMenuManager fileMenuManger = new MenuManager(\"文件(&F)\");\r\n\t\t\tmenuManager.add(fileMenuManger);\r\n\t\t\tfileMenuManger.add(openAction);\r\n\t\t\tfileMenuManger.add(configAction);\r\n\t\t}\r\n\t\treturn menuManager;\r\n\t}", "void addMenuItemsFactory( IMenuItemsFactory factory);", "Menu getMenu();", "protected final PoliticianMenuItemFactory getPoliticianMenuItemFactory() {\n\t\treturn politicianMenuItemFactory;\n\t}", "public MenuManager getMenuManager()\n\t{\n\t\treturn menuManager;\n\t}", "JZLemurMenu createJZLemurMenu();", "public static Menu getMenu() {return menu;}", "private MenuManager createEditMenu() {\n\t\tMenuManager menu = new MenuManager(\"&Edition\", Messages.getString(\"IU.Strings.40\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tmenu.add(new GroupMarker(Messages.getString(\"IU.Strings.41\"))); //$NON-NLS-1$\n\n\t\tmenu.add(getAction(ActionFactory.UNDO.getId()));\n\t\tmenu.add(getAction(ActionFactory.REDO.getId()));;\n\n\t\tmenu.add(new GroupMarker(IWorkbenchActionConstants.UNDO_EXT));\n\t\tmenu.add(new Separator());\n\t\tmenu.add(getAction(ActionFactory.CUT.getId()));\n\t\tmenu.add(getAction(ActionFactory.COPY.getId()));\n\t\tmenu.add(getAction(ActionFactory.PASTE.getId()));\n\t\tmenu.add(new GroupMarker(IWorkbenchActionConstants.CUT_EXT));\n\t\tmenu.add(new Separator());\n\t\tmenu.add(getAction(ActionFactory.DELETE.getId()));\n\t\tmenu.add(getAction(ActionFactory.SELECT_ALL.getId()));\n\t\tmenu.add(getAction(ActionFactory.FIND.getId()));\n\t\tmenu.add(new Separator());\n\t\tmenu.add(getAction(ActionFactory.PREFERENCES.getId()));\n\t\treturn menu;\n\t}", "public MenuService() {\n\t\tnew DisplayMenu();\n\t}", "protected JMenu createMenu() {\r\n\t\tJMenu menu = new JMenu(\"\");\r\n\t\tif (this.getWindowDecorationStyle() == JRootPane.FRAME) {\r\n\t\t\tthis.addMenuItems(menu);\r\n\t\t}\r\n\t\treturn menu;\r\n\t}", "public List getMenu() {\n createMenuGroupError = false;\n menulist = new Menus_List();\n return menulist.getMenu();\n }", "public Menu createViewMenu();", "List<IContextMenuFactory> getContextMenuFactories();", "public static MenuBar getInstance() {\n if (menuBar == null) {\n menuBar = new MenuBar();\n menuBar.add(menuBar.getFileMenu());\n menuBar.add(menuBar.getEditMenu());\n menuBar.add(menuBar.getViewMenu());\n menuBar.add(menuBar.getPluginsMenu());\n menuBar.add(menuBar.getHHelpMenu());\n // menuBar.add(getExportMenu());\n }\n return menuBar;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a set containing all leaf operators from the operator tree in this work.
public Set<Operator<?>> getAllLeafOperators() { Set<Operator<?>> returnSet = new LinkedHashSet<Operator<?>>(); Set<Operator<?>> opSet = getAllRootOperators(); Stack<Operator<?>> opStack = new Stack<Operator<?>>(); // add all children opStack.addAll(opSet); while (!opStack.empty()) { Operator<?> op = opStack.pop(); if (op.getNumChild() == 0) { returnSet.add(op); } if (op.getChildOperators() != null) { opStack.addAll(op.getChildOperators()); } } return returnSet; }
[ "public List<OperatorImpl> getChildOperators() {\n\t\treturn Collections.emptyList();\n\t}", "public Collection<IOperator> getAllOperators()\r\n\t{\r\n\t\treturn expressionRegistry.getAllOperators();\r\n\t}", "public List<Operation> getAllLeafOperations()\n\t{\n\t\tList<Operation> myData = new ArrayList<Operation>();\n\n\t\t// Add either each DataSet (if it has no children)\n\t\t// or the dataset's leaf operations\n\t\tfor(DataSet ds : datasets)\n\t\t\tmyData.addAll(ds.getAllLeafOperations());\n\n\t\treturn myData;\n\t}", "public List<Operator> getOperators() {\r\n\t\treturn operators;\r\n\t}", "public static List<String> getRelationalOperators()\r\n\t{\r\n\t\tList<String> relationalOperatorsList = new ArrayList<String>();\r\n\t\tfor (RelationalOperator operator : RelationalOperator.values())\r\n\t\t{\r\n\t\t\tString opStr = operator.getStringRepresentation();\r\n\t\t\tif ((!opStr.equals(AQConstants.Contains))\r\n\t\t\t\t\t&& (!opStr.equals(AQConstants.STRATS_WITH))\r\n\t\t\t\t\t&& (!opStr.equals(AQConstants.ENDS_WITH))\r\n\t\t\t\t\t&& (!opStr.equals(AQConstants.IN_OPERATOR))\r\n\t\t\t\t\t&& (!opStr.equals(AQConstants.Between))\r\n\t\t\t\t\t&& (!opStr.equals(AQConstants.Not_In))\r\n\t\t\t\t\t&& (!opStr.equalsIgnoreCase(AQConstants.IS_NULL))\r\n\t\t\t\t\t&& (!opStr.equalsIgnoreCase(AQConstants.IS_NOT_NULL))\r\n\t\t\t\t\t&& (!opStr.equalsIgnoreCase(AQConstants.NOT_BETWEEN)))\r\n\r\n\t\t\t{\r\n\t\t\t\trelationalOperatorsList.add(opStr);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn relationalOperatorsList;\r\n\t}", "public List<OperatorTree> getChildren(){\n\t\treturn children;\n\t}", "public static Set<Operator> getAllOperators(Collection<? extends Operator> operators) {\n return Operators.getTransitiveConnected(operators);\n }", "public LeafSet leafSet() {\n return theLeafSet;\n }", "ImmutableSet<ImmutableExpression> flatten(OperationPredicate operator);", "public Map<String, AttributeDescriptor.Operator> getOperators()\n {\n \n Map<String, AttributeDescriptor.Operator> optrMap = \n new LinkedHashMap<String, AttributeDescriptor.Operator>();\n \n List<DemoPageDef.OperatorDef> operatorList = _searchFieldDef.getOperators();\n\n for(DemoPageDef.OperatorDef operator : operatorList)\n {\n AttributeDescriptor.Operator optr = \n ((DemoAttributeDescriptor) _attrDesc).getOperator(operator);\n optrMap.put(optr.getLabel(), optr);\n }\n return optrMap;\n }", "public abstract Collection<OperatorRule> getOperatorRules();", "public static List<Operator> getList(){\n\t\tList<Operator> supportedOperators = new ArrayList<Operator>();\n\t\t\n\t\t// add each operator to list\n\t\tsupportedOperators.add(new AdditionOperator());\n\t\tsupportedOperators.add(new SubtractionOperator());\n\t\tsupportedOperators.add(new MultiplicationOperator());\n\t\tsupportedOperators.add(new DivisionOperator());\n\t\tsupportedOperators.add(new ExponentiationOperator());\n\t\tsupportedOperators.add(new NegationOperator());\n\t\tsupportedOperators.add(new AbsoluteValueOperator());\n\t\tsupportedOperators.add(new SineOperator());\n\t\tsupportedOperators.add(new CoseOperator());\n\t\treturn supportedOperators;\n\t}", "public Map<String, String> getSetOperators()\n {\n return sqlSetOperators;\n }", "public List<V> getRoots() {\n\t\tCollection<Tree<V, Integer>> t = graph.getTrees();\n\t\tList<V> branchRoots = new ArrayList<V>();\n\t\tfor (Tree<V, Integer> branch : t) {\n\t\t\tbranchRoots.add(branch.getRoot());\n\t\t}\n\t\treturn branchRoots;\n\t}", "public static HashSet<KDNode> RootSet() {\n\t\treturn root_map;\n\t}", "public @Nonnull SetType getRoots() {\n Set<ThreadType> roots = new LinkedHashSet<ThreadType>(trees.size());\n for (Tree<ThreadType> tree: trees) {\n roots.add(tree.getRoot());\n }\n\n return involved.derive(roots);\n }", "public final PuzzleParser.operator_return operator() throws RecognitionException {\n PuzzleParser.operator_return retval = new PuzzleParser.operator_return();\n retval.start = input.LT(1);\n\n\n CommonTree root_0 = null;\n\n Token set14=null;\n\n CommonTree set14_tree=null;\n\n try {\n // /Users/maiwald/Dropbox/Shared/Uni/BAI-1 Lerngruppe/B-AI4/CI/Aufgaben/SS2013/Team Jan und Luciano/aufgabe_3/Puzzle.g:47:2: ( ADD | SUB )\n // /Users/maiwald/Dropbox/Shared/Uni/BAI-1 Lerngruppe/B-AI4/CI/Aufgaben/SS2013/Team Jan und Luciano/aufgabe_3/Puzzle.g:\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n set14=(Token)input.LT(1);\n\n if ( input.LA(1)==ADD||input.LA(1)==SUB ) {\n input.consume();\n adaptor.addChild(root_0, \n (CommonTree)adaptor.create(set14)\n );\n state.errorRecovery=false;\n }\n else {\n MismatchedSetException mse = new MismatchedSetException(null,input);\n throw mse;\n }\n\n\n }\n\n retval.stop = input.LT(-1);\n\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n \tretval.tree = (CommonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n\n }\n\n finally {\n \t// do for sure before leaving\n }\n return retval;\n }", "public List<BrainvitaStep> getAllPossibleOperations() {\n List<BrainvitaStep> allOperationsForCurrentState = new ArrayList<>();\n for (BrainvitaStep step : allOperations) {\n Coordinate middle = getMiddleCoordinate(step);\n if (isStepPossible(step.from, middle, step.to)) {\n allOperationsForCurrentState.add(step);\n }\n }\n return allOperationsForCurrentState;\n }", "@Override\r\n @SuppressFBWarnings(\"unchecked\")\r\n public Iterable<SmallDomainBitSet<T>> powerset() {\r\n return (Iterable<SmallDomainBitSet<T>>) DomainBitSet.super.powerset();\r\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
checks whether this Sprite's hitbox is at least partially inside the canvas TODO: technically this returns true even if circular Sprite is just outside at the corners, and false if a tilted rectangular Sprite's edge crosses a corner with endpoints outside
boolean isInsideScreen() { if (_hitbox.length == 1) { float r = _hitbox[0].x; PVector c = _getCenter(); return 0 <= c.x + r && c.x - r < width && 0 <= c.y + r && c.y - r < height; } PVector[] points = this._getPoints(); for(PVector p : points) { if(0 <= p.x && p.x < width && 0 <= p.y && p.y < height) { return true; } } return false; }
[ "boolean insideSprite(Sprite s){\n if (s._hitbox.length == 1) {\n if (_hitbox.length == 1) {\n return PVector.dist(s._getCenter(),this._getCenter()) <\n s._hitbox[0].x - this._hitbox[0].x;\n }\n return _insideCirc(_getPoints(), s._getCenter(), s._hitbox[0].x);\n }\n if (s._hitbox.length == 1) {\n // TODO: check if center is in middle but NOT touching any side\n // (will want to adapt existing _circPoly to separate side-touching\n // code into individual method)\n return false;\n }\n return _insidePts(this._getPoints(), s._getPoints());\n }", "public boolean isInside(Rectangle boundary) {\n\t\t\n\t\t// Use TLAP to see if it is or it is not\n\t\tif (x + diameter / 2 >= boundary.getX() - boundary.getWidth() && x + diameter / 2 <= boundary.getX() + boundary.getWidth()\n\t\t\t\t&& y + diameter / 2 >= boundary.getY() - boundary.getHeight() && y + diameter / 2 <= boundary.getY() + boundary.getHeight()) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean isInBounds() {\r\n return this.X >= 0 && this.Y >= 0;\r\n }", "public boolean isInside(Actor a)\r\n\t{\r\n\t\tif(a.getRectangle().x - 5 < this.getRectangle().x &&\r\n\t\t a.getRectangle().y -5 < this.getRectangle().y &&\r\n\t\t a.getRectangle().x + 5 + a.getRectangle().width > this.getRectangle().x + this.getRectangle().width && \r\n\t\t a.getRectangle().y + a.getRectangle().height + 5 > this.getRectangle().y + this.getRectangle().height){\r\n\t\t \r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t\t\t\r\n\t}", "boolean touchingSprite(Sprite s) {\n if (s._hitbox.length == 1) {\n if (_hitbox.length == 1) {\n return PVector.dist(this._getCenter(), s._getCenter()) <= \n this._hitbox[0].x + s._hitbox[0].x;\n }\n return _circPoly(s._getCenter(), s._hitbox[0].x, this._getPoints());\n }\n if (_hitbox.length == 1) {\n return _circPoly(this._getCenter(), this._hitbox[0].x, s._getPoints());\n }\n \n PVector[] s1Points = s._getPoints();\n PVector[] s2Points = this._getPoints();\n \n for(int i = 0; i < s1Points.length; i++) {\n PVector a = s1Points[i], b = s1Points[(i+1)%s1Points.length];\n for(int j = 0; j < s2Points.length; j++) {\n PVector c = s2Points[j], d = s2Points[(j+1)%s2Points.length];\n \n // sprites touch if ab crosses cd\n if(_clockwise(a, c, d) != _clockwise(b, c, d) && // a & b on different sides of cd, and\n _clockwise(a, b, c) != _clockwise(a, b, d)) { // c & d on different sides of ab\n return true;\n }\n }\n }\n \n return _insidePts(s1Points,s2Points) || _insidePts(s2Points,s1Points);\n }", "public boolean collides(Rectangle hitbox) {\n return hitbox.overlaps(bounds);\n }", "public boolean inBounds(Actor a)\n {\n boolean inX = Math.abs(a.getXPos()) < levelWidth/2;\n boolean inY = Math.abs(a.getYPos()) < levelHeight/2;\n return inX && inY;\n }", "public abstract boolean isInside(int x, int y);", "public boolean inBounds(int sideCount) {\r\n return x >= 0 && y >= 0 && x < sideCount && y < sideCount;\r\n }", "private boolean hasHitBoundry() {\r\n if (snake[HEAD].row < 0 || \r\n snake[HEAD].row >= maxRows ||\r\n snake[HEAD].column < 0 ||\r\n snake[HEAD].column >= maxColumns) {\r\n gameOver();\r\n return true;\r\n }\r\n return false;\r\n }", "protected boolean outOfBounds() {\n return (getX() < 0 || getY() < 0 || getX() > (Game.WIDTH - 45) || getY() > (Game.HEIGHT - 45));\n }", "private boolean outside(Box a){\n //counts the corners of the box that are inside the maze\n\t\tint cornsers = 0;\n\n //For every box in the maze\n\t\tfor (Box b : collisionboxes){\n //If the lower left corner is inside this box b\n\t\t\tif (inside(a.x, a.y, b)){\n\t\t\t\tcornsers++;\n\t\t\t\tif (cornsers >= 4){\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n //If the lower right corner is inside this box b\n\t\t\tif (inside(a.x+a.width, a.y, b)){\n\t\t\t\tcornsers++;\n\t\t\t\tif (cornsers >= 4){\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n //If the upper left corner is inside this box b\n\t\t\tif (inside(a.x, a.y+a.width, b)){\n\t\t\t\tcornsers++;\n\t\t\t\tif (cornsers >= 4){\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n //If the upper right corner is inside this box b\n\t\t\tif (inside(a.x+a.width, a.y+a.width, b)){\n\t\t\t\tcornsers++;\n\t\t\t\tif (cornsers >= 4){\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}", "boolean isWithinBounds(BlockPos pos);", "private boolean isTouchingSides()\n {\n return (getX() <= BALL_SIZE/2 || getX() >= getWorld().getWidth() - BALL_SIZE/2);\n }", "public abstract boolean isInside(double x, double y);", "public boolean isColliding(){\n for(int i = 0; i < eng.getIDManager().getObjectsWithID(\"GameObject\").size(); i++){\n GameObject temp = eng.getIDManager().getObjectsWithID(\"GameObject\").get(i);\n \n if(temp.getHitBox().getBounds().intersects(rect.getBounds()) &&\n temp.getHitBox() != this){\n currentCollidingObject = temp;\n return true;\n }\n }\n \n return false;\n }", "boolean inArea() {\n return (x-x_t)*(x-x_t) + (y-y_t)*(y-y_t) < (cell*r_rate)*(cell*r_rate);\n }", "private boolean inside(int x, int y, Box b){\n\t\tif (x >= b.x && x < b.x+b.width){\n\t\t\tif (y >= b.y && y < b.y+b.width){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public boolean outsideBorders() {\n if (this.px + this.vx + this.width < 0) return true;\n if (this.px + this.vx > this.courtWidth) return true;\n if (this.py + this.vy + this.height < 0) return true;\n if (this.py + this.vy > this.courtHeight) return true;\n return false;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
print a list of movies whose genre include 14
public String genre14(){ String genre14MovieTitle = " "; for(int i = 0; i < results.length; i++){ if(results[i].genre()) { genre14MovieTitle += results[i].getTitle() + "\n"; } } System.out.println(genre14MovieTitle); return genre14MovieTitle; }
[ "public void showGenre(Genre genre) {\n for (Record r : cataloue) {\n if (r.getGenre() == genre) {\n System.out.println(r);\n }\n }\n\n }", "public void printByGenre() {\n if(emptyArray(albums)){\n System.out.println(\"The collection is empty!\");\n }else {\n System.out.println(\"*Album collection by genre.\");\n sortByGenre(albums);\n for (int c = 0; c < numAlbums; c++) {\n System.out.println(albums[c].toString());\n }\n System.out.println(\"*End of list\");\n }\n }", "public void browseGenre(String genre) {\n for (int i = 0; i < libraryDatabase.getMediaDatabase().size(); i++) {\n String MediaGenre = (libraryDatabase.getMediaDatabase().get(i)).getGenre();\n if (genre.equals(MediaGenre)) {\n System.out.println(libraryDatabase.getMediaDatabase().get(i));\n }\n }\n }", "ArrayList<FilmData> filterByGenre(String genre){\n \tArrayList<FilmData> filteredSet = new ArrayList<FilmData>();\n \tfor(FilmData film: films){\n \t\tif(film.getGenres().contains(genre)){\n \t\t\tfilteredSet.add(film);\n \t\t}\n \t}\n \treturn filteredSet;\n }", "public void printMovies(){\n if (n != 0){\n System.out.println(\"There are \" + n + \" movies in the wish list.\");\n for(int i = 0; i < 20; i++){\n if (wish[i] != null){\n System.out.println(\"Index: \" + (i+1) + \" ID: \" + wish[i].getID() + \" Name: \" + wish[i].getTitle());\n }\n }\n }\n else{\n System.out.println(\"The wish list is empty.\");\n }\n }", "public ArrayList<Film> searchByGenre(Genre genre);", "public void showMovies() {\n System.out.println(\"Mina filmer:\");\n for (int i = 0; i < myMovies.size(); i++) {\n System.out.println(\"\\n\" + (i + 1) + \". \" + myMovies.get(i).getTitle() +\n \"\\nRegissör: \" + myMovies.get(i).getDirector() + \" | \" +\n \"Genre: \" + myMovies.get(i).getGenre() + \" | \" +\n \"År: \" + myMovies.get(i).getYear() + \" | \" +\n \"Längd: \" + myMovies.get(i).getDuration() + \" min | \" +\n \"Betyg: \" + myMovies.get(i).getRating());\n }\n }", "public ArrayList<Show> searchGenre(String genre) {\n\t\tArrayList<Show> matches = new ArrayList<Show>();\n\t\tfor (Venue venue : venues) {\n\t\t\tfor (Theater theater : venue.theaters) {\n\t\t\t\tfor (Show show : theater.shows) {\n\t\t\t\t\tif (show.genre.equalsIgnoreCase(genre))\n\t\t\t\t\t\tmatches.add(show);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn matches;\n\t}", "public ArrayList<String> searchMoviebyGenre(String name){\n\t\tArrayList<String> moviesByGenre = new ArrayList<String>(); \n\t\ttry (Transaction tx = getDbsiIMDB().beginTx()) {\n\t\t\tNode gNode = getDbsiIMDB().findNode(genreLabel, \"name\", name);\n\t\t\tif(gNode == null){\n\t\t\t\treturn moviesByGenre;\n\t\t\t}else{\n\t\t\t\tfor (Relationship r : gNode.getRelationships()) {\n\t\t\t\t\tNode tempMovie = r.getEndNode();\n\t\t\t\t\tmoviesByGenre.add((String)tempMovie.getProperty(\"name\"));\n\t\t\t\t}\n\t\t\t\ttx.success();\n\t\t\t\tSystem.out.println(moviesByGenre);\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}finally{\n\t\t}\t\n\t\treturn moviesByGenre;\n\t}", "private static void queryBooksByGenre(){\n\t\tSystem.out.println(\"===Query Books By Genre===\");\n\t\tScanner string_input = new Scanner(System.in);\n\t\t\n\t\tSystem.out.println(\"Enter Genre to Query Books by: \");\n\t\tString genre = string_input.next();\n\t\tint genre_index = getGenreIndex(genre); //returns the index of the genre entered, in ALL_GENRES\n\t\t\n\t\tif(genre_index > -1){//valid genre was entered\n\t\t\tIterator<String> iter = ALL_GENRES.get(genre_index).iterator();\n\t\t\tSystem.out.println(\"All \" + genre + \" books are: \");\n\t\t\tprintAllElements(iter);\n\t\t}\n\t}", "public Vector<Movie> getMoviesOfGenre(String genre) {\n return allMovies.get(genre);\n }", "List<Genre> getFilmGenres(int filmId);", "public String getAllGenres() {\n Request.Builder builder = new Request.Builder();\n builder.url(TMDB_URL + \"genre/movie/list?api_key=\" + TMDB_API_KEY);\n Request request = builder.build();\n try {\n Response response = client.newCall(request).execute();\n result = response.body().string();\n } catch (Exception e) {\n e.printStackTrace();\n }\n return result;\n }", "public String displayGenre(int index){\n\t\treturn movie.get(index).getGenre();\n\t}", "private static void showMovies(ArrayList<String> movies) {\n\t\tfor (String movie : movies) {\n\t\t\tSystem.out.println(movie);\n\t\t}\t\t\n\t}", "public void moviesForYear(String year) {\r\n\t\tboolean success = false;\r\n\t\tMovieListNode<m> cur = head;\r\n\t\twhile(cur!=null) {\r\n\t\t\tboolean part = cur.toString().toLowerCase().contains(year.toLowerCase());\t//REFERENCE: https://stackoverflow.com/questions/2275004/in-java-how-do-i-check-if-a-string-contains-a-substring-ignoring-case\r\n\t\t\t//^^checks if the year is in the current movie node\r\n\t\t\tif(part ==true) {\r\n\t\t\t\t//^^ if the year was in the node, then print the movie details\r\n\t\t\t\tsuccess = true;\r\n\t\t\t\tSystem.out.println(cur.toString());\r\n\t\t\t}\r\n\t\t\tcur=cur.next;\t//goes on to check if there were other movies with that year\r\n\t\t}\r\n\t\tif(cur==null && success!=true) {\r\n\t\t\tSystem.out.println(\"There were no movies for that year.\");\r\n\t\t\t//^^ if no movies with that year were found, then success stays false and the user is informed that there were no movies with the year\r\n\t\t}\r\n\t}", "public static void printAverageRatingsByYearAfterAndGenre(int minimalRaters, int year, String genre)\n\t{\n\t\t//create an allFilters object\n\t\tAllFilters allFilters = new AllFilters();\n\t\t\n\t\t//add filter to the filters\n\t\tallFilters.addFilter(new YearAfterFilter(year));\n\t\tallFilters.addFilter(new GenreFilter(genre));\n\t\t\n\t\tArrayList<Rating> movieListByFilter = \n\t\t\t\ttr.getAverageRatingsByFilter(minimalRaters, allFilters);\n\t\t\n\t\tmovieListByFilter.forEach\n\t\t\t\t( \n\t\t\t\t\tm -> System.out.println\n\t\t\t\t\t(\n\t\t\t\t\t\t m.getValue() +\" \"\n\t\t\t\t\t\t+ MovieDatabase.getYear(m.getItem()) + \" \"\n\t\t\t\t\t\t+ MovieDatabase.getTitle(m.getItem()) +\" \"\n\t\t\t\t\t\t+ MovieDatabase.getGenres(m.getItem())\n\t\t\t\t));\t\n\t\n\t\tSystem.out.printf(\"found %d movies%n\", movieListByFilter.size());\n\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn genre;\n\t}", "public List<Film> findAllByGenre(String genre);" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Add game to game list.
public void addGameToGameList(Game game) throws RemoteException, SQLException { boolean hasCopy = false; for(int i =0; i < availableGames.size(); i++) { if(availableGames.get(i).getId() == game.getId()) hasCopy = true; } if(!hasCopy){ availableGames.add(game); } }
[ "public void addGame(Game game) {\n if (!games.contains(game))\n games.add(game);\n }", "private static void addGameToItemList(GameItem newGame)\n {\n ItemList.add(convertGameToItem(newGame));\n }", "public void addGame(Game game) {\n System.out.println(\"here\");\n game.setGameId(generateId++);\n gameRepository.save(game);\n }", "public void addNewGame(gameLocation game) {\n\n\t\t// add to database here\n\t\tCursor checking_avalability = helper.getGameLocationData(GamelocationTableName,\n\t\t\t\tgame.getTitle());\n\t\tif (checking_avalability == null) {\t\t\t\t\n\n\t\t\tGAME_LIST.add(game);\n\n\t\t\tlong RowIds = helper.insertGameLocation(GamelocationTableName,\n\t\t\t\t\tgame.getTitle(), game.getDescription(),\n\t\t\t\t\tconvertToString(game.getIsCouponUsed()));\n\t\t\t//if (RowIds == -1)\n\t\t\t\t//Log.d(TAG, \"Error on inserting columns\");\n\t\t} else if (checking_avalability.getCount() == 0) { \t\t\t\t// checking twice to make sure it will not miss \n\n\t\t\tGAME_LIST.add(game);\n\n\t\t\tlong RowIds = helper.insertGameLocation(GamelocationTableName,\n\t\t\t\t\tgame.getTitle(), game.getDescription(),\n\t\t\t\t\tconvertToString(game.getIsCouponUsed()));\t\t\t// reuse method\n\t\t\t//if (RowIds == -1)\n\t\t\t\t//Log.d(TAG, \"Error on inserting columns\");\n\t\t}\n\n\t}", "boolean createGame(Game newGame) {\n return gameList.addGame(newGame);\n }", "@Override\n public void add(Object o) {\n gameCollection.addElement(o);\n }", "@Override\n\tpublic void createNewGame() \n\t{\n\t\t//Create new game\n\t\tboolean randomhexes = getNewGameView().getRandomlyPlaceHexes();\n\t\tboolean randomnumbers = getNewGameView().getRandomlyPlaceNumbers();\n\t\tboolean randomports = getNewGameView().getUseRandomPorts();\n\t\tString title = getNewGameView().getTitle();\n\t\t\n\t\ttry \n\t\t{\n\t\t\tReference.GET_SINGLETON().proxy.createGame(title, randomhexes, randomnumbers, randomports);\n\t\t} \n\t\tcatch (JoinExceptions e) \n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t//Refresh game list\n\t\tList<Game> gamelist = Reference.GET_SINGLETON().proxy.getGameList();\n\t\tGameInfo[] games = new GameInfo[gamelist.size()];\n\t\tint counter = 0;\n\t\tfor(Game game: gamelist)\n\t\t{\n\t\t\tGameInfo thisgame = new GameInfo();\n\t\t\tthisgame.setId(game.getId());\n\t\t\tthisgame.setTitle(game.getTitle());\n\t\t\tfor(Player player : game.getPlayers())\n\t\t\t{\n\t\t\t\tPlayerInfo player_info = new PlayerInfo(player);\n\t\t\t\tplayer_info.setColor(player.getColor());\n\t\t\t\tif(!(player.color == null))thisgame.addPlayer(player_info);\n\t\t\t}\n\t\t\tgames[counter] = thisgame;\n\t\t\tcounter++;\n\t\t}\n\t\t\n\t\tReference ref = Reference.GET_SINGLETON();\n\t\t\n\t\tPlayerInfo ourguy = new PlayerInfo();\n\t\t\n\t\tourguy.setId(ref.player_id);\n\t\tourguy.setName(ref.name);\n\t\tif(getNewGameView().isModalShowing())\n\t\t{\n\t\t\tgetNewGameView().closeModal();\n\t\t}\n\t\tif (getNewGameView().isModalShowing())\n\t\t{\n\t\t\tgetNewGameView().closeModal();\n\t\t}\n\n\t\tgetJoinGameView().setGames(games, ourguy);\n\t\t\n\t}", "@Override\n public void createGame(Game newGame) {\n UpdateType type = UpdateType.GAME_CREATED;\n boolean success = true; //no message on this command.. keeping logic just in case\n String message = \"\";\n //TODO all empty objects are parsed as null in json serialization. Reinstantiate.\n newGame.setChatMessages(new ArrayList<ChatMessage>());\n\n List<Game> games = ClientModel.getInstance().getGames();\n games.add(newGame);\n\n sendUpdate(type, success, message);\n\n String authToken = ClientModel.getInstance().getAuthToken();\n //join the game you just created\n LobbyProxy.instance()\n .joinGame(authToken, newGame.getGameID());\n\n }", "private static void addNewPlayerToGame(Session session, String name) {\n GameManager game = GameServer.games.get(GameServer.games.size() - 1);\n game.addHumanPlayer(name, session);\n\n if (game.readyToStart()) {\n game.addAIPlayers();\n game.dealCountries();\n game.finishTurn();\n\n GameServer.games.add(new GameManager());\n }\n }", "public void addGameByFile(String filename) throws IOException, GameStationException {\n JSONArray jsonArray = new JSONArray(new String(Files.readAllBytes(Paths.get(filename))));\n\n for (int i = 0; i < jsonArray.length(); i++) {\n JSONObject jsonObject = jsonArray.getJSONObject(i);\n if (findApp(jsonObject.getString(\"name\")) != null) {\n throw new GameStationException(\"Game \" + jsonObject.getString(\"name\") + \" already exists!\");\n }\n\n this.apps.add(new Game(jsonObject));\n }\n }", "public void addGames() throws DBAccessException, InvalidAccessException, InvalidActionException {\n setUp();\n\n addUsers(8);\n u1 = User.fromID(1);\n u2 = User.fromID(2);\n u3 = User.fromID(3);\n u4 = User.fromID(4);\n u5 = User.fromID(5);\n u6 = User.fromID(6);\n u7 = User.fromID(7);\n u8 = User.fromID(8);\n\n g1 = Game.addGame(\"\", \"\", 1, Collections.singletonList(u4), 1, false);\n g2 = Game.addGame(\"\", \"\", 1, Arrays.asList(u4, u5), 1, false);\n g3 = Game.addGame(\"\", \"\", 3, Collections.singletonList(u2), 2, false);\n\n t1 = Team.addTeam(\"\", g2);\n t2 = Team.addTeam(\"\", g3);\n t3 = Team.addTeam(\"\", g3);\n t4 = Team.addTeam(\"\", g3);\n\n p1 = Player.addPlayer(u3, t1);\n p2 = Player.addPlayer(u3, t2);\n p3 = Player.addPlayer(u4, t3);\n p4 = Player.addPlayer(u5, t3);\n p5 = Player.addPlayer(u6, t4);\n p6 = Player.addPlayer(u7, t4);\n p7 = Player.addPlayer(u8, t4);\n }", "public void addGame(SavedGame savedGame, int index) {\n\n AnchorPane savedGameCard = (AnchorPane) Utils.loadObject(Constants.Scene.GAME_CARD);\n\n ObservableList<Node> children = savedGameCard.getChildren();\n ((Text) children.get(0)).setText(savedGame.getLabel());\n ((Text) children.get(1)).setText(savedGame.getTimestamp());\n ((Text) children.get(5)).setText(savedGame.getScore());\n\n Button resumeBtn = (Button) children.get(2);\n Button deleteBtn = (Button) children.get(3);\n\n // Action Listeners on the saved game card buttons\n resumeBtn.setOnAction(e -> {\n Gameplay savedGameGameplay = new Gameplay(savedGame, startMenu.getStage());\n savedGameGameplay.display();\n savedGameGameplay.playGame(true);\n });\n\n deleteBtn.setOnAction(e -> {\n File gameStateFile = new File(savedGame.getGameStateFile());\n gameStateFile.delete();\n App.game.getSavedGames().remove(index);\n display();\n });\n\n vbox.getChildren().add(savedGameCard);\n }", "private void createGame(GameType gameType) throws RejectedExecutionException {\n\n Game game = GamesFactory.create(this, gameType);\n gameList.add(game);\n gamesService.execute(game);\n }", "private void addGame(final String game, final IGuild guild) {\n final JSONObject guildJSON;\n if (gameStatsJSON.has(guild.getStringID())) {\n guildJSON = gameStatsJSON.getJSONObject(guild.getStringID());\n }\n else {\n guildJSON = new JSONObject();\n gameStatsJSON.put(guild.getStringID(), guildJSON);\n }\n\n final JSONArray gameArray = new JSONArray();\n guildJSON.put(game, gameArray);\n }", "public void addNewGameScore(GameScore gameScore) {\n gameScores.add(gameScore);\n }", "public GameManager() {\n this.games = new ArrayList<>();\n }", "public void addGame(String pgn, String fileName) throws PGNParseException, IOException {\n // First, store the pgn in a file.\n try {\n fss.addFile(username, fileName, pgn);\n } catch (Exception e) {\n e.printStackTrace();\n logger.error(\"Was not able to store file \" + fileName + \" for user \" + username);\n }\n \n // Add game to tree and user's list of games\n PGNParser parser = new PGNParser(pgn);\n GameTreeBuilder treeBuilder = new GameTreeBuilder(parser);\n Game newGame = new Game(parser);\n gameTree.addGame(treeBuilder.getListOfNodes(), username);\n games.add(newGame);\n }", "public void addToGame(GameLevelAlien g, HitListener ar, ScoreTrackingListener stListener) {\r\n for (int i = 0; i < COLUMNS; i++) {\r\n for (int j = 0; j < ROWS; j++) {\r\n this.army.get(i).get(j).addToGame(g);\r\n this.army.get(i).get(j).addHitListener(ar);\r\n this.army.get(i).get(j).addHitListener(stListener);\r\n }\r\n }\r\n }", "public void addAnotherGame(ChangeListener listener){\n m_addAnotherGame.add(listener);\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__XFeatureCall__Group_1_2__0" $ANTLR start "rule__XFeatureCall__Group_1_2__0__Impl" ../org.xtext.mongobeans.ui/srcgen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:12108:1: rule__XFeatureCall__Group_1_2__0__Impl : ( ',' ) ;
public final void rule__XFeatureCall__Group_1_2__0__Impl() throws RecognitionException { int stackSize = keepStackSize(); try { // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:12112:1: ( ( ',' ) ) // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:12113:1: ( ',' ) { // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:12113:1: ( ',' ) // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:12114:1: ',' { if ( state.backtracking==0 ) { before(grammarAccess.getXFeatureCallAccess().getCommaKeyword_1_2_0()); } match(input,53,FOLLOW_53_in_rule__XFeatureCall__Group_1_2__0__Impl24550); if (state.failed) return ; if ( state.backtracking==0 ) { after(grammarAccess.getXFeatureCallAccess().getCommaKeyword_1_2_0()); } } } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { restoreStackSize(stackSize); } return ; }
[ "public final void rule__XFeatureCall__Group_1_2__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:13009:1: ( ( ',' ) )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:13010:1: ( ',' )\n {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:13010:1: ( ',' )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:13011:1: ','\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXFeatureCallAccess().getCommaKeyword_1_2_0()); \n }\n match(input,51,FOLLOW_51_in_rule__XFeatureCall__Group_1_2__0__Impl26363); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXFeatureCallAccess().getCommaKeyword_1_2_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__XFeatureCall__Group_1_2__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:11403:1: ( ( ',' ) )\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:11404:1: ( ',' )\n {\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:11404:1: ( ',' )\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:11405:1: ','\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXFeatureCallAccess().getCommaKeyword_1_2_0()); \n }\n match(input,52,FOLLOW_52_in_rule__XFeatureCall__Group_1_2__0__Impl23109); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXFeatureCallAccess().getCommaKeyword_1_2_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__XFeatureCall__Group_1_2__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:12131:1: ( rule__XFeatureCall__Group_1_2__1__Impl )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:12132:2: rule__XFeatureCall__Group_1_2__1__Impl\n {\n pushFollow(FOLLOW_rule__XFeatureCall__Group_1_2__1__Impl_in_rule__XFeatureCall__Group_1_2__124581);\n rule__XFeatureCall__Group_1_2__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__XMemberFeatureCall__Group_1_1_1_2__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:7565:1: ( ( ',' ) )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:7566:1: ( ',' )\n {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:7566:1: ( ',' )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:7567:1: ','\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXMemberFeatureCallAccess().getCommaKeyword_1_1_1_2_0()); \n }\n match(input,53,FOLLOW_53_in_rule__XMemberFeatureCall__Group_1_1_1_2__0__Impl15611); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXMemberFeatureCallAccess().getCommaKeyword_1_1_1_2_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__XFeatureCall__Group_3_1_1_1__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:12330:1: ( ( ',' ) )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:12331:1: ( ',' )\n {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:12331:1: ( ',' )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:12332:1: ','\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXFeatureCallAccess().getCommaKeyword_3_1_1_1_0()); \n }\n match(input,53,FOLLOW_53_in_rule__XFeatureCall__Group_3_1_1_1__0__Impl24981); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXFeatureCallAccess().getCommaKeyword_3_1_1_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__XFeatureCall__Group_1__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:12045:1: ( ( ( rule__XFeatureCall__Group_1_2__0 )* ) )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:12046:1: ( ( rule__XFeatureCall__Group_1_2__0 )* )\n {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:12046:1: ( ( rule__XFeatureCall__Group_1_2__0 )* )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:12047:1: ( rule__XFeatureCall__Group_1_2__0 )*\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXFeatureCallAccess().getGroup_1_2()); \n }\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:12048:1: ( rule__XFeatureCall__Group_1_2__0 )*\n loop88:\n do {\n int alt88=2;\n int LA88_0 = input.LA(1);\n\n if ( (LA88_0==53) ) {\n alt88=1;\n }\n\n\n switch (alt88) {\n \tcase 1 :\n \t // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:12048:2: rule__XFeatureCall__Group_1_2__0\n \t {\n \t pushFollow(FOLLOW_rule__XFeatureCall__Group_1_2__0_in_rule__XFeatureCall__Group_1__2__Impl24421);\n \t rule__XFeatureCall__Group_1_2__0();\n\n \t state._fsp--;\n \t if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop88;\n }\n } while (true);\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXFeatureCallAccess().getGroup_1_2()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__XFeatureCall__Group_2_2__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:9097:1: ( ( ',' ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:9098:1: ( ',' )\n {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:9098:1: ( ',' )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:9099:1: ','\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXFeatureCallAccess().getCommaKeyword_2_2_0()); \n }\n match(input,39,FOLLOW_39_in_rule__XFeatureCall__Group_2_2__0__Impl18360); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXFeatureCallAccess().getCommaKeyword_2_2_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__XMemberFeatureCall__Group_1_1_1_2__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:8462:1: ( ( ',' ) )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:8463:1: ( ',' )\n {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:8463:1: ( ',' )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:8464:1: ','\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXMemberFeatureCallAccess().getCommaKeyword_1_1_1_2_0()); \n }\n match(input,51,FOLLOW_51_in_rule__XMemberFeatureCall__Group_1_1_1_2__0__Impl17424); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXMemberFeatureCallAccess().getCommaKeyword_1_1_1_2_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__XFeatureCall__Group_2_2__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:14410:1: ( ( ',' ) )\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:14411:1: ( ',' )\r\n {\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:14411:1: ( ',' )\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:14412:1: ','\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXFeatureCallAccess().getCommaKeyword_2_2_0()); \r\n }\r\n match(input,52,FOLLOW_52_in_rule__XFeatureCall__Group_2_2__0__Impl29098); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXFeatureCallAccess().getCommaKeyword_2_2_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public final void rule__XMemberFeatureCall__Group_1_1_1_2__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:6856:1: ( ( ',' ) )\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:6857:1: ( ',' )\n {\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:6857:1: ( ',' )\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:6858:1: ','\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXMemberFeatureCallAccess().getCommaKeyword_1_1_1_2_0()); \n }\n match(input,52,FOLLOW_52_in_rule__XMemberFeatureCall__Group_1_1_1_2__0__Impl14170); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXMemberFeatureCallAccess().getCommaKeyword_1_1_1_2_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__XFeatureCall__Group_3_1_1_1__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:13227:1: ( ( ',' ) )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:13228:1: ( ',' )\n {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:13228:1: ( ',' )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:13229:1: ','\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXFeatureCallAccess().getCommaKeyword_3_1_1_1_0()); \n }\n match(input,51,FOLLOW_51_in_rule__XFeatureCall__Group_3_1_1_1__0__Impl26794); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXFeatureCallAccess().getCommaKeyword_3_1_1_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__XFeatureCall__Group_1_2__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:12100:1: ( rule__XFeatureCall__Group_1_2__0__Impl rule__XFeatureCall__Group_1_2__1 )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:12101:2: rule__XFeatureCall__Group_1_2__0__Impl rule__XFeatureCall__Group_1_2__1\n {\n pushFollow(FOLLOW_rule__XFeatureCall__Group_1_2__0__Impl_in_rule__XFeatureCall__Group_1_2__024519);\n rule__XFeatureCall__Group_1_2__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XFeatureCall__Group_1_2__1_in_rule__XFeatureCall__Group_1_2__024522);\n rule__XFeatureCall__Group_1_2__1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__XFeatureCall__Group_1_2__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:11422:1: ( rule__XFeatureCall__Group_1_2__1__Impl )\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:11423:2: rule__XFeatureCall__Group_1_2__1__Impl\n {\n pushFollow(FOLLOW_rule__XFeatureCall__Group_1_2__1__Impl_in_rule__XFeatureCall__Group_1_2__123140);\n rule__XFeatureCall__Group_1_2__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__XFeatureCall__Group_2_2__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:24096:1: ( ( ',' ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:24097:1: ( ',' )\r\n {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:24097:1: ( ',' )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:24098:1: ','\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXFeatureCallAccess().getCommaKeyword_2_2_0()); \r\n }\r\n match(input,133,FOLLOW_133_in_rule__XFeatureCall__Group_2_2__0__Impl48490); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXFeatureCallAccess().getCommaKeyword_2_2_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public final void rule__XFeatureCall__Group_3_1_1_1__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:11621:1: ( ( ',' ) )\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:11622:1: ( ',' )\n {\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:11622:1: ( ',' )\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:11623:1: ','\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXFeatureCallAccess().getCommaKeyword_3_1_1_1_0()); \n }\n match(input,52,FOLLOW_52_in_rule__XFeatureCall__Group_3_1_1_1__0__Impl23540); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXFeatureCallAccess().getCommaKeyword_3_1_1_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__XFeatureCall__Group_3_1_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:12286:1: ( rule__XFeatureCall__Group_3_1_1__1__Impl )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:12287:2: rule__XFeatureCall__Group_3_1_1__1__Impl\n {\n pushFollow(FOLLOW_rule__XFeatureCall__Group_3_1_1__1__Impl_in_rule__XFeatureCall__Group_3_1_1__124888);\n rule__XFeatureCall__Group_3_1_1__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__XFeatureCall__Group_4_1_1_1__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:14628:1: ( ( ',' ) )\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:14629:1: ( ',' )\r\n {\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:14629:1: ( ',' )\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:14630:1: ','\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXFeatureCallAccess().getCommaKeyword_4_1_1_1_0()); \r\n }\r\n match(input,52,FOLLOW_52_in_rule__XFeatureCall__Group_4_1_1_1__0__Impl29529); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXFeatureCallAccess().getCommaKeyword_4_1_1_1_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public final void rule__XFeatureCall__Group_3_1_1_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:12349:1: ( rule__XFeatureCall__Group_3_1_1_1__1__Impl )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:12350:2: rule__XFeatureCall__Group_3_1_1_1__1__Impl\n {\n pushFollow(FOLLOW_rule__XFeatureCall__Group_3_1_1_1__1__Impl_in_rule__XFeatureCall__Group_3_1_1_1__125012);\n rule__XFeatureCall__Group_3_1_1_1__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__XFeatureCall__Group_4_1_1_1__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:24314:1: ( ( ',' ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:24315:1: ( ',' )\r\n {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:24315:1: ( ',' )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:24316:1: ','\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXFeatureCallAccess().getCommaKeyword_4_1_1_1_0()); \r\n }\r\n match(input,133,FOLLOW_133_in_rule__XFeatureCall__Group_4_1_1_1__0__Impl48921); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXFeatureCallAccess().getCommaKeyword_4_1_1_1_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test the add of the second person.
@Test public void addPerson2() throws SQLException { Person p; directoryDAO.addPerson(person2); p = directoryDAO.findPerson(person2.getId()); Assert.assertEquals(p.getId(), person2.getId()); Assert.assertEquals(p.getBirthdate(), person2.getBirthdate()); Assert.assertEquals(p.getFirstName(), person2.getFirstName()); Assert.assertEquals(p.getMail(), person2.getMail()); Assert.assertEquals(p.getName(), person2.getName()); Assert.assertEquals(p.getPassword(), person2.getPassword()); Assert.assertEquals(p.getWebsite(), person2.getWebsite()); }
[ "@Test\n void addPersonTest(){\n\n testAddressBook.add(testPerson);\n testAddressBook.add(testPerson2);\n\n assertEquals(testPerson, testAddressBook.get(0));\n assertEquals(testPerson2, testAddressBook.get(1));\n }", "@Test\r\n public void testAddPers2() {\r\n assertEquals(p2.toString(), bank.searchPerson(p2.getFullName()).toString());\r\n }", "@Test\r\n\tpublic void testAddMyManuscriptForAuthorWithTwoItem() {\r\n\t\ttestUserWithTwoAuthoredPaper.addMyManuscript(testManuscript3);\r\n\t\tassertEquals(testUserWithTwoAuthoredPaper.getMyManuscripts().size() , 3);\r\n\t\tassertTrue(testUserWithTwoAuthoredPaper.getMyManuscripts().contains(testManuscript3));\r\n\t}", "@Test\n\tpublic void testAddition() {\n\t assertEquals(\"4 + 5 must be 9\", 9, this.tester.addTwoNumbers(4, 5));\n\t }", "@Test\r\n public void testAddPers1() {\r\n assertEquals(p1.toString(), bank.searchPerson(p1.getFullName()).toString());\r\n }", "@Test\n public void addPerson_addAndEditDuringAddingGracePeriod() {\n }", "@Test\r\n public void addAddress(){\n Person p1 = Controller.getPerson(1);\r\n p1.setHood(new Address(\"hovedgaden\", \"22 2th\", new CityInfo(2800, \"lyngby\")));\r\n Controller.editPerson(p1);\r\n \r\n //existing person and address\r\n Person p2 = Controller.getPerson(2);\r\n Address hood2 = Controller.addAddress(new Address(\"gade 2\",\"2\",new CityInfo(1337,\"somewhere\")));\r\n p2.setHood(hood2);\r\n Controller.editPerson(p2);\r\n \r\n \r\n }", "@Test\n\tpublic void addemployeetest01() \n\t{\n\t\tassert(!c.addEmployee(testData14, user));\n\t}", "@Test\n\tpublic void testAddPerson_whenPersonToAddNotExist_thenVerifyIfPersonIsAdded() {\n\t\t// GIVEN\n\t\tPerson personToAdd = new Person(\"Jojo\", \"Dupond\", \"1509 rue des fleurs\", \"Roubaix\", \"59100\", \"000-000-0012\",\n\t\t\t\t\"jojod@email.com\");\n\t\twhen(personDAOMock.getPersons()).thenReturn(mockList);\n\t\twhen(personDAOMock.save(anyInt(), any())).thenReturn(personToAdd);\n\t\t// WHEN\n\t\tPerson resultAfterAddPerson = personServiceTest.addPerson(personToAdd);\n\t\t// THEN\n\t\tverify(personDAOMock, times(1)).getPersons();\n\t\tverify(personDAOMock, times(1)).save(anyInt(), any());\n\t\tassertEquals(personToAdd, resultAfterAddPerson);\n\t\tassertEquals(personToAdd.getEmail(), resultAfterAddPerson.getEmail());\n\t\tassertEquals(personToAdd.getFirstName(), resultAfterAddPerson.getFirstName());\n\t}", "@Test\r\n public void testAddAcc2() {\r\n assertEquals(bank.searchAccountOwner(a2), p2.getFullName());\r\n }", "@Test\r\n\tpublic void testAddMyManuscriptForAuthorWithOneItem() {\r\n\t\ttestUserWithOneAuthoredPaper.addMyManuscript(testManuscript2);\r\n\t\tassertEquals(testUserWithOneAuthoredPaper.getMyManuscripts().size() , 2);\r\n\t\tassertTrue(testUserWithOneAuthoredPaper.getMyManuscripts().contains(testManuscript2));\r\n\t}", "@Test\r\n\tvoid addtest() {\n\t\tMonom m= new Monom(3,2);\r\n\t\tMonom m2= new Monom(6,2);\r\n\t\tm.add(m2);\r\n\t\tassertEquals(9, m.get_coefficient());\r\n\t\tassertEquals(2, m.get_power());\r\n\t}", "@Test\n\tpublic void addStudentTest() {\n\t\tint numberOfStudents = student.getNumberOfStudents();\n\n\t\t// add a new student\n\t\tstudent.newStudent();\n\n\t\t// expected number of students after adding a new student\n\t\tint expected = numberOfStudents++;\n\n\t\t// actual number of students\n\t\tint actual = student.getNumberOfStudents();\t\t\n\t\tassertEquals(expected, actual);\n\t}", "@Test\n public void testAdd() {\n System.out.println(\"add\");\n Amount amount = new Amount(10);\n Amount instance = new Amount(11);\n Amount expResult = new Amount(21);\n Amount result = instance.add(amount);\n assertEquals(expResult, result);\n \n }", "@Test\n public void AA_testAdd() {\n System.out.println(\"Add\");\n Result result = instance.Add(ArrayRooms.get(0));\n Result result2 = instance.Add(ArrayRooms.get(1));\n\n assertTrue(Result.OK == result.getStatus());\n assertTrue(Result.OK == result2.getStatus());\n }", "@Test\r\n\tpublic void testAddFriend() {\r\n\t\tPerson p1 = new Person(0);\r\n\t\tFriend p2 = new Friend(\"Dave\");\r\n\t\tassertTrue(p1.addFriend(p2));\r\n\t\tassertFalse(p1.addFriend(p2));\r\n\t}", "@Test\r\n\tpublic void testAddMyManuscriptsToReview() {\r\n\t\ttestUser2.addMyManuscriptsToReview(testManuscript2);\r\n\t\tassertEquals(testUser2.getMyManuscriptsToReview().size(), 2);\r\n\t\tassertTrue(testUser2.getMyManuscriptsToReview().contains(testManuscript));\r\n\t\tassertTrue(testUser2.getMyManuscriptsToReview().contains(testManuscript2));\r\n\t}", "@Test\n public void testAddUser_User02() {\n System.out.println(\"addUser\");\n User user = new User(\"nick0\", \"mail_0_@sapo.pt\");\n boolean result = sn10.addUser(user);\n assertFalse(result);\n }", "@Test\n public void testAddMine() throws Exception {\n Mine.addMine(9, 9);\n assertEquals(\"success\", Mine.addMine(9, 9));\n\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Actualizar valores de un Predio
public static void update(Predio _predio) { ContentValues values = getContentValues(_predio); getContext().getContentResolver().update(AppContentProvider.CONTENT_URI_PREDIO, values, null, null); }
[ "void actualizarAsistencia(Asistencia asistencia);", "void actualizar(Prestamo prestamo);", "private void alterarServico(){\n int codigo = Integer.parseInt(tfCod.getText());\n String descricao = tfSerDescricao.getText();\n String tecnico = tfSerTecnico.getText();\n double valor = Converte.textToValue(tfSerValor.getText());\n Servico servico = new Servico(codigo,descricao,tecnico,valor);\n dao.ServicoDAO.getInstance().update(servico);\n }", "private void actualizaPremio(){\n\t\tif(botonAp1.isSelected()){\n\t\t\ttipo = 1;\n\t\t\tcoef = modelo.getPartidoApuesta().getCoefLocal();\n\t\t\tpremio.set(apostado.get()*coef);\n\t\t\tpremioLabel.setText(String.format(\"%.2f\", premio.get()));\n\t\t}else{\n\t\t\tif(botonApX.isSelected()){\n\t\t\t\ttipo = 0;\n\t\t\t\tcoef = modelo.getPartidoApuesta().getCoefEmpate();\n\t\t\t\tpremio.set(apostado.get()*coef);\n\t\t\t\tpremioLabel.setText(String.format(\"%.2f\", premio.get()));\n\t\t\t}else{\n\t\t\t\tif(botonAp2.isSelected()){\n\t\t\t\t\ttipo = 2;\n\t\t\t\t\tcoef = modelo.getPartidoApuesta().getCoefVisitante();\n\t\t\t\t\tpremio.set(apostado.get()*coef);\n\t\t\t\t\tpremioLabel.setText(String.format(\"%.2f\", premio.get()));\n\t\t\t\t}else{\n\t\t\t\t\ttipo = -1;\n\t\t\t\t\tcoef = 0.0;\n\t\t\t\t\tpremio.set(0.0);\n\t\t\t\t\tpremioLabel.setText(String.format(\"%.2f\", premio.get()));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "void updateEvaluacion(Evaluacion evaluacion) throws Exception;", "public void limpiarProcesoBusqueda() {\r\n parametroEstado = 1;\r\n parametroNombre = null;\r\n parametroApellido = null;\r\n parametroDocumento = null;\r\n parametroTipoDocumento = null;\r\n parametroCorreo = null;\r\n parametroUsuario = null;\r\n parametroEstado = 1;\r\n parametroGenero = 1;\r\n listaTrabajadores = null;\r\n inicializarFiltros();\r\n }", "public void actualizarPrecio(){\r\n for(Oferta o: listaOfertas){\r\n if(ofertaBean.consultarOferta(o.getCodigoOferta()) == 0){\r\n for(Helado h : o.getHeladosOferta()){\r\n if(o.getTipoOferta().equalsIgnoreCase(\"10% de Descuento\"))\r\n h.setPrecioOferta(h.getPrecio() - h.getPrecio()*0.1);\r\n else{\r\n if(o.getTipoOferta().equalsIgnoreCase(\"20% de Descuento\"))\r\n h.setPrecioOferta(h.getPrecio() - h.getPrecio()*0.2);\r\n }\r\n heladoBean.modificarHelado(h);\r\n }\r\n }else{\r\n for(Helado h : o.getHeladosOferta()){\r\n h.setPrecioOferta(0.0);\r\n heladoBean.modificarHelado(h);\r\n }\r\n }\r\n }\r\n generarOfertas();\r\n generarOfertasActuales();\r\n }", "void actualizarCampania(GestionPrecioDTO campania, UserDto user);", "@Test\r\n public void testSetValor() {\r\n \r\n }", "void actualizarCampania(GestionPrecioDTO campania, String user);", "public void actualizarDatos() {\n Operacion operacion = new Operacion();\n String sql = \"update producto set producto= '\" + this.producto + \"' where id_producto= '\" + this.id_producto + \"'\";\n operacion.ejecutar(sql);\n }", "public void actualizarPacienteUsuario() {\r\n try {\r\n if (!(us == \"\") && (citaUsuario > 0)) {\r\n usuario = usuarioFacade.find(us);\r\n usuario.setPacienteId(pacienteEditar);\r\n citaSeleccionada = getCitasFacade().find(citaUsuario);\r\n citaSeleccionada.setPacienteId(pacienteEditar);\r\n \r\n getUsuarioFacade().edit(usuario);\r\n getCitasFacade().edit(citaSeleccionada);\r\n mensajeConfirmacion(\"Usuario asociado a expediente.\");\r\n }\r\n //pacienteEditar.setPacienteUsuarioUsuario(usuario.getUsuarioUsuario());\r\n //getPacientesFacade().edit(pacienteEditar);\r\n } catch (Exception e) {\r\n mensajeError(\"No se pudo asociar el usuario con el expediente.\");\r\n }\r\n\r\n }", "public static void updateOrInsert(Predio _predio) {\n ContentValues values = getContentValues(_predio);\n if (_predio.getId() == 0 || values.get(\"id\") == null) {\n //Nuevo sin guardar, Insertar\n getContext().getContentResolver().insert(AppContentProvider.CONTENT_URI_PREDIO, values);\n }\n else {\n //Actualizar\n getContext().getContentResolver().update(AppContentProvider.CONTENT_URI_PREDIO, values, null, null);\n }\n }", "public void actualizarPodio() {\r\n\t\tordenarXPuntaje();\r\n\t\tint tam = datos.size();\r\n\t\traizPodio = datos.get(tam-1);\r\n\t\traizPodio.setIzq(datos.get(tam-2));\r\n\t\traizPodio.setDer(datos.get(tam-3));\r\n\t}", "private void actualizarFondo() {\n actualizaEstadoMapa();\n if (modificacionFondoBase == true && estadoJuego != EstadoJuego.PAUSADO && estadoJuego != EstadoJuego.PIERDE){\n moverFondo();\n } else if (modificacionFondoBase == false && estadoJuego != EstadoJuego.PAUSADO && estadoJuego != EstadoJuego.PIERDE ){\n texturaFondoBase= texturaFondo1_1;\n texturaFondoApoyo= texturaFondo1_2;\n moverFondo();\n }\n }", "private void atualizarProduto() {\n modelProduto.setCodBarras(this.tfCodBarras.getText());\n modelProduto.setDescricao(this.tfDescricao.getText());\n modelProduto.setValor(formatador.converteVirgulaParaPonto(this.tfValor.getText()));\n\n if (controllerProduto.atualizarProdutoController(modelProduto)) {\n\n JOptionPane.showMessageDialog(this, \"Produto atualizado com sucesso!\", \"ATENÇÃO\", JOptionPane.WARNING_MESSAGE);\n this.preencheTabelaProduto();\n limparCampos();\n habilitaDesabilitaCampos(false);\n\n } else {\n JOptionPane.showMessageDialog(this, \"Erro ao atualizar o produto!\", \"ERRO\", JOptionPane.ERROR_MESSAGE);\n }\n }", "public void ActualizarSolicitud(Solicitud solicitud);", "void update(Produto produto);", "public abstract void setValor1(java.lang.String newValor1);" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Kills the agent named agName as a requested by byAg. Agent.stopAg() method is called before the agent is removed.
public boolean killAgent(String agName, String byAg, int deadline);
[ "private void stopAgent()\r\n\t{\r\n\t\tString sMethod = \"stopAgent\";\r\n\t\ttry {\r\n\t\t\t_systemLogger.log(Level.INFO, MODULE, sMethod, \"Stopping Agent...\");\r\n\t\t\t// stop agent\r\n\t\t\t_oASelectAgent.destroy();\r\n\t\t\t// clean GUI recourses\r\n\t\t\t_oASelectAgent.destroyGui();\r\n\t\t\t_oASelectAgent = null;\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\t\t\t_systemLogger.log(Level.INFO, MODULE, sMethod, \"Could not stop Agent\", e);\r\n\t\t\tSystem.exit(1);\r\n\t\t}\r\n\t}", "public final void killAgent(String name) throws NotFoundException, IMTPException {\n\t\twaitUntilStarted();\n\t\tAgent agent = (Agent) localAgents.get(name);\n\t\tif(agent == null) {\n\t\t\tSystem.out.println(\"FrontEndContainer killing: \" + name + \" NOT FOUND\");\n\t\t\tthrow new NotFoundException(\"KillAgent failed to find \" + name);\n\t\t}\n\t\t\n\t\t// Note that the agent will be removed from the local table in \n\t\t// the handleEnd() method.\n\t\tagent.doDelete();\n\t}", "public void stop() {\n this.killAllAgents();\n }", "public void stopAgent() {\n \t\tLOG.info(\"Stop nGrinder agent!\");\n \t\tagentController.shutdown();\n \t}", "public void agentDeath(Agent ag) throws InterruptedException {\n\t\n\tProcessData data = (ProcessData) agents.get(ag);\n\tVertex vertex = data.vertex;\n\tLong key = new Long(numGen.alloc());\n\n\tint nbr = removeAgentFromVertex(vertex,ag);\n\t\n\tagents.remove(ag);\n\n\tevtQ.put(new AgentMovedEvent(key,\n\t\t\t\t vertex.identity(),\n\t\t\t\t new Integer(nbr)));\n\tmovingMonitor.waitForAnswer(key);\n\n stats.add(new TerminatedStat(ag.getClass()));\n\n\t/* Detecting the end of the algorithm */\n\tif(agents.isEmpty()) {\n evtQ.put(new AlgorithmEndEvent(numGen.alloc()));\n }\n }", "public void unsetAgentName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(AGENTNAME$20);\n }\n }", "public void removeAgent() {agent = null;}", "public final void kill() {\n doKill();\n }", "public void kill() {\r\n\t\tage = -1;\r\n\t}", "private void cancelAgent(String agentIdentifier) {\n StartedAgent startedAgent = getStartedAgent(agentIdentifier);\n if (startedAgent != null) {\n startedAgent.cancel();\n }\n }", "public void kill() {\n\t\tprtln(\"Harvester kill() \");\n\t\tkilled = true;\n\t}", "public void unsetAgenthost()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_attribute(AGENTHOST$6);\r\n }\r\n }", "public void unsetAgentgroup()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_attribute(AGENTGROUP$8);\r\n }\r\n }", "public void kill();", "public void stopEmailAgents();", "void removeAgent(MessageAddress agentId);", "@Override \r\n\tpublic void kill()\r\n\t{\r\n\t\tif(!alive)\r\n\t\t\treturn;\r\n\t\tFlxG.play(SndExplode);\r\n\t\tsuper.kill();\r\n\t\tflicker(0);\r\n\t\t_jets.kill();\r\n\t\t_gibs.at(this);\r\n\t\t_gibs.start(true,3,0,20);\r\n\t\tFlxG.score += 200;\r\n\t}", "public void startAgent(String agName);", "public void kill() {\n this.alive = false;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Delete k8s artifacts from k8s cluster in a given directory.
public static int deleteK8s(Path sourceDirectory) throws InterruptedException, IOException { ProcessBuilder pb = new ProcessBuilder(KUBECTL, "delete", "-f", sourceDirectory .toAbsolutePath().toString()); log.info("Deleting resources" + sourceDirectory.normalize()); log.debug(EXECUTING_COMMAND + pb.command()); pb.directory(sourceDirectory.toFile()); Process process = pb.start(); int exitCode = process.waitFor(); log.info(EXIT_CODE + exitCode); logOutput(process.getInputStream()); logOutput(process.getErrorStream()); return exitCode; }
[ "CacheCluster deleteCacheCluster(DeleteCacheClusterRequest deleteCacheClusterRequest);", "private void deleteAllArtifact() throws IOException {\n HttpRequestConfig requestConfig = getHttpRequestConfig();\n URL url = getRouterBaseUri().resolve(String.format(\"/v3/namespaces/default/artifacts\")).toURL();\n HttpResponse response = HttpRequests.execute(HttpRequest.get(url).build(), requestConfig);\n Assert.assertEquals(response.getResponseBodyAsString(), HttpURLConnection.HTTP_OK,\n response.getResponseCode());\n List<ArtifactSummary> summaryList = GSON\n .fromJson(response.getResponseBodyAsString(), ARTIFACT_SUMMARY_LIST);\n for (ArtifactSummary summary : summaryList) {\n url = getRouterBaseUri()\n .resolve(String.format(\"/v3/namespaces/default/artifacts/%s/versions/%s\",\n summary.getName(), summary.getVersion())).toURL();\n response = HttpRequests.execute(HttpRequest.delete(url).build(), requestConfig);\n Assert.assertEquals(response.getResponseBodyAsString(), HttpURLConnection.HTTP_OK,\n response.getResponseCode());\n }\n }", "public void deleteArtifacts( String gid )\n throws IOException\n {\n String path;\n if ( \"default\".equals( localRepoLayout ) )\n {\n path = gid.replace( '.', '/' );\n }\n else if ( \"legacy\".equals( localRepoLayout ) )\n {\n path = gid;\n }\n else\n {\n throw new IllegalStateException( \"Unsupported repository layout: \" + localRepoLayout );\n }\n\n FileUtils.deleteDirectory( new File( localRepo, path ) );\n }", "@Path(\"/{groupId}/artifacts\")\n @DELETE\n void deleteArtifactsInGroup(@PathParam(\"groupId\") String groupId);", "DeleteClusterResult deleteCluster(DeleteClusterRequest deleteClusterRequest);", "void deleteDirectory(String path) throws IOException;", "List<String> deleteArtifact(String groupId, String artifactId) throws ArtifactNotFoundException, RegistryStorageException;", "void deleteArtifacts(String groupId) throws RegistryStorageException;", "OperationStatusResponse deleteAll(String serviceName) throws InterruptedException, ExecutionException, ServiceException, IOException;", "public void deleteArtifacts( String gid, String aid, String version )\n throws IOException\n {\n String path;\n if ( \"default\".equals( localRepoLayout ) )\n {\n path = gid.replace( '.', '/' ) + '/' + aid + '/' + version;\n }\n else\n {\n throw new IllegalStateException( \"Unsupported repository layout: \" + localRepoLayout );\n }\n\n FileUtils.deleteDirectory( new File( localRepo, path ) );\n }", "void folderDeleted(String remoteFolder);", "@PreDestroy\n public void deleteAllBuckets() {\n for (String bucketName : bucketsCreated) {\n deleteS3Bucket(bucketName);\n }\n }", "public void deletePathRecursive( String path){\n\t\t\ttry {\n\t\t\t\tzkClient.delete().guaranteed().deletingChildrenIfNeeded().forPath(path);\n\t\t\t}catch(KeeperException.NoNodeException nne){\n\t\t\t\t //this can happen during a connection loss event, return normally\n\t\t\t} catch(Throwable t){\n\t\t\t\tthrow new KafkaZKException(t);\n\t\t\t}\n\t\t}", "public void deleteArtifact(String artifactId) throws ManagementException;", "@DeleteMapping(\"/vm-host-clusters/{id}\")\n @Timed\n public ResponseEntity<Void> deleteVMHostCluster(@PathVariable Long id) {\n log.debug(\"REST request to delete VMHostCluster : {}\", id);\n\n vMHostClusterRepository.deleteById(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }", "@Path(\"/{groupId}/artifacts/{artifactId}\")\n @DELETE\n void deleteArtifact(@PathParam(\"groupId\") String groupId,\n @PathParam(\"artifactId\") String artifactId);", "public void delete(final String path, int version) throws InterruptedException, KeeperException {\n final String clientPath = path;\n PathUtils.validatePath(clientPath);\n\n final String serverPath;\n\n // maintain semantics even in chroot case\n // specifically - root cannot be deleted\n // I think this makes sense even in chroot case.\n if (clientPath.equals(\"/\")) {\n // a bit of a hack, but delete(/) will never succeed and ensures\n // that the same semantics are maintained\n serverPath = clientPath;\n } else {\n serverPath = prependChroot(clientPath);\n }\n\n RequestHeader h = new RequestHeader();\n h.setType(ZooDefs.OpCode.delete);\n DeleteRequest request = new DeleteRequest();\n request.setPath(serverPath);\n request.setVersion(version);\n ReplyHeader r = cnxn.submitRequest(h, request, null, null);\n if (r.getErr() != 0) {\n throw KeeperException.create(KeeperException.Code.get(r.getErr()), clientPath);\n }\n }", "void delete(String resourceGroupName, String clusterName, String applicationTypeName);", "void clusterRemoveFeaturesRepository(String url, String clusterGroup, String Connection) throws Exception;" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
// setActivity // // Assign a new current activity and notify all observers
public void setActivity (Activity activity) { this.activity = activity; setChanged(); notifyObservers(); }
[ "public void setActivity(Activity activity) {this.activity = activity;}", "public final void setActivity(final Activity<ProcessContext> theActivity) {\n\t\tthis.activity = theActivity;\n\t}", "public void setActivity(Activity activity) {\n lastNeuron().setActivity(activity);\n }", "public void setActivity(boolean activity){\n\t\tthis.activity = activity;\n\t}", "public void setActivity(entity.Activity value);", "public void setActiveActivity(Activity activeActivity) {\n this.activeActivity = activeActivity;\n }", "void setInCallScreenActivity(Activity activity) {\n log(\"setInCallScreenActivity RCSe\" + activity);\n mInCallScreenActivity = activity;\n }", "public void setActivity(BaseActivity act)\n {\n this.activity = act;\n\n if (act == null) {\n //dismiss the dialog if there is no\n //activity associated with this task\n dismissProgressDialog();\n }\n else\n {\n //activity is being attached to the background thread.\n //Check if the task is already completed\n if (taskCompleted && getStatus().equals(AsyncTask.Status.FINISHED)\n && updateOnActivityAttach) {\n \tif (!isCancelled()) {\n\t //yes, notify about completion of task\n\t notifyTaskCompletion(null);\n \t}\n \telse {\n \t\tnotifyTaskCancelled(null);\n \t}\n }\n else\n {\n //no, display the progress dialog indicating the\n //background task is still running.\n showProgressDialog();\n }\n }\n }", "public void setActivity(ViewPageActivity activity) {\n\t\tpageActivity = activity;\n\t}", "public void setCurrentActivityDescription(String activity);", "public synchronized void setCurrentActivity(String currentActivity) {\n this.currentActivity = currentActivity;\n currentProgress.set(0);\n }", "public final void setTest_Activity(ugs.proxies.Test test_activity)\n\t{\n\t\tsetTest_Activity(getContext(), test_activity);\n\t}", "public void setActivityIntent(String activityIntent) {\r\n this.activityIntent = activityIntent;\r\n this.dirtyFlag = true;\r\n }", "public final void setTest_Activity(com.mendix.systemwideinterfaces.core.IContext context, ugs.proxies.Test test_activity)\n\t{\n\t\tif (test_activity == null)\n\t\t\tgetMendixObject().setValue(context, MemberNames.Test_Activity.toString(), null);\n\t\telse\n\t\t\tgetMendixObject().setValue(context, MemberNames.Test_Activity.toString(), test_activity.getMendixObject().getId());\n\t}", "void setParentActivity(String activity);", "public final void setActivity_Interview(ugs.proxies.Interview activity_interview)\n\t{\n\t\tsetActivity_Interview(getContext(), activity_interview);\n\t}", "public void addActivity(Activity activity)\n {\n listActivity.add(activity);\n }", "public void setActivityServer(ActivityServer activityServer) {\n _activityServer = activityServer;\n }", "public void setActivities(List activities);" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Checks if a the given operation is allowed on the group. On local groups every operation is allowed, on remote groups none. On public group only the managment of its members is allowed.
public boolean isOperationForbidden(Group g, String operation) { boolean allowed = false; if (g.getNode().getId().equals(nodeService.getLocalNode().getId())) { allowed = true; } if (g.getNode().getPublicNode()) { if (operation.equals(OPERATIONNAME_MANAGE_MEMBERS)) { allowed = true; } } return !allowed; }
[ "boolean hasGroupOperateMessageRequest();", "private void checkAccessRights(final String operation, final String id,\n final String username, final Profile myProfile,\n final String myUserId, final List<GroupElem> userGroups,\n final UserGroupRepository groupRepository) { Before we do anything check (for UserAdmin) that they are not trying\n // to add a user to any group outside of their own - if they are then\n // raise an exception - this shouldn't happen unless someone has\n // constructed their own malicious URL!\n //\n if (operation.equals(Params.Operation.NEWUSER)\n || operation.equals(Params.Operation.EDITINFO)\n || operation.equals(Params.Operation.FULLUPDATE)) {\n if (!(myUserId.equals(id)) && myProfile == Profile.UserAdmin) {\n final List<Integer> groupIds = groupRepository\n .findGroupIds(UserGroupSpecs.hasUserId(Integer\n .parseInt(myUserId)));\n for (GroupElem userGroup : userGroups) {\n boolean found = false;\n for (int myGroup : groupIds) {\n if (userGroup.getId() == myGroup) {\n found = true;\n }\n }\n if (!found) {\n throw new IllegalArgumentException(\n \"Tried to add group id \"\n + userGroup.getId()\n + \" to user \"\n + username\n + \" - not allowed \"\n + \"because you are not a member of that group!\");\n }\n }\n }\n }\n }", "public boolean isUserAllowedInGroup(String userId, String permission, String groupId);", "boolean groupSupports(Object groupID, int groupConstant) throws Exception;", "public boolean hasPermission(String op, String ar){\r\n boolean success=false;\r\n String [] has = getOperationsInArea( ar );\r\n\t\tSet check = new HashSet();\r\n\t\tif(has.length==0&&areas.contains(\"*\")) success=true;\r\n\t\telse {\r\n\t\t\t for(int i=0;i<has.length;i++)\r\n\t\t\t\t {\r\n\t\t\t check.add(has[i]) ;\r\n\t\t\t }\r\n success=check.contains(op) ;\r\n if((success==false)&&(operations.contains(\"*\")))\r\n success=true;\r\n\t\t\t }\r\n return success;\r\n }", "public boolean checkOperation(char operation) {\n boolean result = false;\n if (operation == '+' | operation == '-' | operation == '/' | operation == '*') {\n result = true;\n }\n return result;\n }", "boolean hasCreGroupLimit();", "boolean supports(OPERATION operation);", "public boolean check(Group group){\n return false;\n }", "public boolean isCanFlagGroup() {\n boolean result = false;\n String groupID = rpm.get(\"group\");\n if (groupID != null) {\n group = groupEJB.findGroup(Integer.parseInt(groupID));\n if (group != null && flagger != null) {\n GroupFlag existingFlag = groupFlagEJB.findByUserAndGroup(flagger, group);\n result = (existingFlag != null);\n }\n }\n return result;\n }", "public void testAclGroupsSupported()\n {\n assertTrue(_ruleSet.addGroup(\"aclgroup\", Arrays.asList(new String[] {\"usera\", \"userb\"}))); \n \n _ruleSet.grant(1, \"aclgroup\", Permission.ALLOW, Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY);\n assertEquals(1, _ruleSet.getRuleCount());\n\n assertEquals(Result.ALLOWED, _ruleSet.check(TestPrincipalUtils.createTestSubject(\"usera\"),Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY));\n assertEquals(Result.ALLOWED, _ruleSet.check(TestPrincipalUtils.createTestSubject(\"userb\"),Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY));\n assertEquals(Result.DEFER, _ruleSet.check(TestPrincipalUtils.createTestSubject(\"userc\"),Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY));\n }", "public void testNestedAclGroupsSupported()\n {\n assertTrue(_ruleSet.addGroup(\"aclgroup1\", Arrays.asList(new String[] {\"userb\"})));\n assertTrue(_ruleSet.addGroup(\"aclgroup2\", Arrays.asList(new String[] {\"usera\", \"aclgroup1\"}))); \n \n _ruleSet.grant(1, \"aclgroup2\", Permission.ALLOW, Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY);\n assertEquals(1, _ruleSet.getRuleCount());\n\n assertEquals(Result.ALLOWED, _ruleSet.check(TestPrincipalUtils.createTestSubject(\"usera\"),Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY));\n assertEquals(Result.ALLOWED, _ruleSet.check(TestPrincipalUtils.createTestSubject(\"userb\"),Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY));\n }", "public abstract boolean canAccessFrom(Set<String> cidrGroup);", "@Override\r\n\tpublic boolean isGroupAndAirplaneValid(GroupDetail group, AirplaneModel ap, UserPrivilegesModel userPrivileges) {\r\n\t\tboolean isAdmin = false;\r\n\t\tif ( ObjectUtil.isMapNotEmpty(userPrivileges.getSuperUserMap()) &&\r\n\t\t\t userPrivileges.getSuperUserMap().get(group)!=null &&\r\n\t\t\t userPrivileges.getSuperUserMap().get(group).contains(ap)) {\r\n\t\t\t\tisAdmin = true;\r\n\t\t}\r\n\t\t\r\n\t\tif (ObjectUtil.isMapNotEmpty(userPrivileges.getSuperAdminMap()) &&\r\n\t\t\t\t userPrivileges.getSuperAdminMap().get(group)!=null &&\r\n\t\t\t\t userPrivileges.getSuperAdminMap().get(group).contains(ap)) {\r\n\t\t\t\t\tisAdmin = true;\r\n\t\t}\r\n\t\treturn isAdmin;\r\n\t}", "boolean isMember(PyxisUserGroup group);", "public void testExternalGroupsSupported()\n {\n _ruleSet.grant(1, \"extgroup1\", Permission.ALLOW, Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY);\n _ruleSet.grant(2, \"extgroup2\", Permission.DENY, Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY);\n assertEquals(2, _ruleSet.getRuleCount());\n\n assertEquals(Result.ALLOWED, _ruleSet.check(TestPrincipalUtils.createTestSubject(\"usera\", \"extgroup1\"),Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY));\n assertEquals(Result.DENIED, _ruleSet.check(TestPrincipalUtils.createTestSubject(\"userb\", \"extgroup2\"),Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY));\n }", "private final boolean checkUserGroupMembership(WebUser user, WebUserGroup group) throws TaskException {\n\t\tboolean result = false;\n\t\tresult = user.getParents().contains(group);\n\t\tif (result == false) {\n\t\t\tthrow new TaskException(\"You do not have sufficient privileges to use the GeoDash map visualization. Please ask your administrator to grant you the appropriate privileges.\");\n\t\t}\n\t\treturn result;\n\t}", "void isAllowed(final String userId, final String resourceName, final String operationName,\n final ResultHandler<Boolean> resultHandler);", "@SuppressWarnings(value = \"unchecked\")\n public boolean hasAllowedSubgroup(Group group) {\n Boolean val;\n Map<String, Boolean> p = (Map<String, Boolean>) cfg.getRequestAttribute(PROJECT_HELPER_ALLOWED_SUBGROUP);\n if (p == null) {\n p = new TreeMap<String, Boolean>();\n cfg.setRequestAttribute(PROJECT_HELPER_ALLOWED_SUBGROUP, p);\n }\n val = p.get(group.getName());\n if (val == null) {\n val = cfg.isAllowed(group);\n val = val && !filterGroups(group.getDescendants()).isEmpty();\n p = (Map<String, Boolean>) cfg.getRequestAttribute(PROJECT_HELPER_ALLOWED_SUBGROUP);\n p.put(group.getName(), val);\n }\n cfg.setRequestAttribute(PROJECT_HELPER_ALLOWED_SUBGROUP, p);\n return val;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set interval of emitting particles from particle source. Example: _source setDropInterval 0.05
public native static void setDropInterval(GameObject oper1, float oper2);
[ "void setSamplingIntervalMs(long ms);", "public Duration emitInterval() {\n return emitInterval;\n }", "public void setSampleRate(float rate)\n {\n samplingDelay = (int)(ONE_SECOND/rate);\n }", "@Generated\n @Selector(\"setMagnetometerUpdateInterval:\")\n public native void setMagnetometerUpdateInterval(double value);", "void setStatisticsInterval(long interval, TimeUnit timeUnit);", "public void setInterimInterval(long interval);", "@JSProperty(\"tickInterval\")\n void setTickInterval(double value);", "void setSamplingTaskRunIntervalMs(long ms);", "void setTimeInterval(net.opengis.gml.x32.TimeIntervalLengthType timeInterval);", "public void setUpdateInterval(int updateInterval);", "@Generated\n @Selector(\"setGyroUpdateInterval:\")\n public native void setGyroUpdateInterval(double value);", "void setSignalPeriod(double signalPeriod);", "@Override\r\n public void _updateSource(MixerSource source) {\n Vec3d sourcePosition = source.getAudioNode() == null ? playerPosition : source.getAudioNode().getGlobalCoordinates();\r\n Vec3d relativepos = Vec3d.substraction(sourcePosition, playerPosition);\r\n\r\n //Calculate and set the new volume\r\n source.setVolume(getVolumeFromDistance(relativepos.length(), source.getCurrentAudio().getBaseVolume()));\r\n }", "public void setSweepInterval(int interval)\r\n\t{\r\n\t\tif (interval <= 0)\r\n\t\t\tthrow new KNXIllegalArgumentException(\"sweep interval has to be > 0\");\r\n\t\tsynchronized (lock) {\r\n\t\t\tsweepInterval = interval;\r\n\t\t\tlock.notify();\r\n\t\t}\r\n\t}", "@Nonnull\r\n\tpublic static <T> Observable<T> removeTimeInterval(\r\n\t\t\t@Nonnull Observable<TimeInterval<T>> source) {\r\n\t\treturn select(source, Reactive.<T>unwrapTimeInterval());\r\n\t}", "public void set_interval(int value) {\n setUIntBEElement(offsetBits_interval(), 16, value);\n }", "public void setLoopInterval(int loopInterval)\r\n {\r\n this.loopInterval = loopInterval;\r\n }", "public TimedActorController(Actor target, int interval, float variance)\r\n\t{\r\n\t\tsuper(target);\r\n\t\tthis.interval = (int) (interval * (1f + (Resources.random().nextFloat()\r\n\t\t\t\t- 0.5f) * variance));\r\n\t}", "public void setDistance(double interval) {\r\n\t\tthis.setSpeed();\r\n\t\t//System.out.println(\"distance: \" + this.distRun + \" speed: \" + this.currSpeed + \" interval: \"+ interval);\r\n\t\tthis.distRun += this.currSpeed * interval;\r\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the name of the input u (eastwest) velocity file
public void setInputUFile(String inputUFile) { this.inputUFile = inputUFile; }
[ "public void setFileName( String name ) {\n\tfilename = name;\n }", "public void setName(String name){\n\t\tthis.name=name;\n\t\tinPath=rootPath+name+File.separator;\n\t\tbuildPaths();\n\t}", "public void setDateiName(String v) {\r\n\tthis.dateiName = getPath() + v;\r\n\tinitVector();\r\n }", "public void setFileName (String FileName);", "public void setInputFileName(String iFName) {\r\n inputFileName = iFName;\r\n }", "public void setInputVFile(String inputVFile) {\r\n\t\tthis.inputVFile = inputVFile;\r\n\t}", "public void setFileName(String filename)\n\t{\n\t\tsuper.setFileName(filename);\n\t\t\n\t\t//#CM702602\n\t\t// Generate the path name of Working data File. \n\t\tworkingDataFileName = wFileName.replaceAll(\"\\\\\\\\send\\\\\\\\\", \"\\\\\\\\recv\\\\\\\\\");\n\t}", "void setVarName(String vname) {\n this.vname = vname;\n }", "public void setFilename(String name){\n\t\tfilename = name;\n\t}", "public void setFileName(final String theName)\r\n {\r\n\r\n // this means we are currently in a save operation\r\n _modified = false;\r\n\r\n // store the filename\r\n _fileName = theName;\r\n\r\n // and use it as the name\r\n if (theName.equals(NewSession.DEFAULT_NAME))\r\n setName(theName);\r\n\r\n }", "public void setFileName(String fileName)\r\n {\r\n sFileName = fileName;\r\n }", "public void setCurrentFile(String name) {\n\t\tthis.currentFile = name;\n\t}", "public final void setSourceName(String name) {\n\n\t // Convert the name to NetBIOS RFC encoded name\n\n\t NetBIOSSession.EncodeName ( name, NetBIOSName.FileServer, m_buf, NB_FROMNAME);\n\t}", "public void setCurrentFileName(String currentFile) {\n this.currentFileName = currentFile;\n }", "public void setName(String name) {//setName method\n\t\tthis.name = name;//save input data to name\n\t}", "public void setName(Name v) {\n this.name = v;\n }", "public void setInputFile(File input){\n this.inputFile = input;\n }", "private void setName(){\r\n\t\tString tagString = new String();\r\n\t\tfor (String k : tags.keySet()){\r\n\t\t\ttagString += \"@\" + k;\r\n\t\t}\r\n\t\tString newName = originalName + tagString +\".\"+ extension;\r\n\t\tif (!newName.equals(name)){\r\n\t\t\tremovePrevNames(newName); //if the new name is a previous name\r\n\t\t\taddPrevNames(name);\r\n\t\t\tupdateLog(newName);\r\n\t\t\tname = newName;\r\n\t\t\t//notify the tag observer\r\n\t\t\tsetChanged();\r\n\t\t\tnotifyObservers();\r\n\t\t\tclearChanged();\r\n\t\t}\r\n\t}", "public void experiment_setUserName(String name) throws EditorException;" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Clicks on the increase button for adults in the travellers panel.
public void clickTravellersAdultsInc() { travellersAdultInc.click(); }
[ "public void clickTravellersAdultsDec() {\n\t\ttravellersAdultDec.click();\n\t}", "public void clickTravellersInfantsInc() {\n\t\ttravellersInfantsInc.click();\n\t}", "public void clickTravellersChildrenInc() {\n\t\ttravellersChildInc.click();\n\t}", "public void addAdult()\r\n {\r\n adults++; // Adding an adult to the ticket.\r\n }", "public void onIncreaseButtonClicked() {\r\n\t\tif (wordChanger == null) {\r\n\t\t\tinitializeWordChanger();\r\n\t\t}\r\n\r\n\t\tint currentWpm = rsvpStatus.getCurrentWpm();\r\n\r\n\t\tif (currentWpm < 700) {\r\n\t\t\tcurrentWpm += 50;\r\n\t\t\trsvpStatus.setCurrentWpm(currentWpm);\r\n\t\t\twordChanger.setWordsPerMinute(currentWpm);\r\n\t\t}\r\n\r\n\t\tview.updateCurrentWpmLabel(currentWpm);\r\n\t}", "public void addCatapultButtonClicked() {\r\n\t\tMain.selectedCastle.addProduction(Catapult.class);\r\n \trefresh();\r\n\t}", "public void clickIncreaseQuantity() throws InterruptedException\n\t{\n\t\tThread.sleep(2000);\n\t\twaitForVisibility(increaseQuantity);\n\t\tincreaseQuantity.click();\n\t}", "public void clickTravellersInfantsDec() {\n\t\ttravellersInfantsDec.click();\n\t}", "public void clickTravellersButton() {\n\t\ttry {\n\t\t\tWebElement travellerButton = driver\n\t\t\t\t\t.findElement(By.xpath(\"//button[@data-testid='travelers-field-trigger']\"));\n\t\t\ttravellerButton.click();\n\t\t} catch (NoSuchElementException e) {\n\t\t\tWebElement alternativeTravellerButton = driver.findElement(By.xpath(\"//a[@data-testid='travelers-field']\"));\n\t\t\talternativeTravellerButton.click();\n\t\t}\n\t}", "public void addition() {\n WebElement plus = driver.findElementById(\"com.android.calculator2:id/op_add\");\n plus.click();\n }", "public void clickOnAddVehiclesButton() {\r\n\t\tsafeClick(groupListSideBar.replace(\"Group List\", \"Add Vehicle\"), SHORTWAIT);\r\n\t}", "private void clickAddPenalty() {\n addPenalty(\"0430\", \"Fight\", \"5\", \"Away\", \"25\");\n\n // After adding the penalty, validate the UI and model state\n assertEquals(HistoryFragment.class, visibleFragmentClass());\n assertEquals(3, model.getEvents().size());\n\n PenaltyEvent penalty = (PenaltyEvent) model.getEvents().get(2);\n assertEquals(2, penalty.getPeriod());\n assertEquals(\"35:30\", penalty.getGameTime());\n assertEquals(25, penalty.getPlayer());\n assertEquals(model.getAwayTeam().getName(), penalty.getTeam());\n }", "public void clickOnAdmissionsButton(){\r\n\t\twebUtil.switchToFrameByFrameLocator(COMMONTOPFRAME);\r\n\t\twebUtil.click(\"IMPS_Admissions_Btn\");\r\n\t\twebUtil.holdOn(2);\r\n\t\twebUtil.switchToWindowFromFrame();\r\n\t}", "public void clickOnAddInvestmentBtn() {\n waitAndClick(addInvestmentBtn, \"Add Investment Goal button\");\n }", "public void increaseClick(View view){\n counterValue++;\n valueView.setText(String.valueOf(counterValue));\n }", "public void clickTravellersDone() {\n\t\ttravellersDone.click();\n\t}", "public void clickAddButton()\n\t{\n\t\thellobutton.click();\n\t}", "public void onPlanetButton10Pressed(View view) {\n askForTravel(10);\n }", "public void ClickPlansOfferedPage() {\r\n\t\tplansoffered.click();\r\n\t\t\tLog(\"Clicked the \\\"Plans Offered\\\" button on the Birthdays page\");\r\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set the property determining whether this LevelElement is affected by gravity.
void setGravity(boolean gravity);
[ "public void setGravity(double gravity)\r\n {\r\n this.gravity = gravity;\r\n }", "public void setGravity ( boolean gravity ) {\n\t\tinvokeSafe ( \"setGravity\" , gravity );\n\t}", "public void setGravity(final int gravity) {\n this.gravity = gravity;\n requestRepaint();\n }", "public void setGravity(double g)\n\t{\n\t\tgravity = g;\n\t}", "public void setGravity(float gravity) {\n\t\tthis.gravity = gravity;\n\t}", "public void setGravity(double value) {\n\t\tmyLevel.setGravityVal(value / GRAVITY_OFFSET_VALUE);\n\t}", "public void setGravity(double gZ)\n {\n setGravity(0.0, 0.0, gZ);\n }", "@Test\n public void testGravity() {\n assertTrue(player.hasGravity());\n player.setGravity(false);\n assertFalse(player.hasGravity());\n }", "public void setGravity(Vector2 gravity)\r\n\t{\r\n\t\tworld.setGravity(gravity);\r\n\t}", "public boolean setPropertyUnityGain(boolean aValue);", "public void setGravity(Vector3f gravity) {\n rBody.setGravity(Converter.convert(gravity, tempVec));\n }", "boolean hasGravity();", "@Test\n\tpublic void testSetGravityForce() {\n\t\tSystem.out.println(\"setGravityForce\");\n\t\tMeasure expResult = new Measure(22.2, \"km\");\n\t\tthis.step.setGravityForce(expResult);\n\t\tassertEquals(expResult, this.step.getGravityForce());\n\t}", "void setGodPower(boolean b);", "public void setPropertyPenalty(float value) {\n this.propertyPenalty = value;\n }", "public abstract void setForceLevel(int level);", "protected void setBeenAttacked ( ) {\n this.velocityChanged = true;\n }", "void setAcceleration(boolean isOn);", "public double getGravity()\r\n {\r\n return this.gravity;\r\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Add a MSG_REPORT_PROCESS_OPEN to the outbound queue. This method is called while region is in the queue of regions to process and then while the region is being opened, it is called from the Worker thread that is running the region open.
protected void addProcessingMessage(final HRegionInfo hri) { getOutboundMsgs().add(new HMsg(HMsg.Type.MSG_REPORT_PROCESS_OPEN, hri)); }
[ "private void OpenQueueForWriting() throws MQException, IOException {\n\t\t\n\t\tint openOptions = MQConstants.MQOO_FAIL_IF_QUIESCING \n\t\t\t\t\t\t+ MQConstants.MQOO_OUTPUT;\n\n\t\tif (Log()) {\n\t\t\tSystem.out.println(\"PRODUCER: \" + ThreadName() + \" , Opening Queue for output : \" + QueueName());\n\t\t}\n\t\tQueue(Controller().OpenQueue(QueueManager(), openOptions));\n\n\t//\tthis.queue = qmgr.accessQueue(this.queueName, openOptions);\n\t}", "protected void process() {\n MonitoringEngine.getInstance().compositeMonitorCompleted(this);\n super.process();\n }", "void rs2_start_processing_queue(PointerByReference block, PointerByReference queue, PointerByReference error);", "public void notifyExportInProgressEvent(TargetPage p_targetPage)\n throws PageException, RemoteException;", "private void housekeeping() {\n // Try to get the root region location from the master. \n if (!haveRootRegion.get()) {\n HServerAddress rootServer = hbaseMaster.getRootRegionLocation();\n if (rootServer != null) {\n // By setting the root region location, we bypass the wait imposed on\n // HTable for all regions being assigned.\n this.connection.setRootRegionLocation(\n new HRegionLocation(HRegionInfo.ROOT_REGIONINFO, rootServer));\n haveRootRegion.set(true);\n }\n }\n // If the todo list has > 0 messages, iterate looking for open region\n // messages. Send the master a message that we're working on its\n // processing so it doesn't assign the region elsewhere.\n if (this.toDo.size() <= 0) {\n return;\n }\n // This iterator is 'safe'. We are guaranteed a view on state of the\n // queue at time iterator was taken out. Apparently goes from oldest.\n for (ToDoEntry e: this.toDo) {\n if (e.msg.isType(HMsg.Type.MSG_REGION_OPEN)) {\n addProcessingMessage(e.msg.getRegionInfo());\n }\n }\n }", "private void addMessageToProcessingQueue(Message message) {\r\n try {\r\n mMessageOutputQueue.put(message);\r\n } catch (InterruptedException e) {\r\n //e.printStackTrace();\r\n }\r\n }", "@Override\n\tprotected void doAction(Object message) {\n\t\tlogger.info(\"File Scanner Fetch message Name -->:\"+message.toString());\n\t\ttry {\n\t\t\tFileParser.queue.put(message);\n\t\t} catch (InterruptedException e) {\n\t\t\tlogger.error(\"Error on add message to Parser\");\n\t\t}\n\t}", "private void frameProcessed(){\n if(DEBUG) Log.d(TAG, \"Frame Processed\");\n synchronized (mWaitFrame) {\n mWaitFrame.notifyAll();\n }\n }", "@Override\n public void openEvent(){\n rl.lock();\n try{\n log.printFirst();\n System.out.println(\"B : Opening the event...\");\n //change broker state\n// MyThreadBroker broker = (MyThreadBroker) Thread.currentThread();\n// broker.broker_states = MyThreadBroker.Broker_States.OPENING_THE_EVENT;\n //change log\n log.changeLog();\n log.setBrokerState(MyThreadBroker.Broker_States.OPENING_THE_EVENT); \n log.changeLog();\n }finally{\n rl.unlock();\n }\n }", "public void addProcess(PCB process) {\r\n if(getSize() < MAX_SIZE) {\r\n readyQueue.offer(process);\r\n }\r\n }", "public synchronized void addToQueue(Process process) throws InterruptedException{\n\t\tqueue.add(process);\n\t}", "private void handleStatusReport(AsyncResult ar) {\n String pduString = (String) ar.result;\n SmsMessage sms = SmsMessage.newFromCDS(pduString);\n\n if (sms != null) {\n int messageRef = sms.messageRef;\n for (int i = 0, count = deliveryPendingList.size(); i < count; i++) {\n SmsTracker tracker = deliveryPendingList.get(i);\n if (tracker.mMessageRef == messageRef) {\n // Found it. Remove from list and broadcast.\n deliveryPendingList.remove(i);\n PendingIntent intent = tracker.mDeliveryIntent;\n Intent fillIn = new Intent();\n fillIn.putExtra(\"pdu\", SimUtils.hexStringToBytes(pduString));\n try {\n intent.send(mContext, Activity.RESULT_OK, fillIn);\n } catch (CanceledException ex) {}\n\n // Only expect to see one tracker matching this messageref\n break;\n }\n }\n }\n\n if (mCm != null) {\n mCm.acknowledgeLastIncomingSMS(true, null);\n }\n }", "private void processMessageQueue(){\n\t\tKIDSGUIAlert m = null;\n\t\tStringBuilder newText = new StringBuilder(logLines.getText());\n\t\twhile ((m = this.logMessages.poll()) != null){\n\t\t\tnewText.append(String.format(\"%s\\n\", m.toString()));\n\t\t}\n\t\tlogLines.setText(newText.toString());\n\t}", "public void onAccessesProcessed();", "public void sendOpenComlogEvent() {\r\n\r\n analyticsManager.sendEvent(\r\n AnalyticsConstants.OPENED_COMLOG_SCREEN_EVENT, false,\r\n AnalyticsConstants.ACTION_CATEGORY);\r\n }", "public boolean addProcess(Process p){\n\t\tioQueue.insert(p);\n\t\tstats.maxIOQueueSize = Math.max(stats.maxIOQueueSize, ioQueue.getQueueLength());\n\t\tif(currentProcess == null){\n\t\t\tstart();\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t\t\n\t}", "private void closeProcess() {\n\t\ttry{\n\t\t\tif (m_oProcess != null) {\n\t\t //update the process\n\t\t\t\tm_oProcess.setProgressPerc(100);\n\t\t\t\tm_oProcess.setStatus(ProcessStatus.DONE.name());\n\t\t\t\tm_oProcess.setOperationEndDate(Utils.getFormatDate(new Date()));\n\t\t if (!m_oProcessRepository.updateProcess(m_oProcess)) {\n\t\t \tm_oLogger.error(\"WasdiGraph: Error during process update (terminated)\");\n\t\t }\n\t\t //send update process message\n\t\t\t\tif (m_oRabbitSender!=null && !m_oRabbitSender.SendUpdateProcessMessage(m_oProcess)) {\n\t\t\t\t m_oLogger.debug(\"WasdiGraph: Error sending rabbitmq message to update process list\");\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t m_oLogger.error(\"WasdiGraph: Exception closing process\", e);\n\t\t}\n\t}", "private void performSendToStagingArea() {\n MsbColumns columns = MsbClient.getColumnInfo();\n\n final Integer msbID = new Integer((String) sorter.getValueAt(\n selRow, columns.getIndexForKey(\"msbid\")));\n final String checksum = (String) sorter.getValueAt(\n selRow, columns.getIndexForKey(\"checksum\"));\n final String projectid = (String) sorter.getValueAt(\n selRow, columns.getIndexForKey(\"projectid\"));\n\n // Perform SpQueuedMap check and other Swing actions before\n // launching the SwingWorker thread.\n if (remaining.isSelected()) {\n String time =\n SpQueuedMap.getSpQueuedMap().containsMsbChecksum(checksum);\n\n if (time != null) {\n int rtn = JOptionPane.showOptionDialog(null,\n \"This observation was sent to the queue \"\n + time + \".\\n Continue ?\",\n \"Duplicate execution warning\",\n JOptionPane.YES_NO_OPTION,\n JOptionPane.WARNING_MESSAGE, null, null,\n null);\n\n if (rtn == JOptionPane.NO_OPTION) {\n return;\n }\n }\n }\n\n logger.info(\"Fetching MSB \" + msbID + \" INFO is: \" + projectid +\n \", \" + checksum);\n\n InfoPanel.logoPanel.start();\n om.enableList(false);\n\n (new SwingWorker<SpItem, Void>() {\n public SpItem doInBackground() {\n return localQuerytool.fetchMSB(msbID);\n }\n\n // Runs on the event-dispatching thread.\n protected void done() {\n // Restore GUI state: we want to do this on the\n // event-dispatching thread regardless of whether the worker\n // succeeded or not.\n om.enableList(true);\n InfoPanel.logoPanel.stop();\n\n try {\n SpItem item = get();\n\n // Perform the following actions of the worker was\n // successful ('get' didn't raise an exception).\n DeferredProgramList.clearSelection();\n om.addNewTree(item);\n buildStagingPanel();\n }\n catch (InterruptedException e) {\n logger.error(\"Execution thread interrupted\");\n }\n catch (ExecutionException e) {\n logger.error(\"Error retriving MSB: \" + e);\n String why = null;\n Throwable cause = e.getCause();\n if (cause != null) {\n why = cause.toString();\n }\n else {\n why = e.toString();\n }\n\n // exceptions are generally Null Pointers or Number Format\n // Exceptions\n logger.debug(why);\n JOptionPane.showMessageDialog(\n null, why, \"Could not fetch MSB\",\n JOptionPane.ERROR_MESSAGE);\n }\n catch (Exception e) {\n // Retaining this catch-all block as one was present in\n // the previous version of this code. Exceptions\n // raised by 'get' should be caught above -- this block\n // is in case the in-QT handling of the MSB fails.\n // (Not sure if that can happen or not.)\n logger.error(\"Error processing retrieved MSB: \" + e);\n JOptionPane.showMessageDialog(\n null, e.toString(), \"Could not process fetched MSB\",\n JOptionPane.ERROR_MESSAGE);\n }\n }\n }).execute();\n }", "protected final void pushSIFEventToProcessQueue(SIFDataObject sifObject, Zone zone, MappingInfo mappingInfo, EventAction eventAction)\r\n\t{\r\n\t\tqueue.blockingPush(new SubscriberMessage(sifObject, zone, mappingInfo, eventAction));\r\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Condition 1 of rule constructDeeperUnderstanding02_PATH_2_GOAL_8_COMPONENT_txtResp_22. The original expression was: action.getGoal().getPath().getId().equals(2)
private boolean constructDeeperUnderstanding02_PATH_2_GOAL_8_COMPONENT_txtResp_22_cond_1() { return (module_entity_Action_1.getGoal().getPath().getId().equals(2)); }
[ "private boolean constructDeeperUnderstanding03_PATH_2_GOAL_6_COMPONENT_txtOp_18_cond_1() {\r\n return (module_entity_Action_1.getGoal().getPath().getId().equals(2));\r\n }", "private boolean constructDeeperUnderstanding02_PATH_2_GOAL_6_COMPONENT_txtOp_16_cond_1() {\r\n return (module_entity_Action_1.getGoal().getPath().getId().equals(2));\r\n }", "private boolean constructDeeperUnderstanding03_PATH_2_GOAL_8_COMPONENT_txtResp_25_cond_1() {\r\n return (module_entity_Action_1.getGoal().getPath().getId().equals(2));\r\n }", "private boolean constructDeeperUnderstanding03_PATH_1_GOAL_2_COMPONENT_txtOp_5_cond_1() {\r\n return (module_entity_Action_1.getGoal().getPath().getId().equals(1));\r\n }", "private boolean constructDeeperUnderstanding02_PATH_1_GOAL_2_COMPONENT_txtOp_3_cond_1() {\r\n return (module_entity_Action_1.getGoal().getPath().getId().equals(1));\r\n }", "private boolean constructDeeperUnderstanding03_PATH_1_GOAL_4_COMPONENT_txtResp_12_cond_1() {\r\n return (module_entity_Action_1.getGoal().getPath().getId().equals(1));\r\n }", "private boolean constructDeeperUnderstanding03_PATH_1_GOAL_2_COMPONENT_txtOp_5_cond_2() {\r\n return (module_entity_Action_1.getGoal().getId().equals(2));\r\n }", "private boolean constructDeeperUnderstanding02_PATH_1_GOAL_4_COMPONENT_txtResp_9_cond_1() {\r\n return (module_entity_Action_1.getGoal().getPath().getId().equals(1));\r\n }", "private boolean constructDeeperUnderstanding02_PATH_1_GOAL_2_COMPONENT_txtOp_3_cond_2() {\r\n return (module_entity_Action_1.getGoal().getId().equals(2));\r\n }", "private boolean constructDeeperUnderstanding03_PATH_2_GOAL_5_COMPONENT_txtParcela1_15_cond_1() {\r\n return (module_entity_Action_1.getGoal().getPath().getId().equals(2));\r\n }", "private boolean constructDeeperUnderstanding03_PATH_2_GOAL_7_COMPONENT_txtParcela2_21_cond_1() {\r\n return (module_entity_Action_1.getGoal().getPath().getId().equals(2));\r\n }", "private boolean constructDeeperUnderstanding03_PATH_1_GOAL_4_COMPONENT_txtResp_12_cond_2() {\r\n return (module_entity_Action_1.getGoal().getId().equals(4));\r\n }", "private boolean constructDeeperUnderstanding03_PATH_1_GOAL_3_COMPONENT_txtParcela2_8_cond_1() {\r\n return (module_entity_Action_1.getGoal().getPath().getId().equals(1));\r\n }", "private boolean constructDeeperUnderstanding02_PATH_2_GOAL_8_COMPONENT_txtResp_22_cond_2() {\r\n return (module_entity_Action_1.getGoal().getId().equals(8));\r\n }", "private boolean constructDeeperUnderstanding02_PATH_1_GOAL_4_COMPONENT_txtResp_9_cond_2() {\r\n return (module_entity_Action_1.getGoal().getId().equals(4));\r\n }", "private boolean constructDeeperUnderstanding03_PATH_2_GOAL_6_COMPONENT_txtOp_18_cond_2() {\r\n return (module_entity_Action_1.getGoal().getId().equals(6));\r\n }", "private boolean constructDeeperUnderstanding03_PATH_2_GOAL_8_COMPONENT_txtResp_25_cond_2() {\r\n return (module_entity_Action_1.getGoal().getId().equals(8));\r\n }", "private boolean constructDeeperUnderstanding02_PATH_2_GOAL_6_COMPONENT_txtOp_16_cond_2() {\r\n return (module_entity_Action_1.getGoal().getId().equals(6));\r\n }", "private boolean constructDeeperUnderstanding03_PATH_1_GOAL_3_COMPONENT_txtParcela2_8_cond_2() {\r\n return (module_entity_Action_1.getGoal().getId().equals(3));\r\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets a total number of checkpoints to keep in the WAL history.
public int getWalHistorySize() { return walHistSize <= 0 ? DFLT_WAL_HISTORY_SIZE : walHistSize; }
[ "public int getHistoryCount() {\n String countQuery = \"SELECT * FROM \" + TABLE_HISTORY;\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor cursor = db.rawQuery(countQuery, null);\n int count = cursor.getCount();\n cursor.close();\n\n // return count\n return count;\n }", "public int getHistoryCSCount() {\n\n // 1. build the query\n String countQuery = \"SELECT * FROM \" + TABLE_NAME;\n\n // 2. execute the query to search whether the record exists\n Cursor cursor = db.rawQuery(countQuery, null);\n\n // 2. get the count\n int count = cursor.getCount();\n\n cursor.close();\n return count;\n }", "Integer getTotalStepCount();", "public int getHistorySize() {\n return history.size();\n }", "public long getCountEntries() {\n return fileCache.size();\n }", "public int getNumRecords() throws RecordStoreNotOpenException\r\n\t{\r\n\t\tif (this.isClosed) {\r\n\t\t\tthrow new RecordStoreNotOpenException();\r\n\t\t}\r\n\t\treturn this.numRecords;\r\n\t}", "public void currentCheckpointPagesCount(int num);", "public static int getWALAutoCheckpoint() {\n return 100;\n }", "public int getNCachedGets() {\n return stats.getInt(SEQUENCE_CACHED_GETS);\n }", "public int getStateHistoryLimit() throws ProvisioningException {\n return StateHistoryUtils.readStateHistoryLimit(home, log);\n }", "public int getTotalNrOfWaves() {\n\t\treturn mTrackWaves.size();\n\t}", "int getTotalNumCached();", "public int getNumStaleStorages() {\n return numStaleStorages;\n }", "int getWeaveCount();", "public int getNumberOfLastDayEvents() {\n int counter = 0;\n long currentTimeSeconds = getCurrentTimeInSeconds();\n for (int i = 0; i < records.length; i++) {\n synchronized (records[i]) {\n if (currentTimeSeconds - records[i].getLastTimeReset() < SECONDS_IN_DAY) {\n counter += records[i].getCount();\n }\n }\n }\n\n return counter;\n }", "int getStoreCount();", "public abstract long getCheckpointedSize();", "public int getTotalSavedBlocks() throws SQLException {\n\t\treturn ZoneVolumeMapper.getTotalSavedBlocks(this, this.zone.getName());\n\t}", "public int getTotalOfProcessedTransactions();" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__RTCTL__Group_7__0" $ANTLR start "rule__RTCTL__Group_7__0__Impl" InternalDsl.g:18050:1: rule__RTCTL__Group_7__0__Impl : ( ( rule__RTCTL__OpAssignment_7_0 ) ) ;
public final void rule__RTCTL__Group_7__0__Impl() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalDsl.g:18054:1: ( ( ( rule__RTCTL__OpAssignment_7_0 ) ) ) // InternalDsl.g:18055:1: ( ( rule__RTCTL__OpAssignment_7_0 ) ) { // InternalDsl.g:18055:1: ( ( rule__RTCTL__OpAssignment_7_0 ) ) // InternalDsl.g:18056:2: ( rule__RTCTL__OpAssignment_7_0 ) { if ( state.backtracking==0 ) { before(grammarAccess.getRTCTLAccess().getOpAssignment_7_0()); } // InternalDsl.g:18057:2: ( rule__RTCTL__OpAssignment_7_0 ) // InternalDsl.g:18057:3: rule__RTCTL__OpAssignment_7_0 { pushFollow(FOLLOW_2); rule__RTCTL__OpAssignment_7_0(); state._fsp--; if (state.failed) return ; } if ( state.backtracking==0 ) { after(grammarAccess.getRTCTLAccess().getOpAssignment_7_0()); } } } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { restoreStackSize(stackSize); } return ; }
[ "public final void rule__RTCTL__Group_6__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:17973:1: ( ( ( rule__RTCTL__OpAssignment_6_0 ) ) )\n // InternalDsl.g:17974:1: ( ( rule__RTCTL__OpAssignment_6_0 ) )\n {\n // InternalDsl.g:17974:1: ( ( rule__RTCTL__OpAssignment_6_0 ) )\n // InternalDsl.g:17975:2: ( rule__RTCTL__OpAssignment_6_0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getRTCTLAccess().getOpAssignment_6_0()); \n }\n // InternalDsl.g:17976:2: ( rule__RTCTL__OpAssignment_6_0 )\n // InternalDsl.g:17976:3: rule__RTCTL__OpAssignment_6_0\n {\n pushFollow(FOLLOW_2);\n rule__RTCTL__OpAssignment_6_0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getRTCTLAccess().getOpAssignment_6_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__RTCTL__Group_0__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:17541:1: ( ( ( rule__RTCTL__OpAssignment_0_0 ) ) )\n // InternalDsl.g:17542:1: ( ( rule__RTCTL__OpAssignment_0_0 ) )\n {\n // InternalDsl.g:17542:1: ( ( rule__RTCTL__OpAssignment_0_0 ) )\n // InternalDsl.g:17543:2: ( rule__RTCTL__OpAssignment_0_0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getRTCTLAccess().getOpAssignment_0_0()); \n }\n // InternalDsl.g:17544:2: ( rule__RTCTL__OpAssignment_0_0 )\n // InternalDsl.g:17544:3: rule__RTCTL__OpAssignment_0_0\n {\n pushFollow(FOLLOW_2);\n rule__RTCTL__OpAssignment_0_0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getRTCTLAccess().getOpAssignment_0_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__RTCTL__Group_1__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:17622:1: ( ( ( rule__RTCTL__OpAssignment_1_0 ) ) )\n // InternalDsl.g:17623:1: ( ( rule__RTCTL__OpAssignment_1_0 ) )\n {\n // InternalDsl.g:17623:1: ( ( rule__RTCTL__OpAssignment_1_0 ) )\n // InternalDsl.g:17624:2: ( rule__RTCTL__OpAssignment_1_0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getRTCTLAccess().getOpAssignment_1_0()); \n }\n // InternalDsl.g:17625:2: ( rule__RTCTL__OpAssignment_1_0 )\n // InternalDsl.g:17625:3: rule__RTCTL__OpAssignment_1_0\n {\n pushFollow(FOLLOW_2);\n rule__RTCTL__OpAssignment_1_0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getRTCTLAccess().getOpAssignment_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__RTCTL__Group_2__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:17676:1: ( ( ( rule__RTCTL__OpAssignment_2_0 ) ) )\n // InternalDsl.g:17677:1: ( ( rule__RTCTL__OpAssignment_2_0 ) )\n {\n // InternalDsl.g:17677:1: ( ( rule__RTCTL__OpAssignment_2_0 ) )\n // InternalDsl.g:17678:2: ( rule__RTCTL__OpAssignment_2_0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getRTCTLAccess().getOpAssignment_2_0()); \n }\n // InternalDsl.g:17679:2: ( rule__RTCTL__OpAssignment_2_0 )\n // InternalDsl.g:17679:3: rule__RTCTL__OpAssignment_2_0\n {\n pushFollow(FOLLOW_2);\n rule__RTCTL__OpAssignment_2_0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getRTCTLAccess().getOpAssignment_2_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__RTCTL__Group_8__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:18108:1: ( ( ( rule__RTCTL__OpAssignment_8_0 ) ) )\n // InternalDsl.g:18109:1: ( ( rule__RTCTL__OpAssignment_8_0 ) )\n {\n // InternalDsl.g:18109:1: ( ( rule__RTCTL__OpAssignment_8_0 ) )\n // InternalDsl.g:18110:2: ( rule__RTCTL__OpAssignment_8_0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getRTCTLAccess().getOpAssignment_8_0()); \n }\n // InternalDsl.g:18111:2: ( rule__RTCTL__OpAssignment_8_0 )\n // InternalDsl.g:18111:3: rule__RTCTL__OpAssignment_8_0\n {\n pushFollow(FOLLOW_2);\n rule__RTCTL__OpAssignment_8_0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getRTCTLAccess().getOpAssignment_8_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__RTCTL__Group_10__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:18270:1: ( ( ( rule__RTCTL__OpAssignment_10_0 ) ) )\n // InternalDsl.g:18271:1: ( ( rule__RTCTL__OpAssignment_10_0 ) )\n {\n // InternalDsl.g:18271:1: ( ( rule__RTCTL__OpAssignment_10_0 ) )\n // InternalDsl.g:18272:2: ( rule__RTCTL__OpAssignment_10_0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getRTCTLAccess().getOpAssignment_10_0()); \n }\n // InternalDsl.g:18273:2: ( rule__RTCTL__OpAssignment_10_0 )\n // InternalDsl.g:18273:3: rule__RTCTL__OpAssignment_10_0\n {\n pushFollow(FOLLOW_2);\n rule__RTCTL__OpAssignment_10_0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getRTCTLAccess().getOpAssignment_10_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__RTCTL__Group_11__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:18378:1: ( ( ( rule__RTCTL__OpAssignment_11_0 ) ) )\n // InternalDsl.g:18379:1: ( ( rule__RTCTL__OpAssignment_11_0 ) )\n {\n // InternalDsl.g:18379:1: ( ( rule__RTCTL__OpAssignment_11_0 ) )\n // InternalDsl.g:18380:2: ( rule__RTCTL__OpAssignment_11_0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getRTCTLAccess().getOpAssignment_11_0()); \n }\n // InternalDsl.g:18381:2: ( rule__RTCTL__OpAssignment_11_0 )\n // InternalDsl.g:18381:3: rule__RTCTL__OpAssignment_11_0\n {\n pushFollow(FOLLOW_2);\n rule__RTCTL__OpAssignment_11_0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getRTCTLAccess().getOpAssignment_11_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__RTCTL__Group_3__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:17757:1: ( ( ( rule__RTCTL__OpAssignment_3_0 ) ) )\n // InternalDsl.g:17758:1: ( ( rule__RTCTL__OpAssignment_3_0 ) )\n {\n // InternalDsl.g:17758:1: ( ( rule__RTCTL__OpAssignment_3_0 ) )\n // InternalDsl.g:17759:2: ( rule__RTCTL__OpAssignment_3_0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getRTCTLAccess().getOpAssignment_3_0()); \n }\n // InternalDsl.g:17760:2: ( rule__RTCTL__OpAssignment_3_0 )\n // InternalDsl.g:17760:3: rule__RTCTL__OpAssignment_3_0\n {\n pushFollow(FOLLOW_2);\n rule__RTCTL__OpAssignment_3_0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getRTCTLAccess().getOpAssignment_3_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__XAssignment__Group_1_1_0__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:17431:1: ( ( ( rule__XAssignment__Group_1_1_0_0__0 ) ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:17432:1: ( ( rule__XAssignment__Group_1_1_0_0__0 ) )\r\n {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:17432:1: ( ( rule__XAssignment__Group_1_1_0_0__0 ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:17433:1: ( rule__XAssignment__Group_1_1_0_0__0 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXAssignmentAccess().getGroup_1_1_0_0()); \r\n }\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:17434:1: ( rule__XAssignment__Group_1_1_0_0__0 )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:17434:2: rule__XAssignment__Group_1_1_0_0__0\r\n {\r\n pushFollow(FOLLOW_rule__XAssignment__Group_1_1_0_0__0_in_rule__XAssignment__Group_1_1_0__0__Impl35378);\r\n rule__XAssignment__Group_1_1_0_0__0();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXAssignmentAccess().getGroup_1_1_0_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public final void rule__XAssignment__Group_1__1__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:17338:1: ( ( ( rule__XAssignment__Group_1_1__0 )? ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:17339:1: ( ( rule__XAssignment__Group_1_1__0 )? )\r\n {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:17339:1: ( ( rule__XAssignment__Group_1_1__0 )? )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:17340:1: ( rule__XAssignment__Group_1_1__0 )?\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXAssignmentAccess().getGroup_1_1()); \r\n }\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:17341:1: ( rule__XAssignment__Group_1_1__0 )?\r\n int alt134=2;\r\n int LA134_0 = input.LA(1);\r\n\r\n if ( (LA134_0==14) ) {\r\n int LA134_1 = input.LA(2);\r\n\r\n if ( (synpred186_InternalRmOdp()) ) {\r\n alt134=1;\r\n }\r\n }\r\n switch (alt134) {\r\n case 1 :\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:17341:2: rule__XAssignment__Group_1_1__0\r\n {\r\n pushFollow(FOLLOW_rule__XAssignment__Group_1_1__0_in_rule__XAssignment__Group_1__1__Impl35195);\r\n rule__XAssignment__Group_1_1__0();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXAssignmentAccess().getGroup_1_1()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public final void rule__XAssignment__Group_0__3() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:17262:1: ( rule__XAssignment__Group_0__3__Impl )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:17263:2: rule__XAssignment__Group_0__3__Impl\r\n {\r\n pushFollow(FOLLOW_rule__XAssignment__Group_0__3__Impl_in_rule__XAssignment__Group_0__335044);\r\n rule__XAssignment__Group_0__3__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public final void rule__RTCTL__Group_4__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:17838:1: ( ( ( rule__RTCTL__OpAssignment_4_0 ) ) )\n // InternalDsl.g:17839:1: ( ( rule__RTCTL__OpAssignment_4_0 ) )\n {\n // InternalDsl.g:17839:1: ( ( rule__RTCTL__OpAssignment_4_0 ) )\n // InternalDsl.g:17840:2: ( rule__RTCTL__OpAssignment_4_0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getRTCTLAccess().getOpAssignment_4_0()); \n }\n // InternalDsl.g:17841:2: ( rule__RTCTL__OpAssignment_4_0 )\n // InternalDsl.g:17841:3: rule__RTCTL__OpAssignment_4_0\n {\n pushFollow(FOLLOW_2);\n rule__RTCTL__OpAssignment_4_0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getRTCTLAccess().getOpAssignment_4_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__RTCTL__Group_9__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:18189:1: ( ( ( rule__RTCTL__OpAssignment_9_0 ) ) )\n // InternalDsl.g:18190:1: ( ( rule__RTCTL__OpAssignment_9_0 ) )\n {\n // InternalDsl.g:18190:1: ( ( rule__RTCTL__OpAssignment_9_0 ) )\n // InternalDsl.g:18191:2: ( rule__RTCTL__OpAssignment_9_0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getRTCTLAccess().getOpAssignment_9_0()); \n }\n // InternalDsl.g:18192:2: ( rule__RTCTL__OpAssignment_9_0 )\n // InternalDsl.g:18192:3: rule__RTCTL__OpAssignment_9_0\n {\n pushFollow(FOLLOW_2);\n rule__RTCTL__OpAssignment_9_0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getRTCTLAccess().getOpAssignment_9_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__XAssignment__Group_1_1_0__0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:17420:1: ( rule__XAssignment__Group_1_1_0__0__Impl )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:17421:2: rule__XAssignment__Group_1_1_0__0__Impl\r\n {\r\n pushFollow(FOLLOW_rule__XAssignment__Group_1_1_0__0__Impl_in_rule__XAssignment__Group_1_1_0__035351);\r\n rule__XAssignment__Group_1_1_0__0__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public final void rule__XAssignment__Group_1_1__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:17371:1: ( ( ( rule__XAssignment__Group_1_1_0__0 ) ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:17372:1: ( ( rule__XAssignment__Group_1_1_0__0 ) )\r\n {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:17372:1: ( ( rule__XAssignment__Group_1_1_0__0 ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:17373:1: ( rule__XAssignment__Group_1_1_0__0 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXAssignmentAccess().getGroup_1_1_0()); \r\n }\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:17374:1: ( rule__XAssignment__Group_1_1_0__0 )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:17374:2: rule__XAssignment__Group_1_1_0__0\r\n {\r\n pushFollow(FOLLOW_rule__XAssignment__Group_1_1_0__0_in_rule__XAssignment__Group_1_1__0__Impl35260);\r\n rule__XAssignment__Group_1_1_0__0();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXAssignmentAccess().getGroup_1_1_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public final void rule__XAssignment__Group_0__2() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:17233:1: ( rule__XAssignment__Group_0__2__Impl rule__XAssignment__Group_0__3 )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:17234:2: rule__XAssignment__Group_0__2__Impl rule__XAssignment__Group_0__3\r\n {\r\n pushFollow(FOLLOW_rule__XAssignment__Group_0__2__Impl_in_rule__XAssignment__Group_0__234985);\r\n rule__XAssignment__Group_0__2__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_rule__XAssignment__Group_0__3_in_rule__XAssignment__Group_0__234988);\r\n rule__XAssignment__Group_0__3();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public final void rule__RTCTL__Group_7__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:18069:1: ( rule__RTCTL__Group_7__1__Impl )\n // InternalDsl.g:18070:2: rule__RTCTL__Group_7__1__Impl\n {\n pushFollow(FOLLOW_2);\n rule__RTCTL__Group_7__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__TerminalExpression__Group_0__1__Impl() throws RecognitionException {\n int rule__TerminalExpression__Group_0__1__Impl_StartIndex = input.index();\n\n \t\tint stackSize = keepStackSize();\n \n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 969) ) { return ; }\n // InternalGaml.g:16232:1: ( ( ( rule__TerminalExpression__OpAssignment_0_1 ) ) )\n // InternalGaml.g:16233:1: ( ( rule__TerminalExpression__OpAssignment_0_1 ) )\n {\n // InternalGaml.g:16233:1: ( ( rule__TerminalExpression__OpAssignment_0_1 ) )\n // InternalGaml.g:16234:1: ( rule__TerminalExpression__OpAssignment_0_1 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getTerminalExpressionAccess().getOpAssignment_0_1()); \n }\n // InternalGaml.g:16235:1: ( rule__TerminalExpression__OpAssignment_0_1 )\n // InternalGaml.g:16235:2: rule__TerminalExpression__OpAssignment_0_1\n {\n pushFollow(FollowSets000.FOLLOW_2);\n rule__TerminalExpression__OpAssignment_0_1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getTerminalExpressionAccess().getOpAssignment_0_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n if ( state.backtracking>0 ) { memoize(input, 969, rule__TerminalExpression__Group_0__1__Impl_StartIndex); }\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__XAssignment__Group_1_1_0_0__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:17481:1: ( rule__XAssignment__Group_1_1_0_0__1__Impl )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:17482:2: rule__XAssignment__Group_1_1_0_0__1__Impl\r\n {\r\n pushFollow(FOLLOW_rule__XAssignment__Group_1_1_0_0__1__Impl_in_rule__XAssignment__Group_1_1_0_0__135471);\r\n rule__XAssignment__Group_1_1_0_0__1__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Swap two locations i and j in ArrayList a.
private static <E> void swap(ArrayList<E> a, int i, int j) { E t = a.get(i); a.set(i, a.get(j)); a.set(j, t); }
[ "private static void interchange( int i, int j, ArrayList< String > a ) {\n\t\tString temp = a.get( i );\n\t\ta.set( i, a.get( j ) );\n\t\ta.set( j, temp );\n\t}", "private static <T extends Comparable<? super T>> void Swap(List<T> list, int i, int j) {\n T t = list.get(i);\n list.set(i,list.get(j));\n list.set(j,t);\n }", "private void swap(ArrayList<Block> tmp, int i, int j) {\n Block block = tmp.get(i);\n tmp.set(i, tmp.get(j));\n tmp.set(j, block);\n }", "private void swap(int[] a, int i, int j) {\n int tmp = a[i];\n a[i] = a[j];\n a[j] = tmp;\n }", "@Override\n protected void swap(int i, int j)\n {\n E temp = this.elements[i];\n this.elements[i] = this.elements[j];\n \tthis.elementsToArrayIndex.put(elements[i], i);\n this.elements[j] = temp;\n \tthis.elementsToArrayIndex.put(elements[j], j);\n }", "private static void exchange(Comparable[] a, int i, int j) {\n Comparable temp = a[i];\n a[i] = a[j];\n a[j] = temp;\n }", "private static void exch(Object[] a, int i, int j) {\n Object swap = a[i];\n a[i] = a[j];\n a[j] = swap;\n }", "private static void exch(Object[] a, int i, int j) {\n Object swap = a[i];\n a[i] = a[j];\n a[j] = swap;\n }", "private static void exch(Object[] a, int i, int j) {\r\n Object swap = a[i];\r\n a[i] = a[j];\r\n a[j] = swap;\r\n }", "private static void exch(Object[] a, int i, int j){\n\n Object swap = a[i];\n a[i] = a[j];\n a[j] = swap;\n }", "private static <T,S> void swap(List<T> x, List<S> a2, int a, int b) {\n\t\tT t = x.get(a);\n\t\tx.set(a, x.get(b));\n\t\tx.set(b,t);\n\t\tS t2 = a2.get(a);\n\t\ta2.set(a,a2.get(b));\n\t\ta2.set(b,t2);\n\t}", "private void swap(List<Pair<T,G>> list, int index1, int index2) {\n var tmp = list.get(index1);\r\n list.set(index1, list.get(index2));\r\n list.set(index2, tmp);\r\n }", "private static void exch(int[] a, int i, int j) {\n int swap = a[i];\n a[i] = a[j];\n a[j] = swap;\n }", "private static void exchange(Object[] array, int i, int j) {\n Object aux = array[i];\n array[i] = array[j];\n array[j] = aux;\n }", "static <E extends Comparable<? super E>>\r\n\tvoid swap(Iterator<E> i, Iterator<E> j) {\r\n\t\t\r\n\t\tE temp = i.get();\r\n\t\ti.set(j.get());\r\n\t\tj.set(temp);\r\n\t\t\r\n\t\t\r\n\t}", "private static void exch(Comparable[] a, int i, int j) {\n Comparable swap = a[i];\n a[i] = a[j];\n a[j] = swap;\n }", "private void exch(int[] a, int i, int j) {\n\t\tint swap = a[i];\n\t\ta[i] = a[j];\n\t\ta[j] = swap;\n\t}", "private void swapElements(int i, int j) {\n PriorityQueueElement swapElement = this.heap.get(i);\n this.heap.set(i, this.heap.get(j));\n this.heap.set(j, swapElement);\n //sincronizzo l'handle dei nodi scambiati con l'indice dell'heap array corrispettivo\n int swapHandle = this.heap.get(i).getHandle();\n this.heap.get(i).setHandle(this.heap.get(j).getHandle());\n this.heap.get(j).setHandle(swapHandle);\n }", "private static void swap(int[] ints, int i, int j) {\n int temp = ints[i];\n ints[i] = ints[j];\n ints[j] = temp;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the builder for the settings used for calls to updateVolume.
public UnaryCallSettings.Builder<UpdateVolumeRequest, Operation> updateVolumeSettings() { return updateVolumeSettings; }
[ "public UnaryCallSettings.Builder<GetVolumeRequest, Volume> getVolumeSettings() {\n return getVolumeSettings;\n }", "public google.maps.fleetengine.v1.DeviceSettings.Builder getDeviceSettingsBuilder() {\n \n onChanged();\n return getDeviceSettingsFieldBuilder().getBuilder();\n }", "public UnaryCallSettings.Builder<CreateVolumeRequest, Operation> createVolumeSettings() {\n return createVolumeSettings;\n }", "public UnaryCallSettings.Builder<EncryptVolumesRequest, Operation> encryptVolumesSettings() {\n return encryptVolumesSettings;\n }", "public PagedCallSettings.Builder<\n ListVolumesRequest, ListVolumesResponse, ListVolumesPagedResponse>\n listVolumesSettings() {\n return listVolumesSettings;\n }", "public com.google.cloud.gkemulticloud.v1.AzureConfigEncryption.Builder\n getConfigEncryptionBuilder() {\n bitField0_ |= 0x00000040;\n onChanged();\n return getConfigEncryptionFieldBuilder().getBuilder();\n }", "@BetaApi(\n \"The surface for use by generated code is not stable yet and may change in the future.\")\n public OperationCallSettings.Builder<UpdateVolumeRequest, Volume, OperationMetadata>\n updateVolumeOperationSettings() {\n return updateVolumeOperationSettings;\n }", "public UnaryCallSettings.Builder<DeleteVolumeRequest, Operation> deleteVolumeSettings() {\n return deleteVolumeSettings;\n }", "public UnaryCallSettings<CreateVolumeRequest, Operation> createVolumeSettings() {\n return createVolumeSettings;\n }", "public com.google.cloud.datafusion.v1beta1.CryptoKeyConfig.Builder getCryptoKeyConfigBuilder() {\n bitField0_ |= 0x04000000;\n onChanged();\n return getCryptoKeyConfigFieldBuilder().getBuilder();\n }", "public com.google.cloud.gkemulticloud.v1.AzureDiskTemplate.Builder getRootVolumeBuilder() {\n bitField0_ |= 0x00000002;\n onChanged();\n return getRootVolumeFieldBuilder().getBuilder();\n }", "public UnaryCallSettings<UpdateVolumeRequest, Operation> updateVolumeSettings() {\n return updateVolumeSettings;\n }", "public UnaryCallSettings<GetVolumeRequest, Volume> getVolumeSettings() {\n return getVolumeSettings;\n }", "@BetaApi(\n \"The surface for use by generated code is not stable yet and may change in the future.\")\n public OperationCallSettings.Builder<CreateVolumeRequest, Volume, OperationMetadata>\n createVolumeOperationSettings() {\n return createVolumeOperationSettings;\n }", "static Builder builder() {\n return Sponge.game().builderProvider().provide(Builder.class);\n }", "@Nonnull\n public com.microsoft.graph.requests.DeviceManagementSettingInstanceCollectionRequestBuilder settings() {\n return new com.microsoft.graph.requests.DeviceManagementSettingInstanceCollectionRequestBuilder(getRequestUrlWithAdditionalSegment(\"settings\"), getClient(), null);\n }", "static ResourceConfig.Builder builder() {\n return ResourceConfig.builder();\n }", "public static ConfigBuilder<RocksDBConfig> builder() {\n return new ConfigBuilder<>(COMPONENT_CODE, RocksDBConfig::new);\n }", "public UnaryCallSettings.Builder<RevertVolumeRequest, Operation> revertVolumeSettings() {\n return revertVolumeSettings;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Controls whether blending calculations can be used. If blending is turned off, simple color replacement occurs and alpha transparency is ignored. Obviously, this is usually a bad thing for 2D graphics.
public static void blending(boolean enable) { if (enable) glEnable(GL_BLEND); else glDisable(GL_BLEND); }
[ "public void enableBlending() {\n if (!blendingDisabled)\n return;\n renderMesh();\n blendingDisabled = false;\n }", "public static void enableBlend()\n\t{\n\t\tenable(Blend.BLEND);\n\t}", "public void disableBlending() {\n if (blendingDisabled)\n return;\n renderMesh();\n blendingDisabled = true;\n }", "@Override\n public void setAlphaBlending(boolean blend) {\n if(blend)\n gl.glEnable(GL3.GL_BLEND);\n else\n gl.glDisable(GL3.GL_BLEND);\n }", "public static void disableBlend()\n\t{\n\t\tdisable(Blend.BLEND);\n\t}", "@Override\n public void setBlending(Blending blending){\n this.blending = blending;\n }", "public static double getAlphaBlendingOvercolorLimit() { return cacheAlphaBlendingLimit.getDouble(); }", "public void apply(){\n Gl.enable(Gl.blend);\n Gl.blendFunc(src, dst);\n }", "public native void blendEquationEXT(int mode);", "public final void applyBlending() {\n if (this.applyTask == null) {\n this.applyTask = new ApplyBlendingTask();\n }\n\n this.applyTask.glRun(this.getThread());\n }", "public boolean testAlphaBlending(Picture result)\n {\n //loop through all pixels in the calling object and parameter \n //picture using nested loops on x and y\n for(int x=0; x<result.getWidth();x++){\n for(int y=0; y<result.getHeight();y++){\n Pixel sP = this.getPixel(x, y);\n Pixel tP = result.getPixel(x, y);\n if( sP.getRed() != tP.getRed())\n return false;\n }\n }\n //Similarly for blue and green. \n //outside the nested loop, we return true as if we reach here\n //it is guaranteed that all pixels between the calling obj and\n //the parameter picture are the same.\n \n return true;\n }", "public static void default2D()\r\n\t{\r\n\t\tEnable.depth(false);\r\n\t\tEnable.lighting(false);\r\n\t\tEnable.textures(true);\r\n\t\tEnable.blending(true);\r\n\t\tBlend.normal();\r\n\t}", "public static void overlay()\r\n\t\t{\r\n\t\t\t// USE PREMULTIPLIED ALPHA IMAGES.\r\n\t\t\tglBlendFunc(GL_DST_COLOR, GL_ZERO);\r\n\t\t}", "public GLBlending() {\n this(GLThread.getAny());\n }", "public void setBlur(float blur);", "public String getBlend (){\n return blend;\n }", "public GLBlending(final GLThread thread) {\n this(\n thread,\n GLEnableStatus.GL_DISABLED,\n DEFAULT_RGB_BLEND, DEFAULT_ALPHA_BLEND,\n DEFAULT_RGB_FUNC_SRC, DEFAULT_RGB_FUNC_DST,\n DEFAULT_ALPHA_FUNC_SRC, DEFAULT_ALPHA_FUNC_DST);\n }", "public static void premultiplied()\r\n\t\t{\r\n\t\t\t// USE PREMULTIPLIED ALPHA IMAGES.\r\n\t\t\tglBlendFunc(GL_ONE, GL_ONE_MINUS_SRC_ALPHA);\r\n\t\t}", "public static boolean\ngetBlending(SoState state, int[] sfactor, int[] dfactor)\n{\n SoLazyElement elem = getInstance(state);\n sfactor[0] = elem.coinstate.blend_sfactor;\n dfactor[0] = elem.coinstate.blend_dfactor;\n return elem.coinstate.blending != 0;\n}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This class allows the user to move to the Next Transaction (of the same Transaction Type) in the list.
public void editNextTransaction(View view) { Intent intent = new Intent(this, EditAddTransaction.class); int newIndex; //Find the next transaction with a matching type. for(newIndex = _transIndex + 1; newIndex < Reserve.get_transactionList().size(); newIndex++){ if (Reserve.get_transactionList().get(newIndex).getTransactionType() == _transType){ break; } } //Pass the transaction type in case it's a new transaction intent.putExtra("TRANSACTION_TYPE", _transType); //Pass the index (New transaction will be transactionList().size() + 1) intent.putExtra("TRANSACTION_INDEX", newIndex); startActivity(intent); //When they finally click "Done" it will finish() regardless of how many transactions they've edited finish(); }
[ "public void editPrevTransaction(View view) {\n Intent intent = new Intent(this, EditAddTransaction.class);\n int newIndex;\n\n //Find the next transaction with a matching type.\n for(newIndex = _transIndex - 1; newIndex >= 0; newIndex--){\n if (Reserve.get_transactionList().get(newIndex).getTransactionType() == _transType){\n break;\n }\n }\n\n //Pass the transaction type in case it's a new transaction\n intent.putExtra(\"TRANSACTION_TYPE\", _transType);\n //Pass the index (New transaction will be -1)\n intent.putExtra(\"TRANSACTION_INDEX\", newIndex);\n\n startActivity(intent);\n\n //When they finally click \"Done\" it will finish() regardless of how many transactions they've edited\n finish();\n }", "public void setNext(Transaction next) {\n this.next = next;\n }", "private void nextTxn(boolean rollToNext) throws StreamingException, InterruptedException, TxnBatchFailure {\n if (txnBatch.remainingTransactions() == 0) {\n closeTxnBatch();\n txnBatch = null;\n if (rollToNext) {\n txnBatch = nextTxnBatch(recordWriter);\n }\n } else if (rollToNext) {\n LOG.debug(\"Switching to next Txn for {}\", endPoint);\n txnBatch.beginNextTransaction(); // does not block\n }\n }", "public Transaction getNext() {\n return next;\n }", "public void nextItem() {\n results.editOrViewNextItem();\n onWalk();\n }", "private void stepItemForward() {\n if(fFlatList.size() <= 1) {\n return;\n }\n \n int index = 0;\n \n if(fCurrentItem != null) {\n index = fFlatList.indexOf(fCurrentItem);\n index++;\n if(index >= fFlatList.size()) {\n index = 0;\n }\n }\n\n displayItem(fFlatList.get(index));\n }", "private ActionItemWork getNextCurrentItem(ActionItemWorkList actionPlanSteps) {\n ActionItemWork itemWork = null;\n Iterator i = actionPlanSteps.iterator();\n //Get to this step\n while (i.hasNext()) {\n itemWork = (ActionItemWork) i.next();\n if (itemWork.getId() == this.getId()) {\n break;\n }\n }\n //Skip all the steps that have been jumped\n while (i.hasNext()) {\n itemWork = (ActionItemWork) i.next();\n if (itemWork.allowsUpdate()) {\n break;\n }\n }\n return itemWork;\n }", "public void moveItemToNextPage(int pageIndex, int itemIndex);", "public void next() {\n position++;\n getObjectValueHolder().setObject(getList().get(position));\n fireValueChanged();\n }", "protected void nextTransaction(boolean trace)\n {\n if (!synched)\n {\n throw new IllegalStateException(\"do not call nextTransaction while not synched!\");\n }\n\n setTransaction(null);\n // is there a waiting list?\n TxLock thelock = null;\n if (!txWaitQueue.isEmpty())\n {\n thelock = (TxLock) txWaitQueue.removeFirst();\n txLocks.remove(thelock);\n thelock.isQueued = false;\n // The new transaction is the next one, important to set it up to avoid race with\n // new incoming calls\n if (thelock.waitingTx != null)\n DeadlockDetector.singleton.removeWaiting(thelock.waitingTx);\n setTransaction(thelock.waitingTx);\n synchronized (thelock)\n {\n // notify All threads waiting on this transaction.\n // They will enter the methodLock wait loop.\n thelock.notifyAll();\n }\n }\n if (trace)\n log.trace(\"nextTransaction: \" + thelock + \" \" + toString());\n }", "public ActionItemWork getNextStep() {\n return nextStep;\n }", "public void moveToNext() {\n moveTo(pc + getInstructionSize());\n }", "@Override\n\tpublic void processTransaction(Transaction transactionObject) {\n\t\t\n\t\ttrasactionList.addLast(transactionObject);\n\t\t\n\t\tif ( transactionObject.getTransactionType() == 'C'){\n\t\t\t\n\t\t\tbalance -= transactionObject.getTransactionAmount(); \n\t\t\t\n\t\t}\n\t\t\n\t\telse if ( transactionObject.getTransactionType() == 'D'){\n\t\t\t\n\t\t\tbalance += transactionObject.getTransactionAmount(); \n\t\t}\n\t}", "public void next() {\r\n\t\tArrayList<Team> teams = world.getTeams();\r\n\t\tif (teams.size() == currentIndex + 1) {\r\n\t\t\tJOptionPane.showMessageDialog(this, \"There are no more teams\", \"Next team\",\r\n\t\t\t JOptionPane.ERROR_MESSAGE);\r\n\t\t} else {\r\n\t\t\tcurrentIndex++;\r\n\t\t\tupdateInterface();\r\n\t\t}\r\n\t\t\r\n\t}", "public abstract void skipToNext();", "private void advance() {\n assert currentItemState == ItemProcessingState.COMPLETED || currentIndex == -1\n : \"moving to next but current item wasn't completed (state: \" + currentItemState + \")\";\n currentItemState = ItemProcessingState.INITIAL;\n currentIndex = findNextNonAborted(currentIndex + 1);\n retryCounter = 0;\n requestToExecute = null;\n executionResult = null;\n assert assertInvariants(ItemProcessingState.INITIAL);\n }", "public void stepToNextElement() {\r\n\t\tif(DataProvider.getInstance().getActiveReplay() != null)\r\n\t\t\tDataProvider.getInstance().incrementReplayPosition();\r\n\t}", "public void nextFrame() {\r\n frame++;\r\n if( frame > lastEditFrame + frameDelay ) {\r\n // The last transaction is 'done'\r\n transaction = null;\r\n }\r\n }", "public ActionItemWork getNextItem(Connection db) throws SQLException {\n if (this.getId() == -1) {\n new SQLException(\"Action Item Work ID not specified\");\n }\n //populate the current phase\n ActionPhaseWork currentPhase = new ActionPhaseWork(db, this.getPhaseWorkId());\n //build a list of steps for the current phase\n ActionItemWorkList itemWorkList = new ActionItemWorkList();\n itemWorkList.setPhaseWorkId(phaseWorkId);\n itemWorkList.buildList(db);\n //return the next step if found\n Iterator i = itemWorkList.iterator();\n while (i.hasNext()) {\n ActionItemWork thisItem = (ActionItemWork) i.next();\n if (thisItem.getId() == this.getId()) {\n if (i.hasNext()) {\n return (ActionItemWork) i.next();\n }\n }\n }\n //This was the last step in the current phase. Check if next phase exists.\n ActionPhaseWorkList phaseWorkList = new ActionPhaseWorkList();\n phaseWorkList.setPlanWorkId(currentPhase.getPlanWorkId());\n phaseWorkList.buildList(db);\n Iterator j = phaseWorkList.iterator();\n while (j.hasNext()) {\n ActionPhaseWork thisPhase = (ActionPhaseWork) j.next();\n if (thisPhase.getId() == currentPhase.getId()) {\n if (j.hasNext()) {\n ActionPhaseWork nextPhase = (ActionPhaseWork) j.next();\n nextPhase.buildStepWork(db);\n if (nextPhase.getItemWorkList().size() > 0) {\n return (ActionItemWork) nextPhase.getItemWorkList().get(0);\n }\n }\n }\n }\n //action plan is complete\n return null;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test of run method, of class BuffaloGroup.
@Test public void testGroupRun() { //System.out.println("run"); BuffaloGroup.create(); BuffaloGroup.run(); // TODO review the generated test code and remove the default call to fail. assertTrue(true); }
[ "public void run() {\n Exception exception = null;\n try {\n // Loop through all the chunks of this group\n for (Invoker invoker : group.chunks) {\n // Run the chunk\n Optional<TestResult> res = invoker.get(group.startTime);\n\n // If res is present that means the chunk failed\n if (res.isPresent()) {\n // Group failed so record the TestResult and stop testing the group\n results.set(numGroup.get(), res.get());\n break;\n }\n }\n } catch (IllegalAccessException e) {\n // Some error with the tester occurred. Programmer error\n e.printStackTrace();\n } catch (InvocationTargetException e) {\n // Some error happened in the Runnable\n if (e.getCause() instanceof Exception) {\n /*\n * Student caused so they failed and we should report the exception to the\n * student\n */\n exception = (Exception) e.getCause();\n } else if (e.getCause() instanceof ThreadDeath) {\n // Student code timed out\n return;\n } else {\n // Something else means that the Tester has a bug\n e.printStackTrace();\n }\n } catch (Exception e) {\n // Some exception with student code\n exception = e;\n }\n\n // If the student code caused an Exception\n if (exception != null) {\n\n // Get the exceptions Stack Trace as a String\n // This crap is ugly but I couldn't find any other way of doing it\n StringWriter sw = new StringWriter();\n PrintWriter pw = new PrintWriter(sw);\n exception.printStackTrace(pw);\n String stackTrace = sw.toString();\n\n // Get any student print statements\n String consoleOut = getStandardOut();\n\n // Set the test result to one that reflects the exception\n results.set(numGroup.get(), new MessageTestResult(actionsToString(),\n System.currentTimeMillis() - group.startTime, stackTrace, consoleOut));\n }\n\n /*\n * If code doesn't timeout and no exception occurred then the test is finished\n */\n testFinished.set(true);\n }", "@Test\n public void testRun() {\n System.out.println(\"run\");\n FillBarrel instance = new FillBarrel();\n instance.run();\n // TODO review the generated test code and remove the default call to fail.\n \n }", "@Test\n public void testGroupCreate() {\n System.out.println(\"create\");\n double expResult =3.0;\n double result = BuffaloGroup.create();\n assertEquals(expResult, result);\n \n }", "@Test\n public void testPerRunFlow() throws Exception {\n Bundle b = new Bundle();\n b.putString(BaseCollectionListener.COLLECT_PER_RUN, \"true\");\n mListener = initListener(b);\n\n mListener.onTestRunStart(mListener.createDataRecord(), FAKE_DESCRIPTION);\n verify(helper, times(1)).startCollecting();\n mListener.onTestStart(mListener.createDataRecord(), FAKE_TEST_DESCRIPTION);\n verify(helper, times(1)).startCollecting();\n mListener.onTestEnd(mListener.createDataRecord(), FAKE_TEST_DESCRIPTION);\n verify(helper, times(0)).stopCollecting();\n mListener.onTestRunEnd(mListener.createDataRecord(), new Result());\n verify(helper, times(1)).stopCollecting();\n }", "@Override\n\tpublic void run() {\n\t\t// Makes the current launcher and current manager accessible to the nodes\n\t\tnodeGroup.setManager(manager);\n\n\t\t// Stores runtime information; sent back to the master\n\t\t// at the end of the execution.\n\t\tResultSummary resultSummary;\n\n\t\t// Exports all the nodes that should be exported,\n\t\t// so their remote reference can be used externally\n\n\t\tfor(Node node: nodeGroup.getNodes()) {\n\t\t\tif(node instanceof Exportable) {\n\t\t\t\tRMIHelper.exportRemoteObject((Exportable) node);\n\t\t\t}\n\t\t}\n\n\t\ttry {\n\t\t\tsetupCommunication();\n\t\t} catch (Exception genericException) {\n\t\t\tSystem.err.println(\"Error setting up communication for NodeGroup\");\n\n\t\t\tgenericException.printStackTrace();\n\n\t\t\tresultSummary = new ResultSummary(nodeGroup.getApplicationName(), nodeGroup.getSerialNumber(), ResultSummary.Type.FAILURE);\n\n\t\t\tfor(Node node: nodeGroup.getNodes()) {\n\t\t\t\tresultSummary.addNodeMeasurements(node.getName(), null);\n\t\t\t}\n\n\t\t\tfinishExecution(resultSummary);\n\n\t\t\tSystem.gc();\n\t\t\t\n\t\t\treturn;\n\t\t}\n\n\t\tresultSummary = performExecution();\n\n\t\tfinishExecution(resultSummary);\n\t}", "public static void run() {\n testAlgorithmOptimality();\n// BenchmarkGraphSets.testMapLoading();\n //testAgainstReferenceAlgorithm();\n //countTautPaths();\n// other();\n// testLOSScan();\n //testRPSScan();\n }", "public void run() {\n\n long now = System.currentTimeMillis();\n //System.out.println(\"1: \" + this.getClass().getName() + \"#\" + id + \", \" + (System.currentTimeMillis()) + \" ms\");\n try {\n\n test.setUp();\n this.testReport = new TestReport(id, this.getClass().getName());\n while (alive.get()) {\n test.test(this.id);\n counter.incrementAndGet();\n }\n //long stop = System.currentTimeMillis();\n //System.out.println(\"2: \" + this.getClass().getName() + \"#\" + id + \", \" + stop + \" \" + (stop - now) + \" ms\");\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n try {\n test.tearDown();\n this.testReport.stopTimers();\n //testReport.printInfo();\n } catch (Exception e) {\n // ignore errors in tearDown for now\n }\n }\n\n }", "@Test\n public void testProcessPassengers() throws Exception {\n\n //Structured Branch:\n //test in which no passengers are frequent flyers\n int currentPoints = Player.getInstance().getPoints();\n RegularCounter counter = new RegularCounter();\n List<Passenger> passengerList = new LinkedList<>();\n for (int i = 0; i < 3; i++) {\n passengerList.add(new Passenger(false, PassengerType.REGULAR));\n }\n PassengerGroup group = new PassengerGroup(passengerList);\n group.queueAt(counter);\n assertEquals(1, counter.getLine().size());\n counter.processPassengers();\n assertEquals(0, counter.getLine().size());\n assertEquals(currentPoints + PassengerType.REGULAR.getPoints() * 3,\n Player.getInstance().getPoints());\n\n }", "ProbeResult run();", "public abstract void runGB();", "public void run()\n\t{\n\t\t//just make the announcement\n\t\tthreadId=Thread.currentThread().getId();\t\n\n\t\tSystem.out.println(\"Hi, Barber inside the Runnable Object..yet to link with Barber threadid=\"+threadId);\n\t\t\n\t\t//do the work here\n\t\t\n\t\ttry {\n\t\t\tbarber_work(cust,barb,p);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Barber Child thread finished!\"+threadId);\n\t\treturn;\n\t}", "@Test\n public void testProcessFrequentFlyers() throws Exception {\n\n //Structured Branch:\n //test in which passengers are frequent flyers\n int currentPoints = Player.getInstance().getPoints();\n RegularCounter counter = new RegularCounter();\n List<Passenger> passengerList = new LinkedList<>();\n for (int i = 0; i < 3; i++) {\n passengerList.add(new Passenger(true, PassengerType.REGULAR));\n }\n PassengerGroup group = new PassengerGroup(passengerList);\n group.queueAt(counter);\n assertEquals(3, counter.getLine().peek().size());\n counter.processPassengers();\n assertEquals(0, counter.getLine().size());\n assertEquals(currentPoints + PassengerType.REGULAR.getPoints() * 3,\n Player.getInstance().getPoints());\n\n }", "@org.junit.Test\n public void testRun() {\nSystem.out.println(\"run\");\n final TwitterFeedTask instance = new TwitterFeedTask();\n \n instance.run();\n }", "@Test\n public void testRun() {\n System.out.println(\"run\");\n zombie.run();\n \n }", "Task run(MockObjects factory) throws Exception;", "private void runBest() {\n }", "@Test\r\n public void testUnitilsTestNG_group() throws Exception {\r\n assumeTrue(TESTNG.equals(testFramework));\r\n\r\n testExecutor.runTests(\"testGroup\", UnitilsTestNGTest_GroupsTest.class);\r\n\r\n assertInvocation(LISTENER_BEFORE_CLASS, UnitilsTestNGTest_GroupsTest.class);\r\n assertInvocation(LISTENER_AFTER_CREATE_TEST_OBJECT, UnitilsTestNGTest_GroupsTest.class);\r\n assertInvocation(TEST_BEFORE_CLASS, UnitilsTestNGTest_GroupsTest.class);\r\n\r\n assertInvocation(LISTENER_BEFORE_TEST_SET_UP, UnitilsTestNGTest_GroupsTest.class);\r\n assertInvocation(TEST_SET_UP, UnitilsTestNGTest_GroupsTest.class);\r\n assertInvocation(LISTENER_BEFORE_TEST_METHOD, UnitilsTestNGTest_GroupsTest.class);\r\n assertInvocation(TEST_METHOD, UnitilsTestNGTest_GroupsTest.class);\r\n assertInvocation(LISTENER_AFTER_TEST_METHOD, UnitilsTestNGTest_GroupsTest.class);\r\n assertInvocation(TEST_TEAR_DOWN, UnitilsTestNGTest_GroupsTest.class);\r\n assertInvocation(LISTENER_AFTER_TEST_TEARDOWN, UnitilsTestNGTest_GroupsTest.class);\r\n assertInvocation(TEST_AFTER_CLASS, UnitilsTestNGTest_GroupsTest.class);\r\n assertNoMoreInvocations();\r\n\r\n assertEquals(0, testExecutor.getFailureCount());\r\n }", "@Test\n public void groupCreation() {\n }", "public void run() {\n try {\n test.setUp();\n while (alive.get()) {\n test.test();\n counter.incrementAndGet();\n }\n } catch (Exception e) {\n throw Throwables.propagate(e);\n } finally {\n try {\n test.tearDown();\n } catch (Exception e) {\n // ignore errors in tearDown for now\n }\n }\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column IMAL141_DEV_O18.S_CONTROL_PARAM.ADD_DATE2_PROTECTED
public void setADD_DATE2_PROTECTED(String ADD_DATE2_PROTECTED) { this.ADD_DATE2_PROTECTED = ADD_DATE2_PROTECTED == null ? null : ADD_DATE2_PROTECTED.trim(); }
[ "public String getADD_DATE2_PROTECTED() {\r\n return ADD_DATE2_PROTECTED;\r\n }", "public void setADD_NUMBER2_PROTECTED(String ADD_NUMBER2_PROTECTED) {\r\n this.ADD_NUMBER2_PROTECTED = ADD_NUMBER2_PROTECTED == null ? null : ADD_NUMBER2_PROTECTED.trim();\r\n }", "public String getADD_DATE1_PROTECTED() {\r\n return ADD_DATE1_PROTECTED;\r\n }", "public void setADD_DATE1_PROTECTED(String ADD_DATE1_PROTECTED) {\r\n this.ADD_DATE1_PROTECTED = ADD_DATE1_PROTECTED == null ? null : ADD_DATE1_PROTECTED.trim();\r\n }", "public String getADD_DATE2_MAND() {\r\n return ADD_DATE2_MAND;\r\n }", "public void setADD_STRING2_PROTECTED(String ADD_STRING2_PROTECTED) {\r\n this.ADD_STRING2_PROTECTED = ADD_STRING2_PROTECTED == null ? null : ADD_STRING2_PROTECTED.trim();\r\n }", "public void setADD_DATE2_MAND(String ADD_DATE2_MAND) {\r\n this.ADD_DATE2_MAND = ADD_DATE2_MAND == null ? null : ADD_DATE2_MAND.trim();\r\n }", "public String getADD_NUMBER2_PROTECTED() {\r\n return ADD_NUMBER2_PROTECTED;\r\n }", "public void setSECURITY_CODE2(BigDecimal SECURITY_CODE2) {\r\n this.SECURITY_CODE2 = SECURITY_CODE2;\r\n }", "public void setADD_DATE3_PROTECTED(String ADD_DATE3_PROTECTED) {\r\n this.ADD_DATE3_PROTECTED = ADD_DATE3_PROTECTED == null ? null : ADD_DATE3_PROTECTED.trim();\r\n }", "public String getADD_DATE3_PROTECTED() {\r\n return ADD_DATE3_PROTECTED;\r\n }", "public String getADD_DATE5_PROTECTED() {\r\n return ADD_DATE5_PROTECTED;\r\n }", "public void setCODE2(BigDecimal CODE2) {\r\n this.CODE2 = CODE2;\r\n }", "public void setDATE_APPROVED2(Date DATE_APPROVED2)\r\n {\r\n\tthis.DATE_APPROVED2 = DATE_APPROVED2;\r\n }", "public void setSWAP_DATE2(Date SWAP_DATE2) {\r\n this.SWAP_DATE2 = SWAP_DATE2;\r\n }", "public void setJP_BankDataCustomerCode2 (String JP_BankDataCustomerCode2);", "public void setADD_DATE5_PROTECTED(String ADD_DATE5_PROTECTED) {\r\n this.ADD_DATE5_PROTECTED = ADD_DATE5_PROTECTED == null ? null : ADD_DATE5_PROTECTED.trim();\r\n }", "public abstract void setFec_regi(java.sql.Date newFec_regi);", "public void setOLD_VALUE_DATE(Date OLD_VALUE_DATE) {\r\n this.OLD_VALUE_DATE = OLD_VALUE_DATE;\r\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the value of the ExternallyManaged field.
public void setExternallyManaged(java.lang.Boolean value);
[ "public void setExternallyOwned(java.lang.Boolean value);", "void setIsManaged(boolean isManaged);", "void xsetIsManaged(org.apache.xmlbeans.XmlBoolean isManaged);", "void setNilIsManaged();", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Boolean isExternallyManaged();", "public Builder setGoogleManaged(boolean value) {\n\n googleManaged_ = value;\n bitField0_ |= 0x00000100;\n onChanged();\n return this;\n }", "public void setMntExe(long mntExe)\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_element_user(MNTEXE$22, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(MNTEXE$22);\r\n }\r\n target.setLongValue(mntExe);\r\n }\r\n }", "public void setValue(Object obj) throws AspException\n {\n throw new AspException(\"Modification of read-only variable\");\n }", "public void setCValueEditable(boolean status);", "void unsetIsManaged();", "public void setInvalidated(Entity value) {\r\n\t\tBase.set(this.model, this.getResource(), INVALIDATED, value);\r\n\t}", "public void setGeneralEncapsulatedObject(DataObject value) {\r\n\t\tBase.set(this.model, this.getResource(), GENERALENCAPSULATEDOBJECT, value);\r\n\t}", "public void receiveResultsetUserExternallyManaged(\r\n com.icoserve.www.va20_useradministrationservice.VA20_UserAdministrationServiceStub.SetUserExternallyManagedResponse result\r\n ) {\r\n }", "public void setCoreMemento(Memento m){\n m.setName(name);\n m.setID(id);\n m.setEncodedValue(getEncodedValue());\n }", "public void setExpeditedEligibleFlag(java.lang.Boolean expeditedEligibleFlag) {\r\n this.expeditedEligibleFlag = expeditedEligibleFlag;\r\n }", "boolean getIsManaged();", "public void setEditable(boolean value)\r\n {\r\n getSemanticObject().setBooleanProperty(bsc_editable, value);\r\n }", "public boolean isManaged() {\n return managed;\n }", "public void setCEDEXInternal(java.lang.Boolean value) {\n __getInternalInterface().setFieldValue(CEDEXINTERNAL_PROP.get(), value);\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__ECapabilityAssignment__Group__3__Impl" $ANTLR start "rule__ECapabilityAssignment__Group__4" InternalAADMParser.g:5283:1: rule__ECapabilityAssignment__Group__4 : rule__ECapabilityAssignment__Group__4__Impl ;
public final void rule__ECapabilityAssignment__Group__4() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalAADMParser.g:5287:1: ( rule__ECapabilityAssignment__Group__4__Impl ) // InternalAADMParser.g:5288:2: rule__ECapabilityAssignment__Group__4__Impl { pushFollow(FOLLOW_2); rule__ECapabilityAssignment__Group__4__Impl(); state._fsp--; if (state.failed) return ; } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { restoreStackSize(stackSize); } return ; }
[ "public final void rule__ECapabilityAssignment__Group__4__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAADMParser.g:5298:1: ( ( RULE_END ) )\n // InternalAADMParser.g:5299:1: ( RULE_END )\n {\n // InternalAADMParser.g:5299:1: ( RULE_END )\n // InternalAADMParser.g:5300:2: RULE_END\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getECapabilityAssignmentAccess().getENDTerminalRuleCall_4()); \n }\n match(input,RULE_END,FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getECapabilityAssignmentAccess().getENDTerminalRuleCall_4()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__ECapabilityDefinition__Group__4() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAADMParser.g:17439:1: ( rule__ECapabilityDefinition__Group__4__Impl )\n // InternalAADMParser.g:17440:2: rule__ECapabilityDefinition__Group__4__Impl\n {\n pushFollow(FOLLOW_2);\n rule__ECapabilityDefinition__Group__4__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__ECapabilityType__Group__4() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAADMParser.g:7556:1: ( rule__ECapabilityType__Group__4__Impl )\n // InternalAADMParser.g:7557:2: rule__ECapabilityType__Group__4__Impl\n {\n pushFollow(FOLLOW_2);\n rule__ECapabilityType__Group__4__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__ECapabilityAssignment__Group__3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAADMParser.g:5260:1: ( rule__ECapabilityAssignment__Group__3__Impl rule__ECapabilityAssignment__Group__4 )\n // InternalAADMParser.g:5261:2: rule__ECapabilityAssignment__Group__3__Impl rule__ECapabilityAssignment__Group__4\n {\n pushFollow(FOLLOW_13);\n rule__ECapabilityAssignment__Group__3__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_2);\n rule__ECapabilityAssignment__Group__4();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__ECapabilityDefinition__Group__4__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAADMParser.g:17450:1: ( ( RULE_END ) )\n // InternalAADMParser.g:17451:1: ( RULE_END )\n {\n // InternalAADMParser.g:17451:1: ( RULE_END )\n // InternalAADMParser.g:17452:2: RULE_END\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getECapabilityDefinitionAccess().getENDTerminalRuleCall_4()); \n }\n match(input,RULE_END,FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getECapabilityDefinitionAccess().getENDTerminalRuleCall_4()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__ECapabilityDefinition__Group__3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAADMParser.g:17412:1: ( rule__ECapabilityDefinition__Group__3__Impl rule__ECapabilityDefinition__Group__4 )\n // InternalAADMParser.g:17413:2: rule__ECapabilityDefinition__Group__3__Impl rule__ECapabilityDefinition__Group__4\n {\n pushFollow(FOLLOW_6);\n rule__ECapabilityDefinition__Group__3__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_2);\n rule__ECapabilityDefinition__Group__4();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__ERequirementAssignment__Group__4() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAADMParser.g:5044:1: ( rule__ERequirementAssignment__Group__4__Impl )\n // InternalAADMParser.g:5045:2: rule__ERequirementAssignment__Group__4__Impl\n {\n pushFollow(FOLLOW_2);\n rule__ERequirementAssignment__Group__4__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__ERequirementAssignment__Group__4__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAADMParser.g:5055:1: ( ( RULE_END ) )\n // InternalAADMParser.g:5056:1: ( RULE_END )\n {\n // InternalAADMParser.g:5056:1: ( RULE_END )\n // InternalAADMParser.g:5057:2: RULE_END\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getERequirementAssignmentAccess().getENDTerminalRuleCall_4()); \n }\n match(input,RULE_END,FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getERequirementAssignmentAccess().getENDTerminalRuleCall_4()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__ECapabilityAssignment__Group__3__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAADMParser.g:5272:1: ( ( ( rule__ECapabilityAssignment__Group_3__0 )? ) )\n // InternalAADMParser.g:5273:1: ( ( rule__ECapabilityAssignment__Group_3__0 )? )\n {\n // InternalAADMParser.g:5273:1: ( ( rule__ECapabilityAssignment__Group_3__0 )? )\n // InternalAADMParser.g:5274:2: ( rule__ECapabilityAssignment__Group_3__0 )?\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getECapabilityAssignmentAccess().getGroup_3()); \n }\n // InternalAADMParser.g:5275:2: ( rule__ECapabilityAssignment__Group_3__0 )?\n int alt14=2;\n int LA14_0 = input.LA(1);\n\n if ( (LA14_0==Properties) ) {\n alt14=1;\n }\n switch (alt14) {\n case 1 :\n // InternalAADMParser.g:5275:3: rule__ECapabilityAssignment__Group_3__0\n {\n pushFollow(FOLLOW_2);\n rule__ECapabilityAssignment__Group_3__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getECapabilityAssignmentAccess().getGroup_3()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__ECapabilityType__Group__4__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAADMParser.g:7567:1: ( ( RULE_END ) )\n // InternalAADMParser.g:7568:1: ( RULE_END )\n {\n // InternalAADMParser.g:7568:1: ( RULE_END )\n // InternalAADMParser.g:7569:2: RULE_END\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getECapabilityTypeAccess().getENDTerminalRuleCall_4()); \n }\n match(input,RULE_END,FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getECapabilityTypeAccess().getENDTerminalRuleCall_4()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__ECapabilityDefinitionBody__Group_4__3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAADMParser.g:17871:1: ( rule__ECapabilityDefinitionBody__Group_4__3__Impl )\n // InternalAADMParser.g:17872:2: rule__ECapabilityDefinitionBody__Group_4__3__Impl\n {\n pushFollow(FOLLOW_2);\n rule__ECapabilityDefinitionBody__Group_4__3__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__ERequirementDefinition__Group__4() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAADMParser.g:18330:1: ( rule__ERequirementDefinition__Group__4__Impl )\n // InternalAADMParser.g:18331:2: rule__ERequirementDefinition__Group__4__Impl\n {\n pushFollow(FOLLOW_2);\n rule__ERequirementDefinition__Group__4__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__ECapabilityAssignments__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAADMParser.g:5152:1: ( rule__ECapabilityAssignments__Group__1__Impl )\n // InternalAADMParser.g:5153:2: rule__ECapabilityAssignments__Group__1__Impl\n {\n pushFollow(FOLLOW_2);\n rule__ECapabilityAssignments__Group__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__ECapabilityAssignment__Group_3__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAADMParser.g:5341:1: ( rule__ECapabilityAssignment__Group_3__1__Impl rule__ECapabilityAssignment__Group_3__2 )\n // InternalAADMParser.g:5342:2: rule__ECapabilityAssignment__Group_3__1__Impl rule__ECapabilityAssignment__Group_3__2\n {\n pushFollow(FOLLOW_4);\n rule__ECapabilityAssignment__Group_3__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_2);\n rule__ECapabilityAssignment__Group_3__2();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__ECapabilityAssignment__Group_3__3__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAADMParser.g:5406:1: ( ( RULE_END ) )\n // InternalAADMParser.g:5407:1: ( RULE_END )\n {\n // InternalAADMParser.g:5407:1: ( RULE_END )\n // InternalAADMParser.g:5408:2: RULE_END\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getECapabilityAssignmentAccess().getENDTerminalRuleCall_3_3()); \n }\n match(input,RULE_END,FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getECapabilityAssignmentAccess().getENDTerminalRuleCall_3_3()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__ECapabilityAssignment__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAADMParser.g:5233:1: ( rule__ECapabilityAssignment__Group__2__Impl rule__ECapabilityAssignment__Group__3 )\n // InternalAADMParser.g:5234:2: rule__ECapabilityAssignment__Group__2__Impl rule__ECapabilityAssignment__Group__3\n {\n pushFollow(FOLLOW_13);\n rule__ECapabilityAssignment__Group__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_2);\n rule__ECapabilityAssignment__Group__3();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__ECapabilityAssignment__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAADMParser.g:5179:1: ( rule__ECapabilityAssignment__Group__0__Impl rule__ECapabilityAssignment__Group__1 )\n // InternalAADMParser.g:5180:2: rule__ECapabilityAssignment__Group__0__Impl rule__ECapabilityAssignment__Group__1\n {\n pushFollow(FOLLOW_8);\n rule__ECapabilityAssignment__Group__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_2);\n rule__ECapabilityAssignment__Group__1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__ECapabilityAssignment__Group_3__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAADMParser.g:5314:1: ( rule__ECapabilityAssignment__Group_3__0__Impl rule__ECapabilityAssignment__Group_3__1 )\n // InternalAADMParser.g:5315:2: rule__ECapabilityAssignment__Group_3__0__Impl rule__ECapabilityAssignment__Group_3__1\n {\n pushFollow(FOLLOW_5);\n rule__ECapabilityAssignment__Group_3__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_2);\n rule__ECapabilityAssignment__Group_3__1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__ECapabilityAssignment__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAADMParser.g:5206:1: ( rule__ECapabilityAssignment__Group__1__Impl rule__ECapabilityAssignment__Group__2 )\n // InternalAADMParser.g:5207:2: rule__ECapabilityAssignment__Group__1__Impl rule__ECapabilityAssignment__Group__2\n {\n pushFollow(FOLLOW_5);\n rule__ECapabilityAssignment__Group__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_2);\n rule__ECapabilityAssignment__Group__2();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return a set of SWRL by finding individual rules added in the rule XML
public Set<SWRLRule> translate() throws Exception { NodeList nodeList = doc.getElementsByTagName("rule"); if (nodeList == null) { throw new Exception("No rule tag in xml file"); } Set<SWRLRule> ruleSwrl = new HashSet<SWRLRule>(); for (int i = 0; i < nodeList.getLength(); i++) { Set<SWRLAtom> antecedent = new HashSet<SWRLAtom>(); Set<SWRLAtom> consequent = new HashSet<SWRLAtom>(); Node node = nodeList.item(i); NodeList children = node.getChildNodes(); for (int j = 0; j < children.getLength(); j++) { Node child = children.item(j); switch (child.getNodeName()) { case "if": { generateAntecedent((Element) child, antecedent); break; } case "then": { generateConsequent((Element) child, consequent); break; } } } SWRLRule rules = factory.getSWRLRule(antecedent, consequent); ruleSwrl.add(rules); } return ruleSwrl; }
[ "public RuleSet buildRules(Set<OWLAxiom> axioms);", "private Set<Condition> getConditions(List<RuleInstance> rules)\n{\n Set<Condition> conds = new HashSet<Condition>();\n\n getTimeConditions(rules,conds);\n getSensorConditions(rules,conds);\n getCalendarConditions(rules,conds);\n\n return null;\n}", "public static List<String> getRuleList(){\n if(ruleList.isEmpty())\r\n createRuleList();\r\n return ruleList;\r\n }", "public abstract List<EventRule> getEventRulesOfSentence();", "public static List<Rule> fromRDF(final Iterable<Statement> model) {\n\n // Load namespaces from model metadata, reusing default prefix/ns mappings\n final Map<String, String> namespaces = new HashMap<>(Namespaces.DEFAULT.uriMap());\n if (model instanceof Model) {\n for (final Namespace namespace : ((Model) model).getNamespaces()) {\n namespaces.put(namespace.getPrefix(), namespace.getName());\n }\n }\n for (final Statement stmt : model) {\n if (stmt.getSubject() instanceof URI && stmt.getObject() instanceof Literal\n && stmt.getPredicate().equals(RR.PREFIX_PROPERTY)) {\n namespaces.put(stmt.getObject().stringValue(), stmt.getSubject().stringValue());\n }\n }\n\n // Use a 5-fields Object[] record to collect the attributes of each rule.\n // fields: 0 = fixpoint, 1 = phase, 2 = delete expr, 3 = insert expr, 4 = where expr\n final Map<URI, Object[]> records = new HashMap<>();\n\n // Scan the statements, extracting rule properties and populating the records map\n for (final Statement stmt : model) {\n try {\n if (stmt.getSubject() instanceof URI) {\n\n // Extract relevant statement components\n final URI subj = (URI) stmt.getSubject();\n final URI pred = stmt.getPredicate();\n final Value obj = stmt.getObject();\n\n // Identify field and value (if any) of corresponding Object[] record\n int field = -1;\n Object value = null;\n if (pred.equals(RDF.TYPE)) {\n field = 0;\n if (obj.equals(RR.FIXPOINT_RULE)) {\n value = true;\n } else if (obj.equals(RR.NON_FIXPOINT_RULE)) {\n value = false;\n }\n } else if (pred.equals(RR.PHASE)) {\n field = 1;\n value = ((Literal) obj).intValue();\n } else if (pred.equals(RR.DELETE)) {\n field = 2;\n } else if (pred.equals(RR.INSERT) || pred.equals(RR.HEAD)) {\n field = 3;\n } else if (pred.equals(RR.WHERE) || pred.equals(RR.BODY)) {\n field = 4;\n }\n if (field == 2 || field == 3 || field == 4) {\n value = Algebra.parseTupleExpr(stmt.getObject().stringValue(), null,\n namespaces);\n }\n\n // Update Object[] records if the statement is about a rule\n if (value != null) {\n Object[] record = records.get(subj);\n if (record == null) {\n record = new Object[] { true, 0, null, null, null };\n records.put(subj, record);\n }\n record[field] = value;\n }\n }\n } catch (final Throwable ex) {\n throw new IllegalArgumentException(\"Invalid rule attribute in statement: \" + stmt,\n ex);\n }\n }\n\n // Generate the rules from parsed heads and bodies\n final List<Rule> rules = new ArrayList<>();\n for (final Map.Entry<URI, Object[]> entry : records.entrySet()) {\n final URI id = entry.getKey();\n final Object[] record = entry.getValue();\n rules.add(new Rule(id, (Boolean) record[0], (Integer) record[1],\n (TupleExpr) record[2], (TupleExpr) record[3], (TupleExpr) record[4]));\n }\n return rules;\n }", "public Collection<ExtractedRule> getRules()\r\n\t{\r\n\t\treturn rules;\r\n\t}", "java.util.List<com.google.api.UsageRule> getRulesList();", "public ArrayList<String> getRules() {\n return rules;\n }", "public ArrayList<RuleSet> getRuleSets() {\n return ruleSets;\n }", "public abstract Vector<PuzzleRule> getRules();", "public void addAll(RuleSet rs) {\n \t\trules.putAll(rs.rules);\n \t}", "List<RuleInfo> listRulesInfo() throws IOException;", "public List<MappingRuleJAXB> getAllMappingRule() {\r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\tTypedQuery<MappingRule> mappingQuery = (TypedQuery<MappingRule>) entityManager.createNamedQuery(MappingRule.FIND_ALL_MAPPING_RULE);\r\n\t\tList<MappingRule> mappingRule = new ArrayList<MappingRule>(mappingQuery.getResultList());\r\n\t\treturn createJAXBList(mappingRule);\r\n\t}", "public List<Rule> getRules() {\n return rules;\n }", "public Set<Rule> filterTrue(Collection<Rule> rules, AssessmentRequest assessmentRequest);", "RulesClient getRules();", "String getRules();", "public RuleSet getRuleTree(String surt) throws RuleOracleUnavailableException;", "public Rules getRules()\r\n {\r\n return rules;\r\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The list of alternate ids of the entity.
@XmlElement (name="alternateId") @JsonProperty ("alternateIds") @JsonName ("alternateIds") public List<AlternateId> getAlternateIds() { return alternateIds; }
[ "@Override\n public ExternalIdBundle getAlternateIds() {\n return _alternateIds;\n }", "public String getIds() {\n return ids;\n }", "public java.lang.String[] getIds() {\n return ids;\n }", "List<Identifier> getSecondaryIdentifiers();", "public String getRightIdentityIdsString() {\n return props.getProperty(\"rightIdentityIds\");\n }", "public List<String> getIds() {\n List<String> ids = new ArrayList<String>();\n for (Item item : _idsToItems.values()) {\n if (!item.isDeleted() && item.isEnabled()) {\n ids.add(item.id);\n }\n }\n return ids;\n }", "public List<UserIdentity> getIdentities() {\n return identities;\n }", "Set<String> getIds();", "List<String> findAllIds();", "public String [] _truncatable_ids()\r\n {\r\n return _ids_list;\r\n }", "gov.nih.nlm.ncbi.www.soap.eutils.esearch.IdListType getIdList();", "public com.google.protobuf.ProtocolStringList\n getInviteeIdsList() {\n return inviteeIds_;\n }", "public Object[] getIds() {\n \t\tObject[] javaIds = super.getIds();\n \t\tif (properties != null) {\n \t\t\tint numProps = properties.size();\n \t\t\tif (numProps == 0)\n \t\t\t\treturn javaIds;\n \t\t\tObject[] ids = new Object[javaIds.length + numProps];\n \t\t\tCollection propIds = properties.keySet();\n \t\t\tpropIds.toArray(ids);\n \t\t\tSystem.arraycopy(javaIds, 0, ids, numProps, javaIds.length);\n \t\t\treturn ids;\n \t\t} else {\n \t\t\treturn javaIds;\n \t\t}\n \t}", "@SuppressWarnings(\"unchecked\")\n\tprotected List<String> getIds(){\n\t\tIUniprotWsProcessor<List<String>, BufferedReader> processor =\n\t\t\t\tnew UniprotWsSearchIdsProcessor();\n\t\treturn (List<String>) get(processor);\n\t}", "public LinkedList<Long> getEmailIds() {\r\n\t\treturn this.emailIds;\r\n\t}", "public List<String> fileEntityIds() {\n return this.innerProperties() == null ? null : this.innerProperties().fileEntityIds();\n }", "public java.util.List<String> getInstanceIds() {\n return instanceIds;\n }", "public int[] getEndPointIds();", "List<String> associatedNetworkIds();" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Tries to get rid of noisy data from the coursesVectors flag values: 0 unsorted data 2 for Stanford
public static void cleanData(Vector<CourseSubject> corrupted, int flag){ // for berkeley if(flag == 3){ corrupted.remove(0); corrupted.remove(0); corrupted.remove(corrupted.size()-1); } if(flag == 2){ for(int i = 0 ; i < 9; ++i){ if( i < 5 ) corrupted.remove(corrupted.size()-1); corrupted.remove(0); } } // sort the array if not sorted if( flag == 0 || flag == 2){ int pos; for( int index = 0; index < corrupted.size(); ++index ){ CourseSubject current = corrupted.get(index); String str = current.getTitle(); if(( pos = str.indexOf('-')) != -1){ current.setTitle(str.substring(pos+1).trim()); } else current.setTitle(str.trim()); } String[] titleArray = new String[corrupted.size()]; URL[] urlArray = new URL[corrupted.size()]; for(int i = 0; i < corrupted.size(); ++i){ titleArray[i] = corrupted.get(i).getTitle().trim() +"%" + i; // mapping function urlArray[i] = corrupted.get(i).getURL(); } java.util.Arrays.sort(titleArray); // sort the array corrupted.clear();// empties the vector //add the elements in order to the vector for(int i = 0; i < titleArray.length; ++i){ if(titleArray[i].indexOf('%') != -1){ CourseSubject courseSub = new CourseSubject(titleArray[i].substring(0, titleArray[i].indexOf('%')).trim(), null); int index = Integer.parseInt(titleArray[i].substring(titleArray[i].indexOf('%') + 1)); courseSub.setURL(urlArray[index]); corrupted.add(courseSub); } } } // 1- remove parentheses for( int i = 0; i < corrupted.size(); ++i ){ String str = corrupted.get(i).getTitle().toUpperCase(); for( int j = 0; j < str.length(); ++j){ if(str.charAt(j) == '('){ str = str.substring(0, j-1); // grabs the chunk before the parentheses break; } if(str.charAt(j) < 'A' || str.charAt(j) > 'Z'){ str = str.replace(str.charAt(j), ' '); } } str = str.trim(); corrupted.get(i).setTitle(str); } return; }
[ "public void clearLearned()\n {\n ccmap.clear();\n learning = false;\n setLearningCC(false);\n }", "public void removeNonUsefulClassifiers(){\r\n \tfor (int i=0; i<macroClSum; i++){\r\n \t\tif (!set[i].getUseful()){\r\n\t\t\tdeleteClassifier(i); \t\t\t\t\r\n \t\t\ti--;\r\n \t\t}\r\n \t}\t\r\n }", "protected void performNonMaximalSuppression() {\n WritableRaster result = magnitude.createCompatibleWritableRaster();\n int g, sector;\n for (int y = 1; y < height-1; ++y)\n for (int x = 1; x < width-1; ++x) {\n g = magnitude.getSample(x, y, 0);\n sector = orientation.getSample(x, y, 0);\n if ((sector == 1 && (g < magnitude.getSample(x-1, y, 0) || g < magnitude.getSample(x+1, y, 0)))\n || (sector == 2 && (g < magnitude.getSample(x-1, y+1, 0) || g < magnitude.getSample(x+1, y-1, 0)))\n || (sector == 3 && (g < magnitude.getSample(x, y-1, 0) || g < magnitude.getSample(x, y+1, 0)))\n || (sector == 4 && (g < magnitude.getSample(x-1, y-1, 0) || g < magnitude.getSample(x+1, y+1, 0))))\n result.setSample(x, y, 0, 0);\n else\n result.setSample(x, y, 0, g);\n }\n magnitude = result;\n }", "private void filterFeatureSet2(){\n\t\t\n\t\tSystem.out.println(\"Filtering Feature Set...\");\n\t\t\n\t\t/*\n\t\t * Trace stream is a string concatenating all traces\n\t\t * Delimiter between traces are spaces, number of spaces equal encodingLength\n\t\t * Example: \"ab0ab1ab2cd0cd1cd2 ab0ab0ab2ab1cd0cd1cd1cd1 ab0ab1ab2ab2ab1cd1cd2...\"\n\t\t */\n\t\tStringBuilder traceStream = new StringBuilder();\n\t\tfor (String trace : encodedTraceList) {\n\t\t\ttraceStream.append(trace);\n\t\t\tfor (int i=1;i<=encodingLength;i++) {\n\t\t\t\ttraceStream.append(\" \");\n\t\t\t}\n\t\t}\n\t\t\n//\t\tSystem.out.println(\"All traces encoded and concatenated\");\n//\t\tSystem.out.println(traceStream.toString());\n\t\t\n\t\t/*\n\t\t * Filter sequence features\n\t\t */\n\t\tSet<String> featureSet;\n\t\tSet<String> filteredFeatureSet = new HashSet<String>();\n\t\tMap <String,Integer> featureCountMap;\n\t\t\n\t\tint traceCount = encodedTraceList.size();\n\t\tfilteredActualFeatureSequenceFeatureSetMap = new HashMap<Feature, Set<String>>();\n\t\t\n\t\tfor (Feature feature : actualFeatureSequenceFeatureSetMap.keySet()) {\n\t\t\tfeatureSet = actualFeatureSequenceFeatureSetMap.get(feature);\n\t\t\tfeatureCountMap = featureExtraction.computeNonOverlapSequenceFeatureCountMap(encodingLength, traceStream.toString(), featureSet);\n\t\t\tfor (String pattern : featureCountMap.keySet()) {\n\t\t\t\tif (featureCountMap.get(pattern)/traceCount >= 0.05) {\n\t\t\t\t\tfilteredFeatureSet.add(pattern);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfilteredActualFeatureSequenceFeatureSetMap.put(feature, filteredFeatureSet);\n\t\t\t\n\t\t\tSystem.out.println(\"Filtered Feature Set: \" + feature.toString() + \" \" + filteredFeatureSet.toString());\n\t\t}\n\n\t\t/*\n\t\t * Filter alphabet sequence features\n\t\t */\n\t\tMap<Set<String>, Set<String>> alphabetFeatureSet;\n\t\tMap<Set<String>, Set<String>> filteredAlphabetFeatureSet = new HashMap<Set<String>, Set<String>>();\n\t\tMap<Set<String>, Integer> alphabetFeatureCountMap;\n\t\tfilteredActualFeatureAlphabetFeatureSetMap = new HashMap<Feature, Map<Set<String>, Set<String>>>();\n\t\t\n\t\tfor (Feature feature : actualFeatureAlphabetFeatureSetMap.keySet()) {\n\t\t\talphabetFeatureSet = actualFeatureAlphabetFeatureSetMap.get(feature);\n\t\t\talphabetFeatureCountMap = featureExtraction.computeNonOverlapAlphabetFeatureCountMap(encodingLength, traceStream.toString(), alphabetFeatureSet);\n\t\t\tfor (Set<String> pattern : alphabetFeatureCountMap.keySet()) {\n\t\t\t\tif (alphabetFeatureCountMap.get(pattern)/traceCount >= 0.05) {\n\t\t\t\t\tfilteredAlphabetFeatureSet.put(pattern,alphabetFeatureSet.get(pattern));\n\t\t\t\t}\n\t\t\t}\n\t\t\tfilteredActualFeatureAlphabetFeatureSetMap.put(feature, filteredAlphabetFeatureSet);\n\t\t\t\n\t\t\tSystem.out.println(\"Filtered Feature Set: \" + feature.toString() + \" \" + filteredAlphabetFeatureSet.toString());\n\t\t}\n\t}", "private static void cleanTrainingData(Collection<TransitionMemory> trainingData) {\n\t\tint maxD = 0;\n\t\tfor (TransitionMemory tm : trainingData) maxD = Math.max(maxD, tm.getAllVars().length);\n\t\tfor (Iterator<TransitionMemory> iter = trainingData.iterator(); iter.hasNext();) {\n\t\t\tTransitionMemory tm = iter.next();\n\t\t\tif (tm.getAllVars().length < maxD) iter.remove();\n\t\t}\n\t}", "void clearFeatures();", "private void removeNoise() {\n\t\tSet<String> nonRel = itemUserMatrixNonRelevant.keySet();\n\t\tSet<String> rel = itemUserMatrixRelevant.keySet();\n\t\tSet<String> noise = new LinkedHashSet<String>(rel);\n\t\tSet<String> iter = new LinkedHashSet<String>(rel);\n\t\tSet<String> niter = new LinkedHashSet<String>(nonRel);\n\t\tnoise.retainAll(nonRel);\n\t\titer.removeAll(noise);\n\t\tniter.removeAll(noise);\n\t\tSystem.out.println(userItemMatrix.size());\n\t\tSystem.out.println(userItemMatrixRelevant.size());\n\t\tSystem.out.println(itemUserMatrixRelevant.size());\n\t\tSystem.out.println(itemUserMatrixNonRelevant.size());\n\t\t\n\t\tfor(String unwanted: iter){\n\t\t\titemUserMatrixRelevant.remove(unwanted);\n\t\t\titemUserMatrixNonRelevant.remove(unwanted);\n\t\t}\n\t\t\n\t\tfor(Entry<String, ArrayList<String>> entry : userItemMatrix.entrySet()){\n\t\t\tentry.getValue().removeAll(iter);\n\t\t}\n\t\tfor(Entry<String, ArrayList<String>> entry : userItemMatrixRelevant.entrySet()){\n\t\t\tentry.getValue().removeAll(iter);\n\t\t}\n\t\t\n\t\tfor(String unwanted: niter){\n\t\t\titemUserMatrixRelevant.remove(unwanted);\n\t\t\titemUserMatrixNonRelevant.remove(unwanted);\n\t\t}\n\t\t\n\t\tfor(Entry<String, ArrayList<String>> entry : userItemMatrix.entrySet()){\n\t\t\tentry.getValue().removeAll(niter);\n\t\t}\n\t\tfor(Entry<String, ArrayList<String>> entry : userItemMatrixRelevant.entrySet()){\n\t\t\tentry.getValue().removeAll(niter);\n\t\t}\n\t\t\n\t\tSystem.out.println(userItemMatrix.size());\n\t\tSystem.out.println(userItemMatrixRelevant.size());\n\t\tSystem.out.println(itemUserMatrixRelevant.size());\n\t\tSystem.out.println(itemUserMatrixNonRelevant.size());\n\t\t\n\t int maxSize = 0; String userid = \"\";\n\t\tfor(Entry<String, ArrayList<String>> entry : userItemMatrixRelevant.entrySet()){\n\t\t\tif(entry.getValue().size()>maxSize){\n\t\t\t\tmaxSize = entry.getValue().size();\n\t\t\t\tuserid = entry.getKey();\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Choose user \" + userid);\n\t}", "public void performSuppression() {\n \n for (int row = 0; row < dataOutput.getNumRows(); row++) {\n if (privacyModelDefinesSubset == null || privacyModelDefinesSubset.contains(row)) {\n final int hash = dataOutput.hashCode(row);\n final int index = hash & (hashTableBuckets.length - 1);\n HashGroupifyEntry m = hashTableBuckets[index];\n while ((m != null) && ((m.hashcode != hash) || !dataOutput.equalsIgnoringOutliers(row, m.row))) {\n m = m.next;\n }\n if (m == null) {\n throw new RuntimeException(\"Invalid state! Group the data before suppressing records!\");\n }\n if (!m.isNotOutlier || this.isCompletelyGeneralized(m)) {\n dataOutput.or(row, Data.OUTLIER_MASK);\n m.isNotOutlier = false;\n }\n } else {\n dataOutput.or(row, Data.OUTLIER_MASK);\n }\n }\n }", "public void clear() {\n\t\tfor (int i=0; i<features.length; i++)\n\t\t\tfeatures[i] = 0;\n\t}", "@Override\n public void filterSensitiveInformation() {\n setSampleSolution(null);\n super.filterSensitiveInformation();\n }", "private void filterFeatureSet3(){\n\t\t\n\t\tdouble supportCount = 0.1;\n\t\tboolean accept, inputAgain;\n\t\tint optionSelected;\n\t\tString inputSupportCount;\n\t\t\n\t\tSystem.out.println(\"Filtering Feature Set...\");\n\t\t\n\t\t/*\n\t\t * SEQUENCE FEATURES\n\t\t */\n\t\tList<InstanceVector> instanceVectorList;\n\t\tSet<String> filteredFeatureSet = new HashSet<String>();\n\t\tMap <String,Integer> featureCountMap;\n\t\t\n\t\tint traceCount = encodedTraceList.size();\n\t\tfilteredActualFeatureSequenceFeatureSetMap = new HashMap<Feature, Set<String>>();\n\t\t\n\t\tfor (Feature feature : actualFeatureSequenceFeatureSetMap.keySet()) {\n\t\t\t\n\t\t\t/*\n\t\t\t * Special case.\n\t\t\t * Break for IE feature because IE is processed as alphabet feature (maybe a code mistake)\n\t\t\t * \n\t\t\t */\n\t\t\tif (feature == Feature.IE) continue;\n\t\t\t\n\t\t\t\t\n\t\t\tinstanceVectorList = featureInstanceVectorListMap.get(feature);\n\t\t\tfeatureCountMap = computeTotalSequenceFeatureSupportCount(instanceVectorList);\n\t\t\t\n\t\t\tSystem.out.println(featureCountMap.toString());\n\t\t\t\n\t\t\t/*\n\t\t\t * Select features\n\t\t\t */\n\t\t\taccept = false;\n\t\t\tinputAgain = false;\n\t\t\twhile (!accept) {\n\t\t\t\t\n\t\t\t\tinputSupportCount = JOptionPane.showInputDialog(\"Total no. of features: \" + featureCountMap.size() + \n\t\t\t\t\t\t\t\t\t\t\t\". Enter a support count (frequency) threshold to select features.\",\n\t\t\t\t\t\t\t\t\t\t\t\"0.1\");\n\t\t\t\ttry {\n\t\t\t\t\tinputAgain = false;\n\t\t\t\t\tsupportCount = Double.valueOf(inputSupportCount);\n\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\tinputAgain = true;\n\t\t\t\t}\n\t\t\t\n\t\t\t\tif (!inputAgain) {\n\t\t\t\t\tfilteredFeatureSet.clear();\n\t\t\t\t\tfor (String pattern : featureCountMap.keySet()) {\n\t\t\t\t\t\tif ((double)featureCountMap.get(pattern)/traceCount >= supportCount) {\n\t\t\t\t\t\t\tfilteredFeatureSet.add(pattern);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\toptionSelected = JOptionPane.showConfirmDialog(new JFrame(), \"Number of features selected: \" + \n\t\t\t\t\t\t\t\t\t\t\t\tfilteredFeatureSet.size() + \n\t\t\t\t\t\t\t\t\t\t\t\t\". Feature support count (frequency) = \" + supportCount,\n\t\t\t\t\t\t\t\t\t\t\t\t\"Review feature count\",\n\t\t\t\t\t\t\t\t\t\t\t\tJOptionPane.YES_NO_OPTION);\n\t\t\t\t\taccept = (optionSelected == JOptionPane.YES_OPTION);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tfilteredActualFeatureSequenceFeatureSetMap.put(feature, filteredFeatureSet);\n\t\t\t\n\t\t\tSystem.out.println(\"Filtered Feature Set: \" + feature.toString() + \" \" + filteredFeatureSet.toString());\n\t\t}\n\n\t\t/*\n\t\t * ALPHABET FEATURES\n\t\t */\n\t\tMap<Set<String>, Set<String>> alphabetFeatureSet;\n\t\tMap<Set<String>, Set<String>> filteredAlphabetFeatureSet = new HashMap<Set<String>, Set<String>>();\n\t\tMap<Set<String>, Integer> alphabetFeatureCountMap;\n\t\tfilteredActualFeatureAlphabetFeatureSetMap = new HashMap<Feature, Map<Set<String>, Set<String>>>();\n\t\t\n\t\tfor (Feature feature : actualFeatureAlphabetFeatureSetMap.keySet()) {\n\t\t\talphabetFeatureSet = actualFeatureAlphabetFeatureSetMap.get(feature);\n\t\t\tinstanceVectorList = featureInstanceVectorListMap.get(feature);\n\t\t\talphabetFeatureCountMap = computeTotalAlphabetFeatureSupportCount(instanceVectorList);\n\t\t\t\n\t\t\tSystem.out.println(alphabetFeatureCountMap.toString());\n\t\t\t\n\t\t\t/*\n\t\t\t * Select features\n\t\t\t */\n\t\t\taccept = false;\n\t\t\tinputAgain = false;\n\t\t\twhile (!accept) {\n\t\t\t\t\n\t\t\t\tinputSupportCount = JOptionPane.showInputDialog(\"Total no. of features: \" + alphabetFeatureCountMap.size() + \n\t\t\t\t\t\t\t\t\t\t\t\". Enter a support count (frequency) threshold to select features.\",\n\t\t\t\t\t\t\t\t\t\t\t\"0.1\");\n\t\t\t\ttry {\n\t\t\t\t\tinputAgain = false;\n\t\t\t\t\tsupportCount = Double.valueOf(inputSupportCount);\n\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\tinputAgain = true;\n\t\t\t\t}\n\t\t\t\n\t\t\t\tif (!inputAgain) {\n\t\t\t\t\tfilteredAlphabetFeatureSet.clear();\n\t\t\t\t\tfor (Set<String> pattern : alphabetFeatureCountMap.keySet()) {\n\t\t\t\t\t\tif ((double)alphabetFeatureCountMap.get(pattern)/traceCount >= supportCount) {\n\t\t\t\t\t\t\tfilteredAlphabetFeatureSet.put(pattern,alphabetFeatureSet.get(pattern));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\toptionSelected = JOptionPane.showConfirmDialog(new JFrame(), \"Number of features selected: \" + \n\t\t\t\t\t\t\t\t\t\t\t\tfilteredAlphabetFeatureSet.size() + \n\t\t\t\t\t\t\t\t\t\t\t\t\". Feature support count (frequency) = \" + supportCount,\n\t\t\t\t\t\t\t\t\t\t\t\t\"Review feature count\",\n\t\t\t\t\t\t\t\t\t\t\t\tJOptionPane.YES_NO_OPTION);\n\t\t\t\t\taccept = (optionSelected == JOptionPane.YES_OPTION);\n\t\t\t\t}\n\t\t\t}\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tfilteredActualFeatureAlphabetFeatureSetMap.put(feature, filteredAlphabetFeatureSet);\n\t\t\t\n\t\t\tSystem.out.println(\"Filtered Feature Set: \" + feature.toString() + \" \" + filteredAlphabetFeatureSet.toString());\n\t\t}\n\t}", "void removeSensitivityTest(int i);", "public void removeNonAcademicCourse() \n {\n if (isRemoved==true) { //checking if isRemoved status is true\n System.out.println(\"The course is removed:\" +isRemoved);\n }\n else { \n super.setCourse_leader(\"\");\n this.instructor_name = \"\";\n this.start_date = \"\";\n this.completion_date = \"\";\n this.exam_date = \"\";\n this.isRegistered = false;\n this.isRemoved = true;\n }\n }", "public void StopWordsTf(){\n\t\t\t\r\n\t\tbagCollectionAux.addAll(bagCollection);\r\n\t\t\r\n\t\tfor(String s: bagCollectionAux){\r\n\t\t\tif ((NWord.get(s)<3000)){\r\n\t\t\t\tbagCollection.remove(s);\r\n\t\t\t\ttf.remove(s);\r\n\t\t\t\tNWord.remove(s);\r\n\t\t\t}\r\n\t\t\telse if ((NWord.get(s)>10000)){\r\n\t\t\t\tbagCollection.remove(s);\r\n\t\t\t\ttf.remove(s);\r\n\t\t\t\tNWord.remove(s);\r\n\t\t\t}\r\n\t\t}\t\t\t\r\n\t}", "private void removeUnusedFileTagsFromDataset() {\n categoriesByName = new ArrayList<>(datasetFilesTabFacade.fetchCategoriesByName(workingVersion.getId()));\n\n List<DataFileCategory> datasetFileCategoriesToRemove = new ArrayList<>();\n List<DataFileCategory> categories = datasetFilesTabFacade.retrieveDatasetFileCategories(dataset.getId());\n for (DataFileCategory test : categories) {\n boolean remove = true;\n for (String catByName : categoriesByName) {\n if (catByName.equals(test.getName())) {\n remove = false;\n break;\n }\n }\n if (remove) {\n datasetFileCategoriesToRemove.add(test);\n }\n }\n\n if (!datasetFileCategoriesToRemove.isEmpty()) {\n datasetFilesTabFacade.removeDatasetFileCategories(dataset.getId(), datasetFileCategoriesToRemove);\n }\n\n }", "public OriginalSparseVector () {}", "private void removeOutliers() {\n double stdDev = Math.sqrt(variance(tapDeltas));\n double mean = mean(tapDeltas);\n ArrayList<Integer> outliers = new ArrayList<>();\n for (int i = 0; i < tapDeltas.size(); i++) {\n if (Math.abs(mean - tapDeltas.get(i)) > 2.1 * stdDev) {\n outliers.add(0, i);\n }\n }\n // remove those outliers\n for (int i : outliers) {\n tapDeltas.remove(i);\n }\n }", "public DataSet preprocessTrain(DataSet data, int n){\n\t\t//Make copy of examples\n\t\tArrayList<Example> examples = (ArrayList<Example>) data.getData().clone();\n\t\tHashMap<Integer,String> featureMap = data.getFeatureMap();\n\t\t\n\t\t//Setup for ablation study\n\t\tArrayList<Integer> unselected = new ArrayList<Integer>();\n\t\tfor (int i : data.getAllFeatureIndices()){\n\t\t\tunselected.add(i);\n\t\t}\n\t\tunwantedFeatures = new ArrayList<Integer>();\n\t\tusableFeatures = new HashMap<Integer,String>();\n\t\t\n\t\t//Conduct ablation study for each feature, saving accuracies\n\t\tHashMap<Integer, Double> featureErrors = new HashMap<Integer, Double>();\n\t\tfor(int i : data.getAllFeatureIndices()){\n\t\t\tfeatureErrors.put(i, conductAblationStudy(i,examples, data));\n\t\t}\n\t\t//Sort errors in descending order\n\t\tCollections.sort(unselected, new Comparator<Integer>(){\n\t\t\tpublic int compare(Integer first, Integer second){\n\t\t\t\treturn -1*(featureErrors.get(first).compareTo(featureErrors.get(second)));\n\t\t\t}\n\t\t});\n\t\t\n\t\t//Remove n worst features\n\t\tint deleted;\n\t\tfor (int i=0; i<n; i++){\n\t\t\tdeleted = unselected.remove(0);\n\t\t\tunwantedFeatures.add(deleted);\n\t\t}\n\t\tfor (int i : unselected){\n\t\t\tusableFeatures.put(i, featureMap.get(i));\n\t\t}\n\t\t\n\t\t//Return copy of dataset with n features removed\n\t\treturn returnCopyWithFeatures(examples, usableFeatures, unwantedFeatures);\n\t}", "public void setToNullVector() {\n\t\tfor (int i = 0; i < data.length; i++) {\n\t\t\tdata[i] = 0;\n\t\t}\n\t\t\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
If no item is selected in the list of scene objects, disable the Edit and Remove buttons, otherwise enable them.
private void enableOrDisableItemButtons() { int selectedIndex = sceneObjectsList.getSelectedIndex(); if (selectedIndex == -1) { // No selection, disable relevant buttons editButton.setEnabled(false); duplicateButton.setEnabled(false); removeButton.setEnabled(false); visibleCheckBox.setEnabled(false); } else { editButton.setEnabled(sceneObjectContainer.getSceneObject(selectedIndex) instanceof IPanelComponent); duplicateButton.setEnabled(sceneObjectContainer.getSceneObject(selectedIndex) instanceof IPanelComponent); removeButton.setEnabled(true); visibleCheckBox.setEnabled(true); visibleCheckBox.setSelected(SceneObjectListPanel.this.sceneObjectContainer.isSceneObjectVisible(selectedIndex)); } }
[ "private void disableModificationButtons() {\n this.edit.setDisable(true);\n this.delete.setDisable(true);\n this.unindex.setDisable(true);\n }", "private void disableAllItem( )\n\t{\n\t\taddNewGroup.setEnabled( false );\n\t\taddNewClass.setEnabled( false );\n\t\taddNewField.setEnabled( false );\n\t\tdelete.setEnabled( false );\n\t\trename.setEnabled( false );\n\t\tcut.setEnabled( false );\n\t\tcopy.setEnabled( false );\n\t\tpaste.setEnabled( false );\n\t\tgenerateCode.setEnabled( false );\n\t}", "@Override\n public void valueChanged(ListSelectionEvent e) {\n if (!ageList.isSelectionEmpty())\n playButton.setEnabled(true);\n }", "private void disableMenuItems() {\n\t\tcancelAction.setEnabled(true);\n\t\tif ((gtRefreshGame != null) && (!gtRefreshGame.isDisposed())) {\n\t\t\tgtRefreshGame.setEnabled(false);\n\t\t}\n\t\tif ((gtUpdateGame != null) && (!gtUpdateGame.isDisposed())) {\n\t\t\tgtUpdateGame.setEnabled(false);\n\t\t}\n\t\tif ((gtPingAllItem != null) && (!gtPingAllItem.isDisposed())) {\n\t\t\tgtPingAllItem.setEnabled(false);\t\t\t\n\t\t}\n\n\t\tgameTree.setEnabled(false);\n\t\tserverTable.setEnabled(false);\n\n\t\tstUpdateSelectedItem.setEnabled(false);\n\t\tstPingSelectedItem.setEnabled(false);\n\t\tstJoinSelectedItem.setEnabled(false);\n\t\t\n\t\tif ((stAddServerToFolder!= null) && !stAddServerToFolder.isDisposed()) {\n\t\t\tstAddServerToFolder.setEnabled(false);\n\t\t}\n\t\tif ((stRemoveFolderServers!= null) && !stRemoveFolderServers.isDisposed()) {\n\t\t\tstRemoveFolderServers.setEnabled(false);\n\t\t}\n\t\tstWatchSelected.setEnabled(false);\n\t\tstCopyAddress.setEnabled(false);\n\t\tstCopyServer.setEnabled(false);\n\n\t\trebuildMaster.setEnabled(false);\n\t\tupdateCurrent.setEnabled(false);\n\t\tpingCurrent.setEnabled(false);\n\t\tupdateSelected.setEnabled(false);\n\t\tpingSelected.setEnabled(false);\n\t\tconnectSelected.setEnabled(false);\n\t\twatchServer.setEnabled(false);\n//\t\tfindPlayer.setEnabled(false);\n\t\tconfigureGames.setEnabled(false);\n\t\tconfigurePrefs.setEnabled(false);\n\t\t\t\t\n\t\tserverUpdateSelectedItem.setEnabled(false);\n\t\tserverPingSelectedItem.setEnabled(false);\n\t\tserverWatchSelectedItem.setEnabled(false);\n\t\tserverConnectItem.setEnabled(false);\n//\t\tserverRconItem.setEnabled(false);\n//\t\tserverFindLanItem.setEnabled(false);\n//\t\tserverAddTriggerItem.setEnabled(false);\n//\t\tserverEditTriggerItem.setEnabled(false);\n\t}", "@Override\n public boolean canEditItem() {\n return true;\n }", "private void setEditScheduleButtonsEnabledState()\r\n {\r\n \tint i = scheduleTable.getSelectionIndex(); \r\n \tboolean enableWidgets = ( i != -1 );\r\n \t\r\n\t\teditScheduleButton.setEnabled( enableWidgets );\r\n\t\tdeleteScheduleButton.setEnabled( enableWidgets );\r\n\t\tenableScheduleButton.setEnabled( enableWidgets );\r\n\t\t\r\n\t\teditItem.setEnabled( enableWidgets );\r\n\t\tdeleteItem.setEnabled( enableWidgets );\r\n\t\tenableItem.setEnabled( enableWidgets );\r\n\t\t\r\n\t\tif( i >= 0 && i < schedules.size() ) {\r\n\t\t\tSchedule s = (Schedule) schedules.get( i );\r\n\t\t\tif( s.isEnabled() ) {\r\n\t\t\t\tenableItem.setText( \"Disable Schedule\" );\r\n\t\t\t\tenableScheduleButton.setText( \"Disable Schedule\" );\r\n\t\t\t} else {\r\n\t\t\t\tenableItem.setText( \"Enable Schedule\" );\r\n\t\t\t\tenableScheduleButton.setText( \"Enable Schedule\" );\r\n\t\t\t}\r\n\t\t}\r\n }", "private void setButtonDisabled() {\n final boolean areProjects = mainController.selectedOrganisationProperty().getValue().getProjects().size() > 0;\n final boolean areTeams = mainController.selectedOrganisationProperty().getValue().getTeams().size() > 0;\n //allocateTeamButton.setDisable(!(areProjects && areTeams));\n }", "public void disableChoice() {\n\t\t// Disable the buttons, dimming them\n\t\trock.setEnabled(false);\n\t\tpaper.setEnabled(false);\n\t\tscissors.setEnabled(false);\n\t}", "private void disableButtons() {\n for (int i = 0; i < itemButtons.size(); i++) {\n if (!storeViewModel.isItemBuyable(i)) {\n itemButtons.get(i).setEnabled(false);\n }\n }\n }", "private void enableRemove(){\n addSubmit.setDisable(true);\n removeSubmit.setDisable(false);\n setSubmit.setDisable(true);\n addCS.setDisable(true);\n removeCS.setDisable(false);\n setCS.setDisable(true);\n addIT.setDisable(true);\n removeIT.setDisable(false);\n setIT.setDisable(true);\n addECE.setDisable(true);\n removeECE.setDisable(false);\n setECE.setDisable(true);\n partTime.setDisable(true);\n fullTime.setDisable(true);\n management.setDisable(true);\n dateAddText.setDisable(true);\n dateRemoveText.setDisable(false);\n dateSetText.setDisable(true);\n nameAddText.setDisable(true);\n nameRemoveText.setDisable(false);\n nameSetText.setDisable(true);\n hourlyAddText.setDisable(true);\n annualAddText.setDisable(true);\n managerRadio.setDisable(true);\n dHeadRadio.setDisable(true);\n directorRadio.setDisable(true);\n //codeAddText.setDisable(true);\n hoursSetText.setDisable(true);\n }", "public void refreshExercisesButtons() { \n if (getSelectedExercise() == null) {\n editExerciseButton.setDisable(true);\n removeExerciseButton.setDisable(true);\n } else {\n editExerciseButton.setDisable(false);\n removeExerciseButton.setDisable(false);\n }\n }", "@Override\n public void valueChanged(ListSelectionEvent e) {\n if (!strategyList.isSelectionEmpty())\n playButton.setEnabled(true);\n }", "private void enableButtons() {\n if (signatureList.getSelectedIndex() == -1) {\n editSigButton.setEnabled(false);\n deleteSigButton.setEnabled(false);\n } else {\n editSigButton.setEnabled(true);\n deleteSigButton.setEnabled(true);\n }\n }", "public void buttonsDisable(){\n setButtonSaveDisable(true);\n setButtonDeleteDisable(true);\n }", "public void enableSliderBoxes() {\n indexSlider.setDisable(false);\n radiusSlider.setDisable(false);\n objectPositionSlider.setDisable(false);\n objectHeightSlider.setDisable(false);\n principleBox.setDisable(false);\n pickPicture.setDisable(false);\n }", "private void disableButtons()\r\n {\r\n }", "public boolean isEditingEnabled() {\r\n // Additional business logic can go here\r\n return (getContactSelection().getMinSelectionIndex() != -1);\r\n }", "public void disableSliderBoxes() {\n indexSlider.setDisable(true);\n radiusSlider.setDisable(true);\n objectPositionSlider.setDisable(true);\n objectHeightSlider.setDisable(true);\n principleBox.setDisable(true);\n pickPicture.setDisable(true);\n }", "void setEditButtonEnabled(boolean isEnabled);" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
ge_maps To get all data filtered by Year and Position column
public List<GEMaps> findGEMapPositionsForYears(int year, int ga_no, int position) { logger.info(" inside getAEMapPositionsForStatsYears() of AssemblyElectionsRepository class .."); return mongoTemplate.find( query(where("year").is(Integer.valueOf(year)).and("ga_no").is(Integer.valueOf(ga_no)).and("position").is(Integer.valueOf(position))), GEMaps.class, GE_MAPS); }
[ "public List<GEMaps> findGEMapByYear(int year, int ga_no) {\n\t\tlogger.info(\" inside findGEMapByYear() of GeneralElectionsRepository class ..\" + year);\n\n\t\tQuery query = new Query();\n\t\tquery.addCriteria(Criteria.where(\"year\").is(year).and(\"ga_no\").is(ga_no));\n\t\treturn mongoTemplate.find(query, GEMaps.class, GE_MAPS);\n\t}", "public List<String> getUniqueGEMapYears() {\n\t\t\n // MatchOperation match = new MatchOperation();\n ProjectionOperation project = Aggregation.project(\"year\", \"ga_no\").andExpression(\"concat(substr(year,0,-1), '#', substr(ga_no,0,-1))\").as(\"yearAndGa_no\");\n Aggregation aggregate = Aggregation.newAggregation( project, Aggregation.group(\"yearAndGa_no\"));\n AggregationResults<GEMaps> yearCollectionAggregate = mongoTemplate.aggregate(aggregate, GE_MAPS, GEMaps.class);\n\n Iterator<GEMaps> yearCollectionIterator = yearCollectionAggregate.iterator();\n List<String> valueList = new ArrayList<String>();\n while(yearCollectionIterator.hasNext()) {\n valueList.add(yearCollectionIterator.next().getId());\n }\n return valueList; \n\t}", "public Map<String, Object> salesByYearInfo();", "public List<GEMaps> findGEMapByPartyYear(String party, int year, int ga_no) {\n\t\tlogger.info(\" inside getAEMapStatsYears() of GeneralElectionsRepository class ..\");\n\n\t\treturn mongoTemplate.find(query(where(\"party1\").is(party).and(\"year\").is(year).and(\"ga_no\").is(ga_no)), GEMaps.class,\n\t\t\t\tGE_MAPS);\n\t}", "public List<GEMaps> findUniqueGEMapPartiesYr(int year, int ga_no) {\n\t\tlogger.info(\" inside findUniqueGEMapPartiesYr() of GeneralElectionsRepository class ..\");\n\t\tBasicDBObject dbObject = new BasicDBObject();\n\t\tdbObject.append(\"year\", year);\n\t\tdbObject.append(\"ga_no\", ga_no);\n\n\t\treturn mongoTemplate.getCollection(GE_MAPS).distinct(\"party1\", dbObject);\n\t}", "List<Spatial> findSpatialsByLatBetweenAndLonBetweenAndTimestampAfter(double latStart,double latEnd, double lonStart, double lonEnd,long timestamp);", "Map<String, List<Projection>> getProjectionsBySourceName() {\n return projectionsBySourceName;\n }", "public void updateDemography(int year){\n\t\ttry {\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\").newInstance();\n\t\t\tConnection con = DriverManager.getConnection(database);\n\t\t\tStatement stmt = con.createStatement();\n\t\t\tfor(Actor a:actorMap().getEntries()){\n\t\t\t\tDA_SourceArea currentArea = (DA_SourceArea)a;\n\t\t\t\tString query = \" select m\"+year+\",w\"+year+\" from d\"+currentArea.landkreisId;\n\t\t\t\t\n\t\t\t\tResultSet sa = stmt. executeQuery(query);\n\t\t\t\tint i = 0;\n\t\t\t\tint popBucket = currentArea.cityStatus;\n\t\t\t\t\n\t\t\t\twhile(sa.next()){\n\t\t\t\t\t//System.out.println(i);\n\t\t\t\t\tif(sa.getString(\"m\"+year).equals(\"\") || sa.getString(\"w\"+year).equals(\"\")){\n//\t\t\t\t\t\tSystem.out.println(currentArea.landkreisId+\" \"+i);\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\t//Integer t = type;\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Integer[][] percArray=(tm.typeSpreading.get(t));\n\t\t\t\t\t\t//int percentage = percArray[popBucket][ageBucket];\n\t\t\t\t\t\t//int popPerType = (i*percentage)/100;\n\t\t\t\t\t\t\n\t\t\t\t\t\tint ageBucket=-1;\n\t\t\t\t\t\tfor(int b = 0; b<agestruct.length;b++){\n\t\t\t\t\t\t\tif(i>=agestruct[b]){\n\t\t\t\t\t\t\t\tageBucket++;\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\t\n\t\t\t\t\t\tint m = (Integer.parseInt(sa.getString(\"m\"+year))+5)/10;\n\t\t\t\t\t\tint w = (Integer.parseInt(sa.getString(\"w\"+year))+5)/10;\n\t\t\t\t\t\tif(i == 0){\n\t\t\t\t\t\t\tfor(int z = 0; z<currentArea.numberOfTypes;z++){\n\t\t\t\t\t\t\t\tInteger[][] percArray=(typeSpreading.get(z));\n\t\t\t\t\t\t\t\tint percentage = percArray[popBucket][ageBucket];\n\t\t\t\t\t\t\t\tint pm = (m*percentage)/100;\n\t\t\t\t\t\t\t\tint pw = (w*percentage)/100;\n\t\t\t\t\t\t\t\tcurrentArea.populationPerAgeAndSexDifference[i][0][z] = pm;\n\t\t\t\t\t\t\t\tcurrentArea.populationPerAgeAndSexDifference[i][1][z] = pw;\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(i>0 && i < 90){\n\t\t\t\t\t\t\tfor(int z = 0; z<currentArea.numberOfTypes;z++){\n\t\t\t\t\t\t\t\tInteger[][] percArray=(typeSpreading.get(z));\n\t\t\t\t\t\t\t\tint percentage = percArray[popBucket][ageBucket];\n\t\t\t\t\t\t\t\tint pm = (m*percentage)/100;\n\t\t\t\t\t\t\t\tint pw = (w*percentage)/100;\n\t\t\t\t\t\t\t\tcurrentArea.populationPerAgeAndSexDifference[i][0][z] = pm - currentArea.lastYearpop[i-1][0][z];\n\t\t\t\t\t\t\t\tcurrentArea.populationPerAgeAndSexDifference[i][1][z] = pw - currentArea.lastYearpop[i-1][1][z];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(i == 90){\n\t\t\t\t\t\t\tfor(int z = 0; z<currentArea.numberOfTypes;z++){\n\t\t\t\t\t\t\t\tInteger[][] percArray=(typeSpreading.get(z));\n\t\t\t\t\t\t\t\tint percentage = percArray[popBucket][ageBucket];\n\t\t\t\t\t\t\t\tint pm = (m*percentage)/100;\n\t\t\t\t\t\t\t\tint pw = (w*percentage)/100;\n\t\t\t\t\t\t\t\tcurrentArea.populationPerAgeAndSexDifference[i][0][z] = pm - (currentArea.lastYearpop[i-1][0][z]+currentArea.lastYearpop[i][0][z]);\n\t\t\t\t\t\t\t\tcurrentArea.populationPerAgeAndSexDifference[i][1][z] = pw - (currentArea.lastYearpop[i-1][1][z]+currentArea.lastYearpop[i][1][z]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(i==91){\t\n\t\t\t\t\t\t\tcurrentArea.numberOfCitizensDiff[0] = m - currentArea.numberOfCitizens[0];\n\t\t\t\t\t\t\tcurrentArea.numberOfCitizensDiff[1] = w - currentArea.numberOfCitizens[1];\n\t\t\t\t\t\t\tcurrentArea.numberOfCitizens[0]= m;\n\t\t\t\t\t\t\tcurrentArea.numberOfCitizens[1]= w;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\tfor(int z = 0; z<currentArea.numberOfTypes;z++){\n\t\t\t\t\t\t\t\tInteger[][] percArray=(typeSpreading.get(z));\n\t\t\t\t\t\t\t\tint percentage = percArray[popBucket][ageBucket];\n\t\t\t\t\t\t\t\tint pm = (m*percentage)/100;\n\t\t\t\t\t\t\t\tint pw = (w*percentage)/100;\n\t\t\t\t\t\t\t\tcurrentArea.populationPerAgeAndSex[i][0][z] = pm;\n\t\t\t\t\t\t\t\tcurrentArea.populationPerAgeAndSex[i][1][z] = pw;\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\ti++;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\tcon.close();\n\t\t} catch (Exception ex) {\n\t // Fehler behandeln\n\t\t\tex.printStackTrace();\n\t\t\tSystem.out.println(\"Error\");\n\t\t}\n\t}", "public static List<NewHousingPriceIndex> gethousePriceIndexOnyear(int year, int scgCode)\n\t{\n\t\ttry \n\t\t{\n\t\t\tQuery<NewHousingPriceIndex> query = find.query().fetch(\"city\", \"*\", new FetchConfig().query());\n\t\t\tCity.addScgCodeToQuery(query.where(), scgCode, scgCode, \"city\");\t\n\t\t\tCalendar cal = Calendar.getInstance();\n\t\t\tcal.set(year, 1, 1);\n\t\t\tlong startTime = cal.getTime().getTime();\n\t\t\tcal.set(year, 12, 31);\n\t\t\tlong endTime = cal.getTime().getTime();\n\t\t\tquery.where().in(\"referenceDate\", new Date(startTime), new Date(endTime));\n\t\t\tList<NewHousingPriceIndex> result = query.findList();\n\t\t\treturn result;\n\t\t\t\n\t\t}\n\t\tcatch (Exception e) \n\t\t{\n\t\t\tLogger.error(\"\", e);\n\t\t}\n\t\t\n\t\treturn new ArrayList<NewHousingPriceIndex>();\n\t}", "public ArrayList<DBSubsetDateGroup> groupByYear(int iDateColumnPosition) {\r\n \treturn groupByInterval(iDateColumnPosition, 31536000000l, 0);\r\n }", "public Map<String, String> getProjectOutcomesByYear(int projectID, int year);", "@Query(value = \"select * from patent_details order by year asc;\", nativeQuery = true)\n public Iterable<PatentDetails> findYearwisePatentDetails();", "public ArrayList<StateEntry> getStateEntries(String stateCode, int year) {\n ArrayList<StateEntry> stateEntries = new ArrayList<StateEntry>();\n\n // iterate through states \n for (ArrayList<StateEntry> dataEntries : dataEntriesMap.values()) {\n // iterate through state entries\n for (StateEntry dataEntry : dataEntries) {\n if ((dataEntry.stateCode.equals(stateCode)) && (dataEntry.year == year)) {\n stateEntries.add(dataEntry);\n }\n }\n }\n return stateEntries;\n}", "MapMetadata getMapMetadata();", "public void setSearchYear(int value) {\n this.searchYear = value;\n }", "List<MapHotelMapping> selectByExample(MapHotelMappingExample example);", "@GetMapping(\"/api/getByYear\")\n\tpublic int[] getProjectByYear()\n\t{\n\t\treturn this.integrationClient.getProjectByYear();\n\t}", "@Override\n public Set<RecordDto> getCoordinates() {\n List<Record> records = recordRepository.findReports();\n return records.stream().map(record -> RecordDto.builder().latlng(new Double[] {record.getCoordinates().getX(), record.getCoordinates().getY()}).build()).collect(Collectors.toSet());\n\n }", "public List getComisionGerenteRegionObjetivo(Map criteria);" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method updates element's offset (shifts it above offset gap if necessary) before adding the element to the list. This method should be called before (or after) the element is physically added to the list. If the element is added below the offset gap then calling of this method is not necessary.
protected void updateElementOffsetAdd(E elem) { int rawOffset = elementRawOffset(elem); if (rawOffset >= offsetGapStart) { setElementRawOffset(elem, rawOffset + offsetGapLength); } }
[ "protected void updateElementOffsetRemove(E elem) {\n int rawOffset = elementRawOffset(elem);\n if (rawOffset >= offsetGapStart) {\n setElementRawOffset(elem, rawOffset - offsetGapLength);\n }\n }", "public void addToOffsets(entity.TransactionOffset element) {\n __getInternalInterface().addArrayElement(OFFSETS_PROP.get(), element);\n }", "Position<Element> addBefore(Position<Element> p, Element e) throws IllegalArgumentException;", "public void addToOffsetPayments(entity.PaymentReserve element);", "public void addOffset(Integer offset) {\r\n\t\toffsets.addLast(offset);\r\n\t\tTF++;\r\n\t}", "@Override\n public void addBefore(T target, T element){\n int index = getIndex(target);\n add(index, element);\n }", "@Override\n public void addBefore(E element) {\n Node<E> newNodeList = new Node<>(element, cursor);\n\n if (prev == null) {\n head = newNodeList;\n cursor = newNodeList;\n } else {\n prev.setNext(newNodeList);\n cursor = newNodeList;\n }\n\n size++;\n }", "com.walgreens.rxit.ch.cda.IVLPPDPQ addNewOffset();", "void addBefore(T target, T element);", "private void fillListUp(int topEdge, final int offset) {\n while (topEdge + offset > 0 && mFirstItemPosition > 0) {\n mFirstItemPosition--;\n final View newTopCild = mAdapter.getView(mFirstItemPosition, getCachedView(), this);\n addAndMeasureChild(newTopCild, LAYOUT_MODE_ABOVE);\n final int childHeight = getChildHeight(newTopCild);\n topEdge -= childHeight;\n\n // update the list offset (since we added a view at the top)\n mListTopOffset -= childHeight;\n }\n }", "private void incrementOffset() {\r\n\r\n\t\tthis.offset++;\r\n\t}", "public void addToOffsettingReserves(entity.PaymentReserve element) {\n __getInternalInterface().addArrayElement(OFFSETTINGRESERVES_PROP.get(), element);\n }", "public void insertElement() \r\n\t{\n\t\t//sorting[sorting.length+1]=1;\r\n\t\t//srting();\r\n\t\t\r\n\t}", "public void moveUp(Object element){\n \tint index = getIndexOf(element);\n \tif(index > 0){\n \t\tlist.remove(element); \t\n \t\tlist.add(index - 1, element.toString());\n \t}\n }", "public void add(T element, int pos);", "public void newOffsetList()\r\n\t{\r\n\t\toffsets = new LinkedList<Integer>();\r\n\t}", "public void addBefore(E val, int idx) throws IndexOutOfBoundsException {\n addNodeBefore(new SinglyLinkedList.Node<>(val), idx);\n }", "protected abstract void setElementRawOffset(E elem, int rawOffset);", "void setItemOffset(long offset);" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Activity uses the activity_welcome.xml layout Initializes the navigation tabs on the bottom of the screen
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_welcome); appColors.setActionBarColor("#000000"); appColors.setActionBarTextColor("#05e5ee"); getDrawable(android.R.drawable.ic_popup_reminder).setColorFilter( 0xff808080, PorterDuff.Mode.MULTIPLY ); loadAppColors(); actionBar = getSupportActionBar(); actionBar.setBackgroundDrawable(new ColorDrawable(Color.parseColor(appColors.getActionBarColor()))); actionBar.setTitle(Html.fromHtml("<font color='" + appColors.getActionBarTextColor() + "'>Tasks</font>")); tabsAdapter = new TabsManager(this.getSupportFragmentManager()); tabsContent = findViewById(R.id.welcome_tabs_content); tabsContent.setOffscreenPageLimit(5); tabsContent.setAdapter(tabsAdapter); tabsContent.addOnPageChangeListener(new ViewPager.OnPageChangeListener() { @Override public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) { } @Override public void onPageSelected(int position) { switch(position) { case 0: actionBar.setTitle(Html.fromHtml("<font color='" + appColors.getActionBarTextColor() + "'>Tasks</font>")); break; case 1: actionBar.setTitle(Html.fromHtml("<font color='" + appColors.getActionBarTextColor() + "'>Bids</font>")); break; case 2: actionBar.setTitle(Html.fromHtml("<font color='" + appColors.getActionBarTextColor() + "'>Search</font>")); break; case 3: actionBar.setTitle(Html.fromHtml("<font color='" + appColors.getActionBarTextColor() + "'>Notifications</font>")); break; case 4: actionBar.setTitle(Html.fromHtml("<font color='" + appColors.getActionBarTextColor() + "'>Profile</font>")); break; } } @Override public void onPageScrollStateChanged(int state) { } }); tabs = findViewById(R.id.tabs_bar); tabs.setupWithViewPager(tabsContent); NotificationManager.getInstance(this.getApplicationContext()); if(!currentUser.getInstance().getUsername().equalsIgnoreCase("TestUser")&&!currentUser.getInstance().getUsername().equalsIgnoreCase("TestUserOne")) { tabs.getTabAt(0).setIcon(android.R.drawable.ic_menu_my_calendar); tabs.getTabAt(1).setIcon(android.R.drawable.ic_menu_agenda); tabs.getTabAt(2).setIcon(android.R.drawable.ic_search_category_default); tabs.getTabAt(3).setIcon(android.R.drawable.ic_popup_reminder); tabs.getTabAt(4).setIcon(android.R.drawable.ic_menu_myplaces); tabs.getTabAt(0).getIcon().setColorFilter(Color.parseColor(appColors.getActionBarTextColor()), PorterDuff.Mode.MULTIPLY); tabs.getTabAt(1).getIcon().setColorFilter(Color.parseColor(appColors.getActionBarTextColor()), PorterDuff.Mode.MULTIPLY); tabs.getTabAt(2).getIcon().setColorFilter(Color.parseColor(appColors.getActionBarTextColor()), PorterDuff.Mode.MULTIPLY); tabs.getTabAt(3).getIcon().setColorFilter(Color.parseColor(appColors.getActionBarTextColor()), PorterDuff.Mode.MULTIPLY); tabs.getTabAt(4).getIcon().setColorFilter(Color.parseColor(appColors.getActionBarTextColor()), PorterDuff.Mode.MULTIPLY); } tabs.setBackground(new ColorDrawable(Color.parseColor(appColors.getActionBarColor()))); }
[ "public void createNewWelcomeTab() {\n mTabManager.setTabIntention(new Intention(Type.I_Welcome));\n \n // fade in the control menu after 100ms\n // If mHideHomeScreen is set to true don't show HomeScreen\n // This is required for running gpu benchmarks.\n if (!BrowserActivity.requestedGpuBenchmarkMode()) {\n new Handler().postDelayed(new Runnable() {\n @Override\n public void run() {\n showHomeScreen();\n }\n }, 300);\n }\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n getSupportActionBar().hide();\n// Button button = findViewById(R.id.first_navigation);\n// button.setOnClickListener(new View.OnClickListener() {\n// @Override\n// public void onClick(View view) {\n// Navigation.findNavController(view).navigate(R.id.action_firstNavgiation_to_secondNavigation);\n// }\n// });\n\n BottomNavigationView navigationView = (BottomNavigationView) findViewById(R.id.bottomNavView);\n// navigationView.setItemIconTintList(null);\n navigationView.setOnNavigationItemSelectedListener(this);\n loadFragment(new HomeFragment());\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main2);\n\n\n //Reference of bottom nav from activity_main2 xml\n BottomNavigationView mainNav = (BottomNavigationView) findViewById(R.id.bottomNavigationView);\n\n\n //Setting fragment_home as default\n setFragment(new FragmentHome());\n\n //Bottom Navigation events and fragment switching\n mainNav.setOnNavigationItemSelectedListener(new BottomNavigationView.OnNavigationItemSelectedListener() {\n @Override\n public boolean onNavigationItemSelected(@NonNull MenuItem item) {\n Fragment fragment;\n switch (item.getItemId()) {\n case R.id.nav_home:\n fragment = new FragmentHome();\n setFragment(fragment);\n// mainNav.setItemBackgroundResource(R.color.grey);\n break;\n case R.id.nav_aboutus:\n fragment = new FragmentAboutUs();\n setFragment(fragment);\n break;\n case R.id.nav_profile:\n fragment = new FragmentProfile();\n setFragment(fragment);\n break;\n default:\n return false;\n }\n return true;\n }\n });\n\n }", "public void setWelcomeScreen() {\n clearAllContent();\n add(WelcomeScreen.create(controller));\n pack();\n }", "public void setupBottomNavigationView(){\n Log.d(TAG,\"Setup for Bottom Navigation\");\n BottomNavigationViewEx bottomNavigationViewEx = (BottomNavigationViewEx) findViewById(R.id.bottonNavViewBar);\n BottomNavigationViewHelper.setupBottomNavigationView(bottomNavigationViewEx, type);\n BottomNavigationViewHelper.enableNavigation(mContext, bottomNavigationViewEx);\n Menu menu = bottomNavigationViewEx.getMenu();\n MenuItem menuItem = menu.getItem(ACTIVITY_NUM);\n menuItem.setChecked(true);\n }", "private void setupBottomNavigationView(){\r\n Log.d(TAG, \"setupBottomNavigationView: setting up bottom nav view\");\r\n BottomNavigationView bottomNavigationView = (BottomNavigationView) findViewById(R.id.bottomNavigationViewBar);\r\n BottomNavigationViewHelper.setupBottomNavigationView(bottomNavigationView);\r\n BottomNavigationViewHelper.enableNavigation(mContext,this, bottomNavigationView);\r\n Menu menu = bottomNavigationView.getMenu();\r\n MenuItem menuItem = menu.getItem(ACTIVITY_NUM);\r\n menuItem.setChecked(true);\r\n }", "private void setupBottomNavigationView(){\n Log.d(TAG, \"setting up bottom navigation view\");\n BottomNavigationViewEx bottomNavigationViewEx = (BottomNavigationViewEx) findViewById(R.id.bottomNavViewBar);\n BottomNavigationViewHelper.setupBottomNavigationView(bottomNavigationViewEx);\n BottomNavigationViewHelper.enableNavigation(ProfileActivity.this, bottomNavigationViewEx);\n Menu menu = bottomNavigationViewEx.getMenu();\n MenuItem menuItem = menu.getItem(ACTIVITY_NUMBER);\n menuItem.setChecked(true);\n }", "public void onBottomNavHomeClick(View view) {\n Intent intent = new Intent(Deals_Display.this, MainActivity.class);\n startActivity(intent);\n }", "private void setUpBottomNav()\n {\n bottomNav.addItemNav(new ItemNav(getContext(), R.drawable.ic_playlist_add_black_24dp, \"Add\").addColorAtive(R.color.white));\n bottomNav.addItemNav(new ItemNav(getContext(), R.drawable.ic_edit_black_24dp, \"Edit\").addColorAtive(R.color.white));\n bottomNav.addItemNav(new ItemNav(getContext(), R.drawable.ic_delete_forever_black_24dp,\"Delete\").addColorAtive(R.color.white));\n\n\n bottomNav.setTabSelectedListener(new BottomNav.OnTabSelectedListener() {\n @Override\n public void onTabSelected(int i) {\n switch (i)\n {\n case 0:\n addCategory();\n break;\n case 1:\n changeCategoryName();\n break;\n case 2:\n deleteCategory();\n break;\n }\n }\n\n @Override\n public void onTabLongSelected(int i) {\n\n }\n });\n bottomNav.build();\n }", "private void showDefaultPage() {\n FragmentManager manager = getSupportFragmentManager();\n FragmentTransaction transaction = manager.beginTransaction();\n fragment2 = new PersonList();\n bar_name.setText(\"Chat List\");\n transaction.add(R.id.fragment_container,fragment2,\"f2\");\n iv.setImageResource(R.drawable.tab_tab3_normal);\n transaction.commit();\n }", "private void initView() {\n\n LinearLayout bar = (LinearLayout) LayoutInflater.from(mContext).inflate(R.layout.bottom_bar, null);\n LayoutParams lp = new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT);\n addView(bar, lp);\n tab1= (LinearLayout) bar.findViewById(R.id.tab1);\n tab2= (LinearLayout) bar.findViewById(R.id.tab2);\n tab3= (LinearLayout) bar.findViewById(R.id.tab3);\n tab4= (LinearLayout) bar.findViewById(R.id.tab4);\n ivTab1= (ImageView) bar.findViewById(R.id.ivTab1);\n tvTab1= (TextView) bar.findViewById(R.id.tvTab1);\n ivTab2= (ImageView) bar.findViewById(R.id.ivTab2);\n tvTab2= (TextView) bar.findViewById(R.id.tvTab2);\n ivTab3= (ImageView) bar.findViewById(R.id.ivTab3);\n tvTab3= (TextView) bar.findViewById(R.id.tvTab3);\n ivTab4= (ImageView) bar.findViewById(R.id.ivTab4);\n tvTab4= (TextView) bar.findViewById(R.id.tvTab4);\n\n tab1.setOnClickListener(this);\n tab2.setOnClickListener(this);\n tab3.setOnClickListener(this);\n tab4.setOnClickListener(this);\n\n }", "public WelcomeScreen() {\n initComponents();\n }", "public void setUpBottomNavigation() {\n // Cannot use view binding for nav host fragment\n // See: https://stackoverflow.com/questions/60733289/navigation-with-view-binding\n NavHostFragment navHostFragment = (NavHostFragment) getSupportFragmentManager().findFragmentById(R.id.nav_host_fragment);\n if (navHostFragment != null) {\n NavController navController = navHostFragment.getNavController();\n NavigationUI.setupWithNavController(mBinding.bottomNavigation, navController);\n }\n }", "void showWelcomeScreen();", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n Toolbar toolbar = findViewById(R.id.toolbar);\n setSupportActionBar(toolbar);\n DrawerLayout drawer = findViewById(R.id.drawer_layout);\n NavigationView navigationView = findViewById(R.id.nav_view);\n // Passing each menu ID as a set of Ids because each\n // menu should be considered as top level destinations.\n mAppBarConfiguration = new Builder(\n R.id.fragment_home, R.id.fragment_contact, R.id.fragment_passphrase)\n .setOpenableLayout(drawer)\n .build();\n NavController navController = ((NavHostFragment) getSupportFragmentManager()\n .findFragmentById(R.id.nav_host_fragment)).getNavController();\n NavigationUI.setupActionBarWithNavController(this, navController, mAppBarConfiguration);\n NavigationUI.setupWithNavController(navigationView, navController);\n\n }", "private void setupNavigationView() {\n BottomNavigationView bottomNavigationView = (BottomNavigationView) findViewById(R.id.navigationView);\n if (bottomNavigationView != null) {\n\n // Poniendo el menu del bottomNavigationView en el primer item\n Menu menu = bottomNavigationView.getMenu();\n selectFragment(menu.getItem(0));\n\n // Accion para cuando el usuario seleccione una opcion del menu\n bottomNavigationView.setOnNavigationItemSelectedListener(\n new BottomNavigationView.OnNavigationItemSelectedListener() {\n @Override\n public boolean onNavigationItemSelected( @NonNull MenuItem item) {\n //metodo para seleccionar el Fragment basado en la seleccion del usuario\n selectFragment(item);\n return false;\n }\n });\n }\n }", "private void launchHomeScreen() {\n prefManager.setFirstTimeLaunch(false);\n startActivity(new Intent(Welcome.this, StartScreenActivity.class));\n finish();\n }", "public void setView(){\n\t\tTabHome.setContent(mainApp.homeOverview());\n\t\tTabPaiement.setContent(mainApp.paiementOverview());\n\t\tTabCompta.setContent(mainApp.comptaOverview());\n\t\tTabPlanning.setContent(mainApp.planningContainer());\n\t\tTabTP.setContent(mainApp.tiersPayantOverview());\n\t}", "private void setupTabs() {\n TextView tabOne = (TextView) LayoutInflater.from(this).inflate(R.layout.view_pager_tab, null);\n tabOne.setText(R.string.tab_adverts_title);\n tabLayout.getTabAt(0).setCustomView(tabOne);\n\n TextView tabTwo = (TextView) LayoutInflater.from(this).inflate(R.layout.view_pager_tab, null);\n tabTwo.setText(R.string.tab_polls_title);\n tabLayout.getTabAt(1).setCustomView(tabTwo);\n\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Overriden by children: Search for cheese in the given maze. If no path to any cheese exists, return null.
public abstract List<Direction> searchForCheese(Maze maze);
[ "public List<Direction> searchForCheese(Maze maze) {\n AStack<Direction> path = new AStack<Direction>(); //initialize stack\n Coord start = maze.getMouseLocation(); //first start\n maze.setFlag(start); //flag the starting position so that we don't go over it again\n if (recursiveSearch(maze, path, start)) { //call initial instance of recursiveSearch\n return path.toList(); //if the call is true, return a stack.toList\n }\n return null; //otherwise null\n }", "public boolean isPathToCheese(Maze maze, List<Direction> path);", "protected boolean recursiveSearch(Maze maze, AStack<Direction> path, Coord curPos) {\n for(Direction dir : Direction.directions){ //loop through the possible directions\n path.push(dir); //add dir to stack\n curPos = Coord.add(curPos,dir.getChange()); //get the new curPos with the dir change\n if (! maze.inBounds(curPos)) { //check if not out of bounds\n Direction d = path.pop(); //if so, remove from stack\n curPos = Coord.subtract(curPos,dir.getChange()); //backtrack curPos to previous position\n continue; //continue the loop\n }\n if (maze.isFlagged(curPos)) { //if its flagged, undo\n path.pop(); //remove from stack\n curPos = Coord.subtract(curPos,dir.getChange()); //backtrack curPos to previous position\n continue; //continue loop\n }\n maze.setFlag(curPos); //if not, flag it as doing\n \n if (maze.isCheese(curPos)) { //check if cheese found\n return stack.toList(); //true\n }\n \n if (maze.isSpace(curPos)) { //if it is a space\n if(recursiveSearch(maze, path, curPos)) { //start recursive call on recursiveSearch with current values\n return true; //true if true\n }\n }\n path.pop(); //if by here still not caught, remove from stack\n curPos = Coord.subtract(curPos,dir.getChange()); //backtrack curPos to previous position\n }\n return false; //false if nothing above found\n }", "public Stack<MazePoint> DepthFirstSearch(int row, int column)\n {\n //cMaze[row][column].wasVisited()\n if(cMaze[row][column].isExit())\n {\n sPath.push(cMaze[row][column]);\n //print out the path\n PrintPath(sPath, true);\n return sPath;\n }\n else\n {\n //when not visit\n if(!cMaze[row][column].wasVisited())\n {\n if(cMaze[row][column].hasItem())\n {\n String itemName = cMaze[row][column].pickUpItem();\n Item item = new Item(itemName);\n //check if the item is in the hashmap\n if(availableItemsHashMap.get(item) != null)\n {\n inventoryList.insert(itemName);\n }\n else\n {\n cMaze[row][column].dropItem();\n }\n }\n //mark as vist\n cMaze[row][column].markVisited();\n //push into stack\n sPath.push(cMaze[row][column]);\n }\n //determine where to traverse next (S, E, W, N)\n //recursively\n if(cMaze[row+1][column].canBeNavigated() || cMaze[row+1][column].isExit())// or (cMaze[row+1][column] != VISITED_MARKER && cMaze[row+1][column] != 'W')\n {\n return DepthFirstSearch(row+1, column);\n }\n else if(cMaze[row][column+1].canBeNavigated() || cMaze[row][column+1].isExit())\n {\n return DepthFirstSearch(row, column+1);\n }\n else if(cMaze[row][column-1].canBeNavigated() || cMaze[row][column-1].isExit())\n {\n return DepthFirstSearch(row, column-1);\n }\n else if(cMaze[row-1][column].canBeNavigated() || cMaze[row-1][column].isExit())\n {\n return DepthFirstSearch(row-1, column);\n }\n //no where could go, then return\n else\n {\n sPath.pop();\n if(sPath.isEmpty())\n {\n //print nothing found\n PrintPath(sPath, false);\n return sPath;\n }\n MazePoint mp = sPath.top();\n int mpRow = mp.getRow();\n int mpColumn = mp.getColumn();\n return DepthFirstSearch(mpRow, mpColumn);\n }\n }\n }", "public String findCheese(Place startingPoint) {\nif (startingPoint==null)\n\treturn null;\n\nvisited.add(startingPoint);\nStack<Place> vstdstack=new Stack<Place>();\nvstdstack.add(startingPoint);\n//Stack<c> pather=\"start->\";\nwhile(!vstdstack.isEmpty())\n{\n\tPlace curpos=getNextPlace(vstdstack.peek());\n if (curpos==null)\n {\n vstdstack.pop();\n soln.deleteCharAt(soln.length()-1);\n continue;\n }\n if(curpos.isCheese())\n return soln.toString();\n else \n vstdstack.push(curpos);\n \n}\nreturn null;\n}", "public static Deque<Position> findWallPath(Maze maze) {\n return null;\n \n }", "protected Location findFood()\n {\n Field field = getField();\n List<Location> adjacent = field.adjacentLocations(getLocation());\n Iterator<Location> it = adjacent.iterator();\n while(it.hasNext()) {\n Location where = it.next();\n Object obj = field.getObjectAt(where);\n //empty cell\n if(obj == null){\n continue;\n }\n //is not part of the diet\n if(!dietContains(obj.toString())) {\n continue; \n }\n //is dead\n Actor food = (Actor) obj;\n if(!food.isAlive()) {\n continue;\n }\n return eat(where, food);\n }\n return null;\n }", "private Trie quickFind(String stem) {\n if (stem.equals(this.getStem()))\n return this;\n else {\n Trie child = getChildren().get(stem.charAt(this.getStem().length()));\n if (child == null)\n return null;\n else return child.quickFind(stem);\n }\n }", "@Override\r\n\tpublic void findPath() {\r\n\t\tPathRoom current = maze.start();\r\n\t\tPosition currentPos = current.getPosition();\r\n\t\t\r\n\t\tmaze.setHasPath(findPath(currentPos.rowNum(), currentPos.colNum()));\r\n\t\t\r\n\t\tif(maze.hasPath()){\r\n\t\t\tfor(PathRoom i: path){\r\n\t\t\t\ti.setOnPath(true);\r\n\t\t\t\treverseP.push(i);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "protected @Nullable BlockPos findNearbyLeaves() {\n\t\tif (world == null) {\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\t// Check home space\n\t\tBlockPos homePos = this.getHome();\n\t\tif (homePos != null && this.isGoodLeavesBlock(world.getBlockState(homePos), homePos)) {\n\t\t\treturn homePos;\n\t\t}\n\t\t\n\t\t// Do longer search nearby\n\t\tList<BlockPos> leaves = new ArrayList<>();\n\t\tBlockPos center = (homePos == null ? getPosition() : homePos);\n\t\tMutableBlockPos cursor = new MutableBlockPos();\n\t\tfinal int radius = 10;\n\t\tfor (int x = -radius; x <= radius; x++)\n\t\tfor (int z = -radius; z <= radius; z++)\n\t\tfor (int y = -radius; y <= radius; y++) {\n\t\t\tcursor.setPos(center.getX() + x, center.getY() + y, center.getZ() + z);\n\t\t\t\n\t\t\t// Make sure y if suitable\n\t\t\tif (cursor.getY() <= 0 || cursor.getY() > world.getHeight()) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\tIBlockState state = world.getBlockState(cursor);\n\t\t\tif (isGoodLeavesBlock(state, cursor)) {\n\t\t\t\tleaves.add(cursor.toImmutable());\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (leaves.isEmpty()) {\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\treturn leaves.get(rand.nextInt(leaves.size()));\n\t}", "protected void findFood() {\n\t\tFood food = field.adjacentObjects(location).stream().filter(obj -> obj instanceof Food).map(obj -> (Food) obj)\n\t\t\t\t.filter(this::isFood).findFirst().orElse(null);\n\t\t\n\t\tif (food == null) return;\n\t\t\n\t\teat(food);\n\t\tmove(food.getLocation());\n\t}", "public String checkCheese() {\n\n\n int j = 1;\n\n while (j < _cheese.getY() + 2) {\n\n for (int i = 1; i < _cheese.getX() + 1; i++) {\n\n int i2 = i;\n int j2 = j;\n\n\n if (_cheese.getCellArray()[i2][j2].getCheeseCell() == \"*\" && !_cheese.getCellArray()[i2][j2].isVisited()) {\n int temp1 = i2;\n int temp2 = j2;\n _holeCount++;\n while ((\n\n (_cheese.getCellArray()[i2 + 1][j2].getCheeseCell() == \"*\" && !_cheese.getCellArray()[i2 + 1][j2].isVisited()) ||\n\n\n (_cheese.getCellArray()[i2 + 1][j2 + 1].getCheeseCell() == \"*\" && !_cheese.getCellArray()[i2 + 1][j2 + 1].isVisited()) ||\n\n\n (_cheese.getCellArray()[i2][j2 + 1].getCheeseCell() == \"*\" && !_cheese.getCellArray()[i2][j2 + 1].isVisited()) ||\n\n (_cheese.getCellArray()[i2 - 1][j2 + 1].getCheeseCell() == \"*\" && !_cheese.getCellArray()[i2 - 1][j2 + 1].isVisited()) ||\n\n (_cheese.getCellArray()[i2 - 1][j2].getCheeseCell() == \"*\" && !_cheese.getCellArray()[i2 - 1][j2].isVisited()) ||\n\n (_cheese.getCellArray()[i2 - 1][j2 - 1].getCheeseCell() == \"*\" && !_cheese.getCellArray()[i2 - 1][j2 - 1].isVisited()) ||\n\n (_cheese.getCellArray()[i][j2 - 1].getCheeseCell() == \"*\" && !_cheese.getCellArray()[i][j2 - 1].isVisited()) ||\n\n (_cheese.getCellArray()[i2 + 1][j2 + 1].getCheeseCell() == \"*\" && !_cheese.getCellArray()[i2 + 1][j2 + 1].isVisited())\n\n )) {\n if (_cheese.getCellArray()[i2 + 1][j2].getCheeseCell() == \"*\" && !_cheese.getCellArray()[i2 + 1][j2].isVisited()) {\n _cheese.getCellArray()[i2 + 1][j2].setVisited(true);\n i2++;\n _holeCount++;\n } else if (_cheese.getCellArray()[i2 + 1][j2 + 1].getCheeseCell() == \"*\" && !_cheese.getCellArray()[i2 + 1][j2 + 1].isVisited()) {\n _cheese.getCellArray()[i2 + 1][j2 + 1].setVisited(true);\n i2++;\n j2++;\n _holeCount++;\n } else if (_cheese.getCellArray()[i2][j2 + 1].getCheeseCell() == \"*\" && !_cheese.getCellArray()[i2][j2 + 1].isVisited()) {\n _cheese.getCellArray()[i2][j2 + 1].setVisited(true);\n j2++;\n _holeCount++;\n } else if (_cheese.getCellArray()[i2 - 1][j2 + 1].getCheeseCell() == \"*\" && !_cheese.getCellArray()[i2][j2 + 1].isVisited()) {\n _cheese.getCellArray()[i2 - 1][j2 + 1].setVisited(true);\n j2++;\n _holeCount++;\n } else if (_cheese.getCellArray()[i2 - 1][j2].getCheeseCell() == \"*\" && !_cheese.getCellArray()[i2][j2 + 1].isVisited()) {\n _cheese.getCellArray()[i2 - 1][j2].setVisited(true);\n j2++;\n _holeCount++;\n } else if (_cheese.getCellArray()[i2 - 1][j2 - 1].getCheeseCell() == \"*\" && !_cheese.getCellArray()[i2][j2 + 1].isVisited()) {\n _cheese.getCellArray()[i2 - 1][j2 - 1].setVisited(true);\n j2++;\n _holeCount++;\n } else if (_cheese.getCellArray()[i2][j2 - 1].getCheeseCell() == \"*\" && !_cheese.getCellArray()[i2][j2 + 1].isVisited()) {\n _cheese.getCellArray()[i2][j2 - 1].setVisited(true);\n j2++;\n _holeCount++;\n } else if (_cheese.getCellArray()[i2 + 1][j2 + 1].getCheeseCell() == \"*\" && !_cheese.getCellArray()[i2][j2 + 1].isVisited()) {\n _cheese.getCellArray()[i2 + 1][j2 + 1].setVisited(true);\n j2++;\n\n }\n\n\n }\n _cheese.getCellArray()[temp1][temp2].setVisited(true);\n if (_holeCount > _biggestHole) {\n _biggestHole = _holeCount;\n }\n }\n _cheese.getCellArray()[i2][j2].setVisited(true);\n\n\n }\n\n\n j++;\n }\n\n\n return \"hole-count: \" + _holeCount + \"\\n\" +\n \"biggest hole edge: \" + _biggestHole;\n\n }", "private Location findFood()\n {\n \n Field field = getField();\n List<Location> adjacent = field.adjacentLocations(getLocation());\n Iterator<Location> it = adjacent.iterator();\n while(it.hasNext()) {\n Location where = it.next();\n Object object = field.getObjectAt(where);\n if(object instanceof Plant) {\n Plant plant = (Plant) object;\n if(plant.isEatable()) { \n plant.setAsEaten();\n foodLevel = PLANT_FOOD_VALUE;\n return where;\n }\n }\n }\n return null;\n }", "public SearchableMaze(Maze maze) {\n this.maze = maze;\n }", "public static ArrayList<String> solve(MazeProblem problem) {\r\n\t\t// TODO: Initialize frontier -- what data structure should you use here for\r\n\t\t// breadth-first search? Recall: The frontier holds SearchTreeNodes!\r\n\t\tif (problem.foundKey()) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tPriorityQueue<SearchTreeNode> frontier = new PriorityQueue<>(\r\n\t\t\t\t(SearchTreeNode s1, SearchTreeNode s2) -> s1.cost(problem) - s2.cost(problem));\r\n\r\n\t\t// TODO: Add new SearchTreeNode representing the problem's initial state to the\r\n\t\t// frontier. Since this is the initial state, the node's action and parent will\r\n\t\t// be null\r\n\t\tSearchTreeNode initialState = new SearchTreeNode(problem.INITIAL_STATE, null, null);\r\n\t\tfrontier.add(initialState);\r\n\t\tArrayList<String> path = new ArrayList<String>();\r\n\t\tSearchTreeNode current = initialState;\r\n\t\t// TODO: Loop: as long as the frontier is not empty...\r\n\t\twhile (frontier.size() != 0) {\r\n\t\t\t// TODO: Get the next node to expand by the ordering of breadth-first search\r\n\t\t\tMap<String, MazeState> transitions = problem.getTransitions(frontier.peek().state); // throws an error right\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// when key is found\r\n\r\n\t\t\tfor (Entry<String, MazeState> x : transitions.entrySet()) {\r\n\t\t\t\tMazeState xMod = x.getValue();\r\n\t\t\t\tSearchTreeNode xNode = new SearchTreeNode(x.getValue(), x.getKey(), current);\r\n\t\t\t\tif (problem.isKey(xMod) && !problem.foundKey()) {\r\n\t\t\t\t\tpath = xNode.getPath();\r\n\t\t\t\t\tproblem.findKey();\r\n\t\t\t\t\tfrontier.clear();\r\n\t\t\t\t\tproblem.clearGraveyard();\r\n\t\t\t\t\txNode.parent = null;\r\n\t\t\t\t\txNode.action = null;\r\n\t\t\t\t\tfrontier.add(xNode);\r\n\t\t\t\t\tfrontier.add(xNode);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tif (problem.isGoal(xMod) && problem.foundKey()) {\r\n\t\t\t\t\tif (path.isEmpty()) {\r\n\t\t\t\t\t\treturn xNode.getPath();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tpath.addAll(xNode.getPath());\r\n\t\t\t\t\treturn path;\r\n\t\t\t\t\t// return xMod and path to get there\r\n\t\t\t\t\t// call helper method which holds the strings of the actions, set current to\r\n\t\t\t\t\t// parent\r\n\t\t\t\t\t// until you hit the root\r\n\t\t\t\t}\r\n\t\t\t\tif (!problem.isKey(xMod)) {\r\n\t\t\t\t\tproblem.addToGraveyard(current.state);\r\n\t\t\t\t}\r\n\t\t\t\tfrontier.add(xNode);\r\n\t\t\t\t// make a new treeNode and add it to the frontier and it consists of value, key,\r\n\t\t\t\t// current\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tfrontier.poll();\r\n\r\n\t\t\t//System.out.println(frontier.size());\r\n\t\t\t// System.out.println(frontier.peek().state.toString());\r\n\t\t\tcurrent = frontier.peek();\r\n\t\t\t// pop the head of the LinkedList\r\n\t\t\t// set current = new head of LinkedList\r\n\t\t}\r\n\r\n\t\t// TODO: If that node's state is the goal (see problem's isGoal method),\r\n\t\t// you're done! Return the solution\r\n\t\t// [Hint] Use a helper method to collect the solution from the current node!\r\n\r\n\t\t// TODO: Otherwise, must generate children to keep searching. So, use the\r\n\t\t// problem's getTransitions method from the currently expanded node's state...\r\n\r\n\t\t// TODO: ...and *for each* of those transition states...\r\n\t\t// [Hint] Look up how to iterate through <key, value> pairs in a Map -- an\r\n\t\t// example of this is already done in the MazeProblem's getTransitions method\r\n\r\n\t\t// TODO: ...add a new SearchTreeNode to the frontier with the appropriate\r\n\t\t// action, state, and parent\r\n\r\n\t\t// Should never get here, but just return null to make the compiler happy\r\n\t\treturn null;\r\n\t}", "public MahjongSolitaireMove findMove()\n {\n // MAKE A MOVE TO FILL IN \n MahjongSolitaireMove move = new MahjongSolitaireMove();\n\n // GO THROUGH THE ENTIRE GRID TO FIND A MATCH BETWEEN AVAILABLE TILES\n for (int i = 0; i < gridColumns; i++)\n {\n for (int j = 0; j < gridRows; j++)\n {\n ArrayList<MahjongSolitaireTile> stack1 = tileGrid[i][j];\n if (stack1.size() > 0)\n {\n // GET THE FIRST TILE\n MahjongSolitaireTile testTile1 = stack1.get(stack1.size()-1);\n for (int k = 0; k < gridColumns; k++)\n {\n for (int l = 0; l < gridRows; l++)\n {\n if (!((i == k) && (j == l)))\n { \n ArrayList<MahjongSolitaireTile> stack2 = tileGrid[k][l];\n if (stack2.size() > 0) \n {\n // AND TEST IT AGAINST THE SECOND TILE\n MahjongSolitaireTile testTile2 = stack2.get(stack2.size()-1);\n \n // DO THEY MATCH\n if (testTile1.match(testTile2))\n {\n // YES, FILL IN THE MOVE AND RETURN IT\n move.col1 = i;\n move.row1 = j;\n move.col2 = k;\n move.row2 = l;\n return move;\n }\n }\n }\n }\n }\n }\n }\n }\n // WE'VE SEARCHED THE ENTIRE GRID AND THERE\n // ARE NO POSSIBLE MOVES REMAINING\n return null;\n }", "private void findPath(){\n ArrayList<Tile> openTiles = new ArrayList<>();\n ArrayList<Tile> closedTiles = new ArrayList<>();\n\n currentTile.setParent(null); // In case there already was a parent before\n openTiles.add(currentTile);\n\n while(openTiles.size() > 0){ // Keep going\n currentTile = openTiles.get(0); // Reset to start\n\n for (Tile openTile : openTiles) { // Check through open tiles until finding best tile\n if (openTile.getFCost() < currentTile.getFCost() ||\n (openTile.getFCost() == currentTile.getFCost() && openTile.getH() < currentTile.getH())) {\n currentTile = openTile;\n }\n }\n\n openTiles.remove(currentTile);\n closedTiles.add(currentTile);\n\n for(Tile neighbor : tileController.getNeighbors(currentTile)){ // add neighbors and set info\n if(neighbor == null || neighbor.isWall() || closedTiles.contains(neighbor)){\n continue;\n }\n\n if(!openTiles.contains(neighbor)){ // Update costs, and set parent\n openTiles.add(neighbor);\n neighbor.updateH(target);\n neighbor.updateGCost(currentTile.getG() + 1);\n neighbor.setParent(currentTile);\n }else{ // Check if g cost is less now, if it is update parent and cost\n int newGCost = currentTile.getG() + 1;\n if (newGCost < neighbor.getG()) {\n neighbor.updateGCost(newGCost);\n neighbor.setParent(currentTile);\n }\n }\n if(neighbor.equals(target)){ // Found the end\n endTile = neighbor;\n currentTile = openTiles.get(0);\n return;\n }\n }\n }\n }", "private static void findAllPath( int[][] maze, int[][] path, int n, int x, int y ) {\n\n //if bounds are out of reach\n if (x < 0 || x >= n || y < 0 || y >= n)\n return;\n\n //if we reach at the End of MAZE\n if (x == n - 1 && y == n - 1) {\n\n //assigning last path at MAZE[x][y] to path array\n path[x][y] = 1;\n\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < n; j++) {\n System.out.print(path[i][j] + \" \");\n }\n System.out.print(\"\\n\");\n }\n System.out.print(\"\\n\");\n\n return;\n }\n\n //maze[x][y] == 0 means : we are block to going forward\n //path[x][y] == 1 means : we are traversing on the same path, this will cause loop\n if (maze[x][y] == 0 || path[x][y] == 1) {\n return;\n }\n\n //otherwise, we can record the current cell of MAZE as visited and mark path[x][y] = 1\n path[x][y] = 1;\n\n // Right (x,y+1) = (i,j+1)\n findAllPath(maze, path, n, x, y + 1);\n\n //left\n findAllPath(maze, path, n, x, y - 1);\n\n // top\n findAllPath(maze, path, n, x - 1, y);\n\n // Down\n findAllPath(maze, path, n, x + 1, y);\n\n //we are backtracking from the current path by marking it as zero, if all matches false\n path[x][y] = 0;\n }", "private Board aStarSearch(){\n\t\tint nodesExpanded = 0;\n\t\tvisitedNodes = new ArrayList<Board>();\n\t\tPriorityQueue<Board> pq;\n\t\t\n\t\tif(weakHeuristic){\n\t\t\tpq = new PriorityQueue<Board>(new WeakBoardComparator());\n\t\t}else{\n\t\t\tpq = new PriorityQueue<Board>(new BoardComparator());\n\t\t}\n\t\t\n\t\tpq.add(STARTBOARD);\n\t\t\n\t\tBoard board;\n\t\twhile(!(pq.isEmpty())){\n\t\t\tboard = pq.poll();\n\t\t\tnodesExpanded++;\n\t\t\ttestSearch(nodesExpanded, board);\n\t\t\t\n\t\t\t//check if solution has been reached\n\t\t\tif(isReached(board)){\n\t\t\t\tif(printSummary){\n\t\t\t\t\tSystem.out.println(\"A Star search\");\n\t\t\t\t\tSystem.out.println(\"Nodes expanded: \" + nodesExpanded);\n\t\t\t\t\tSystem.out.println(\"Depth: \" + board.getDepth());\n\t\t\t\t\tSystem.out.println(\"Size of PriorityQueue: \" + pq.size() + \"\\n\");\n\t\t\t\t}\n\t\t\t\ttotalNodesExpanded = nodesExpanded;\n\t\t\t\treturn board;\n\t\t\t}\n\t\t\t\n\t\t\t//find the successors - no need to randomize\n\t\t\tArrayList<Board> successors = findSuccessors(board);\n\t\t\t\n\t\t\t//add them to the priority queue\n\t\t\tfor(Board bd : successors){\n\t\t\t\tpq.add(bd);\n\t\t\t}\n\t\t}\n\t\ttotalNodesExpanded = nodesExpanded;\n\t\treturn null;\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method returns a String for a range of dates for show_week
private static String getRangeOfWeek(Task startOfWeekTask, Task endOfWeekTask) { return String.format(Constants.MSG_RANGE_OF_WEEK, getDayOfWeek(startOfWeekTask.getDate()), startOfWeekTask.getDate(), getDayOfWeek(endOfWeekTask.getDate()), endOfWeekTask.getDate()); }
[ "@Override\n public String dateRange() {\n StringBuilder frag = new StringBuilder();\n DateFormat df = DateFormat.getDateInstance();\n\n frag.append(\"<div class=\\\"reportDate\\\">\");\n if (start != null) {\n frag.append(df.format(start));\n } else {\n frag.append(\"from start of records \");\n }\n\n frag.append(\" to \");\n\n if (end != null) {\n frag.append(df.format(end));\n } else {\n frag.append(\" end of records\");\n }\n\n frag.append(\"</div>\\n\\n\");\n\n return frag.toString();\n }", "public String getWeekBegin();", "@SuppressLint(\"LongLogTag\")\n private void filterListWeekly(String status) {\n\n\n Date date = new Date();\n Calendar c = Calendar.getInstance();\n c.setTime(date);\n int dayOfWeek = c.get(Calendar.DAY_OF_WEEK) - c.getFirstDayOfWeek();\n c.add(Calendar.DAY_OF_MONTH, -dayOfWeek);\n\n Date weekStart = c.getTime();\n // we do not need the same day a week after, that's why use 6, not 7\n c.add(Calendar.DAY_OF_MONTH, 6);\n Date weekEnd = c.getTime();\n DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\n String startWeekly, endWeekly;\n startWeekly = dateFormat.format(weekStart);\n endWeekly = dateFormat.format(weekEnd);\n\n\n Log.d(TAG, \"filterListWeekly: start day:\" + startWeekly);\n Log.d(TAG, \"filterListWeekly: start End:\" + endWeekly);\n\n ((DescriptionAndrGraphActivity) getActivity()).fetchComplains(status, startWeekly, endWeekly);\n\n }", "int getWeek();", "@Override\r\n public String toString() {\r\n return this.weekName;\r\n }", "@FXML\n void showByWeek(ActionEvent event) {\n String sql = \"SELECT * FROM WJ07su1.appointments where date_format(sysdate(), '%v') = date_format(Start, '%v');\";\n showAppointmentsBy(sql);\n }", "private Spanned setUpWeeklyHoursLeft() {\n ArrayList<Date> openings = resource.getWeeklyOpen();\n Spanned weeklyHoursString = new SpannableString(\"Today\\n\");\n for (int i=0; i < openings.size(); i++) {\n Spannable hoursString;\n hoursString = new SpannableString(\"\\n\" + resource.getDayOfWeek(i));\n if (i == 0) {\n hoursString.setSpan(new android.text.style.StyleSpan(android.graphics.Typeface.BOLD), 0, hoursString.length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);\n }\n\n weeklyHoursString = (Spanned) TextUtils.concat(weeklyHoursString, hoursString);\n }\n return weeklyHoursString;\n }", "public boolean getWeekSpecifiedAvailable();", "@org.junit.Test\n public void testWeekdayRange() {\n assertTrue(helpers.weekdayRange(\"MON\", \"SUN\", \"GMT\"));\n assertTrue(helpers.weekdayRange(\"MON\", \"SUN\", null));\n\n Calendar now = Calendar.getInstance();\n int weekdayNo = now.get(Calendar.DAY_OF_WEEK); // 1-7 (1=Sunday, 7=Monday)\n int weekdayNoBefore = weekdayNo - 1;\n if (weekdayNoBefore == 0) {\n weekdayNoBefore = 7;\n }\n int weekdayNoAfter = weekdayNo + 1;\n if (weekdayNoAfter == 8) {\n weekdayNoAfter = 1;\n }\n String weekdayNow = WEEKDAY_NAMES.get(weekdayNo - 1);\n String weekdayBefore = WEEKDAY_NAMES.get(weekdayNoBefore - 1);\n String weekdayAfter = WEEKDAY_NAMES.get(weekdayNoAfter - 1);\n assertTrue(helpers.weekdayRange(weekdayNow, null, null));\n assertTrue(helpers.weekdayRange(weekdayBefore, weekdayAfter, null));\n }", "public DateRange visibleDateRange() {\n NSArray<Week> weeks = weekObjects();\n NSTimestamp startDate = weeks.objectAtIndex(0).getStartTime();\n NSTimestamp endDate = weeks.lastObject().getEndTime();\n return new DateRange(startDate, endDate);\n }", "private Spanned setUpWeeklyHoursRight() {\n ArrayList<Date> openings = resource.getWeeklyOpen();\n ArrayList<Date> closings = resource.getWeeklyClose();\n ArrayList<Boolean> byAppointments = resource.getWeeklyAppointments();\n Spannable hoursString;\n if (resource.isByAppointment()) {\n hoursString = new SpannableString(\"BY APPOINTMENT\\n\");\n hoursString.setSpan(new ForegroundColorSpan(ContextCompat.getColor(getApplicationContext(),R.color.pavan_light )), 0, hoursString.length(), Spanned.SPAN_INCLUSIVE_EXCLUSIVE);\n } else if (openings != null && closings != null) {\n String isOpen;\n int color;\n if (resource.isOpen()) {\n isOpen = \"OPEN\";\n color = ContextCompat.getColor(getApplicationContext(),R.color.green);\n } else {\n isOpen = \"CLOSED\";\n color = ContextCompat.getColor(getApplicationContext(),R.color.red);\n }\n\n hoursString = new SpannableString(isOpen + \"\\n\");\n hoursString.setSpan(new ForegroundColorSpan(color), 0, hoursString.length(), Spanned.SPAN_INCLUSIVE_EXCLUSIVE);\n } else {\n hoursString = new SpannableString(\"CLOSED ALL DAY\\n\");\n hoursString.setSpan(new ForegroundColorSpan(ContextCompat.getColor(getApplicationContext(),R.color.maroon) ), 0, hoursString.length(), Spanned.SPAN_INCLUSIVE_EXCLUSIVE);\n }\n Spanned weeklyHoursString = hoursString;\n for (int i=0; i < openings.size(); i++) {\n if (byAppointments.get(i)) {\n hoursString = new SpannableString(\"\\n BY APPOINTMENT\");\n hoursString.setSpan(new ForegroundColorSpan(ContextCompat.getColor(getApplicationContext(),R.color.pavan_light) ), 0, hoursString.length(), Spanned.SPAN_INCLUSIVE_EXCLUSIVE);\n } else if (openings.get(i) != null && closings.get(i) != null) {\n String opening = HOURS_FORMAT.format(openings.get(i));\n String closing = HOURS_FORMAT.format(closings.get(i));\n hoursString = new SpannableString(\"\\n\" + opening + \" - \" + closing);\n } else {\n hoursString = new SpannableString(\"\\n CLOSED ALL DAY\");\n hoursString.setSpan(new ForegroundColorSpan(ContextCompat.getColor(getApplicationContext(),R.color.maroon) ), 0, hoursString.length(), Spanned.SPAN_INCLUSIVE_EXCLUSIVE);\n }\n if (i == 0) {\n hoursString.setSpan(new android.text.style.StyleSpan(android.graphics.Typeface.BOLD), 0, hoursString.length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);\n }\n weeklyHoursString = (Spanned) TextUtils.concat(weeklyHoursString, hoursString);\n }\n return weeklyHoursString;\n }", "boolean getWeek1();", "public void printDaysOfTheWeek(){\n List<String> weekDays= new ArrayList<>();\n weekDays.add(\"Monday\");\n weekDays.add(\"Tuesday\");\n weekDays.add(\"Wednesday\");\n weekDays.add(\"Thursday\");\n weekDays.add(\"Friday\");\n weekDays.add(\"Saturday\");\n weekDays.add(\"Sunday\");\n\n System.out.println(weekDays);\n }", "boolean getWeek5();", "public static String getWeekDate() {\n Calendar calendar = Calendar.getInstance();\n calendar.add(Calendar.DAY_OF_YEAR, -7);\n Date newDateForWeek = calendar.getTime();\n Log.i(TAG, \"Seven day back \" + newDateForWeek);\n\n return DataProviderFormat.getformateDate(newDateForWeek);\n\n }", "boolean getWeek7();", "C weekNumbersVisible(boolean weekNumbersVisible);", "public static String getDayOfWeekString() {\n\t\treturn \",case cast (strftime('%w', PerfDate) as integer)\"\n\t\t\t\t+ \" when 0 then 'Sunday '\" + \"\" + \" when 1 then 'Monday '\"\n\t\t\t\t+ \"\" + \" when 2 then 'Tuesday '\" + \" when 3 then 'Wednesday'\"\n\t\t\t\t+ \" when 4 then 'Thursday '\" + \" when 5 then 'Friday '\"\n\t\t\t\t+ \" else 'Saturday ' end as dayofweek \";\n\n\t}", "boolean getWeek6();" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Setter for the deliverable flag
public void setDeliverable(boolean deliverable) { this.deliverable = deliverable; }
[ "public void setDelivered(boolean b);", "public boolean isDeliverable() {\r\n return deliverable;\r\n }", "public void setDelivery(boolean deliver){\r\n this.delivery = deliver;\r\n }", "public void setGuaranteedDelivery(boolean value) {\r\n this.guaranteedDelivery = value;\r\n }", "public void changeDeliverStatus() {\r\n\t\tdeliverStatus = !deliverStatus;\r\n\t}", "public void setAmDelivery(boolean value) {\r\n this.amDelivery = value;\r\n }", "public void setDistributable(boolean distributable);", "public void setHasDeliverables(boolean hasDeliverables) {\n\t\tthis.hasDeliverables = hasDeliverables;\n\t}", "public void setCashOnDelivery(boolean value) {\n this.cashOnDelivery = value;\n }", "public void setAvailableForDelivery(boolean available) {\n this.availableForDelivery = available;\n if (this.availableForDelivery) {\n this.sendStatusMessageToDispatch(\"Vehicle \" + this.VIN + \" is now available for deliveries\");\n } else {\n this.sendStatusMessageToDispatch(\n \"Vehicle \" + this.VIN + \" has a new order and is no longer available for deliveries\");\n }\n }", "public void markDelivered() {\n mResponseDelivered = true;\n }", "public abstract boolean isDelivered();", "public boolean isDelivery(){\r\n return delivery;\r\n }", "public void setDeliveryMode(int value) {\n this.deliveryMode = value;\n }", "public void setAvalible(boolean val) {\n this.available = val;\n }", "public boolean isHasDeliverables() {\n\t\treturn hasDeliverables;\n\t}", "public void setDeliverableName(String deliverableName) {\r\n this.deliverableName = deliverableName;\r\n }", "public void setPerishable(boolean value) {\r\n this.perishable = value;\r\n }", "public boolean isGuaranteedDelivery() {\r\n return guaranteedDelivery;\r\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method to read an external library file, given its name as stored on disk. Attempts to find the file in many different ways, including asking the user.
protected Library readExternalLibraryFromFilename(String theFileName, FileType defaultType) { // get the path to the library file String legalLibName = TextUtils.getFileNameWithoutExtension(theFileName); // Checking if the library is already open Library elib = Library.findLibrary(legalLibName); if (elib != null) return elib; // URL url = TextUtils.makeURLToFile(theFileName); // String fileName = url.getFile(); // File libFile = new File(fileName); // see if this library is already read in String libFileName = theFileName; // String libFileName = libFile.getName(); // special case if the library path came from a different computer system and still has separators while (libFileName.endsWith("\\") || libFileName.endsWith(":") || libFileName.endsWith("/")) libFileName = libFileName.substring(0, libFileName.length()-1); int backSlashPos = libFileName.lastIndexOf('\\'); int colonPos = libFileName.lastIndexOf(':'); int slashPos = libFileName.lastIndexOf('/'); int charPos = Math.max(backSlashPos, Math.max(colonPos, slashPos)); if (charPos >= 0) { libFileName = libFileName.substring(charPos+1); } String libName = libFileName; FileType importType = OpenFile.getOpenFileType(libName, defaultType); FileType preferredType = importType; // this is just to remove the extension from the lib name string if (libName.endsWith(".elib")) { libName = libName.substring(0, libName.length()-5); } else if (libName.endsWith(".jelib")) { libName = libName.substring(0, libName.length()-6); } else if (libName.endsWith(".delib")) { libName = libName.substring(0, libName.length()-6); } else if (libName.endsWith(".txt")) { libName = libName.substring(0, libName.length()-4); } else { // no recognizable extension, add one to the file name libFileName += "." + defaultType.getExtensions()[0]; } StringBuffer errmsg = new StringBuffer(); // first try the library name with the extension it came with // However, do not look in electric library area to avoid problems with spice configurations for old chips URL externalURL = getLibrary(libName + "." + preferredType.getExtensions()[0], theFileName, errmsg, true); // Now try all file types, starting with jelib // try JELIB if (externalURL == null && preferredType != FileType.JELIB) { externalURL = getLibrary(libName + "." + FileType.JELIB.getExtensions()[0], theFileName, errmsg, true); } // try ELIB if (externalURL == null && preferredType != FileType.ELIB) { externalURL = getLibrary(libName + "." + FileType.ELIB.getExtensions()[0], theFileName, errmsg, true); } // try DELIB if (externalURL == null && preferredType != FileType.DELIB) { externalURL = getLibrary(libName + "." + FileType.DELIB.getExtensions()[0], theFileName, errmsg, true); } // try txt if (externalURL == null && preferredType != FileType.READABLEDUMP) { externalURL = getLibrary(libName + "." + FileType.READABLEDUMP.getExtensions()[0], theFileName, errmsg, true); } boolean exists = (externalURL == null) ? false : true; // last option: let user pick library location if (!exists) { System.out.println("Error: cannot find referenced library " + libName+":"); System.out.print(errmsg.toString()); String pt = null; while (true) { // continue to ask the user where the library is until they hit "cancel" String description = "Reference library '" + libFileName + "'"; pt = OpenFile.chooseInputFile(FileType.LIBFILE, description); if (pt == null) { // user cancelled, break break; } // see if user chose a file we can read externalURL = TextUtils.makeURLToFile(pt); if (externalURL != null) { exists = TextUtils.URLExists(externalURL, null); if (exists) { // good pt, opened it, get out of here break; } } } } if (exists) { System.out.println("Reading referenced library " + externalURL.getFile()); importType = OpenFile.getOpenFileType(externalURL.getFile(), defaultType); elib = Library.newInstance(legalLibName, externalURL); } if (elib != null) { // read the external library String oldNote = getProgressNote(); setProgressValue(0); setProgressNote("Reading referenced library " + legalLibName + "..."); // get the library name String eLibName = TextUtils.getFileNameWithoutExtension(externalURL); elib = readALibrary(externalURL, elib, eLibName, importType, null); setProgressValue(100); setProgressNote(oldNote); } if (elib == null) { System.out.println("Error: cannot find referenced library " + theFileName); System.out.println("...Creating new "+legalLibName+" Library instead"); elib = Library.newInstance(legalLibName, null); elib.setLibFile(TextUtils.makeURLToFile(theFileName)); elib.clearFromDisk(); } // if (failed) elib->userbits |= UNWANTEDLIB; else // { // // queue this library for announcement through change control // io_queuereadlibraryannouncement(elib); // } return elib; }
[ "private URL getLibrary(String libFileName, String originalPath, StringBuffer errmsg, boolean checkElectricLib)\n {\n // library does not exist: see if file is in the same directory as the main file\n \t\tURL firstURL = TextUtils.makeURLToFile(mainLibDirectory + libFileName);\n boolean exists = TextUtils.URLExists(firstURL, errmsg);\n if (exists) return firstURL;\n HashMap<String,String> searchedURLs = new HashMap<String,String>();\n \n // try secondary library file locations\n for (Iterator<String> libIt = LibDirs.getLibDirs(); libIt.hasNext(); )\n {\n \t\t\tURL url = TextUtils.makeURLToFile(libIt.next() + File.separator + libFileName);\n exists = TextUtils.URLExists(url, errmsg);\n if (exists) return url;\n if (url != null) searchedURLs.put(url.getFile(), url.getFile());\n }\n \n // check the current working dir\n // (Note that this is not necessarily the same as the mainLibDirectory above)\n // Do NOT search User.getCurrentWorkingDir, as another Electric process can\n // modify that during library read instead, search System.getProperty(\"user.dir\");\n URL thirdURL = TextUtils.makeURLToFile(System.getProperty(\"user.dir\") + File.separator + libFileName);\n if (thirdURL != null && !searchedURLs.containsKey(thirdURL.getFile()))\n {\n exists = TextUtils.URLExists(thirdURL, errmsg);\n if (exists) return thirdURL;\n if (thirdURL != null) searchedURLs.put(thirdURL.getFile(), thirdURL.getFile());\n }\n \n // try the exact path specified in the reference\n if (originalPath != null) {\n \t\tURL url = TextUtils.makeURLToFile(originalPath);\n \tString fileName = url.getFile();\n File libFile = new File(fileName);\n originalPath = libFile.getParent();\n \n URL secondURL = TextUtils.makeURLToFile(originalPath + File.separator + libFileName);\n if (secondURL != null && !searchedURLs.containsKey(secondURL.getFile()))\n {\n exists = TextUtils.URLExists(secondURL, errmsg);\n if (exists) return secondURL;\n if (secondURL != null) searchedURLs.put(secondURL.getFile(), secondURL.getFile());\n }\n }\n \n \t\tif (checkElectricLib)\n {\n // try the Electric library area\n URL url = LibFile.getLibFile(libFileName);\n exists = TextUtils.URLExists(url, errmsg);\n if (exists) return url;\n }\n return null;\n }", "protected String findLibrary(String name) {\r\n\tString s1 = findLibrary0(name, nativePaths);\r\n\tif (s1 == null) {\r\n\t /*\r\n\t * if(WSLauncher.debug) WSLauncher.out.println(\r\n\t * \"looking for library on classpath: \" + s);\r\n\t */\r\n\t s1 = findLibrary0(name, containedPaths);\r\n\t}\r\n\treturn s1;\r\n }", "public void loadingLibrary(String libraryFilename);", "private static InputStream readFile(String path)\n\t{\n\t\tInputStream input = NativeLibraryLoader.class.getResourceAsStream(\"/\" + path);\n\t\tif (input == null)\n\t\t{\n\t\t\tthrow new RuntimeException(\"Unable to find file: \" + path);\n\t\t}\n\t\treturn input;\n\t}", "protected static Library readALibrary(URL fileURL, Library lib, String libName, FileType type, Map<Setting,Object> projectSettings)\n \t{\n \t\t// handle different file types\n \t\tLibraryFiles in;\n \t\tif (type == FileType.ELIB)\n \t\t{\n \t\t\tin = new ELIB();\n \t\t\tif (in.openBinaryInput(fileURL)) return null;\n \t\t} else if (type == FileType.JELIB || type == FileType.DELIB)\n \t\t{\n try {\n LibId libId = lib != null ? lib.getId() : EDatabase.serverDatabase().getIdManager().newLibId(libName);\n in = new JELIB(libId, fileURL, type);\n } catch (IOException e) {\n e.printStackTrace();\n return null;\n }\n \t\t} else if (type == FileType.READABLEDUMP)\n \t\t{\n \t\t\tin = new ReadableDump();\n \t\t\tif (in.openTextInput(fileURL)) return null;\n \t\t} else\n \t\t{\n \t\t\tSystem.out.println(\"Unknown import type: \" + type);\n \t\t\treturn null;\n \t\t}\n \n \t\t// determine whether this is top-level\n \t\tin.topLevelLibrary = false;\n \t\tif (lib == null)\n \t\t{\n \t\t\tmainLibDirectory = TextUtils.getFilePath(fileURL);\n if (type == FileType.DELIB) {\n mainLibDirectory = mainLibDirectory.replaceAll(libName+\".\"+type.getExtensions()[0], \"\");\n }\n \t\t\tin.topLevelLibrary = true;\n \t\t}\n \n \t\tif (lib == null)\n \t\t{\n \t\t\t// create a new library\n \t\t\tlib = Library.newInstance(libName, fileURL);\n \t\t}\n \n \t\tin.lib = lib;\n \n \t\t// read the library\n \t\tboolean error = in.readInputLibrary();\n \t\tin.closeInput();\n \t\tif (error)\n \t\t{\n \t\t\tSystem.out.println(\"Error reading \" + lib);\n \t\t\tif (in.topLevelLibrary) mainLibDirectory = null;\n \t\t\treturn null;\n \t\t}\n // if (CVS.isEnabled()) {\n // CVSLibrary.addLibrary(lib);\n // }\n if (projectSettings != null)\n projectSettings.putAll(in.projectSettings);\n \t\treturn in.lib;\n \t}", "public void readSolventLibrary(String name, String path) {\n String solventLibraryDirectory = System\n .getProperty(\"jing.chem.SolventLibrary.pathName\");\n String libraryFile = solventLibraryDirectory + \"/\" + path\n + \"/Library.txt\";\n try {\n read(libraryFile, name);\n } catch (IOException e) {\n String message = String.format(\n \"RMG cannot read Solvent Library %s: %s\", name,\n e.getMessage());\n throw new RuntimeException(message);\n }\n }", "CharStream findFile(String name) throws IOException,\n IncludeFileNotFound {\n // Look in the directory containing the source file ...\n String dir = \".\"; // default value used e.g. when reading from stdin\n File src = getSource();\n if (src != null && src.getParent() != null) {\n dir = src.getParent();\n }\n String full = dir + \"/\" + name;\n File f = new File(full);\n if (f.exists()) {\n LOG.debug(\"Using local file \" + full);\n return CharStreams.fromFileName(full);\n }\n\n // ... and fall back to the standard library path if not found.\n final URL url = ClassLoader.getSystemResource(\"include/\" + name);\n if (url != null) {\n LOG.debug(\"Using library \" + url);\n // Use fromReader(Reader, String) to catch the file name --- fromStream(InputStream) does not.\n return CharStreams.fromReader(new InputStreamReader(url.openStream()), url.getFile());\n }\n\n throw new IncludeFileNotFound(name, this, getInputStream()); // TODO: check this\n }", "Reader openFile(WoolFileDescription descr) throws IOException;", "public String findLibrary(String libname) {\n \t\tString mappedName = System.mapLibraryName(libname);\n \t\tString path = null;\n \n \t\tif (Debug.DEBUG && Debug.DEBUG_LOADER) {\n \t\t\tDebug.println(\" mapped library name: \" + mappedName);\n \t\t}\n \n \t\tpath = findNativePath(mappedName);\n \n \t\tif (path == null) {\n \t\t\tif (Debug.DEBUG && Debug.DEBUG_LOADER) {\n \t\t\t\tDebug.println(\" library does not exist: \" + mappedName);\n \t\t\t}\n \t\t\tpath = findNativePath(libname);\n \t\t}\n \n \t\tif (Debug.DEBUG && Debug.DEBUG_LOADER) {\n \t\t\tDebug.println(\" returning library: \" + path);\n \t\t}\n \t\treturn path;\n \t}", "protected String findTheLibrary(String BINLIB_PREFIX, String name) {\r\n String result = null; // By default, search the java.library.path for it\r\n \r\n String resourcePath = BINLIB_PREFIX + System.mapLibraryName(name);\r\n \r\n // If it isn't in the map, try to expand to temp and return the full path\r\n // otherwise, remain null so the java.library.path is searched.\r\n \r\n // If it has been expanded already and in the map, return the expanded value\r\n if (binLibPath.get(resourcePath) != null) {\r\n result = (String)binLibPath.get(resourcePath);\r\n } else {\r\n \r\n // See if it's a resource in the JAR that can be extracted\r\n File tempNativeLib = null;\r\n FileOutputStream os = null;\r\n try {\r\n int lastdot = resourcePath.lastIndexOf('.');\r\n String suffix = null;\r\n if (lastdot >= 0) {\r\n suffix = resourcePath.substring(lastdot);\r\n }\r\n InputStream is = this.getClass().getResourceAsStream(\"/\" + resourcePath);\r\n \r\n if ( is != null ) {\r\n tempNativeLib = File.createTempFile(name + \"-\", suffix);\r\n tempNativeLib.deleteOnExit();\r\n os = new FileOutputStream(tempNativeLib);\r\n copy(is, os);\r\n os.close();\r\n VERBOSE(\"Stored native library \" + name + \" at \" + tempNativeLib);\r\n result = tempNativeLib.getPath();\r\n binLibPath.put(resourcePath, result);\r\n } else {\r\n // Library is not in the jar\r\n // Return null by default to search the java.library.path\r\n VERBOSE(\"No native library at \" + resourcePath + \r\n \"java.library.path will be searched instead.\");\r\n }\r\n } catch(Throwable e) {\r\n // Couldn't load the library\r\n // Return null by default to search the java.library.path\r\n WARNING(\"Unable to load native library: \" + e);\r\n }\r\n \r\n }\r\n \r\n return result;\r\n }", "private boolean usesLibrary(String libraryName) {\r\n\t\tboolean usesLibrary = false;\r\n\t\t\r\n\t\ttry {\r\n\t\t\tBufferedReader in = new BufferedReader(new FileReader(filename));\r\n\t\t\tString line = in.readLine();\r\n\t\t\twhile (line != null && !usesLibrary) {\r\n\t\t\t\tif (line.contains(libraryName)) {\r\n\t\t\t\t\tusesLibrary = true;\r\n\t\t\t\t} \r\n\t\t\t\tline = in.readLine();\r\n\t\t\t}\r\n\t\t\tin.close();\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t} catch (IOException e) {\r\n\t\t}\r\n\t\treturn usesLibrary;\t\r\n\t}", "public static Library readLibrary(URL fileURL, String libName, FileType type, boolean quick, Map<Setting,Object> projectSettings) {\n \t\tif (fileURL == null) return null;\n \t\tlong startTime = System.currentTimeMillis();\n errorLogger = ErrorLogger.newInstance(\"Library Read\");\n \n File f = new File(fileURL.getPath());\n \n if (f != null && f.exists()) {\n LibDirs.readLibDirs(f.getParent());\n }\n \t\tLibraryFiles.initializeLibraryInput();\n \n \t\tLibrary lib = null;\n \t\tboolean formerQuiet = isChangeQuiet();\n \t\tif (!formerQuiet) changesQuiet(true);\n \t\ttry {\n \t\t\t// show progress\n \t\t\tif (!quick) startProgressDialog(\"library\", fileURL.getFile());\n \n \t\t\tCell.setAllowCircularLibraryDependences(true);\n \n \t\t\tStringBuffer errmsg = new StringBuffer();\n \t\t\tboolean exists = TextUtils.URLExists(fileURL, errmsg);\n \t\t\tif (!exists)\n \t\t\t{\n \t\t\t\tSystem.out.print(errmsg.toString());\n \t\t\t\t// if doesn't have extension, assume DEFAULTLIB as extension\n \t\t\t\tString fileName = fileURL.toString();\n \t\t\t\tif (fileName.indexOf(\".\") == -1)\n \t\t\t\t{\n \t\t\t\t\tfileURL = TextUtils.makeURLToFile(fileName+\".\"+type.getExtensions()[0]);\n \t\t\t\t\tSystem.out.print(\"Attempting to open \" + fileURL+\"\\n\");\n \t\t\t\t\terrmsg.setLength(0);\n \t\t\t\t\texists = TextUtils.URLExists(fileURL, errmsg);\n \t\t\t\t\tif (!exists && (type != FileType.DELIB)) { // Check if this is a DELIB\n \t\t\t\t\t\tfileURL = TextUtils.makeURLToFile(fileName+\".\"+FileType.DELIB.getExtensions()[0]);\n \t\t\t\t\t\tSystem.out.print(\"Attempting to open \" + fileURL+\"\\n\");\n \t\t\t\t\t\terrmsg.setLength(0);\n \t\t\t\t\t\texists = TextUtils.URLExists(fileURL, errmsg);\n \t\t\t\t\t\tif (exists) { // If it is a DELIB\n \t\t\t\t\t\t\tlibName = null; // Get the library name from fileURL\n \t\t\t\t\t\t\ttype = FileType.DELIB; // Set the type to DELIB\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t\tif (!exists) System.out.print(errmsg.toString());\n \t\t\t\t}\n \t\t\t}\n \t\t\tif (exists)\n \t\t\t{\n \t\t\t\t// get the library name\n \t\t\t\tif (libName == null) libName = TextUtils.getFileNameWithoutExtension(fileURL);\n \t\t\t\tlib = readALibrary(fileURL, null, libName, type, projectSettings);\n \t\t\t}\n \t\t\tif (LibraryFiles.VERBOSE)\n \t\t\t\tSystem.out.println(\"Done reading data for all libraries\");\n \n \t\t\tLibraryFiles.cleanupLibraryInput();\n \t\t\tif (LibraryFiles.VERBOSE)\n \t\t\t\tSystem.out.println(\"Done instantiating data for all libraries\");\n \t\t} finally {\n \t\t\tif (!quick) stopProgressDialog();\n \t\t\tCell.setAllowCircularLibraryDependences(false);\n \t\t}\n \t\tif (!formerQuiet) changesQuiet(formerQuiet);\n \t\tif (lib != null && !quick)\n \t\t{\n \t\t\tlong endTime = System.currentTimeMillis();\n \t\t\tfloat finalTime = (endTime - startTime) / 1000F;\n \t\t\tSystem.out.println(\"Library \" + fileURL.getFile() + \" read, took \" + finalTime + \" seconds\");\n \t\t}\n \n // if CVS is enabled, get status of library\n // if (CVS.isEnabled()) {\n // Update.updateOpenLibraries(Update.UpdateEnum.STATUS);\n // }\n \t\terrorLogger.termLogging(true);\n \n \t\treturn lib;\n \t}", "@SuppressWarnings(\"deprecation\")\r\n\tpublic static URL findResourceInLibraryPath(String resourceName) {\r\n\r\n\t\t// Tries to locate the resource in the current directory\r\n\t\tFile f = new File(resourceName);\r\n\t\ttry {\r\n\t\t\tif (f.exists())\r\n\t\t\t\treturn (f.toURL());\r\n\t\t} catch (MalformedURLException e) {\r\n\t\t}\r\n\r\n\t\t// Tries to locate the resource in the system path\r\n\t\tString libraryPath = System.getProperty(\"java.library.path\");\r\n\t\tString pathElems[] = libraryPath.split(File.pathSeparator);\r\n\t\tfor (int i = 0; i < pathElems.length; i++) {\r\n\t\t\tString res = new StringBuffer().append(pathElems[i])\r\n\t\t\t\t\t.append(File.separator).append(resourceName).toString();\r\n\t\t\tf = new File(res);\r\n\t\t\ttry {\r\n\t\t\t\tif (f.exists())\r\n\t\t\t\t\treturn (f.toURL());\r\n\t\t\t} catch (MalformedURLException e) {\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn null;\r\n\r\n\t}", "private static native boolean nativeLoadLibraryInZipFile(String zipfileName,\n String libraryName,\n long loadAddress,\n LibInfo libInfo);", "public static void load(String name) throws RuntimeException, IOException{\n\t\tif(!name.startsWith(\"/\")) name = \"/\"+name;\n\t\tFile libFile = NativeUtils.getAsLocalFile(name);\n\t\tUtils.sleep(500); // wait a bit to be sure the library is ready to be read\n\t\tSystem.load(libFile.getAbsolutePath());\n\t}", "public static void getALibrary()\n \t{\n \t\tProject.pmActive = true;\n \n \t\t// find a list of files (libraries) in the repository\n \t\tString dirName = Project.getRepositoryLocation();\n \t\tFile dir = new File(dirName);\n \t\tFile [] filesInDir = dir.listFiles();\n \t\tif (filesInDir == null && dirName.length() == 0)\n \t\t{\n \t\t\tJob.getUserInterface().showInformationMessage(\"No repository location is set. Use the 'Project Management' Preferences to set it.\", \"Warning\");\n \t\t\treturn;\n \t\t}\n \n \t\t// choose one and read it in\n \t\tnew LibraryDialog(filesInDir);\n \t}", "String locateFile(String filename) {\n try {\n Process p = Runtime.getRuntime().exec(\"locate \" + filename);\n BufferedReader r = new BufferedReader(new InputStreamReader(p.getInputStream()));\n return r.readLine();\n } catch (IOException ex) {\n Logger.getLogger(SettingsDialog.class.getName()).log(Level.SEVERE, null, ex);\n }\n return null;\n }", "String getLibraryLocation(String library);", "public File getFile(String name) {\r\n\t\ttry {\r\n\t\t\tFile file;\r\n\t\t\tif(name.contains(\".\")) { // there is an extension\r\n\t\t\t\tif(os.equalsIgnoreCase(\"windows 10\")) {\r\n\t\t\t\t\tfile = new File(\"C:\\\\Users\\\\\" + user + \"\\\\AppData\\\\Local\\\\Cyrus\\\\\" + name);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tfile = new File(\"/usr/cyrus/\" + name);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tif(os.equalsIgnoreCase(\"windows 10\")) {\r\n\t\t\t\t\tfile = new File(\"C:\\\\Users\\\\\" + user + \"\\\\AppData\\\\Local\\\\Cyrus\\\\\" + name + \".cy\"); // the default extension\r\n\t\t\t\t} else {\r\n\t\t\t\t\tfile = new File(\"/usr/cyrus/\" + name + \".cy\"); // the default extension\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(file != null) {\r\n\t\t\t\treturn file;\r\n\t\t\t}\r\n\t\t} catch(Exception e) {\r\n\t\t\t\r\n\t\t}\r\n\t\t// TODO check on startup if an error file exists and find a way to deal with it\r\n\t\treturn new File(\"ERROR.cy\"); // this way the program doesn't crash if a file isn't found should never happen\r\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
PosttranslationalUIGets a string of
public String getUIText(String str) { String result = propLang.getProperty(str); if(result == null) { result = propLangDefault.getProperty(str, str); } return result; }
[ "private String getString(String stringToTranslate) {\n\t\treturn parent.getTranslation(stringToTranslate);\n\t}", "public String _gettext() throws Exception{\nif (true) return _toasttextlabel.getText();\n //BA.debugLineNum = 300;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "private static String getString(String label){\n\t\treturn LanguageSelector.getString(label);\n\t}", "@VTID(63)\r\n java.lang.String getText();", "String getLocalization();", "java.lang.String getText3();", "public String getTextOnPage()\n {\n return mainText.getText();\n }", "int getLocalizedText();", "java.lang.String getText4();", "java.lang.String getQueryTranslation();", "public String getTranslatedString() {\n\t\treturn Messages.translate(this);\n\t}", "java.lang.String getUesrIntro();", "public String getStringRep();", "java.lang.String getPrenume();", "@Override\n\tpublic String getValue() {\n\t\treturn _translation.getValue();\n\t}", "String getMsgText();", "private String getTextToSubmit() {\r\n \t// This is just an example of how you may want to split out some of\r\n \t// your larger tasks into smaller chunks to logically break down the\r\n \t// problem into simpler and easier-to-read pieces.\r\n \t\r\n EditText submission = (EditText) findViewById(R.id.submissionText_2);\r\n return submission.getText().toString();\r\n }", "public String getLocalizedString( String name ) {\n\t\tString outString = \"\";\r\n\t\tint id = getResources().getIdentifier( name, \"string\", getPackageName() );\r\n\t\tif ( id == 0 )\r\n\t\t{\r\n\t\t\t// 0 is not a valid resource id\r\n\t\t\tLog.v(\"VrLocale\", name + \" is not a valid resource id!!\" );\r\n\t\t\treturn outString;\r\n\t\t} \r\n\t\tif ( id != 0 ) \r\n\t\t{\r\n\t\t\toutString = getResources().getText( id ).toString();\r\n\t\t\t//Log.v(\"VrLocale\", \"getLocalizedString resolved \" + name + \" to \" + outString);\r\n\t\t}\r\n\t\treturn outString;\r\n\t}", "String getString_lit();" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Packet buffers Reads a fluid ingredient from the packet buffer
public static FluidIngredient read(FriendlyByteBuf buffer) { int count = buffer.readInt(); FluidIngredient[] ingredients = new FluidIngredient[count]; for (int i = 0; i < count; i++) { Fluid fluid = ForgeRegistries.FLUIDS.getValue(new ResourceLocation(buffer.readUtf(32767))); if (fluid == null) { fluid = Fluids.EMPTY; } int amount = buffer.readInt(); ingredients[i] = of(fluid, amount); } // if a single ingredient, do not wrap in compound if (count == 1) { return ingredients[0]; } // compound for anything else return of(ingredients); }
[ "protected void readPayload() throws IOException {\n _data_stream.skipBytes(PushCacheProtocol.COMMAND_LEN);\n int rlen = _data_stream.readInt();\n if (rlen == 0) {\n return;\n }\n _text_buffer = new byte[rlen];\n int sofar = 0;\n int toread = rlen;\n sofar = 0;\n toread = rlen;\n int rv = -1;\n edu.hkust.clap.monitor.Monitor.loopBegin(752);\nwhile (toread > 0) { \nedu.hkust.clap.monitor.Monitor.loopInc(752);\n{\n rv = _in.read(_text_buffer, sofar, toread);\n if (rv < 0) {\n throw new IOException(\"read returned \" + rv);\n }\n sofar += rv;\n toread -= rv;\n }} \nedu.hkust.clap.monitor.Monitor.loopEnd(752);\n\n _data_stream = new DataInputStream(new ByteArrayInputStream(_text_buffer));\n }", "@Nullable\n public abstract ItemStack readItemStackFromBuffer();", "sample.protbuf.Message.Data getData(int index);", "@Override\n protected byte[] readPacket()\n throws IOException\n {\n byte[] packet = _inAdapter.readPacket();\n if(packet != null) {\n _monitor.localBytesMoved(this, packet.length);\n } \n return packet;\n }", "void readInstruction(){\n //read in through reader\n reader.setBuffer();\n //throw read value onto bus\n bus.setVal(reader.getOutput());\n //throw bus value onto register zero\n R0.setVal(bus.getVal()); \n }", "void read(Buffer buffer);", "public abstract RPacketBase readFrom(DataInputCustom din) throws IOException;", "private Buffer readBuffer(InputStream is) throws IOException {\n Buffer b = new Buffer();\n int want = BUFFSIZE;\n while (b.have < want) {\n int got = is.read(b.buff, b.have, want - b.have);\n if (got < 0) {\n b.done = true;\n break;\n }\n b.have += got;\n }\n if (showRead) System.out.println(\"Read buffer at \" + bytesRead + \" len=\" + b.have);\n bytesRead += b.have;\n return b;\n }", "abstract public ByteString getBlocksBuffer();", "private DataInputStream readBuffer( DataInputStream in, int count ) throws IOException{\n byte[] buffer = new byte[ count ];\n int read = 0;\n while( read < count ){\n int input = in.read( buffer, read, count-read );\n if( input < 0 )\n throw new EOFException();\n read += input;\n }\n \n ByteArrayInputStream bin = new ByteArrayInputStream( buffer );\n DataInputStream din = new DataInputStream( bin );\n return din;\n }", "protected final Buffer readPacket() throws SQLException {\n try {\n\n int lengthRead = readFully(this.mysqlInput, this.packetHeaderBuf, 0, 4);\n\n if (lengthRead < 4) {\n forceClose();\n throw new IOException(Messages.getString(\"MysqlIO.1\"));\n }\n\n int packetLength = (this.packetHeaderBuf[0] & 0xff) + ((this.packetHeaderBuf[1] & 0xff) << 8) + ((this.packetHeaderBuf[2] & 0xff) << 16);\n\n if (packetLength > this.maxAllowedPacket) {\n throw new PacketTooBigException(packetLength, this.maxAllowedPacket);\n }\n\n if (this.traceProtocol) {\n StringBuilder traceMessageBuf = new StringBuilder();\n\n traceMessageBuf.append(Messages.getString(\"MysqlIO.2\"));\n traceMessageBuf.append(packetLength);\n traceMessageBuf.append(Messages.getString(\"MysqlIO.3\"));\n traceMessageBuf.append(StringUtils.dumpAsHex(this.packetHeaderBuf, 4));\n\n this.connection.getLog().logTrace(traceMessageBuf.toString());\n }\n\n byte multiPacketSeq = this.packetHeaderBuf[3];\n\n if (!this.packetSequenceReset) {\n if (this.enablePacketDebug && this.checkPacketSequence) {\n checkPacketSequencing(multiPacketSeq);\n }\n } else {\n this.packetSequenceReset = false;\n }\n\n this.readPacketSequence = multiPacketSeq;\n\n // Read data\n byte[] buffer = new byte[packetLength];\n int numBytesRead = readFully(this.mysqlInput, buffer, 0, packetLength);\n\n if (numBytesRead != packetLength) {\n throw new IOException(\"Short read, expected \" + packetLength + \" bytes, only read \" + numBytesRead);\n }\n\n Buffer packet = new Buffer(buffer);\n\n if (this.traceProtocol) {\n StringBuilder traceMessageBuf = new StringBuilder();\n\n traceMessageBuf.append(Messages.getString(\"MysqlIO.4\"));\n traceMessageBuf.append(getPacketDumpToLog(packet, packetLength));\n\n this.connection.getLog().logTrace(traceMessageBuf.toString());\n }\n\n if (this.enablePacketDebug) {\n enqueuePacketForDebugging(false, false, 0, this.packetHeaderBuf, packet);\n }\n\n if (this.connection.getMaintainTimeStats()) {\n this.lastPacketReceivedTimeMs = System.currentTimeMillis();\n }\n\n return packet;\n } catch (IOException ioEx) {\n throw SQLError.createCommunicationsException(this.connection, this.lastPacketSentTimeMs, this.lastPacketReceivedTimeMs, ioEx,\n getExceptionInterceptor());\n } catch (OutOfMemoryError oom) {\n try {\n this.connection.realClose(false, false, true, oom);\n } catch (Exception ex) {\n }\n throw oom;\n }\n }", "private interface Buffer {\n int VERTEX = 0;\n int ELEMENT = 1;\n int GLOBAL_MATRICES = 2;\n int MODEL_MATRIX1 = 3;\n int MODEL_MATRIX2 = 4;\n int MODEL_MATRIX3 = 5;\n int MODEL_MATRIX4 = 6;\n int MODEL_MATRIX5 = 7;\n int MODEL_MATRIX6 = 8;\n int MODEL_MATRIX7 = 9;\n int MODEL_MATRIX8 = 10;\n int MODEL_MATRIX9 = 11;\n int MODEL_MATRIX10 = 12;\n int MODEL_MATRIX11 = 13;\n int MODEL_MATRIX12 = 14;\n int MODEL_MATRIX13 = 15;\n int VERTEX_PYRAMID = 16;\n int ELEMENT_PYRAMID = 17;\n int MATRIX_PYRAMID = 18;\n int MAX = 19;\n }", "public static void decodeIncommingData(IoBuffer in, IoSession session) {\n log.trace(\"Decoding: {}\", in);\n // get decoder state\n DecoderState decoderState = (DecoderState) session.getAttribute(DECODER_STATE_KEY);\n if (decoderState.fin == Byte.MIN_VALUE) {\n byte frameInfo = in.get();\n // get FIN (1 bit)\n //log.debug(\"frameInfo: {}\", Integer.toBinaryString((frameInfo & 0xFF) + 256));\n decoderState.fin = (byte) ((frameInfo >>> 7) & 1);\n log.trace(\"FIN: {}\", decoderState.fin);\n // the next 3 bits are for RSV1-3 (not used here at the moment)\t\t\t\n // get the opcode (4 bits)\n decoderState.opCode = (byte) (frameInfo & 0x0f);\n log.trace(\"Opcode: {}\", decoderState.opCode);\n // opcodes 3-7 and b-f are reserved for non-control frames\n }\n if (decoderState.mask == Byte.MIN_VALUE) {\n byte frameInfo2 = in.get();\n // get mask bit (1 bit)\n decoderState.mask = (byte) ((frameInfo2 >>> 7) & 1);\n log.trace(\"Mask: {}\", decoderState.mask);\n // get payload length (7, 7+16, 7+64 bits)\n decoderState.frameLen = (frameInfo2 & (byte) 0x7F);\n log.trace(\"Payload length: {}\", decoderState.frameLen);\n if (decoderState.frameLen == 126) {\n decoderState.frameLen = in.getUnsignedShort();\n log.trace(\"Payload length updated: {}\", decoderState.frameLen);\n } else if (decoderState.frameLen == 127) {\n long extendedLen = in.getLong();\n if (extendedLen >= Integer.MAX_VALUE) {\n log.error(\"Data frame is too large for this implementation. Length: {}\", extendedLen);\n } else {\n decoderState.frameLen = (int) extendedLen;\n }\n log.trace(\"Payload length updated: {}\", decoderState.frameLen);\n }\n }\n // ensure enough bytes left to fill payload, if masked add 4 additional bytes\n if (decoderState.frameLen + (decoderState.mask == 1 ? 4 : 0) > in.remaining()) {\n log.info(\"Not enough data available to decode, socket may be closed/closing\");\n } else {\n // if the data is masked (xor'd)\n if (decoderState.mask == 1) {\n // get the mask key\n byte maskKey[] = new byte[4];\n for (int i = 0; i < 4; i++) {\n maskKey[i] = in.get();\n }\n /* now un-mask frameLen bytes as per Section 5.3 RFC 6455\n Octet i of the transformed data (\"transformed-octet-i\") is the XOR of\n octet i of the original data (\"original-octet-i\") with octet at index\n i modulo 4 of the masking key (\"masking-key-octet-j\"):\n j = i MOD 4\n transformed-octet-i = original-octet-i XOR masking-key-octet-j\n */\n decoderState.payload = new byte[decoderState.frameLen];\n for (int i = 0; i < decoderState.frameLen; i++) {\n byte maskedByte = in.get();\n decoderState.payload[i] = (byte) (maskedByte ^ maskKey[i % 4]);\n }\n } else {\n decoderState.payload = new byte[decoderState.frameLen];\n in.get(decoderState.payload);\n }\n // if FIN == 0 we have fragments\n if (decoderState.fin == 0) {\n // store the fragment and continue\n IoBuffer fragments = (IoBuffer) session.getAttribute(DECODED_MESSAGE_FRAGMENTS_KEY);\n if (fragments == null) {\n fragments = IoBuffer.allocate(decoderState.frameLen);\n fragments.setAutoExpand(true);\n session.setAttribute(DECODED_MESSAGE_FRAGMENTS_KEY, fragments);\n // store message type since following type may be a continuation\n MessageType messageType = MessageType.CLOSE;\n switch (decoderState.opCode) {\n case 0: // continuation\n messageType = MessageType.CONTINUATION;\n break;\n case 1: // text\n messageType = MessageType.TEXT;\n break;\n case 2: // binary\n messageType = MessageType.BINARY;\n break;\n case 9: // ping\n messageType = MessageType.PING;\n break;\n case 0xa: // pong\n messageType = MessageType.PONG;\n break;\n }\n session.setAttribute(DECODED_MESSAGE_TYPE_KEY, messageType);\n }\n fragments.put(decoderState.payload);\n // remove decoder state\n session.removeAttribute(DECODER_STATE_KEY);\n } else {\n // create a message\n WSMessage message = new WSMessage();\n // check for previously set type from the first fragment (if we have fragments)\n MessageType messageType = (MessageType) session.getAttribute(DECODED_MESSAGE_TYPE_KEY);\n if (messageType == null) {\n switch (decoderState.opCode) {\n case 0: // continuation\n messageType = MessageType.CONTINUATION;\n break;\n case 1: // text\n messageType = MessageType.TEXT;\n break;\n case 2: // binary\n messageType = MessageType.BINARY;\n break;\n case 9: // ping\n messageType = MessageType.PING;\n break;\n case 0xa: // pong\n messageType = MessageType.PONG;\n break;\n case 8: // close\n messageType = MessageType.CLOSE;\n // handler or listener should close upon receipt\n break;\n default:\n // TODO throw ex?\n log.info(\"Unhandled opcode: {}\", decoderState.opCode);\n }\n }\n // set message type\n message.setMessageType(messageType);\n // check for fragments and piece them together, otherwise just send the single completed frame\n IoBuffer fragments = (IoBuffer) session.removeAttribute(DECODED_MESSAGE_FRAGMENTS_KEY);\n if (fragments != null) {\n fragments.put(decoderState.payload);\n fragments.flip();\n message.setPayload(fragments);\n } else {\n // add the payload\n message.addPayload(decoderState.payload);\n }\n // set the message on the session\n session.setAttribute(DECODED_MESSAGE_KEY, message);\n // remove decoder state\n session.removeAttribute(DECODER_STATE_KEY);\n // remove type\n session.removeAttribute(DECODED_MESSAGE_TYPE_KEY);\n }\n }\n }", "public abstract void readTagPayload(DataInput in) throws IOException;", "private void receive()\n {\n try \n {\n\t\t\tsocket.receive(packet);\n\t\t}\n catch (IOException e)\n {\n\t\t\te.printStackTrace();\n\t\t}\n receivedData = packet.getData();\n packet.setData(buffer);\n vision.setData(receivedData);\n }", "public interface Packet {\n /**\n * Read body from byte buffer\n * @param bb \n * @throws java.lang.Exception \n */\n void readBody(ByteBuf bb, TranscoderContext context) throws Exception;\n \n /**\n * Write body to byte buffer\n * @param bb \n * @param context \n * @throws java.lang.Exception \n */\n void writeBody(ByteBuf bb, TranscoderContext context) throws Exception;\n \n /**\n * Calculate and return body size in bytes\n * @param context\n * @return \n */\n int calculateBodyLength(TranscoderContext context);\n \n /**\n * Calculate and set field with body length\n * @param context\n */\n void calculateAndSetBodyLength(TranscoderContext context);\n \n /**\n * Get body length from field\n * @return \n */\n int getBodyLength();\n\n /**\n * Get sequence number field value\n * @return \n */\n int getSequenceNumber();\n \n /**\n * Set sequence number field value\n * @param sequenceNumber \n */\n void setSequenceNumber(int sequenceNumber); \n}", "private synchronized void readBuffer() {\n int byteCount = 0;\n short[] dataOut = new short[((chars.length) * 2) + 40];\n \n //get the current AID\n dataOut[byteCount++] = rw.getAID();\n \n //convert the current cursor position to 14-bit addressing\n dataOut[byteCount++] = addrTable[(rw.getCursorPosition() >> 6) & 0x3F];\n dataOut[byteCount++] = addrTable[rw.getCursorPosition() & 0x3F];\n \n //iterate through the screen buffer, if a position\n //contains an FA send it instead of the character.\n for (int i = 0; i < (chars.length); i++) {\n RW3270Char currChar = (RW3270Char) chars[i];\n \n if (currChar.isStartField()) {\n dataOut[byteCount++] = ORDER_SF;\n dataOut[byteCount++] = currChar.getFieldAttribute();\n } else {\n dataOut[byteCount++] = (short) asc2ebc[currChar.getChar()];\n }\n }\n \n try {\n rw.getTelnet().sendData(dataOut, byteCount);\n } catch (IOException e) {\n }\n }", "private void fillByteBufferFromIrods() throws IOException {\n\n\t\tbyte[] b = new byte[bufferSizeForIrods];\n\n\t\tint length = irodsFileInputStream.read(b);\n\n\t\tif (length == -1) {\n\t\t\tbyteArrayInputStream = null;\n\t\t\tdone = true;\n\t\t} else {\n\t\t\tbyteArrayInputStream = new ByteArrayInputStream(b, 0, length);\n\t\t}\n\t}", "@Override\n\tpublic void onDataPacket(net.minecraft.network.NetworkManager net, net.minecraft.network.play.server.SPacketUpdateTileEntity pkt)\n\t{\n\t\tthis.readFromNBT(pkt.getNbtCompound());\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the value of the 'Compare And Put' attribute. If the meaning of the 'Compare And Put' attribute isn't clear, there really should be more of a description here...
boolean isCompareAndPut();
[ "public String getCompare() {\r\n\t\treturn compare; \r\n\t}", "public String getValueWithWhichCompare() {\n return valueWithWhichCompare;\n }", "public String getValueToCompare() {\n return valueToCompare;\n }", "java.lang.String getCompare();", "public String getCompareString() {\r\n\t\t\treturn compareString;\r\n\t\t}", "protected String getComparisonOperation(){\n\t\treturn comparison_todo;\n\t}", "Quantity getComparisonValue();", "public boolean allSameValue(String ofAttribute);", "public int returnCompareValue(){\r\n return this.compareValue;\r\n }", "public String getCompare() {\n\t\treturn this.resultadoComparacion;\n\t}", "public Object getSharedValue(String ofAttribute);", "String getEqual();", "protected abstract int compareOnAttribute( U obj );", "public boolean isPutOrGet() {\r\n return putOrGet;\r\n }", "public String createCompareStringRepresentation() {\n StringBuilder sb = new StringBuilder();\n for (String attributeKey : CORE_ATTRIBUTES) {\n if (sb.length() > 0) {\n sb.append(\":\");\n }\n String value = get(attributeKey);\n sb.append(value == null ? \"\" : value);\n }\n return sb.toString();\n }", "@Test\n public void fieldCompare() throws Exception {\n Document doc = new Document();\n DocumentBuilder builder = new DocumentBuilder(doc);\n\n FieldCompare field = (FieldCompare) builder.insertField(FieldType.FIELD_COMPARE, true);\n field.setLeftExpression(\"3\");\n field.setComparisonOperator(\"<\");\n field.setRightExpression(\"2\");\n field.update();\n\n // The COMPARE field displays a \"0\" or a \"1\", depending on its statement's truth.\n // The result of this statement is false so that this field will display a \"0\".\n Assert.assertEquals(\" COMPARE 3 < 2\", field.getFieldCode());\n Assert.assertEquals(\"0\", field.getResult());\n\n builder.writeln();\n\n field = (FieldCompare) builder.insertField(FieldType.FIELD_COMPARE, true);\n field.setLeftExpression(\"5\");\n field.setComparisonOperator(\"=\");\n field.setRightExpression(\"2 + 3\");\n field.update();\n\n // This field displays a \"1\" since the statement is true.\n Assert.assertEquals(\" COMPARE 5 = \\\"2 + 3\\\"\", field.getFieldCode());\n Assert.assertEquals(\"1\", field.getResult());\n\n doc.updateFields();\n doc.save(getArtifactsDir() + \"Field.COMPARE.docx\");\n //ExEnd\n\n doc = new Document(getArtifactsDir() + \"Field.COMPARE.docx\");\n\n field = (FieldCompare) doc.getRange().getFields().get(0);\n\n TestUtil.verifyField(FieldType.FIELD_COMPARE, \" COMPARE 3 < 2\", \"0\", field);\n Assert.assertEquals(\"3\", field.getLeftExpression());\n Assert.assertEquals(\"<\", field.getComparisonOperator());\n Assert.assertEquals(\"2\", field.getRightExpression());\n\n field = (FieldCompare) doc.getRange().getFields().get(1);\n\n TestUtil.verifyField(FieldType.FIELD_COMPARE, \" COMPARE 5 = \\\"2 + 3\\\"\", \"1\", field);\n Assert.assertEquals(\"5\", field.getLeftExpression());\n Assert.assertEquals(\"=\", field.getComparisonOperator());\n Assert.assertEquals(\"\\\"2 + 3\\\"\", field.getRightExpression());\n }", "String attributeValue();", "public java.lang.String getIsComparation()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ISCOMPARATION$2);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "final public void Compare() throws ParseException {\r\n jj_consume_token(COMPARE);\r\n jj_consume_token(EQUAL);\r\n YesNo();\r\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Run the char hw1_1000LOC21method4(short,String,hw1_1000LOC16,char,byte) method test.
@Test public void testHw1_1000LOC21method4_1() throws Exception { short var0 = (short) 1; String var1 = ""; hw1_1000LOC16 var2 = new hw1_1000LOC16(); char var3 = ''; byte var4 = (byte) 1; char result = hw1_1000LOC21.hw1_1000LOC21method4(var0, var1, var2, var3, var4); // add additional test code here assertEquals('', result); }
[ "@Test\n\tpublic void testHw1_1000LOC21method4_4()\n\t\tthrows Exception {\n\t\tshort var0 = (short) 1;\n\t\tString var1 = \"\";\n\t\thw1_1000LOC16 var2 = new hw1_1000LOC16();\n\t\tchar var3 = '\u0001';\n\t\tbyte var4 = (byte) 1;\n\n\t\tchar result = hw1_1000LOC21.hw1_1000LOC21method4(var0, var1, var2, var3, var4);\n\n\t\t// add additional test code here\n\t\tassertEquals('\u0001', result);\n\t}", "@Test\n\tpublic void testHw1_1000LOC21method4_2()\n\t\tthrows Exception {\n\t\tshort var0 = (short) 1;\n\t\tString var1 = \"\";\n\t\thw1_1000LOC16 var2 = new hw1_1000LOC16();\n\t\tchar var3 = '\u0001';\n\t\tbyte var4 = (byte) 1;\n\n\t\tchar result = hw1_1000LOC21.hw1_1000LOC21method4(var0, var1, var2, var3, var4);\n\n\t\t// add additional test code here\n\t\tassertEquals('\u0001', result);\n\t}", "@Test\n\tpublic void testHw1_1000LOC21method4_3()\n\t\tthrows Exception {\n\t\tshort var0 = (short) 1;\n\t\tString var1 = \"\";\n\t\thw1_1000LOC16 var2 = new hw1_1000LOC16();\n\t\tchar var3 = '\u0001';\n\t\tbyte var4 = (byte) 1;\n\n\t\tchar result = hw1_1000LOC21.hw1_1000LOC21method4(var0, var1, var2, var3, var4);\n\n\t\t// add additional test code here\n\t\tassertEquals('\u0001', result);\n\t}", "@Test\n\tpublic void testHw1_1000LOC6method4_1()\n\t\tthrows Exception {\n\t\tshort var0 = (short) 1;\n\t\tchar var1 = '\u0001';\n\t\thw1_1000LOC18 var2 = new hw1_1000LOC18();\n\t\tshort var3 = (short) 1;\n\t\thw1_1000LOC6 var4 = new hw1_1000LOC6();\n\t\tint var5 = 1;\n\t\tchar var6 = '\u0001';\n\n\t\tchar result = hw1_1000LOC6.hw1_1000LOC6method4(var0, var1, var2, var3, var4, var5, var6);\n\n\t\t// add additional test code here\n\t\tassertEquals('\u0001', result);\n\t}", "@Test\n\tpublic void testHw1_1000LOC6method4_2()\n\t\tthrows Exception {\n\t\tshort var0 = (short) 1;\n\t\tchar var1 = '\u0001';\n\t\thw1_1000LOC18 var2 = new hw1_1000LOC18();\n\t\tshort var3 = (short) 1;\n\t\thw1_1000LOC6 var4 = new hw1_1000LOC6();\n\t\tint var5 = 1;\n\t\tchar var6 = '\u0001';\n\n\t\tchar result = hw1_1000LOC6.hw1_1000LOC6method4(var0, var1, var2, var3, var4, var5, var6);\n\n\t\t// add additional test code here\n\t\tassertEquals('\u0001', result);\n\t}", "@Test\n\tpublic void testHw1_1000LOC19method4_1()\n\t\tthrows Exception {\n\t\thw1_1000LOC19 fixture = new hw1_1000LOC19();\n\t\tfixture.f0 = new short[] {};\n\t\tString var0 = \"\";\n\t\tbyte var1 = (byte) 1;\n\t\tshort var2 = (short) 1;\n\t\tshort var3 = (short) 1;\n\n\t\tString result = fixture.hw1_1000LOC19method4(var0, var1, var2, var3);\n\n\t\t// add additional test code here\n\t\tassertEquals(\"\", result);\n\t}", "@Test\n\tpublic void testHw1_1000LOC21method1_1()\n\t\tthrows Exception {\n\t\thw1_1000LOC24 var0 = new hw1_1000LOC24();\n\t\tbyte var1 = (byte) 1;\n\t\tfloat var2 = 1.0f;\n\t\tfloat var3 = 1.0f;\n\t\tbyte var4 = (byte) 1;\n\t\tint var5 = 1;\n\t\tint var6 = 1;\n\t\tchar var7 = '\u0001';\n\t\tlong var8 = 1L;\n\n\t\tchar result = hw1_1000LOC21.hw1_1000LOC21method1(var0, var1, var2, var3, var4, var5, var6, var7, var8);\n\n\t\t// add additional test code here\n\t\tassertEquals('\u0001', result);\n\t}", "@Test\n\tpublic void testHw1_1000LOC21method8_1()\n\t\tthrows Exception {\n\t\thw1_1000LOC21 fixture = new hw1_1000LOC21();\n\t\tfixture.f1 = \"\";\n\t\tfixture.f0 = new hw1_1000LOC27();\n\t\tchar var0 = '\u0001';\n\t\tlong var1 = 1L;\n\t\tshort var2 = (short) 1;\n\n\t\tshort result = fixture.hw1_1000LOC21method8(var0, var1, var2);\n\n\t\t// add additional test code here\n\t\tassertEquals((short) 1, result);\n\t}", "@Test\n\tpublic void testHw1_1000LOC21method10_4()\n\t\tthrows Exception {\n\t\thw1_1000LOC21 fixture = new hw1_1000LOC21();\n\t\tfixture.f1 = \"\";\n\t\tfixture.f0 = new hw1_1000LOC27();\n\t\tbyte var0 = (byte) 1;\n\t\tshort var1 = (short) 1;\n\t\tfloat var2 = 1.0f;\n\t\thw1_1000LOC23 var3 = new hw1_1000LOC23();\n\t\thw1_1000LOC14 var4 = new hw1_1000LOC14();\n\t\tlong var5 = 1L;\n\t\tdouble var6 = 1.0;\n\n\t\tshort result = fixture.hw1_1000LOC21method10(var0, var1, var2, var3, var4, var5, var6);\n\n\t\t// add additional test code here\n\t\tassertEquals((short) 1, result);\n\t}", "@Test\n\tpublic void testHw1_1000LOC21method1_2()\n\t\tthrows Exception {\n\t\thw1_1000LOC24 var0 = new hw1_1000LOC24();\n\t\tbyte var1 = (byte) 1;\n\t\tfloat var2 = 1.0f;\n\t\tfloat var3 = 1.0f;\n\t\tbyte var4 = (byte) 1;\n\t\tint var5 = 1;\n\t\tint var6 = 1;\n\t\tchar var7 = '\u0001';\n\t\tlong var8 = 1L;\n\n\t\tchar result = hw1_1000LOC21.hw1_1000LOC21method1(var0, var1, var2, var3, var4, var5, var6, var7, var8);\n\n\t\t// add additional test code here\n\t\tassertEquals('\u0001', result);\n\t}", "@Test\n\tpublic void testHw1_1000LOC21method12_1()\n\t\tthrows Exception {\n\t\thw1_1000LOC21 fixture = new hw1_1000LOC21();\n\t\tfixture.f1 = \"\";\n\t\tfixture.f0 = new hw1_1000LOC27();\n\t\tbyte var0 = (byte) 1;\n\t\tString var1 = \"\";\n\t\tchar var2 = '\u0001';\n\n\t\tint result = fixture.hw1_1000LOC21method12(var0, var1, var2);\n\n\t\t// add additional test code here\n\t\tassertEquals(82, result);\n\t}", "@Test\n\tpublic void testHw1_1000LOC19method1_1()\n\t\tthrows Exception {\n\t\thw1_1000LOC19 fixture = new hw1_1000LOC19();\n\t\tfixture.f0 = new short[] {};\n\t\tshort var0 = (short) 1;\n\t\tlong var1 = 1L;\n\t\tint var2 = 1;\n\t\tfloat var3 = 1.0f;\n\n\t\tchar result = fixture.hw1_1000LOC19method1(var0, var1, var2, var3);\n\n\t\t// add additional test code here\n\t\tassertEquals('u', result);\n\t}", "@Test\n\tpublic void testHw1_1000LOC21method8_2()\n\t\tthrows Exception {\n\t\thw1_1000LOC21 fixture = new hw1_1000LOC21();\n\t\tfixture.f1 = \"\";\n\t\tfixture.f0 = new hw1_1000LOC27();\n\t\tchar var0 = '\u0001';\n\t\tlong var1 = 1L;\n\t\tshort var2 = (short) 1;\n\n\t\tshort result = fixture.hw1_1000LOC21method8(var0, var1, var2);\n\n\t\t// add additional test code here\n\t\tassertEquals((short) 1, result);\n\t}", "@Test\n\tpublic void testHw1_1000LOC21method10_1()\n\t\tthrows Exception {\n\t\thw1_1000LOC21 fixture = new hw1_1000LOC21();\n\t\tfixture.f1 = \"\";\n\t\tfixture.f0 = new hw1_1000LOC27();\n\t\tbyte var0 = (byte) 1;\n\t\tshort var1 = (short) 1;\n\t\tfloat var2 = 1.0f;\n\t\thw1_1000LOC23 var3 = new hw1_1000LOC23();\n\t\thw1_1000LOC14 var4 = new hw1_1000LOC14();\n\t\tlong var5 = 1L;\n\t\tdouble var6 = 1.0;\n\n\t\tshort result = fixture.hw1_1000LOC21method10(var0, var1, var2, var3, var4, var5, var6);\n\n\t\t// add additional test code here\n\t\tassertEquals((short) 1, result);\n\t}", "@Test\n\tpublic void testHw1_1000LOC19method11_1()\n\t\tthrows Exception {\n\t\tint var0 = 1;\n\t\tchar var1 = '\u0001';\n\t\thw1_1000LOC34 var2 = new hw1_1000LOC34();\n\n\t\tshort result = hw1_1000LOC19.hw1_1000LOC19method11(var0, var1, var2);\n\n\t\t// add additional test code here\n\t\tassertEquals((short) 7947, result);\n\t}", "@Test\n\tpublic void testHw1_1000LOC21method0_1()\n\t\tthrows Exception {\n\t\tbyte var0 = (byte) 1;\n\t\tString var1 = \"\";\n\t\tlong var2 = 1L;\n\n\t\tString result = hw1_1000LOC21.hw1_1000LOC21method0(var0, var1, var2);\n\n\t\t// add additional test code here\n\t\tassertEquals(\"\", result);\n\t}", "@Test\n\tpublic void testHw1_1000LOC21method12_3()\n\t\tthrows Exception {\n\t\thw1_1000LOC21 fixture = new hw1_1000LOC21();\n\t\tfixture.f1 = \"\";\n\t\tfixture.f0 = new hw1_1000LOC27();\n\t\tbyte var0 = (byte) 1;\n\t\tString var1 = \"\";\n\t\tchar var2 = '\u0001';\n\n\t\tint result = fixture.hw1_1000LOC21method12(var0, var1, var2);\n\n\t\t// add additional test code here\n\t\tassertEquals(82, result);\n\t}", "@Test\n\tpublic void testHw1_1000LOC21method13_1()\n\t\tthrows Exception {\n\t\thw1_1000LOC21 fixture = new hw1_1000LOC21();\n\t\tfixture.f1 = \"\";\n\t\tfixture.f0 = new hw1_1000LOC27();\n\t\tint var0 = 1;\n\t\tdouble var1 = 1.0;\n\t\tdouble var2 = 1.0;\n\t\tlong var3 = 1L;\n\t\tshort var4 = (short) 1;\n\t\tlong var5 = 1L;\n\t\thw1_1000LOC29 var6 = new hw1_1000LOC29();\n\t\tbyte var7 = (byte) 1;\n\n\t\tString result = fixture.hw1_1000LOC21method13(var0, var1, var2, var3, var4, var5, var6, var7);\n\n\t\t// add additional test code here\n\t\tassertEquals(\"kdwhztcusdujeqopbdosylafzbrnoluwicowstbsungwdrvusatj\", result);\n\t}", "@Test\n\tpublic void testHw1_500LOC34method1_1()\n\t\tthrows Exception {\n\t\thw1_500LOC34 var0 = new hw1_500LOC34();\n\t\tchar var1 = '\u0001';\n\t\thw1_500LOC19 var2 = new hw1_500LOC19();\n\n\t\tString result = hw1_500LOC34.hw1_500LOC34method1(var0, var1, var2);\n\n\t\t// add additional test code here\n\t\tassertEquals(\"sixcxjsrvnzlkhpntietfgsfnkmyiayqqxbhuetahhvznxwfhibhfh\", result);\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Cleanup method invoked when all tasks for the current bundle have completed.
@Override protected void cleanup() { bundle.setParameter(BundleParameter.NODE_BUNDLE_ELAPSED_PARAM, accumulatedElapsed.get()); this.dataProvider = null; usedClassLoader.dispose(); usedClassLoader = null; //taskNotificationDispatcher.setBundle(this.bundle = null); this.taskList = null; this.uuidList = null; setJobCancelled(false); this.taskWrapperList = null; timeoutHandler.clear(); }
[ "public void cleanupMultiTask() {\n\t\tjobReturnCode = RC_SUCCESS;\n\t\tsetJobStatus(STATUS_IDLE);\n\t\tmFeedFiles = null;\n\t\treportWarnList = null;\n\t\treportErrorList = null;\n\t\tlockedAssetList = null;\n\t}", "public static void cleanupTasks()\n {\n TaskReaper.getReaper().clear();\n }", "private void performCleanup() {\n LOGGER.debug(\"Cleaned up {} ingest(s)\", IngestInformationServiceLocal.getSingleton().cleanup(AuthorizationContext.factorySystemContext()));\n LOGGER.debug(\"Cleaned up {} download(s)\", DownloadInformationServiceLocal.getSingleton().cleanup(AuthorizationContext.factorySystemContext()));\n }", "protected void cleanup() {\n }", "private void cleanup()\n\t{\n\t}", "protected void cleanup() {\n finished = true;\n thread = null;\n }", "public void cleanup() {\n \n long startTime = System.currentTimeMillis();\n \n purgeOldJobRecords();\n cleanOrphanedArchiveRecords();\n cleanOrphanedFileRecords();\n \n LOGGER.info(\"Datasource cleanup completed in [ \"\n + (System.currentTimeMillis() - startTime)\n + \" ] ms.\");\n }", "public void cleanUp() {\n this.handler.complete();\n for (final Node node : this.toBeDeleted) {\n node.remove();\n }\n }", "private void cleanup() throws RemoteException {\n log.info(\"GP run complete.\");\n running = false;\n\n log.info(\"Releasing clients.\");\n for (IClient client : clients)\n client.release();\n clients.clear();\n\n writeCheckpoint(\"final_generation\");\n }", "protected void handleCleanup() {\r\n\t\t// Implement in subclass\r\n\t}", "public void teardown() {\r\n deleteImages();\r\n deleteWorkingDir();\r\n }", "public static void clearBundle() {\r\n delegate.clearBundle();\r\n }", "public void cleanTasks() {\r\n this.tasksList.clear();\r\n }", "@Override\r\n public void cleanup() {\r\n logger.info(\"Cleaning {}\", toString());\r\n\r\n if (uncalledRevertFunctions != null) {\r\n while (uncalledRevertFunctions.size() > 0) {\r\n Consumer<T> fn = uncalledRevertFunctions.getFirst();\r\n\r\n try {\r\n fn.accept(data);\r\n } catch (Throwable t) {\r\n // Catch failures, and suppress them during cleanup\r\n logger.debug(\"Cleanup error {}\", t.getMessage());\r\n }\r\n uncalledRevertFunctions.removeFirst();\r\n }\r\n\r\n uncalledRevertFunctions = null;\r\n }\r\n }", "public void startCleanup() {\n \t\tgetServer().getScheduler().scheduleSyncRepeatingTask(this,\n \t\t\t\tnew Runnable() {\n \t\t\t\t\t@Override\n \t\t\t\t\tpublic void run() {\n \t\t\t\t\t\t// Run the cleanup\n \t\t\t\t\t\tcleanup();\n \t\t\t\t\t}\n \t\t\t\t}, RepeatTime, RepeatTime);\n \t}", "@Override\n public void cleanup(TreeLogger logger) {\n awaitUnitCacheMapLoad();\n\n if (backgroundService.isShutdown()) {\n return;\n }\n boolean shouldRotate = addedSinceLastCleanup > 0;\n logger.log(TreeLogger.TRACE, \"Added \" + addedSinceLastCleanup +\n \" units to cache since last cleanup.\");\n addedSinceLastCleanup = 0;\n try {\n File[] cacheFiles = getCacheFiles(cacheDirectory, true);\n if (cacheFiles.length < CACHE_FILE_THRESHOLD) {\n if (shouldRotate) {\n backgroundService.execute(rotateCacheFilesTask);\n }\n return;\n }\n\n // Check to see if the previous purge task finished.\n boolean inProgress = purgeInProgress.getAndSet(true);\n if (inProgress) {\n try {\n purgeTaskStatus.get(0, TimeUnit.NANOSECONDS);\n } catch (InterruptedException ex) {\n Thread.currentThread().interrupt();\n } catch (TimeoutException ex) {\n // purge is currently in progress.\n return;\n }\n }\n\n /*\n * Resend all units read in from the in-memory cache to the background\n * thread. They will be re-written out and the old cache files removed.\n */\n synchronized (unitMap) {\n for (UnitCacheEntry unitCacheEntry : unitMap.values()) {\n if (unitCacheEntry.getOrigin() == UnitOrigin.PERSISTENT) {\n addImpl(unitCacheEntry);\n }\n }\n }\n\n purgeTaskStatus = backgroundService.submit(purgeOldCacheFilesTask, Boolean.TRUE);\n\n } catch (ExecutionException ex) {\n throw new InternalCompilerException(\"Error purging cache\", ex);\n } catch (RejectedExecutionException ex) {\n // Cache background thread is not running - ignore\n }\n }", "void cleanUpCanceledTask();", "public void cleanUp() {\n releaseHost();\n mPackageStatusNotifier.removeListener(mAppStatusListener);\n }", "public void cleanup() {\n sendBuffer(baos);\n shutdown();\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the headerName value for this SmmCriteria.
public java.lang.String getHeaderName() { return headerName; }
[ "public String getHeaderName() {\n\t\treturn this.headerName;\n\t}", "String getHeaderName();", "public java.lang.String getSenderHeaderName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SENDERHEADERNAME$24, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "private String getHeaderName(String headerName, AnnotationNode annotationNode) {\n if (annotationNode.annotValue().isPresent()) {\n MappingConstructorExpressionNode fieldNode = annotationNode.annotValue().get();\n SeparatedNodeList<MappingFieldNode> fields = fieldNode.fields();\n for (MappingFieldNode field: fields) {\n SpecificFieldNode sField = (SpecificFieldNode) field;\n if (sField.fieldName().toString().trim().equals(\"name\") && sField.valueExpr().isPresent()) {\n headerName = sField.valueExpr().get().toString().trim().replaceAll(\"\\\"\", \"\");\n }\n }\n }\n return headerName;\n }", "private String getHeaderName(String requestHeader) {\n return requestHeader.substring(0, requestHeader.indexOf(':')).trim();\n }", "public Bmv2ModelHeader header(String name) {\n return headers.get(name);\n }", "public String getHeader() {\n return header;\n }", "public org.apache.xmlbeans.XmlString xgetSenderHeaderName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(SENDERHEADERNAME$24, 0);\n return target;\n }\n }", "public String getHeaderTitle() throws Exception {\n\t\tString headername = null;\n\t\ttry {\n\t\t\tlogInstruction(\"LOG INSTRUCTION: GETTING THE HEADER TITLE\");\n\t\t\tframeSwitch.switchToFrameContent();\n\t\t\tuiDriver.waitToBeDisplayed(lblheader, waitTime);\n\t\t\theadername = lblheader.getText().trim();\n\n\t\t} catch (Exception e) {\n\t\t\tthrow new Exception(\"ISSUE IN GETTING 'header' TITLE\"\n\t\t\t\t\t+ \"\\nMETHOD:getHeaderTitle\\n\" + e.getLocalizedMessage());\n\t\t}\n\n\t\treturn headername;\n\t}", "public String getPropertyName(){\n return SimpleTableField.mapPropName(this.columnName);\n }", "public java.lang.String getHeaderClass() {\n if (null != this.headerClass) {\n return this.headerClass;\n }\n ValueBinding _vb = getValueBinding(\"headerClass\");\n if (_vb != null) {\n return (java.lang.String) _vb.getValue(getFacesContext());\n } else {\n return null;\n }\n }", "java.lang.String getHeader();", "String getHeader(String name) {\n return headers.get(name);\n }", "public String getHeaderValue()\n {\n return headerValue;\n }", "public java.lang.String getHeaderValue() {\r\n return headerValue;\r\n }", "public Header getRequestHeader(String headerName) {\n if (headerName == null) {\n return null;\n } else {\n return getRequestHeaderGroup().getCondensedHeader(headerName);\n }\n }", "public String getColumnName() {\r\n return dataBinder.getColumnName();\r\n }", "public java.lang.String getFieldName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(FIELDNAME$0, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "public String getHeaderPathName() {\n\treturn headerPathName;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
1. TODO: Invoke the databaseusing class that you want to test, passing to it the test database via testDb.getDataSource() or testDb.getSqlConnection() ex.: new MyUserDao(testDb.getDataSource()).save(new User("Jakub", "Holy")); 2. Verify the results ... Here we use a checker to check the content of the my_test_table loaded from the EmbeddedDbTesterRuleTestdata.xml
@Test public void should_execute_onSetup_automatically() throws Exception { testDb.createCheckerForSelect("select some_text from my_test_schema.my_test_table") .withErrorMessage("No data found => onSetup wasn't executed as expected") .assertRowCount(1) .assertNext("EmbeddedDbTesterRuleTest data"); }
[ "@Test\n public void testDatabase() {\n // Initializes Test Data\n Account mainTestUser = new Account(\"User\");\n Group mainTestGroup = new Group(mainTestUser, \"TestGroup\");\n\n // Begins Testing\n Database testData = new Database();\n testData.addGroup(mainTestGroup);\n testData.addUser(mainTestUser);\n\n // Checks Results; Ensures that each object is in the Database\n assertNotEquals(-1, testData.returnAccountList().indexOf(mainTestUser));\n assertNotEquals(-1, testData.returnGroupList().indexOf(mainTestGroup));\n }", "@Test\n public void testBuildQuery() {\n System.out.println(\"buildQuery\");\n String[] row = null;\n String tableName = \"\";\n DBManager instance = null;\n String expResult = \"\";\n String result = instance.buildQuery(row, tableName);\n assertEquals(expResult, result);\n fail(\"The test case is a prototype.\");\n }", "@Test\n public void testCreateDatabaseFile() throws Exception {\n File databaseFile = new File(folder.getRoot(), \"sample.db\");\n Database database = new Database(databaseFile);\n\n // ensure that file is created\n assertTrue(databaseFile.exists());\n\n // ensure that simple select works without any table\n RowIterator it = database.query(\"SELECT 'test' as test\");\n assertTrue(it.hasNext());\n String[] row = it.next();\n assertEquals(1, row.length);\n assertEquals(\"test\", row[0]);\n assertFalse(it.hasNext());\n\n it.close();\n database.close();\n }", "@Test\n public void testMain() {\n // Get instance of ConnectionManager and inject in DAOHelper\n DAOHelper.setConnectionManager(ConnectionManagerImpl.getInstance());\n // Set Tables to create: Tablename = Classname, primary key name have to be \"id\"\n DAOHelper.setTableClasses(new Class<?>[]{Person.class});\n try {\n // Create Database and Tables (determine database type and name)\n DAOHelper.createDatabaseAndTables(DAOHelper.DATABASE.HSQLDB, \"crm\");\n } catch (SQLException ex) {\n Logger.getLogger(JdbcBaseDao.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n PersonServiceImpl psi = new PersonServiceImpl();\n try {\n Person p = new Person(-1, \"Hans\", \"Peter\", \"noplan@gmx.net\");\n psi.insertPerson(p);\n p = new Person(-1, \"Martin\", \"Six\", \"noplan@gmx.net\");\n psi.insertPerson(p);\n List<Person> pL = psi.getAllPersons();\n assertEquals(pL.get(1), p);\n assertEquals(psi.findPersonById(1), p);\n psi.deletePerson(p);\n pL = psi.getAllPersons();\n if (pL.isEmpty()) {\n System.out.println(\"Keine Personen vorhanden\");\n } else {\n System.out.println(\"Personen vorhanden\");\n }\n } catch (DAOSysException ex) {\n Logger.getLogger(PersonJdbcDao.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "@BeforeClass\r\n public static void setUp() {\n \tdb = new EmbeddedDatabaseBuilder()\r\n \t\t.setType(EmbeddedDatabaseType.H2)\r\n \t\t.addScript(\"create-db.sql\")\r\n \t\t.addScript(\"insert-db.sql\")\r\n \t\t.build();\r\n }", "@Test\n public void testAddAndReadUserObjects() {\n try {\n User user1 = new User(\"JOHN\", \"fake\", \"hello@example.com\",\n \"Hank\", \"Henry\", 'm');\n User user2 = new User(\"JACK\", \"fake3\", \"hello1@example.com\",\n \"Habk\", \"Henry\", 'm');\n User user3 = new User(\"JILL\", \"fake1\", \"hello3@example.com\",\n \"Ha4k\", \"Henry\", 'f');\n UserDAO userDAO = new UserDAO();\n userDAO.add(user1);\n userDAO.add(user2);\n userDAO.add(user3);\n\n User user4 = userDAO.read(user1.getUserName());\n User user5 = userDAO.read(user2.getUserName());\n User user6 = userDAO.read(user3.getUserName());\n\n /* TO TEST THE BAD USERNAME */\n try {\n User invalidUserNmae = userDAO.read(\"fakeUsername\");\n } catch (DatabaseException e) {\n Assert.assertEquals(\"dao.DatabaseException: Username not in database\", e.toString());\n }\n\n Assert.assertEquals(user1.getUserName(), user4.getUserName());\n Assert.assertEquals(user2.getUserName(), user5.getUserName());\n Assert.assertEquals(user3.getUserName(), user6.getUserName());\n Assert.assertEquals(user1.getPassword(), user4.getPassword());\n Assert.assertEquals(user2.getPassword(), user5.getPassword());\n Assert.assertEquals(user3.getPassword(), user6.getPassword());\n Assert.assertEquals(user1.getFirstName(), user4.getFirstName());\n Assert.assertEquals(user2.getFirstName(), user5.getFirstName());\n Assert.assertEquals(user3.getFirstName(), user6.getFirstName());\n Assert.assertEquals(user1.getLastName(), user4.getLastName());\n Assert.assertEquals(user2.getLastName(), user5.getLastName());\n Assert.assertEquals(user3.getLastName(), user6.getLastName());\n Assert.assertEquals(user1.getEmail(), user4.getEmail());\n Assert.assertEquals(user2.getEmail(), user5.getEmail());\n Assert.assertEquals(user3.getEmail(), user6.getEmail());\n Assert.assertEquals(user1.getGender(), user4.getGender());\n Assert.assertEquals(user2.getGender(), user5.getGender());\n Assert.assertEquals(user3.getGender(), user6.getGender());\n Assert.assertEquals(user1.getPersonID(), user4.getPersonID());\n Assert.assertEquals(user2.getPersonID(), user5.getPersonID());\n Assert.assertEquals(user3.getPersonID(), user6.getPersonID());\n\n } catch (DatabaseException e) {\n System.out.println(e.toString());\n }\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 }", "@Test\n public void test1Insert() {\n\n System.out.println(\"Prueba de SpecialityDAO\");\n SpecialityFactory factory = new MysqlSpecialityDAOFactry();\n SpecialityDAO dao = factory.create();\n assertEquals(dao.insert(spec), 1);\n \n }", "@Test\n public void test2Update() {\n \n System.out.println(\"Prueba deSpecialityDAO\");\n SpecialityFactory factory = new MysqlSpecialityDAOFactry();\n SpecialityDAO dao = factory.create();\n assertEquals(dao.update(spec2,\"teleinformatica\"),1); \n }", "@Test\n public void shouldConnectToDB()\n {\n assertTrue(DatabaseHelper.checkConnection());\n }", "@Test\n\tpublic void test() {\n\t\texecuteQuery(\"SELECT * FROM pg_catalog.pg_database\");\n\n//\t\tSystem.out.println(\"add row\");\n//\t\texecuteQuery(createQuery(\"test1\", inputData()));\n//\t\texecuteQuery(readQuery(\"test1\", \"id\", null));\n//\t\tSystem.out.println(\"update row\");\n//\t\texecuteQuery(updateQuery(\"test1\", updateData(), \"id\", 4));\n//\t\texecuteQuery(readQuery(\"test1\", null, 1));\n//\t\tSystem.out.println(\"delete row\");\n//\t\texecuteQuery(deleteQuery(\"test1\", \"id\", 4));\n//\t\texecuteQuery(readQuery(\"test1\", null, null));\n\t\t\n\t}", "public static void runTests() {\n\t\tSystem.out.println(\"running tests...\");\n\t\tdatabase.printDataBase();\n\t\tSystem.out.println(database.inDataBase(\"paul revere\"));\n\t\tdatabase.add(\"paul revere\");\n\t\tdatabase.printDataBase();\n\t\tSystem.out.println(database.inDataBase(\"paul revere\"));\n\t\tdatabase.delete(\"paul revere\");\n\t\tSystem.out.println(database.inDataBase(\"paul revere\"));\n\t\tdatabase.printOneEntry(\"sponge robert\");\n\t\tdatabase.editBirthday(\"sponge robert\", \"9999-99-99\");\n\t\tdatabase.printOneEntry(\"sponge robert\");\n\t\tdatabase.editName(\"sponge robert\", \"patrick star\");\n\t\tdatabase.printDataBase();\n\t\tdatabase.printAnyList(database.getAllYear(\"9999\"));\n\t\tdatabase.editBirthday(\"kanye west\", \"1900-12-17\");\n\t\tdatabase.add(\"kanye east\", \"1900-12-17\");\n\t\tdatabase.add(\"super man\", \"1900-12-17\");\n\t\tdatabase.printDataBase();\n\t\tdatabase.printAnyList(database.searchBirthday(\"1900\", \"12\", \"17\"));\n\t\tdatabase.printAnyList(database.searchYearAndDay(\"1977\", \"08\"));\n\t\tdatabase.printDataBase();\n\t\tSystem.out.println();\n\t\tSystem.out.println();\n\t\tArrayList<Person> entries = new ArrayList<Person>();\n\t\tentries = database.getAllPeople();\n\t\tfor (int i = 0; i < entries.size(); i++) {\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"deleting... [\" + entries.get(i).getName() + \"]\");\n\t\t\tdatabase.delete(entries.get(i).getName());\n\t\t\tdatabase.printDataBase();\n\t\t}\n\t\tSystem.out.println(\"ending tests..all functionalities demonstrated\");\n\t}", "public void testLocationTable() {\n // get db bridge which connect contract and db\n WeatherDbHelper dbHelper = new WeatherDbHelper(mContext);\n //get db read handler or write handler\n SQLiteDatabase db = dbHelper.getWritableDatabase();\n\n //create insert content: contextContent;\n ContentValues locationValue = TestUtilities.createNorthPoleLocationValues();\n\n //insert into database\n db.insert(WeatherContract.LocationEntry.TABLE_NAME,null,locationValue);\n\n //query to get cursor which is result set\n Cursor locaitonCursor = db.query(WeatherContract.LocationEntry.TABLE_NAME,null,null,null,null,null,null,null);\n // subtest : test if any data in the database table\n assertTrue(\"No message in the table\", locaitonCursor.moveToFirst());\n //subTest: compare data\n TestUtilities.validateCurrentRecord(\"Records not matched\",locaitonCursor,locationValue);\n //subTest : check if there is only one record\n assertFalse(\"More than one records found!\",locaitonCursor.moveToNext());\n //close\n locaitonCursor.close();;\n db.close();\n dbHelper.close();\n\n }", "@Test\n public void testCheckLoginDb() {\n System.out.println(\"checkLoginDb\");\n System.out.println(\"Case 1 : User tidak ada\");\n User usr1 = new User(\"nothing@nothing.not\");\n String expResult1 = \"0\";\n String result1 = instance.checkLoginDb(usr1);\n assertEquals(expResult1, result1);\n \n System.out.println(\"Case 2 : User ada tapi bukan admin\");\n User usr2 = new User(\"user3@ms.com\");\n String expResult2 = \"1\";\n String result2 = instance.checkLoginDb(usr2);\n assertEquals(expResult2, result2);\n \n System.out.println(\"Case 3 : User ada dan adalah admin\");\n User usr3 = new User(\"admin@ms.com\");\n String expResult3 = \"2\";\n String result3 = instance.checkLoginDb(usr3);\n assertEquals(expResult3, result3);\n }", "@Test\n public void testCaja() {\n try {\n conn.createStatement().executeQuery(\"SELECT * FROM caja\");\n System.out.println(Colors.toGreen(\"[OK]\") + \" Table caja exists.\");\n } catch (SQLException e) {\n System.out.println(Colors.toRed(\"[FAIL]\") + \" Table 'caja' does not exist.\");\n Assert.fail(e.getMessage());\n }\n }", "@Test\n public void testGetResultSet() throws MainException {\n System.out.println(\"getResultSet\");\n String queryText = \"select * from infermieri\";\n LinkingDb instance = new LinkingDb(new ConfigurazioneTO(\"jdbc:hsqldb:file:database/\",\n \"ADISysData\", \"asl\", \"\"));\n instance.connect();\n ResultSet result = instance.getResultSet(queryText);\n assertNotNull(result);\n // TODO review the generated test code and remove the default call to fail.\n }", "@Test\n public void testAddAnalysis() {\n ConnectionDB.requestInsert(\"insert into category values('Truc')\");\n ConnectionDB.requestInsert(\"insert into specie values('Lala','Truc')\");\n //Analysis priseSang = new Analysis();\n //boolean resultat = AnalysisDB.addAnalysis(priseSang);\n }", "@Test\n public void DB_CRUDTests(){\n\t String username = generateRandomString();\n\t testusernames.add(username);\n\n\t String password = \"test_user_password\";\n\n\t\tuserDB.insertUser(username, password);\n System.out.println(\"*** DB_CRUDTest: CREATE: Test user inserted.\");\n\n\t System.out.println(\"*** DB_CRUDTest: RETRIEVE: Retrieving test user...\");\n\t User found = userDB.findUser(username);\n\t assertNotNull(found);\n\t assertEquals(found.getUsername(), username);\n\t System.out.println(\"*** DB_CRUDTest: RETRIEVE: Test user retrieved.\");\n\n\t found.setUsername(username.toUpperCase());\n\t\ttestusernames.add(username.toUpperCase());\n\t userDB.updateUser(found);\n System.out.println(\"*** DB_CRUDTest: UPDATE: Test user username updated.\");\n User found_updated = userDB.findUser(username.toUpperCase());\n assertNotNull(found_updated);\n assertEquals(found_updated.getUsername(), username.toUpperCase());\n\n System.out.println(\"*** DB_CRUDTest: DELETE: Attempting to delete test user.\");\n userDB.deleteUser(username.toUpperCase());\n assertNull(userDB.findUser(username.toUpperCase()));\n\n }", "@Test\r\n public void testViewMovieData() {\r\n System.out.println(\"ViewMovieData\");\r\n MovieModel instance = new MovieModel();\r\n DBConnector dbc = new DBConnector();\r\n String query = \"select * from movie where movieID=01\";\r\n ResultSet Result = null;\r\n ResultSet expResult = dbc.fireExecuteQuery(query);\r\n ResultSet result = instance.ViewMovieData();\r\n assertEquals(expResult, Result);\r\n \r\n \r\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This adds a property descriptor for the Speed feature.
protected void addSpeedPropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_UbqProxima_speed_feature"), getString("_UI_PropertyDescriptor_description", "_UI_UbqProxima_speed_feature", "_UI_UbqProxima_type"), UbqtPackage.Literals.UBQ_PROXIMA__SPEED, true, false, false, ItemPropertyDescriptor.REAL_VALUE_IMAGE, null, null)); }
[ "public DoubleProperty getMySpeed() {\n\t\treturn mySpeed;\n\t}", "public void setSpeed(float val) {speed = val;}", "public void setSpeed(double speed);", "public double get_speed(){\n return this.speed;\n }", "void setSpeed(double speed);", "public float getSpeed() {\n return this.speedValue;\n }", "@Override\n public String getSpeedType() {\n return type;\n }", "public void setSpeed(float newSpeed){\n speed = newSpeed;\n }", "public void setSpeed(double multiplier);", "public abstract void setSpeed(int sp);", "public double getSizeSpeedModifier(){return sizeSpeedModifier;}", "public FxSpeed getFxSpeed() {\r\n return fxSpeed;\r\n }", "double getSpeed();", "@Override public void setSpeed(float speed) {\n mt.setSpeed(speed);\n }", "public float getAddSpeed()\n {\n return addSpeed;\n }", "void setSpeed(RobotSpeedValue newSpeed);", "public float GetSpeedFactor() {\n\t\treturn SpeedFactor;\n\t}", "public double getNoteSpeed() { return note_speed; }", "public Speed getSpeed() {\n\t\treturn Speed.FAST;\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Release the semaphore. This has no effect if the semaphore has already been released
public void release() { mutex.acquireUninterruptibly(); //Check the number of permits available if (sem.availablePermits()==0) { sem.release(); //there aren't any, and this won't change... //Hence, release the semaphore! } mutex.release(); //Let the next person in }
[ "synchronized void tryReleaseSemaphore() {\n if (!released && semaphore != null) {\n semaphore.release();\n released = true;\n }\n }", "public synchronized void release() {\r\n\t\tcount++;\r\n\t\tif (count>initialCount)\r\n\t\t\tthrow new RuntimeException(\"Semaphore exception: release is called too often\");\r\n\t\t// let the next waiting thread continue execution\r\n\t\tnotify();\r\n\t}", "public void release() {\n \tlock.set(false);\n }", "public synchronized void release(){\r\n\t\tthis.permits++;\r\n\t\tif(this.permits > 0){\r\n\t\t\t_wakeupWaitingThread(this.id);\r\n\t\t}\r\n\t}", "private void releaseLock()\r\n {\r\n Pair<Long, String> lockPair = lockThreadLocal.get();\r\n if (lockPair != null)\r\n {\r\n // We can't release without a token\r\n try\r\n {\r\n jobLockService.releaseLock(lockPair.getSecond(), LOCK_QNAME);\r\n }\r\n finally\r\n {\r\n // Reset\r\n lockThreadLocal.set(null);\r\n }\r\n }\r\n // else: We can't release without a token\r\n }", "public void release()\n\t{\n\t\tsynchronized(reserved){\n\t\t\treserved = Boolean.TRUE;\n\t\t\towner = null;\n\t\t}\n\t\tdispatchResourceEvent(false);\n\t}", "public void lockReleased();", "public synchronized void releaseMonitor()\n {\n /*\n inUse = false;\n notifyAll();\n */\n }", "public synchronized void release() {\r\n this.state = RELEASED;\r\n }", "private void basicReleaseLock() {\n if (logger.isTraceEnabled(LogMarker.DLS_VERBOSE)) {\n logger.trace(LogMarker.DLS_VERBOSE, \"[DLockToken.basicReleaseLock] releasing ownership: {}\",\n this);\n }\n\n leaseId = -1;\n lesseeThread = null;\n leaseExpireTime = -1;\n thread = null;\n recursion = 0;\n ignoreForRecovery = false;\n\n decUsage();\n }", "final void internalRelease() {\n if(!explicitlyLocked) {\n byteBase.unlock();\n }\n }", "public synchronized void acquire(){\r\n\t\tif(this.permits > 0){\r\n\t\t\tthis.permits--;\r\n\t\t}else {\r\n\t\t\t_waitForSemaphore(this.id);\r\n\t\t\tthis.permits--;\r\n\t\t}\r\n\t}", "public Semaphore() {\n\t\t_closed = false;\n\t}", "public void release() {\n readLatch.releaseIfOwner();\n }", "void releaseLock(QName lockQName, String lockToken);", "void release(String lockId);", "public void releaseLock() {\n lock.unlock();\n if (lock.isHeldByCurrentThread()) {\n // Unlikely to happen except for programming error.\n log.warn(Thread.currentThread().getId() + \": Lock counter > 1, releasing all locks\");\n while (lock.isLocked())\n lock.unlock();\n }\n }", "private void release() {\n\t\tinitialized = false;\n\t\tpause();\n\t\tsetOnCompletionListener(null);\n\t\tgetMp().release();\n\t\tmp = null;\n\t}", "public void release()\n {\n conductor.releaseSubscription(this);\n releaseBuffers();\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
========================================================================= Parse synthetic nonterminal functions.ID$$Star1.
private Result pID$$Star1(final int yyStart) throws IOException { functionsColumn yyColumn = (functionsColumn)column(yyStart); if (null == yyColumn.fID$$Star1) yyColumn.fID$$Star1 = pID$$Star1$1(yyStart); return yyColumn.fID$$Star1; }
[ "private Result pNCName$$Star1(final int yyStart) throws IOException {\n xmlColumn yyColumn = (xmlColumn)column(yyStart);\n if (null == yyColumn.chunk1) yyColumn.chunk1 = new Chunk1();\n if (null == yyColumn.chunk1.fNCName$$Star1) \n yyColumn.chunk1.fNCName$$Star1 = pNCName$$Star1$1(yyStart);\n return yyColumn.chunk1.fNCName$$Star1;\n }", "private void declaration()\r\n {\r\n curToken = getToken();\r\n\r\n // Implement the \"int ID declaration-1\" production.\r\n if(curToken.getToken().equals(\"int\"))\r\n {\r\n \t//adds ALLOC if the current token isn't an array, and isn't a function declaration\r\n \tif(!nextToken().equals(\"[\") && !secondToken().equals(\"[\") && !secondToken().equals(\"(\")){\r\n \t\tadd(\"ALLOC\", \"4\", \"\", nextToken());\r\n \t}else if(secondToken().equals(\"(\")){\r\n \t\tadd(\"FUNC\", \"0\", \"int\", nextToken());//function declaration\r\n \t}\r\n \ttrace(\"declaration.intcheck\");\r\n \t\r\n removeToken();\r\n curToken = getToken();\r\n\r\n if(curToken.getTokenType().equals(\"ID\"))\r\n {\r\n// \taddResult(curToken.getToken());\t//add name of int\r\n// \ttrace();\r\n \t\r\n removeToken();\r\n declaration1();\r\n return;\r\n }\r\n // Invalid program detected.\r\n else\r\n {\r\n isValid = false;\r\n }\r\n }\r\n // Implement the \"float ID declaration-1\" production.\r\n else if(curToken.getToken().equals(\"float\"))\r\n {\r\n \t//adds ALLOC if the current token isn't an array, and isn't a function declaration\r\n \tif(!nextToken().equals(\"[\") && !secondToken().equals(\"[\") && !secondToken().equals(\"(\")){\r\n \t\tadd(\"ALLOC\", \"4\", \"\", nextToken());\r\n \t}else if(secondToken().equals(\"(\")){\t\t//if it's a function..\r\n \t\tadd(\"FUNC\", \"0\", \"float\",nextToken());//function declaration\r\n \t}\r\n \ttrace(\"declaration.floatcheck\");\r\n \t\r\n \t\r\n \t\r\n removeToken();\r\n curToken = getToken();\r\n\r\n if(curToken.getTokenType().equals(\"ID\"))\r\n { \t\r\n removeToken();\r\n declaration1();\r\n return;\r\n }\r\n // Invalid program detected.\r\n else\r\n {\r\n isValid = false;\r\n }\r\n }\r\n // Implement the \"void ID declaration-1\" production.\r\n else if(curToken.getToken().equals(\"void\"))\r\n {\r\n \t//---FUNC added below, at the point of the \r\n \t\r\n removeToken();\r\n curToken = getToken();\r\n\r\n if(curToken.getTokenType().equals(\"ID\"))\t\t//,,,,,,,,,,,,,,,,,,,,TODO: back add params\r\n {\r\n \tadd(\"FUNC\", \"0\", \"void\",curToken.getToken());//function declaration\r\n \ttrace(\"declaration.void.IDcheck\");\r\n \t\r\n removeToken();\r\n declaration1();\r\n return;\r\n }\r\n // Invalid program detected.\r\n else\r\n {\r\n isValid = false;\r\n }\r\n }\r\n // Invalid program detected.\r\n else\r\n {\r\n isValid = false;\r\n }\r\n }", "public void parseFunctions(){\n\t\t\n\t}", "private NewExpr parseExpDecl() {\r\n \tint nwxpstart, nwxpstop;\r\n \tnwxpstart = currentToken.position.start;\r\n \tif(verbose)\r\n \t\tSystem.out.println(\"parseExpDecl\");\r\n \t// NewArrayExpr\r\n \t// int [ Expression ]\r\n \tswitch(currentToken.type) {\r\n \tcase(Token.INT):\r\n \t\tBaseType inttype;\r\n \t\tExpression intexp;\r\n \t\tint stint, stopint;\r\n \t\tstint = currentToken.position.start;\r\n \t\tacceptIt();\r\n \t\tstopint = currentToken.position.start;\r\n \t\tinttype = new BaseType(TypeKind.INT, new SourcePosition(stint, stopint));\r\n \t\taccept(Token.LBRACKET);\r\n \t\tintexp = parseExpression();\r\n \t\taccept(Token.RBRACKET);\r\n \t\tnwxpstop = currentToken.position.start;\r\n \t\treturn new NewArrayExpr(inttype, intexp, new SourcePosition(nwxpstart, nwxpstop));\r\n \t// NewObjectExpr\r\n \t// id ( () | [ Expression ] )\r\n \tcase(Token.ID):\r\n \t\tClassType ct;\r\n \t\tIdentifier ci;\r\n \t\tString cname = currentToken.spelling;\r\n \t\tint ctstart, ctstop, expstop;\r\n \t\tctstart = currentToken.position.start;\r\n \t\tacceptIt();\r\n \t\tctstop = currentToken.position.start;\r\n \t\tci = new Identifier(cname, new SourcePosition(ctstart, ctstop));\r\n \t\tct = new ClassType(ci, ci.posn);\r\n \t\t// NewObjectExpr\r\n \t\tif(currentToken.type == Token.LPAREN) {\r\n \t\t\tacceptIt();\r\n \t\t\taccept(Token.RPAREN);\r\n \t\t\texpstop = currentToken.position.start;\r\n \t\t\treturn new NewObjectExpr(ct, new SourcePosition(ctstart, expstop));\r\n \t\t// NewArrayExpr\r\n \t\t} else if(currentToken.type == Token.LBRACKET){\r\n \t\t\tExpression e;\r\n \t\t\tacceptIt();\r\n \t\t\te = parseExpression();\r\n \t\t\taccept(Token.RBRACKET);\r\n \t\t\texpstop = currentToken.position.start;\r\n \t\t\treturn new NewArrayExpr(ct, e, new SourcePosition(ctstart, expstop));\r\n \t\t} else {\r\n \t\t\tsyntacticError(\"Malformed id\\n\"\r\n \t\t\t\t+ \"\\tid cannot be followed by \", currentToken.spelling);\r\n \t\t\t//bad\r\n \t\t\tSystem.exit(4);\r\n \t\t\treturn null;\r\n \t\t}\r\n \tdefault:\r\n \t\tsyntacticError(\"Malformed id\\n\"\r\n \t\t\t\t+ \"\\tid cannot be followed by \", currentToken.spelling);\r\n \t\t//bad\r\n \t\tSystem.exit(4);\r\n \t\treturn null;\r\n \t}\t\r\n\t}", "private Result pElement$$Star1(final int yyStart) throws IOException {\n xmlColumn yyColumn = (xmlColumn)column(yyStart);\n if (null == yyColumn.chunk1) yyColumn.chunk1 = new Chunk1();\n if (null == yyColumn.chunk1.fElement$$Star1) \n yyColumn.chunk1.fElement$$Star1 = pElement$$Star1$1(yyStart);\n return yyColumn.chunk1.fElement$$Star1;\n }", "private void declarationList1()\r\n {\r\n curToken = getToken();\r\n\r\n // Implement the epsilon production.\r\n if(curToken.getToken().equals(\"$\"))\r\n {\r\n return;\r\n }\r\n // Implement the \"declaration declaration-list-1\" production.\r\n else if(curToken.getToken().equals(\"float\") || curToken.getToken().equals(\"int\") || curToken.getToken().equals(\"void\"))\r\n {\r\n declaration();\r\n if(isValid)\r\n {\r\n declarationList1();\r\n return;\r\n }\r\n }\r\n }", "private Result pSystemLit$$Star1(final int yyStart) throws IOException {\n xmlColumn yyColumn = (xmlColumn)column(yyStart);\n if (null == yyColumn.chunk2) yyColumn.chunk2 = new Chunk2();\n if (null == yyColumn.chunk2.fSystemLit$$Star1) \n yyColumn.chunk2.fSystemLit$$Star1 = pSystemLit$$Star1$1(yyStart);\n return yyColumn.chunk2.fSystemLit$$Star1;\n }", "Rule STIdentifier() {\n // Push 1 IdentifierNode onto value stack\n return Sequence(\n Sequence(\n FirstOf(Letter(), \"_\"),\n ZeroOrMore(FirstOf(IndentChar(), \"-\"))),\n actions.pushIdentifierNode(),\n WhiteSpace());\n }", "private Result pExternalID(final int yyStart) throws IOException {\n int yyC;\n int yyIndex;\n Result yyResult;\n Void yyValue;\n ParseError yyError = ParseError.DUMMY;\n\n // Alternative 1.\n\n yyC = character(yyStart);\n if (-1 != yyC) {\n yyIndex = yyStart + 1;\n\n switch (yyC) {\n case 'S':\n {\n yyC = character(yyIndex);\n if (-1 != yyC) {\n yyIndex = yyIndex + 1;\n if ('Y' == yyC) {\n\n yyC = character(yyIndex);\n if (-1 != yyC) {\n yyIndex = yyIndex + 1;\n if ('S' == yyC) {\n\n yyC = character(yyIndex);\n if (-1 != yyC) {\n yyIndex = yyIndex + 1;\n if ('T' == yyC) {\n\n yyC = character(yyIndex);\n if (-1 != yyC) {\n yyIndex = yyIndex + 1;\n if ('E' == yyC) {\n\n yyC = character(yyIndex);\n if (-1 != yyC) {\n yyIndex = yyIndex + 1;\n if ('M' == yyC) {\n\n yyResult = pspacing(yyIndex);\n yyError = yyResult.select(yyError);\n if (yyResult.hasValue()) {\n\n yyResult = pSystemLit(yyResult.index);\n yyError = yyResult.select(yyError);\n if (yyResult.hasValue()) {\n\n yyValue = null;\n\n return yyResult.createValue(yyValue, yyError);\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n break;\n\n case 'P':\n {\n yyC = character(yyIndex);\n if (-1 != yyC) {\n yyIndex = yyIndex + 1;\n if ('U' == yyC) {\n\n yyC = character(yyIndex);\n if (-1 != yyC) {\n yyIndex = yyIndex + 1;\n if ('B' == yyC) {\n\n yyC = character(yyIndex);\n if (-1 != yyC) {\n yyIndex = yyIndex + 1;\n if ('L' == yyC) {\n\n yyC = character(yyIndex);\n if (-1 != yyC) {\n yyIndex = yyIndex + 1;\n if ('I' == yyC) {\n\n yyC = character(yyIndex);\n if (-1 != yyC) {\n yyIndex = yyIndex + 1;\n if ('C' == yyC) {\n\n yyResult = pspacing(yyIndex);\n yyError = yyResult.select(yyError);\n if (yyResult.hasValue()) {\n\n yyResult = pPublicLit(yyResult.index);\n yyError = yyResult.select(yyError);\n if (yyResult.hasValue()) {\n\n yyResult = pspacing(yyResult.index);\n yyError = yyResult.select(yyError);\n if (yyResult.hasValue()) {\n\n yyResult = pSystemLit(yyResult.index);\n yyError = yyResult.select(yyError);\n if (yyResult.hasValue()) {\n\n yyValue = null;\n\n return yyResult.createValue(yyValue, yyError);\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n break;\n\n default:\n /* No match. */\n }\n }\n\n // Done.\n yyError = yyError.select(\"external i d expected\", yyStart);\n return yyError;\n }", "@DSComment(\"Package priviledge\")\n @DSBan(DSCat.DEFAULT_MODIFIER)\n @DSSource({DSSourceKind.SENSITIVE_UNCATEGORIZED})\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:01:25.768 -0500\", hash_original_method = \"FF6DECA5851C272F523D7639C2D071BC\", hash_generated_method = \"8ADC92F2BC521F13815E267CE99829F3\")\n \nImplForVariable<GenericDeclaration> parseTypeVariableSignature() {\n expect('T');\n scanIdentifier();\n expect(';');\n // Reference to type variable:\n // Note: we don't know the declaring GenericDeclaration yet.\n return new ImplForVariable<GenericDeclaration>(genericDecl, identifier);\n }", "public final void rule__SignatureDeclaration__SigNameAssignment_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../info.kwarc.elf.ui/src-gen/info/kwarc/ui/contentassist/antlr/internal/InternalElf.g:932:1: ( ( RULE_ID ) )\n // ../info.kwarc.elf.ui/src-gen/info/kwarc/ui/contentassist/antlr/internal/InternalElf.g:933:1: ( RULE_ID )\n {\n // ../info.kwarc.elf.ui/src-gen/info/kwarc/ui/contentassist/antlr/internal/InternalElf.g:933:1: ( RULE_ID )\n // ../info.kwarc.elf.ui/src-gen/info/kwarc/ui/contentassist/antlr/internal/InternalElf.g:934:1: RULE_ID\n {\n before(grammarAccess.getSignatureDeclarationAccess().getSigNameIDTerminalRuleCall_1_0()); \n match(input,RULE_ID,FOLLOW_RULE_ID_in_rule__SignatureDeclaration__SigNameAssignment_11811); \n after(grammarAccess.getSignatureDeclarationAccess().getSigNameIDTerminalRuleCall_1_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "@Test\n public void testSingleIdentifier() throws ExpressionFormatException {\n CppParser parser = new CppParser();\n \n assertThat(parser.lex(\"A\"), is(new CppToken[] {new IdentifierToken(0, \"A\")}));\n assertThat(parser.lex(\"Longer_Variable_12_Name\"),\n is(new CppToken[] {new IdentifierToken(0, \"Longer_Variable_12_Name\")}));\n assertThat(parser.lex(\"123\"),\n is(new CppToken[] {new IdentifierToken(0, \"123\")}));\n }", "public void visit(IdentExpn node)\n {\n\n switch (node.getKind())\n {\n case VAR:\n this.semanticAction37(node.getIdent(), node, true);\n this.semanticAction26(node);\n break;\n case PARAM:\n this.semanticAction39(node.getIdent(), node, true);\n this.semanticAction25(node, 25);\n break;\n case FUNC:\n this.semanticAction40(node.getIdent(), node, true);\n this.semanticAction42(node);\n this.semanticAction28(node);\n break;\n case UNKNOWN:\n if (this.semanticAction37(node.getIdent(), node, false))\n {\n // This is a variable.\n this.semanticAction26(node);\n } else if (this.semanticAction39(node.getIdent(), node, false))\n {\n // This is a parametername.\n this.semanticAction25(node, 25);\n } else if (this.semanticAction40(node.getIdent(), node, false))\n {\n // This is a functionname.\n this.semanticAction42(node);\n this.semanticAction28(node);\n } else {\n // This ident doesn't match anything expected in the symbol table\n // so report all the semantic errors.\n this.semanticErrors.add(new SemanticErrorException(37, node));\n this.semanticErrors.add(new SemanticErrorException(39, node));\n this.semanticErrors.add(new SemanticErrorException(40, node));\n }\n }\n }", "public abstract void notationDecl(String name, String publicId,\n String systemId) throws SAXException;", "private TypeVariableSignature parseTypeVariableSignature() {\n // Assert 'T' prefix and advance\n buffer.assertIsAndAdvance('T');\n\n // Parse <Identifier>\n final String identifier = parseIdentifier();\n\n // Assert ';' suffix and advance\n buffer.assertIsAndAdvance(';');\n\n return new TypeVariableSignature(identifier);\n }", "private void var(){\n \n if(match(\"Identifier\",1)){\n nextToken();\n \n if(match(\"seperator\",2)){\n // identifier , var\n nextToken();\n var();\n }\n \n }\n \n }", "private void localDeclarations1()\r\n {\r\n // TODO Fix this.\r\n curToken = getToken();\r\n\r\n // Implement the epsilon production.\r\n if(\r\n curToken.getTokenType().equals(\"ID\") || curToken.getToken().equals(\";\") || curToken.getTokenType().equals(\"INT\") || curToken.getToken().equals(\"(\") ||\r\n curToken.getToken().equals(\"{\") || curToken.getToken().equals(\"}\") || curToken.getToken().equals(\"while\") || curToken.getToken().equals(\"return\") ||\r\n curToken.getTokenType().equals(\"FLOAT\") || curToken.getToken().equals(\"if\")\r\n )\r\n {\r\n return;\r\n }\r\n // Implement the \"int ID local-declarations-2\" production.\r\n else if(curToken.getToken().equals(\"int\"))\r\n {\r\n removeToken();\r\n curToken = getToken();\r\n\r\n if(curToken.getTokenType().equals(\"ID\"))\r\n {\r\n removeToken();\r\n localDeclarations2();\r\n return;\r\n }\r\n // Invalid program detected.\r\n else\r\n {\r\n isValid = false;\r\n }\r\n }\r\n // Implement the \"float ID local-declarations-2\" production.\r\n else if(curToken.getToken().equals(\"float\"))\r\n {\r\n removeToken();\r\n curToken = getToken();\r\n\r\n if(curToken.getTokenType().equals(\"ID\"))\r\n {\r\n removeToken();\r\n localDeclarations2();\r\n return;\r\n }\r\n // Invalid program detected.\r\n else\r\n {\r\n isValid = false;\r\n }\r\n }\r\n // Implement the \"void ID local-declarations-2\" production.\r\n else if(curToken.getToken().equals(\"void\"))\r\n {\r\n removeToken();\r\n curToken = getToken();\r\n\r\n if(curToken.getTokenType().equals(\"ID\"))\r\n {\r\n removeToken();\r\n localDeclarations2();\r\n return;\r\n }\r\n // Invalid program detected.\r\n else\r\n {\r\n isValid = false;\r\n }\r\n }\r\n // Invalid program detected.\r\n else\r\n {\r\n isValid = false;\r\n }\r\n }", "private Result pEncodingName$$Star1(final int yyStart) throws IOException {\n xmlColumn yyColumn = (xmlColumn)column(yyStart);\n if (null == yyColumn.chunk2) yyColumn.chunk2 = new Chunk2();\n if (null == yyColumn.chunk2.fEncodingName$$Star1) \n yyColumn.chunk2.fEncodingName$$Star1 = pEncodingName$$Star1$1(yyStart);\n return yyColumn.chunk2.fEncodingName$$Star1;\n }", "void wildcardParticle(ParticleSG particle) throws SAXException;" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the header with the specified name if exists, null if not.
public Header getHeader(String name) { for (Header h : headers) { if (h.getName().contains(name)) { return h; } } return null; }
[ "public Header getRequestHeader(String headerName) {\n if (headerName == null) {\n return null;\n } else {\n return getRequestHeaderGroup().getCondensedHeader(headerName);\n }\n }", "public Header getResponseHeader(String headerName) { \n if (headerName == null) {\n return null;\n } else {\n return getResponseHeaderGroup().getCondensedHeader(headerName);\n } \n }", "@Nullable\n public String getFirst(String name) {\n for (Header header : headers) {\n if (header.getName().equalsIgnoreCase(name)) {\n return header.getValue();\n }\n }\n return null;\n }", "public String getHeader(String name) {\n\t\tHeader header = response.getFirstHeader(name);\n\t\tif (header == null) {\n\t\t\treturn null;\n\t\t}\n\t\treturn header.getValue();\n\t}", "String getHeader(String name) {\n return headers.get(name);\n }", "public Bmv2ModelHeader header(String name) {\n return headers.get(name);\n }", "Header getFirstHeader(final String key);", "String getFirstHeader ( String header );", "String getHeaderName();", "public String findHeaderValue(String key) {\n var pair = _headers.stream()\n .filter(p -> p.a.equalsIgnoreCase(key))\n .findFirst();\n\n if (pair.isEmpty())\n return null;\n\n return pair.get().b;\n }", "public String get(String headerName) throws IOException {\n checkClosed();\n \n return get(getIndex(headerName));\n }", "com.github.jtendermint.jabci.types.Types.Header getHeader();", "public String find(String header) {\r\n\t\t\treturn headers.get(header);\r\n\t\t}", "String getResponseHeader(String name);", "RequestStubbing havingHeader(final String name);", "@Override\n public boolean containsHeader(String name) {\n return this._getHttpServletResponse().containsHeader(name);\n }", "public Header getHeaderByKey(String key);", "com.didiyun.base.v1.Header getHeader();", "public final HeaderCard find(String key)\n {\n if (key != null) {\n KeyChain kc = (KeyChain )hash.get(key.trim().toUpperCase());\n if (kc != null) {\n\treturn kc.card;\n }\n }\n\n return null;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the serviceOfferingDescription value for this BpValidationResponse.
public void setServiceOfferingDescription(com.mgipaypal.ac1211.client.TextTranslation[] serviceOfferingDescription) { this.serviceOfferingDescription = serviceOfferingDescription; }
[ "public void setServiceOffering(java.lang.String serviceOffering) {\r\n this.serviceOffering = serviceOffering;\r\n }", "public ProductOffering description(String description) {\n this.description = description;\n return this;\n }", "public void setBookOffering(java.lang.String value);", "public void setResponseDescription(String responseDescription) {\n this.responseDescription = responseDescription;\n }", "public void setServiceOfferingID(java.lang.String serviceOfferingID) {\r\n this.serviceOfferingID = serviceOfferingID;\r\n }", "public void setsDescription(String sDescription) \r\n {\r\n this.sDescription.set(sDescription);\r\n }", "@Override\n\tpublic void setEsfDescription(java.lang.String esfDescription) {\n\t\t_esfState.setEsfDescription(esfDescription);\n\t}", "public void setServiceOfferingSecondary(java.lang.String serviceOfferingSecondary) {\r\n this.serviceOfferingSecondary = serviceOfferingSecondary;\r\n }", "public void setDescription(String description) {\n if (description == null) {\n throw new IllegalArgumentException(\n \"Null specified for technology description\");\n }\n this.description = description;\n }", "private final void setDescription(String description) {\n if(description == null || description.length() == 0) {\n throw new PizzaException(\"Cannot set the description of an \" +\n \"Ingredient to null or an empty \" +\n \"String.\");\n }\n \n this.description = description;\n }", "public void setDescription(java.lang.String description) {\n\t\t_adsItem.setDescription(description);\n\t}", "@Required\n\tpublic void setTransportOfferingService(final TransportOfferingService transportOfferingService)\n\t{\n\t\tthis.transportOfferingService = transportOfferingService;\n\t}", "public void setResponseDescription(String value) {\n if (value == null) {\n Element child = getLastChild(root, \"responsedescription\"); //$NON-NLS-1$\n if (child != null)\n root.removeChild(child);\n } else\n setChild(root, \"responsedescription\", value, childNames, false); //$NON-NLS-1$\n }", "public void setBusinessDescription(java.lang.String businessDescription) {\n this.businessDescription = businessDescription;\n }", "public void setEntitlementDescription(String value)\n {\n entitlementDescription = value;\n }", "public void setDescription(String description) {\r\n if (description == null || description.trim().isEmpty()) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n this.description = description;\r\n\r\n setChanged();\r\n notifyObservers(this);\r\n }", "public void setAlertOffering( org.webcat.schedulesheets.EmailAlertForAssignmentOffering value )\n {\n if (log.isDebugEnabled())\n {\n log.debug( \"setAlertOffering(\"\n + value + \"): was \" + alertOffering() );\n }\n takeStoredValueForKey( value, \"alertOffering\" );\n }", "public ServerScheduledEventBuilder setDescription(String description) {\n delegate.setDescription(description);\n return this;\n }", "@Override\n\tpublic void setDescription(java.lang.String description) {\n\t\t_buySellProducts.setDescription(description);\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the amount of time to hold on to a ProxyGrantingTicket if its never been retrieved.
public ProxyGrantingTicketStorageImpl(final long timeout) { this.timeout = timeout; }
[ "public void grant(Object proxy) {\n storedProxy = proxy;\n if (grantTrap != null) {\n throw grantTrap;\n }\n\tsuper.grant(proxy);\n }", "LockRequest setTimeOut(int timeout);", "public void cleanUp() {\n for (final Map.Entry<String, ProxyGrantingTicketHolder> holder : this.cache.entrySet()) {\n if (holder.getValue().isExpired(this.timeout)) {\n this.cache.remove(holder.getKey());\n }\n }\n }", "synchronized void grantLock(long newLeaseExpireTime, int newLeaseId, int newRecursion,\n RemoteThread remoteThread) {\n\n Assert.assertTrue(remoteThread != null);\n Assert.assertTrue(newLeaseId > -1, \"Invalid attempt to grant lock with leaseId \" + newLeaseId);\n\n checkDestroyed();\n checkForExpiration(); // TODO: this should throw.\n\n ignoreForRecovery = false;\n leaseExpireTime = newLeaseExpireTime;\n leaseId = newLeaseId;\n lesseeThread = remoteThread;\n recursion = newRecursion;\n thread = Thread.currentThread();\n\n if (logger.isTraceEnabled(LogMarker.DLS_VERBOSE)) {\n logger.trace(LogMarker.DLS_VERBOSE, \"[DLockToken.grantLock.client] granted {}\", this);\n }\n }", "void setLockTimeout(int seconds);", "public void resetTimeout(){\n this.timeout = this.timeoutMax;\n }", "@Override\n\tpublic void setCallTimeToNow() {\n\t\tsuper.setCallTimeToNow();\n\n\t\t// Clear any call reply associated with this call\n\t\tif (this.repliedCall != null) {\n\t\t\tthis.repliedCall.delete();\n\t\t\tthis.repliedCall = null;\n\t\t}\n\n\t\t// Keep count\n\t\tthis.callCount++;\n\t}", "public void refreshLockTimeout(String key, String token, long timeoutMS);", "private static void checkAndSetUserAndPasswordForProxy() {\r\n\r\n\t\tswitch (proxyOperational) {\r\n\t\t\tcase IOperationModeIdConstants.ID_NONE_INTVALUE:\r\n\t\t\t\tbreak;\r\n\t\t\tcase IOperationModeIdConstants.ID_NONE_AUTHENTICATION_INTVALUE:\r\n\t\t\t\tproxyUserName = null;\r\n\t\t\t\tproxyUserPass = null;\r\n\t\t\t\tproxyDomain = null;\r\n\t\t\t\tproxyWorkstation = null;\r\n\t\t\t\tbreak;\r\n\t\t\tcase IOperationModeIdConstants.ID_BASIC_AUTHENTICATION_INTVALUE:\r\n\t\t\tcase IOperationModeIdConstants.ID_NTLM_AUTHENTICATION_INTVALUE:\r\n\t\t\t\tif (UtilsStringChar.isNullOrEmpty(proxyUserName) || UtilsStringChar.isNullOrEmpty(proxyUserPass)) {\r\n\t\t\t\t\tLOGGER.error(Language.getFormatResCoreGeneral(ICoreGeneralMessages.UTILS_PROXY_002, new Object[ ] { proxyUserName, proxyUserPass }));\r\n\t\t\t\t\tproxyOperational = IOperationModeIdConstants.ID_NONE_AUTHENTICATION_INTVALUE;\r\n\t\t\t\t\tcheckAndSetUserAndPasswordForProxy();\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\r\n\t}", "public void setExpiration(double timeout) {\n drive.setExpiration(timeout);\n }", "void setAttemptLimit(int limit);", "@Override\n protected void rescheduleForNewServerAccessCredits (final double time)\n {\n }", "public static native void OpenChannel_set_dust_limit_satoshis(long this_ptr, long val);", "public static native void AcceptChannel_set_dust_limit_satoshis(long this_ptr, long val);", "public void setTimeLimit(int timeLimit){\n hasTimeLimit = true;\n timeAlive = timeLimit;\n }", "void lock(Object obj, Object owner, int timeout)\r\n throws LockNotGrantedException, ClassCastException, ChannelException;", "void setExpiration(long time)\n {\n expiration = time;\n }", "public GrantorCache(Class ticketType, int tolerance) {\n super(tolerance);\n if (!TicketGrantingTicket.class.isAssignableFrom(ticketType))\n throw new IllegalArgumentException(\n \"GrantorCache may only store granting tickets\");\n this.ticketType = ticketType;\n this.ticketCache = new HashMap();\n }", "void setManualAccessTokenExpirationTime(java.lang.String manualAccessTokenExpirationTime);" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns true if at least one field is edited.
public boolean isAnyFieldEdited() { return CollectionUtil.isAnyNonNull(tags, tagsToAdd, tagsToDelete); }
[ "boolean isAnyFieldEdited();", "public boolean isAnyFieldEdited() {\n return CollectionUtil.isAnyNonNull(this.company, this.department, this.title);\n }", "public boolean isAnyFieldEdited() {\n return CollectionUtil.isAnyNonNull(name, email, tags, roomNumber);\n }", "public boolean isAnyFieldEdited() {\n return CollectionUtil.isAnyNonNull(desc, amt, tags);\n }", "public boolean isAnyFieldEdited() {\n return CollectionUtil.isAnyNonNull(name, meaning, tags);\n }", "public boolean isAnyFieldUpdated() {\n return CollectionUtil.isAnyNonNull(name, phone, email, username, password, tags);\n }", "public boolean checkAnyFieldUpdated() {\n return name != null || email != null || major != null\n || studentId != null;\n }", "@JsonIgnore\n\tpublic boolean isEmptyEdit() {\n\t\treturn getUpdatedStatements().isEmpty();\n\t}", "public boolean getEditableFields()\n { // begin geteditableFields()\n return(editableFields);\n }", "boolean isEdited();", "public boolean is_set_fields() {\n return this.fields != null;\n }", "public boolean isModifiable() {\r\n return isAddModifiable() || isRemoveModifiable() || isSetModifiable();\r\n }", "public final boolean isEdited(){\n\t\treturn JsUtils.getNativePropertyBoolean(this, \"edited\");\n\t}", "public boolean checkAnyFieldUpdated() {\n return startDate != null || endDate != null;\n }", "public final boolean isEditable()\n\t{\n\t\treturn !(getFlag(READ_ONLY) || getFlag(IO) || getFlag(LOADING));\n\t}", "public boolean isEditable() {\n \treturn model.isEditable();\n }", "public boolean canUpdate() {\n return Field.class.isInstance(field);\n }", "public boolean canEditAllRequiredFields() throws OculusException;", "public boolean isEditingEnabled() {\r\n // Additional business logic can go here\r\n return (getContactSelection().getMinSelectionIndex() != -1);\r\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get previous time from (current time hours)
public static String getPrevTime(int hours) throws ParseException { int MILLIS_IN_HOUR = 1000 * 60 * 60; Date date = new Date(); SimpleDateFormat dateFormat = new SimpleDateFormat( "yyyy-MM-dd hh:mm:ss"); String prevTime = dateFormat.format(date.getTime() - MILLIS_IN_HOUR * hours); return prevTime; }
[ "long getPreviousTimestamp();", "public Date getPreviousFireTime();", "public long getPreviousUserTime() {\n\n return pPreviousUserTime;\n }", "public long elapsedHours(){\n if(isRunning){\n return ((System.currentTimeMillis() - t0) / 3600000L);\n }else{\n return ((t1 - t0) / 3600000L);\n }\n }", "public String getCurrentHours() {\n\t\t\t\t// DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm\");\n\t\t\t\t// need to change after the date format is decided\n\t\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"HH\");\n\t\t\t\tDate date = new Date();\n\t\t\t\treturn dateFormat.format(date);\n\t\t\t}", "int getLastTime();", "public static String getCurrentTime() {\n Calendar cal = new GregorianCalendar(TimeZone.getTimeZone(\"GMT+7\"));\n SimpleDateFormat fmt = new SimpleDateFormat(\"HH:mm:ss\");\n fmt.setCalendar(cal);\n String currTime = fmt.format(cal.getTimeInMillis());\n \n return currTime;\n }", "public static String getCurrentHour() {\n //creates a simple date format\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"HH:mm\", Locale.getDefault());\n\n //and returns the hour in hh:mm format\n return simpleDateFormat.format(Calendar.getInstance().getTime());\n }", "public long getPreviousSessionTime() {\n return mPreviousAccess;\n }", "public String getPreviousDate() {\r\n\r\n DateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy/\");\r\n\r\n // Create a calendar object with today date. Calendar is in java.util package.\r\n Calendar calendar = Calendar.getInstance();\r\n\r\n // Move calendar to yesterday\r\n calendar.add(Calendar.DATE, -1);\r\n\r\n // Get current date of calendar which point to the yesterday now\r\n Date yesterday = calendar.getTime();\r\n\r\n return dateFormat.format(yesterday);\r\n }", "public String getCurrentTimeHourMinSec() {\n\t\t\t\t// DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\t\t\t// need to change after the date format is decided\n\t\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"HH:mm:ss\");\n\t\t\t\tDate date = new Date();\n\t\t\t\treturn dateFormat.format(date);\n\t\t\t}", "DateTime minusHours( int hours );", "long getEventTime();", "public static String getCurrentTimeIn24HrFormat(){\n SimpleDateFormat df = new SimpleDateFormat(\"HH\");\n String currHr = df.format(new Date());\n return currHr;\n }", "public long getElapsedTimeHour() {\n return running ? ((((System.currentTimeMillis() - startTime) / 1000) / 60 ) / 60) : 0;\n }", "public static int getCurrentHour()\n\t{\n\t\treturn Calendar.getInstance().get(Calendar.HOUR_OF_DAY);\n\t}", "Time getAnswerTime();", "public DateTime previousRunAt() {\n return this.previousRunAt;\n }", "hr.client.appuser.CouponCenter.TimeRange getExchangeTime();" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Pre: an object needs to be created to control and run the game of gin rummy Post: an object is created that will control and run the game of gin rummy by communicating with the model and view components
public RunGame(){ model = new ModelCommunication(); view = new ViewCommunication(); }
[ "Main ()\n\t{\n\t\tview = new View ();\t\t\n\t\tmodel = new Model(view);\n\t\tcontroller = new Controller(model, view);\n\t}", "private void setUpGame() {\n // TODO: Implement.\n\n // addWallToView\n delayNumber = 0;\n gamePaused = false;\n addWallToView();\n\n // Create Player Tank and AI tank\n Entity playerTank = new PlayerTank(Constants.PLAYER_TANK_ID, Constants.PLAYER_TANK_INITIAL_X, Constants.PLAYER_TANK_INITIAL_Y, Constants.PLAYER_TANK_INITIAL_ANGLE){};\n Entity aiTank1 = new AITank(Constants.AI_TANK_1_ID, Constants.AI_TANK_1_INITIAL_X, Constants.AI_TANK_1_INITIAL_Y, Constants.AI_TANK_1_INITIAL_ANGLE){};\n Entity aiTank2 = new AITank(Constants.AI_TANK_2_ID, Constants.AI_TANK_2_INITIAL_X, Constants.AI_TANK_2_INITIAL_Y, Constants.AI_TANK_2_INITIAL_ANGLE){};\n\n\n // Add Objects into Game World\n gameWorld.addEntity(playerTank);\n gameWorld.addEntity(aiTank1);\n gameWorld.addEntity(aiTank2);\n\n // Add Power up icon\n for(int i = 0; i < Constants.POWERUP_COUNT; i++) {\n double x = Math.random() * (Constants.TANK_X_UPPER_BOUND - Constants.TANK_X_LOWER_BOUND) + Constants.TANK_X_LOWER_BOUND;\n double y = Math.random() * (Constants.TANK_Y_UPPER_BOUND - Constants.TANK_Y_LOWER_BOUND) + Constants.TANK_Y_LOWER_BOUND;\n Entity powerup = new PowerUp(\"powerup_\" + i, x, y);\n gameWorld.addEntity(powerup);\n }\n\n // Add Spirits to View\n List<Entity> entityList = gameWorld.getEntities();\n String filename = \"player-tank.png\";\n for(Entity entity : entityList) {\n if( entity instanceof PlayerTank )\n filename = \"player-tank.png\";\n if( entity instanceof AITank )\n filename = \"ai-tank.png\";\n if( entity instanceof Wall )\n filename = ((Wall)entity).getImagefile();\n if( entity instanceof PowerUp )\n filename = \"powerup.png\";\n\n runGameView.addSprite(entity.getId(), filename, entity.getX(), entity.getY(), entity.getAngle());\n }\n }", "public Controller () {\n myModel = new GameModel(this, null, new GameMap(null, 800, 600, null));\n myView = new TDView(this);\n myControlMode = new SelectMode();\n }", "public void populate() { \n \n // make some grounds\n ground1 = new Body(world, PolygonShape.makeBox(100, 5), Body.Type.STATIC);\n ground1.setPosition(new Vec2(-380, -200));\n \n Body ground2 = new Body(world, PolygonShape.makeBox(100, 5), Body.Type.STATIC);\n ground2.setPosition(new Vec2(-0, -200));\n\n Body ground3 = new Body(world, PolygonShape.makeBox(100, 5), Body.Type.STATIC);\n ground3.setPosition(new Vec2(300, -100));\n \n // make a moving platform \n Body movingPlatform = new SlidingPlatform(world, PolygonShape.makeBox(100, 5), new Vec2(130, 0), 2);\n movingPlatform.setPosition(new Vec2(-260, -150));\n \n // make some bottles\n Bottle bottle1 = new Bottle(game);\n bottle1.putOn(ground1);\n bottle1.setName(\"bottle1\");\n \n Bottle bottle2 = new Bottle(game);\n bottle2.putOn(ground2);\n bottle2.setName(\"bottle2\");\n \n Bottle bottle3 = new Bottle(game);\n bottle3.putOn(ground3);\n bottle3.setName(\"bottle3\");\n \n // show dialog with information about level\n JOptionPane.showMessageDialog(frame, \"Press N or M to throw bottles to kill Boxies.\", \"Level instructions:\", JOptionPane.PLAIN_MESSAGE);\n \n // make some boxies\n Boxy boxy1 = new Boxy(game);\n boxy1.setName(\"boxy1\");\n Vec2 vec1 = new Vec2(100, 0);\n boxy1.move(vec1);\n\n Boxy boxy2 = new Boxy(game);\n boxy2.setName(\"boxy2\");\n Vec2 vec2 = new Vec2(-100, 200);\n boxy2.move(vec2);\n\n Boxy boxy3 = new Boxy(game);\n boxy3.setName(\"boxy3\");\n Vec2 vec3 = new Vec2(-400, 200);\n boxy3.move(vec3);\n \n }", "public interface IGameObjects {\n\n /**\n * Add a Dynamic Object to the game.\n *\n * @param object the Dynamic Object to add to the scene.\n */\n public void addObject(Object object);\n\n /**\n * Add a Projectile to the game.\n *\n * @param projectile the Projectile to add to the scene.\n */\n public void addProjectile(Projectile projectile);\n\n /**\n * Remove a Dynamic Object from the game.\n *\n * @param object the Dynamic Object to remove from the game.\n */\n public void removeObject(Object object);\n\n /**\n * Remove a Projectile from the game.\n *\n * @param p2 if this is the projectile of player 2.\n */\n public void removeProjectile(boolean p2);\n\n /**\n * Get the min y value.\n *\n * @return min y value.\n */\n public double getTopBorder();\n\n /**\n * Get the maximum x value.\n *\n * @return max x value.\n */\n public double getRightBorder();\n\n /**\n * Get the maximum y value.\n *\n * @return max y value.\n */\n public double getBottomBorder();\n\n /**\n * Get the minimum x value.\n *\n * @return min x value.\n */\n public double getLeftBorder();\n\n /**\n * Check if there is currently a projectile spawned in the game.\n *\n<<<<<<< HEAD\n\t * @param p2 player 2.\n=======\n * @param p2\n>>>>>>> highscores\n * @return if there is currently a projectile spawned in the game.\n */\n public boolean hasProjectile(boolean p2);\n\n /**\n * Called when the player dies. Handles quiting the game and reducing the amount of lives by 1.\n */\n public void playerDied();\n\n /**\n * Create a circle in the view.\n *\n * @param centerX the x coordinate of the center of the circle.\n * @param centerY the y coordinate of the center of the circle.\n * @param radius the radius of the circle.\n * @return the interface of the circle view object.\n */\n public ICircleViewObject makeCircle(double centerX, double centerY, double radius);\n\n /**\n * Create a line in the view.\n *\n * @param startX the x coordinate of the start point of the line.\n * @param startY the y coordinate of the start point of the line.\n * @param endX the x coordinate of the end point of the line.\n * @param endY the y coordinate of the end point of the line.\n * @return the interface of the line view object.\n */\n public ILineViewObject makeLine(double startX, double startY, double endX, double endY);\n\n /**\n * Create an image in the view.\n *\n * @param is the input stream of the image.\n * @param height the height of the image.\n * @param width the width of the image.\n * @return the interface of the image view object.\n */\n public IImageViewObject makeImage(InputStream is, double height, double width);\n\n /**\n * Get the player.\n *\n * @return the player.\n */\n public Player getPlayer();\n\n /**\n * Handle modifier collision.\n *\n * @param modifier the modifier.\n * @param isPlayerPickup if it is a player modifier.\n * @param isBubblePickup if it is a bubble modifier\n */\n public void handleModifierCollision(Object modifier, boolean isPlayerPickup, boolean isBubblePickup);\n\n /**\n * Hand;e bubble splitting.\n *\n * @param p the point at which the bubble was split.\n */\n public void handleBubbleSplit(Point p);\n\n /**\n * Add point.\n *\n * @param points amount of points to add.\n */\n public void addPoints(int points);\n\n /**\n * Add a life.\n */\n public void addLife();\n\n /**\n * Amount of bubbles left.\n *\n * @return amount of bubbles left.s\n */\n public int bubblesLeft();\n\n /**\n * Get player 2.\n *\n * @return player 2.\n */\n public Player getPlayer2();\n}", "private void displayObjects() {\r\n createBricks();\r\n createPaddle();\r\n createBall();\r\n }", "public static void main(String[] args) {\n//\n// controller.setSoldierRank(0, \"Turai\");\n// controller.addModel(new Model(2, \"Lera\", \"RavSamal\"));\n// controller.updateViews();\n\n Controller controller = new Controller();\n controller.addModel(new Model(1, \"Gal\", \"Citizen\"));\n controller.addModel(new Model(12121, \"bubu\", \"Smar\"));\n controller.addModel(new Model(624, \"Groot\", \"Tree\"));\n controller.addModel(new Model(-10, \"Deadpool\", \"Awesome\"));\n controller.addModel(new Model(100, \"Nikita\", \"Citizen\"));\n\n controller.presentUI();\n\n controller.updateViews();\n }", "public BabyGame(){\n if(ClientManager.getClientView() instanceof GuiController) {\n clientMap = new GUImap();\n deck = new PumpedDeck();\n }\n else{\n clientMap = new CLIclientMap();\n deck = new Deck();\n }\n }", "private void objectInstantiater()\n\t{\n\t\tfor (String module : modulesToInstanmoduletiate) {\n\t\t\tif(module.equals(\"TestNameField\") )\n\t\t\t{\n\t\t\t\t testNameField = new TestNameField();\n\t\t\t\t controller_module_list.add(testNameField.getStackPane());\n\t\t\t}\n\t\t\tif(module.equals(\"TestNameLabel\"))\n\t\t\t{\n\t\t\t\ttestNameLabel = new TestNameLabel();\n\t\t\t\tcontroller_module_list.add(testNameLabel.getStackPane());\n\t\t\t}\n\t\t\tif(module.equals(\"LEDModule\"))\n\t\t\t{\n\t\t\t\tlM = new LEDModule();\n\t\t\t\tcontroller_module_list.add(lM.getStackPane());\n\t\t\t}\n\t\t\tif(module.equals(\"VideoViewModule\"))\n\t\t\t{\n\t\t\t vm = new VideoViewModule();\n\t\t\t controller_module_list.add(vm.getStackPane());\n\t\t\t}\n\n\t\t\t\n\t\t}\n\t}", "private void newGame()\r\n {\r\n //close the current screen\r\n screen.dispose();\r\n //start back at the set up menu\r\n SetupView screen = new SetupView();\r\n SetupController controller = new SetupController(screen);\r\n screen.registerObserver(controller);\r\n }", "public void setUpGame() {\n isRunning = true;\n createBufferStrategy(3);\n bs = getBufferStrategy();\n g = (Graphics2D)bs.getDrawGraphics();\n g.setRenderingHints(new RenderingHints(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON));\n gameInput = new GameInput(this);\n gameThread = new Thread(this);\n player = new Player(this);\n powerUp = new PowerUp(this);\n passengers = new Passenger(this);\n traffic = new Traffic(this);\n soundEffect = new SoundEffect();\n hud = new HUD(this);\n score = 0;\n maxPassengers = 1;\n canSpawnPowerUp = true;\n isPlayerDead = false;\n isPaused = false;\n }", "private void createMob() {\n animControl = new MobAnimControl();\n motionControl = new MobMotionControl();\n \n initMob();\n initControl();\n initRagdoll();\n initAttackGhost();\n assembleMob();\n initAnim();\n }", "public interface GameModel\n{\n /**\n * Start the game!\n */\n void startGame();\n \n /**\n * Calls any code which should execute on each frame.\n */\n void onFrame();\n}", "@Override\n public void init(){\n model3 = new PBRModel(AssimpLoader.loadMeshGroup(\"demo07/models/glock.obj\"),\n new PBRMaterial(\"demo07/images/glock/\", \"albedo.png\", \"normal.png\",\n \"rough.png\", \"metal.png\", false));\n model3.translateTo(10f,0,1).scale(.2f);\n\n\n model4 = new PBRModel(Meshs.sphere,\n new PBRMaterial(\"demo07/images/plastic_squares/\", \"albedo.png\", \"normal.png\",\n \"rough.png\", \"metal.png\", false));\n model4.translateTo(7.5f,0,1).scaleTo(2f);\n\n model5 = new PBRModel(Meshs.sphere,\n new PBRMaterial(.4f, .3f, 1f, 1f, 1f));\n model5.translate(4,0,1);\n\n model6 = new PBRModel(Meshs.sphere,\n new PBRMaterial(0f, 1f, 1f, 0f, 0f));\n model6.translate(2,0, 1);\n\n light = new PointLight();\n light.setColor(new Vector3f(1,1,1));\n light.translate(new Vector3f(0,0,0));\n light.setIntensity(2f);\n\n LightManager.setSun(new DirectionalLight());\n LightManager.getSun().setIntensity(.8f);\n LightManager.getSun().setAmbientLight(new Vector3f(0.01f));\n\n object = new Node();\n object.addChildren(model4, model3, model6, model5, light);\n\n scene.addChild(object);\n }", "public GameController() {\r\n\t\tsuper();\r\n\t\tthis.model = Main.getModel();\r\n\t\tthis.player = this.model.getPlayer();\r\n\t\tthis.timeline = this.model.getIndefiniteTimeline();\r\n\t}", "private GameObject newObject() {\n\t\t// Create random GameObject\n\t\tint rand = rg.nextInt(4);\n\t\tGameObject object;\n\t\tswitch (rand) {\n\t\tcase 0:\n\t\t\tobject = new Apple();\n\t\t\tbreak;\n\t\tcase 1:\n\t\t\tobject = new Orange();\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tobject = new Strawberry();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tobject = new Bomb();\n\t\t\tbreak;\n\t\t}\n\t\t// Set random position and speed\n\t\trand = rg.nextInt(4);\n\t\tint maxPos = 250 - object.getSize();\n\t\tint pos = rg.nextInt(maxPos);\n\t\tint velX = rg.nextInt(3) + 1;\n\t\tint velY = rg.nextInt(5) + 2;\n\t\tswitch (rand) {\n\t\tcase 0:\n\t\t\tobject.setPosition(pos, 250 + maxPos);\n\t\t\tobject.setVelocity(velX, -velY - 7);\n\t\t\tbreak;\n\t\tcase 1:\n\t\t\tobject.setPosition(pos + maxPos, 250 + maxPos);\n\t\t\tobject.setVelocity(-velX, -velY - 7);\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tobject.setPosition(0, maxPos + pos);\n\t\t\tobject.setVelocity(velX, -velY - (pos / 30));\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tobject.setPosition(maxPos + 250, maxPos + pos);\n\t\t\tobject.setVelocity(-velX, -velY - (pos / 30));\n\t\t\tbreak;\n\t\t}\n\t\treturn object;\n\t}", "@Override\n\tpublic void setupGame() {\n\t\tfinal int WORLDWIDTH = 980;\n\t\tfinal int WORLDHEIGHT = 581;\n\n\t\tcreateViewWithoutViewport(WORLDWIDTH, WORLDHEIGHT);\n\n\t\tstartButton = new StartButton(this, WORLDWIDTH / 2, WORLDHEIGHT / 2, 200 , 100);\n\t\taddGameObject(startButton);\n\n//\t\tthis.endScreen = new EndScreen(this);\n//\t\tthis.gameOver = false;\n//\n//\t\tcreateGameText();\n\t\tinitializeSound();\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 }", "SpawnController createSpawnController();" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets all project collaborators by project id
@Operation(summary = "Get all projectCollaborators by project id", security = { @SecurityRequirement(name = "bearer-key")}) @ApiResponses(value = { @ApiResponse(responseCode = "200", description = "Got all projectCollaborators by project id", content = { @Content(mediaType = "application/json", array = @ArraySchema(schema = @Schema(implementation = ProjectCollaborators.class)))}), @ApiResponse(responseCode = "400", description = "Illegal user tried to read", content = @Content), @ApiResponse(responseCode = "409", description = "No projectCollaborator found by id", content = @Content)}) @GetMapping("project/{id}/collaborators/") public ResponseEntity<List<ProjectCollaborators>> getProjectCollaboratorsByProjectId(@PathVariable(value = "id") Long id, @RequestHeader(value = "Authorization") String authHeader){ return projectCollaboratorsService.getAllByProjectId(id, authHeader); }
[ "@Operation(summary = \"Get a projectCollaborator by its id\", security = { @SecurityRequirement(name = \"bearer-key\")})\n @ApiResponses(value = {\n @ApiResponse(responseCode = \"200\", description = \"Found the projectCollaborator\",\n content = { @Content(mediaType = \"application/json\",\n schema = @Schema(implementation = ProjectCollaborators.class)) }),\n @ApiResponse(responseCode = \"409\", description = \"No projectCollaborator found by id\",\n content = @Content)})\n @GetMapping(\"/project/collaborators/{id}\")\n public ResponseEntity<ProjectCollaborators> getProjectCollaboratorsById(@PathVariable (value=\"id\") long id) {\n return projectCollaboratorsService.getById(id);\n }", "@Operation(summary = \"Get all projectCollaborators\", security = { @SecurityRequirement(name = \"bearer-key\")})\n @ApiResponses(value = {\n @ApiResponse(responseCode = \"200\", description = \"Got all projectCollaborators\",\n content = { @Content(mediaType = \"application/json\",\n array = @ArraySchema(schema = @Schema(implementation = ProjectCollaborators.class)))}) })\n @GetMapping(\"/project/collaborators\")\n public ResponseEntity<List<ProjectCollaborators>> getAllProjectCollaborators(){\n return projectCollaboratorsService.getAll();\n }", "public List<Integer> getCollaborators(IRepositoryIdProvider repoId) throws IOException {\n\t\tList<Integer> results = new ArrayList<Integer>();\n\t\t\n\t\tList<User> collab = collabService.getCollaborators(repoId);\n\t\tif (collab == null || collab.isEmpty())\n\t\t\treturn null;\n\t\tfor (User u : collab) {\n\t\t\tresults.add(u.getId());\n\t\t}\n\t\treturn results;\n\t}", "@Override\n public Observable<String> getListCollaborators(String listId)\n {\n return getKeysAt(getListCollaboratorsReference(listId), \"get userIds of list collaborators\");\n }", "public Set<GHUser> getCollaborators() throws IOException {\n Set<GHUser> r = new HashSet<GHUser>();\n for (String u : root.retrieve(\"/repos/show/\"+owner+\"/\"+name+\"/collaborators\",JsonCollaborators.class).collaborators)\n r.add(root.getUser(u));\n return Collections.unmodifiableSet(r);\n }", "@Override\n public List<Project> selectAllProjectsByUserId(UUID id) {\n // Get list of project ids associated with user\n final String SQL = \"SELECT id FROM project WHERE user_id = ?\";\n List<UUID> projectIds = jdbcTemplate.query(SQL, (resultSet, i) -> UUID.fromString(resultSet.getString(\"id\")) ,id);\n\n // Add projects\n List<Project> projects = new ArrayList<>();\n for (UUID uuid : projectIds) {\n selectProjectById(uuid).ifPresent(projects::add);\n }\n return projects;\n }", "public void getReposContributors(){\n SharedPreferences sharedPreferences = getActivity().getApplication().getSharedPreferences(\"data\", MODE_PRIVATE);\n String userLogin = sharedPreferences.getString(\"login\", \"\");\n String repoId = sharedPreferences.getString(\"repoId\", \"\");\n collaboratorsViewModel.searchReposCollaborators(userLogin,repoId);\n }", "List<User> findCollaborators(Repository repository);", "public Collaborator findById(int id) {\n return collaboratorDAO.findById(id);\n }", "public MultiValueMap<String, String> getCollaborators() {\n\t\tLinkedMultiValueMap<String, String> collaborators = new LinkedMultiValueMap<>();\n\t\tgetRepositories().forEach(repo -> collaborators.put(repo.slug(), repo.getCollaborators()));\n\t\treturn collaborators;\n\t}", "public Set<String> getCollaboratorLoginIds(GHRepository gitRepo) throws GitServiceException;", "List<Person> getContributors();", "public ArrayList<Collaborator> getAll() throws SQLException {\n return collaboratorDAO.getAll();\n }", "private DatabaseReference getListCollaboratorsReference(String listId)\n {\n return mDb.getReference(LIST_COLLABORATORS_NODE_NAME).child(listId);\n }", "private ProjectBaseBean[] getAllProjects() {\n ProjectBaseBean[] projects = ProjectServiceClient.findProjectsTM75(\"\");\n return projects;\n }", "public List<User> collaborators(String owner, String repo) {\n return apiClient.deserializeAsList(apiClient.get(String.format(\"/repos/%s/%s/collaborators\", owner, repo)), User.class);\n }", "public List<Project> getAllProjects();", "List<Project> findProjectsOfAccount(String username);", "@Transactional(readOnly = true)\n public List<TechPartnersDTO> findAllByCompetitorId(Long id) {\n log.debug(\"Request to get all TechPartners by competitor id {}\", id);\n return techPartnersRepository.findAllByCompetitorId(id).stream()\n .map(techPartnersMapper::toDto)\n .collect(Collectors.toCollection(LinkedList::new));\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the color for the inside of the circle of the given player
private int getInsideColorForPlayer(int player) { if (player == GameLogic.PLAYER_ONE) { return playerOneInsideColor; } else { return playerTwoInsideColor; } }
[ "private Color getPlayerColor(int player){\n\t\tColor pColor;\n\t\tswitch (this.groups[player]){ // adjust color based on what group of balls they're hitting\n\t\t\tcase Ball.TYPE_RED: pColor = new Color(200, 7, 23); break;\n\t\t\tcase Ball.TYPE_BLUE: pColor = new Color(10, 7, 200); break;\n\t\t\tcase 3: pColor = new Color(230, 210, 0); break; // color/type for winner (TODO: enum for player group?)\n\t\t\tdefault: pColor = Color.black; break;\n\t\t}\n\t\t// change color based on if they're allowed to place/hit the ball at the moment\n\t\tpColor = (this.turn==player && !this.table.moving) ? pColor : new Color(pColor.getRed(), pColor.getGreen(), pColor.getBlue(), (int)(0.4*255)); \n\t\treturn pColor;\n\t}", "HantoPlayerColor getColor();", "public int getColor() {\n return playerColor;\n }", "public Color getColor() {\n return circleColor;\n\n }", "PlayerColor getWinner();", "private int getColorForPlayer(int player) {\n if (player == GameLogic.PLAYER_ONE) {\n return playerOneColor;\n } else {\n return playerTwoColor;\n }\n }", "private CurrencyColor getSpawnpointColor(int r, int c) {\n if (r == 0){\n return CurrencyColor.RED;\n } else if (c == 0){\n return CurrencyColor.BLUE;\n } else return CurrencyColor.YELLOW;\n }", "HantoPlayerColor currentColor();", "public PlayerColor getColor() {\n return color;\n }", "public PlayerColor getOwner() {\n return ownership;\n }", "public Color getColor() {\n if (polar) {\n return Color.WHITE;\n } else {\n return Color.BLACK;\n }\n }", "public PieceColor getPlayerColor(){\n\t\treturn team;\n\t}", "public HantoPlayerColor getPlayerColor() {\n\t\treturn color;\n\t}", "public int getCurrentPlayerColor() {\n\n if (game != null && game.getState() != RiskGame.STATE_NEW_GAME) {\n return ((Player)game.getCurrentPlayer()).getColor();\n }\n else {\n return 0;\n }\n }", "public static Color getRemainsColorForPlayer(int player) {\n if (player >= remainsColors.length) {\n player = 0;\n }\n return remainsColors[player];\n }", "Color getColor(double position);", "public int getCircleColor() {\r\n\t\treturn mCircleColor;\r\n\t}", "public int getCircleColor() {\n\t\treturn mCircleColor;\n\t}", "private Player checkIfEatsGreenPlayer(Player player)\n {\n int x_cord = getMidPoint(player.x_cordinate);\n int y_cord = getMidPoint(player.y_cordinate);\n int green_x1 = getMidPoint(ludo.getGreenPlayer1().x_cordinate);\n int green_x2 = getMidPoint(ludo.getGreenPlayer2().x_cordinate);\n int green_x3 = getMidPoint(ludo.getGreenPlayer3().x_cordinate);\n int green_x4 = getMidPoint(ludo.getGreenPlayer4().x_cordinate);\n int green_y1 = getMidPoint(ludo.getGreenPlayer1().y_cordinate);\n int green_y2 = getMidPoint(ludo.getGreenPlayer2().y_cordinate);\n int green_y3 = getMidPoint(ludo.getGreenPlayer3().y_cordinate);\n int green_y4 = getMidPoint(ludo.getGreenPlayer4().y_cordinate);\n if (collisionDetection(x_cord, y_cord, green_x1, green_y1) == 1)\n {\n return green_player1;\n }\n else if (collisionDetection(x_cord, y_cord, green_x2, green_y2) == 1)\n {\n return green_player2;\n }\n else if (collisionDetection(x_cord, y_cord, green_x3, green_y3) == 1)\n {\n return green_player3;\n }\n else if (collisionDetection(x_cord, y_cord, green_x4, green_y4) == 1)\n {\n return green_player4;\n }\n else\n {\n return null;\n }\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Utility function to get a header value as a specified type. Returns null if the header does not exist.
protected final <T extends Object> T getHeaderAs(final String header, final Class<T> type) { Object headerValue = getHeaders().get(header); if (headerValue == null) { return null; } else if (type.isAssignableFrom(headerValue.getClass())) { return type.cast(headerValue); } else { throw new IllegalArgumentException( String.format("Header '%s' not of type %s, instead of type '%s'", header, type.getName(), headerValue.getClass().getName())); } }
[ "com.github.jtendermint.jabci.types.Types.Header getHeader();", "com.didiyun.base.v1.Header getHeader();", "java.lang.String getHeader();", "public String getHeader(String name) {\n\t\tHeader header = response.getFirstHeader(name);\n\t\tif (header == null) {\n\t\t\treturn null;\n\t\t}\n\t\treturn header.getValue();\n\t}", "String getFirstHeader ( String header );", "public jacob.scheduler.system.filescan.castor.HeaderType getHeader()\n {\n return this._header;\n }", "@Nullable\n public String getFirst(String name) {\n for (Header header : headers) {\n if (header.getName().equalsIgnoreCase(name)) {\n return header.getValue();\n }\n }\n return null;\n }", "Header getFirstHeader(final String key);", "HttpHeaderType createHttpHeaderType();", "com.github.jtendermint.jabci.types.Types.HeaderOrBuilder getHeaderOrBuilder();", "public Header getHeaderByKey(String key);", "@SuppressWarnings(\"deprecation\")\n default <T> T deserializeHeader(Header header, Type type) throws IOException {\n return deserialize(new HttpHeaders().add(header.getName(), header.getValue()), type);\n }", "public String findHeaderValue(String key) {\n var pair = _headers.stream()\n .filter(p -> p.a.equalsIgnoreCase(key))\n .findFirst();\n\n if (pair.isEmpty())\n return null;\n\n return pair.get().b;\n }", "public Header getHeader(String name) {\n\t\tfor (Header h : headers) {\n\t\t\tif (h.getName().contains(name)) {\n\t\t\t\treturn h;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public String find(String header) {\r\n\t\t\treturn headers.get(header);\r\n\t\t}", "public VCFHeader getHeader();", "private String readHeader(RoutingContext ctx) {\n String tok = ctx.request().getHeader(XOkapiHeaders.TOKEN);\n if (tok != null && ! tok.isEmpty()) {\n return tok;\n }\n return null;\n }", "public Bmv2ModelHeaderType headerType(String name) {\n return headerTypes.get(name);\n }", "public int getIntHeader(String name);" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by Apache iBATIS ibator. This method sets the value of the database column t_sys_dictionary.dic_key
public void setDicKey(String dicKey) { this.dicKey = dicKey; }
[ "public void setDictKey(Long dictKey) {\r\n\t\tthis.dictKey = dictKey;\r\n\t}", "public void setDictionaryKey(Integer dictionaryKey) {\n this.dictionaryKey = dictionaryKey;\n }", "public int updateDictData(SysDictData dictData);", "public void setInvoiceDictionaryKey(Long invoiceDictionaryKey) {\r\n this.invoiceDictionaryKey = invoiceDictionaryKey;\r\n }", "public void setInvoice_dictionary_id(long invoice_dictionary_id) {\r\n this.invoice_dictionary_id = invoice_dictionary_id;\r\n }", "public int updateDictType(SysDictType dictType);", "public void setDictionary(String content) {\n System.out.println(\"GAME INFO : Set dictionary content\");\n this.dictionaryContent = content;\n }", "public void setPkDict (com.liveneo.plat.hibernate.dao.BdDict pkDict) {\n\t\tthis.pkDict = pkDict;\n\t}", "public int insertDictType(SysDictType dictType);", "public void setDicType(String dicType) {\r\n this.dicType = dicType;\r\n }", "public void setDicIndex(String dicIndex) {\r\n this.dicIndex = dicIndex;\r\n }", "public void setDictContentId(String value) {\r\n setAttributeInternal(DICTCONTENTID, value);\r\n }", "public Long getDictKey() {\r\n\t\treturn dictKey;\r\n\t}", "public static void storeLookupDictionary(Context context, String deckPath, int dictionary) {\n openDBIfClosed(context);\n deckPath = stripQuotes(deckPath);\n Cursor cur = null;\n try {\n cur = mMetaDb.rawQuery(\"SELECT _id FROM customDictionary\" + \" WHERE deckpath = \\'\" + deckPath + \"\\'\", null);\n if (cur.moveToNext()) {\n mMetaDb.execSQL(\"UPDATE customDictionary \" + \"SET deckpath=\\'\" + deckPath + \"\\', \" + \"dictionary=\"\n + Integer.toString(dictionary) + \" \" + \"WHERE _id=\" + cur.getString(0) + \";\");\n Log.i(AnkiDroidApp.TAG, \"Store custom dictionary (\" + dictionary + \") for deck \" + deckPath);\n } else {\n mMetaDb.execSQL(\"INSERT INTO customDictionary (deckpath, dictionary) VALUES (?, ?)\", new Object[] {\n deckPath, dictionary });\n Log.i(AnkiDroidApp.TAG, \"Store custom dictionary (\" + dictionary + \") for deck \" + deckPath);\n }\n } catch (Exception e) {\n Log.e(\"Error\", \"Error storing custom dictionary to MetaDB \", e);\n } finally {\n if (cur != null && !cur.isClosed()) {\n cur.close();\n }\n }\n }", "public void setDataDictionaryService(DataDictionaryService dataDictionaryService) {\n this.dataDictionaryService = dataDictionaryService;\n }", "public void setDataDictionaryService(DataDictionaryService dataDictionaryService) {\r\n this.dataDictionaryService = dataDictionaryService;\r\n }", "public void setDictionaryService(DictionaryService dictionaryService)\n {\n this.dictionaryService = dictionaryService;\n }", "public void setDicName(String dicName) {\r\n this.dicName = dicName;\r\n }", "protected void setDictionaryService(DictionaryService dictionaryService) {\n this.dictionaryService = dictionaryService;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The Keyword Plan ad group to which this keyword belongs. .google.protobuf.StringValue keyword_plan_ad_group = 2;
com.google.protobuf.StringValue getKeywordPlanAdGroup();
[ "com.google.protobuf.StringValueOrBuilder getKeywordPlanAdGroupOrBuilder();", "com.google.ads.googleads.v6.resources.KeywordPlanAdGroup getKeywordPlanAdGroup();", "com.google.ads.googleads.v1.resources.KeywordPlanAdGroup getKeywordPlanAdGroup();", "com.google.ads.googleads.v6.resources.KeywordPlanAdGroupOrBuilder getKeywordPlanAdGroupOrBuilder();", "com.google.ads.googleads.v1.resources.KeywordPlanAdGroupOrBuilder getKeywordPlanAdGroupOrBuilder();", "com.google.ads.googleads.v6.resources.KeywordPlanAdGroupKeywordOrBuilder getKeywordPlanAdGroupKeywordOrBuilder();", "com.google.ads.googleads.v6.resources.KeywordPlanAdGroupKeyword getKeywordPlanAdGroupKeyword();", "com.google.protobuf.StringValue getKeywordPlanCampaign();", "com.google.protobuf.StringValueOrBuilder getKeywordPlanCampaignOrBuilder();", "com.google.protobuf.StringValue getAdGroup();", "com.google.ads.googleads.v6.resources.KeywordPlan getKeywordPlan();", "com.google.ads.googleads.v6.resources.KeywordPlanOrBuilder getKeywordPlanOrBuilder();", "com.google.ads.googleads.v1.resources.KeywordPlan getKeywordPlan();", "com.google.ads.googleads.v1.resources.KeywordPlanOrBuilder getKeywordPlanOrBuilder();", "com.google.ads.googleads.v6.resources.KeywordPlanCampaign getKeywordPlanCampaign();", "com.google.ads.googleads.v6.resources.KeywordPlanCampaignKeyword getKeywordPlanCampaignKeyword();", "com.google.ads.googleads.v1.resources.KeywordPlanKeyword getKeywordPlanKeyword();", "com.google.ads.googleads.v1.resources.KeywordPlanCampaign getKeywordPlanCampaign();", "com.google.ads.googleads.v6.resources.KeywordPlanCampaignOrBuilder getKeywordPlanCampaignOrBuilder();" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the deliveryID value for this MessageDeliveryStatus.
public java.lang.Long getDeliveryID() { return deliveryID; }
[ "public Integer getDelivery_id() {\n return delivery_id;\n }", "public Long getDeliveryAddrId() {\n return deliveryAddrId;\n }", "@JsonGetter(\"deliveryId\")\r\n public int getDeliveryId ( ) { \r\n return this.deliveryId;\r\n }", "public java.lang.String getDeliveryStatus() {\n return deliveryStatus;\n }", "public java.lang.String getDeliveryUnitId() {\n return deliveryUnitId;\n }", "public void setDeliveryId(final String deliveryId);", "public void setDelivery_id(Integer delivery_id) {\n this.delivery_id = delivery_id;\n }", "public java.lang.String getSzCdPaymentDelivery()\r\n {\r\n return this._szCdPaymentDelivery;\r\n }", "im.turms.common.constant.MessageDeliveryStatus getDeliveryStatus();", "public long getDeliveryTag() {\n return deliveryTag;\n }", "public int getBuildingDeliverySequence() {\n return buildingDeliverySequence;\n }", "public DeliveryType getDelivery() {\r\n\t\treturn (delivery == null) ? new DeliveryType() : delivery;\r\n\t}", "public String getDeliveryclass() {\n return deliveryclass;\n }", "public String getDeliveryType() {\n return deliveryType;\n }", "public Integer getProjectDeliverableId() {\r\n return this.projectDeliverableId;\r\n }", "@java.lang.Override\n public long getDeliveryPokemonId() {\n return deliveryPokemonId_;\n }", "public String getOcDeliveryStatus() {\n return ocDeliveryStatus;\n }", "int getDeliveryStatusValue();", "public String getOcDeliveryNum() {\n return ocDeliveryNum;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Updates the new section.
public int update (Section section) throws DataAccessException;
[ "public abstract void addSection();", "private void updateSection() {\n String mySurname = this.surnameCombo.getSelectedItem().toString();\n if (this.forenameCombo.getSelectedItem() != null) {\n String myForename = this.forenameCombo.getSelectedItem().toString();\n //Clear the section drop-down\n this.sectionCombo.removeAllItems();\n //Get the list section for the person and add to the Sections drop-down\n List<String> sections = pers.getSectionsforNames(myForename, mySurname);\n for (String str : sections) {\n this.sectionCombo.addItem(str);\n }\n this.updateText();\n }\n }", "public void setSection(GraphSection newSection) {\r\n\t\tsection.setSection(newSection);\r\n\t}", "void setSection(int number, Section section) throws RemoteException;", "public void finishEditSection(String usr, Section sec, ReadableByteChannel newContent) throws IOException {\n\t\t// Write on the file the whole Channel. No need to synchronize\n\t\t// because noone else can modify this section at this time.\n\t\tIOUtils.channelToFile(newContent, root.resolve(sec.getFullPath()));\n\t\t// Release edit lock on the section\n\t\ttry {\n\t\t\teditlock.lock();\n\t\t\tendcleanSectionEdit(usr, sec);\n\t\t}\n\t\tfinally {\n\t\t\teditlock.unlock();\n\t\t}\n\t}", "private void addSection() {\n\t\ttry {\n\t\t\t// Create locals variables from form field data.\n\t\t\tString section = txtSection.getText();\n\t\t\t// Check local variables to make sure each contains data before\n\t\t\t// committing to list.\n\t\t\tif (section.equals(\"\")) {\n\t\t\t\t// Notify user that all form fields must be completed.\n\t\t\t\tJOptionPane.showMessageDialog(frame,\n\t\t\t\t\t\t\"Please complete all fields!\");\n\t\t\t} else {\n\t\t\t\tsections.add(section);\n\t\t\t\t// Update section summary table.\n\t\t\t\tString[] rowData = { section };\n\t\t\t\ttableModelSections.addRow(rowData);\n\t\t\t\t// Clear section form fields.\n\t\t\t\tclearSectionFields();\n\t\t\t}\n\t\t} catch (HeadlessException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void createNewSection(String sectionName) {\n sectionName = sectionName.replaceAll(\"\\\\s|\\n\", \"\");\n sectionMap = new HashMap<String, String>();\n configData.put(sectionName, sectionMap);\n }", "Section createSection();", "public void addingSectionAfterSection()\n\t{\t\t\n\t\t//To check the status of \"Continued_Execution\" parameter, if it is set to NO it will skip this method, if not it will resume the execution \n\t\tif(oParameters.GetParameters(\"Continued_Execution\").equalsIgnoreCase(\"No\"))\n\t\t{\t\t\t\n\t\t\t//Adding step result to report\n\t\t\toReport.AddStepResult(\"Skipped Method :\", \"Skipped Method : \" + Thread.currentThread().getStackTrace()[1].getMethodName().toUpperCase(), \"INFO\");\n\t\t\treturn ;\n\t\t}\n\t\t\n\t\toExcelData.readExcelRow(\"C:\\\\CCM\\\\SupportingFiles\\\\\", \"RateSheets_TestData.xlsx\", \"RateSheetSection\", \"Section3\");\n\t\tAddSectionDetails(\"\", \"\");\n\n\t\tBy addedSection = By.xpath(\"//ul[@class='data-list'][@style='overflow: visible;']/li[4][contains(.,'\"+oParameters.GetParameters(\"SectionName\")+\"')]\");\n\n\t\twaitFor(addedSection, \"added new section\");\n\n\t\tif(IsDisplayed(\"Added Section\", addedSection))\n\t\t\toReport.AddStepResult(\"Added Section\",\"'\" + oParameters.GetParameters(\"SectionName\") + \" '\" + \" Section is added after\" + \"'\" + oParameters.GetParameters(\"AddSectionAfterBeforeSearch\") + \"'\" + \" Section\", \"PASS\");\n\t\telse\n\t\t\toReport.AddStepResult(\"Added Section\",\"Clicked on Add Section, selected 'Add Section After' from the drop down, selected Maximum Rate Type as 'Per Length of stay', filled all the mandatory fields and clicked on save but Section is not added after the selected section \",\"FAIL\");\n\t}", "public String setSection(String newSection)\n\t{\n\t\tchangeBeginning(\"problem section\");\n\t\tString oldSection = probSection;\n\t\tprobSection = newSection;\n\t\tmarkUnsaved();\n\t\treturn oldSection;\n\t}", "public void addSection(String section)\n {\n sections.add(section);\n }", "public void setSection( SectionModel section )\n\t{\n\t\ttry\n\t\t{\n\t\t\tmSections.set( indexOf( section ), section );\n\t\t}\n\t\tcatch( SectionNotFoundException e )\n\t\t{\n\t\t\tmSections.add( section );\n\t\t}\n\t}", "void renameSection(String sectionName, String newName);", "public void addingSectionWithExistingRateSheetSection()\n\t{\t\t\n\t\t//To check the status of \"Continued_Execution\" parameter, if it is set to NO it will skip this method, if not it will resume the execution \n\t\tif(oParameters.GetParameters(\"Continued_Execution\").equalsIgnoreCase(\"No\"))\n\t\t{\t\t\t\n\t\t\t//Adding step result to report\n\t\t\toReport.AddStepResult(\"Skipped Method :\", \"Skipped Method : \" + Thread.currentThread().getStackTrace()[1].getMethodName().toUpperCase(), \"INFO\");\n\t\t\treturn ;\n\t\t}\n\t\t\n\t\toExcelData.readExcelRow(\"C:\\\\CCM\\\\SupportingFiles\\\\\", \"RateSheets_TestData.xlsx\", \"RateSheetSection\", \"Section5\");\n\t\tAddSectionDetails(\"\", \"\");\t\n\n\t\tBy addedSection = By.xpath(\"//ul[@class='data-list'][@style='overflow: visible;']/li[contains(.,'\"+oParameters.GetParameters(\"SectionName\")+\"')]\");\n\n\t\tmouse_hover(\"Added Section\", addedSection);\n\n\t\tif(IsDisplayed(\"Added Section\", addedSection))\n\t\t\toReport.AddStepResult(\"Added Section\",\"New section is added which is copied from another Rate Sheet including Term Notes, Qualification Group Stop Loss and Exclusion\",\"PASS\");\n\t\telse\n\t\t\toReport.AddStepResult(\"Added Section\",\"Clicked on Add Section, filled section name, checked Copy section from existing Rate Sheet, selected Rate Sheet, Effective Period, Section and checked include term notes then Clicked on save but new term is not added\",\"FAIL\");\n\t}", "void updateSections() {\n List<AdapterSection> list = getSections();\n mSections.clear();\n for (AdapterSection section : list) {\n addSection(section);\n }\n notifyDataSetChanged();\n }", "void setSectionData(String section, Object data);", "private void addSection(AdapterSection section, int index) {\n int headerPos = 0;\n if (mSections.size() > 0) {\n int prevPos = mSections.get(mSections.size() - 1).first;\n headerPos = 1 + prevPos + mSections.get(mSections.size() - 1).second.getNbItems();\n }\n if (index != -1) {\n mSections.add(index, new Pair<>(headerPos, section));\n } else {\n mSections.add(new Pair<>(headerPos, section));\n }\n Log.i(LOG_TAG, \"New section \" + section.getTitle() + \", header at \" + headerPos + \" with nbItem \" + section.getNbItems());\n }", "public void onNewSectionButtonClicked() {\n TextSection textSection = textSectionList.getClass().equals(PdfCreationConfiguration.class) ? new MainSection(textSectionList.fontPresetList) : new Subsection(textSectionList.fontPresetList);\n textSectionList.getTextSectionList().add(textSection);\n openSection(textSection);\n }", "public void addSection( Section s ){\n\t\tsections.add( s );\n\t\tccl.add( s );\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Click on Invoice Link.
public zoho clickInvoiceLink() { invoice.click(); return this; }
[ "public void navigateToInvoicePage()\r\n\t{\r\n\t\tinvoiceLnk.click();\r\n\t}", "public void clickAwaitingInvoiceOnRCTI() {\r\n\t\tAwaitingInvoice_Link_RCTI.click();\r\n\t}", "public void clickPaidInvoicesOnRCTI() {\r\n\t\tPaidInvoices_Link_RCTI.click();\r\n\t}", "public void clickInvoicePreviewOnRCTI() {\r\n\t\tInvoicePreview_Link_RCTI.click();\r\n\t}", "@Given(\"^click on order page$\")\n\tpublic void click_on_order_page() {\n\t\thomePage.getOrderLink();\n\t}", "public void clickUnpaidInvoicesOnRCTI() {\r\n\t\tUnpaidInvoices_Link_RCTI.click();\r\n\t}", "public void clickClaimPreviewOnCommercial() {\r\n\t\tClaimPreview_Link_Commercial.click();\r\n\t}", "public void clickAccountLink(){\n\t\ttry{\n\t\t\tlink_account.click();\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void clickPaidCliamsOnCommercial() {\r\n\t\tAwaitingClaimPayment_Link_Commercial.click();\r\n\t}", "public void clickOnEmailLink1InFooter() {\n\t By element =By.xpath(\"//a[text()='CE at VIN' ]\");\n\t scrollIntoView(element);\n\t _normalWait(3000);\n\t waitAndClick(emailLink1InFooter);\n\t }", "public void I_Should_click_My_Account_link(){\n\t MyAccountLink.click();\n\t \n}", "public abstract PriceBookListPage clickPriceBookLink();", "public void clickViewLink() {\n getViewLink().click();\n }", "public void clickReportOnHSEQ() {\r\n\t\tReport_Link_HSEQ.click();\r\n\t}", "public void clickApprovedClaimsOnCommercial() {\r\n\t\tApprovedClaims_Link_Commercial.click();\r\n\t}", "public void clickAwaitingClaimOnCommercial() {\r\n\t\tAwaitingClaim_Link_Commercial.click();\r\n\t}", "public void clickAwaitingCliamPaymentOnCommercial() {\r\n\t\tAwaitingClaimPayment_Link_Commercial.click();\r\n\t}", "public void clickAuditOnHSEQ() {\r\n\t\tAudit_Link_HSEQ.click();\r\n\t}", "public void clickingOnGiftLink(WebDriver driver)\r\n\t {\r\n\t\t try\r\n\t\t {\r\n\t\t\t driver.manage().timeouts().implicitlyWait(10,TimeUnit.SECONDS);\r\n\t driver.findElement(By.xpath(\"//a[contains(text(),'Gift')]\")).click();\r\n\t\t\t log.info(\"Clicked on View/Edit Credits Link\");\r\n\t driver.manage().timeouts().implicitlyWait(5,TimeUnit.SECONDS); \r\n\t\t }catch(Exception e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the value of the 'Outer id' attribute. If the meaning of the 'Outer id' attribute isn't clear, there really should be more of a description here...
String getOuter_id();
[ "@Nonnegative\n\tpublic int getInnerId() {\n\t\tassert isInner() : \"Only inner nodes have valid inner node ids\";\n\t\treturn typeId;\n\t}", "public java.lang.String getOuterContextId() {\n java.lang.Object ref = outerContextId_;\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 outerContextId_ = s;\n return s;\n }\n }", "public java.lang.String getOuterContextId() {\n java.lang.Object ref = outerContextId_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n outerContextId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "java.lang.String getElid();", "public String getOuterUserId() {\n return outerUserId;\n }", "public com.google.protobuf.ByteString\n getOuterContextIdBytes() {\n java.lang.Object ref = outerContextId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n outerContextId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getOuterContextIdBytes() {\n java.lang.Object ref = outerContextId_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n outerContextId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "org.apache.xmlbeans.XmlString xgetIncidentId();", "public final String getId()\n {\n return element.getId();\n }", "org.apache.xmlbeans.XmlString xgetEntryId();", "public String uniqueIdentifier() {\n return this.innerProperties() == null ? null : this.innerProperties().uniqueIdentifier();\n }", "public String getElementId();", "public int getParentID()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PARENTID$2, 0);\n if (target == null)\n {\n return 0;\n }\n return target.getIntValue();\n }\n }", "String getRootId();", "public int getID(){\n\t\treturn this.EDGE_ID;\n\t}", "String getChildId();", "public String getId( Object inNode );", "public String getIdentity() { \n\t\treturn getIdentityElement().getValue();\n\t}", "long getParentId();" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
When zoom level is greater than zero, paints a small indicator at the bottom center of the screen showing the location of the zoom window within the overall DFT results window
private void paintZoomIndicator( Graphics2D graphics ) { if( mZoom != 0 ) { int width = getWidth() / 4; int x = ( getWidth() / 2 ) - ( width / 2 ); //Draw the outer window graphics.drawRect( x, getHeight() - 12, width, 10 ); int zoomWidth = width / getZoomMultiplier(); int windowOffset = 0; if( mDFTZoomWindowOffset != 0 ) { windowOffset = (int)( ( (double)mDFTZoomWindowOffset / (double)mDFTSize ) * width ); } //Draw the zoom window graphics.fillRect( x + windowOffset, getHeight() - 12, zoomWidth, 10 ); //Draw the zoom text graphics.drawString( "Zoom: " + getZoomMultiplier() + "x", x + width + 3, getHeight() - 2 ); } }
[ "public void zoomOUT() {\r\n if (zoomCounter > -1)\r\n zoomCounter--;\r\n animalMainWindow.zoom(false);\r\n\r\n if (generatorDemo != null) {\r\n generatorDemo.zoom(false);\r\n }\r\n\r\n if (scriptInputWindow != null) {\r\n scriptInputWindow.zoom(false);\r\n }\r\n\r\n }", "public float getMinimumZoomLevel();", "public void zoomIn() {\r\n if (zoomCounter < 6)\r\n zoomCounter++;\r\n animalMainWindow.zoom(true);\r\n\r\n if (generatorDemo != null) {\r\n generatorDemo.zoom(true);\r\n }\r\n if (scriptInputWindow != null) {\r\n scriptInputWindow.zoom(true);\r\n }\r\n\r\n }", "public double getZoomLevel();", "public void setZoomLevel(double zoomLevel);", "void zoom100() {\n gridScreen.setZoomLevel(1.0);\n }", "public double getZoomFactor();", "public void addZoomLevelProgress(int zoomLevel, int progress);", "@Override\n \tprotected double getFitPageZoomLevel() {\n \t\tdouble zoomLevel = 1D;\n \t\tif (viewer != null) {\n \t\t\tControl control = viewer.getControl();\n \t\t\tif (control instanceof GFFigureCanvas) {\n \t\t\t\tGFFigureCanvas gfFigureCanvas = (GFFigureCanvas) control;\n \t\t\t\tgfFigureCanvas.removeCornerPixels();\n \t\t\t\tzoomLevel = getFitXZoomLevel(2, gfFigureCanvas);\n \t\t\t\tgfFigureCanvas.setCornerPixels();\n \t\t\t\treturn zoomLevel;\n \t\t\t} else {\n \t\t\t\treturn super.getFitPageZoomLevel();\n \t\t\t}\n \t\t}\n \n \t\treturn super.getFitPageZoomLevel();\n \t}", "public void changeZoom();", "public abstract void Draw(Graphics2D g, double zoomFactor);", "double getZoom();", "public static String _btnzoomall_click() throws Exception{\nmostCurrent._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.GetController().SetZoom((int) (5));\n //BA.debugLineNum = 504;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "public void zoomIn() {\n if (scale < 0.8) {\n double scaleFactor = (scale + 0.03) / scale;\n currentXOffset = scaleFactor * (currentXOffset - viewPortWidth / 2) + viewPortWidth / 2;\n currentYOffset = scaleFactor * (currentYOffset - viewPortHeight / 2) + viewPortHeight / 2;\n scale += 0.03;\n\n selectionChanged = true;\n gameChanged = true;\n }\n\n }", "public float getMaximumZoomLevel();", "public void zoomIn() {\n zoom(defZoom);\n }", "public void zoom(double zoomFactor) throws RemoteException;", "private void previewXY() {\n Viewport tempViewport = new Viewport(chart.getMaximumViewport());\n // Make temp viewport smaller.\n float dx = tempViewport.width() / 4;\n float dy = tempViewport.height() / 4;\n tempViewport.inset(dx, dy);\n previewChart.setCurrentViewportWithAnimation(tempViewport);\n }", "int getMaximumZoomlevel();" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__XListLiteral__ElementsAssignment_3_0" $ANTLR start "rule__XListLiteral__ElementsAssignment_3_1_1" ../org.xtext.example.helloxcore.ui/srcgen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:15798:1: rule__XListLiteral__ElementsAssignment_3_1_1 : ( ruleXExpression ) ;
public final void rule__XListLiteral__ElementsAssignment_3_1_1() throws RecognitionException { int stackSize = keepStackSize(); try { // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:15802:1: ( ( ruleXExpression ) ) // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:15803:1: ( ruleXExpression ) { // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:15803:1: ( ruleXExpression ) // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:15804:1: ruleXExpression { if ( state.backtracking==0 ) { before(grammarAccess.getXListLiteralAccess().getElementsXExpressionParserRuleCall_3_1_1_0()); } pushFollow(FOLLOW_ruleXExpression_in_rule__XListLiteral__ElementsAssignment_3_1_131803); ruleXExpression(); state._fsp--; if (state.failed) return ; if ( state.backtracking==0 ) { after(grammarAccess.getXListLiteralAccess().getElementsXExpressionParserRuleCall_3_1_1_0()); } } } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { restoreStackSize(stackSize); } return ; }
[ "public final void rule__XListLiteral__ElementsAssignment_3_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:15787:1: ( ( ruleXExpression ) )\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:15788:1: ( ruleXExpression )\n {\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:15788:1: ( ruleXExpression )\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:15789:1: ruleXExpression\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXListLiteralAccess().getElementsXExpressionParserRuleCall_3_0_0()); \n }\n pushFollow(FOLLOW_ruleXExpression_in_rule__XListLiteral__ElementsAssignment_3_031772);\n ruleXExpression();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXListLiteralAccess().getElementsXExpressionParserRuleCall_3_0_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__XListLiteral__ElementsAssignment_3_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:17672:1: ( ( ruleXExpression ) )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:17673:1: ( ruleXExpression )\n {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:17673:1: ( ruleXExpression )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:17674:1: ruleXExpression\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXListLiteralAccess().getElementsXExpressionParserRuleCall_3_0_0()); \n }\n pushFollow(FOLLOW_ruleXExpression_in_rule__XListLiteral__ElementsAssignment_3_035595);\n ruleXExpression();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXListLiteralAccess().getElementsXExpressionParserRuleCall_3_0_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__XListLiteral__ElementsAssignment_3_1_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:17687:1: ( ( ruleXExpression ) )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:17688:1: ( ruleXExpression )\n {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:17688:1: ( ruleXExpression )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:17689:1: ruleXExpression\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXListLiteralAccess().getElementsXExpressionParserRuleCall_3_1_1_0()); \n }\n pushFollow(FOLLOW_ruleXExpression_in_rule__XListLiteral__ElementsAssignment_3_1_135626);\n ruleXExpression();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXListLiteralAccess().getElementsXExpressionParserRuleCall_3_1_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__XListLiteral__ElementsAssignment_3_0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:18015:1: ( ( ruleXExpression ) )\r\n // InternalDroneScript.g:18016:2: ( ruleXExpression )\r\n {\r\n // InternalDroneScript.g:18016:2: ( ruleXExpression )\r\n // InternalDroneScript.g:18017:3: ruleXExpression\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXListLiteralAccess().getElementsXExpressionParserRuleCall_3_0_0()); \r\n }\r\n pushFollow(FOLLOW_2);\r\n ruleXExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXListLiteralAccess().getElementsXExpressionParserRuleCall_3_0_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public final void rule__XListLiteral__ElementsAssignment_3_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:16639:1: ( ( ruleXExpression ) )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:16640:1: ( ruleXExpression )\n {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:16640:1: ( ruleXExpression )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:16641:1: ruleXExpression\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXListLiteralAccess().getElementsXExpressionParserRuleCall_3_0_0()); \n }\n pushFollow(FOLLOW_ruleXExpression_in_rule__XListLiteral__ElementsAssignment_3_033505);\n ruleXExpression();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXListLiteralAccess().getElementsXExpressionParserRuleCall_3_0_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__XListLiteral__ElementsAssignment_3_1_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:16654:1: ( ( ruleXExpression ) )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:16655:1: ( ruleXExpression )\n {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:16655:1: ( ruleXExpression )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:16656:1: ruleXExpression\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXListLiteralAccess().getElementsXExpressionParserRuleCall_3_1_1_0()); \n }\n pushFollow(FOLLOW_ruleXExpression_in_rule__XListLiteral__ElementsAssignment_3_1_133536);\n ruleXExpression();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXListLiteralAccess().getElementsXExpressionParserRuleCall_3_1_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__XListLiteral__Group_3_1__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:7676:1: ( ( ( rule__XListLiteral__ElementsAssignment_3_1_1 ) ) )\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:7677:1: ( ( rule__XListLiteral__ElementsAssignment_3_1_1 ) )\n {\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:7677:1: ( ( rule__XListLiteral__ElementsAssignment_3_1_1 ) )\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:7678:1: ( rule__XListLiteral__ElementsAssignment_3_1_1 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXListLiteralAccess().getElementsAssignment_3_1_1()); \n }\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:7679:1: ( rule__XListLiteral__ElementsAssignment_3_1_1 )\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:7679:2: rule__XListLiteral__ElementsAssignment_3_1_1\n {\n pushFollow(FOLLOW_rule__XListLiteral__ElementsAssignment_3_1_1_in_rule__XListLiteral__Group_3_1__1__Impl15779);\n rule__XListLiteral__ElementsAssignment_3_1_1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXListLiteralAccess().getElementsAssignment_3_1_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__XListLiteral__Group_3__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:7585:1: ( ( ( rule__XListLiteral__ElementsAssignment_3_0 ) ) )\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:7586:1: ( ( rule__XListLiteral__ElementsAssignment_3_0 ) )\n {\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:7586:1: ( ( rule__XListLiteral__ElementsAssignment_3_0 ) )\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:7587:1: ( rule__XListLiteral__ElementsAssignment_3_0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXListLiteralAccess().getElementsAssignment_3_0()); \n }\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:7588:1: ( rule__XListLiteral__ElementsAssignment_3_0 )\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:7588:2: rule__XListLiteral__ElementsAssignment_3_0\n {\n pushFollow(FOLLOW_rule__XListLiteral__ElementsAssignment_3_0_in_rule__XListLiteral__Group_3__0__Impl15598);\n rule__XListLiteral__ElementsAssignment_3_0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXListLiteralAccess().getElementsAssignment_3_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__XListLiteral__ElementsAssignment_3_1_1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:18030:1: ( ( ruleXExpression ) )\r\n // InternalDroneScript.g:18031:2: ( ruleXExpression )\r\n {\r\n // InternalDroneScript.g:18031:2: ( ruleXExpression )\r\n // InternalDroneScript.g:18032:3: ruleXExpression\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXListLiteralAccess().getElementsXExpressionParserRuleCall_3_1_1_0()); \r\n }\r\n pushFollow(FOLLOW_2);\r\n ruleXExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXListLiteralAccess().getElementsXExpressionParserRuleCall_3_1_1_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public final void rule__XListLiteral__Group_3_1__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:9282:1: ( ( ( rule__XListLiteral__ElementsAssignment_3_1_1 ) ) )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:9283:1: ( ( rule__XListLiteral__ElementsAssignment_3_1_1 ) )\n {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:9283:1: ( ( rule__XListLiteral__ElementsAssignment_3_1_1 ) )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:9284:1: ( rule__XListLiteral__ElementsAssignment_3_1_1 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXListLiteralAccess().getElementsAssignment_3_1_1()); \n }\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:9285:1: ( rule__XListLiteral__ElementsAssignment_3_1_1 )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:9285:2: rule__XListLiteral__ElementsAssignment_3_1_1\n {\n pushFollow(FOLLOW_rule__XListLiteral__ElementsAssignment_3_1_1_in_rule__XListLiteral__Group_3_1__1__Impl19033);\n rule__XListLiteral__ElementsAssignment_3_1_1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXListLiteralAccess().getElementsAssignment_3_1_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__XListLiteral__Group_3__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:9191:1: ( ( ( rule__XListLiteral__ElementsAssignment_3_0 ) ) )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:9192:1: ( ( rule__XListLiteral__ElementsAssignment_3_0 ) )\n {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:9192:1: ( ( rule__XListLiteral__ElementsAssignment_3_0 ) )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:9193:1: ( rule__XListLiteral__ElementsAssignment_3_0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXListLiteralAccess().getElementsAssignment_3_0()); \n }\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:9194:1: ( rule__XListLiteral__ElementsAssignment_3_0 )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:9194:2: rule__XListLiteral__ElementsAssignment_3_0\n {\n pushFollow(FOLLOW_rule__XListLiteral__ElementsAssignment_3_0_in_rule__XListLiteral__Group_3__0__Impl18852);\n rule__XListLiteral__ElementsAssignment_3_0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXListLiteralAccess().getElementsAssignment_3_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__XListLiteral__Group_3_1__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:8385:1: ( ( ( rule__XListLiteral__ElementsAssignment_3_1_1 ) ) )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:8386:1: ( ( rule__XListLiteral__ElementsAssignment_3_1_1 ) )\n {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:8386:1: ( ( rule__XListLiteral__ElementsAssignment_3_1_1 ) )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:8387:1: ( rule__XListLiteral__ElementsAssignment_3_1_1 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXListLiteralAccess().getElementsAssignment_3_1_1()); \n }\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:8388:1: ( rule__XListLiteral__ElementsAssignment_3_1_1 )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:8388:2: rule__XListLiteral__ElementsAssignment_3_1_1\n {\n pushFollow(FOLLOW_rule__XListLiteral__ElementsAssignment_3_1_1_in_rule__XListLiteral__Group_3_1__1__Impl17220);\n rule__XListLiteral__ElementsAssignment_3_1_1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXListLiteralAccess().getElementsAssignment_3_1_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__XSetLiteral__ElementsAssignment_3_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:15757:1: ( ( ruleXExpression ) )\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:15758:1: ( ruleXExpression )\n {\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:15758:1: ( ruleXExpression )\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:15759:1: ruleXExpression\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXSetLiteralAccess().getElementsXExpressionParserRuleCall_3_0_0()); \n }\n pushFollow(FOLLOW_ruleXExpression_in_rule__XSetLiteral__ElementsAssignment_3_031710);\n ruleXExpression();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXSetLiteralAccess().getElementsXExpressionParserRuleCall_3_0_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__XSetLiteral__ElementsAssignment_3_1_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:15772:1: ( ( ruleXExpression ) )\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:15773:1: ( ruleXExpression )\n {\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:15773:1: ( ruleXExpression )\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:15774:1: ruleXExpression\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXSetLiteralAccess().getElementsXExpressionParserRuleCall_3_1_1_0()); \n }\n pushFollow(FOLLOW_ruleXExpression_in_rule__XSetLiteral__ElementsAssignment_3_1_131741);\n ruleXExpression();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXSetLiteralAccess().getElementsXExpressionParserRuleCall_3_1_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__XListLiteral__Group_3__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:8294:1: ( ( ( rule__XListLiteral__ElementsAssignment_3_0 ) ) )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:8295:1: ( ( rule__XListLiteral__ElementsAssignment_3_0 ) )\n {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:8295:1: ( ( rule__XListLiteral__ElementsAssignment_3_0 ) )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:8296:1: ( rule__XListLiteral__ElementsAssignment_3_0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXListLiteralAccess().getElementsAssignment_3_0()); \n }\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:8297:1: ( rule__XListLiteral__ElementsAssignment_3_0 )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:8297:2: rule__XListLiteral__ElementsAssignment_3_0\n {\n pushFollow(FOLLOW_rule__XListLiteral__ElementsAssignment_3_0_in_rule__XListLiteral__Group_3__0__Impl17039);\n rule__XListLiteral__ElementsAssignment_3_0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXListLiteralAccess().getElementsAssignment_3_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__XListLiteral__Group_3__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:9237:1: ( ( ( rule__XListLiteral__ElementsAssignment_3_0 ) ) )\r\n // InternalDroneScript.g:9238:1: ( ( rule__XListLiteral__ElementsAssignment_3_0 ) )\r\n {\r\n // InternalDroneScript.g:9238:1: ( ( rule__XListLiteral__ElementsAssignment_3_0 ) )\r\n // InternalDroneScript.g:9239:2: ( rule__XListLiteral__ElementsAssignment_3_0 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXListLiteralAccess().getElementsAssignment_3_0()); \r\n }\r\n // InternalDroneScript.g:9240:2: ( rule__XListLiteral__ElementsAssignment_3_0 )\r\n // InternalDroneScript.g:9240:3: rule__XListLiteral__ElementsAssignment_3_0\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__XListLiteral__ElementsAssignment_3_0();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXListLiteralAccess().getElementsAssignment_3_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public final void rule__XSetLiteral__ElementsAssignment_3_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:17642:1: ( ( ruleXExpression ) )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:17643:1: ( ruleXExpression )\n {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:17643:1: ( ruleXExpression )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:17644:1: ruleXExpression\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXSetLiteralAccess().getElementsXExpressionParserRuleCall_3_0_0()); \n }\n pushFollow(FOLLOW_ruleXExpression_in_rule__XSetLiteral__ElementsAssignment_3_035533);\n ruleXExpression();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXSetLiteralAccess().getElementsXExpressionParserRuleCall_3_0_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__XListLiteral__Group_3_1__1__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:9317:1: ( ( ( rule__XListLiteral__ElementsAssignment_3_1_1 ) ) )\r\n // InternalDroneScript.g:9318:1: ( ( rule__XListLiteral__ElementsAssignment_3_1_1 ) )\r\n {\r\n // InternalDroneScript.g:9318:1: ( ( rule__XListLiteral__ElementsAssignment_3_1_1 ) )\r\n // InternalDroneScript.g:9319:2: ( rule__XListLiteral__ElementsAssignment_3_1_1 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXListLiteralAccess().getElementsAssignment_3_1_1()); \r\n }\r\n // InternalDroneScript.g:9320:2: ( rule__XListLiteral__ElementsAssignment_3_1_1 )\r\n // InternalDroneScript.g:9320:3: rule__XListLiteral__ElementsAssignment_3_1_1\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__XListLiteral__ElementsAssignment_3_1_1();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXListLiteralAccess().getElementsAssignment_3_1_1()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public final void rule__XSetLiteral__ElementsAssignment_3_1_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:17657:1: ( ( ruleXExpression ) )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:17658:1: ( ruleXExpression )\n {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:17658:1: ( ruleXExpression )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:17659:1: ruleXExpression\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXSetLiteralAccess().getElementsXExpressionParserRuleCall_3_1_1_0()); \n }\n pushFollow(FOLLOW_ruleXExpression_in_rule__XSetLiteral__ElementsAssignment_3_1_135564);\n ruleXExpression();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXSetLiteralAccess().getElementsXExpressionParserRuleCall_3_1_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the marker ID.
public String getMarkerId() { return markerId; }
[ "public int getMarker() {\n return this.marker;\n }", "public int getMarker() {\r\n\t\treturn this.marker;\r\n\t}", "private static int generateMarkerId(){\n return snextMarkerId.incrementAndGet();\n\n }", "public String getMarker() {\n return marker;\n }", "long getMapId();", "int getMapPointID();", "int getMapID();", "int getMapid();", "public Integer getMarkId()\n {\n return this.markId;\n }", "protected int getMarkerPosition() {\n\t\treturn valueToMarkerPosition(getValue());\n\t}", "public int[][] getMarker(){\n\t\treturn marker;\n\t}", "protected String markerName() {\n return (emptyString(markerPrefix)) ? DATA_MARKER : markerPrefix;\n }", "public String getMarkerOffset();", "public int getID() {\n\t\tif (tone.getNoteID() < 0) {\n\t\t\treturn -1;\n\t\t}\n\n\t\treturn (tone.getNoteID() + shift.getShiftID()) + (12 * octave) + 12;\n\t}", "public Marker getMarkerReference(){\r\n return mMarkerRef;\r\n }", "Marker getMarker();", "public String getClientMarker() {\n\t\treturn clientMarker;\n\t}", "int getLocationId();", "public java.lang.String getIdMark1 () {\n\t\treturn idMark1;\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "grammarSpec" $ANTLR start "actions" C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/DefineGrammarItemsWalker.g:158:1: actions : ( action )+ ;
public final void actions() throws RecognitionException { try { // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/DefineGrammarItemsWalker.g:159:2: ( ( action )+ ) // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/DefineGrammarItemsWalker.g:159:4: ( action )+ { // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/DefineGrammarItemsWalker.g:159:4: ( action )+ int cnt9=0; loop9: do { int alt9=2; int LA9_0 = input.LA(1); if ( (LA9_0==AMPERSAND) ) { alt9=1; } switch (alt9) { case 1 : // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/DefineGrammarItemsWalker.g:159:6: action { pushFollow(FOLLOW_action_in_actions257); action(); state._fsp--; if (state.failed) return ; } break; default : if ( cnt9 >= 1 ) break loop9; if (state.backtracking>0) {state.failed=true; return ;} EarlyExitException eee = new EarlyExitException(9, input); throw eee; } cnt9++; } while (true); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { // do for sure before leaving } return ; }
[ "public final void ruleAction(Rule r) throws RecognitionException {\r\n GrammarAST amp=null;\r\n GrammarAST id=null;\r\n GrammarAST a=null;\r\n\r\n try {\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/DefineGrammarItemsWalker.g:264:2: ( ^(amp= AMPERSAND id= ID a= ACTION ) )\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/DefineGrammarItemsWalker.g:264:4: ^(amp= AMPERSAND id= ID a= ACTION )\r\n {\r\n amp=(GrammarAST)match(input,AMPERSAND,FOLLOW_AMPERSAND_in_ruleAction623); if (state.failed) return ;\r\n\r\n match(input, Token.DOWN, null); if (state.failed) return ;\r\n id=(GrammarAST)match(input,ID,FOLLOW_ID_in_ruleAction627); if (state.failed) return ;\r\n\r\n a=(GrammarAST)match(input,ACTION,FOLLOW_ACTION_in_ruleAction631); if (state.failed) return ;\r\n\r\n match(input, Token.UP, null); if (state.failed) return ;\r\n\r\n\r\n if ( state.backtracking==0 ) {if (r!=null) r.defineNamedAction(amp,id,a);}\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n\r\n finally {\r\n \t// do for sure before leaving\r\n }\r\n return ;\r\n }", "public final void action() throws RecognitionException {\r\n GrammarAST amp=null;\r\n GrammarAST id1=null;\r\n GrammarAST id2=null;\r\n GrammarAST a1=null;\r\n GrammarAST a2=null;\r\n\r\n\r\n \tString scope=null;\r\n \tGrammarAST nameAST=null, actionAST=null;\r\n\r\n try {\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/DefineGrammarItemsWalker.g:168:2: ( ^(amp= AMPERSAND id1= ID (id2= ID a1= ACTION |a2= ACTION ) ) )\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/DefineGrammarItemsWalker.g:168:4: ^(amp= AMPERSAND id1= ID (id2= ID a1= ACTION |a2= ACTION ) )\r\n {\r\n amp=(GrammarAST)match(input,AMPERSAND,FOLLOW_AMPERSAND_in_action279); if (state.failed) return ;\r\n\r\n match(input, Token.DOWN, null); if (state.failed) return ;\r\n id1=(GrammarAST)match(input,ID,FOLLOW_ID_in_action283); if (state.failed) return ;\r\n\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/DefineGrammarItemsWalker.g:169:4: (id2= ID a1= ACTION |a2= ACTION )\r\n int alt10=2;\r\n int LA10_0 = input.LA(1);\r\n\r\n if ( (LA10_0==ID) ) {\r\n alt10=1;\r\n }\r\n else if ( (LA10_0==ACTION) ) {\r\n alt10=2;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return ;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 10, 0, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n switch (alt10) {\r\n case 1 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/DefineGrammarItemsWalker.g:169:6: id2= ID a1= ACTION\r\n {\r\n id2=(GrammarAST)match(input,ID,FOLLOW_ID_in_action292); if (state.failed) return ;\r\n\r\n a1=(GrammarAST)match(input,ACTION,FOLLOW_ACTION_in_action296); if (state.failed) return ;\r\n\r\n if ( state.backtracking==0 ) {scope=(id1!=null?id1.getText():null); nameAST=id2; actionAST=a1;}\r\n\r\n }\r\n break;\r\n case 2 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/DefineGrammarItemsWalker.g:171:6: a2= ACTION\r\n {\r\n a2=(GrammarAST)match(input,ACTION,FOLLOW_ACTION_in_action312); if (state.failed) return ;\r\n\r\n if ( state.backtracking==0 ) {scope=null; nameAST=id1; actionAST=a2;}\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n match(input, Token.UP, null); if (state.failed) return ;\r\n\r\n\r\n if ( state.backtracking==0 ) {\r\n \t\t grammar.defineNamedAction(amp,scope,nameAST,actionAST);\r\n \t\t }\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n\r\n finally {\r\n \t// do for sure before leaving\r\n }\r\n return ;\r\n }", "public final EObject ruleActionsDecl() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_1=null;\n EObject lv_actions_2_0 = null;\n\n\n enterRule(); \n \n try {\n // ../br.ufpe.cin.Tupi/src-gen/br/ufpe/cin/parser/antlr/internal/InternalTupi.g:796:28: ( ( () otherlv_1= 'actions' ( (lv_actions_2_0= ruleAction ) )* ) )\n // ../br.ufpe.cin.Tupi/src-gen/br/ufpe/cin/parser/antlr/internal/InternalTupi.g:797:1: ( () otherlv_1= 'actions' ( (lv_actions_2_0= ruleAction ) )* )\n {\n // ../br.ufpe.cin.Tupi/src-gen/br/ufpe/cin/parser/antlr/internal/InternalTupi.g:797:1: ( () otherlv_1= 'actions' ( (lv_actions_2_0= ruleAction ) )* )\n // ../br.ufpe.cin.Tupi/src-gen/br/ufpe/cin/parser/antlr/internal/InternalTupi.g:797:2: () otherlv_1= 'actions' ( (lv_actions_2_0= ruleAction ) )*\n {\n // ../br.ufpe.cin.Tupi/src-gen/br/ufpe/cin/parser/antlr/internal/InternalTupi.g:797:2: ()\n // ../br.ufpe.cin.Tupi/src-gen/br/ufpe/cin/parser/antlr/internal/InternalTupi.g:798:2: \n {\n if ( state.backtracking==0 ) {\n \n \t /* */ \n \t\n }\n if ( state.backtracking==0 ) {\n\n current = forceCreateModelElement(\n grammarAccess.getActionsDeclAccess().getActionsDeclAction_0(),\n current);\n \n }\n\n }\n\n otherlv_1=(Token)match(input,30,FOLLOW_30_in_ruleActionsDecl1522); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \tnewLeafNode(otherlv_1, grammarAccess.getActionsDeclAccess().getActionsKeyword_1());\n \n }\n // ../br.ufpe.cin.Tupi/src-gen/br/ufpe/cin/parser/antlr/internal/InternalTupi.g:810:1: ( (lv_actions_2_0= ruleAction ) )*\n loop17:\n do {\n int alt17=2;\n int LA17_0 = input.LA(1);\n\n if ( (LA17_0==RULE_ID) ) {\n alt17=1;\n }\n\n\n switch (alt17) {\n \tcase 1 :\n \t // ../br.ufpe.cin.Tupi/src-gen/br/ufpe/cin/parser/antlr/internal/InternalTupi.g:811:1: (lv_actions_2_0= ruleAction )\n \t {\n \t // ../br.ufpe.cin.Tupi/src-gen/br/ufpe/cin/parser/antlr/internal/InternalTupi.g:811:1: (lv_actions_2_0= ruleAction )\n \t // ../br.ufpe.cin.Tupi/src-gen/br/ufpe/cin/parser/antlr/internal/InternalTupi.g:812:3: lv_actions_2_0= ruleAction\n \t {\n \t if ( state.backtracking==0 ) {\n \t \n \t \t newCompositeNode(grammarAccess.getActionsDeclAccess().getActionsActionParserRuleCall_2_0()); \n \t \t \n \t }\n \t pushFollow(FOLLOW_ruleAction_in_ruleActionsDecl1543);\n \t lv_actions_2_0=ruleAction();\n\n \t state._fsp--;\n \t if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t \t if (current==null) {\n \t \t current = createModelElementForParent(grammarAccess.getActionsDeclRule());\n \t \t }\n \t \t\tadd(\n \t \t\t\tcurrent, \n \t \t\t\t\"actions\",\n \t \t\tlv_actions_2_0, \n \t \t\t\"Action\");\n \t \t afterParserOrEnumRuleCall();\n \t \t \n \t }\n\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop17;\n }\n } while (true);\n\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n leaveRule(); \n }\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "public final void ruleScopeSpec(Rule r) throws RecognitionException {\r\n AttributeScopeActions_stack.push(new AttributeScopeActions_scope());\r\n\r\n GrammarAST attrs=null;\r\n GrammarAST uses=null;\r\n\r\n\r\n \t((AttributeScopeActions_scope)AttributeScopeActions_stack.peek()).actions = new HashMap<GrammarAST, GrammarAST>();\r\n\r\n try {\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/DefineGrammarItemsWalker.g:292:2: ( ^( 'scope' ( ( attrScopeAction )* attrs= ACTION )? (uses= ID )* ) )\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/DefineGrammarItemsWalker.g:292:4: ^( 'scope' ( ( attrScopeAction )* attrs= ACTION )? (uses= ID )* )\r\n {\r\n match(input,SCOPE,FOLLOW_SCOPE_in_ruleScopeSpec724); if (state.failed) return ;\r\n\r\n if ( input.LA(1)==Token.DOWN ) {\r\n match(input, Token.DOWN, null); if (state.failed) return ;\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/DefineGrammarItemsWalker.g:293:4: ( ( attrScopeAction )* attrs= ACTION )?\r\n int alt27=2;\r\n int LA27_0 = input.LA(1);\r\n\r\n if ( (LA27_0==ACTION||LA27_0==AMPERSAND) ) {\r\n alt27=1;\r\n }\r\n switch (alt27) {\r\n case 1 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/DefineGrammarItemsWalker.g:293:6: ( attrScopeAction )* attrs= ACTION\r\n {\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/DefineGrammarItemsWalker.g:293:6: ( attrScopeAction )*\r\n loop26:\r\n do {\r\n int alt26=2;\r\n int LA26_0 = input.LA(1);\r\n\r\n if ( (LA26_0==AMPERSAND) ) {\r\n alt26=1;\r\n }\r\n\r\n\r\n switch (alt26) {\r\n \tcase 1 :\r\n \t // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/DefineGrammarItemsWalker.g:293:6: attrScopeAction\r\n \t {\r\n \t pushFollow(FOLLOW_attrScopeAction_in_ruleScopeSpec731);\r\n \t attrScopeAction();\r\n\r\n \t state._fsp--;\r\n \t if (state.failed) return ;\r\n\r\n \t }\r\n \t break;\r\n\r\n \tdefault :\r\n \t break loop26;\r\n }\r\n } while (true);\r\n\r\n\r\n attrs=(GrammarAST)match(input,ACTION,FOLLOW_ACTION_in_ruleScopeSpec736); if (state.failed) return ;\r\n\r\n if ( state.backtracking==0 ) {\r\n \t\t\t\t\tr.ruleScope = grammar.createRuleScope(r.name,attrs.getToken());\r\n \t\t\t\t\tr.ruleScope.isDynamicRuleScope = true;\r\n \t\t\t\t\tr.ruleScope.addAttributes((attrs!=null?attrs.getText():null), ';');\r\n \t\t\t\t\tfor (GrammarAST action : ((AttributeScopeActions_scope)AttributeScopeActions_stack.peek()).actions.keySet())\r\n \t\t\t\t\t\tr.ruleScope.defineNamedAction(action, ((AttributeScopeActions_scope)AttributeScopeActions_stack.peek()).actions.get(action));\r\n \t\t\t\t}\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/DefineGrammarItemsWalker.g:302:4: (uses= ID )*\r\n loop28:\r\n do {\r\n int alt28=2;\r\n int LA28_0 = input.LA(1);\r\n\r\n if ( (LA28_0==ID) ) {\r\n alt28=1;\r\n }\r\n\r\n\r\n switch (alt28) {\r\n \tcase 1 :\r\n \t // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/DefineGrammarItemsWalker.g:302:6: uses= ID\r\n \t {\r\n \t uses=(GrammarAST)match(input,ID,FOLLOW_ID_in_ruleScopeSpec757); if (state.failed) return ;\r\n\r\n \t if ( state.backtracking==0 ) {\r\n \t \t\t\t\t\tif ( grammar.getGlobalScope((uses!=null?uses.getText():null))==null ) {\r\n \t \t\t\t\t\tErrorManager.grammarError(ErrorManager.MSG_UNKNOWN_DYNAMIC_SCOPE,\r\n \t \t\t\t\t\tgrammar,\r\n \t \t\t\t\t\tuses.getToken(),\r\n \t \t\t\t\t\t(uses!=null?uses.getText():null));\r\n \t \t\t\t\t\t}\r\n \t \t\t\t\t\telse {\r\n \t \t\t\t\t\tif ( r.useScopes==null ) {r.useScopes=new ArrayList<String>();}\r\n \t \t\t\t\t\tr.useScopes.add((uses!=null?uses.getText():null));\r\n \t \t\t\t\t\t}\r\n \t \t\t\t\t}\r\n\r\n \t }\r\n \t break;\r\n\r\n \tdefault :\r\n \t break loop28;\r\n }\r\n } while (true);\r\n\r\n\r\n match(input, Token.UP, null); if (state.failed) return ;\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n\r\n finally {\r\n \t// do for sure before leaving\r\n AttributeScopeActions_stack.pop();\r\n\r\n }\r\n return ;\r\n }", "public void setActions(java.lang.String actions) {\n this.actions = actions;\n }", "ActionSequences createActionSequences();", "public void defineActions(Direction dir) {\n\n }", "ActionExpression createActionExpression();", "ActionSequence createActionSequence();", "public final void mNESTED_ACTION() throws RecognitionException {\n\t\ttry {\n\t\t\t// org/antlr/gunit/gUnit.g:304:15: ( '{' ( options {greedy=false; k=3; } : NESTED_ACTION | STRING_LITERAL | CHAR_LITERAL | . )* '}' )\n\t\t\t// org/antlr/gunit/gUnit.g:305:2: '{' ( options {greedy=false; k=3; } : NESTED_ACTION | STRING_LITERAL | CHAR_LITERAL | . )* '}'\n\t\t\t{\n\t\t\tmatch('{'); \n\t\t\t// org/antlr/gunit/gUnit.g:306:2: ( options {greedy=false; k=3; } : NESTED_ACTION | STRING_LITERAL | CHAR_LITERAL | . )*\n\t\t\tloop14:\n\t\t\twhile (true) {\n\t\t\t\tint alt14=5;\n\t\t\t\talt14 = dfa14.predict(input);\n\t\t\t\tswitch (alt14) {\n\t\t\t\tcase 1 :\n\t\t\t\t\t// org/antlr/gunit/gUnit.g:307:4: NESTED_ACTION\n\t\t\t\t\t{\n\t\t\t\t\tmNESTED_ACTION(); \n\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2 :\n\t\t\t\t\t// org/antlr/gunit/gUnit.g:308:4: STRING_LITERAL\n\t\t\t\t\t{\n\t\t\t\t\tmSTRING_LITERAL(); \n\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3 :\n\t\t\t\t\t// org/antlr/gunit/gUnit.g:309:4: CHAR_LITERAL\n\t\t\t\t\t{\n\t\t\t\t\tmCHAR_LITERAL(); \n\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4 :\n\t\t\t\t\t// org/antlr/gunit/gUnit.g:310:4: .\n\t\t\t\t\t{\n\t\t\t\t\tmatchAny(); \n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\n\t\t\t\tdefault :\n\t\t\t\t\tbreak loop14;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tmatch('}'); \n\t\t\t}\n\n\t\t}\n\t\tfinally {\n\t\t\t// do for sure before leaving\n\t\t}\n\t}", "public final void mT__53() throws RecognitionException {\n try {\n int _type = T__53;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // ../ca.queensu.cs.mase.urml/src-gen/ca/queensu/cs/mase/parser/antlr/internal/InternalUrml.g:52:7: ( 'action' )\n // ../ca.queensu.cs.mase.urml/src-gen/ca/queensu/cs/mase/parser/antlr/internal/InternalUrml.g:52:9: 'action'\n {\n match(\"action\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public void setAction(java.lang.String action);", "private interface ParsingAction {\n void execute(AfmParser parser, StringTokenizer st);\n }", "public void setActions(java.lang.Integer actions) {\r\n this.actions = actions;\r\n }", "public final void rule__AstAction__Group__3__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:12429:1: ( ( 'action' ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:12430:1: ( 'action' )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:12430:1: ( 'action' )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:12431:1: 'action'\n {\n before(grammarAccess.getAstActionAccess().getActionKeyword_3()); \n match(input,77,FOLLOW_77_in_rule__AstAction__Group__3__Impl25229); \n after(grammarAccess.getAstActionAccess().getActionKeyword_3()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "ActionDefinition createActionDefinition();", "protected void init_actions()\r\n {\r\n action_obj = new CUP$Parser$actions(this);\r\n }", "public interface ActionPattern extends EObject {\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @model kind=\"operation\"\n\t * @generated\n\t */\n\tEList<String> getPatternVariables();\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @model kind=\"operation\"\n\t * @generated\n\t */\n\tXExpression getGuardExpression();\n\n}", "public final void attrScope() throws RecognitionException {\r\n AttributeScopeActions_stack.push(new AttributeScopeActions_scope());\r\n\r\n GrammarAST name=null;\r\n GrammarAST attrs=null;\r\n\r\n\r\n \t((AttributeScopeActions_scope)AttributeScopeActions_stack.peek()).actions = new HashMap<GrammarAST, GrammarAST>();\r\n\r\n try {\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/DefineGrammarItemsWalker.g:130:2: ( ^( 'scope' name= ID ( attrScopeAction )* attrs= ACTION ) )\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/DefineGrammarItemsWalker.g:130:4: ^( 'scope' name= ID ( attrScopeAction )* attrs= ACTION )\r\n {\r\n match(input,SCOPE,FOLLOW_SCOPE_in_attrScope143); if (state.failed) return ;\r\n\r\n match(input, Token.DOWN, null); if (state.failed) return ;\r\n name=(GrammarAST)match(input,ID,FOLLOW_ID_in_attrScope147); if (state.failed) return ;\r\n\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/DefineGrammarItemsWalker.g:130:23: ( attrScopeAction )*\r\n loop2:\r\n do {\r\n int alt2=2;\r\n int LA2_0 = input.LA(1);\r\n\r\n if ( (LA2_0==AMPERSAND) ) {\r\n alt2=1;\r\n }\r\n\r\n\r\n switch (alt2) {\r\n \tcase 1 :\r\n \t // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/DefineGrammarItemsWalker.g:130:23: attrScopeAction\r\n \t {\r\n \t pushFollow(FOLLOW_attrScopeAction_in_attrScope149);\r\n \t attrScopeAction();\r\n\r\n \t state._fsp--;\r\n \t if (state.failed) return ;\r\n\r\n \t }\r\n \t break;\r\n\r\n \tdefault :\r\n \t break loop2;\r\n }\r\n } while (true);\r\n\r\n\r\n attrs=(GrammarAST)match(input,ACTION,FOLLOW_ACTION_in_attrScope154); if (state.failed) return ;\r\n\r\n match(input, Token.UP, null); if (state.failed) return ;\r\n\r\n\r\n if ( state.backtracking==0 ) {\r\n \t\t\tAttributeScope scope = grammar.defineGlobalScope((name!=null?name.getText():null),attrs.getToken());\r\n \t\t\tscope.isDynamicGlobalScope = true;\r\n \t\t\tscope.addAttributes((attrs!=null?attrs.getText():null), ';');\r\n \t\t\tfor (GrammarAST action : ((AttributeScopeActions_scope)AttributeScopeActions_stack.peek()).actions.keySet())\r\n \t\t\t\tscope.defineNamedAction(action, ((AttributeScopeActions_scope)AttributeScopeActions_stack.peek()).actions.get(action));\r\n \t\t}\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n\r\n finally {\r\n \t// do for sure before leaving\r\n AttributeScopeActions_stack.pop();\r\n\r\n }\r\n return ;\r\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Will compress an older renaming, by removing infrequent items. Contained arrays (except closure) will refer new item IDs
public int[] compressSortRenaming(int[] olderReverseRenaming) { if (olderReverseRenaming == null) { olderReverseRenaming = this.reverseRenaming; } this.rebasedDistinctTransactionsCounts = new int[this.nbFrequents]; this.rebasedSupportCounts = new int[this.nbFrequents]; this.reverseRenaming = new int[this.nbFrequents]; // first, compact // we will always have newItemID <= item int newItemIDBelowCandidate = 0; int newItemIDAboveCandidate = this.nbFrequents - 1; TIntIntIterator supportIterator = this.supportCounts.iterator(); // after this loop we have // reverseRenaming: NewBase (index) -> PreviousDatasetBase (value) // supportCounts: NewBase (index) -> Support (value) // distinctTransactionCount: NewBase (index) -> Count (value) while (supportIterator.hasNext()) { supportIterator.advance(); if (supportIterator.key() < this.maxCandidate) { this.reverseRenaming[newItemIDBelowCandidate] = supportIterator.key(); this.rebasedSupportCounts[newItemIDBelowCandidate] = supportIterator.value(); this.rebasedDistinctTransactionsCounts[newItemIDBelowCandidate] = this.distinctTransactionsCounts .get(supportIterator.key()); newItemIDBelowCandidate++; } else { this.reverseRenaming[newItemIDAboveCandidate] = supportIterator.key(); this.rebasedSupportCounts[newItemIDAboveCandidate] = supportIterator.value(); this.rebasedDistinctTransactionsCounts[newItemIDAboveCandidate] = this.distinctTransactionsCounts .get(supportIterator.key()); newItemIDAboveCandidate--; } } this.supportCounts = null; this.distinctTransactionsCounts = null; this.maxCandidate = newItemIDBelowCandidate; this.maxFrequent = this.nbFrequents - 1; // now, sort up to the pivot this.quickSortOnSup(0, this.maxCandidate); int[] renaming = new int[Math.max(olderReverseRenaming.length, this.rebasingSize)]; Arrays.fill(renaming, -1); // after this loop we have // reverseRenaming: NewBase (index) -> OriginalBase (value) // renaming: PreviousDatasetBase (index) -> NewBase (value) for (int i = 0; i <= this.maxFrequent; i++) { renaming[this.reverseRenaming[i]] = i; this.reverseRenaming[i] = olderReverseRenaming[this.reverseRenaming[i]]; } this.compactedArrays = true; return renaming; }
[ "public int[] compressRenaming(int[] olderReverseRenaming) {\n\t\tif (olderReverseRenaming == null) {\n\t\t\tolderReverseRenaming = this.reverseRenaming;\n\t\t}\n\t\tthis.rebasedDistinctTransactionsCounts = new int[this.nbFrequents];\n\t\tthis.rebasedSupportCounts = new int[this.nbFrequents];\n\t\tint[] renaming = new int[Math.max(olderReverseRenaming.length, this.rebasingSize)];\n\t\tArrays.fill(renaming, -1);\n\t\tthis.reverseRenaming = new int[this.nbFrequents];\n\n\t\t// we will always have newItemID <= item\n\t\tint newItemID = 0;\n\t\tint greatestBelowMaxCandidate = Integer.MIN_VALUE;\n\t\tint[] keys = this.supportCounts.keys();\n\t\tArrays.sort(keys);\n\t\tfor (int key : keys) {\n\t\t\trenaming[key] = newItemID;\n\t\t\tthis.reverseRenaming[newItemID] = olderReverseRenaming[key];\n\t\t\tthis.rebasedDistinctTransactionsCounts[newItemID] = this.distinctTransactionsCounts.get(key);\n\t\t\tthis.rebasedSupportCounts[newItemID] = this.supportCounts.get(key);\n\t\t\tif (key < this.maxCandidate) {\n\t\t\t\tgreatestBelowMaxCandidate = newItemID;\n\t\t\t}\n\t\t\tnewItemID++;\n\t\t}\n\t\tthis.supportCounts = null;\n\t\tthis.distinctTransactionsCounts = null;\n\t\tthis.maxCandidate = greatestBelowMaxCandidate + 1;\n\t\tthis.maxFrequent = this.nbFrequents - 1;\n\t\tthis.compactedArrays = true;\n\t\treturn renaming;\n\t}", "public void compress(){\r\n\t\tfor(int i = 0; i <= (this.size+1)/2; i++){\r\n\t\t\tthis.remove(i+1);\r\n\t\t}\r\n\t}", "protected void compress(){\r\n\t\t\r\n \tmodCount++;\r\n\t\tArrayNode<T> current = beginMarker.next;\r\n\t\t\r\n\t\t//find non-full node\r\n\t\twhile (current != endMarker){\r\n\t\t\tif (current.getLength()== current.getArraySize()){\r\n\t\t\t\tcurrent = current.next;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tArrayNode<T> removing = current.next;\r\n\t\t\t\t//compression done\r\n\t\t\t\tif (removing==endMarker){\r\n\t\t\t\t\t//remove empty nodes\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\t//empty node\r\n\t\t\t\twhile (removing.getArraySize()==0){\r\n\t\t\t\t\tremoving = removing.next;\r\n\t\t\t\t\tif (removing==endMarker)\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\t//not sure why this is needed\r\n\t\t\t\tif (removing==endMarker){\r\n\t\t\t\t\t//remove empty nodes\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\t//move elements from \"removing\" node to \"current\"\r\n\t\t\t\tT temp = removing.removeFirst();\r\n\t\t\t\tcurrent.insertSorted(temp);\r\n\t\t\t\t\r\n\t\t\t\t//check current length, go to next if full, otherwise redo loop\r\n\t\t\t\tif (current.getLength()==current.getArraySize()){\r\n\t\t\t\t\tcurrent = current.next;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t//do another sweep at end to remove empty nodes\r\n\t\tcurrent = beginMarker.next;\r\n\t\twhile (current != endMarker){\r\n\t\t\tif (current.getArraySize()==0){\r\n\t\t\t\tcurrent.prev.next = current.next;\r\n\t\t\t\tcurrent.next.prev = current.prev;\r\n\t\t\t\tcurrent = current.next;\r\n\t\t\t\tsize--;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tcurrent = current.next;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void unCompress()\n\t{\n\t\ttry\n\t\t{\n\t\t\tbyte[] buffer = new byte[4096];\n\t\t\tint bytesIn;\n\t\t\tZipFile rfoFile = new ZipFile(path + fileName);\n\t\t\tEnumeration<? extends ZipEntry> allFiles = rfoFile.entries();\n\t\t\twhile(allFiles.hasMoreElements())\n\t\t\t{\n\t\t\t\tZipEntry ze = (ZipEntry)allFiles.nextElement();\n\t\t\t\tInputStream is = rfoFile.getInputStream(ze);\n\t\t\t\tString fName = processSeparators(ze.getName());\n\t\t\t\tFile element = new File(tempDir + fName);\n\t\t\t\torg.reprap.Main.ftd.add(element);\n\t\t\t\tFileOutputStream os = new FileOutputStream(element);\n\t\t\t\twhile((bytesIn = is.read(buffer)) != -1) \n\t\t\t\t\tos.write(buffer, 0, bytesIn);\n\t\t\t\tos.close();\n\t\t\t}\n\t\t} catch (Exception e)\n\t\t{\n\t\t\tDebug.e(\"RFO.unCompress(): \" + e);\n\t\t}\n\t}", "private void buildNameMapAndArray(List slotNames)\n {\n m_oldNewNameMap = new HashMap();\n Set newNames = new HashSet();\n for (int i = 0; i < slotNames.size(); i++)\n {\n String oldName = (String) slotNames.get(i);\n String newName = InstallUtil.modifyName(oldName);\n\n // Make sure names are unique by appending trialing \"X\"\n while (newNames.contains(newName))\n newName += \"X\";\n //\n newNames.add(newName);\n m_oldNewNameMap.put(oldName, newName);\n }\n\n Iterator iter = m_oldNewNameMap.keySet().iterator();\n while (iter.hasNext())\n {\n String oldName = (String) iter.next();\n String newName = (String) m_oldNewNameMap.get(oldName);\n if (!oldName.equals(newName))\n m_oldNewNameModifiedMap.put(oldName, newName);\n }\n\n m_sortedSlotNames = (String[]) m_oldNewNameModifiedMap.keySet().toArray(\n new String[0]);\n Arrays.sort(m_sortedSlotNames, new Comparator()\n {\n public int compare(Object o1, Object o2)\n {\n return (((String) o2).length() - ((String) o1).length());\n }\n });\n\n }", "public void reclaim()\n {\n ArrayList<String> to_remove= new ArrayList<String>();\n \n for(String i:this.info.keySet())\n {\n for(String j:this.info.get(i).keySet())\n {\n //if the chunks deleted were enough to repair the current size so it is <= to max size\n if(this.max_size >= this.current_size)\n return;\n\n String path=\"./files/server/\"+this.server_number+\"/backup/\"+i+\"/\"+j;\n File delete= new File(path);\n\n if(delete.exists())\n {\n this.current_size-=delete.length();\n delete.delete();\n to_remove.add(i + \" \" +j);\n\n this.sendRemovedMessage(i,j);\n }\n }\n }\n\n for(int i=0;i<to_remove.size();i++)\n {\n String[] splited=to_remove.get(i).split(\" \");\n this.info.get(splited[0]).remove(splited[1]);\n }\n this.info_io.saveInfo();\n }", "void removeGssExportedName(int i);", "Object removeTemp(String name);", "private void compress()\n\t{\n\t\ttry\n\t\t{\n\t\t\tZipOutputStream rfoFile = new ZipOutputStream(new FileOutputStream(path + fileName)); \n\t\t\tFile dirToZip = new File(rfoDir); \n\t\t\tString[] fileList = dirToZip.list(); \n\t\t\tbyte[] buffer = new byte[4096]; \n\t\t\tint bytesIn = 0; \n\n\t\t\tfor(int i=0; i<fileList.length; i++) \n\t\t\t{ \n\t\t\t\tFile f = new File(dirToZip, fileList[i]); \n\t\t\t\tFileInputStream fis = new FileInputStream(f); \n\t\t\t\tString zEntry = f.getPath();\n\t\t\t\t//System.out.println(\"\\n\" + zEntry);\n\t\t\t\tint start = zEntry.indexOf(uniqueName);\n\t\t\t\tzEntry = zEntry.substring(start + uniqueName.length() + 1, zEntry.length());\n\t\t\t\t//System.out.println(tempDir);\n\t\t\t\t//System.out.println(zEntry + \"\\n\");\n\t\t\t\tZipEntry entry = new ZipEntry(zEntry); \n\t\t\t\trfoFile.putNextEntry(entry); \n\t\t\t\twhile((bytesIn = fis.read(buffer)) != -1) \n\t\t\t\t\trfoFile.write(buffer, 0, bytesIn); \n\t\t\t\tfis.close();\n\t\t\t}\n\t\t\trfoFile.close();\n\t\t} catch (Exception e)\n\t\t{\n\t\t\tDebug.e(\"RFO.compress(): \" + e);\n\t\t}\n\t}", "private void removeFromQueue (Parcel[] packagesAssigned){\n\n }", "public LinearGenomeShrinkMutation(){\n\t\tnumberGenesToRemove = 1;\n\t}", "private static void rebuildNamesList() {\n names.clear();\n names.ensureCapacity(playlists.size());\n names.addAll(playlists.keySet());\n Collections.sort(names, String.CASE_INSENSITIVE_ORDER);\n }", "private String mapNameIfQualityFlag(String array_name) {\n\t if (qfMap != null) {\n\t\t if (qfMap.containsKey(array_name)) {\n\t\t\t origName = array_name;\n\t\t\t QualityFlag qf = qfMap.get(array_name);\n\t\t\t String mappedName = qf.getPackedName();\n\t\t\t logger.debug(\"Key: \" + array_name + \" mapped to: \" + mappedName);\n\t\t\t return mappedName;\n\t\t }\n\t }\n\t return array_name;\n }", "private int shrinkArray(VisitorAccepter[] array, int length)\n {\n int counter = 0;\n\n // Shift the used objects together.\n for (int index = 0; index < length; index++)\n {\n VisitorAccepter visitorAccepter = array[index];\n\n if (usageMarker.isUsed(visitorAccepter))\n {\n array[counter++] = visitorAccepter;\n }\n }\n\n // Clear any remaining array elements.\n if (counter < length)\n {\n Arrays.fill(array, counter, length, null);\n }\n\n return counter;\n }", "private void rehash() {\n\t\tint oldSize = this.size;\n\t\tint newSize = size * 2;\n\t\twhile (!isPrime(newSize))\n\t\t\tnewSize++;\n\t\tthis.size = newSize;\n\t\tDataItem[] newHashArray = new DataItem[newSize];\n\t\tString temp;\n\t\tthis.collision = 0;\n\t\tBoolean repeatValue;\n\t\tfor (int i = 0; i < oldSize; i++) {\n\t\t\tif (hashArray[i] != null && hashArray[i] != deleted)\n\t\t\t\ttemp = hashArray[i].value;\n\t\t\telse\n\t\t\t\tcontinue;\n\t\t\trepeatValue = false;\n\t\t\tint hashVal = hashFunc(temp);\n\t\t\tboolean collisionFlag = false;\n\t\t\twhile (newHashArray[hashVal] != null\n\t\t\t\t\t&& !newHashArray[hashVal].value.equals(deleted.value)) {\n\n\t\t\t\tif (!collisionFlag) {\n\n\t\t\t\t\tthis.collision++;\n\t\t\t\t\tcollisionFlag = true;\n\n\t\t\t\t}\n\t\t\t\thashVal++;\n\t\t\t\thashVal = hashVal % size;\n\n\t\t\t}\n\t\t\tif (repeatValue)\n\t\t\t\tcontinue;\n\t\t\telse {\n\t\t\t\tnewHashArray[hashVal] = hashArray[i];\n\t\t\t}\n\t\t}\n\n\t\tthis.hashArray = newHashArray;\n\t}", "private void shrink() {\n int shrinkSize = array.length>>1;\n array = Arrays.copyOf(array, shrinkSize);\n }", "@SuppressWarnings( \"unchecked\" )\n private void rehash() {\n this.expand++;\n\n if (this.printStats) {\n printStatistics();\n }\n\n // reset instance variables\n this.numElem = 0;\n this.collision = 0;\n this.longestChain = 0;\n\n LinkedList[] original = this.array;\n LinkedList[] doubleSize = new LinkedList[EXPAND_FACTOR * this.array.length];\n this.array = doubleSize;\n\n int bucket = 0;\n while (bucket < original.length) {\n // only iterate non-empty buckets\n if (original[bucket] != null) {\n for (Object key : original[bucket]) {\n insert((String) key);\n }\n }\n bucket++;\n }\n }", "void anonymizeEntries( List<Integer> listIdEntries, Timestamp dateCleanTo, Plugin plugin );", "public static void dropAllExceptOne(String ...names){\n RSItem[] inven = Inventory.getAll();\n LinkedList<RSItem> drop = new LinkedList<RSItem>();\n for (RSItem item : inven){//iterate through inventory\n boolean toDrop = true;//assume that we will drop the item\n for (int i = 0; i < names.length; i++){//iterate through items we will only keep one of\n if(item.getDefinition().getName().equals(names[i])) {//if this item is one we need to keep...\n toDrop = false;//we will not drop this item\n names[i] = \"\";//we won't keep this item in future iterations, change it's value to an empty string\n }\n }\n if(toDrop)//we decided to drop the item\n drop.add(item);\n }\n for (RSItem item : drop)//drop all unwanted items\n Inventory.drop(item);\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the request converters of the annotated service object.
public AnnotatedServiceRegistrationBean setRequestConverters( Collection<? extends RequestConverterFunction> requestConverters) { this.requestConverters = requestConverters; return this; }
[ "public AnnotatedServiceRegistrationBean setRequestConverters(\n RequestConverterFunction... requestConverters) {\n return setRequestConverters(ImmutableList.copyOf(requestConverters));\n }", "public Collection<? extends RequestConverterFunction> getRequestConverters() {\n return requestConverters;\n }", "public AnnotatedServiceRegistrationBean setResponseConverters(\n ResponseConverterFunction... responseConverters) {\n return setResponseConverters(ImmutableList.copyOf(responseConverters));\n }", "public AnnotatedServiceRegistrationBean setResponseConverters(\n Collection<? extends ResponseConverterFunction> responseConverters) {\n this.responseConverters = responseConverters;\n return this;\n }", "protected abstract void registerDefaultConverters();", "@Override\n\tpublic void extendMessageConverters(List<HttpMessageConverter<?>> converters) {\n\t\tfor (HttpMessageConverter<?> obj: converters) {\n\t\t\tif (obj instanceof StringHttpMessageConverter) {\n\t\t\t\tStringHttpMessageConverter strMsgConv = (StringHttpMessageConverter) obj;\n\t\t\t\tstrMsgConv.setDefaultCharset(Charset.forName(\"UTF-8\"));\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "public void setConverter(Converter converter) {\n this.converter = converter;\n }", "public void setConverter( ValueConverter valueConverter, Class... classesToConvert ) {\n for( Class clazz: classesToConvert ) {\n converters.put( clazz, valueConverter );\n }\n }", "private UserServiceConverter(Converter<Service, ServiceDetail> serviceConverter) {\n // Spring instantiates converters - see converters.xml\n Validate.notNull(serviceConverter);\n this.serviceConverter = serviceConverter;\n }", "public void setValueConverter(Converter valueConverter) {\n this.valueConverter = valueConverter;\n }", "@Override\n public void extendMessageConverters(List<HttpMessageConverter<?>> converters) {\n converters.replaceAll(converter -> {\n if (converter instanceof MappingJackson2HttpMessageConverter) {\n return new MappingJackson2HttpMessageConverter(objectMapper);\n } else {\n return converter;\n }\n });\n }", "private void addConverter() {\n Map<String, String> ruleRegistry = (Map<String, String>) context.getObject(CoreConstants.PATTERN_RULE_REGISTRY);\n if (ruleRegistry == null) {\n ruleRegistry = new HashMap<String, String>();\n context.putObject(CoreConstants.PATTERN_RULE_REGISTRY, ruleRegistry);\n }\n ruleRegistry.putIfAbsent(CensorConstants.CENSOR_RULE_NAME, CensorConverter.class.getName());\n }", "public RestConverterList.Builder converters() {\n\t\t\tif (converters == null)\n\t\t\t\tconverters = createConverters(beanStore(), resource());\n\t\t\treturn converters;\n\t\t}", "@Deprecated\n public static void setTypeConverter(Map context, TypeConverter converter) {\n // no-op\n }", "@SafeVarargs\n\t\tpublic final Builder converters(Class<? extends RestConverter>...value) {\n\t\t\tconverters().append(value);\n\t\t\treturn this;\n\t\t}", "public void setConverter(final StringConverter<T> value) {\n\n this.converterProperty.set(value);\n }", "MemberMetadata setConverter(AttributeConverter<?, ?> conv);", "protected void loadDefaultConverters() {\n if (converters == null) {\n converters = new ReferenceMap<Class<?>, Converter<?>>(ReferenceType.WEAK, ReferenceType.STRONG);\n } else {\n converters.clear();\n }\n // order is not important here but maintain alpha order for readability\n converters.put(BigDecimal.class, new BigDecimalConverter());\n converters.put(BigInteger.class, new BigIntegerConverter());\n converters.put(Boolean.class, new BooleanConverter());\n converters.put(Byte.class, new ByteConverter());\n converters.put(Calendar.class, new CalendarConverter());\n converters.put(Character.class, new CharacterConverter());\n converters.put(Class.class, new ClassConverter());\n converters.put(Collection.class, new CollectionConverter());\n converters.put(Date.class, new DateConverter());\n converters.put(Double.class, new DoubleConverter());\n converters.put(Enum.class, new EnumConverter());\n converters.put(File.class, new FileConverter());\n converters.put(Float.class, new FloatConverter());\n converters.put(Integer.class, new IntegerConverter());\n converters.put(Long.class, new LongConverter());\n converters.put(Map.class, new MapConverter());\n converters.put(Number.class, new NumberConverter());\n converters.put(Short.class, new ShortConverter());\n converters.put(String.class, new StringConverter());\n converters.put(java.sql.Date.class, new SQLDateConverter());\n converters.put(java.sql.Time.class, new SQLTimeConverter());\n converters.put(java.sql.Timestamp.class, new TimestampConverter());\n converters.put(URL.class, new URLConverter());\n }", "public Collection<? extends ResponseConverterFunction> getResponseConverters() {\n return responseConverters;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Fetch records that have sourceLongitude IN (values)
public List<models.garaDB.tables.pojos.Ride> fetchBySourcelongitude(Double... values) { return fetch(Ride.RIDE.SOURCELONGITUDE, values); }
[ "public List<models.garaDB.tables.pojos.Ride> fetchBySourcelatitude(Double... values) {\n return fetch(Ride.RIDE.SOURCELATITUDE, values);\n }", "List<Spatial> findSpatialsByLatBetweenAndLonBetweenAndTimestampAfter(double latStart,double latEnd, double lonStart, double lonEnd,long timestamp);", "public synchronized List<WiFiLocation> getLocationsFromArea(\r\n\t\t\tdouble latitudeFrom, double longitudeFrom, double latitudeTo,\r\n\t\t\tdouble longitudeTo) {\r\n\r\n\t\tif (areaChanged(latitudeFrom, longitudeFrom, latitudeTo, longitudeTo)) {\r\n\t\t\tthis.latitudeFrom = latitudeFrom;\r\n\t\t\tthis.longitudeFrom = longitudeFrom;\r\n\t\t\tthis.latitudeTo = latitudeTo;\r\n\t\t\tthis.longitudeTo = longitudeTo;\r\n\t\t\tresetLocationsFromAreaList();\r\n\t\t}\r\n\r\n\t\tif (locationsFromAreaList == null) {\r\n\r\n\t\t\tlocationsFromAreaList = new ArrayList<WiFiLocation>();\r\n\r\n\t\t\tString sqlQuery;\r\n\r\n\t\t\t/*\r\n\t\t\t * since latitude is capped on 90 and -90 degrees latitude from\r\n\t\t\t * should always be smaller than latitude to\r\n\t\t\t */\r\n\t\t\tif (longitudeFrom <= longitudeTo) {\r\n\t\t\t\tsqlQuery = \"SELECT * FROM \" + Definitions.Location.TABLE_NAME\r\n\t\t\t\t\t\t+ \" WHERE \" + Definitions.Location._ID\r\n\t\t\t\t\t\t+ \" IN ( SELECT \" + Definitions.Location._ID + \" FROM \"\r\n\t\t\t\t\t\t+ Definitions.Location.TABLE_NAME + \" WHERE \"\r\n\t\t\t\t\t\t+ Definitions.Location.LATITUDE + \" >= ? AND \"\r\n\t\t\t\t\t\t+ Definitions.Location.LATITUDE\r\n\t\t\t\t\t\t+ \" <= ? INTERSECT SELECT \" + Definitions.Location._ID\r\n\t\t\t\t\t\t+ \" FROM \" + Definitions.Location.TABLE_NAME\r\n\t\t\t\t\t\t+ \" WHERE \" + Definitions.Location.LONGITUDE\r\n\t\t\t\t\t\t+ \" >= ? AND \" + Definitions.Location.LONGITUDE\r\n\t\t\t\t\t\t+ \" <= ? );\";\r\n\r\n\t\t\t} else {\r\n\t\t\t\tsqlQuery = \"SELECT * FROM \" + Definitions.Location.TABLE_NAME\r\n\t\t\t\t\t\t+ \" WHERE \" + Definitions.Location._ID\r\n\t\t\t\t\t\t+ \" IN ( SELECT \" + Definitions.Location._ID + \" FROM \"\r\n\t\t\t\t\t\t+ Definitions.Location.TABLE_NAME + \" WHERE \"\r\n\t\t\t\t\t\t+ Definitions.Location.LATITUDE + \" >= ? AND \"\r\n\t\t\t\t\t\t+ Definitions.Location.LATITUDE\r\n\t\t\t\t\t\t+ \" <= ? INTERSECT SELECT \" + Definitions.Location._ID\r\n\t\t\t\t\t\t+ \" FROM \" + Definitions.Location.TABLE_NAME\r\n\t\t\t\t\t\t+ \" WHERE ( \" + Definitions.Location.LONGITUDE\r\n\t\t\t\t\t\t+ \" >= ? AND \" + Definitions.Location.LONGITUDE\r\n\t\t\t\t\t\t+ \" <= 180.0 ) OR (\" + Definitions.Location.LONGITUDE\r\n\t\t\t\t\t\t+ \" <= ? \" + \" AND \" + Definitions.Location.LONGITUDE\r\n\t\t\t\t\t\t+ \" >= -180.0 ));\";\r\n\t\t\t}\r\n\r\n\t\t\t// if (log.isDebugEnabled()) {\r\n\t\t\t// log.debug(\"DbAdapter.getLocationsFromArea(): query: \"\r\n\t\t\t// + sqlQuery);\r\n\t\t\t// }\r\n\r\n\t\t\tCursor c = getDatabase().rawQuery(\r\n\t\t\t\t\tsqlQuery,\r\n\t\t\t\t\tnew String[] { Double.toString(latitudeFrom),\r\n\t\t\t\t\t\t\tDouble.toString(latitudeTo),\r\n\t\t\t\t\t\t\tDouble.toString(longitudeFrom),\r\n\t\t\t\t\t\t\tDouble.toString(longitudeTo) });\r\n\r\n\t\t\tif (c.moveToFirst()) {\r\n\t\t\t\tdo {\r\n\t\t\t\t\tWiFiLocation location = new WiFiLocation(\r\n\t\t\t\t\t\t\tc.getLong(c\r\n\t\t\t\t\t\t\t\t\t.getColumnIndex(Definitions.Location._ID)),\r\n\t\t\t\t\t\t\tc.getDouble(c\r\n\t\t\t\t\t\t\t\t\t.getColumnIndex(Definitions.Location.LATITUDE)),\r\n\t\t\t\t\t\t\tc.getDouble(c\r\n\t\t\t\t\t\t\t\t\t.getColumnIndex(Definitions.Location.LONGITUDE)),\r\n\t\t\t\t\t\t\tc.getFloat(c\r\n\t\t\t\t\t\t\t\t\t.getColumnIndex(Definitions.Location.ACCURACY)));\r\n\t\t\t\t\tlocation.setName(c.getString(c\r\n\t\t\t\t\t\t\t.getColumnIndex(Definitions.Location.NAME)));\r\n\t\t\t\t\tlocation.setCreatedDateTime(c.getLong(c\r\n\t\t\t\t\t\t\t.getColumnIndex(Definitions.Location.CREATED_DATE)));\r\n\t\t\t\t\tlocationsFromAreaList.add(location);\r\n\t\t\t\t\t// if (log.isDebugEnabled()) {\r\n\t\t\t\t\t// log.debug(\"DbAdapter.getLocationsFromArea(): location \"\r\n\t\t\t\t\t// + location.getId() + \" (\"\r\n\t\t\t\t\t// + location.getLatitude() + \", \"\r\n\t\t\t\t\t// + location.getLongitude()\r\n\t\t\t\t\t// + \") added to the list\");\r\n\t\t\t\t\t// }\r\n\t\t\t\t} while (c.moveToNext());\r\n\t\t\t}\r\n\t\t\tc.close();\r\n\t\t}\r\n\r\n\t\treturn locationsFromAreaList;\r\n\t}", "public RegistroCheckin[] findWhereLatitudEquals(double latitud) throws RegistroCheckinDaoException;", "Collection<? extends Object> getHasLongitude();", "public List<models.garaDB.tables.pojos.Ride> fetchByDestinationlatitude(Double... values) {\n return fetch(Ride.RIDE.DESTINATIONLATITUDE, values);\n }", "boolean hasHasLongitude();", "public List<models.garaDB.tables.pojos.Ride> fetchByDestinationlongitude(Double... values) {\n return fetch(Ride.RIDE.DESTINATIONLONGITUDE, values);\n }", "List<LocatedObject> getLocatedObjects(double latitude, double longitude);", "public List<org.openforis.users.jooq.tables.pojos.OfUser> fetchByLat(BigDecimal... values) {\n return fetch(OfUser.OF_USER.LAT, values);\n }", "List<Media> search(double latitude, double longitude, long maxTimeStamp, long minTimeStamp, int distance);", "Collection<? extends Object> getHasLatitude();", "@Dimensional(designDocument = \"userGeo\", spatialViewName = \"byLocation\")\n List<User> findByLocationWithin(Box cityBoundingBox);", "List<ParkingSpot> querySpots(LatLng destination, int radius) {\n //Get the spots from the database that are within a SQUARE bounding box\n BoundingBox rawBBox = getSquareBoundingBox(destination, radius);\n\n List<ParkingSpot> rawCompatibleSpots = queryDB(SELECT FROM spots WHERE\n latitude > rawBBox.sw.latitude AND\n latitude < rawBBox.ne.latutude AND\n longitude > rawBBox.sw.longitude AND\n longitude < rawBBox.ne.longitude AND\n status = F); //THIS LINE IS VERY PSEUDO, implement the query however you like\n\n List<ParkingSpot> compatibleSpots = new ArrayList<>();\n //foreach statement running through every ParkingSpot in rawCompatibleSpots\n //rawCompatibleSpots contains the spots in the square bounding box, but must be checked to see if they are in the circle search area\n for (ParkingSpot checkSpot : rawCompatibleSpots) {\n if (haversine(destination, checkSpot.latLng) < radius) compatibleSpots.add(checkSpot); //if the distance between the spot and the destination is under the radius, add to the final list of good spots\n }\n\n return compatibleSpots;\n}", "List<Media> search(double latitude, double longitude);", "List<QueryResult> lookup(List<GHPoint> points);", "public Cliente[] findWhereLatitudEquals(String latitud) throws ClienteDaoException;", "public com.apatar.cdyne.ws.demographix.SummaryInformation getLocationInformationByLatitudeLongitude(java.math.BigDecimal latitude, java.math.BigDecimal longitude, java.lang.String licenseKey) throws java.rmi.RemoteException;", "public int getLongitudeRange();" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
2. WAP to print following output: I am Batman 1 I am Batman 2 I am Batman 3 I am Batman 4 I am Batman 5 I am Batman 6 I am Batman 7 I am Batman 8 I am Batman 9
public static void main(String[] args) { for(int i=1; i<=9; i++) { System.out.println("I am Batman " +i); } System.out.println("***********************************************"); // WAP to print following output: I am Batman // * // * I am Batman // * I am Batman // * I am Batman // * I am Batman for(int q=0; q<=6; q++) { System.out.println("I am Batman"); } }
[ "private void printNumbers()\n {\n System.out.print(\" \" + \" \" + \" 1 \");\n for (int i = 2; i <= size; i++)\n {\n System.out.print(i + \" \");\n }\n System.out.println();\n }", "public static void m13() {\r\n\tfor(int i=1;i<=4;i++) {\r\n\t\tfor(int j =1;j<=(4-i);j++) {\r\n\t\t\tSystem.out.print(\" \");\r\n\t\t}\r\n\t\tchar ch ='A';\r\n\t\tfor(int j=1;j<=i;j++) {\r\n\t\t\tSystem.out.print(ch+\" \");\r\n\t\t\tch++;\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t}\r\n}", "public static void main(String[] args) {\n List<String > teamMates = new ArrayList<>();\n teamMates.add(\"Ayse\");\n teamMates.add(\"Mustafa\");\n teamMates.add(\"Zeynep\");\n teamMates.add(\"Yusuf\");\n teamMates.add(\"Ibrahim\");\n teamMates.add(\"Emin\");\n\n System.out.println(\"teamMates = \" + teamMates);\n\n //first item and last item\n System.out.println(\"teamMates.get(0) = \" + teamMates.get(0));\n\n int lastItemIndex = teamMates.size()-1;\n\n System.out.println(\"last item = \" + teamMates.get(lastItemIndex));\n\n //print one by one\n\n for (int i = 0; i < teamMates.size() ; i++) {\n\n System.out.println(\"item = \" + teamMates.get(i));\n\n }\n\n System.out.println(\"\\n All Items in reverse order\");\n for (int x = lastItemIndex ; x >= 0 ; x--){\n System.out.println(\"item \" + (x+1) + \" = \" + teamMates.get(x ));\n }\n //pritn 2 items at a time\n //for example ; 1-2, 2-3, 3-4\n System.out.println(\"\\n print 2 items at a time\");\n for (int x = 0; x <= teamMates.size()-2; x++) {\n System.out.println(\"\\t\"+ teamMates.get(x) +\"----\" + teamMates.get(x+1));\n }\n //pritn 2 items at a time\n //for example ; 1-2, 3-4, 5-6\n System.out.println(\"\\n print 2 items at a time without repeating\");\n\n for (int x = 0; x <= teamMates.size()-2 ; x+=2) {\n System.out.println(\"\\t\"+ teamMates.get(x) +\"----\" + teamMates.get(x+1));\n\n }\n\n //concat everyone in one string separated by -\n \n String result= \"\";\n for (int i = 0; i <teamMates.size() ; i++) {\n result =result + teamMates.get(i) ;\n if(i !=teamMates.size()-1){\n result+=\"-\";\n }\n }\n System.out.println(\"result = \" + result);\n \n //TODO\n String lstToString = teamMates.toString();\n System.out.println(\"lstToString.replace(\\\",\\\" ,\\\" -\\\") = \" + lstToString.replace(\",\", \" -\")\n .replace(\"[\",\"\")\n .replace(\"]\",\"\"));\n\n\n\n\n\n\n }", "public static void printNum() {\n\t\tfor(int i = 1; i<= 20; i++) {\n\t\t\tSystem.out.print(\" \" + i);\n\t\t}\n\t\tSystem.out.println(\"\\n\");\n\t\t}", "public static void printMultiples(){\n\t\tint i = 7;\n\t\twhile(i<500){\n\t\t\tSystem.out.println(i);\n\t\t\ti=i+7;\n\t\t}\n\t}", "public static void main(String[] args) {\n\n\n for (int i=11; i<=121; i+=2){\n System.out.print(i +\" \");\n }\n\n }", "public static void m7() {\r\n\tchar ch ='A';\r\n\tfor(int i=1;i<=5;i++) {\r\n\t\tfor(int j =1;j<=i;j++)\r\n\t\t{\r\n\t\t\tSystem.out.print(ch);\r\n\t\t}\r\n\t\tch++;\r\n\t\tSystem.out.println();\r\n\t}\r\n}", "public static void main(String[] args) {\n\n for (int i = 80; i >= 20 ; i--) {\n if (i % 2 ==0 ){\n System.out.print(i + \" \");\n }\n\n\n }\n\n\n }", "public void print() {\n int n = getSeq().size();\n int m = n / printLength;\n for (int i = 0; i < m; i++) {\n printLine(i * printLength, printLength);\n }\n printLine(n - n % printLength, n % printLength);\n System.out.println();\n }", "public static void m5() {\r\nfor(int i =1;i<=5;i++) {\r\n\tchar ch ='A';\r\n\tfor(int j =1;j<=i;j++) {\r\n\t\tSystem.out.print(ch);\r\n\t\tch++;\r\n\t}\r\n\tSystem.out.println();\r\n}\t\r\n}", "public static void main(String[] args) {\n\n\t\tint ct = 1, a = 0;\n\t\tint numbers = 100;\n\t\tList<String> pattern = new ArrayList<>();\n\t\tint[] array1 = new int[50];\n\n\t\twhile (numbers > 0) {\n\t\t\tfor (int i = 0; i < 10; i++) {\n\t\t\t\tSystem.out.print(\" \" + numbers);\n\t\t\t\tarray1[a] = numbers;\n\t\t\t\tnumbers -= ct;\n\t\t\t\ta++;\n\n\t\t\t}\n\t\t\tct++;\n\t\t}\n\t\tSystem.out.println(\" \");\n\n\t}", "public static void main(String[] args) {\n\t\tfor(int i = 1; i < 5; i++) {\r\n\t\t\tSystem.out.print(i + \", \");\r\n\t\t}\r\n\t\tSystem.out.print(\"5\");\r\n\t\tSystem.out.println();\r\n\t\t\r\n\t\tSystem.out.print(\"1\");\r\n\t\tfor(int j = 2; j<=5; j++) {\r\n\t\t\tSystem.out.print(\", \" + j);\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println();\r\n\t\t\r\n\t\tfor(int k = 1;k <= 5; k++) {\r\n\t\t\tSystem.out.print(k);\r\n\t\t\tif(k < 5) {\r\n\t\t\t\tSystem.out.print(\", \");\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t}", "void print5times() {\n\t\tfor (int i=0;i<5;i++) {\n\t\t\tSystem.out.println(\"Batch 9 is great\");\n\t\t}\n\t}", "public static void print1To100() {\n\t\tfor (int i = 1; i <= 100; i++) {\n\t\t\tif (i % 3 == 0 && i % 5 == 0) {\n\t\t\t\tSystem.out.println(\"WizeLine\");\n\t\t\t} else if (i % 3 == 0) {\n\t\t\t\tSystem.out.println(\"Wize\");\n\t\t\t} else if (i % 5 == 0) {\n\t\t\t\tSystem.out.println(\"Line\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(i);\n\t\t\t}\n\t\t}\n\t}", "public void printBag() {\n\t\tint i = 0;\n\t\tfor (i = 0; i < size; i++) {\n\t\t\t((PieceMove) items[i]).print();\n\t\t}\n\t\t\n\t\tSystem.out.println(i);\n\t}", "public static void printOdd() {\n\t\t\t\tfor(int i=200; i>=33; i=i-1) { \n\t\t\t\t\tSystem.out.print(i + \" \");\n\t\t\t\t}\n\t\t\t\t\n\t\t}", "public static void printMultiply() {\n\t\t\t\tint count=1;\n\t\t\t\tfor(int i=15; i>7; i--) {\n\t\t\t\t\t\n\t\t\t\t\tcount=count*i;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tSystem.out.println(count + \" \");\n\t\t\t\t\n\t\t\t}", "public static void main(String[] args) {\n\t\t\n\t\t\n\tfor (int a=1; a<=5; a++)\t {\n\t\tfor (int b=1; b<=(5-a); b++) {\n\t\t\tSystem.out.print(\".\");\n\t\t}\n\t\tSystem.out.println(a);\n\t\t\n\t}\t\n\t}", "public void showDeck(){\n\t // your code goes here. \n\t\tint j = 0;\n\t\tfor (int i = 0; i < 4; i++) {\n\t for (int k = 0; k < 13; k++) {\n\t System.out.print(deck[j++] + \" \");\n\t }\n\t System.out.println();\n\t }\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Delete car brand by id from database
@Override public void deleteCarBrand(Long id) { LOG.info("Delete car brand with id == " + id + " ...."); String deleteUserById = "DELETE FROM car_brand where id=" + id; try (Statement stmt = CONNECT.createStatement();) { stmt.executeUpdate(deleteUserById); LOG.info("Car brand with id == " + id + ", deleted successfully!"); } catch (SQLException e) { e.printStackTrace(); LOG.warning("Same problem in \"deleteCarBrand\" method, " + this.getClass()); } }
[ "public void deleteBrand(Integer id);", "@Test\n public void deleteBrandTest() throws ApiException {\n Integer brandId = null;\n api.deleteBrand(brandId);\n // TODO: test validations\n }", "@Override\n public void delete(String id) {\n log.debug(\"Request to delete Brand : {}\", id);\n brandRepository.deleteById(id);\n brandSearchRepository.deleteById(id);\n }", "void removeCar(int carId);", "public void deleteCar(Car car) {\n DatabaseManager.deleteCar(car);\n }", "@DeleteMapping(\"/filter-brands/{id}\")\n @Timed\n public ResponseEntity<Void> deleteFilterBrand(@PathVariable Long id) {\n log.debug(\"REST request to delete FilterBrand : {}\", id);\n filterBrandRepository.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }", "public void deleteCarManufacturer (CarManufacturer carManufacturer){\n SQLiteDatabase db = this.getWritableDatabase();\n db.delete(TABLE_CARMANUFACTURER, KEY_ID + \" = ? \", new String[] { String.valueOf(carManufacturer.getID())});\n db.close();\n }", "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete CatCarburant : {}\", id);\n catCarburantRepository.delete(id);\n }", "@Test\n\t// @Ignore\n\tpublic void whenValidBrandId_thenBrandRemoved() throws IOException, Exception {\n\t\t// Data preparation\n\t\tString accessToken = obtainAccessToken(\"sayedbaladoh\", \"sayedbaladoh\");\n\t\tBrand brand = createTestBrand(\"Nissan_Test\");\n\n\t\t// Method call and Verification\n\t\tmvc.perform(delete(API_URL + \"/\" + brand.getId())\n\t\t\t\t.header(\"Authorization\", \"Bearer \" + accessToken)\n\t\t\t\t.contentType(MediaType.APPLICATION_JSON)\n\t\t\t\t.content(JsonUtil.toJson(brand)))\n\t\t\t\t.andExpect(status().isOk());\n\t}", "public void delete(Long id) {\n log.debug(\"Request to delete Bo2mCar : {}\", id);\n bo2mCarRepository.deleteById(id);\n bo2mCarSearchRepository.deleteById(id);\n }", "public void delete(Long id) {\n\n Optional<Car> optionalCar = repository.findById(id);\n if(optionalCar.isPresent()) {\n repository.delete(optionalCar.get());\n }\n else {\n throw new CarNotFoundException(String.format(\"Vehicle with id %s not found\", id));\n }\n }", "public void deleteVehicleById(int id);", "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete SysShoppingCar : {}\", id);\n sysShoppingCarRepository.deleteById(id);\n }", "public void deletBidByCar(Long id) {\n\t\tbrepo.deleteAllByCar_id(id);\n\t}", "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete Carte : {}\", id);\n carteRepository.deleteById(id);\n }", "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete EntreeCarburant : {}\", id);\n entreeCarburantRepository.delete(id);\n }", "public void delete(int id){\n assetRepository.deleteById(id);\n }", "protected void deleteCar(Car car) {\n\t\tSession session = factory.openSession();\n\t\tTransaction tx = null;\n\t\t\n\t\ttry {\n\t\t\ttx = session.beginTransaction();\n\t\t\tsession.delete(car);\n\t\t\ttx.commit();\n\t\t} catch (HibernateException e) {\n\t\t\tif(tx != null) tx.rollback();\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tsession.close();\n\t\t}\n\t}", "void unsetBrandID();" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Visit a list node of members
public Object visit(MemberList node) { for (ASTNode child : node) child.accept(this); return null; }
[ "ListIterator<IMember> members();", "java.util.List<SSIT.proto.Unetmgr.MemberInfo> \n getMemberListList();", "List<S> memberOf(String memberUuid);", "List<? extends ManagerDeviceMemberElement> listDeviceMembers() throws Exception;", "public io.etcd.jetcd.api.MemberListResponse memberList(io.etcd.jetcd.api.MemberListRequest request) {\n return blockingUnaryCall(\n getChannel(), getMemberListMethod(), getCallOptions(), request);\n }", "public List<? extends Type> getMembers();", "public void setMembers(ArrayList<Member> members) {\n\t\tthis.members = members;\n\t}", "java.util.List<? extends SSIT.proto.Unetmgr.MemberInfoOrBuilder> \n getMemberListOrBuilderList();", "public void setMembers(\n final List<MemberType> members)\n {\n this.members = members;\n }", "void updateMembers(List<InetSocketAddress> newMembers);", "InstrumentedType withNestMembers(TypeList nestMembers);", "void insertMembers(List members) {\r\n\t\tif (member == EmptyStructures.EMPTY_LIST) {\r\n\t\t\tmember = new LinkedList();\r\n\t\t}\r\n\t\tmember.addAll(0, members);\r\n\t}", "public com.google.common.util.concurrent.ListenableFuture<io.etcd.jetcd.api.MemberListResponse> memberList(\n io.etcd.jetcd.api.MemberListRequest request) {\n return futureUnaryCall(\n getChannel().newCall(getMemberListMethod(), getCallOptions()), request);\n }", "List<S> memberOf(T member);", "public List<Member> members() {\n return list;\n }", "public List<member> getMembersList() {\t\t\n\t\treturn new ArrayList<member>(members.values()); \n\t}", "public PageList<Member> listMembers(Path id, Path memberName, Integer kindId, OrderSpecifier id_asc, Page page);", "int getMemberListCount();", "@Override\r\n public void printListOfMember() {\n for (DefaultMember member : memberList) {\r\n System.out.println(\"===========================================\");\r\n System.out.println(\"Membership Number : \" + member.getMembershipNumber() + \" \");\r\n if (member instanceof StudentMember) { //to test member is instance of Membership types(StudentMember,Over60Member,DefaultMember)\r\n System.out.println(\"Member type is : StudentMember\");\r\n System.out.println(\"School Name:\" + ((StudentMember) member).getSchoolName());\r\n } else if (member instanceof Over60Member) {\r\n System.out.println(\"Member type is : Over60Member\");\r\n System.out.println(\"Age :\" + ((Over60Member) member).getAge());\r\n } else {\r\n System.out.println(\"Member type is: DefaultMember\");\r\n }\r\n //Printing the details of members ====================================\r\n System.out.println(\"First Name is :\" + member.getName() + \" \");\r\n System.out.println(\"NIC Number is :\" + member.getPhoneNumber() + \" \");\r\n System.out.println(\"Contact Number is :\" + member.getNicNumber() + \" \");\r\n System.out.println(\"Membership start date is :\" + member.getStartMembershipDate());\r\n\r\n }\r\n if (memberList.size() == 0) {\r\n System.out.println(\"Empty List\"); //If the details display the message\r\n }\r\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column x_user.unionid
public String getUnionid() { return unionid; }
[ "public String getUnionId() {\n return unionId;\n }", "public void setUnionId(String unionId) {\n this.unionId = unionId;\n }", "public int getUnionidAccountid() {\n return unionidAccountid_;\n }", "int getUnionidAccountid();", "public int getUnionidAccountid() {\n return unionidAccountid_;\n }", "public void setUnionid(String unionid) {\r\n\t\tthis.unionid = unionid;\r\n\t}", "public java.lang.Long getUnionLong() {\n return unionLong;\n }", "public void setUnionId(String unionId) {\n this.unionId = unionId == null ? null : unionId.trim();\n }", "public java.lang.Long getUnionLong() {\n return unionLong;\n }", "public String getUnionAnthor() {\n return unionAnthor;\n }", "public Integer getuId() {\n return uId;\n }", "public abstract Integer getUtilisateurId();", "@Override\n\tpublic Employee getUnionMember(int memberId) {\n\t\treturn unionMembers.get(memberId);\n\t}", "public Integer getU_ID()\n {\n return this.U_ID;\n }", "@Select({ \"select\", \"id, sign_user_id, user_name, address, chain_id, group_id, user_status, gmt_create, \", \"gmt_modified, description\", \"from tb_user\", \"where id = #{id,jdbcType=INTEGER}\" })\n @Results({ @Result(column = \"id\", property = \"id\", jdbcType = JdbcType.INTEGER, id = true), @Result(column = \"sign_user_id\", property = \"signUserId\", jdbcType = JdbcType.VARCHAR), @Result(column = \"user_name\", property = \"userName\", jdbcType = JdbcType.VARCHAR), @Result(column = \"address\", property = \"address\", jdbcType = JdbcType.VARCHAR), @Result(column = \"chain_id\", property = \"chainId\", jdbcType = JdbcType.INTEGER), @Result(column = \"group_id\", property = \"groupId\", jdbcType = JdbcType.INTEGER), @Result(column = \"user_status\", property = \"userStatus\", jdbcType = JdbcType.INTEGER), @Result(column = \"gmt_create\", property = \"gmtCreate\", jdbcType = JdbcType.TIMESTAMP), @Result(column = \"gmt_modified\", property = \"gmtModified\", jdbcType = JdbcType.TIMESTAMP), @Result(column = \"description\", property = \"description\", jdbcType = JdbcType.VARCHAR) })\n TbUser selectByPrimaryKey(Integer id);", "public String getUpdrId() {\r\n return updrId;\r\n }", "public Integer getLastUpdUserId() {\n return (Integer) get(6);\n }", "@Select({\n \"select\",\n \"open_id, session_key, nick_name, gender, `language`, city, privince, country, \",\n \"avatarUrl, created\",\n \"from t_wx_user_info\",\n \"where open_id = #{openId,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"open_id\", property=\"openId\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"session_key\", property=\"sessionKey\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"nick_name\", property=\"nickName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"gender\", property=\"gender\", jdbcType=JdbcType.TINYINT),\n @Result(column=\"language\", property=\"language\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"city\", property=\"city\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"privince\", property=\"privince\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"country\", property=\"country\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"avatarUrl\", property=\"avatarurl\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"created\", property=\"created\", jdbcType=JdbcType.TIMESTAMP)\n })\n WxUserInfo selectByPrimaryKey(String openId);", "public String getbindCreditUnionId() {\r\n return (String) ensureVariableManager().getVariableValue(\"bindCreditUnionId\");\r\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Releases the object and puts it back to the pool. The mechanism of putting the object back to the pool is generally asynchronous, however future implementations might differ.
void release(PooledObject<T> t);
[ "public void release() {\n pool.add(instance);\n leases.remove(this);\n }", "void release(Object o);", "public void release()\n\t{\n\t\tsynchronized(reserved){\n\t\t\treserved = Boolean.TRUE;\n\t\t\towner = null;\n\t\t}\n\t\tdispatchResourceEvent(false);\n\t}", "public void release(T data) {\n if(data==null) return;\n synchronized (objPool) {\n if (objPool.size() < maxCount) {\n objPool.add(data);\n }\n if (objPool.size() > maxCount) {\n objPool.remove(objPool.size() - 1);\n\n }\n System.out.println(data.getClass()+\"free object in pool:\"+objPool.size()+\",createCount:\"+createCount);\n }\n\n }", "public void release() {\n \tlock.set(false);\n }", "public void release()\n {\n conductor.releaseSubscription(this);\n releaseBuffers();\n }", "public synchronized void release() {\r\n this.state = RELEASED;\r\n }", "public void release() {\n destroy(modelHandle);\n }", "public void releaseInstance() {\n\t\tif (isFree() || isBusy()) {\n\t\t\tthrow new IllegalStateException(\n\t\t\t\t\t\"instance is already free or is busy\");\n\t\t}\n\n\t\tsetFree(true);\n\t\tsetBusy(false);\n\t}", "public void dispose()\n {\n while( m_count > 0 )\n {\n int i = m_count - 1;\n try\n {\n m_factory.decommission( m_pool[ i ] );\n }\n catch( Exception e )\n {\n // To be backwards compatible, we have to support the logger having not been set.\n if( ( getLogger() != null ) && ( getLogger().isDebugEnabled() ) )\n {\n getLogger().debug( \"Error decommissioning object\", e );\n }\n }\n m_pool[ i ] = null;\n m_count--;\n }\n }", "public void release()\n {\n try\n {\n release(references.values());\n }\n finally\n {\n references.clear();\n }\n }", "final void internalRelease() {\n if(!explicitlyLocked) {\n byteBase.unlock();\n }\n }", "public void release() {\n readLatch.releaseIfOwner();\n }", "public void free()\n {\n assert( packet_pool!=null );\n\n packet_pool.put( this );\n }", "public void release() { \r\n\t remoteControlClient = null;\r\n\t }", "private void release() {\n\t\tinitialized = false;\n\t\tpause();\n\t\tsetOnCompletionListener(null);\n\t\tgetMp().release();\n\t\tmp = null;\n\t}", "private void releaseAssignedResource(@Nullable Throwable cause) {\n\n\t\tassertRunningInJobMasterMainThread();\n\n\t\tfinal LogicalSlot slot = assignedResource;\n\n\t\tif (slot != null) {\n\t\t\tComponentMainThreadExecutor jobMasterMainThreadExecutor =\n\t\t\t\tgetVertex().getExecutionGraph().getJobMasterMainThreadExecutor();\n\n\t\t\tslot.releaseSlot(cause)\n\t\t\t\t.whenComplete((Object ignored, Throwable throwable) -> {\n\t\t\t\t\tjobMasterMainThreadExecutor.assertRunningInMainThread();\n\t\t\t\t\tif (throwable != null) {\n\t\t\t\t\t\treleaseFuture.completeExceptionally(throwable);\n\t\t\t\t\t} else {\n\t\t\t\t\t\treleaseFuture.complete(null);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t} else {\n\t\t\t// no assigned resource --> we can directly complete the release future\n\t\t\treleaseFuture.complete(null);\n\t\t}\n\t}", "public void release() {\n introEffortProof = null;\n pollAckEffortProof = null;\n receiptEffortProof = null;\n remainingEffortProof = null;\n receiptEffortProof = null;\n \n hashAlgorithm = null;\n messageDir = null;\n nominees = null;\n voteBlocks = null;\n symmetricVoteBlocks = null;\n\n psmInterp = null;\n psmState = null;\n\n voteCounts.release();\n }", "@Override\n public void releasePermit() {\n balancer.release();\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a new object of class 'Twitter Primitive Type Declaration'.
TwitterPrimitiveTypeDeclaration createTwitterPrimitiveTypeDeclaration();
[ "TwitterTypeDeclaration createTwitterTypeDeclaration();", "TwitterObjectTypeDeclaration createTwitterObjectTypeDeclaration();", "public interface TwitterPrimitiveTypeDeclaration extends TwitterTypeDeclaration {\n}", "TwitterFieldDeclaration createTwitterFieldDeclaration();", "BasicType createBasicType();", "PrimitiveType createPrimitiveType();", "PrimitiveTypesLibrary createPrimitiveTypesLibrary();", "Datatype createDatatype();", "TypeDef createTypeDef();", "SimpleType createSimpleType();", "PrimitiveDataType createPrimitiveDataType();", "PEPrimitiveType createPEPrimitiveType();", "UserDefinedType createUserDefinedType();", "MetaTypeRef createMetaTypeRef();", "TypedefCompound createTypedefCompound();", "TypedLiteralType createTypedLiteralType();", "Typedef createTypedef();", "ConceptType createConceptType();", "TypedObjectDecl createTypedObjectDecl();" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Checks and sets landscapeoffset integer preference
private static int checkAndStoreLandscapeOffsetPref( Context context ) { return _checkAndStoreIntPref( context, R.string.drawing_landscape_offset_key, DRAWING_LANDSCAPE_OFFSET_INT_KEY, R.string.drawing_landscape_offset_default, R.integer.drawing_landscape_offset_min, R.integer.drawing_landscape_offset_max ); }
[ "void setLandscape(boolean ls);", "private void setOffset(int offset) {\n\t\tif(offset < 0) {\n\t\t\toffset *= -1;\n\t\t}\n\t\tthis.offset = (offset > 120) ? 120 : offset;\n\t}", "boolean getLandscape();", "void setLandscapeMode(boolean portrait);", "public void setOrientation(int ori);", "private static boolean isLandscapePortraitValue(String pageSizeChunk) {\n return CssConstants.LANDSCAPE.equals(pageSizeChunk) || CssConstants.PORTRAIT.equals(pageSizeChunk);\n }", "public void setLandscape(boolean ls)\n {\n\tprintSetupRecord.setLandscape(!ls);\n }", "private boolean isLandscapeOrientation(){\n return getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE; \n }", "void landscape() ;", "private void setUpLandscapeView() {\n int[] numberPickerValues = getNumberPickersValues();\n setContentView(R.layout.main_activity_landscape);\n setUpCommonViews(numberPickerValues, true);\n div.setImageResource(R.drawable.chain_landscape);\n }", "private void getOrientationEvent(){\n switchPreference1 = (SwitchPreference) findPreference(\"Orientation_on_of_switch\");\n\n if (switchPreference1 != null)\n switchPreference1.setOnPreferenceChangeListener(new Preference.OnPreferenceChangeListener() {\n\n @Override\n public boolean onPreferenceChange(Preference preference, Object booleanValue) {\n boolean bool = (Boolean) booleanValue;\n switchChange = bool;\n if (switchChange) {\n setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_SENSOR);\n saveOrientationValue();\n globals.g_OrintationIsOn = true;\n }\n else {\n setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_NOSENSOR);\n saveOrientationValue();\n globals.g_OrintationIsOn = false;\n }\n return true;\n }\n });\n else {\n /* Toast.makeText(this.getApplicationContext(),\n \"NO\",\n Toast.LENGTH_SHORT).show();*/\n }\n }", "int getStartOrientation();", "void setOrientation(boolean ls) {\n _sheet.getPrintSetup().setLandscape(ls);\n }", "public void setOrientation(int orientation){\n //save orientation of phone\n mOrientation = orientation;\n }", "public void onLayoutOrientationChanged(boolean isLandscape);", "public int getPreferredHorizontalOffset() {\n\t\treturn preferredHorizontalOffset;\n\t}", "public abstract float doLandscapeLayout(float screenWidth, float screenHeight);", "private void getInitialSeekBarPositions() {\n final ContentResolver resolver = getActivity().getContentResolver();\n portColumnsValue = Settings.System.getIntForUser(resolver,\n Settings.System.QS_COLUMNS_PORTRAIT, 3, UserHandle.USER_CURRENT);\n portRowsValue = Settings.System.getIntForUser(resolver,\n Settings.System.QS_ROWS_PORTRAIT, 3, UserHandle.USER_CURRENT);\n landColumnsValue = Settings.System.getIntForUser(resolver,\n Settings.System.QS_COLUMNS_LANDSCAPE, 4, UserHandle.USER_CURRENT);\n landRowsValue = Settings.System.getIntForUser(resolver,\n Settings.System.QS_ROWS_LANDSCAPE, 2, UserHandle.USER_CURRENT);\n }", "private int getOrientation() {\n if (Preferences.Constant.PREF_VIEWER_ORIENTATION_HORIZONTAL == Preferences.getViewerOrientation()) {\n return LinearLayoutManager.HORIZONTAL;\n } else {\n return LinearLayoutManager.VERTICAL;\n }\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Concatenate elements with empty text but skip null objects. On every object will be called toString().
public static <E> String concatElementsSkipNulls(Elements<E> elements) { return concatElementsSkipNulls(elements.asList(), EMPTY); }
[ "public static <E> String concatElementsSkipNulls(Collection<E> collection) {\n return concatElementsSkipNulls(collection, EMPTY);\n }", "public static <E> String concatElementsSkipNulls(Collection<E> collection, String joinText) {\n return concatElementsSkipNulls(collection, Object::toString, joinText);\n }", "public static <E> String concatElementsSkipNulls(Elements<E> eElements, String joinText) {\n return concatElementsSkipNulls(eElements.asList(), Object::toString, joinText);\n }", "public static String concatObjects(Object... texts) {\n return concatElements(asList(texts), EMPTY);\n }", "public static <E> String concatElementsSkipNulls(Collection<E> collection, Function<E, String> mapper, String joinText) {\n return concatElements(EMPTY, collection, Objects::nonNull, mapper, joinText, EMPTY);\n }", "private static void noValueEdgeCaseWithEmptyHandling1() {\n\n StringJoiner stringJoiner = new StringJoiner(\", \");\n stringJoiner.setEmptyValue(\"THIS SEQUENCE WAS EMPTY\");\n\n printHeader(\"noValueEdgeCaseWithEmptyHandling1\");\n System.out.println(stringJoiner.toString());\n }", "java.lang.String getEmptyOrValues();", "private static void noValueEdgeCaseWithEmptyHandling2() {\n\n StringJoiner stringJoiner = new StringJoiner(\"], [$\", \"[$\", \"]\");\n stringJoiner.setEmptyValue(\"THIS SEQUENCE WAS EMPTY\");\n\n printHeader(\"noValueEdgeCaseWithEmptyHandling2\");\n System.out.println(stringJoiner.toString());\n }", "String toStringAll() {\r\n\t\t\tif(next == null) return data.toString();\r\n\t\t\telse return data + \", \" + next.toStringAll();\r\n\t\t}", "public static String concatenate(List<? extends Object> objects) {\r\n\t\tif (objects.size() == 1) {\r\n\t\t\treturn String.valueOf(objects.get(0));\r\n\t\t}\r\n\r\n\t\tif (objects.size() > 0) {\r\n\t\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\tfor (Object object : objects) {\r\n\t\t\t\tif (object != null) {\r\n\t\t\t\t\tsb.append(object);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn sb.toString();\r\n\t\t}\r\n\r\n\t\treturn \"\";\r\n\t}", "public static String concatenate(Object... objects) {\r\n\t\tif (objects.length == 1) {\r\n\t\t\treturn String.valueOf(objects[0]);\r\n\t\t}\r\n\r\n\t\tif (objects.length > 0) {\r\n\t\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\tfor (Object object : objects) {\r\n\t\t\t\tif (object != null) {\r\n\t\t\t\t\tsb.append(object);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn sb.toString();\r\n\t\t}\r\n\r\n\t\treturn \"\";\r\n\t}", "private static void noValueEdgeCaseWithEmptyHandlingError1() {\n\n StringJoiner stringJoiner = new StringJoiner(\",\");\n \n stringJoiner.add(\"\");\n stringJoiner.setEmptyValue(\"THIS SEQUENCE WAS EMPTY\");\n\n printHeader(\"noValueEdgeCaseWithEmptyHandling2\");\n System.out.println(stringJoiner.toString());\n }", "@Test\n\tpublic void testToStringEmpty() {\n\t\tSystem.out.println(\"\\n\" + \"Test of toString() with an empty tree:\" + \"\\n\" + emptyTree.toString());\n\t\tSystem.out.println(\"OK\");\n\t}", "@Test\r\n\tpublic void toStringEmptyArrays() {\r\n\t\ttestObj.toString();\r\n\t\tassertEquals(\"Output string should have no data\", \"Table: 1\\r\\n{\\r\\nTableName: test\\r\\nNativeFields: \\r\\nRelatedTables: \\r\\nRelatedFields: \\r\\n}\\r\\n\", testObj.toString());\r\n\t}", "private static void noValueEdgeCaseWithEmptyHandlingError2() {\n\n StringJoiner stringJoiner = new StringJoiner(\"], [$\", \"[$\", \"]\");\n \n stringJoiner.add(\"\");\n stringJoiner.setEmptyValue(\"THIS SEQUENCE WAS EMPTY\");\n\n printHeader(\"noValueEdgeCaseWithEmptyHandling2\");\n System.out.println(stringJoiner.toString());\n }", "public NormalizedString appendBlank() {\n if (isAppendDisabled) {\n return this;\n }\n\n final boolean tmpBlank = content.length() == 0 || isWhitespace(content.charAt(content.length() - 1));\n if (tmpBlank) {\n return this;\n }\n\n content.append(' ');\n return this;\n }", "public String toString()\n {\n\tString result = \"<SkipList:\";\n\tfor (K x : this) {\n\t result += \" \" + (x == null ? \"null\" : x.toString());\n\t}\n\tresult += \">\";\n\treturn result;\n }", "@Test\n\tpublic void testToStringEmpty() {\t\t\n\t\tassertEquals(am.toString(),\"Empty\");\n\t}", "public String nodeAndElementsAsText() {\n\t\treturn \"\";\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Find the name of the algorithm used to compress the specified compressed buffer.
public String getAlgorithmName(byte[] compressedBuffer, int compressedBufferOffset, int compressedDataSize) { BaseCompression.verifyCompressedBuffer(compressedBuffer, compressedBufferOffset, compressedDataSize); // The first byte is the version. Skip the version to reach the algorithm name. int algorithmNameOffset = compressedBufferOffset + 1; byte algorithmNameLength = compressedBuffer[algorithmNameOffset]; return new String(compressedBuffer, algorithmNameOffset + 1, algorithmNameLength, StandardCharsets.UTF_8); }
[ "java.lang.String getAlgorithm();", "private String getInternalCompressorName(String name) {\n for (String key : allSupportedCompressors.keySet()) {\n if (key.equalsIgnoreCase(name)) {\n return key;\n }\n }\n return null;\n }", "public String algorithmName();", "protected abstract String getAlgorithmName();", "public String getAlgorithmName() {\n\t}", "public static String getAlgorithm() {\n return ALGO_NAME;\n }", "public String getCompressorName()\n {\n return useCompression() ? compressor.getClass().getSimpleName() : \"none\";\n }", "public String getAlgorithm() {\n return getParameter(ParameterNames.ALGORITHM);\n }", "public String getAlgName()\n {\n return infoObj.getEncryptionAlgorithm().getAlgorithm().getId();\n }", "public String getAlgorithm() {\n\t\treturn algorithm.toString();\n\t}", "public CompressionAlgorithm getCompressionAlgorithm() {\n return compressionAlgorithm;\n }", "public static CompressionAlgorithm parseAlgorithm(String algorithm) {\n try {\n return CompressionAlgorithm.valueOf(algorithm.toUpperCase());\n } catch (IllegalArgumentException e) {\n return NONE;\n }\n }", "@Override\r\n public String getLossyImageCompressionMethod() throws DIException {\n DValue dataElement = dicomDataSet.getValueByGroupElementString(\"0028,2114\");\r\n if (dataElement == null) {\r\n return null;\r\n }\r\n return getStringAnswer(dataElement); // TODO multiplicity //TODO check values(enum) getStringAnswer(dataElement)\r\n }", "@Override\r\n\tpublic String getAlgorithmName() {\r\n\t\treturn cipher.getAlgorithmName() + \"/\" + \"CBC\";\r\n\t}", "private static String getAlgorithmName(String sha, String mgf) throws NoSuchAlgorithmException {\n try {\n Signature.getInstance(\"RSASSA-PSS\");\n return \"RSASSA-PSS\";\n } catch (NoSuchAlgorithmException ex) {\n // RSASSA-PSS is not known. Try the other options.\n }\n String md = compactDigestName(sha);\n try {\n // Try the legacy naming for JCE.\n String name = md + \"WITHRSAand\" + mgf;\n Signature.getInstance(name);\n return name;\n } catch (NoSuchAlgorithmException ex) {\n // name is not supported. Try other options.\n }\n String name = md + \"withRSA/PSS\";\n Signature.getInstance(name);\n return name;\n }", "public interface CompressionStrategy {\n\n /**\n * The type of compression performed.\n */\n String getType();\n\n /**\n * Uncompresses the data. The array received should not be modified, but it\n * may be returned unchanged.\n * \n * @param data compressed data.\n * @return uncompressed data.\n * @throws IOException if there is an issue during the operation.\n */\n byte[] inflate(byte[] data) throws IOException;\n\n /**\n * Compresses the data. The array received should not be modified, but it\n * may be returned unchanged.\n * \n * @param data uncompressed data.\n * @return compressed data.\n * @throws IOException if there is an issue during the operation.\n */\n byte[] deflate(byte[] data) throws IOException;\n}", "long getAlgorithm();", "public Compression getByName(String algorithmName) {\n Utils.checkNotNullOrEmpty(algorithmName, \"algorithmName cannot be null or empty.\");\n return get(algorithmName);\n }", "public java.lang.String getCompression() {\n java.lang.Object ref = compression_;\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 compression_ = s;\n return s;\n }\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column FreeHost_ServerCDNlist.orderbyid
public void setOrderbyid(Integer orderbyid) { this.orderbyid = orderbyid; }
[ "public static void setOrderBy (String columnList){\n fetchAllOrderBy=columnList;\n }", "public void setRcdOrderBy( Long rcdOrderBy ) {\n this.rcdOrderBy = rcdOrderBy;\n }", "public void orderById() {\n Collections.sort(customers, new Comparator() {\n\n public int compare(Object o1, Object o2) {\n return ((Customer)o1).getId().compareTo(((Customer)o2).getId());\n }\n });\n\n //avisa que a tabela foi alterada\n fireTableDataChanged();\n }", "public void setOrderBy(boolean value) {\n this.orderBy = value;\n }", "public void setServersOrder() { \r\n ServerData[] servers = getAllServers();\r\n servers = setLastAccessOrder(servers);\r\n setServerList(servers);\r\n }", "public void setOrderBy(String orderBy) {\n this.orderBy = orderBy;\n }", "public Integer getOrderbyid() {\r\n return orderbyid;\r\n }", "Imports setSortkey(String sortkey);", "io.dstore.values.IntegerValue getOrderBy();", "public void changeSortOrder();", "public void setOrderBy(com.sforce.soap.partner.ListViewOrderBy[] orderBy) {\r\n this.orderBy = orderBy;\r\n }", "public void setSortOrder(String sortOrder);", "public void setIdOrder(Long idOrder) {\n this.idOrder = idOrder;\n }", "public void setSortId(Integer sortId) {\r\n this.sortId = sortId;\r\n }", "void setDisplayOrder(Long order);", "io.dstore.values.StringValue getOrderBy();", "public ActivityIteratorExpressionBuilder setOrderById(boolean ascending);", "public void setSortOrderId(Integer sortOrderId) {\n this.sortOrderId = sortOrderId;\n }", "protected void generateOrderBy( SQLQueryModel query, LogicalModel model, List<Order> orderBy,\n DatabaseMeta databaseMeta, String locale, Map<LogicalTable, String> tableAliases, Map<String, String> columnsMap,\n Map<String, Object> parameters, boolean genAsPreparedStatement ) {\n if ( orderBy != null ) {\n for ( Order orderItem : orderBy ) {\n LogicalColumn businessColumn = orderItem.getSelection().getLogicalColumn();\n String alias = null;\n if ( columnsMap != null ) {\n // The column map is a unique mapping of Column alias to the column ID\n // Here we have the column ID and we need the alias.\n // We need to do the order by on the alias, not the column name itself.\n // For most databases, it can be both, but the alias is more standard.\n //\n // Using the column name and not the alias caused an issue on Apache Derby.\n //\n for ( String key : columnsMap.keySet() ) {\n String value = columnsMap.get( key );\n if ( value.equals( businessColumn.getId() ) ) {\n // Found it: the alias is the key\n alias = key;\n break;\n }\n }\n }\n SqlAndTables sqlAndTables =\n getBusinessColumnSQL( model, orderItem.getSelection(), tableAliases, parameters, genAsPreparedStatement,\n databaseMeta, locale );\n query.addOrderBy( sqlAndTables.getSql(), databaseMeta.quoteField( alias ), orderItem.getType() != Type.ASC\n ? OrderType.DESCENDING : null );\n }\n }\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "STRING" $ANTLR start "DATE_YEAR_MONTH_DAY"
public final void mDATE_YEAR_MONTH_DAY() throws RecognitionException { try { int _type = DATE_YEAR_MONTH_DAY; int _channel = DEFAULT_TOKEN_CHANNEL; // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/compactcat/parser/CompactCatDictionary.g:260:2: ( NUMBER NUMBER NUMBER NUMBER ( '/' | '-' ) NUMBER NUMBER ( '/' | '-' ) NUMBER NUMBER ) // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/compactcat/parser/CompactCatDictionary.g:260:4: NUMBER NUMBER NUMBER NUMBER ( '/' | '-' ) NUMBER NUMBER ( '/' | '-' ) NUMBER NUMBER { mNUMBER(); mNUMBER(); mNUMBER(); mNUMBER(); if ( input.LA(1)=='-'||input.LA(1)=='/' ) { input.consume(); } else { MismatchedSetException mse = new MismatchedSetException(null,input); recover(mse); throw mse;} mNUMBER(); mNUMBER(); if ( input.LA(1)=='-'||input.LA(1)=='/' ) { input.consume(); } else { MismatchedSetException mse = new MismatchedSetException(null,input); recover(mse); throw mse;} mNUMBER(); mNUMBER(); } state.type = _type; state.channel = _channel; } finally { } }
[ "public final void mDATE() throws RecognitionException {\n try {\n int _type = DATE;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2967:6: ( DIGIT DIGIT DIGIT DIGIT '-' DIGIT DIGIT '-' DIGIT DIGIT ( ( ' ' | 'T' ) DIGIT DIGIT ':' DIGIT DIGIT ':' DIGIT DIGIT ( ( ( ',' | '.' ) DIGIT )=> ( ( ',' | '.' ) ( DIGIT )+ ) | ) ( 'Z' | ( ( '+' | '-' ) DIGIT DIGIT DIGIT DIGIT )? ) )? )\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2967:8: DIGIT DIGIT DIGIT DIGIT '-' DIGIT DIGIT '-' DIGIT DIGIT ( ( ' ' | 'T' ) DIGIT DIGIT ':' DIGIT DIGIT ':' DIGIT DIGIT ( ( ( ',' | '.' ) DIGIT )=> ( ( ',' | '.' ) ( DIGIT )+ ) | ) ( 'Z' | ( ( '+' | '-' ) DIGIT DIGIT DIGIT DIGIT )? ) )?\n {\n mDIGIT(); if (state.failed) return ;\n mDIGIT(); if (state.failed) return ;\n mDIGIT(); if (state.failed) return ;\n mDIGIT(); if (state.failed) return ;\n match('-'); if (state.failed) return ;\n mDIGIT(); if (state.failed) return ;\n mDIGIT(); if (state.failed) return ;\n match('-'); if (state.failed) return ;\n mDIGIT(); if (state.failed) return ;\n mDIGIT(); if (state.failed) return ;\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2967:64: ( ( ' ' | 'T' ) DIGIT DIGIT ':' DIGIT DIGIT ':' DIGIT DIGIT ( ( ( ',' | '.' ) DIGIT )=> ( ( ',' | '.' ) ( DIGIT )+ ) | ) ( 'Z' | ( ( '+' | '-' ) DIGIT DIGIT DIGIT DIGIT )? ) )?\n int alt17=2;\n int LA17_0 = input.LA(1);\n\n if ( (LA17_0==' '||LA17_0=='T') ) {\n alt17=1;\n }\n switch (alt17) {\n case 1 :\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2967:65: ( ' ' | 'T' ) DIGIT DIGIT ':' DIGIT DIGIT ':' DIGIT DIGIT ( ( ( ',' | '.' ) DIGIT )=> ( ( ',' | '.' ) ( DIGIT )+ ) | ) ( 'Z' | ( ( '+' | '-' ) DIGIT DIGIT DIGIT DIGIT )? )\n {\n if ( input.LA(1)==' '||input.LA(1)=='T' ) {\n input.consume();\n state.failed=false;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return ;}\n MismatchedSetException mse = new MismatchedSetException(null,input);\n recover(mse);\n throw mse;}\n\n mDIGIT(); if (state.failed) return ;\n mDIGIT(); if (state.failed) return ;\n match(':'); if (state.failed) return ;\n mDIGIT(); if (state.failed) return ;\n mDIGIT(); if (state.failed) return ;\n match(':'); if (state.failed) return ;\n mDIGIT(); if (state.failed) return ;\n mDIGIT(); if (state.failed) return ;\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2968:13: ( ( ( ',' | '.' ) DIGIT )=> ( ( ',' | '.' ) ( DIGIT )+ ) | )\n int alt14=2;\n int LA14_0 = input.LA(1);\n\n if ( (LA14_0==','||LA14_0=='.') && (synpred4_Binding())) {\n alt14=1;\n }\n else {\n alt14=2;}\n switch (alt14) {\n case 1 :\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2969:15: ( ( ',' | '.' ) DIGIT )=> ( ( ',' | '.' ) ( DIGIT )+ )\n {\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2969:40: ( ( ',' | '.' ) ( DIGIT )+ )\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2969:41: ( ',' | '.' ) ( DIGIT )+\n {\n if ( input.LA(1)==','||input.LA(1)=='.' ) {\n input.consume();\n state.failed=false;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return ;}\n MismatchedSetException mse = new MismatchedSetException(null,input);\n recover(mse);\n throw mse;}\n\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2969:53: ( DIGIT )+\n int cnt13=0;\n loop13:\n do {\n int alt13=2;\n int LA13_0 = input.LA(1);\n\n if ( ((LA13_0>='0' && LA13_0<='9')) ) {\n alt13=1;\n }\n\n\n switch (alt13) {\n \tcase 1 :\n \t // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2969:54: DIGIT\n \t {\n \t mDIGIT(); if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t if ( cnt13 >= 1 ) break loop13;\n \t if (state.backtracking>0) {state.failed=true; return ;}\n EarlyExitException eee =\n new EarlyExitException(13, input);\n throw eee;\n }\n cnt13++;\n } while (true);\n\n\n }\n\n\n }\n break;\n case 2 :\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2971:13: \n {\n }\n break;\n\n }\n\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2972:13: ( 'Z' | ( ( '+' | '-' ) DIGIT DIGIT DIGIT DIGIT )? )\n int alt16=2;\n int LA16_0 = input.LA(1);\n\n if ( (LA16_0=='Z') ) {\n alt16=1;\n }\n else {\n alt16=2;}\n switch (alt16) {\n case 1 :\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2972:14: 'Z'\n {\n match('Z'); if (state.failed) return ;\n\n }\n break;\n case 2 :\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2972:20: ( ( '+' | '-' ) DIGIT DIGIT DIGIT DIGIT )?\n {\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2972:20: ( ( '+' | '-' ) DIGIT DIGIT DIGIT DIGIT )?\n int alt15=2;\n int LA15_0 = input.LA(1);\n\n if ( (LA15_0=='+'||LA15_0=='-') ) {\n alt15=1;\n }\n switch (alt15) {\n case 1 :\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2972:21: ( '+' | '-' ) DIGIT DIGIT DIGIT DIGIT\n {\n if ( input.LA(1)=='+'||input.LA(1)=='-' ) {\n input.consume();\n state.failed=false;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return ;}\n MismatchedSetException mse = new MismatchedSetException(null,input);\n recover(mse);\n throw mse;}\n\n mDIGIT(); if (state.failed) return ;\n mDIGIT(); if (state.failed) return ;\n mDIGIT(); if (state.failed) return ;\n mDIGIT(); if (state.failed) return ;\n\n }\n break;\n\n }\n\n\n }\n break;\n\n }\n\n\n }\n break;\n\n }\n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public final void mDATE() throws RecognitionException {\n try {\n int _type = DATE;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // C:\\\\data\\\\cts\\\\runtime-workspace\\\\com.sap.coghead.editor\\\\generated\\\\generated\\\\Collection.g:1143:6: ( DIGIT DIGIT DIGIT DIGIT '-' DIGIT DIGIT '-' DIGIT DIGIT ( ( ' ' | 'T' ) DIGIT DIGIT ':' DIGIT DIGIT ':' DIGIT DIGIT ( ( ( ',' | '.' ) DIGIT )=> ( ( ',' | '.' ) ( DIGIT )+ ) | ) ( 'Z' | ( ( '+' | '-' ) DIGIT DIGIT DIGIT DIGIT )? ) )? )\n // C:\\\\data\\\\cts\\\\runtime-workspace\\\\com.sap.coghead.editor\\\\generated\\\\generated\\\\Collection.g:1143:8: DIGIT DIGIT DIGIT DIGIT '-' DIGIT DIGIT '-' DIGIT DIGIT ( ( ' ' | 'T' ) DIGIT DIGIT ':' DIGIT DIGIT ':' DIGIT DIGIT ( ( ( ',' | '.' ) DIGIT )=> ( ( ',' | '.' ) ( DIGIT )+ ) | ) ( 'Z' | ( ( '+' | '-' ) DIGIT DIGIT DIGIT DIGIT )? ) )?\n {\n mDIGIT(); if (state.failed) return ;\n mDIGIT(); if (state.failed) return ;\n mDIGIT(); if (state.failed) return ;\n mDIGIT(); if (state.failed) return ;\n match('-'); if (state.failed) return ;\n mDIGIT(); if (state.failed) return ;\n mDIGIT(); if (state.failed) return ;\n match('-'); if (state.failed) return ;\n mDIGIT(); if (state.failed) return ;\n mDIGIT(); if (state.failed) return ;\n // C:\\\\data\\\\cts\\\\runtime-workspace\\\\com.sap.coghead.editor\\\\generated\\\\generated\\\\Collection.g:1143:64: ( ( ' ' | 'T' ) DIGIT DIGIT ':' DIGIT DIGIT ':' DIGIT DIGIT ( ( ( ',' | '.' ) DIGIT )=> ( ( ',' | '.' ) ( DIGIT )+ ) | ) ( 'Z' | ( ( '+' | '-' ) DIGIT DIGIT DIGIT DIGIT )? ) )?\n int alt26=2;\n int LA26_0 = input.LA(1);\n\n if ( (LA26_0==' '||LA26_0=='T') ) {\n alt26=1;\n }\n switch (alt26) {\n case 1 :\n // C:\\\\data\\\\cts\\\\runtime-workspace\\\\com.sap.coghead.editor\\\\generated\\\\generated\\\\Collection.g:1143:65: ( ' ' | 'T' ) DIGIT DIGIT ':' DIGIT DIGIT ':' DIGIT DIGIT ( ( ( ',' | '.' ) DIGIT )=> ( ( ',' | '.' ) ( DIGIT )+ ) | ) ( 'Z' | ( ( '+' | '-' ) DIGIT DIGIT DIGIT DIGIT )? )\n {\n if ( input.LA(1)==' '||input.LA(1)=='T' ) {\n input.consume();\n state.failed=false;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return ;}\n MismatchedSetException mse = new MismatchedSetException(null,input);\n recover(mse);\n throw mse;}\n\n mDIGIT(); if (state.failed) return ;\n mDIGIT(); if (state.failed) return ;\n match(':'); if (state.failed) return ;\n mDIGIT(); if (state.failed) return ;\n mDIGIT(); if (state.failed) return ;\n match(':'); if (state.failed) return ;\n mDIGIT(); if (state.failed) return ;\n mDIGIT(); if (state.failed) return ;\n // C:\\\\data\\\\cts\\\\runtime-workspace\\\\com.sap.coghead.editor\\\\generated\\\\generated\\\\Collection.g:1144:13: ( ( ( ',' | '.' ) DIGIT )=> ( ( ',' | '.' ) ( DIGIT )+ ) | )\n int alt23=2;\n int LA23_0 = input.LA(1);\n\n if ( (LA23_0==','||LA23_0=='.') && (synpred5_Collection())) {\n alt23=1;\n }\n else {\n alt23=2;}\n switch (alt23) {\n case 1 :\n // C:\\\\data\\\\cts\\\\runtime-workspace\\\\com.sap.coghead.editor\\\\generated\\\\generated\\\\Collection.g:1145:15: ( ( ',' | '.' ) DIGIT )=> ( ( ',' | '.' ) ( DIGIT )+ )\n {\n // C:\\\\data\\\\cts\\\\runtime-workspace\\\\com.sap.coghead.editor\\\\generated\\\\generated\\\\Collection.g:1145:40: ( ( ',' | '.' ) ( DIGIT )+ )\n // C:\\\\data\\\\cts\\\\runtime-workspace\\\\com.sap.coghead.editor\\\\generated\\\\generated\\\\Collection.g:1145:41: ( ',' | '.' ) ( DIGIT )+\n {\n if ( input.LA(1)==','||input.LA(1)=='.' ) {\n input.consume();\n state.failed=false;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return ;}\n MismatchedSetException mse = new MismatchedSetException(null,input);\n recover(mse);\n throw mse;}\n\n // C:\\\\data\\\\cts\\\\runtime-workspace\\\\com.sap.coghead.editor\\\\generated\\\\generated\\\\Collection.g:1145:53: ( DIGIT )+\n int cnt22=0;\n loop22:\n do {\n int alt22=2;\n int LA22_0 = input.LA(1);\n\n if ( ((LA22_0>='0' && LA22_0<='9')) ) {\n alt22=1;\n }\n\n\n switch (alt22) {\n \tcase 1 :\n \t // C:\\\\data\\\\cts\\\\runtime-workspace\\\\com.sap.coghead.editor\\\\generated\\\\generated\\\\Collection.g:1145:54: DIGIT\n \t {\n \t mDIGIT(); if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t if ( cnt22 >= 1 ) break loop22;\n \t if (state.backtracking>0) {state.failed=true; return ;}\n EarlyExitException eee =\n new EarlyExitException(22, input);\n throw eee;\n }\n cnt22++;\n } while (true);\n\n\n }\n\n\n }\n break;\n case 2 :\n // C:\\\\data\\\\cts\\\\runtime-workspace\\\\com.sap.coghead.editor\\\\generated\\\\generated\\\\Collection.g:1147:13: \n {\n }\n break;\n\n }\n\n // C:\\\\data\\\\cts\\\\runtime-workspace\\\\com.sap.coghead.editor\\\\generated\\\\generated\\\\Collection.g:1148:13: ( 'Z' | ( ( '+' | '-' ) DIGIT DIGIT DIGIT DIGIT )? )\n int alt25=2;\n int LA25_0 = input.LA(1);\n\n if ( (LA25_0=='Z') ) {\n alt25=1;\n }\n else {\n alt25=2;}\n switch (alt25) {\n case 1 :\n // C:\\\\data\\\\cts\\\\runtime-workspace\\\\com.sap.coghead.editor\\\\generated\\\\generated\\\\Collection.g:1148:14: 'Z'\n {\n match('Z'); if (state.failed) return ;\n\n }\n break;\n case 2 :\n // C:\\\\data\\\\cts\\\\runtime-workspace\\\\com.sap.coghead.editor\\\\generated\\\\generated\\\\Collection.g:1148:20: ( ( '+' | '-' ) DIGIT DIGIT DIGIT DIGIT )?\n {\n // C:\\\\data\\\\cts\\\\runtime-workspace\\\\com.sap.coghead.editor\\\\generated\\\\generated\\\\Collection.g:1148:20: ( ( '+' | '-' ) DIGIT DIGIT DIGIT DIGIT )?\n int alt24=2;\n int LA24_0 = input.LA(1);\n\n if ( (LA24_0=='+'||LA24_0=='-') ) {\n alt24=1;\n }\n switch (alt24) {\n case 1 :\n // C:\\\\data\\\\cts\\\\runtime-workspace\\\\com.sap.coghead.editor\\\\generated\\\\generated\\\\Collection.g:1148:21: ( '+' | '-' ) DIGIT DIGIT DIGIT DIGIT\n {\n if ( input.LA(1)=='+'||input.LA(1)=='-' ) {\n input.consume();\n state.failed=false;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return ;}\n MismatchedSetException mse = new MismatchedSetException(null,input);\n recover(mse);\n throw mse;}\n\n mDIGIT(); if (state.failed) return ;\n mDIGIT(); if (state.failed) return ;\n mDIGIT(); if (state.failed) return ;\n mDIGIT(); if (state.failed) return ;\n\n }\n break;\n\n }\n\n\n }\n break;\n\n }\n\n\n }\n break;\n\n }\n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "Expression literal(Date d);", "public final void mDATE() throws RecognitionException {\n\t\ttry {\n\t\t\tint _type = DATE;\n\t\t\tint _channel = DEFAULT_TOKEN_CHANNEL;\n\t\t\t// C:\\\\Users\\\\JeanV\\\\Documents\\\\ETUDES\\\\GI05\\\\LO17\\\\projet\\\\LO17\\\\LO17Tomcat\\\\WEB-INF\\\\src\\\\lo17SqlGrammar.g:27:5: ( 'quand' | 'quel date' | 'publi' | 'paraitre' | 'paru' )\n\t\t\tint alt6=5;\n\t\t\tint LA6_0 = input.LA(1);\n\t\t\tif ( (LA6_0=='q') ) {\n\t\t\t\tint LA6_1 = input.LA(2);\n\t\t\t\tif ( (LA6_1=='u') ) {\n\t\t\t\t\tint LA6_3 = input.LA(3);\n\t\t\t\t\tif ( (LA6_3=='a') ) {\n\t\t\t\t\t\talt6=1;\n\t\t\t\t\t}\n\t\t\t\t\telse if ( (LA6_3=='e') ) {\n\t\t\t\t\t\talt6=2;\n\t\t\t\t\t}\n\n\t\t\t\t\telse {\n\t\t\t\t\t\tint nvaeMark = input.mark();\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tfor (int nvaeConsume = 0; nvaeConsume < 3 - 1; nvaeConsume++) {\n\t\t\t\t\t\t\t\tinput.consume();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tNoViableAltException nvae =\n\t\t\t\t\t\t\t\tnew NoViableAltException(\"\", 6, 3, input);\n\t\t\t\t\t\t\tthrow nvae;\n\t\t\t\t\t\t} finally {\n\t\t\t\t\t\t\tinput.rewind(nvaeMark);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t\telse {\n\t\t\t\t\tint nvaeMark = input.mark();\n\t\t\t\t\ttry {\n\t\t\t\t\t\tinput.consume();\n\t\t\t\t\t\tNoViableAltException nvae =\n\t\t\t\t\t\t\tnew NoViableAltException(\"\", 6, 1, input);\n\t\t\t\t\t\tthrow nvae;\n\t\t\t\t\t} finally {\n\t\t\t\t\t\tinput.rewind(nvaeMark);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t\telse if ( (LA6_0=='p') ) {\n\t\t\t\tint LA6_2 = input.LA(2);\n\t\t\t\tif ( (LA6_2=='u') ) {\n\t\t\t\t\talt6=3;\n\t\t\t\t}\n\t\t\t\telse if ( (LA6_2=='a') ) {\n\t\t\t\t\tint LA6_5 = input.LA(3);\n\t\t\t\t\tif ( (LA6_5=='r') ) {\n\t\t\t\t\t\tint LA6_8 = input.LA(4);\n\t\t\t\t\t\tif ( (LA6_8=='a') ) {\n\t\t\t\t\t\t\talt6=4;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if ( (LA6_8=='u') ) {\n\t\t\t\t\t\t\talt6=5;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tint nvaeMark = input.mark();\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tfor (int nvaeConsume = 0; nvaeConsume < 4 - 1; nvaeConsume++) {\n\t\t\t\t\t\t\t\t\tinput.consume();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tNoViableAltException nvae =\n\t\t\t\t\t\t\t\t\tnew NoViableAltException(\"\", 6, 8, input);\n\t\t\t\t\t\t\t\tthrow nvae;\n\t\t\t\t\t\t\t} finally {\n\t\t\t\t\t\t\t\tinput.rewind(nvaeMark);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t\t\telse {\n\t\t\t\t\t\tint nvaeMark = input.mark();\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tfor (int nvaeConsume = 0; nvaeConsume < 3 - 1; nvaeConsume++) {\n\t\t\t\t\t\t\t\tinput.consume();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tNoViableAltException nvae =\n\t\t\t\t\t\t\t\tnew NoViableAltException(\"\", 6, 5, input);\n\t\t\t\t\t\t\tthrow nvae;\n\t\t\t\t\t\t} finally {\n\t\t\t\t\t\t\tinput.rewind(nvaeMark);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t\telse {\n\t\t\t\t\tint nvaeMark = input.mark();\n\t\t\t\t\ttry {\n\t\t\t\t\t\tinput.consume();\n\t\t\t\t\t\tNoViableAltException nvae =\n\t\t\t\t\t\t\tnew NoViableAltException(\"\", 6, 2, input);\n\t\t\t\t\t\tthrow nvae;\n\t\t\t\t\t} finally {\n\t\t\t\t\t\tinput.rewind(nvaeMark);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\telse {\n\t\t\t\tNoViableAltException nvae =\n\t\t\t\t\tnew NoViableAltException(\"\", 6, 0, input);\n\t\t\t\tthrow nvae;\n\t\t\t}\n\n\t\t\tswitch (alt6) {\n\t\t\t\tcase 1 :\n\t\t\t\t\t// C:\\\\Users\\\\JeanV\\\\Documents\\\\ETUDES\\\\GI05\\\\LO17\\\\projet\\\\LO17\\\\LO17Tomcat\\\\WEB-INF\\\\src\\\\lo17SqlGrammar.g:27:7: 'quand'\n\t\t\t\t\t{\n\t\t\t\t\tmatch(\"quand\"); \n\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2 :\n\t\t\t\t\t// C:\\\\Users\\\\JeanV\\\\Documents\\\\ETUDES\\\\GI05\\\\LO17\\\\projet\\\\LO17\\\\LO17Tomcat\\\\WEB-INF\\\\src\\\\lo17SqlGrammar.g:27:17: 'quel date'\n\t\t\t\t\t{\n\t\t\t\t\tmatch(\"quel date\"); \n\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3 :\n\t\t\t\t\t// C:\\\\Users\\\\JeanV\\\\Documents\\\\ETUDES\\\\GI05\\\\LO17\\\\projet\\\\LO17\\\\LO17Tomcat\\\\WEB-INF\\\\src\\\\lo17SqlGrammar.g:27:31: 'publi'\n\t\t\t\t\t{\n\t\t\t\t\tmatch(\"publi\"); \n\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4 :\n\t\t\t\t\t// C:\\\\Users\\\\JeanV\\\\Documents\\\\ETUDES\\\\GI05\\\\LO17\\\\projet\\\\LO17\\\\LO17Tomcat\\\\WEB-INF\\\\src\\\\lo17SqlGrammar.g:27:41: 'paraitre'\n\t\t\t\t\t{\n\t\t\t\t\tmatch(\"paraitre\"); \n\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 5 :\n\t\t\t\t\t// C:\\\\Users\\\\JeanV\\\\Documents\\\\ETUDES\\\\GI05\\\\LO17\\\\projet\\\\LO17\\\\LO17Tomcat\\\\WEB-INF\\\\src\\\\lo17SqlGrammar.g:27:54: 'paru'\n\t\t\t\t\t{\n\t\t\t\t\tmatch(\"paru\"); \n\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\n\t\t\t}\n\t\t\tstate.type = _type;\n\t\t\tstate.channel = _channel;\n\t\t}\n\t\tfinally {\n\t\t\t// do for sure before leaving\n\t\t}\n\t}", "DateLiteral createDateLiteral();", "private static boolean isDate(String token) {\n return dateRegex.matcher(token).matches();\n }", "@Test public void Year_2__month__day()\t\t\t\t\t\t\t{tst_date_(\"03/31/2001\"\t\t\t\t, \"2001-03-31\");}", "private static LocalDate readDateFromArguments(String dayString, String monthString, String yearString) {\n\t\tint day = 0, month = 0, year = 0 ;\n\t\ttry{\n\t\t\tday = Integer.parseInt(dayString);\n\t\t\tmonth = Integer.parseInt(monthString);\n\t\t\tyear = Integer.parseInt(yearString);\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\tSystem.out.println(\"The dates should be in the format DD MM YY in integer numbers\");\n\t\t\texitArgumentError(); \n\t\t}\n\t\t\t\n\t\treturn LocalDate.of(year,month,day);\n\n\t}", "Date getDateFromStringDate(String date);", "public static String getSPARQLDateString(String s) throws Exception{\n\t\t// try all formatters until find one that works\n\t\tfor (DateTimeFormatter formatter : DATE_FORMATTERS){ \n\t try{ \t\n\t \tLocalDate dateObj = LocalDate.parse(s, formatter);\n\t\t\t\treturn dateObj.format(DateTimeFormatter.ofPattern(\"yyyy-MM-dd\")); \t\n\t }catch (Exception e) {\n\t \t// try the next one\n\t }\n\t\t}\t\t\t\t\n\t\tthrow new Exception(\"Cannot parse \" + s + \" using available formatters\");\n\t}", "private String getMonthAndYear(final String date)\r\n {\r\n return date.substring(date.length() - BookFlowConstants.EIGHT, date.length());\r\n }", "void visitString(StringValue d);", "@Test\r\n public void testStringDateLowerThan() throws ParseException\r\n {\r\n Stack<Object> parameters = CollectionsUtils.newParametersStack(STR_DATE_1, STR_DATE_2);\r\n le.run(parameters);\r\n assertEquals(TRUE, parameters.pop());\r\n }", "public void parseDate(String date) throws IllegalArgumentException {\n\t\tif (date.length() == 0 || date.indexOf(\"-\") != -1) {\n\t\t\tthrow new IllegalArgumentException(\"bad date duration: \" + date);\n\t\t}\n\n\t\t// check if date string ends with either Y, M, or D\n\t\tif (!date.endsWith(\"Y\") && !date.endsWith(\"M\") && !date.endsWith(\"D\")) {\n\t\t\tthrow new IllegalArgumentException(\"bad date duration: \" + date);\n\t\t}\n\n\t\t// catch any parsing exception\n\t\ttry {\n\t\t\t// parse string and extract years, months, days\n\t\t\tint start = 0;\n\t\t\tint end = date.indexOf(\"Y\");\n\n\t\t\t// if there is Y in a string but there is no value for years,\n\t\t\t// throw an exception\n\t\t\tif (start == end) {\n\t\t\t\tthrow new IllegalArgumentException(\"bad date duration: \" + date);\n\t\t\t}\n\t\t\tif (end != -1) {\n\t\t\t\tyears = Integer.parseInt(date.substring(0, end));\n\t\t\t\tstart = end + 1;\n\t\t\t}\n\n\t\t\t// months\n\t\t\tend = date.indexOf(\"M\");\n\t\t\t// if there is M in a string but there is no value for months,\n\t\t\t// throw an exception\n\t\t\tif (start == end) {\n\t\t\t\tthrow new IllegalArgumentException(\"bad date duration: \" + date);\n\t\t\t}\n\t\t\tif (end != -1) {\n\t\t\t\tmonths = Integer.parseInt(date.substring(start, end));\n\t\t\t\tstart = end + 1;\n\t\t\t}\n\n\t\t\tend = date.indexOf(\"D\");\n\t\t\t// if there is D in a string but there is no value for days,\n\t\t\t// throw an exception\n\t\t\tif (start == end) {\n\t\t\t\tthrow new IllegalArgumentException(\"bad date duration: \" + date);\n\t\t\t}\n\t\t\tif (end != -1) {\n\t\t\t\tdays = Integer.parseInt(date.substring(start, end));\n\t\t\t}\n\t\t} catch (NumberFormatException e) {\n\t\t\tthrow new IllegalArgumentException(\"bad date duration: \" + date);\n\t\t}\n\t}", "private void processDateLiteralToken(final AstNode node) {\n final String pureDateStr = StringUtils.remove(node.getToken().text, \"'\");\n final DateTime date;\n // let's now check if we can covert recognised sequence to date\n if (pureDateStr.split(\" \").length == 2) { // has time portion\n final DateTimeFormatter formatter = DateTimeFormat.forPattern(\"yyyy-MM-dd HH:mm:ss\");\n date = formatter.parseDateTime(pureDateStr);\n } else { // has only the date portion\n final DateTimeFormatter formatter = DateTimeFormat.forPattern(\"yyyy-MM-dd\");\n date = formatter.parseDateTime(pureDateStr);\n }\n\n node.setType(Date.class);\n node.setValue(date.toDate());\n }", "public abstract TagField createYearField(String content);", "private SqlParsedToken readDateLiteral(int pos) {\n skipWhiteSpace();\n if (nextChar() != '\\'') {\n throw new RegularException(\"SQLPARSER_MISSING_APOS_IN_DATE_LITERAL\",\n \"' expected in date literal\");\n }\n var startLine = line;\n var text = new StringBuilder();\n while (peekChar() != '\\'') {\n text.append(nextChar());\n }\n nextChar();\n return new ParsedLiteral<>(startLine, pos, DtDate.class, DtDate.parseIso(text.toString()));\n }", "public String getDbInsertableDate(String day_mon_date_year) {\n String months = \" JanFebMarAprMayJunJulAugSepOctNovDec\";\n // \"012345678901234567890123456789012345678\" (Divided by / ) 3 = Num of Month \n String mon = day_mon_date_year.substring(4, 7);\n String date = day_mon_date_year.substring(8, 10);\n String year = day_mon_date_year.substring(11);\n int numMonth = months.indexOf(mon) / 3;\n // p(\"In Func : \"+date+\"-\"+numMonth+\"-\"+year);\n return (year + \"-\" + numMonth + \"-\" + date); // Returns like : 2019-01-31\n }", "@Test\n\tpublic void testStringRVStartDateYearLetters() {\n\t\tRV r = null;\n\t\ttry {\n\t\t\tr = new RV(\"Matt Kinoodle\", \n\t\t\t\t\t\"11/11/aaaa\", \"11/11/2017\", \n\t\t\t\t\t5, 30);\n\t\t} catch (Exception e) {\n\t\t\t;\n\t\t}\n\t\tassertEquals(r, null);\n\t\t\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test of getNAD198310TMAEPForest method, of class NationalGridsCanada.
@Test public void testNAD198310TMAEPForest() { testToWGS84AndBack(PROJ.getNAD198310TMAEPForest()); }
[ "@Test\n public void testNAD192710TMAEPForest() {\n testToWGS84AndBack(PROJ.getNAD192710TMAEPForest());\n }", "@Test\n public void testNAD198310TMAEPResource() {\n testToWGS84AndBack(PROJ.getNAD198310TMAEPResource());\n }", "@Test\n public void testNAD192710TMAEPResource() {\n testToWGS84AndBack(PROJ.getNAD192710TMAEPResource());\n }", "@Test\n public void testNAD19273TM111() {\n testToWGS84AndBack(PROJ.getNAD19273TM111());\n }", "@Test\n public void testNAD19833TM111() {\n testToWGS84AndBack(PROJ.getNAD19833TM111());\n }", "@Test\n public void testNAD19273TM114() {\n testToWGS84AndBack(PROJ.getNAD19273TM114());\n }", "@Test\n public void testNAD1927DEF1976MTM15() {\n testToWGS84AndBack(PROJ.getNAD1927DEF1976MTM15());\n }", "@Test\n public void testNAD1983MTM15() {\n testToWGS84AndBack(PROJ.getNAD1983MTM15());\n }", "@Test\n public void testNAD19833TM114() {\n testToWGS84AndBack(PROJ.getNAD19833TM114());\n }", "@Test\n public void testNAD19273TM117() {\n testToWGS84AndBack(PROJ.getNAD19273TM117());\n }", "@Test\n public void testNAD19273TM120() {\n testToWGS84AndBack(PROJ.getNAD19273TM120());\n }", "@Test\n public void testNAD1927DEF1976MTM10() {\n testToWGS84AndBack(PROJ.getNAD1927DEF1976MTM10());\n }", "@Test\n public void testNAD19833TM117() {\n testToWGS84AndBack(PROJ.getNAD19833TM117());\n }", "@Test\n public void testNAD1983MTM1() {\n testToWGS84AndBack(PROJ.getNAD1983MTM1());\n }", "@Test\n public void testNAD19833TM120() {\n testToWGS84AndBack(PROJ.getNAD19833TM120());\n }", "@Test\n public void testNAD1927DEF1976MTM9() {\n testToWGS84AndBack(PROJ.getNAD1927DEF1976MTM9());\n }", "@Test\n public void testNAD1927MTM5() {\n testToWGS84AndBack(PROJ.getNAD1927MTM5());\n }", "@Test\n public void testNAD1927MTM1() {\n testToWGS84AndBack(PROJ.getNAD1927MTM1());\n }", "@Test\n public void testNAD1983MTM10() {\n testToWGS84AndBack(PROJ.getNAD1983MTM10());\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }